// Generated by the protocol buffer compiler. DO NOT EDIT! // source: client_gateway.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "client_gateway.pb.h" #include #include #include #include #include #include #include // @@protoc_insertion_point(includes) namespace ipc { namespace invalidation { class ClientGatewayMessageDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed { } _ClientGatewayMessage_default_instance_; namespace protobuf_client_5fgateway_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() { _ClientGatewayMessage_default_instance_.Shutdown(); } void TableStruct::InitDefaultsImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; ::google::protobuf::internal::InitProtobufDefaults(); _ClientGatewayMessage_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); } } // namespace protobuf_client_5fgateway_2eproto // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int ClientGatewayMessage::kIsClientToServerFieldNumber; const int ClientGatewayMessage::kServiceContextFieldNumber; const int ClientGatewayMessage::kRpcSchedulingHashFieldNumber; const int ClientGatewayMessage::kNetworkMessageFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ClientGatewayMessage::ClientGatewayMessage() : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { protobuf_client_5fgateway_2eproto::InitDefaults(); } SharedCtor(); // @@protoc_insertion_point(constructor:ipc.invalidation.ClientGatewayMessage) } ClientGatewayMessage::ClientGatewayMessage(const ClientGatewayMessage& from) : ::google::protobuf::MessageLite(), _internal_metadata_(NULL), _has_bits_(from._has_bits_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); service_context_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_service_context()) { service_context_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.service_context_); } network_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.has_network_message()) { network_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.network_message_); } ::memcpy(&rpc_scheduling_hash_, &from.rpc_scheduling_hash_, static_cast(reinterpret_cast(&is_client_to_server_) - reinterpret_cast(&rpc_scheduling_hash_)) + sizeof(is_client_to_server_)); // @@protoc_insertion_point(copy_constructor:ipc.invalidation.ClientGatewayMessage) } void ClientGatewayMessage::SharedCtor() { _cached_size_ = 0; service_context_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); network_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&rpc_scheduling_hash_, 0, static_cast( reinterpret_cast(&is_client_to_server_) - reinterpret_cast(&rpc_scheduling_hash_)) + sizeof(is_client_to_server_)); } ClientGatewayMessage::~ClientGatewayMessage() { // @@protoc_insertion_point(destructor:ipc.invalidation.ClientGatewayMessage) SharedDtor(); } void ClientGatewayMessage::SharedDtor() { service_context_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); network_message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void ClientGatewayMessage::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ClientGatewayMessage& ClientGatewayMessage::default_instance() { protobuf_client_5fgateway_2eproto::InitDefaults(); return *internal_default_instance(); } ClientGatewayMessage* ClientGatewayMessage::New(::google::protobuf::Arena* arena) const { ClientGatewayMessage* n = new ClientGatewayMessage; if (arena != NULL) { arena->Own(n); } return n; } void ClientGatewayMessage::Clear() { // @@protoc_insertion_point(message_clear_start:ipc.invalidation.ClientGatewayMessage) if (_has_bits_[0 / 32] & 3u) { if (has_service_context()) { GOOGLE_DCHECK(!service_context_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*service_context_.UnsafeRawStringPointer())->clear(); } if (has_network_message()) { GOOGLE_DCHECK(!network_message_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited())); (*network_message_.UnsafeRawStringPointer())->clear(); } } if (_has_bits_[0 / 32] & 12u) { ::memset(&rpc_scheduling_hash_, 0, static_cast( reinterpret_cast(&is_client_to_server_) - reinterpret_cast(&rpc_scheduling_hash_)) + sizeof(is_client_to_server_)); } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool ClientGatewayMessage::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:ipc.invalidation.ClientGatewayMessage) 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 bool is_client_to_server = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(8u)) { set_has_is_client_to_server(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &is_client_to_server_))); } else { goto handle_unusual; } break; } // optional bytes service_context = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( input, this->mutable_service_context())); } else { goto handle_unusual; } break; } // optional int64 rpc_scheduling_hash = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(24u)) { set_has_rpc_scheduling_hash(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &rpc_scheduling_hash_))); } else { goto handle_unusual; } break; } // optional bytes network_message = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(34u)) { DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( input, this->mutable_network_message())); } 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:ipc.invalidation.ClientGatewayMessage) return true; failure: // @@protoc_insertion_point(parse_failure:ipc.invalidation.ClientGatewayMessage) return false; #undef DO_ } void ClientGatewayMessage::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:ipc.invalidation.ClientGatewayMessage) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional bool is_client_to_server = 1; if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->is_client_to_server(), output); } // optional bytes service_context = 2; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( 2, this->service_context(), output); } // optional int64 rpc_scheduling_hash = 3; if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->rpc_scheduling_hash(), output); } // optional bytes network_message = 4; if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( 4, this->network_message(), output); } output->WriteRaw(unknown_fields().data(), static_cast(unknown_fields().size())); // @@protoc_insertion_point(serialize_end:ipc.invalidation.ClientGatewayMessage) } size_t ClientGatewayMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:ipc.invalidation.ClientGatewayMessage) size_t total_size = 0; total_size += unknown_fields().size(); if (_has_bits_[0 / 32] & 15u) { // optional bytes service_context = 2; if (has_service_context()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this->service_context()); } // optional bytes network_message = 4; if (has_network_message()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this->network_message()); } // optional int64 rpc_scheduling_hash = 3; if (has_rpc_scheduling_hash()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int64Size( this->rpc_scheduling_hash()); } // optional bool is_client_to_server = 1; if (has_is_client_to_server()) { total_size += 1 + 1; } } 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 ClientGatewayMessage::CheckTypeAndMergeFrom( const ::google::protobuf::MessageLite& from) { MergeFrom(*::google::protobuf::down_cast(&from)); } void ClientGatewayMessage::MergeFrom(const ClientGatewayMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:ipc.invalidation.ClientGatewayMessage) 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 & 15u) { if (cached_has_bits & 0x00000001u) { set_has_service_context(); service_context_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.service_context_); } if (cached_has_bits & 0x00000002u) { set_has_network_message(); network_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.network_message_); } if (cached_has_bits & 0x00000004u) { rpc_scheduling_hash_ = from.rpc_scheduling_hash_; } if (cached_has_bits & 0x00000008u) { is_client_to_server_ = from.is_client_to_server_; } _has_bits_[0] |= cached_has_bits; } } void ClientGatewayMessage::CopyFrom(const ClientGatewayMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:ipc.invalidation.ClientGatewayMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool ClientGatewayMessage::IsInitialized() const { return true; } void ClientGatewayMessage::Swap(ClientGatewayMessage* other) { if (other == this) return; InternalSwap(other); } void ClientGatewayMessage::InternalSwap(ClientGatewayMessage* other) { service_context_.Swap(&other->service_context_); network_message_.Swap(&other->network_message_); std::swap(rpc_scheduling_hash_, other->rpc_scheduling_hash_); std::swap(is_client_to_server_, other->is_client_to_server_); std::swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); std::swap(_cached_size_, other->_cached_size_); } ::std::string ClientGatewayMessage::GetTypeName() const { return "ipc.invalidation.ClientGatewayMessage"; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // ClientGatewayMessage // optional bool is_client_to_server = 1; bool ClientGatewayMessage::has_is_client_to_server() const { return (_has_bits_[0] & 0x00000008u) != 0; } void ClientGatewayMessage::set_has_is_client_to_server() { _has_bits_[0] |= 0x00000008u; } void ClientGatewayMessage::clear_has_is_client_to_server() { _has_bits_[0] &= ~0x00000008u; } void ClientGatewayMessage::clear_is_client_to_server() { is_client_to_server_ = false; clear_has_is_client_to_server(); } bool ClientGatewayMessage::is_client_to_server() const { // @@protoc_insertion_point(field_get:ipc.invalidation.ClientGatewayMessage.is_client_to_server) return is_client_to_server_; } void ClientGatewayMessage::set_is_client_to_server(bool value) { set_has_is_client_to_server(); is_client_to_server_ = value; // @@protoc_insertion_point(field_set:ipc.invalidation.ClientGatewayMessage.is_client_to_server) } // optional bytes service_context = 2; bool ClientGatewayMessage::has_service_context() const { return (_has_bits_[0] & 0x00000001u) != 0; } void ClientGatewayMessage::set_has_service_context() { _has_bits_[0] |= 0x00000001u; } void ClientGatewayMessage::clear_has_service_context() { _has_bits_[0] &= ~0x00000001u; } void ClientGatewayMessage::clear_service_context() { service_context_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_service_context(); } const ::std::string& ClientGatewayMessage::service_context() const { // @@protoc_insertion_point(field_get:ipc.invalidation.ClientGatewayMessage.service_context) return service_context_.GetNoArena(); } void ClientGatewayMessage::set_service_context(const ::std::string& value) { set_has_service_context(); service_context_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:ipc.invalidation.ClientGatewayMessage.service_context) } #if LANG_CXX11 void ClientGatewayMessage::set_service_context(::std::string&& value) { set_has_service_context(); service_context_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:ipc.invalidation.ClientGatewayMessage.service_context) } #endif void ClientGatewayMessage::set_service_context(const char* value) { GOOGLE_DCHECK(value != NULL); set_has_service_context(); service_context_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:ipc.invalidation.ClientGatewayMessage.service_context) } void ClientGatewayMessage::set_service_context(const void* value, size_t size) { set_has_service_context(); service_context_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:ipc.invalidation.ClientGatewayMessage.service_context) } ::std::string* ClientGatewayMessage::mutable_service_context() { set_has_service_context(); // @@protoc_insertion_point(field_mutable:ipc.invalidation.ClientGatewayMessage.service_context) return service_context_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } ::std::string* ClientGatewayMessage::release_service_context() { // @@protoc_insertion_point(field_release:ipc.invalidation.ClientGatewayMessage.service_context) clear_has_service_context(); return service_context_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void ClientGatewayMessage::set_allocated_service_context(::std::string* service_context) { if (service_context != NULL) { set_has_service_context(); } else { clear_has_service_context(); } service_context_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), service_context); // @@protoc_insertion_point(field_set_allocated:ipc.invalidation.ClientGatewayMessage.service_context) } // optional int64 rpc_scheduling_hash = 3; bool ClientGatewayMessage::has_rpc_scheduling_hash() const { return (_has_bits_[0] & 0x00000004u) != 0; } void ClientGatewayMessage::set_has_rpc_scheduling_hash() { _has_bits_[0] |= 0x00000004u; } void ClientGatewayMessage::clear_has_rpc_scheduling_hash() { _has_bits_[0] &= ~0x00000004u; } void ClientGatewayMessage::clear_rpc_scheduling_hash() { rpc_scheduling_hash_ = GOOGLE_LONGLONG(0); clear_has_rpc_scheduling_hash(); } ::google::protobuf::int64 ClientGatewayMessage::rpc_scheduling_hash() const { // @@protoc_insertion_point(field_get:ipc.invalidation.ClientGatewayMessage.rpc_scheduling_hash) return rpc_scheduling_hash_; } void ClientGatewayMessage::set_rpc_scheduling_hash(::google::protobuf::int64 value) { set_has_rpc_scheduling_hash(); rpc_scheduling_hash_ = value; // @@protoc_insertion_point(field_set:ipc.invalidation.ClientGatewayMessage.rpc_scheduling_hash) } // optional bytes network_message = 4; bool ClientGatewayMessage::has_network_message() const { return (_has_bits_[0] & 0x00000002u) != 0; } void ClientGatewayMessage::set_has_network_message() { _has_bits_[0] |= 0x00000002u; } void ClientGatewayMessage::clear_has_network_message() { _has_bits_[0] &= ~0x00000002u; } void ClientGatewayMessage::clear_network_message() { network_message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_network_message(); } const ::std::string& ClientGatewayMessage::network_message() const { // @@protoc_insertion_point(field_get:ipc.invalidation.ClientGatewayMessage.network_message) return network_message_.GetNoArena(); } void ClientGatewayMessage::set_network_message(const ::std::string& value) { set_has_network_message(); network_message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:ipc.invalidation.ClientGatewayMessage.network_message) } #if LANG_CXX11 void ClientGatewayMessage::set_network_message(::std::string&& value) { set_has_network_message(); network_message_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:ipc.invalidation.ClientGatewayMessage.network_message) } #endif void ClientGatewayMessage::set_network_message(const char* value) { GOOGLE_DCHECK(value != NULL); set_has_network_message(); network_message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:ipc.invalidation.ClientGatewayMessage.network_message) } void ClientGatewayMessage::set_network_message(const void* value, size_t size) { set_has_network_message(); network_message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:ipc.invalidation.ClientGatewayMessage.network_message) } ::std::string* ClientGatewayMessage::mutable_network_message() { set_has_network_message(); // @@protoc_insertion_point(field_mutable:ipc.invalidation.ClientGatewayMessage.network_message) return network_message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } ::std::string* ClientGatewayMessage::release_network_message() { // @@protoc_insertion_point(field_release:ipc.invalidation.ClientGatewayMessage.network_message) clear_has_network_message(); return network_message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void ClientGatewayMessage::set_allocated_network_message(::std::string* network_message) { if (network_message != NULL) { set_has_network_message(); } else { clear_has_network_message(); } network_message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), network_message); // @@protoc_insertion_point(field_set_allocated:ipc.invalidation.ClientGatewayMessage.network_message) } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) } // namespace invalidation } // namespace ipc // @@protoc_insertion_point(global_scope)