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

#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "transportinstruction.pb.h"

#include <algorithm>

#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/io/zero_copy_stream_impl_lite.h>
// @@protoc_insertion_point(includes)

namespace TransportBuffers {
class InstructionDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<Instruction> {
} _Instruction_default_instance_;

namespace protobuf_transportinstruction_2eproto {

PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField
    const TableStruct::entries[] = {
  {0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0},
};

PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField
    const TableStruct::aux[] = {
  ::google::protobuf::internal::AuxillaryParseTableField(),
};
PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const
    TableStruct::schema[] = {
  { NULL, NULL, 0, -1, -1, false },
};


void TableStruct::Shutdown() {
  _Instruction_default_instance_.Shutdown();
}

void TableStruct::InitDefaultsImpl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  ::google::protobuf::internal::InitProtobufDefaults();
  _Instruction_default_instance_.DefaultConstruct();
}

void InitDefaults() {
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl);
}
void AddDescriptorsImpl() {
  InitDefaults();
  ::google::protobuf::internal::OnShutdown(&TableStruct::Shutdown);
}

void AddDescriptors() {
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
}
#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer {
  StaticDescriptorInitializer() {
    AddDescriptors();
  }
} static_descriptor_initializer;
#endif  // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER

}  // namespace protobuf_transportinstruction_2eproto


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

#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int Instruction::kProtocolVersionFieldNumber;
const int Instruction::kOldNumFieldNumber;
const int Instruction::kNewNumFieldNumber;
const int Instruction::kAckNumFieldNumber;
const int Instruction::kThrowawayNumFieldNumber;
const int Instruction::kDiffFieldNumber;
const int Instruction::kChaffFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

Instruction::Instruction()
  : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
    protobuf_transportinstruction_2eproto::InitDefaults();
  }
  SharedCtor();
  // @@protoc_insertion_point(constructor:TransportBuffers.Instruction)
}
Instruction::Instruction(const Instruction& from)
  : ::google::protobuf::MessageLite(),
      _internal_metadata_(NULL),
      _has_bits_(from._has_bits_),
      _cached_size_(0) {
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  diff_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  if (from.has_diff()) {
    diff_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.diff_);
  }
  chaff_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  if (from.has_chaff()) {
    chaff_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.chaff_);
  }
  ::memcpy(&old_num_, &from.old_num_,
    reinterpret_cast<char*>(&protocol_version_) -
    reinterpret_cast<char*>(&old_num_) + sizeof(protocol_version_));
  // @@protoc_insertion_point(copy_constructor:TransportBuffers.Instruction)
}

void Instruction::SharedCtor() {
  _cached_size_ = 0;
  diff_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  chaff_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  ::memset(&old_num_, 0, reinterpret_cast<char*>(&protocol_version_) -
    reinterpret_cast<char*>(&old_num_) + sizeof(protocol_version_));
}

Instruction::~Instruction() {
  // @@protoc_insertion_point(destructor:TransportBuffers.Instruction)
  SharedDtor();
}

