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

#ifndef PROTOBUF_transportinstruction_2eproto__INCLUDED
#define PROTOBUF_transportinstruction_2eproto__INCLUDED

#include <string>

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

#if GOOGLE_PROTOBUF_VERSION < 2005000
#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 2005000 < 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_lite.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/extension_set.h>
// @@protoc_insertion_point(includes)

namespace TransportBuffers {

// Internal implementation detail -- do not call these.
void  protobuf_AddDesc_transportinstruction_2eproto();
void protobuf_AssignDesc_transportinstruction_2eproto();
void protobuf_ShutdownFile_transportinstruction_2eproto();

class Instruction;

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

class Instruction : public ::google::protobuf::MessageLite {
 public:
  Instruction();
  virtual ~Instruction();

  Instruction(const Instruction& from);

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

  static const Instruction& default_instance();

  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  // Returns the internal default instance pointer. This function can
  // return NULL thus should not be used by the user. This is intended
  // for Protobuf internal code. Please use default_instance() declared
  // above instead.
  static inline const Instruction* internal_default_instance() {
    return default_instance_;
  }
  #endif

  void Swap(Instruction* other);

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

  Instruction* New() const;
  void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from);
  void CopyFrom(const Instruction& from);
  void MergeFrom(const Instruction& from);
  void Clear();
  bool IsInitialized() const;

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

  ::std::string GetTypeName() const;

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

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

  // optional uint32 protocol_version = 1;
  inline bool has_protocol_version() const;
  inline void clear_protocol_version();
  static const int kProtocolVersionFieldNumber = 1;
  inline ::google::protobuf::uint32 protocol_version() const;
  inline void set_protocol_version(::google::protobuf::uint32 value);

  // optional uint64 old_num = 2;
  inline bool has_old_num() const;
  inline void clear_old_num();
  static const int kOldNumFieldNumber = 2;
  inline ::google::protobuf::uint64 old_num() const;
  inline void set_old_num(::google::protobuf::uint64 value);

  // optional uint64 new_num = 3;
  inline bool has_new_num() const;
  inline void clear_new_num();
  static const int kNewNumFieldNumber = 3;
  inline ::google::protobuf::uint64 new_num() const;
  inline void set_new_num(::google::protobuf::uint64 value);

  // optional uint64 ack_num = 4;
  inline bool has_ack_num() const;
  inline void clear_ack_num();
  static const int kAckNumFieldNumber = 4;
  inline ::google::protobuf::uint64 ack_num() const;
  inline void set_ack_num(::google::protobuf::uint64 value);

  // optional uint64 throwaway_num = 5;
  inline bool has_throwaway_num() const;
  inline void clear_throwaway_num();
  static const int kThrowawayNumFieldNumber = 5;
  inline ::google::protobuf::uint64 throwaway_num() const;
  inline void set_throwaway_num(::google::protobuf::uint64 value);

  // optional bytes diff = 6;
  inline bool has_diff() const;
  inline void clear_diff();
  static const int kDiffFieldNumber = 6;
  inline const ::std::string& diff() const;
  inline void set_diff(const ::std::string& value);
  inline void set_diff(const char* value);
  inline void set_diff(const void* value, size_t size);
  inline ::std::string* mutable_diff();
  inline ::std::string* release_diff();
  inline void set_allocated_diff(::std::string* diff);

  // optional bytes chaff = 7;
  inline bool has_chaff() const;
  inline void clear_chaff();
  static const int kChaffFieldNumber = 7;
  inline const ::std::string& chaff() const;
  inline void set_chaff(const ::std::string& value);
  inline void set_chaff(const char* value);
  inline void set_chaff(const void* value, size_t size);
  inline ::std::string* mutable_chaff();
  inline ::std::string* release_chaff();
  inline void set_allocated_chaff(::std::string* chaff);

  // @@protoc_insertion_point(class_scope:TransportBuffers.Instruction)
 private:
  inline void set_has_protocol_version();
  inline void clear_has_protocol_version();
  inline void set_has_old_num();
  inline void clear_has_old_num();
  inline void set_has_new_num();
  inline void clear_has_new_num();
  inline void set_has_ack_num();
  inline void clear_has_ack_num();
  inline void set_has_throwaway_num();
  inline void clear_has_throwaway_num();
  inline void set_has_diff();
  inline void clear_has_diff();
  inline void set_has_chaff();
  inline void clear_has_chaff();

