// Generated by the protocol buffer compiler. DO NOT EDIT! // source: stream.proto #include "stream.pb.h" #include #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/extension_set.h" #include "google/protobuf/wire_format_lite.h" #include "google/protobuf/descriptor.h" #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" #include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. #include "google/protobuf/port_def.inc" PROTOBUF_PRAGMA_INIT_SEG namespace _pb = ::google::protobuf; namespace _pbi = ::google::protobuf::internal; namespace _fl = ::google::protobuf::internal::field_layout; namespace stream { template PROTOBUF_CONSTEXPR ParamInfo::ParamInfo(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.namekey_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.strvalue_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.valuetype_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}, } {} struct ParamInfoDefaultTypeInternal { PROTOBUF_CONSTEXPR ParamInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ParamInfoDefaultTypeInternal() {} union { ParamInfo _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ParamInfoDefaultTypeInternal _ParamInfo_default_instance_; template PROTOBUF_CONSTEXPR RequestInfo::RequestInfo(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.namekey_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.strvalue_)*/ { &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}, }, /*decltype(_impl_.datatype_)*/ 0u, /*decltype(_impl_.valuetype_)*/ 0, /*decltype(_impl_._cached_size_)*/ {}, } {} struct RequestInfoDefaultTypeInternal { PROTOBUF_CONSTEXPR RequestInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~RequestInfoDefaultTypeInternal() {} union { RequestInfo _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RequestInfoDefaultTypeInternal _RequestInfo_default_instance_; template PROTOBUF_CONSTEXPR ResponseInfo::ResponseInfo(::_pbi::ConstantInitialized) : _impl_{ /*decltype(_impl_.item_)*/ {}, /*decltype(_impl_.datatype_)*/ 0u, /*decltype(_impl_.result_)*/ false, /*decltype(_impl_._cached_size_)*/ {}, } {} struct ResponseInfoDefaultTypeInternal { PROTOBUF_CONSTEXPR ResponseInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ResponseInfoDefaultTypeInternal() {} union { ResponseInfo _instance; }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseInfoDefaultTypeInternal _ResponseInfo_default_instance_; } // namespace stream static ::_pb::Metadata file_level_metadata_stream_2eproto[3]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_stream_2eproto[1]; static constexpr const ::_pb::ServiceDescriptor** file_level_service_descriptors_stream_2eproto = nullptr; const ::uint32_t TableStruct_stream_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ ~0u, // no _split_ ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.namekey_), PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.strvalue_), PROTOBUF_FIELD_OFFSET(::stream::ParamInfo, _impl_.valuetype_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::stream::RequestInfo, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ ~0u, // no _split_ ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::stream::RequestInfo, _impl_.datatype_), PROTOBUF_FIELD_OFFSET(::stream::RequestInfo, _impl_.namekey_), PROTOBUF_FIELD_OFFSET(::stream::RequestInfo, _impl_.strvalue_), PROTOBUF_FIELD_OFFSET(::stream::RequestInfo, _impl_.valuetype_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::stream::ResponseInfo, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ ~0u, // no _split_ ~0u, // no sizeof(Split) PROTOBUF_FIELD_OFFSET(::stream::ResponseInfo, _impl_.datatype_), PROTOBUF_FIELD_OFFSET(::stream::ResponseInfo, _impl_.result_), PROTOBUF_FIELD_OFFSET(::stream::ResponseInfo, _impl_.item_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { {0, -1, -1, sizeof(::stream::ParamInfo)}, {11, -1, -1, sizeof(::stream::RequestInfo)}, {23, -1, -1, sizeof(::stream::ResponseInfo)}, }; static const ::_pb::Message* const file_default_instances[] = { &::stream::_ParamInfo_default_instance_._instance, &::stream::_RequestInfo_default_instance_._instance, &::stream::_ResponseInfo_default_instance_._instance, }; const char descriptor_table_protodef_stream_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { "\n\014stream.proto\022\006stream\"O\n\tParamInfo\022\017\n\007n" "ameKey\030\001 \001(\014\022\020\n\010strValue\030\002 \001(\014\022\037\n\tvalueT" "ype\030\003 \001(\0162\014.stream.TYPE\"c\n\013RequestInfo\022\020" "\n\010dataType\030\001 \001(\r\022\017\n\007nameKey\030\002 \001(\014\022\020\n\010str" "Value\030\003 \001(\014\022\037\n\tvalueType\030\004 \001(\0162\014.stream." "TYPE\"Q\n\014ResponseInfo\022\020\n\010dataType\030\001 \001(\r\022\016" "\n\006result\030\002 \001(\010\022\037\n\004item\030\003 \003(\0132\021.stream.Pa" "ramInfo*X\n\004TYPE\022\t\n\005iBOOL\020\000\022\n\n\006iSHORT\020\001\022\013" "\n\007iUSHORT\020\002\022\010\n\004iINT\020\003\022\t\n\005iUINT\020\004\022\n\n\006iFLO" "AT\020\005\022\013\n\007iSTRING\020\0062\373\001\n\006Stream\0225\n\006Simple\022\023" ".stream.RequestInfo\032\024.stream.ResponseInf" "o\"\000\022=\n\014ServerStream\022\023.stream.RequestInfo" "\032\024.stream.ResponseInfo\"\0000\001\022=\n\014ClientStre" "am\022\023.stream.RequestInfo\032\024.stream.Respons" "eInfo\"\000(\001\022<\n\tAllStream\022\023.stream.RequestI" "nfo\032\024.stream.ResponseInfo\"\000(\0010\001B-\n\027io.gr" "pc.examples.streamB\013StreamProtoP\001\242\002\002STb\006" "proto3" }; static ::absl::once_flag descriptor_table_stream_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_stream_2eproto = { false, false, 686, descriptor_table_protodef_stream_2eproto, "stream.proto", &descriptor_table_stream_2eproto_once, nullptr, 0, 3, schemas, file_default_instances, TableStruct_stream_2eproto::offsets, file_level_metadata_stream_2eproto, file_level_enum_descriptors_stream_2eproto, file_level_service_descriptors_stream_2eproto, }; // This function exists to be marked as weak. // It can significantly speed up compilation by breaking up LLVM's SCC // in the .pb.cc translation units. Large translation units see a // reduction of more than 35% of walltime for optimized builds. Without // the weak attribute all the messages in the file, including all the // vtables and everything they use become part of the same SCC through // a cycle like: // GetMetadata -> descriptor table -> default instances -> // vtables -> GetMetadata // By adding a weak function here we break the connection from the // individual vtables back into the descriptor table. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_stream_2eproto_getter() { return &descriptor_table_stream_2eproto; } // Force running AddDescriptors() at dynamic initialization time. PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_stream_2eproto(&descriptor_table_stream_2eproto); namespace stream { const ::google::protobuf::EnumDescriptor* TYPE_descriptor() { ::google::protobuf::internal::AssignDescriptors(&descriptor_table_stream_2eproto); return file_level_enum_descriptors_stream_2eproto[0]; } bool TYPE_IsValid(int value) { switch (value) { case 0: case 1: case 2: case 3: case 4: case 5: case 6: return true; default: return false; } } // =================================================================== class ParamInfo::_Internal { public: }; ParamInfo::ParamInfo(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:stream.ParamInfo) } ParamInfo::ParamInfo(const ParamInfo& from) : ::google::protobuf::Message() { ParamInfo* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.namekey_){}, decltype(_impl_.strvalue_){}, decltype(_impl_.valuetype_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.namekey_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.namekey_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_namekey().empty()) { _this->_impl_.namekey_.Set(from._internal_namekey(), _this->GetArenaForAllocation()); } _impl_.strvalue_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.strvalue_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_strvalue().empty()) { _this->_impl_.strvalue_.Set(from._internal_strvalue(), _this->GetArenaForAllocation()); } _this->_impl_.valuetype_ = from._impl_.valuetype_; // @@protoc_insertion_point(copy_constructor:stream.ParamInfo) } inline void ParamInfo::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.namekey_){}, decltype(_impl_.strvalue_){}, decltype(_impl_.valuetype_){0}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.namekey_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.namekey_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.strvalue_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.strvalue_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ParamInfo::~ParamInfo() { // @@protoc_insertion_point(destructor:stream.ParamInfo) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void ParamInfo::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.namekey_.Destroy(); _impl_.strvalue_.Destroy(); } void ParamInfo::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void ParamInfo::Clear() { // @@protoc_insertion_point(message_clear_start:stream.ParamInfo) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.namekey_.ClearToEmpty(); _impl_.strvalue_.ClearToEmpty(); _impl_.valuetype_ = 0; _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* ParamInfo::_InternalParse( const char* ptr, ::_pbi::ParseContext* ctx) { ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 3, 0, 0, 2> ParamInfo::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967288, // skipmap offsetof(decltype(_table_), field_entries), 3, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries &_ParamInfo_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ {::_pbi::TcParser::MiniParse, {}}, // bytes nameKey = 1; {::_pbi::TcParser::FastBS1, {10, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.namekey_)}}, // bytes strValue = 2; {::_pbi::TcParser::FastBS1, {18, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.strvalue_)}}, // .stream.TYPE valueType = 3; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ParamInfo, _impl_.valuetype_), 63>(), {24, 63, 0, PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.valuetype_)}}, }}, {{ 65535, 65535 }}, {{ // bytes nameKey = 1; {PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.namekey_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes strValue = 2; {PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.strvalue_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, // .stream.TYPE valueType = 3; {PROTOBUF_FIELD_OFFSET(ParamInfo, _impl_.valuetype_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, }}, // no aux_entries {{ }}, }; ::uint8_t* ParamInfo::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:stream.ParamInfo) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // bytes nameKey = 1; if (!this->_internal_namekey().empty()) { const std::string& _s = this->_internal_namekey(); target = stream->WriteBytesMaybeAliased(1, _s, target); } // bytes strValue = 2; if (!this->_internal_strvalue().empty()) { const std::string& _s = this->_internal_strvalue(); target = stream->WriteBytesMaybeAliased(2, _s, target); } // .stream.TYPE valueType = 3; if (this->_internal_valuetype() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 3, this->_internal_valuetype(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:stream.ParamInfo) return target; } ::size_t ParamInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:stream.ParamInfo) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bytes nameKey = 1; if (!this->_internal_namekey().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this->_internal_namekey()); } // bytes strValue = 2; if (!this->_internal_strvalue().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this->_internal_strvalue()); } // .stream.TYPE valueType = 3; if (this->_internal_valuetype() != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this->_internal_valuetype()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData ParamInfo::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, ParamInfo::MergeImpl }; const ::google::protobuf::Message::ClassData*ParamInfo::GetClassData() const { return &_class_data_; } void ParamInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:stream.ParamInfo) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_namekey().empty()) { _this->_internal_set_namekey(from._internal_namekey()); } if (!from._internal_strvalue().empty()) { _this->_internal_set_strvalue(from._internal_strvalue()); } if (from._internal_valuetype() != 0) { _this->_internal_set_valuetype(from._internal_valuetype()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ParamInfo::CopyFrom(const ParamInfo& from) { // @@protoc_insertion_point(class_specific_copy_from_start:stream.ParamInfo) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool ParamInfo::IsInitialized() const { return true; } void ParamInfo::InternalSwap(ParamInfo* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.namekey_, lhs_arena, &other->_impl_.namekey_, rhs_arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.strvalue_, lhs_arena, &other->_impl_.strvalue_, rhs_arena); swap(_impl_.valuetype_, other->_impl_.valuetype_); } ::google::protobuf::Metadata ParamInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, file_level_metadata_stream_2eproto[0]); } // =================================================================== class RequestInfo::_Internal { public: }; RequestInfo::RequestInfo(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:stream.RequestInfo) } RequestInfo::RequestInfo(const RequestInfo& from) : ::google::protobuf::Message() { RequestInfo* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.namekey_){}, decltype(_impl_.strvalue_){}, decltype(_impl_.datatype_){}, decltype(_impl_.valuetype_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); _impl_.namekey_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.namekey_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_namekey().empty()) { _this->_impl_.namekey_.Set(from._internal_namekey(), _this->GetArenaForAllocation()); } _impl_.strvalue_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.strvalue_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_strvalue().empty()) { _this->_impl_.strvalue_.Set(from._internal_strvalue(), _this->GetArenaForAllocation()); } ::memcpy(&_impl_.datatype_, &from._impl_.datatype_, static_cast<::size_t>(reinterpret_cast(&_impl_.valuetype_) - reinterpret_cast(&_impl_.datatype_)) + sizeof(_impl_.valuetype_)); // @@protoc_insertion_point(copy_constructor:stream.RequestInfo) } inline void RequestInfo::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.namekey_){}, decltype(_impl_.strvalue_){}, decltype(_impl_.datatype_){0u}, decltype(_impl_.valuetype_){0}, /*decltype(_impl_._cached_size_)*/ {}, }; _impl_.namekey_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.namekey_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.strvalue_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.strvalue_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } RequestInfo::~RequestInfo() { // @@protoc_insertion_point(destructor:stream.RequestInfo) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void RequestInfo::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.namekey_.Destroy(); _impl_.strvalue_.Destroy(); } void RequestInfo::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void RequestInfo::Clear() { // @@protoc_insertion_point(message_clear_start:stream.RequestInfo) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.namekey_.ClearToEmpty(); _impl_.strvalue_.ClearToEmpty(); ::memset(&_impl_.datatype_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.valuetype_) - reinterpret_cast(&_impl_.datatype_)) + sizeof(_impl_.valuetype_)); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* RequestInfo::_InternalParse( const char* ptr, ::_pbi::ParseContext* ctx) { ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 4, 0, 0, 2> RequestInfo::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ 4, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967280, // skipmap offsetof(decltype(_table_), field_entries), 4, // num_field_entries 0, // num_aux_entries offsetof(decltype(_table_), field_names), // no aux_entries &_RequestInfo_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ // .stream.TYPE valueType = 4; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RequestInfo, _impl_.valuetype_), 63>(), {32, 63, 0, PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.valuetype_)}}, // uint32 dataType = 1; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RequestInfo, _impl_.datatype_), 63>(), {8, 63, 0, PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.datatype_)}}, // bytes nameKey = 2; {::_pbi::TcParser::FastBS1, {18, 63, 0, PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.namekey_)}}, // bytes strValue = 3; {::_pbi::TcParser::FastBS1, {26, 63, 0, PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.strvalue_)}}, }}, {{ 65535, 65535 }}, {{ // uint32 dataType = 1; {PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.datatype_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, // bytes nameKey = 2; {PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.namekey_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, // bytes strValue = 3; {PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.strvalue_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)}, // .stream.TYPE valueType = 4; {PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.valuetype_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, }}, // no aux_entries {{ }}, }; ::uint8_t* RequestInfo::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:stream.RequestInfo) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint32 dataType = 1; if (this->_internal_datatype() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( 1, this->_internal_datatype(), target); } // bytes nameKey = 2; if (!this->_internal_namekey().empty()) { const std::string& _s = this->_internal_namekey(); target = stream->WriteBytesMaybeAliased(2, _s, target); } // bytes strValue = 3; if (!this->_internal_strvalue().empty()) { const std::string& _s = this->_internal_strvalue(); target = stream->WriteBytesMaybeAliased(3, _s, target); } // .stream.TYPE valueType = 4; if (this->_internal_valuetype() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( 4, this->_internal_valuetype(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:stream.RequestInfo) return target; } ::size_t RequestInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:stream.RequestInfo) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bytes nameKey = 2; if (!this->_internal_namekey().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this->_internal_namekey()); } // bytes strValue = 3; if (!this->_internal_strvalue().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( this->_internal_strvalue()); } // uint32 dataType = 1; if (this->_internal_datatype() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( this->_internal_datatype()); } // .stream.TYPE valueType = 4; if (this->_internal_valuetype() != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this->_internal_valuetype()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData RequestInfo::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, RequestInfo::MergeImpl }; const ::google::protobuf::Message::ClassData*RequestInfo::GetClassData() const { return &_class_data_; } void RequestInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:stream.RequestInfo) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; if (!from._internal_namekey().empty()) { _this->_internal_set_namekey(from._internal_namekey()); } if (!from._internal_strvalue().empty()) { _this->_internal_set_strvalue(from._internal_strvalue()); } if (from._internal_datatype() != 0) { _this->_internal_set_datatype(from._internal_datatype()); } if (from._internal_valuetype() != 0) { _this->_internal_set_valuetype(from._internal_valuetype()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void RequestInfo::CopyFrom(const RequestInfo& from) { // @@protoc_insertion_point(class_specific_copy_from_start:stream.RequestInfo) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool RequestInfo::IsInitialized() const { return true; } void RequestInfo::InternalSwap(RequestInfo* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.namekey_, lhs_arena, &other->_impl_.namekey_, rhs_arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.strvalue_, lhs_arena, &other->_impl_.strvalue_, rhs_arena); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.valuetype_) + sizeof(RequestInfo::_impl_.valuetype_) - PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.datatype_)>( reinterpret_cast(&_impl_.datatype_), reinterpret_cast(&other->_impl_.datatype_)); } ::google::protobuf::Metadata RequestInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, file_level_metadata_stream_2eproto[1]); } // =================================================================== class ResponseInfo::_Internal { public: }; ResponseInfo::ResponseInfo(::google::protobuf::Arena* arena) : ::google::protobuf::Message(arena) { SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:stream.ResponseInfo) } ResponseInfo::ResponseInfo(const ResponseInfo& from) : ::google::protobuf::Message() { ResponseInfo* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.item_){from._impl_.item_}, decltype(_impl_.datatype_){}, decltype(_impl_.result_){}, /*decltype(_impl_._cached_size_)*/ {}, }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); ::memcpy(&_impl_.datatype_, &from._impl_.datatype_, static_cast<::size_t>(reinterpret_cast(&_impl_.result_) - reinterpret_cast(&_impl_.datatype_)) + sizeof(_impl_.result_)); // @@protoc_insertion_point(copy_constructor:stream.ResponseInfo) } inline void ResponseInfo::SharedCtor(::_pb::Arena* arena) { (void)arena; new (&_impl_) Impl_{ decltype(_impl_.item_){arena}, decltype(_impl_.datatype_){0u}, decltype(_impl_.result_){false}, /*decltype(_impl_._cached_size_)*/ {}, }; } ResponseInfo::~ResponseInfo() { // @@protoc_insertion_point(destructor:stream.ResponseInfo) _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); SharedDtor(); } inline void ResponseInfo::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.item_.~RepeatedPtrField(); } void ResponseInfo::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } PROTOBUF_NOINLINE void ResponseInfo::Clear() { // @@protoc_insertion_point(message_clear_start:stream.ResponseInfo) ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _internal_mutable_item()->Clear(); ::memset(&_impl_.datatype_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.result_) - reinterpret_cast(&_impl_.datatype_)) + sizeof(_impl_.result_)); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } const char* ResponseInfo::_InternalParse( const char* ptr, ::_pbi::ParseContext* ctx) { ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; } PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::_pbi::TcParseTable<2, 3, 1, 0, 2> ResponseInfo::_table_ = { { 0, // no _has_bits_ 0, // no _extensions_ 3, 24, // max_field_number, fast_idx_mask offsetof(decltype(_table_), field_lookup_table), 4294967288, // skipmap offsetof(decltype(_table_), field_entries), 3, // num_field_entries 1, // num_aux_entries offsetof(decltype(_table_), aux_entries), &_ResponseInfo_default_instance_._instance, ::_pbi::TcParser::GenericFallback, // fallback }, {{ {::_pbi::TcParser::MiniParse, {}}, // uint32 dataType = 1; {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ResponseInfo, _impl_.datatype_), 63>(), {8, 63, 0, PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.datatype_)}}, // bool result = 2; {::_pbi::TcParser::SingularVarintNoZag1(), {16, 63, 0, PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.result_)}}, // repeated .stream.ParamInfo item = 3; {::_pbi::TcParser::FastMtR1, {26, 63, 0, PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.item_)}}, }}, {{ 65535, 65535 }}, {{ // uint32 dataType = 1; {PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.datatype_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kUInt32)}, // bool result = 2; {PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.result_), 0, 0, (0 | ::_fl::kFcSingular | ::_fl::kBool)}, // repeated .stream.ParamInfo item = 3; {PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.item_), 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, }}, {{ {::_pbi::TcParser::GetTable<::stream::ParamInfo>()}, }}, {{ }}, }; ::uint8_t* ResponseInfo::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:stream.ResponseInfo) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; // uint32 dataType = 1; if (this->_internal_datatype() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt32ToArray( 1, this->_internal_datatype(), target); } // bool result = 2; if (this->_internal_result() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( 2, this->_internal_result(), target); } // repeated .stream.ParamInfo item = 3; for (unsigned i = 0, n = static_cast(this->_internal_item_size()); i < n; i++) { const auto& repfield = this->_internal_item().Get(i); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:stream.ResponseInfo) return target; } ::size_t ResponseInfo::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:stream.ResponseInfo) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .stream.ParamInfo item = 3; total_size += 1UL * this->_internal_item_size(); for (const auto& msg : this->_internal_item()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } // uint32 dataType = 1; if (this->_internal_datatype() != 0) { total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( this->_internal_datatype()); } // bool result = 2; if (this->_internal_result() != 0) { total_size += 2; } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } const ::google::protobuf::Message::ClassData ResponseInfo::_class_data_ = { ::google::protobuf::Message::CopyWithSourceCheck, ResponseInfo::MergeImpl }; const ::google::protobuf::Message::ClassData*ResponseInfo::GetClassData() const { return &_class_data_; } void ResponseInfo::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) { auto* const _this = static_cast(&to_msg); auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:stream.ResponseInfo) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; (void) cached_has_bits; _this->_internal_mutable_item()->MergeFrom(from._internal_item()); if (from._internal_datatype() != 0) { _this->_internal_set_datatype(from._internal_datatype()); } if (from._internal_result() != 0) { _this->_internal_set_result(from._internal_result()); } _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ResponseInfo::CopyFrom(const ResponseInfo& from) { // @@protoc_insertion_point(class_specific_copy_from_start:stream.ResponseInfo) if (&from == this) return; Clear(); MergeFrom(from); } PROTOBUF_NOINLINE bool ResponseInfo::IsInitialized() const { return true; } void ResponseInfo::InternalSwap(ResponseInfo* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); _impl_.item_.InternalSwap(&other->_impl_.item_); ::google::protobuf::internal::memswap< PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.result_) + sizeof(ResponseInfo::_impl_.result_) - PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.datatype_)>( reinterpret_cast(&_impl_.datatype_), reinterpret_cast(&other->_impl_.datatype_)); } ::google::protobuf::Metadata ResponseInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_stream_2eproto_getter, &descriptor_table_stream_2eproto_once, file_level_metadata_stream_2eproto[2]); } // @@protoc_insertion_point(namespace_scope) } // namespace stream namespace google { namespace protobuf { } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc"