// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: message_types.proto

#ifndef PROTOBUF_message_5ftypes_2eproto__INCLUDED
#define PROTOBUF_message_5ftypes_2eproto__INCLUDED

#include <string>

#include <google/protobuf/stubs/common.h>

#if GOOGLE_PROTOBUF_VERSION < 2006000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers.  Please update
#error your headers.
#endif
#if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers.  Please
#error regenerate this file with a newer version of protoc.
#endif

#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
#include "Define.h" // for TC_PROTO_API
// @@protoc_insertion_point(includes)

namespace bgs {
namespace protocol {

// Internal implementation detail -- do not call these.
void TC_PROTO_API protobuf_AddDesc_message_5ftypes_2eproto();
void protobuf_AssignDesc_message_5ftypes_2eproto();
void protobuf_ShutdownFile_message_5ftypes_2eproto();

class MessageId;

enum TypingIndicator {
  TYPING_START = 0,
  TYPING_STOP = 1
};
TC_PROTO_API bool TypingIndicator_IsValid(int value);
const TypingIndicator TypingIndicator_MIN = TYPING_START;
const TypingIndicator TypingIndicator_MAX = TYPING_STOP;
const int TypingIndicator_ARRAYSIZE = TypingIndicator_MAX + 1;

TC_PROTO_API const ::google::protobuf::EnumDescriptor* TypingIndicator_descriptor();
inline const ::std::string& TypingIndicator_Name(TypingIndicator value) {
  return ::google::protobuf::internal::NameOfEnum(
    TypingIndicator_descriptor(), value);
}
inline bool TypingIndicator_Parse(
    const ::std::string& name, TypingIndicator* value) {
  return ::google::protobuf::internal::ParseNamedEnum<TypingIndicator>(
    TypingIndicator_descriptor(), name, value);
}
// ===================================================================

class TC_PROTO_API MessageId : public ::google::protobuf::Message {
 public:
  MessageId();
  virtual ~MessageId();

  MessageId(const MessageId& from);

  inline MessageId& operator=(const MessageId& from) {
    CopyFrom(from);
    return *this;
  }

  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _unknown_fields_;
  }

  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return &_unknown_fields_;
  }

  static const ::google::protobuf::Descriptor* descriptor();
  static const MessageId& default_instance();

  void Swap(MessageId* other);

  // implements Message ----------------------------------------------

  MessageId* New() const;
  void CopyFrom(const ::google::protobuf::Message& from);
  void MergeFrom(const ::google::protobuf::Message& from);
  void CopyFrom(const MessageId& from);
  void MergeFrom(const MessageId& from);
  void Clear();
  bool IsInitialized() const;

  int ByteSize() const;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input);
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const;
  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  ::google::protobuf::Metadata GetMetadata() const;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // optional uint64 epoch = 1;
  inline bool has_epoch() const;
  inline void clear_epoch();
  static const int kEpochFieldNumber = 1;
  inline ::google::protobuf::uint64 epoch() const;
  inline void set_epoch(::google::protobuf::uint64 value);

  // optional uint64 position = 2;
  inline bool has_position() const;
  inline void clear_position();
  static const int kPositionFieldNumber = 2;
  inline ::google::protobuf::uint64 position() const;
  inline void set_position(::google::protobuf::uint64 value);

  // @@protoc_insertion_point(class_scope:bgs.protocol.MessageId)
 private:
  inline void set_has_epoch();
  inline void clear_has_epoch();
  inline void set_has_position();
  inline void clear_has_position();

  ::google::protobuf::UnknownFieldSet _unknown_fields_;

  ::google::protobuf::uint32 _has_bits_[1];
  mutable int _cached_size_;
  ::google::protobuf::uint64 epoch_;
  ::google::protobuf::uint64 position_;
  friend void TC_PROTO_API protobuf_AddDesc_message_5ftypes_2eproto();
  friend void protobuf_AssignDesc_message_5ftypes_2eproto();
  friend void protobuf_ShutdownFile_message_5ftypes_2eproto();

  void InitAsDefaultInstance();
  static MessageId* default_instance_;
};
// ===================================================================


// ===================================================================


// ===================================================================

// MessageId

// optional uint64 epoch = 1;
inline bool MessageId::has_epoch() const {
  return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void MessageId::set_has_epoch() {
  _has_bits_[0] |= 0x00000001u;
}
inline void MessageId::clear_has_epoch() {
  _has_bits_[0] &= ~0x00000001u;
}
inline void MessageId::clear_epoch() {
  epoch_ = GOOGLE_ULONGLONG(0);
  clear_has_epoch();
}
inline ::google::protobuf::uint64 MessageId::epoch() const {
  // @@protoc_insertion_point(field_get:bgs.protocol.MessageId.epoch)
  return epoch_;
}
inline void MessageId::set_epoch(::google::protobuf::uint64 value) {
  set_has_epoch();
  epoch_ = value;
  // @@protoc_insertion_point(field_set:bgs.protocol.MessageId.epoch)
}

// optional uint64 position = 2;
inline bool MessageId::has_position() const {
  return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void MessageId::set_has_position() {
  _has_bits_[0] |= 0x00000002u;
}
inline void MessageId::clear_has_position() {
  _has_bits_[0] &= ~0x00000002u;
}
inline void MessageId::clear_position() {
  position_ = GOOGLE_ULONGLONG(0);
  clear_has_position();
}
inline ::google::protobuf::uint64 MessageId::position() const {
  // @@protoc_insertion_point(field_get:bgs.protocol.MessageId.position)
  return position_;
}
inline void MessageId::set_position(::google::protobuf::uint64 value) {
  set_has_position();
  position_ = value;
  // @@protoc_insertion_point(field_set:bgs.protocol.MessageId.position)
}


// @@protoc_insertion_point(namespace_scope)

}  // namespace protocol
}  // namespace bgs

#ifndef SWIG
namespace google {
namespace protobuf {

template <> struct is_proto_enum< ::bgs::protocol::TypingIndicator> : ::google::protobuf::internal::true_type {};
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::bgs::protocol::TypingIndicator>() {
  return ::bgs::protocol::TypingIndicator_descriptor();
}

}  // namespace google
}  // namespace protobuf
#endif  // SWIG

// @@protoc_insertion_point(global_scope)

#endif  // PROTOBUF_message_5ftypes_2eproto__INCLUDED