void Instruction::SharedDtor() {
  diff_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  chaff_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

void Instruction::SetCachedSize(int size) const {
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const Instruction& Instruction::default_instance() {
  protobuf_transportinstruction_2eproto::InitDefaults();
  return *internal_default_instance();
}

Instruction* Instruction::New(::google::protobuf::Arena* arena) const {
  Instruction* n = new Instruction;
  if (arena != NULL) {
    arena->Own(n);
  }
  return n;
}

void Instruction::Clear() {
// @@protoc_insertion_point(message_clear_start:TransportBuffers.Instruction)
  if (_has_bits_[0 / 32] & 3u) {
    if (has_diff()) {
      GOOGLE_DCHECK(!diff_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
      (*diff_.UnsafeRawStringPointer())->clear();
    }
    if (has_chaff()) {
      GOOGLE_DCHECK(!chaff_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
      (*chaff_.UnsafeRawStringPointer())->clear();
    }
  }
  if (_has_bits_[0 / 32] & 124u) {
    ::memset(&old_num_, 0, reinterpret_cast<char*>(&protocol_version_) -
      reinterpret_cast<char*>(&old_num_) + sizeof(protocol_version_));
  }
  _has_bits_.Clear();
  _internal_metadata_.Clear();
}

bool Instruction::MergePartialFromCodedStream(
    ::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  ::google::protobuf::uint32 tag;
  ::google::protobuf::io::LazyStringOutputStream unknown_fields_string(
      ::google::protobuf::NewPermanentCallback(&_internal_metadata_,
          &::google::protobuf::internal::InternalMetadataWithArenaLite::
              mutable_unknown_fields));
  ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
      &unknown_fields_string, false);
  // @@protoc_insertion_point(parse_start:TransportBuffers.Instruction)
  for (;;) {
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
    tag = p.first;
    if (!p.second) goto handle_unusual;
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
      // optional uint32 protocol_version = 1;
      case 1: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(8u)) {
          set_has_protocol_version();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
                 input, &protocol_version_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // optional uint64 old_num = 2;
      case 2: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(16u)) {
          set_has_old_num();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
                 input, &old_num_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // optional uint64 new_num = 3;
      case 3: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(24u)) {
          set_has_new_num();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
                 input, &new_num_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // optional uint64 ack_num = 4;
      case 4: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(32u)) {
          set_has_ack_num();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
                 input, &ack_num_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // optional uint64 throwaway_num = 5;
      case 5: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(40u)) {
          set_has_throwaway_num();
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
                 input, &throwaway_num_)));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // optional bytes diff = 6;
      case 6: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(50u)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
                input, this->mutable_diff()));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // optional bytes chaff = 7;
      case 7: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(58u)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
                input, this->mutable_chaff()));
        } else {
          goto handle_unusual;
        }
        break;
      }

      default: {
      handle_unusual:
        if (tag == 0 ||
            ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
            ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
          goto success;
        }
        DO_(::google::protobuf::internal::WireFormatLite::SkipField(
            input, tag, &unknown_fields_stream));
        break;
      }
    }
  }
success:
  // @@protoc_insertion_point(parse_success:TransportBuffers.Instruction)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:TransportBuffers.Instruction)
  return false;
#undef DO_
}

void Instruction::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // @@protoc_insertion_point(serialize_start:TransportBuffers.Instruction)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // optional uint32 protocol_version = 1;
  if (cached_has_bits & 0x00000040u) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->protocol_version(), output);
  }

  // optional uint64 old_num = 2;
  if (cached_has_bits & 0x00000004u) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->old_num(), output);
  }

  // optional uint64 new_num = 3;
  if (cached_has_bits & 0x00000008u) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->new_num(), output);
  }

  // optional uint64 ack_num = 4;
  if (cached_has_bits & 0x00000010u) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->ack_num(), output);
  }

  // optional uint64 throwaway_num = 5;
  if (cached_has_bits & 0x00000020u) {
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->throwaway_num(), output);
  }

  // optional bytes diff = 6;
  if (cached_has_bits & 0x00000001u) {
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
      6, this->diff(), output);
  }

  // optional bytes chaff = 7;
  if (cached_has_bits & 0x00000002u) {
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
      7, this->chaff(), output);
  }

  output->WriteRaw(unknown_fields().data(),
                   static_cast<int>(unknown_fields().size()));
  // @@protoc_insertion_point(serialize_end:TransportBuffers.Instruction)
}