  ::google::protobuf::uint64 old_num_;
  ::google::protobuf::uint64 new_num_;
  ::google::protobuf::uint64 ack_num_;
  ::google::protobuf::uint64 throwaway_num_;
  ::std::string* diff_;
  ::std::string* chaff_;
  ::google::protobuf::uint32 protocol_version_;

  mutable int _cached_size_;
  ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32];

  #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
  friend void  protobuf_AddDesc_transportinstruction_2eproto_impl();
  #else
  friend void  protobuf_AddDesc_transportinstruction_2eproto();
  #endif
  friend void protobuf_AssignDesc_transportinstruction_2eproto();
  friend void protobuf_ShutdownFile_transportinstruction_2eproto();

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


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

// Instruction

// optional uint32 protocol_version = 1;
inline bool Instruction::has_protocol_version() const {
  return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void Instruction::set_has_protocol_version() {
  _has_bits_[0] |= 0x00000001u;
}
inline void Instruction::clear_has_protocol_version() {
  _has_bits_[0] &= ~0x00000001u;
}
inline void Instruction::clear_protocol_version() {
  protocol_version_ = 0u;
  clear_has_protocol_version();
}
inline ::google::protobuf::uint32 Instruction::protocol_version() const {
  return protocol_version_;
}
inline void Instruction::set_protocol_version(::google::protobuf::uint32 value) {
  set_has_protocol_version();
  protocol_version_ = value;
}

// optional uint64 old_num = 2;
inline bool Instruction::has_old_num() const {
  return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void Instruction::set_has_old_num() {
  _has_bits_[0] |= 0x00000002u;
}
inline void Instruction::clear_has_old_num() {
  _has_bits_[0] &= ~0x00000002u;
}
inline void Instruction::clear_old_num() {
  old_num_ = GOOGLE_ULONGLONG(0);
  clear_has_old_num();
}
inline ::google::protobuf::uint64 Instruction::old_num() const {
  return old_num_;
}
inline void Instruction::set_old_num(::google::protobuf::uint64 value) {
  set_has_old_num();
  old_num_ = value;
}

// optional uint64 new_num = 3;
inline bool Instruction::has_new_num() const {
  return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void Instruction::set_has_new_num() {
  _has_bits_[0] |= 0x00000004u;
}
inline void Instruction::clear_has_new_num() {
  _has_bits_[0] &= ~0x00000004u;
}
inline void Instruction::clear_new_num() {
  new_num_ = GOOGLE_ULONGLONG(0);
  clear_has_new_num();
}
inline ::google::protobuf::uint64 Instruction::new_num() const {
  return new_num_;
}
inline void Instruction::set_new_num(::google::protobuf::uint64 value) {
  set_has_new_num();
  new_num_ = value;
}

// optional uint64 ack_num = 4;
inline bool Instruction::has_ack_num() const {
  return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void Instruction::set_has_ack_num() {
  _has_bits_[0] |= 0x00000008u;
}
inline void Instruction::clear_has_ack_num() {
  _has_bits_[0] &= ~0x00000008u;
}
inline void Instruction::clear_ack_num() {
  ack_num_ = GOOGLE_ULONGLONG(0);
  clear_has_ack_num();
}
inline ::google::protobuf::uint64 Instruction::ack_num() const {
  return ack_num_;
}
inline void Instruction::set_ack_num(::google::protobuf::uint64 value) {
  set_has_ack_num();
  ack_num_ = value;
}

// optional uint64 throwaway_num = 5;
inline bool Instruction::has_throwaway_num() const {
  return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void Instruction::set_has_throwaway_num() {
  _has_bits_[0] |= 0x00000010u;
}
inline void Instruction::clear_has_throwaway_num() {
  _has_bits_[0] &= ~0x00000010u;
}
inline void Instruction::clear_throwaway_num() {
  throwaway_num_ = GOOGLE_ULONGLONG(0);
  clear_has_throwaway_num();
}
inline ::google::protobuf::uint64 Instruction::throwaway_num() const {
  return throwaway_num_;
}
inline void Instruction::set_throwaway_num(::google::protobuf::uint64 value) {
  set_has_throwaway_num();
  throwaway_num_ = value;
}

// optional bytes diff = 6;
inline bool Instruction::has_diff() const {
  return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void Instruction::set_has_diff() {
  _has_bits_[0] |= 0x00000020u;
}
inline void Instruction::clear_has_diff() {
  _has_bits_[0] &= ~0x00000020u;
}
inline void Instruction::clear_diff() {
  if (diff_ != &::google::protobuf::internal::kEmptyString) {
    diff_->clear();
  }
  clear_has_diff();
}
inline const ::std::string& Instruction::diff() const {
  return *diff_;
}
inline void Instruction::set_diff(const ::std::string& value) {
  set_has_diff();
  if (diff_ == &::google::protobuf::internal::kEmptyString) {
    diff_ = new ::std::string;
  }
  diff_->assign(value);
}
inline void Instruction::set_diff(const char* value) {
  set_has_diff();
  if (diff_ == &::google::protobuf::internal::kEmptyString) {
    diff_ = new ::std::string;
  }
  diff_->assign(value);
}
inline void Instruction::set_diff(const void* value, size_t size) {
  set_has_diff();
  if (diff_ == &::google::protobuf::internal::kEmptyString) {
    diff_ = new ::std::string;
  }
  diff_->assign(reinterpret_cast<const char*>(value), size);
}
inline ::std::string* Instruction::mutable_diff() {
  set_has_diff();
  if (diff_ == &::google::protobuf::internal::kEmptyString) {
    diff_ = new ::std::string;
  }
  return diff_;
}
inline ::std::string* Instruction::release_diff() {
  clear_has_diff();
  if (diff_ == &::google::protobuf::internal::kEmptyString) {
    return NULL;
  } else {
    ::std::string* temp = diff_;
    diff_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
    return temp;
  }
}
inline void Instruction::set_allocated_diff(::std::string* diff) {
  if (diff_ != &::google::protobuf::internal::kEmptyString) {
    delete diff_;
  }
  if (diff) {
    set_has_diff();
    diff_ = diff;
  } else {
    clear_has_diff();
    diff_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  }
}

// optional bytes chaff = 7;
inline bool Instruction::has_chaff() const {
  return (_has_bits_[0] & 0x00000040u) != 0;
}
inline void Instruction::set_has_chaff() {
  _has_bits_[0] |= 0x00000040u;
}
inline void Instruction::clear_has_chaff() {
  _has_bits_[0] &= ~0x00000040u;
}
inline void Instruction::clear_chaff() {
  if (chaff_ != &::google::protobuf::internal::kEmptyString) {
    chaff_->clear();
  }
  clear_has_chaff();
}
inline const ::std::string& Instruction::chaff() const {
  return *chaff_;
}
inline void Instruction::set_chaff(const ::std::string& value) {
  set_has_chaff();
  if (chaff_ == &::google::protobuf::internal::kEmptyString) {
    chaff_ = new ::std::string;
  }
  chaff_->assign(value);
}
inline void Instruction::set_chaff(const char* value) {
  set_has_chaff();
  if (chaff_ == &::google::protobuf::internal::kEmptyString) {
    chaff_ = new ::std::string;
  }
  chaff_->assign(value);
}
inline void Instruction::set_chaff(const void* value, size_t size) {
  set_has_chaff();
  if (chaff_ == &::google::protobuf::internal::kEmptyString) {
    chaff_ = new ::std::string;
  }
  chaff_->assign(reinterpret_cast<const char*>(value), size);
}
inline ::std::string* Instruction::mutable_chaff() {
  set_has_chaff();
  if (chaff_ == &::google::protobuf::internal::kEmptyString) {
    chaff_ = new ::std::string;
  }
  return chaff_;
}
inline ::std::string* Instruction::release_chaff() {
  clear_has_chaff();
  if (chaff_ == &::google::protobuf::internal::kEmptyString) {
    return NULL;
  } else {
    ::std::string* temp = chaff_;
    chaff_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
    return temp;
  }
}
inline void Instruction::set_allocated_chaff(::std::string* chaff) {
  if (chaff_ != &::google::protobuf::internal::kEmptyString) {
    delete chaff_;
  }
  if (chaff) {
    set_has_chaff();
    chaff_ = chaff;
  } else {
    clear_has_chaff();
    chaff_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
  }
}


// @@protoc_insertion_point(namespace_scope)

}  // namespace TransportBuffers

// @@protoc_insertion_point(global_scope)

#endif  // PROTOBUF_transportinstruction_2eproto__INCLUDED
