973 lines
37 KiB
C++
973 lines
37 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: stream.proto
|
|
|
|
#include "stream.pb.h"
|
|
|
|
#include <algorithm>
|
|
#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 <typename>
|
|
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_)*/ 0,
|
|
/*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 <typename>
|
|
PROTOBUF_CONSTEXPR ResponseInfo::ResponseInfo(::_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_)*/ 0,
|
|
/*decltype(_impl_.result_)*/ false,
|
|
/*decltype(_impl_.valuetype_)*/ 0,
|
|
/*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[2];
|
|
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_stream_2eproto[4];
|
|
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::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_.namekey_),
|
|
PROTOBUF_FIELD_OFFSET(::stream::ResponseInfo, _impl_.strvalue_),
|
|
PROTOBUF_FIELD_OFFSET(::stream::ResponseInfo, _impl_.valuetype_),
|
|
};
|
|
|
|
static const ::_pbi::MigrationSchema
|
|
schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
{0, -1, -1, sizeof(::stream::RequestInfo)},
|
|
{12, -1, -1, sizeof(::stream::ResponseInfo)},
|
|
};
|
|
|
|
static const ::_pb::Message* const file_default_instances[] = {
|
|
&::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\"\271\005\n\013RequestInfo\022,"
|
|
"\n\010dataType\030\001 \001(\0162\032.stream.RequestInfo.St"
|
|
"atus\022\017\n\007nameKey\030\002 \001(\014\022\020\n\010strValue\030\003 \001(\014\022"
|
|
"+\n\tvalueType\030\004 \001(\0162\030.stream.RequestInfo."
|
|
"TYPE\"\321\003\n\006Status\022\007\n\003GET\020\000\022\007\n\003SET\020\001\022\010\n\004LOA"
|
|
"D\020\002\022\013\n\007LOADOUT\020\003\022\023\n\017SUPPLYAXLEAFTER\020\004\022\023\n"
|
|
"\017SUPPLYAXLEFRONT\020\005\022\027\n\023SUPPLYAXLEAFTERCON"
|
|
"T\020\006\022\027\n\023SUPPLYAXLEFRONTCONT\020\007\022\021\n\rPAVEAXLE"
|
|
"FRONT\020\010\022\025\n\021PAVEAXLEFRONTCONT\020\t\022\021\n\rPAVEAX"
|
|
"LEAFTER\020\n\022\025\n\021PAVEAXLEAFTERCONT\020\013\022\021\n\rPAVE"
|
|
"AXLECLEAR\020\014\022\017\n\013PRINTAXLEUP\020\r\022\023\n\017PRINTAXL"
|
|
"EUPCONT\020\016\022\021\n\rPRINTAXLEDOWN\020\017\022\025\n\021PRINTAXL"
|
|
"EDOWNCONT\020\020\022\022\n\016PRINTAXLECLEAR\020\021\022\024\n\020TRANS"
|
|
"FERAXIELEFT\020\022\022\030\n\024TRANSFERAXIELEFTCONT\020\023\022"
|
|
"\025\n\021TRANSFERAXIERIGHT\020\024\022\031\n\025TRANSFERAXIERI"
|
|
"GHTCONT\020\025\022\025\n\021TRANSFERAXIECLEAR\020\026\"X\n\004TYPE"
|
|
"\022\t\n\005iBOOL\020\000\022\n\n\006iSHORT\020\001\022\013\n\007iUSHORT\020\002\022\010\n\004"
|
|
"iINT\020\003\022\t\n\005iUINT\020\004\022\n\n\006iFLOAT\020\005\022\013\n\007iSTRING"
|
|
"\020\006\"\275\003\n\014ResponseInfo\022-\n\010dataType\030\001 \001(\0162\033."
|
|
"stream.ResponseInfo.Status\022\016\n\006result\030\002 \001"
|
|
"(\010\022\017\n\007nameKey\030\003 \001(\014\022\020\n\010strValue\030\004 \001(\014\022,\n"
|
|
"\tvalueType\030\005 \001(\0162\031.stream.ResponseInfo.T"
|
|
"YPE\"\302\001\n\006Status\022\020\n\014ProcReadPLC0\020\000\022\020\n\014Proc"
|
|
"ReadPLC1\020\001\022\020\n\014ProcReadPLC2\020\002\022\020\n\014ProcRead"
|
|
"PLC3\020\003\022\020\n\014ProcReadPLC4\020\004\022\020\n\014ProcReadPLC5"
|
|
"\020\005\022\020\n\014ProcReadPLC6\020\006\022\024\n\020ProcReadPLCData0"
|
|
"\020\007\022\t\n\005ALARM\020\010\022\013\n\007RESPOND\020\t\022\014\n\010TIMEDATA\020\n"
|
|
"\"X\n\004TYPE\022\t\n\005iBOOL\020\000\022\n\n\006iSHORT\020\001\022\013\n\007iUSHO"
|
|
"RT\020\002\022\010\n\004iINT\020\003\022\t\n\005iUINT\020\004\022\n\n\006iFLOAT\020\005\022\013\n"
|
|
"\007ISTRING\020\0062\373\001\n\006Stream\0225\n\006Simple\022\023.stream"
|
|
".RequestInfo\032\024.stream.ResponseInfo\"\000\022=\n\014"
|
|
"ServerStream\022\023.stream.RequestInfo\032\024.stre"
|
|
"am.ResponseInfo\"\0000\001\022=\n\014ClientStream\022\023.st"
|
|
"ream.RequestInfo\032\024.stream.ResponseInfo\"\000"
|
|
"(\001\022<\n\tAllStream\022\023.stream.RequestInfo\032\024.s"
|
|
"tream.ResponseInfo\"\000(\0010\001B-\n\027io.grpc.exam"
|
|
"ples.streamB\013StreamProtoP\001\242\002\002STb\006proto3"
|
|
};
|
|
static ::absl::once_flag descriptor_table_stream_2eproto_once;
|
|
const ::_pbi::DescriptorTable descriptor_table_stream_2eproto = {
|
|
false,
|
|
false,
|
|
1479,
|
|
descriptor_table_protodef_stream_2eproto,
|
|
"stream.proto",
|
|
&descriptor_table_stream_2eproto_once,
|
|
nullptr,
|
|
0,
|
|
2,
|
|
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* RequestInfo_Status_descriptor() {
|
|
::google::protobuf::internal::AssignDescriptors(&descriptor_table_stream_2eproto);
|
|
return file_level_enum_descriptors_stream_2eproto[0];
|
|
}
|
|
bool RequestInfo_Status_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
case 5:
|
|
case 6:
|
|
case 7:
|
|
case 8:
|
|
case 9:
|
|
case 10:
|
|
case 11:
|
|
case 12:
|
|
case 13:
|
|
case 14:
|
|
case 15:
|
|
case 16:
|
|
case 17:
|
|
case 18:
|
|
case 19:
|
|
case 20:
|
|
case 21:
|
|
case 22:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
#if (__cplusplus < 201703) && \
|
|
(!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
|
|
|
|
constexpr RequestInfo_Status RequestInfo::GET;
|
|
constexpr RequestInfo_Status RequestInfo::SET;
|
|
constexpr RequestInfo_Status RequestInfo::LOAD;
|
|
constexpr RequestInfo_Status RequestInfo::LOADOUT;
|
|
constexpr RequestInfo_Status RequestInfo::SUPPLYAXLEAFTER;
|
|
constexpr RequestInfo_Status RequestInfo::SUPPLYAXLEFRONT;
|
|
constexpr RequestInfo_Status RequestInfo::SUPPLYAXLEAFTERCONT;
|
|
constexpr RequestInfo_Status RequestInfo::SUPPLYAXLEFRONTCONT;
|
|
constexpr RequestInfo_Status RequestInfo::PAVEAXLEFRONT;
|
|
constexpr RequestInfo_Status RequestInfo::PAVEAXLEFRONTCONT;
|
|
constexpr RequestInfo_Status RequestInfo::PAVEAXLEAFTER;
|
|
constexpr RequestInfo_Status RequestInfo::PAVEAXLEAFTERCONT;
|
|
constexpr RequestInfo_Status RequestInfo::PAVEAXLECLEAR;
|
|
constexpr RequestInfo_Status RequestInfo::PRINTAXLEUP;
|
|
constexpr RequestInfo_Status RequestInfo::PRINTAXLEUPCONT;
|
|
constexpr RequestInfo_Status RequestInfo::PRINTAXLEDOWN;
|
|
constexpr RequestInfo_Status RequestInfo::PRINTAXLEDOWNCONT;
|
|
constexpr RequestInfo_Status RequestInfo::PRINTAXLECLEAR;
|
|
constexpr RequestInfo_Status RequestInfo::TRANSFERAXIELEFT;
|
|
constexpr RequestInfo_Status RequestInfo::TRANSFERAXIELEFTCONT;
|
|
constexpr RequestInfo_Status RequestInfo::TRANSFERAXIERIGHT;
|
|
constexpr RequestInfo_Status RequestInfo::TRANSFERAXIERIGHTCONT;
|
|
constexpr RequestInfo_Status RequestInfo::TRANSFERAXIECLEAR;
|
|
constexpr RequestInfo_Status RequestInfo::Status_MIN;
|
|
constexpr RequestInfo_Status RequestInfo::Status_MAX;
|
|
constexpr int RequestInfo::Status_ARRAYSIZE;
|
|
|
|
#endif // (__cplusplus < 201703) &&
|
|
// (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
|
|
const ::google::protobuf::EnumDescriptor* RequestInfo_TYPE_descriptor() {
|
|
::google::protobuf::internal::AssignDescriptors(&descriptor_table_stream_2eproto);
|
|
return file_level_enum_descriptors_stream_2eproto[1];
|
|
}
|
|
bool RequestInfo_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;
|
|
}
|
|
}
|
|
#if (__cplusplus < 201703) && \
|
|
(!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
|
|
|
|
constexpr RequestInfo_TYPE RequestInfo::iBOOL;
|
|
constexpr RequestInfo_TYPE RequestInfo::iSHORT;
|
|
constexpr RequestInfo_TYPE RequestInfo::iUSHORT;
|
|
constexpr RequestInfo_TYPE RequestInfo::iINT;
|
|
constexpr RequestInfo_TYPE RequestInfo::iUINT;
|
|
constexpr RequestInfo_TYPE RequestInfo::iFLOAT;
|
|
constexpr RequestInfo_TYPE RequestInfo::iSTRING;
|
|
constexpr RequestInfo_TYPE RequestInfo::TYPE_MIN;
|
|
constexpr RequestInfo_TYPE RequestInfo::TYPE_MAX;
|
|
constexpr int RequestInfo::TYPE_ARRAYSIZE;
|
|
|
|
#endif // (__cplusplus < 201703) &&
|
|
// (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
|
|
const ::google::protobuf::EnumDescriptor* ResponseInfo_Status_descriptor() {
|
|
::google::protobuf::internal::AssignDescriptors(&descriptor_table_stream_2eproto);
|
|
return file_level_enum_descriptors_stream_2eproto[2];
|
|
}
|
|
bool ResponseInfo_Status_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
case 5:
|
|
case 6:
|
|
case 7:
|
|
case 8:
|
|
case 9:
|
|
case 10:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
#if (__cplusplus < 201703) && \
|
|
(!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
|
|
|
|
constexpr ResponseInfo_Status ResponseInfo::ProcReadPLC0;
|
|
constexpr ResponseInfo_Status ResponseInfo::ProcReadPLC1;
|
|
constexpr ResponseInfo_Status ResponseInfo::ProcReadPLC2;
|
|
constexpr ResponseInfo_Status ResponseInfo::ProcReadPLC3;
|
|
constexpr ResponseInfo_Status ResponseInfo::ProcReadPLC4;
|
|
constexpr ResponseInfo_Status ResponseInfo::ProcReadPLC5;
|
|
constexpr ResponseInfo_Status ResponseInfo::ProcReadPLC6;
|
|
constexpr ResponseInfo_Status ResponseInfo::ProcReadPLCData0;
|
|
constexpr ResponseInfo_Status ResponseInfo::ALARM;
|
|
constexpr ResponseInfo_Status ResponseInfo::RESPOND;
|
|
constexpr ResponseInfo_Status ResponseInfo::TIMEDATA;
|
|
constexpr ResponseInfo_Status ResponseInfo::Status_MIN;
|
|
constexpr ResponseInfo_Status ResponseInfo::Status_MAX;
|
|
constexpr int ResponseInfo::Status_ARRAYSIZE;
|
|
|
|
#endif // (__cplusplus < 201703) &&
|
|
// (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
|
|
const ::google::protobuf::EnumDescriptor* ResponseInfo_TYPE_descriptor() {
|
|
::google::protobuf::internal::AssignDescriptors(&descriptor_table_stream_2eproto);
|
|
return file_level_enum_descriptors_stream_2eproto[3];
|
|
}
|
|
bool ResponseInfo_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;
|
|
}
|
|
}
|
|
#if (__cplusplus < 201703) && \
|
|
(!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
|
|
|
|
constexpr ResponseInfo_TYPE ResponseInfo::iBOOL;
|
|
constexpr ResponseInfo_TYPE ResponseInfo::iSHORT;
|
|
constexpr ResponseInfo_TYPE ResponseInfo::iUSHORT;
|
|
constexpr ResponseInfo_TYPE ResponseInfo::iINT;
|
|
constexpr ResponseInfo_TYPE ResponseInfo::iUINT;
|
|
constexpr ResponseInfo_TYPE ResponseInfo::iFLOAT;
|
|
constexpr ResponseInfo_TYPE ResponseInfo::ISTRING;
|
|
constexpr ResponseInfo_TYPE ResponseInfo::TYPE_MIN;
|
|
constexpr ResponseInfo_TYPE ResponseInfo::TYPE_MAX;
|
|
constexpr int ResponseInfo::TYPE_ARRAYSIZE;
|
|
|
|
#endif // (__cplusplus < 201703) &&
|
|
// (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
|
|
// ===================================================================
|
|
|
|
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<char*>(&_impl_.valuetype_) -
|
|
reinterpret_cast<char*>(&_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_){0},
|
|
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<char*>(&_impl_.valuetype_) -
|
|
reinterpret_cast<char*>(&_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.RequestInfo.TYPE valueType = 4;
|
|
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(RequestInfo, _impl_.valuetype_), 63>(),
|
|
{32, 63, 0, PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.valuetype_)}},
|
|
// .stream.RequestInfo.Status 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
|
|
}}, {{
|
|
// .stream.RequestInfo.Status dataType = 1;
|
|
{PROTOBUF_FIELD_OFFSET(RequestInfo, _impl_.datatype_), 0, 0,
|
|
(0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
|
|
// 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.RequestInfo.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;
|
|
|
|
// .stream.RequestInfo.Status dataType = 1;
|
|
if (this->_internal_datatype() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
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.RequestInfo.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());
|
|
}
|
|
|
|
// .stream.RequestInfo.Status dataType = 1;
|
|
if (this->_internal_datatype() != 0) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this->_internal_datatype());
|
|
}
|
|
|
|
// .stream.RequestInfo.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<RequestInfo*>(&to_msg);
|
|
auto& from = static_cast<const RequestInfo&>(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<char*>(&_impl_.datatype_),
|
|
reinterpret_cast<char*>(&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[0]);
|
|
}
|
|
// ===================================================================
|
|
|
|
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_.namekey_){},
|
|
decltype(_impl_.strvalue_){},
|
|
decltype(_impl_.datatype_){},
|
|
decltype(_impl_.result_){},
|
|
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<char*>(&_impl_.valuetype_) -
|
|
reinterpret_cast<char*>(&_impl_.datatype_)) + sizeof(_impl_.valuetype_));
|
|
|
|
// @@protoc_insertion_point(copy_constructor:stream.ResponseInfo)
|
|
}
|
|
inline void ResponseInfo::SharedCtor(::_pb::Arena* arena) {
|
|
(void)arena;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_.namekey_){},
|
|
decltype(_impl_.strvalue_){},
|
|
decltype(_impl_.datatype_){0},
|
|
decltype(_impl_.result_){false},
|
|
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
|
|
}
|
|
ResponseInfo::~ResponseInfo() {
|
|
// @@protoc_insertion_point(destructor:stream.ResponseInfo)
|
|
_internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
|
|
SharedDtor();
|
|
}
|
|
inline void ResponseInfo::SharedDtor() {
|
|
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
|
|
_impl_.namekey_.Destroy();
|
|
_impl_.strvalue_.Destroy();
|
|
}
|
|
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;
|
|
|
|
_impl_.namekey_.ClearToEmpty();
|
|
_impl_.strvalue_.ClearToEmpty();
|
|
::memset(&_impl_.datatype_, 0, static_cast<::size_t>(
|
|
reinterpret_cast<char*>(&_impl_.valuetype_) -
|
|
reinterpret_cast<char*>(&_impl_.datatype_)) + sizeof(_impl_.valuetype_));
|
|
_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<3, 5, 0, 0, 2> ResponseInfo::_table_ = {
|
|
{
|
|
0, // no _has_bits_
|
|
0, // no _extensions_
|
|
5, 56, // max_field_number, fast_idx_mask
|
|
offsetof(decltype(_table_), field_lookup_table),
|
|
4294967264, // skipmap
|
|
offsetof(decltype(_table_), field_entries),
|
|
5, // num_field_entries
|
|
0, // num_aux_entries
|
|
offsetof(decltype(_table_), field_names), // no aux_entries
|
|
&_ResponseInfo_default_instance_._instance,
|
|
::_pbi::TcParser::GenericFallback, // fallback
|
|
}, {{
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
// .stream.ResponseInfo.Status 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<bool, offsetof(ResponseInfo, _impl_.result_), 63>(),
|
|
{16, 63, 0, PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.result_)}},
|
|
// bytes nameKey = 3;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{26, 63, 0, PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.namekey_)}},
|
|
// bytes strValue = 4;
|
|
{::_pbi::TcParser::FastBS1,
|
|
{34, 63, 0, PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.strvalue_)}},
|
|
// .stream.ResponseInfo.TYPE valueType = 5;
|
|
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ResponseInfo, _impl_.valuetype_), 63>(),
|
|
{40, 63, 0, PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.valuetype_)}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
{::_pbi::TcParser::MiniParse, {}},
|
|
}}, {{
|
|
65535, 65535
|
|
}}, {{
|
|
// .stream.ResponseInfo.Status dataType = 1;
|
|
{PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.datatype_), 0, 0,
|
|
(0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
|
|
// bool result = 2;
|
|
{PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.result_), 0, 0,
|
|
(0 | ::_fl::kFcSingular | ::_fl::kBool)},
|
|
// bytes nameKey = 3;
|
|
{PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.namekey_), 0, 0,
|
|
(0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// bytes strValue = 4;
|
|
{PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.strvalue_), 0, 0,
|
|
(0 | ::_fl::kFcSingular | ::_fl::kBytes | ::_fl::kRepAString)},
|
|
// .stream.ResponseInfo.TYPE valueType = 5;
|
|
{PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.valuetype_), 0, 0,
|
|
(0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)},
|
|
}},
|
|
// no aux_entries
|
|
{{
|
|
}},
|
|
};
|
|
|
|
::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;
|
|
|
|
// .stream.ResponseInfo.Status dataType = 1;
|
|
if (this->_internal_datatype() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
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);
|
|
}
|
|
|
|
// bytes nameKey = 3;
|
|
if (!this->_internal_namekey().empty()) {
|
|
const std::string& _s = this->_internal_namekey();
|
|
target = stream->WriteBytesMaybeAliased(3, _s, target);
|
|
}
|
|
|
|
// bytes strValue = 4;
|
|
if (!this->_internal_strvalue().empty()) {
|
|
const std::string& _s = this->_internal_strvalue();
|
|
target = stream->WriteBytesMaybeAliased(4, _s, target);
|
|
}
|
|
|
|
// .stream.ResponseInfo.TYPE valueType = 5;
|
|
if (this->_internal_valuetype() != 0) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
5, 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.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;
|
|
|
|
// bytes nameKey = 3;
|
|
if (!this->_internal_namekey().empty()) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this->_internal_namekey());
|
|
}
|
|
|
|
// bytes strValue = 4;
|
|
if (!this->_internal_strvalue().empty()) {
|
|
total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(
|
|
this->_internal_strvalue());
|
|
}
|
|
|
|
// .stream.ResponseInfo.Status dataType = 1;
|
|
if (this->_internal_datatype() != 0) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this->_internal_datatype());
|
|
}
|
|
|
|
// bool result = 2;
|
|
if (this->_internal_result() != 0) {
|
|
total_size += 2;
|
|
}
|
|
|
|
// .stream.ResponseInfo.TYPE valueType = 5;
|
|
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 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<ResponseInfo*>(&to_msg);
|
|
auto& from = static_cast<const ResponseInfo&>(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;
|
|
|
|
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_result() != 0) {
|
|
_this->_internal_set_result(from._internal_result());
|
|
}
|
|
if (from._internal_valuetype() != 0) {
|
|
_this->_internal_set_valuetype(from._internal_valuetype());
|
|
}
|
|
_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;
|
|
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(ResponseInfo, _impl_.valuetype_)
|
|
+ sizeof(ResponseInfo::_impl_.valuetype_)
|
|
- PROTOBUF_FIELD_OFFSET(ResponseInfo, _impl_.datatype_)>(
|
|
reinterpret_cast<char*>(&_impl_.datatype_),
|
|
reinterpret_cast<char*>(&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[1]);
|
|
}
|
|
// @@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"
|