size_t Instruction::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:TransportBuffers.Instruction)
  size_t total_size = 0;

  total_size += unknown_fields().size();

  if (_has_bits_[0 / 32] & 127u) {
    // optional bytes diff = 6;
    if (has_diff()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::BytesSize(
          this->diff());
    }

    // optional bytes chaff = 7;
    if (has_chaff()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::BytesSize(
          this->chaff());
    }

    // optional uint64 old_num = 2;
    if (has_old_num()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
          this->old_num());
    }

    // optional uint64 new_num = 3;
    if (has_new_num()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
          this->new_num());
    }

    // optional uint64 ack_num = 4;
    if (has_ack_num()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
          this->ack_num());
    }

    // optional uint64 throwaway_num = 5;
    if (has_throwaway_num()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
          this->throwaway_num());
    }

    // optional uint32 protocol_version = 1;
    if (has_protocol_version()) {
      total_size += 1 +
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
          this->protocol_version());
    }

  }
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = cached_size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
  return total_size;
}

void Instruction::CheckTypeAndMergeFrom(
    const ::google::protobuf::MessageLite& from) {
  MergeFrom(*::google::protobuf::down_cast<const Instruction*>(&from));
}

void Instruction::MergeFrom(const Instruction& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:TransportBuffers.Instruction)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = from._has_bits_[0];
  if (cached_has_bits & 127u) {
    if (cached_has_bits & 0x00000001u) {
      set_has_diff();
      diff_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.diff_);
    }
    if (cached_has_bits & 0x00000002u) {
      set_has_chaff();
      chaff_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.chaff_);
    }
    if (cached_has_bits & 0x00000004u) {
      old_num_ = from.old_num_;
    }
    if (cached_has_bits & 0x00000008u) {
      new_num_ = from.new_num_;
    }
    if (cached_has_bits & 0x00000010u) {
      ack_num_ = from.ack_num_;
    }
    if (cached_has_bits & 0x00000020u) {
      throwaway_num_ = from.throwaway_num_;
    }
    if (cached_has_bits & 0x00000040u) {
      protocol_version_ = from.protocol_version_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
}

void Instruction::CopyFrom(const Instruction& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:TransportBuffers.Instruction)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool Instruction::IsInitialized() const {
  return true;
}

void Instruction::Swap(Instruction* other) {
  if (other == this) return;
  InternalSwap(other);
}
void Instruction::InternalSwap(Instruction* other) {
  diff_.Swap(&other->diff_);
  chaff_.Swap(&other->chaff_);
  std::swap(old_num_, other->old_num_);
  std::swap(new_num_, other->new_num_);
  std::swap(ack_num_, other->ack_num_);
  std::swap(throwaway_num_, other->throwaway_num_);
  std::swap(protocol_version_, other->protocol_version_);
  std::swap(_has_bits_[0], other->_has_bits_[0]);
  _internal_metadata_.Swap(&other->_internal_metadata_);
  std::swap(_cached_size_, other->_cached_size_);
}

::std::string Instruction::GetTypeName() const {
  return "TransportBuffers.Instruction";
}

#if PROTOBUF_INLINE_NOT_IN_HEADERS
// Instruction

// optional uint32 protocol_version = 1;
bool Instruction::has_protocol_version() const {
  return (_has_bits_[0] & 0x00000040u) != 0;
}
void Instruction::set_has_protocol_version() {
  _has_bits_[0] |= 0x00000040u;
}
void Instruction::clear_has_protocol_version() {
  _has_bits_[0] &= ~0x00000040u;
}
void Instruction::clear_protocol_version() {
  protocol_version_ = 0u;
  clear_has_protocol_version();
}
::google::protobuf::uint32 Instruction::protocol_version() const {
  // @@protoc_insertion_point(field_get:TransportBuffers.Instruction.protocol_version)
  return protocol_version_;
}
void Instruction::set_protocol_version(::google::protobuf::uint32 value) {
  set_has_protocol_version();
  protocol_version_ = value;
  // @@protoc_insertion_point(field_set:TransportBuffers.Instruction.protocol_version)
}

// optional uint64 old_num = 2;
bool Instruction::has_old_num() const {
  return (_has_bits_[0] & 0x00000004u) != 0;
}
void Instruction::set_has_old_num() {
  _has_bits_[0] |= 0x00000004u;
}
void Instruction::clear_has_old_num() {
  _has_bits_[0] &= ~0x00000004u;
}
void Instruction::clear_old_num() {
  old_num_ = GOOGLE_ULONGLONG(0);
  clear_has_old_num();
}
::google::protobuf::uint64 Instruction::old_num() const {
  // @@protoc_insertion_point(field_get:TransportBuffers.Instruction.old_num)
  return old_num_;
}
void Instruction::set_old_num(::google::protobuf::uint64 value) {
  set_has_old_num();
  old_num_ = value;
  // @@protoc_insertion_point(field_set:TransportBuffers.Instruction.old_num)
}

// optional uint64 new_num = 3;
bool Instruction::has_new_num() const {
  return (_has_bits_[0] & 0x00000008u) != 0;
}
void Instruction::set_has_new_num() {
  _has_bits_[0] |= 0x00000008u;
}
void Instruction::clear_has_new_num() {
  _has_bits_[0] &= ~0x00000008u;
}
void Instruction::clear_new_num() {
  new_num_ = GOOGLE_ULONGLONG(0);
  clear_has_new_num();
}
::google::protobuf::uint64 Instruction::new_num() const {
  // @@protoc_insertion_point(field_get:TransportBuffers.Instruction.new_num)
  return new_num_;
}
void Instruction::set_new_num(::google::protobuf::uint64 value) {
  set_has_new_num();
  new_num_ = value;
  // @@protoc_insertion_point(field_set:TransportBuffers.Instruction.new_num)
}

// optional uint64 ack_num = 4;
bool Instruction::has_ack_num() const {
  return (_has_bits_[0] & 0x00000010u) != 0;
}
void Instruction::set_has_ack_num() {
  _has_bits_[0] |= 0x00000010u;
}
void Instruction::clear_has_ack_num() {
  _has_bits_[0] &= ~0x00000010u;
}
void Instruction::clear_ack_num() {
  ack_num_ = GOOGLE_ULONGLONG(0);
  clear_has_ack_num();
}
::google::protobuf::uint64 Instruction::ack_num() const {
  // @@protoc_insertion_point(field_get:TransportBuffers.Instruction.ack_num)
  return ack_num_;
}
void Instruction::set_ack_num(::google::protobuf::uint64 value) {
  set_has_ack_num();
  ack_num_ = value;
  // @@protoc_insertion_point(field_set:TransportBuffers.Instruction.ack_num)
}

// optional uint64 throwaway_num = 5;
bool Instruction::has_throwaway_num() const {
  return (_has_bits_[0] & 0x00000020u) != 0;
}
void Instruction::set_has_throwaway_num() {
  _has_bits_[0] |= 0x00000020u;
}
void Instruction::clear_has_throwaway_num() {
  _has_bits_[0] &= ~0x00000020u;
}
void Instruction::clear_throwaway_num() {
  throwaway_num_ = GOOGLE_ULONGLONG(0);
  clear_has_throwaway_num();
}
::google::protobuf::uint64 Instruction::throwaway_num() const {
  // @@protoc_insertion_point(field_get:TransportBuffers.Instruction.throwaway_num)
  return throwaway_num_;
}
void Instruction::set_throwaway_num(::google::protobuf::uint64 value) {
  set_has_throwaway_num();
  throwaway_num_ = value;
  // @@protoc_insertion_point(field_set:TransportBuffers.Instruction.throwaway_num)
}

