4 #ifndef PROTOBUF_ExistMessage_2eproto__INCLUDED 5 #define PROTOBUF_ExistMessage_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 3005000 12 #error This file was generated by a newer version of protoc which is 13 #error incompatible with your Protocol Buffer headers. Please update 16 #if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 17 #error This file was generated by an older version of protoc which is 18 #error incompatible with your Protocol Buffer headers. Please 19 #error regenerate this file with a newer version of protoc. 22 #include <google/protobuf/io/coded_stream.h> 23 #include <google/protobuf/arena.h> 24 #include <google/protobuf/arenastring.h> 25 #include <google/protobuf/generated_message_table_driven.h> 26 #include <google/protobuf/generated_message_util.h> 27 #include <google/protobuf/metadata.h> 28 #include <google/protobuf/message.h> 29 #include <google/protobuf/repeated_field.h> 30 #include <google/protobuf/extension_set.h> 31 #include <google/protobuf/generated_enum_reflection.h> 32 #include <google/protobuf/unknown_field_set.h> 38 static const ::google::protobuf::internal::ParseTableField
entries[];
39 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
40 static const ::google::protobuf::internal::ParseTable
schema[3];
43 static const ::google::protobuf::uint32
offsets[];
59 namespace stupidbeauty {
74 namespace stupidbeauty {
93 return ::google::protobuf::internal::NameOfEnum(
98 return ::google::protobuf::internal::ParseNamedEnum<ServicePublishMessage_ServiceProtocolType>(
114 return ::google::protobuf::internal::NameOfEnum(
119 return ::google::protobuf::internal::ParseNamedEnum<ExistMessage_MessageType>(
138 *
this = ::std::move(from);
142 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
143 if (
this != &from) InternalSwap(&from);
150 static const ::google::protobuf::Descriptor* descriptor();
153 static void InitAsDefaultInstance();
158 static PROTOBUF_CONSTEXPR
int const kIndexInFileMessages =
171 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
172 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
175 void Clear() PROTOBUF_FINAL;
176 bool IsInitialized()
const PROTOBUF_FINAL;
178 size_t ByteSizeLong()
const PROTOBUF_FINAL;
179 bool MergePartialFromCodedStream(
180 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
181 void SerializeWithCachedSizes(
182 ::google::protobuf::io::CodedOutputStream* output)
const PROTOBUF_FINAL;
183 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
184 bool deterministic, ::google::protobuf::uint8* target)
const PROTOBUF_FINAL;
189 void SetCachedSize(
int size)
const PROTOBUF_FINAL;
192 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
195 inline void* MaybeArenaPtr()
const {
200 ::google::protobuf::Metadata GetMetadata()
const PROTOBUF_FINAL;
205 static const ServiceProtocolType HTTP =
207 static const ServiceProtocolType UDP =
209 static const ServiceProtocolType MQTT =
211 static const ServiceProtocolType TCP =
213 static const ServiceProtocolType GRPC =
218 static const ServiceProtocolType ServiceProtocolType_MIN =
220 static const ServiceProtocolType ServiceProtocolType_MAX =
222 static const int ServiceProtocolType_ARRAYSIZE =
224 static inline const ::google::protobuf::EnumDescriptor*
232 ServiceProtocolType* value) {
240 static const int kNameFieldNumber = 1;
241 const ::std::string& name()
const;
242 void set_name(const ::std::string& value);
244 void set_name(::std::string&& value);
246 void set_name(
const char* value);
247 void set_name(
const char* value,
size_t size);
248 ::std::string* mutable_name();
249 ::std::string* release_name();
250 void set_allocated_name(::std::string* name);
254 static const int kPortFieldNumber = 2;
255 ::google::protobuf::int32 port()
const;
256 void set_port(::google::protobuf::int32 value);
259 void clear_protocoltype();
260 static const int kProtocolTypeFieldNumber = 3;
267 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
268 ::google::protobuf::internal::ArenaStringPtr name_;
269 ::google::protobuf::int32 port_;
271 mutable int _cached_size_;
272 friend struct ::protobuf_ExistMessage_2eproto::TableStruct;
291 *
this = ::std::move(from);
295 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
296 if (
this != &from) InternalSwap(&from);
303 static const ::google::protobuf::Descriptor* descriptor();
306 static void InitAsDefaultInstance();
311 static PROTOBUF_CONSTEXPR
int const kIndexInFileMessages =
324 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
325 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
328 void Clear() PROTOBUF_FINAL;
329 bool IsInitialized()
const PROTOBUF_FINAL;
331 size_t ByteSizeLong()
const PROTOBUF_FINAL;
332 bool MergePartialFromCodedStream(
333 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
334 void SerializeWithCachedSizes(
335 ::google::protobuf::io::CodedOutputStream* output)
const PROTOBUF_FINAL;
336 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
337 bool deterministic, ::google::protobuf::uint8* target)
const PROTOBUF_FINAL;
342 void SetCachedSize(
int size)
const PROTOBUF_FINAL;
345 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
348 inline void* MaybeArenaPtr()
const {
353 ::google::protobuf::Metadata GetMetadata()
const PROTOBUF_FINAL;
361 static const int kPortFieldNumber = 1;
362 ::google::protobuf::int32 port()
const;
363 void set_port(::google::protobuf::int32 value);
368 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
369 ::google::protobuf::int32 port_;
370 mutable int _cached_size_;
371 friend struct ::protobuf_ExistMessage_2eproto::TableStruct;
390 *
this = ::std::move(from);
394 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
395 if (
this != &from) InternalSwap(&from);
402 static const ::google::protobuf::Descriptor* descriptor();
405 static void InitAsDefaultInstance();
410 static PROTOBUF_CONSTEXPR
int const kIndexInFileMessages =
422 ExistMessage* New(::google::protobuf::Arena* arena)
const PROTOBUF_FINAL;
423 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
424 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
427 void Clear() PROTOBUF_FINAL;
428 bool IsInitialized()
const PROTOBUF_FINAL;
430 size_t ByteSizeLong()
const PROTOBUF_FINAL;
431 bool MergePartialFromCodedStream(
432 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
433 void SerializeWithCachedSizes(
434 ::google::protobuf::io::CodedOutputStream* output)
const PROTOBUF_FINAL;
435 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
436 bool deterministic, ::google::protobuf::uint8* target)
const PROTOBUF_FINAL;
441 void SetCachedSize(
int size)
const PROTOBUF_FINAL;
444 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
447 inline void* MaybeArenaPtr()
const {
452 ::google::protobuf::Metadata GetMetadata()
const PROTOBUF_FINAL;
457 static const MessageType SERVICEPUBLISH =
459 static const MessageType SERVICEPROBE =
464 static const MessageType MessageType_MIN =
466 static const MessageType MessageType_MAX =
468 static const int MessageType_ARRAYSIZE =
470 static inline const ::google::protobuf::EnumDescriptor*
478 MessageType* value) {
485 bool has_servicepublishmessage()
const;
486 void clear_servicepublishmessage();
487 static const int kServicePublishMessageFieldNumber = 2;
488 const ::com::stupidbeauty::exist::ServicePublishMessage& servicepublishmessage()
const;
494 bool has_serviceprobemessage()
const;
495 void clear_serviceprobemessage();
496 static const int kServiceProbeMessageFieldNumber = 3;
497 const ::com::stupidbeauty::exist::ServiceProbeMessage& serviceprobemessage()
const;
503 void clear_messagetype();
504 static const int kMessageTypeFieldNumber = 1;
511 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
515 mutable int _cached_size_;
516 friend struct ::protobuf_ExistMessage_2eproto::TableStruct;
525 #pragma GCC diagnostic push 526 #pragma GCC diagnostic ignored "-Wstrict-aliasing" 531 inline void ServicePublishMessage::clear_name() {
532 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
534 inline const ::std::string& ServicePublishMessage::name()
const {
536 return name_.GetNoArena();
538 inline void ServicePublishMessage::set_name(const ::std::string& value) {
540 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
544 inline void ServicePublishMessage::set_name(::std::string&& value) {
547 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
551 inline void ServicePublishMessage::set_name(
const char* value) {
552 GOOGLE_DCHECK(value != NULL);
554 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
557 inline void ServicePublishMessage::set_name(
const char* value,
size_t size) {
559 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
560 ::std::string(reinterpret_cast<const char*>(value), size));
563 inline ::std::string* ServicePublishMessage::mutable_name() {
566 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
568 inline ::std::string* ServicePublishMessage::release_name() {
571 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
573 inline void ServicePublishMessage::set_allocated_name(::std::string* name) {
579 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
584 inline void ServicePublishMessage::clear_port() {
587 inline ::google::protobuf::int32 ServicePublishMessage::port()
const {
591 inline void ServicePublishMessage::set_port(::google::protobuf::int32 value) {
598 inline void ServicePublishMessage::clear_protocoltype() {
607 protocoltype_ = value;
616 inline void ServiceProbeMessage::clear_port() {
619 inline ::google::protobuf::int32 ServiceProbeMessage::port()
const {
623 inline void ServiceProbeMessage::set_port(::google::protobuf::int32 value) {
634 inline void ExistMessage::clear_messagetype() {
643 messagetype_ = value;
648 inline bool ExistMessage::has_servicepublishmessage()
const {
649 return this != internal_default_instance() && servicepublishmessage_ != NULL;
651 inline void ExistMessage::clear_servicepublishmessage() {
652 if (GetArenaNoVirtual() == NULL && servicepublishmessage_ != NULL) {
653 delete servicepublishmessage_;
655 servicepublishmessage_ = NULL;
657 inline const ::com::stupidbeauty::exist::ServicePublishMessage& ExistMessage::servicepublishmessage()
const {
658 const ::com::stupidbeauty::exist::ServicePublishMessage* p = servicepublishmessage_;
663 inline ::com::stupidbeauty::exist::ServicePublishMessage* ExistMessage::release_servicepublishmessage() {
667 servicepublishmessage_ = NULL;
670 inline ::com::stupidbeauty::exist::ServicePublishMessage* ExistMessage::mutable_servicepublishmessage() {
672 if (servicepublishmessage_ == NULL) {
673 servicepublishmessage_ = new ::com::stupidbeauty::exist::ServicePublishMessage;
676 return servicepublishmessage_;
679 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
680 if (message_arena == NULL) {
681 delete servicepublishmessage_;
683 if (servicepublishmessage) {
684 ::google::protobuf::Arena* submessage_arena = NULL;
685 if (message_arena != submessage_arena) {
686 servicepublishmessage = ::google::protobuf::internal::GetOwnedMessage(
687 message_arena, servicepublishmessage, submessage_arena);
693 servicepublishmessage_ = servicepublishmessage;
698 inline bool ExistMessage::has_serviceprobemessage()
const {
699 return this != internal_default_instance() && serviceprobemessage_ != NULL;
701 inline void ExistMessage::clear_serviceprobemessage() {
702 if (GetArenaNoVirtual() == NULL && serviceprobemessage_ != NULL) {
703 delete serviceprobemessage_;
705 serviceprobemessage_ = NULL;
707 inline const ::com::stupidbeauty::exist::ServiceProbeMessage& ExistMessage::serviceprobemessage()
const {
708 const ::com::stupidbeauty::exist::ServiceProbeMessage* p = serviceprobemessage_;
713 inline ::com::stupidbeauty::exist::ServiceProbeMessage* ExistMessage::release_serviceprobemessage() {
717 serviceprobemessage_ = NULL;
720 inline ::com::stupidbeauty::exist::ServiceProbeMessage* ExistMessage::mutable_serviceprobemessage() {
722 if (serviceprobemessage_ == NULL) {
723 serviceprobemessage_ = new ::com::stupidbeauty::exist::ServiceProbeMessage;
726 return serviceprobemessage_;
729 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
730 if (message_arena == NULL) {
731 delete serviceprobemessage_;
733 if (serviceprobemessage) {
734 ::google::protobuf::Arena* submessage_arena = NULL;
735 if (message_arena != submessage_arena) {
736 serviceprobemessage = ::google::protobuf::internal::GetOwnedMessage(
737 message_arena, serviceprobemessage, submessage_arena);
743 serviceprobemessage_ = serviceprobemessage;
748 #pragma GCC diagnostic pop 766 inline const EnumDescriptor* GetEnumDescriptor< ::com::stupidbeauty::exist::ServicePublishMessage_ServiceProtocolType>() {
771 inline const EnumDescriptor* GetEnumDescriptor< ::com::stupidbeauty::exist::ExistMessage_MessageType>() {
780 #endif // PROTOBUF_ExistMessage_2eproto__INCLUDED static const ::google::protobuf::internal::SerializationTable serialization_table[]
bool ExistMessage_MessageType_Parse(const ::std::string &name, ExistMessage_MessageType *value)
void InitDefaultsServiceProbeMessage()
const ::google::protobuf::EnumDescriptor * ExistMessage_MessageType_descriptor()
class com::stupidbeauty::exist::ExistMessageDefaultTypeInternal _ExistMessage_default_instance_
bool ExistMessage_MessageType_IsValid(int value)
void InitDefaultsServicePublishMessage()
static const ::google::protobuf::EnumDescriptor * ServiceProtocolType_descriptor()
bool ServicePublishMessage_ServiceProtocolType_Parse(const ::std::string &name, ServicePublishMessage_ServiceProtocolType *value)
int GetCachedSize() const PROTOBUF_FINAL
ServiceProbeMessage * New() const PROTOBUF_FINAL
void InitDefaultsServiceProbeMessageImpl()
ServicePublishMessage & operator=(const ServicePublishMessage &from)
static bool MessageType_Parse(const ::std::string &name, MessageType *value)
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
static const ::google::protobuf::EnumDescriptor * MessageType_descriptor()
static const ::google::protobuf::internal::ParseTableField entries[]
class com::stupidbeauty::exist::ServiceProbeMessageDefaultTypeInternal _ServiceProbeMessage_default_instance_
static bool ServiceProtocolType_IsValid(int value)
class com::stupidbeauty::exist::ServicePublishMessageDefaultTypeInternal _ServicePublishMessage_default_instance_
void Swap(ServicePublishMessage *other)
static const ::google::protobuf::uint32 offsets[]
const ::google::protobuf::EnumDescriptor * ServicePublishMessage_ServiceProtocolType_descriptor()
int GetCachedSize() const PROTOBUF_FINAL
const ServicePublishMessage_ServiceProtocolType ServicePublishMessage_ServiceProtocolType_ServiceProtocolType_MIN
ExistMessage * New() const PROTOBUF_FINAL
ExistMessage & operator=(const ExistMessage &from)
static const ::google::protobuf::internal::ParseTable schema[3]
const int ServicePublishMessage_ServiceProtocolType_ServiceProtocolType_ARRAYSIZE
ServicePublishMessage_ServiceProtocolType
friend void swap(ServiceProbeMessage &a, ServiceProbeMessage &b)
friend void swap(ServicePublishMessage &a, ServicePublishMessage &b)
static const ExistMessage * internal_default_instance()
const ExistMessage_MessageType ExistMessage_MessageType_MessageType_MAX
void InitDefaultsServicePublishMessageImpl()
void InitDefaultsExistMessage()
ServicePublishMessage_ServiceProtocolType ServiceProtocolType
static bool ServiceProtocolType_Parse(const ::std::string &name, ServiceProtocolType *value)
static const ::std::string & ServiceProtocolType_Name(ServiceProtocolType value)
friend void swap(ExistMessage &a, ExistMessage &b)
bool ServicePublishMessage_ServiceProtocolType_IsValid(int value)
void Swap(ServiceProbeMessage *other)
ServiceProbeMessage & operator=(const ServiceProbeMessage &from)
const ExistMessage_MessageType ExistMessage_MessageType_MessageType_MIN
ServicePublishMessage * New() const PROTOBUF_FINAL
static const ServiceProbeMessage * internal_default_instance()
const ServicePublishMessage_ServiceProtocolType ServicePublishMessage_ServiceProtocolType_ServiceProtocolType_MAX
void InitDefaultsExistMessageImpl()
static bool MessageType_IsValid(int value)
int GetCachedSize() const PROTOBUF_FINAL
const int ExistMessage_MessageType_MessageType_ARRAYSIZE
static const ServicePublishMessage * internal_default_instance()
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
ExistMessage_MessageType MessageType
static const ::std::string & MessageType_Name(MessageType value)
const ::std::string & ServicePublishMessage_ServiceProtocolType_Name(ServicePublishMessage_ServiceProtocolType value)
const ::std::string & ExistMessage_MessageType_Name(ExistMessage_MessageType value)
void Swap(ExistMessage *other)