TrinityCore
Loading...
Searching...
No Matches
method_options.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: global_extensions/method_options.proto
3
4#ifndef PROTOBUF_global_5fextensions_2fmethod_5foptions_2eproto__INCLUDED
5#define PROTOBUF_global_5fextensions_2fmethod_5foptions_2eproto__INCLUDED
6
7#include <string>
8
9#include <google/protobuf/stubs/common.h>
10
11#if GOOGLE_PROTOBUF_VERSION < 2006000
12#error This file was generated by a newer version of protoc which is
13#error incompatible with your Protocol Buffer headers. Please update
14#error your headers.
15#endif
16#if 2006001 < 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.
20#endif
21
22#include <google/protobuf/generated_message_util.h>
23#include <google/protobuf/message.h>
24#include <google/protobuf/repeated_field.h>
25#include <google/protobuf/extension_set.h>
26#include <google/protobuf/unknown_field_set.h>
27#include "google/protobuf/descriptor.pb.h"
30#include "Define.h" // for TC_PROTO_API
31// @@protoc_insertion_point(includes)
32
33namespace bgs {
34namespace protocol {
35
36// Internal implementation detail -- do not call these.
40
42
43// ===================================================================
44
45class TC_PROTO_API BGSMethodOptions : public ::google::protobuf::Message {
46 public:
49
51
53 CopyFrom(from);
54 return *this;
55 }
56
57 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
58 return _unknown_fields_;
59 }
60
61 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
62 return &_unknown_fields_;
63 }
64
65 static const ::google::protobuf::Descriptor* descriptor();
67
68 void Swap(BGSMethodOptions* other);
69
70 // implements Message ----------------------------------------------
71
73 int GetCachedSize() const { return _cached_size_; }
74 private:
75 void SharedCtor();
76 void SharedDtor();
77 void SetCachedSize(int size) const;
78 public:
79 ::google::protobuf::Metadata GetMetadata() const;
80
81 // nested types ----------------------------------------------------
82
83 // accessors -------------------------------------------------------
84
85 // optional uint32 id = 1;
86 inline bool has_id() const;
87 inline void clear_id();
88 static const int kIdFieldNumber = 1;
89 inline ::google::protobuf::uint32 id() const;
90 inline void set_id(::google::protobuf::uint32 value);
91
92 // optional .bgs.protocol.ClientIdentityRoutingType client_identity_routing = 2;
93 inline bool has_client_identity_routing() const;
94 inline void clear_client_identity_routing();
95 static const int kClientIdentityRoutingFieldNumber = 2;
96 inline ::bgs::protocol::ClientIdentityRoutingType client_identity_routing() const;
97 inline void set_client_identity_routing(::bgs::protocol::ClientIdentityRoutingType value);
98
99 // optional bool enable_fanout = 3;
100 inline bool has_enable_fanout() const;
101 inline void clear_enable_fanout();
102 static const int kEnableFanoutFieldNumber = 3;
103 inline bool enable_fanout() const;
104 inline void set_enable_fanout(bool value);
105
106 // optional string legacy_fanout_replacement = 4;
107 inline bool has_legacy_fanout_replacement() const;
108 inline void clear_legacy_fanout_replacement();
109 static const int kLegacyFanoutReplacementFieldNumber = 4;
110 inline const ::std::string& legacy_fanout_replacement() const;
111 inline void set_legacy_fanout_replacement(const ::std::string& value);
112 inline void set_legacy_fanout_replacement(const char* value);
113 inline void set_legacy_fanout_replacement(const char* value, size_t size);
114 inline ::std::string* mutable_legacy_fanout_replacement();
115 inline ::std::string* release_legacy_fanout_replacement();
116 inline void set_allocated_legacy_fanout_replacement(::std::string* legacy_fanout_replacement);
117
118 // optional string forward_key = 5;
119 inline bool has_forward_key() const;
120 inline void clear_forward_key();
121 static const int kForwardKeyFieldNumber = 5;
122 inline const ::std::string& forward_key() const;
123 inline void set_forward_key(const ::std::string& value);
124 inline void set_forward_key(const char* value);
125 inline void set_forward_key(const char* value, size_t size);
126 inline ::std::string* mutable_forward_key();
127 inline ::std::string* release_forward_key();
128 inline void set_allocated_forward_key(::std::string* forward_key);
129
130 // optional bool idempotent = 6;
131 inline bool has_idempotent() const;
132 inline void clear_idempotent();
133 static const int kIdempotentFieldNumber = 6;
134 inline bool idempotent() const;
135 inline void set_idempotent(bool value);
136
137 // optional bool handle_destination_unreachable = 7;
138 inline bool has_handle_destination_unreachable() const;
139 inline void clear_handle_destination_unreachable();
140 static const int kHandleDestinationUnreachableFieldNumber = 7;
141 inline bool handle_destination_unreachable() const;
142 inline void set_handle_destination_unreachable(bool value);
143
144 // optional string custom_region_resolver = 8;
145 inline bool has_custom_region_resolver() const;
146 inline void clear_custom_region_resolver();
147 static const int kCustomRegionResolverFieldNumber = 8;
148 inline const ::std::string& custom_region_resolver() const;
149 inline void set_custom_region_resolver(const ::std::string& value);
150 inline void set_custom_region_resolver(const char* value);
151 inline void set_custom_region_resolver(const char* value, size_t size);
152 inline ::std::string* mutable_custom_region_resolver();
153 inline ::std::string* release_custom_region_resolver();
154 inline void set_allocated_custom_region_resolver(::std::string* custom_region_resolver);
155
156 // optional bool explicit_region_routing = 9;
157 inline bool has_explicit_region_routing() const;
158 inline void clear_explicit_region_routing();
159 static const int kExplicitRegionRoutingFieldNumber = 9;
160 inline bool explicit_region_routing() const;
161 inline void set_explicit_region_routing(bool value);
162
163 // optional bool obsolete = 10;
164 inline bool has_obsolete() const;
165 inline void clear_obsolete();
166 static const int kObsoleteFieldNumber = 10;
167 inline bool obsolete() const;
168 inline void set_obsolete(bool value);
169
170 // optional .bgs.protocol.ClientRegisterMethodType client_register_type = 11;
171 inline bool has_client_register_type() const;
172 inline void clear_client_register_type();
173 static const int kClientRegisterTypeFieldNumber = 11;
174 inline ::bgs::protocol::ClientRegisterMethodType client_register_type() const;
175 inline void set_client_register_type(::bgs::protocol::ClientRegisterMethodType value);
176
177 // optional string forward_key_proto_file = 12;
178 inline bool has_forward_key_proto_file() const;
179 inline void clear_forward_key_proto_file();
180 static const int kForwardKeyProtoFileFieldNumber = 12;
181 inline const ::std::string& forward_key_proto_file() const;
182 inline void set_forward_key_proto_file(const ::std::string& value);
183 inline void set_forward_key_proto_file(const char* value);
184 inline void set_forward_key_proto_file(const char* value, size_t size);
185 inline ::std::string* mutable_forward_key_proto_file();
186 inline ::std::string* release_forward_key_proto_file();
187 inline void set_allocated_forward_key_proto_file(::std::string* forward_key_proto_file);
188
189 // optional string forward_shard_name = 13;
190 inline bool has_forward_shard_name() const;
191 inline void clear_forward_shard_name();
192 static const int kForwardShardNameFieldNumber = 13;
193 inline const ::std::string& forward_shard_name() const;
194 inline void set_forward_shard_name(const ::std::string& value);
195 inline void set_forward_shard_name(const char* value);
196 inline void set_forward_shard_name(const char* value, size_t size);
197 inline ::std::string* mutable_forward_shard_name();
198 inline ::std::string* release_forward_shard_name();
199 inline void set_allocated_forward_shard_name(::std::string* forward_shard_name);
200
201 // @@protoc_insertion_point(class_scope:bgs.protocol.BGSMethodOptions)
202 private:
203 inline void set_has_id();
204 inline void clear_has_id();
205 inline void set_has_client_identity_routing();
206 inline void clear_has_client_identity_routing();
207 inline void set_has_enable_fanout();
208 inline void clear_has_enable_fanout();
209 inline void set_has_legacy_fanout_replacement();
210 inline void clear_has_legacy_fanout_replacement();
211 inline void set_has_forward_key();
212 inline void clear_has_forward_key();
213 inline void set_has_idempotent();
214 inline void clear_has_idempotent();
215 inline void set_has_handle_destination_unreachable();
216 inline void clear_has_handle_destination_unreachable();
217 inline void set_has_custom_region_resolver();
218 inline void clear_has_custom_region_resolver();
219 inline void set_has_explicit_region_routing();
220 inline void clear_has_explicit_region_routing();
221 inline void set_has_obsolete();
222 inline void clear_has_obsolete();
223 inline void set_has_client_register_type();
224 inline void clear_has_client_register_type();
225 inline void set_has_forward_key_proto_file();
226 inline void clear_has_forward_key_proto_file();
227 inline void set_has_forward_shard_name();
228 inline void clear_has_forward_shard_name();
229
230 ::google::protobuf::UnknownFieldSet _unknown_fields_;
231
232 ::google::protobuf::uint32 _has_bits_[1];
233 mutable int _cached_size_;
234 ::google::protobuf::uint32 id_;
237 ::std::string* forward_key_;
245 ::std::string* forward_shard_name_;
250
253};
254// ===================================================================
255
256// ===================================================================
257
258static const int kMethodOptionsFieldNumber = 90000;
259TC_PROTO_API extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
260 ::google::protobuf::internal::MessageTypeTraits< ::bgs::protocol::BGSMethodOptions >, 11, false >
262
263// ===================================================================
264
265// BGSMethodOptions
266
267// optional uint32 id = 1;
268inline bool BGSMethodOptions::has_id() const {
269 return (_has_bits_[0] & 0x00000001u) != 0;
270}
272 _has_bits_[0] |= 0x00000001u;
273}
275 _has_bits_[0] &= ~0x00000001u;
276}
278 id_ = 0u;
279 clear_has_id();
280}
281inline ::google::protobuf::uint32 BGSMethodOptions::id() const {
282 // @@protoc_insertion_point(field_get:bgs.protocol.BGSMethodOptions.id)
283 return id_;
284}
285inline void BGSMethodOptions::set_id(::google::protobuf::uint32 value) {
286 set_has_id();
287 id_ = value;
288 // @@protoc_insertion_point(field_set:bgs.protocol.BGSMethodOptions.id)
289}
290
291// optional .bgs.protocol.ClientIdentityRoutingType client_identity_routing = 2;
293 return (_has_bits_[0] & 0x00000002u) != 0;
294}
296 _has_bits_[0] |= 0x00000002u;
297}
299 _has_bits_[0] &= ~0x00000002u;
300}
305inline ::bgs::protocol::ClientIdentityRoutingType BGSMethodOptions::client_identity_routing() const {
306 // @@protoc_insertion_point(field_get:bgs.protocol.BGSMethodOptions.client_identity_routing)
308}
313 // @@protoc_insertion_point(field_set:bgs.protocol.BGSMethodOptions.client_identity_routing)
314}
315
316// optional bool enable_fanout = 3;
318 return (_has_bits_[0] & 0x00000004u) != 0;
319}
321 _has_bits_[0] |= 0x00000004u;
322}
324 _has_bits_[0] &= ~0x00000004u;
325}
331 // @@protoc_insertion_point(field_get:bgs.protocol.BGSMethodOptions.enable_fanout)
332 return enable_fanout_;
333}
334inline void BGSMethodOptions::set_enable_fanout(bool value) {
336 enable_fanout_ = value;
337 // @@protoc_insertion_point(field_set:bgs.protocol.BGSMethodOptions.enable_fanout)
338}
339
340// optional string legacy_fanout_replacement = 4;
342 return (_has_bits_[0] & 0x00000008u) != 0;
343}
345 _has_bits_[0] |= 0x00000008u;
346}
348 _has_bits_[0] &= ~0x00000008u;
349}
351 if (legacy_fanout_replacement_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
353 }
355}
356inline const ::std::string& BGSMethodOptions::legacy_fanout_replacement() const {
357 // @@protoc_insertion_point(field_get:bgs.protocol.BGSMethodOptions.legacy_fanout_replacement)
359}
360inline void BGSMethodOptions::set_legacy_fanout_replacement(const ::std::string& value) {
362 if (legacy_fanout_replacement_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
363 legacy_fanout_replacement_ = new ::std::string;
364 }
365 legacy_fanout_replacement_->assign(value);
366 // @@protoc_insertion_point(field_set:bgs.protocol.BGSMethodOptions.legacy_fanout_replacement)
367}
370 if (legacy_fanout_replacement_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
371 legacy_fanout_replacement_ = new ::std::string;
372 }
373 legacy_fanout_replacement_->assign(value);
374 // @@protoc_insertion_point(field_set_char:bgs.protocol.BGSMethodOptions.legacy_fanout_replacement)
375}
376inline void BGSMethodOptions::set_legacy_fanout_replacement(const char* value, size_t size) {
378 if (legacy_fanout_replacement_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
379 legacy_fanout_replacement_ = new ::std::string;
380 }
381 legacy_fanout_replacement_->assign(reinterpret_cast<const char*>(value), size);
382 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.BGSMethodOptions.legacy_fanout_replacement)
383}
386 if (legacy_fanout_replacement_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
387 legacy_fanout_replacement_ = new ::std::string;
388 }
389 // @@protoc_insertion_point(field_mutable:bgs.protocol.BGSMethodOptions.legacy_fanout_replacement)
391}
394 if (legacy_fanout_replacement_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
395 return NULL;
396 } else {
397 ::std::string* temp = legacy_fanout_replacement_;
398 legacy_fanout_replacement_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
399 return temp;
400 }
401}
402inline void BGSMethodOptions::set_allocated_legacy_fanout_replacement(::std::string* legacy_fanout_replacement) {
403 if (legacy_fanout_replacement_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
405 }
409 } else {
411 legacy_fanout_replacement_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
412 }
413 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.BGSMethodOptions.legacy_fanout_replacement)
414}
415
416// optional string forward_key = 5;
418 return (_has_bits_[0] & 0x00000010u) != 0;
419}
421 _has_bits_[0] |= 0x00000010u;
422}
424 _has_bits_[0] &= ~0x00000010u;
425}
427 if (forward_key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
428 forward_key_->clear();
429 }
431}
432inline const ::std::string& BGSMethodOptions::forward_key() const {
433 // @@protoc_insertion_point(field_get:bgs.protocol.BGSMethodOptions.forward_key)
434 return *forward_key_;
435}
436inline void BGSMethodOptions::set_forward_key(const ::std::string& value) {
438 if (forward_key_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
439 forward_key_ = new ::std::string;
440 }
441 forward_key_->assign(value);
442 // @@protoc_insertion_point(field_set:bgs.protocol.BGSMethodOptions.forward_key)
443}
444inline void BGSMethodOptions::set_forward_key(const char* value) {
446 if (forward_key_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
447 forward_key_ = new ::std::string;
448 }
449 forward_key_->assign(value);
450 // @@protoc_insertion_point(field_set_char:bgs.protocol.BGSMethodOptions.forward_key)
451}
452inline void BGSMethodOptions::set_forward_key(const char* value, size_t size) {
454 if (forward_key_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
455 forward_key_ = new ::std::string;
456 }
457 forward_key_->assign(reinterpret_cast<const char*>(value), size);
458 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.BGSMethodOptions.forward_key)
459}
462 if (forward_key_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
463 forward_key_ = new ::std::string;
464 }
465 // @@protoc_insertion_point(field_mutable:bgs.protocol.BGSMethodOptions.forward_key)
466 return forward_key_;
467}
470 if (forward_key_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
471 return NULL;
472 } else {
473 ::std::string* temp = forward_key_;
474 forward_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
475 return temp;
476 }
477}
478inline void BGSMethodOptions::set_allocated_forward_key(::std::string* forward_key) {
479 if (forward_key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
480 delete forward_key_;
481 }
482 if (forward_key) {
485 } else {
487 forward_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
488 }
489 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.BGSMethodOptions.forward_key)
490}
491
492// optional bool idempotent = 6;
494 return (_has_bits_[0] & 0x00000020u) != 0;
495}
497 _has_bits_[0] |= 0x00000020u;
498}
500 _has_bits_[0] &= ~0x00000020u;
501}
506inline bool BGSMethodOptions::idempotent() const {
507 // @@protoc_insertion_point(field_get:bgs.protocol.BGSMethodOptions.idempotent)
508 return idempotent_;
509}
510inline void BGSMethodOptions::set_idempotent(bool value) {
512 idempotent_ = value;
513 // @@protoc_insertion_point(field_set:bgs.protocol.BGSMethodOptions.idempotent)
514}
515
516// optional bool handle_destination_unreachable = 7;
518 return (_has_bits_[0] & 0x00000040u) != 0;
519}
531 // @@protoc_insertion_point(field_get:bgs.protocol.BGSMethodOptions.handle_destination_unreachable)
533}
537 // @@protoc_insertion_point(field_set:bgs.protocol.BGSMethodOptions.handle_destination_unreachable)
538}
539
540// optional string custom_region_resolver = 8;
542 return (_has_bits_[0] & 0x00000080u) != 0;
543}
545 _has_bits_[0] |= 0x00000080u;
546}
548 _has_bits_[0] &= ~0x00000080u;
549}
551 if (custom_region_resolver_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
553 }
555}
556inline const ::std::string& BGSMethodOptions::custom_region_resolver() const {
557 // @@protoc_insertion_point(field_get:bgs.protocol.BGSMethodOptions.custom_region_resolver)
559}
560inline void BGSMethodOptions::set_custom_region_resolver(const ::std::string& value) {
562 if (custom_region_resolver_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
563 custom_region_resolver_ = new ::std::string;
564 }
565 custom_region_resolver_->assign(value);
566 // @@protoc_insertion_point(field_set:bgs.protocol.BGSMethodOptions.custom_region_resolver)
567}
568inline void BGSMethodOptions::set_custom_region_resolver(const char* value) {
570 if (custom_region_resolver_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
571 custom_region_resolver_ = new ::std::string;
572 }
573 custom_region_resolver_->assign(value);
574 // @@protoc_insertion_point(field_set_char:bgs.protocol.BGSMethodOptions.custom_region_resolver)
575}
576inline void BGSMethodOptions::set_custom_region_resolver(const char* value, size_t size) {
578 if (custom_region_resolver_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
579 custom_region_resolver_ = new ::std::string;
580 }
581 custom_region_resolver_->assign(reinterpret_cast<const char*>(value), size);
582 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.BGSMethodOptions.custom_region_resolver)
583}
586 if (custom_region_resolver_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
587 custom_region_resolver_ = new ::std::string;
588 }
589 // @@protoc_insertion_point(field_mutable:bgs.protocol.BGSMethodOptions.custom_region_resolver)
591}
594 if (custom_region_resolver_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
595 return NULL;
596 } else {
597 ::std::string* temp = custom_region_resolver_;
598 custom_region_resolver_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
599 return temp;
600 }
601}
602inline void BGSMethodOptions::set_allocated_custom_region_resolver(::std::string* custom_region_resolver) {
603 if (custom_region_resolver_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
605 }
609 } else {
611 custom_region_resolver_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
612 }
613 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.BGSMethodOptions.custom_region_resolver)
614}
615
616// optional bool explicit_region_routing = 9;
618 return (_has_bits_[0] & 0x00000100u) != 0;
619}
621 _has_bits_[0] |= 0x00000100u;
622}
624 _has_bits_[0] &= ~0x00000100u;
625}
631 // @@protoc_insertion_point(field_get:bgs.protocol.BGSMethodOptions.explicit_region_routing)
633}
637 // @@protoc_insertion_point(field_set:bgs.protocol.BGSMethodOptions.explicit_region_routing)
638}
639
640// optional bool obsolete = 10;
642 return (_has_bits_[0] & 0x00000200u) != 0;
643}
645 _has_bits_[0] |= 0x00000200u;
646}
648 _has_bits_[0] &= ~0x00000200u;
649}
651 obsolete_ = false;
653}
654inline bool BGSMethodOptions::obsolete() const {
655 // @@protoc_insertion_point(field_get:bgs.protocol.BGSMethodOptions.obsolete)
656 return obsolete_;
657}
658inline void BGSMethodOptions::set_obsolete(bool value) {
660 obsolete_ = value;
661 // @@protoc_insertion_point(field_set:bgs.protocol.BGSMethodOptions.obsolete)
662}
663
664// optional .bgs.protocol.ClientRegisterMethodType client_register_type = 11;
666 return (_has_bits_[0] & 0x00000400u) != 0;
667}
669 _has_bits_[0] |= 0x00000400u;
670}
672 _has_bits_[0] &= ~0x00000400u;
673}
678inline ::bgs::protocol::ClientRegisterMethodType BGSMethodOptions::client_register_type() const {
679 // @@protoc_insertion_point(field_get:bgs.protocol.BGSMethodOptions.client_register_type)
681}
685 client_register_type_ = value;
686 // @@protoc_insertion_point(field_set:bgs.protocol.BGSMethodOptions.client_register_type)
687}
688
689// optional string forward_key_proto_file = 12;
691 return (_has_bits_[0] & 0x00000800u) != 0;
692}
694 _has_bits_[0] |= 0x00000800u;
695}
697 _has_bits_[0] &= ~0x00000800u;
698}
700 if (forward_key_proto_file_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
702 }
704}
705inline const ::std::string& BGSMethodOptions::forward_key_proto_file() const {
706 // @@protoc_insertion_point(field_get:bgs.protocol.BGSMethodOptions.forward_key_proto_file)
708}
709inline void BGSMethodOptions::set_forward_key_proto_file(const ::std::string& value) {
711 if (forward_key_proto_file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
712 forward_key_proto_file_ = new ::std::string;
713 }
714 forward_key_proto_file_->assign(value);
715 // @@protoc_insertion_point(field_set:bgs.protocol.BGSMethodOptions.forward_key_proto_file)
716}
717inline void BGSMethodOptions::set_forward_key_proto_file(const char* value) {
719 if (forward_key_proto_file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
720 forward_key_proto_file_ = new ::std::string;
721 }
722 forward_key_proto_file_->assign(value);
723 // @@protoc_insertion_point(field_set_char:bgs.protocol.BGSMethodOptions.forward_key_proto_file)
724}
725inline void BGSMethodOptions::set_forward_key_proto_file(const char* value, size_t size) {
727 if (forward_key_proto_file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
728 forward_key_proto_file_ = new ::std::string;
729 }
730 forward_key_proto_file_->assign(reinterpret_cast<const char*>(value), size);
731 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.BGSMethodOptions.forward_key_proto_file)
732}
735 if (forward_key_proto_file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
736 forward_key_proto_file_ = new ::std::string;
737 }
738 // @@protoc_insertion_point(field_mutable:bgs.protocol.BGSMethodOptions.forward_key_proto_file)
740}
743 if (forward_key_proto_file_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
744 return NULL;
745 } else {
746 ::std::string* temp = forward_key_proto_file_;
747 forward_key_proto_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
748 return temp;
749 }
750}
751inline void BGSMethodOptions::set_allocated_forward_key_proto_file(::std::string* forward_key_proto_file) {
752 if (forward_key_proto_file_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
754 }
758 } else {
760 forward_key_proto_file_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
761 }
762 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.BGSMethodOptions.forward_key_proto_file)
763}
764
765// optional string forward_shard_name = 13;
767 return (_has_bits_[0] & 0x00001000u) != 0;
768}
770 _has_bits_[0] |= 0x00001000u;
771}
773 _has_bits_[0] &= ~0x00001000u;
774}
776 if (forward_shard_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
777 forward_shard_name_->clear();
778 }
780}
781inline const ::std::string& BGSMethodOptions::forward_shard_name() const {
782 // @@protoc_insertion_point(field_get:bgs.protocol.BGSMethodOptions.forward_shard_name)
783 return *forward_shard_name_;
784}
785inline void BGSMethodOptions::set_forward_shard_name(const ::std::string& value) {
787 if (forward_shard_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
788 forward_shard_name_ = new ::std::string;
789 }
790 forward_shard_name_->assign(value);
791 // @@protoc_insertion_point(field_set:bgs.protocol.BGSMethodOptions.forward_shard_name)
792}
793inline void BGSMethodOptions::set_forward_shard_name(const char* value) {
795 if (forward_shard_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
796 forward_shard_name_ = new ::std::string;
797 }
798 forward_shard_name_->assign(value);
799 // @@protoc_insertion_point(field_set_char:bgs.protocol.BGSMethodOptions.forward_shard_name)
800}
801inline void BGSMethodOptions::set_forward_shard_name(const char* value, size_t size) {
803 if (forward_shard_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
804 forward_shard_name_ = new ::std::string;
805 }
806 forward_shard_name_->assign(reinterpret_cast<const char*>(value), size);
807 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.BGSMethodOptions.forward_shard_name)
808}
811 if (forward_shard_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
812 forward_shard_name_ = new ::std::string;
813 }
814 // @@protoc_insertion_point(field_mutable:bgs.protocol.BGSMethodOptions.forward_shard_name)
815 return forward_shard_name_;
816}
819 if (forward_shard_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
820 return NULL;
821 } else {
822 ::std::string* temp = forward_shard_name_;
823 forward_shard_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
824 return temp;
825 }
826}
827inline void BGSMethodOptions::set_allocated_forward_shard_name(::std::string* forward_shard_name) {
828 if (forward_shard_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
829 delete forward_shard_name_;
830 }
831 if (forward_shard_name) {
834 } else {
836 forward_shard_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
837 }
838 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.BGSMethodOptions.forward_shard_name)
839}
840
841// @@protoc_insertion_point(namespace_scope)
842
843} // namespace protocol
844} // namespace bgs
845
846#ifndef SWIG
847namespace google {
848namespace protobuf {
849} // namespace google
850} // namespace protobuf
851#endif // SWIG
852
853// @@protoc_insertion_point(global_scope)
854
855#endif // PROTOBUF_global_5fextensions_2fmethod_5foptions_2eproto__INCLUDED
#define TC_PROTO_API
Definition Define.h:105
inline ::std::string * release_forward_key_proto_file()
BGSMethodOptions & operator=(const BGSMethodOptions &from)
friend void TC_PROTO_API protobuf_AddDesc_global_5fextensions_2fmethod_5foptions_2eproto()
void set_forward_key(const ::std::string &value)
static BGSMethodOptions * default_instance_
const ::std::string & legacy_fanout_replacement() const
void set_allocated_forward_shard_name(::std::string *forward_shard_name)
const ::std::string & forward_shard_name() const
void Swap(BGSMethodOptions *other)
void set_allocated_custom_region_resolver(::std::string *custom_region_resolver)
void set_forward_shard_name(const ::std::string &value)
friend void protobuf_ShutdownFile_global_5fextensions_2fmethod_5foptions_2eproto()
::google::protobuf::UnknownFieldSet _unknown_fields_
inline ::std::string * mutable_custom_region_resolver()
void set_id(::google::protobuf::uint32 value)
BGSMethodOptions * New() const
inline ::std::string * release_custom_region_resolver()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline ::std::string * release_legacy_fanout_replacement()
void set_custom_region_resolver(const ::std::string &value)
inline ::std::string * release_forward_key()
void set_legacy_fanout_replacement(const ::std::string &value)
::google::protobuf::uint32 _has_bits_[1]
void SetCachedSize(int size) const
inline ::std::string * mutable_forward_shard_name()
inline ::google::protobuf::uint32 id() const
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
void set_allocated_forward_key(::std::string *forward_key)
BGSMethodOptions(const BGSMethodOptions &from)
static const ::google::protobuf::Descriptor * descriptor()
inline ::std::string * mutable_forward_key_proto_file()
void set_handle_destination_unreachable(bool value)
static const BGSMethodOptions & default_instance()
inline ::std::string * release_forward_shard_name()
const ::std::string & forward_key_proto_file() const
void set_client_identity_routing(::bgs::protocol::ClientIdentityRoutingType value)
friend void protobuf_AssignDesc_global_5fextensions_2fmethod_5foptions_2eproto()
inline ::std::string * mutable_forward_key()
void set_client_register_type(::bgs::protocol::ClientRegisterMethodType value)
::google::protobuf::uint32 id_
const ::std::string & custom_region_resolver() const
void set_allocated_legacy_fanout_replacement(::std::string *legacy_fanout_replacement)
inline ::std::string * mutable_legacy_fanout_replacement()
inline ::bgs::protocol::ClientRegisterMethodType client_register_type() const
void set_allocated_forward_key_proto_file(::std::string *forward_key_proto_file)
const ::std::string & forward_key() const
::google::protobuf::Metadata GetMetadata() const
inline ::bgs::protocol::ClientIdentityRoutingType client_identity_routing() const
void set_forward_key_proto_file(const ::std::string &value)
TC_PROTO_API bool ClientIdentityRoutingType_IsValid(int value)
void protobuf_ShutdownFile_global_5fextensions_2fmethod_5foptions_2eproto()
TC_PROTO_API ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions, ::google::protobuf::internal::MessageTypeTraits< ::bgs::protocol::BGSMethodOptions >, 11, false > method_options
void TC_PROTO_API protobuf_AddDesc_global_5fextensions_2fmethod_5foptions_2eproto()
static const int kMethodOptionsFieldNumber
void protobuf_AssignDesc_global_5fextensions_2fmethod_5foptions_2eproto()
TC_PROTO_API bool ClientRegisterMethodType_IsValid(int value)
Definition Session.h:37