// optional bytes diff = 6;
bool Instruction::has_diff() const {
  return (_has_bits_[0] & 0x00000001u) != 0;
}
void Instruction::set_has_diff() {
  _has_bits_[0] |= 0x00000001u;
}
void Instruction::clear_has_diff() {
  _has_bits_[0] &= ~0x00000001u;
}
void Instruction::clear_diff() {
  diff_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  clear_has_diff();
}
const ::std::string& Instruction::diff() const {
  // @@protoc_insertion_point(field_get:TransportBuffers.Instruction.diff)
  return diff_.GetNoArena();
}
void Instruction::set_diff(const ::std::string& value) {
  set_has_diff();
  diff_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:TransportBuffers.Instruction.diff)
}
#if LANG_CXX11
void Instruction::set_diff(::std::string&& value) {
  set_has_diff();
  diff_.SetNoArena(
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  // @@protoc_insertion_point(field_set_rvalue:TransportBuffers.Instruction.diff)
}
#endif
void Instruction::set_diff(const char* value) {
  GOOGLE_DCHECK(value != NULL);
  set_has_diff();
  diff_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:TransportBuffers.Instruction.diff)
}
void Instruction::set_diff(const void* value, size_t size) {
  set_has_diff();
  diff_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:TransportBuffers.Instruction.diff)
}
::std::string* Instruction::mutable_diff() {
  set_has_diff();
  // @@protoc_insertion_point(field_mutable:TransportBuffers.Instruction.diff)
  return diff_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* Instruction::release_diff() {
  // @@protoc_insertion_point(field_release:TransportBuffers.Instruction.diff)
  clear_has_diff();
  return diff_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Instruction::set_allocated_diff(::std::string* diff) {
  if (diff != NULL) {
    set_has_diff();
  } else {
    clear_has_diff();
  }
  diff_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), diff);
  // @@protoc_insertion_point(field_set_allocated:TransportBuffers.Instruction.diff)
}

// optional bytes chaff = 7;
bool Instruction::has_chaff() const {
  return (_has_bits_[0] & 0x00000002u) != 0;
}
void Instruction::set_has_chaff() {
  _has_bits_[0] |= 0x00000002u;
}
void Instruction::clear_has_chaff() {
  _has_bits_[0] &= ~0x00000002u;
}
void Instruction::clear_chaff() {
  chaff_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  clear_has_chaff();
}
const ::std::string& Instruction::chaff() const {
  // @@protoc_insertion_point(field_get:TransportBuffers.Instruction.chaff)
  return chaff_.GetNoArena();
}
void Instruction::set_chaff(const ::std::string& value) {
  set_has_chaff();
  chaff_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:TransportBuffers.Instruction.chaff)
}
#if LANG_CXX11
void Instruction::set_chaff(::std::string&& value) {
  set_has_chaff();
  chaff_.SetNoArena(
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  // @@protoc_insertion_point(field_set_rvalue:TransportBuffers.Instruction.chaff)
}
#endif
void Instruction::set_chaff(const char* value) {
  GOOGLE_DCHECK(value != NULL);
  set_has_chaff();
  chaff_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:TransportBuffers.Instruction.chaff)
}
void Instruction::set_chaff(const void* value, size_t size) {
  set_has_chaff();
  chaff_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:TransportBuffers.Instruction.chaff)
}
::std::string* Instruction::mutable_chaff() {
  set_has_chaff();
  // @@protoc_insertion_point(field_mutable:TransportBuffers.Instruction.chaff)
  return chaff_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
::std::string* Instruction::release_chaff() {
  // @@protoc_insertion_point(field_release:TransportBuffers.Instruction.chaff)
  clear_has_chaff();
  return chaff_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
void Instruction::set_allocated_chaff(::std::string* chaff) {
  if (chaff != NULL) {
    set_has_chaff();
  } else {
    clear_has_chaff();
  }
  chaff_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), chaff);
  // @@protoc_insertion_point(field_set_allocated:TransportBuffers.Instruction.chaff)
}

#endif  // PROTOBUF_INLINE_NOT_IN_HEADERS

// @@protoc_insertion_point(namespace_scope)

}  // namespace TransportBuffers

// @@protoc_insertion_point(global_scope)
