TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
rpc_config.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: rpc_config.proto
3 
4 #ifndef PROTOBUF_rpc_5fconfig_2eproto__INCLUDED
5 #define PROTOBUF_rpc_5fconfig_2eproto__INCLUDED
6 
7 #include <string>
8 
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 
27 #include "Define.h" // for TC_SHARED_API
28 // @@protoc_insertion_point(includes)
29 
30 namespace bgs {
31 namespace protocol {
32 namespace config {
33 
34 // Internal implementation detail -- do not call these.
38 
39 class RPCMethodConfig;
40 class RPCMeterConfig;
41 class ProtocolAlias;
42 class ServiceAliases;
43 
44 // ===================================================================
45 
47  public:
49  virtual ~RPCMethodConfig();
50 
51  RPCMethodConfig(const RPCMethodConfig& from);
52 
53  inline RPCMethodConfig& operator=(const RPCMethodConfig& from) {
54  CopyFrom(from);
55  return *this;
56  }
57 
58  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
59  return _unknown_fields_;
60  }
61 
62  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
63  return &_unknown_fields_;
64  }
65 
66  static const ::google::protobuf::Descriptor* descriptor();
67  static const RPCMethodConfig& default_instance();
68 
69  void Swap(RPCMethodConfig* other);
70 
71  // implements Message ----------------------------------------------
72 
73  RPCMethodConfig* New() const;
74  void CopyFrom(const ::google::protobuf::Message& from);
75  void MergeFrom(const ::google::protobuf::Message& from);
76  void CopyFrom(const RPCMethodConfig& from);
77  void MergeFrom(const RPCMethodConfig& from);
78  void Clear();
79  bool IsInitialized() const;
80 
81  int ByteSize() const;
82  bool MergePartialFromCodedStream(
84  void SerializeWithCachedSizes(
86  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
87  int GetCachedSize() const { return _cached_size_; }
88  private:
89  void SharedCtor();
90  void SharedDtor();
91  void SetCachedSize(int size) const;
92  public:
93  ::google::protobuf::Metadata GetMetadata() const;
94 
95  // nested types ----------------------------------------------------
96 
97  // accessors -------------------------------------------------------
98 
99  // optional string service_name = 1 [deprecated = true];
100  inline bool has_service_name() const PROTOBUF_DEPRECATED;
101  inline void clear_service_name() PROTOBUF_DEPRECATED;
102  static const int kServiceNameFieldNumber = 1;
103  inline const ::std::string& service_name() const PROTOBUF_DEPRECATED;
104  inline void set_service_name(const ::std::string& value) PROTOBUF_DEPRECATED;
105  inline void set_service_name(const char* value) PROTOBUF_DEPRECATED;
106  inline void set_service_name(const char* value, size_t size) PROTOBUF_DEPRECATED;
107  inline ::std::string* mutable_service_name() PROTOBUF_DEPRECATED;
108  inline ::std::string* release_service_name() PROTOBUF_DEPRECATED;
109  inline void set_allocated_service_name(::std::string* service_name) PROTOBUF_DEPRECATED;
110 
111  // optional string method_name = 2 [deprecated = true];
112  inline bool has_method_name() const PROTOBUF_DEPRECATED;
113  inline void clear_method_name() PROTOBUF_DEPRECATED;
114  static const int kMethodNameFieldNumber = 2;
115  inline const ::std::string& method_name() const PROTOBUF_DEPRECATED;
116  inline void set_method_name(const ::std::string& value) PROTOBUF_DEPRECATED;
117  inline void set_method_name(const char* value) PROTOBUF_DEPRECATED;
118  inline void set_method_name(const char* value, size_t size) PROTOBUF_DEPRECATED;
119  inline ::std::string* mutable_method_name() PROTOBUF_DEPRECATED;
120  inline ::std::string* release_method_name() PROTOBUF_DEPRECATED;
121  inline void set_allocated_method_name(::std::string* method_name) PROTOBUF_DEPRECATED;
122 
123  // optional uint32 fixed_call_cost = 3 [default = 1];
124  inline bool has_fixed_call_cost() const;
125  inline void clear_fixed_call_cost();
126  static const int kFixedCallCostFieldNumber = 3;
127  inline ::google::protobuf::uint32 fixed_call_cost() const;
128  inline void set_fixed_call_cost(::google::protobuf::uint32 value);
129 
130  // optional uint32 fixed_packet_size = 4 [default = 0];
131  inline bool has_fixed_packet_size() const;
132  inline void clear_fixed_packet_size();
133  static const int kFixedPacketSizeFieldNumber = 4;
134  inline ::google::protobuf::uint32 fixed_packet_size() const;
135  inline void set_fixed_packet_size(::google::protobuf::uint32 value);
136 
137  // optional float variable_multiplier = 5 [default = 0];
138  inline bool has_variable_multiplier() const;
139  inline void clear_variable_multiplier();
140  static const int kVariableMultiplierFieldNumber = 5;
141  inline float variable_multiplier() const;
142  inline void set_variable_multiplier(float value);
143 
144  // optional float multiplier = 6 [default = 1];
145  inline bool has_multiplier() const;
146  inline void clear_multiplier();
147  static const int kMultiplierFieldNumber = 6;
148  inline float multiplier() const;
149  inline void set_multiplier(float value);
150 
151  // optional uint32 rate_limit_count = 7;
152  inline bool has_rate_limit_count() const;
153  inline void clear_rate_limit_count();
154  static const int kRateLimitCountFieldNumber = 7;
155  inline ::google::protobuf::uint32 rate_limit_count() const;
156  inline void set_rate_limit_count(::google::protobuf::uint32 value);
157 
158  // optional uint32 rate_limit_seconds = 8;
159  inline bool has_rate_limit_seconds() const;
160  inline void clear_rate_limit_seconds();
161  static const int kRateLimitSecondsFieldNumber = 8;
162  inline ::google::protobuf::uint32 rate_limit_seconds() const;
163  inline void set_rate_limit_seconds(::google::protobuf::uint32 value);
164 
165  // optional uint32 max_packet_size = 9;
166  inline bool has_max_packet_size() const;
167  inline void clear_max_packet_size();
168  static const int kMaxPacketSizeFieldNumber = 9;
169  inline ::google::protobuf::uint32 max_packet_size() const;
170  inline void set_max_packet_size(::google::protobuf::uint32 value);
171 
172  // optional uint32 max_encoded_size = 10;
173  inline bool has_max_encoded_size() const;
174  inline void clear_max_encoded_size();
175  static const int kMaxEncodedSizeFieldNumber = 10;
176  inline ::google::protobuf::uint32 max_encoded_size() const;
177  inline void set_max_encoded_size(::google::protobuf::uint32 value);
178 
179  // optional float timeout = 11;
180  inline bool has_timeout() const;
181  inline void clear_timeout();
182  static const int kTimeoutFieldNumber = 11;
183  inline float timeout() const;
184  inline void set_timeout(float value);
185 
186  // optional uint32 cap_balance = 12;
187  inline bool has_cap_balance() const;
188  inline void clear_cap_balance();
189  static const int kCapBalanceFieldNumber = 12;
190  inline ::google::protobuf::uint32 cap_balance() const;
191  inline void set_cap_balance(::google::protobuf::uint32 value);
192 
193  // optional float income_per_second = 13 [default = 0];
194  inline bool has_income_per_second() const;
195  inline void clear_income_per_second();
196  static const int kIncomePerSecondFieldNumber = 13;
197  inline float income_per_second() const;
198  inline void set_income_per_second(float value);
199 
200  // optional uint32 service_hash = 14;
201  inline bool has_service_hash() const;
202  inline void clear_service_hash();
203  static const int kServiceHashFieldNumber = 14;
204  inline ::google::protobuf::uint32 service_hash() const;
205  inline void set_service_hash(::google::protobuf::uint32 value);
206 
207  // optional uint32 method_id = 15;
208  inline bool has_method_id() const;
209  inline void clear_method_id();
210  static const int kMethodIdFieldNumber = 15;
211  inline ::google::protobuf::uint32 method_id() const;
212  inline void set_method_id(::google::protobuf::uint32 value);
213 
214  // @@protoc_insertion_point(class_scope:bgs.protocol.config.RPCMethodConfig)
215  private:
216  inline void set_has_service_name();
217  inline void clear_has_service_name();
218  inline void set_has_method_name();
219  inline void clear_has_method_name();
220  inline void set_has_fixed_call_cost();
221  inline void clear_has_fixed_call_cost();
222  inline void set_has_fixed_packet_size();
223  inline void clear_has_fixed_packet_size();
224  inline void set_has_variable_multiplier();
225  inline void clear_has_variable_multiplier();
226  inline void set_has_multiplier();
227  inline void clear_has_multiplier();
228  inline void set_has_rate_limit_count();
229  inline void clear_has_rate_limit_count();
230  inline void set_has_rate_limit_seconds();
231  inline void clear_has_rate_limit_seconds();
232  inline void set_has_max_packet_size();
233  inline void clear_has_max_packet_size();
234  inline void set_has_max_encoded_size();
235  inline void clear_has_max_encoded_size();
236  inline void set_has_timeout();
237  inline void clear_has_timeout();
238  inline void set_has_cap_balance();
239  inline void clear_has_cap_balance();
240  inline void set_has_income_per_second();
241  inline void clear_has_income_per_second();
242  inline void set_has_service_hash();
243  inline void clear_has_service_hash();
244  inline void set_has_method_id();
245  inline void clear_has_method_id();
246 
247  ::google::protobuf::UnknownFieldSet _unknown_fields_;
248 
249  ::google::protobuf::uint32 _has_bits_[1];
250  mutable int _cached_size_;
251  ::std::string* service_name_;
252  ::std::string* method_name_;
253  ::google::protobuf::uint32 fixed_call_cost_;
254  ::google::protobuf::uint32 fixed_packet_size_;
255  float variable_multiplier_;
256  float multiplier_;
257  ::google::protobuf::uint32 rate_limit_count_;
258  ::google::protobuf::uint32 rate_limit_seconds_;
259  ::google::protobuf::uint32 max_packet_size_;
260  ::google::protobuf::uint32 max_encoded_size_;
261  float timeout_;
262  ::google::protobuf::uint32 cap_balance_;
263  float income_per_second_;
264  ::google::protobuf::uint32 service_hash_;
265  ::google::protobuf::uint32 method_id_;
266  friend void TC_SHARED_API protobuf_AddDesc_rpc_5fconfig_2eproto();
267  friend void protobuf_AssignDesc_rpc_5fconfig_2eproto();
268  friend void protobuf_ShutdownFile_rpc_5fconfig_2eproto();
269 
270  void InitAsDefaultInstance();
271  static RPCMethodConfig* default_instance_;
272 };
273 // -------------------------------------------------------------------
274 
275 class TC_SHARED_API RPCMeterConfig : public ::google::protobuf::Message {
276  public:
277  RPCMeterConfig();
278  virtual ~RPCMeterConfig();
279 
280  RPCMeterConfig(const RPCMeterConfig& from);
281 
282  inline RPCMeterConfig& operator=(const RPCMeterConfig& from) {
283  CopyFrom(from);
284  return *this;
285  }
286 
287  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
288  return _unknown_fields_;
289  }
290 
291  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
292  return &_unknown_fields_;
293  }
294 
295  static const ::google::protobuf::Descriptor* descriptor();
296  static const RPCMeterConfig& default_instance();
297 
298  void Swap(RPCMeterConfig* other);
299 
300  // implements Message ----------------------------------------------
301 
302  RPCMeterConfig* New() const;
303  void CopyFrom(const ::google::protobuf::Message& from);
304  void MergeFrom(const ::google::protobuf::Message& from);
305  void CopyFrom(const RPCMeterConfig& from);
306  void MergeFrom(const RPCMeterConfig& from);
307  void Clear();
308  bool IsInitialized() const;
309 
310  int ByteSize() const;
311  bool MergePartialFromCodedStream(
313  void SerializeWithCachedSizes(
315  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
316  int GetCachedSize() const { return _cached_size_; }
317  private:
318  void SharedCtor();
319  void SharedDtor();
320  void SetCachedSize(int size) const;
321  public:
322  ::google::protobuf::Metadata GetMetadata() const;
323 
324  // nested types ----------------------------------------------------
325 
326  // accessors -------------------------------------------------------
327 
328  // repeated .bgs.protocol.config.RPCMethodConfig method = 1;
329  inline int method_size() const;
330  inline void clear_method();
331  static const int kMethodFieldNumber = 1;
332  inline const ::bgs::protocol::config::RPCMethodConfig& method(int index) const;
333  inline ::bgs::protocol::config::RPCMethodConfig* mutable_method(int index);
334  inline ::bgs::protocol::config::RPCMethodConfig* add_method();
335  inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::RPCMethodConfig >&
336  method() const;
337  inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::RPCMethodConfig >*
338  mutable_method();
339 
340  // optional uint32 income_per_second = 2 [default = 1];
341  inline bool has_income_per_second() const;
342  inline void clear_income_per_second();
343  static const int kIncomePerSecondFieldNumber = 2;
344  inline ::google::protobuf::uint32 income_per_second() const;
345  inline void set_income_per_second(::google::protobuf::uint32 value);
346 
347  // optional uint32 initial_balance = 3;
348  inline bool has_initial_balance() const;
349  inline void clear_initial_balance();
350  static const int kInitialBalanceFieldNumber = 3;
351  inline ::google::protobuf::uint32 initial_balance() const;
352  inline void set_initial_balance(::google::protobuf::uint32 value);
353 
354  // optional uint32 cap_balance = 4;
355  inline bool has_cap_balance() const;
356  inline void clear_cap_balance();
357  static const int kCapBalanceFieldNumber = 4;
358  inline ::google::protobuf::uint32 cap_balance() const;
359  inline void set_cap_balance(::google::protobuf::uint32 value);
360 
361  // optional float startup_period = 5 [default = 0];
362  inline bool has_startup_period() const;
363  inline void clear_startup_period();
364  static const int kStartupPeriodFieldNumber = 5;
365  inline float startup_period() const;
366  inline void set_startup_period(float value);
367 
368  // @@protoc_insertion_point(class_scope:bgs.protocol.config.RPCMeterConfig)
369  private:
370  inline void set_has_income_per_second();
371  inline void clear_has_income_per_second();
372  inline void set_has_initial_balance();
373  inline void clear_has_initial_balance();
374  inline void set_has_cap_balance();
375  inline void clear_has_cap_balance();
376  inline void set_has_startup_period();
377  inline void clear_has_startup_period();
378 
380 
382  mutable int _cached_size_;
391 
392  void InitAsDefaultInstance();
394 };
395 // -------------------------------------------------------------------
396 
398  public:
399  ProtocolAlias();
400  virtual ~ProtocolAlias();
401 
402  ProtocolAlias(const ProtocolAlias& from);
403 
404  inline ProtocolAlias& operator=(const ProtocolAlias& from) {
405  CopyFrom(from);
406  return *this;
407  }
408 
409  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
410  return _unknown_fields_;
411  }
412 
413  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
414  return &_unknown_fields_;
415  }
416 
417  static const ::google::protobuf::Descriptor* descriptor();
418  static const ProtocolAlias& default_instance();
419 
420  void Swap(ProtocolAlias* other);
421 
422  // implements Message ----------------------------------------------
423 
424  ProtocolAlias* New() const;
425  void CopyFrom(const ::google::protobuf::Message& from);
426  void MergeFrom(const ::google::protobuf::Message& from);
427  void CopyFrom(const ProtocolAlias& from);
428  void MergeFrom(const ProtocolAlias& from);
429  void Clear();
430  bool IsInitialized() const;
431 
432  int ByteSize() const;
433  bool MergePartialFromCodedStream(
435  void SerializeWithCachedSizes(
437  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
438  int GetCachedSize() const { return _cached_size_; }
439  private:
440  void SharedCtor();
441  void SharedDtor();
442  void SetCachedSize(int size) const;
443  public:
444  ::google::protobuf::Metadata GetMetadata() const;
445 
446  // nested types ----------------------------------------------------
447 
448  // accessors -------------------------------------------------------
449 
450  // required string server_service_name = 1;
451  inline bool has_server_service_name() const;
452  inline void clear_server_service_name();
453  static const int kServerServiceNameFieldNumber = 1;
454  inline const ::std::string& server_service_name() const;
455  inline void set_server_service_name(const ::std::string& value);
456  inline void set_server_service_name(const char* value);
457  inline void set_server_service_name(const char* value, size_t size);
458  inline ::std::string* mutable_server_service_name();
459  inline ::std::string* release_server_service_name();
460  inline void set_allocated_server_service_name(::std::string* server_service_name);
461 
462  // required string client_service_name = 2;
463  inline bool has_client_service_name() const;
464  inline void clear_client_service_name();
465  static const int kClientServiceNameFieldNumber = 2;
466  inline const ::std::string& client_service_name() const;
467  inline void set_client_service_name(const ::std::string& value);
468  inline void set_client_service_name(const char* value);
469  inline void set_client_service_name(const char* value, size_t size);
470  inline ::std::string* mutable_client_service_name();
471  inline ::std::string* release_client_service_name();
472  inline void set_allocated_client_service_name(::std::string* client_service_name);
473 
474  // @@protoc_insertion_point(class_scope:bgs.protocol.config.ProtocolAlias)
475  private:
476  inline void set_has_server_service_name();
477  inline void clear_has_server_service_name();
478  inline void set_has_client_service_name();
479  inline void clear_has_client_service_name();
480 
482 
484  mutable int _cached_size_;
485  ::std::string* server_service_name_;
486  ::std::string* client_service_name_;
490 
491  void InitAsDefaultInstance();
493 };
494 // -------------------------------------------------------------------
495 
497  public:
498  ServiceAliases();
499  virtual ~ServiceAliases();
500 
501  ServiceAliases(const ServiceAliases& from);
502 
503  inline ServiceAliases& operator=(const ServiceAliases& from) {
504  CopyFrom(from);
505  return *this;
506  }
507 
508  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
509  return _unknown_fields_;
510  }
511 
512  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
513  return &_unknown_fields_;
514  }
515 
516  static const ::google::protobuf::Descriptor* descriptor();
517  static const ServiceAliases& default_instance();
518 
519  void Swap(ServiceAliases* other);
520 
521  // implements Message ----------------------------------------------
522 
523  ServiceAliases* New() const;
524  void CopyFrom(const ::google::protobuf::Message& from);
525  void MergeFrom(const ::google::protobuf::Message& from);
526  void CopyFrom(const ServiceAliases& from);
527  void MergeFrom(const ServiceAliases& from);
528  void Clear();
529  bool IsInitialized() const;
530 
531  int ByteSize() const;
532  bool MergePartialFromCodedStream(
534  void SerializeWithCachedSizes(
536  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
537  int GetCachedSize() const { return _cached_size_; }
538  private:
539  void SharedCtor();
540  void SharedDtor();
541  void SetCachedSize(int size) const;
542  public:
543  ::google::protobuf::Metadata GetMetadata() const;
544 
545  // nested types ----------------------------------------------------
546 
547  // accessors -------------------------------------------------------
548 
549  // repeated .bgs.protocol.config.ProtocolAlias protocol_alias = 1;
550  inline int protocol_alias_size() const;
551  inline void clear_protocol_alias();
552  static const int kProtocolAliasFieldNumber = 1;
553  inline const ::bgs::protocol::config::ProtocolAlias& protocol_alias(int index) const;
554  inline ::bgs::protocol::config::ProtocolAlias* mutable_protocol_alias(int index);
555  inline ::bgs::protocol::config::ProtocolAlias* add_protocol_alias();
556  inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::ProtocolAlias >&
557  protocol_alias() const;
558  inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::ProtocolAlias >*
559  mutable_protocol_alias();
560 
561  // @@protoc_insertion_point(class_scope:bgs.protocol.config.ServiceAliases)
562  private:
563 
565 
567  mutable int _cached_size_;
572 
573  void InitAsDefaultInstance();
575 };
576 // ===================================================================
577 
578 
579 // ===================================================================
580 
581 
582 // ===================================================================
583 
584 // RPCMethodConfig
585 
586 // optional string service_name = 1 [deprecated = true];
588  return (_has_bits_[0] & 0x00000001u) != 0;
589 }
591  _has_bits_[0] |= 0x00000001u;
592 }
594  _has_bits_[0] &= ~0x00000001u;
595 }
598  service_name_->clear();
599  }
600  clear_has_service_name();
601 }
602 inline const ::std::string& RPCMethodConfig::service_name() const {
603  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.service_name)
604  return *service_name_;
605 }
606 inline void RPCMethodConfig::set_service_name(const ::std::string& value) {
607  set_has_service_name();
609  service_name_ = new ::std::string;
610  }
611  service_name_->assign(value);
612  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.service_name)
613 }
614 inline void RPCMethodConfig::set_service_name(const char* value) {
615  set_has_service_name();
617  service_name_ = new ::std::string;
618  }
619  service_name_->assign(value);
620  // @@protoc_insertion_point(field_set_char:bgs.protocol.config.RPCMethodConfig.service_name)
621 }
622 inline void RPCMethodConfig::set_service_name(const char* value, size_t size) {
623  set_has_service_name();
625  service_name_ = new ::std::string;
626  }
627  service_name_->assign(reinterpret_cast<const char*>(value), size);
628  // @@protoc_insertion_point(field_set_pointer:bgs.protocol.config.RPCMethodConfig.service_name)
629 }
630 inline ::std::string* RPCMethodConfig::mutable_service_name() {
631  set_has_service_name();
633  service_name_ = new ::std::string;
634  }
635  // @@protoc_insertion_point(field_mutable:bgs.protocol.config.RPCMethodConfig.service_name)
636  return service_name_;
637 }
638 inline ::std::string* RPCMethodConfig::release_service_name() {
639  clear_has_service_name();
641  return NULL;
642  } else {
643  ::std::string* temp = service_name_;
644  service_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
645  return temp;
646  }
647 }
648 inline void RPCMethodConfig::set_allocated_service_name(::std::string* service_name) {
650  delete service_name_;
651  }
652  if (service_name) {
653  set_has_service_name();
654  service_name_ = service_name;
655  } else {
656  clear_has_service_name();
657  service_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
658  }
659  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.config.RPCMethodConfig.service_name)
660 }
661 
662 // optional string method_name = 2 [deprecated = true];
663 inline bool RPCMethodConfig::has_method_name() const {
664  return (_has_bits_[0] & 0x00000002u) != 0;
665 }
667  _has_bits_[0] |= 0x00000002u;
668 }
670  _has_bits_[0] &= ~0x00000002u;
671 }
674  method_name_->clear();
675  }
676  clear_has_method_name();
677 }
678 inline const ::std::string& RPCMethodConfig::method_name() const {
679  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.method_name)
680  return *method_name_;
681 }
682 inline void RPCMethodConfig::set_method_name(const ::std::string& value) {
683  set_has_method_name();
685  method_name_ = new ::std::string;
686  }
687  method_name_->assign(value);
688  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.method_name)
689 }
690 inline void RPCMethodConfig::set_method_name(const char* value) {
691  set_has_method_name();
693  method_name_ = new ::std::string;
694  }
695  method_name_->assign(value);
696  // @@protoc_insertion_point(field_set_char:bgs.protocol.config.RPCMethodConfig.method_name)
697 }
698 inline void RPCMethodConfig::set_method_name(const char* value, size_t size) {
699  set_has_method_name();
701  method_name_ = new ::std::string;
702  }
703  method_name_->assign(reinterpret_cast<const char*>(value), size);
704  // @@protoc_insertion_point(field_set_pointer:bgs.protocol.config.RPCMethodConfig.method_name)
705 }
706 inline ::std::string* RPCMethodConfig::mutable_method_name() {
707  set_has_method_name();
709  method_name_ = new ::std::string;
710  }
711  // @@protoc_insertion_point(field_mutable:bgs.protocol.config.RPCMethodConfig.method_name)
712  return method_name_;
713 }
714 inline ::std::string* RPCMethodConfig::release_method_name() {
715  clear_has_method_name();
717  return NULL;
718  } else {
719  ::std::string* temp = method_name_;
720  method_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
721  return temp;
722  }
723 }
724 inline void RPCMethodConfig::set_allocated_method_name(::std::string* method_name) {
726  delete method_name_;
727  }
728  if (method_name) {
729  set_has_method_name();
730  method_name_ = method_name;
731  } else {
732  clear_has_method_name();
733  method_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
734  }
735  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.config.RPCMethodConfig.method_name)
736 }
737 
738 // optional uint32 fixed_call_cost = 3 [default = 1];
740  return (_has_bits_[0] & 0x00000004u) != 0;
741 }
743  _has_bits_[0] |= 0x00000004u;
744 }
746  _has_bits_[0] &= ~0x00000004u;
747 }
749  fixed_call_cost_ = 1u;
750  clear_has_fixed_call_cost();
751 }
753  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.fixed_call_cost)
754  return fixed_call_cost_;
755 }
757  set_has_fixed_call_cost();
758  fixed_call_cost_ = value;
759  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.fixed_call_cost)
760 }
761 
762 // optional uint32 fixed_packet_size = 4 [default = 0];
764  return (_has_bits_[0] & 0x00000008u) != 0;
765 }
767  _has_bits_[0] |= 0x00000008u;
768 }
770  _has_bits_[0] &= ~0x00000008u;
771 }
773  fixed_packet_size_ = 0u;
774  clear_has_fixed_packet_size();
775 }
777  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.fixed_packet_size)
778  return fixed_packet_size_;
779 }
781  set_has_fixed_packet_size();
782  fixed_packet_size_ = value;
783  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.fixed_packet_size)
784 }
785 
786 // optional float variable_multiplier = 5 [default = 0];
788  return (_has_bits_[0] & 0x00000010u) != 0;
789 }
791  _has_bits_[0] |= 0x00000010u;
792 }
794  _has_bits_[0] &= ~0x00000010u;
795 }
797  variable_multiplier_ = 0;
798  clear_has_variable_multiplier();
799 }
801  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.variable_multiplier)
802  return variable_multiplier_;
803 }
805  set_has_variable_multiplier();
806  variable_multiplier_ = value;
807  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.variable_multiplier)
808 }
809 
810 // optional float multiplier = 6 [default = 1];
811 inline bool RPCMethodConfig::has_multiplier() const {
812  return (_has_bits_[0] & 0x00000020u) != 0;
813 }
815  _has_bits_[0] |= 0x00000020u;
816 }
818  _has_bits_[0] &= ~0x00000020u;
819 }
821  multiplier_ = 1;
822  clear_has_multiplier();
823 }
824 inline float RPCMethodConfig::multiplier() const {
825  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.multiplier)
826  return multiplier_;
827 }
829  set_has_multiplier();
830  multiplier_ = value;
831  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.multiplier)
832 }
833 
834 // optional uint32 rate_limit_count = 7;
836  return (_has_bits_[0] & 0x00000040u) != 0;
837 }
839  _has_bits_[0] |= 0x00000040u;
840 }
842  _has_bits_[0] &= ~0x00000040u;
843 }
845  rate_limit_count_ = 0u;
846  clear_has_rate_limit_count();
847 }
849  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.rate_limit_count)
850  return rate_limit_count_;
851 }
853  set_has_rate_limit_count();
854  rate_limit_count_ = value;
855  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.rate_limit_count)
856 }
857 
858 // optional uint32 rate_limit_seconds = 8;
860  return (_has_bits_[0] & 0x00000080u) != 0;
861 }
863  _has_bits_[0] |= 0x00000080u;
864 }
866  _has_bits_[0] &= ~0x00000080u;
867 }
869  rate_limit_seconds_ = 0u;
870  clear_has_rate_limit_seconds();
871 }
873  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.rate_limit_seconds)
874  return rate_limit_seconds_;
875 }
877  set_has_rate_limit_seconds();
878  rate_limit_seconds_ = value;
879  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.rate_limit_seconds)
880 }
881 
882 // optional uint32 max_packet_size = 9;
884  return (_has_bits_[0] & 0x00000100u) != 0;
885 }
887  _has_bits_[0] |= 0x00000100u;
888 }
890  _has_bits_[0] &= ~0x00000100u;
891 }
893  max_packet_size_ = 0u;
894  clear_has_max_packet_size();
895 }
897  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.max_packet_size)
898  return max_packet_size_;
899 }
901  set_has_max_packet_size();
902  max_packet_size_ = value;
903  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.max_packet_size)
904 }
905 
906 // optional uint32 max_encoded_size = 10;
908  return (_has_bits_[0] & 0x00000200u) != 0;
909 }
911  _has_bits_[0] |= 0x00000200u;
912 }
914  _has_bits_[0] &= ~0x00000200u;
915 }
917  max_encoded_size_ = 0u;
918  clear_has_max_encoded_size();
919 }
921  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.max_encoded_size)
922  return max_encoded_size_;
923 }
925  set_has_max_encoded_size();
926  max_encoded_size_ = value;
927  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.max_encoded_size)
928 }
929 
930 // optional float timeout = 11;
931 inline bool RPCMethodConfig::has_timeout() const {
932  return (_has_bits_[0] & 0x00000400u) != 0;
933 }
935  _has_bits_[0] |= 0x00000400u;
936 }
938  _has_bits_[0] &= ~0x00000400u;
939 }
941  timeout_ = 0;
942  clear_has_timeout();
943 }
944 inline float RPCMethodConfig::timeout() const {
945  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.timeout)
946  return timeout_;
947 }
949  set_has_timeout();
950  timeout_ = value;
951  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.timeout)
952 }
953 
954 // optional uint32 cap_balance = 12;
955 inline bool RPCMethodConfig::has_cap_balance() const {
956  return (_has_bits_[0] & 0x00000800u) != 0;
957 }
959  _has_bits_[0] |= 0x00000800u;
960 }
962  _has_bits_[0] &= ~0x00000800u;
963 }
965  cap_balance_ = 0u;
966  clear_has_cap_balance();
967 }
969  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.cap_balance)
970  return cap_balance_;
971 }
973  set_has_cap_balance();
974  cap_balance_ = value;
975  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.cap_balance)
976 }
977 
978 // optional float income_per_second = 13 [default = 0];
980  return (_has_bits_[0] & 0x00001000u) != 0;
981 }
983  _has_bits_[0] |= 0x00001000u;
984 }
986  _has_bits_[0] &= ~0x00001000u;
987 }
989  income_per_second_ = 0;
990  clear_has_income_per_second();
991 }
993  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.income_per_second)
994  return income_per_second_;
995 }
997  set_has_income_per_second();
998  income_per_second_ = value;
999  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.income_per_second)
1000 }
1001 
1002 // optional uint32 service_hash = 14;
1004  return (_has_bits_[0] & 0x00002000u) != 0;
1005 }
1007  _has_bits_[0] |= 0x00002000u;
1008 }
1010  _has_bits_[0] &= ~0x00002000u;
1011 }
1013  service_hash_ = 0u;
1014  clear_has_service_hash();
1015 }
1017  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.service_hash)
1018  return service_hash_;
1019 }
1021  set_has_service_hash();
1022  service_hash_ = value;
1023  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.service_hash)
1024 }
1025 
1026 // optional uint32 method_id = 15;
1027 inline bool RPCMethodConfig::has_method_id() const {
1028  return (_has_bits_[0] & 0x00004000u) != 0;
1029 }
1031  _has_bits_[0] |= 0x00004000u;
1032 }
1034  _has_bits_[0] &= ~0x00004000u;
1035 }
1037  method_id_ = 0u;
1038  clear_has_method_id();
1039 }
1041  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.method_id)
1042  return method_id_;
1043 }
1045  set_has_method_id();
1046  method_id_ = value;
1047  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.method_id)
1048 }
1049 
1050 // -------------------------------------------------------------------
1051 
1052 // RPCMeterConfig
1053 
1054 // repeated .bgs.protocol.config.RPCMethodConfig method = 1;
1055 inline int RPCMeterConfig::method_size() const {
1056  return method_.size();
1057 }
1059  method_.Clear();
1060 }
1061 inline const ::bgs::protocol::config::RPCMethodConfig& RPCMeterConfig::method(int index) const {
1062  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMeterConfig.method)
1063  return method_.Get(index);
1064 }
1065 inline ::bgs::protocol::config::RPCMethodConfig* RPCMeterConfig::mutable_method(int index) {
1066  // @@protoc_insertion_point(field_mutable:bgs.protocol.config.RPCMeterConfig.method)
1067  return method_.Mutable(index);
1068 }
1069 inline ::bgs::protocol::config::RPCMethodConfig* RPCMeterConfig::add_method() {
1070  // @@protoc_insertion_point(field_add:bgs.protocol.config.RPCMeterConfig.method)
1071  return method_.Add();
1072 }
1073 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::RPCMethodConfig >&
1075  // @@protoc_insertion_point(field_list:bgs.protocol.config.RPCMeterConfig.method)
1076  return method_;
1077 }
1078 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::RPCMethodConfig >*
1080  // @@protoc_insertion_point(field_mutable_list:bgs.protocol.config.RPCMeterConfig.method)
1081  return &method_;
1082 }
1083 
1084 // optional uint32 income_per_second = 2 [default = 1];
1086  return (_has_bits_[0] & 0x00000002u) != 0;
1087 }
1089  _has_bits_[0] |= 0x00000002u;
1090 }
1092  _has_bits_[0] &= ~0x00000002u;
1093 }
1095  income_per_second_ = 1u;
1096  clear_has_income_per_second();
1097 }
1099  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMeterConfig.income_per_second)
1100  return income_per_second_;
1101 }
1103  set_has_income_per_second();
1104  income_per_second_ = value;
1105  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMeterConfig.income_per_second)
1106 }
1107 
1108 // optional uint32 initial_balance = 3;
1110  return (_has_bits_[0] & 0x00000004u) != 0;
1111 }
1113  _has_bits_[0] |= 0x00000004u;
1114 }
1116  _has_bits_[0] &= ~0x00000004u;
1117 }
1119  initial_balance_ = 0u;
1120  clear_has_initial_balance();
1121 }
1123  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMeterConfig.initial_balance)
1124  return initial_balance_;
1125 }
1127  set_has_initial_balance();
1128  initial_balance_ = value;
1129  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMeterConfig.initial_balance)
1130 }
1131 
1132 // optional uint32 cap_balance = 4;
1133 inline bool RPCMeterConfig::has_cap_balance() const {
1134  return (_has_bits_[0] & 0x00000008u) != 0;
1135 }
1137  _has_bits_[0] |= 0x00000008u;
1138 }
1140  _has_bits_[0] &= ~0x00000008u;
1141 }
1143  cap_balance_ = 0u;
1144  clear_has_cap_balance();
1145 }
1147  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMeterConfig.cap_balance)
1148  return cap_balance_;
1149 }
1151  set_has_cap_balance();
1152  cap_balance_ = value;
1153  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMeterConfig.cap_balance)
1154 }
1155 
1156 // optional float startup_period = 5 [default = 0];
1158  return (_has_bits_[0] & 0x00000010u) != 0;
1159 }
1161  _has_bits_[0] |= 0x00000010u;
1162 }
1164  _has_bits_[0] &= ~0x00000010u;
1165 }
1167  startup_period_ = 0;
1168  clear_has_startup_period();
1169 }
1170 inline float RPCMeterConfig::startup_period() const {
1171  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMeterConfig.startup_period)
1172  return startup_period_;
1173 }
1175  set_has_startup_period();
1176  startup_period_ = value;
1177  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMeterConfig.startup_period)
1178 }
1179 
1180 // -------------------------------------------------------------------
1181 
1182 // ProtocolAlias
1183 
1184 // required string server_service_name = 1;
1186  return (_has_bits_[0] & 0x00000001u) != 0;
1187 }
1189  _has_bits_[0] |= 0x00000001u;
1190 }
1192  _has_bits_[0] &= ~0x00000001u;
1193 }
1195  if (server_service_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1196  server_service_name_->clear();
1197  }
1198  clear_has_server_service_name();
1199 }
1200 inline const ::std::string& ProtocolAlias::server_service_name() const {
1201  // @@protoc_insertion_point(field_get:bgs.protocol.config.ProtocolAlias.server_service_name)
1202  return *server_service_name_;
1203 }
1204 inline void ProtocolAlias::set_server_service_name(const ::std::string& value) {
1205  set_has_server_service_name();
1206  if (server_service_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1207  server_service_name_ = new ::std::string;
1208  }
1209  server_service_name_->assign(value);
1210  // @@protoc_insertion_point(field_set:bgs.protocol.config.ProtocolAlias.server_service_name)
1211 }
1213  set_has_server_service_name();
1214  if (server_service_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1215  server_service_name_ = new ::std::string;
1216  }
1217  server_service_name_->assign(value);
1218  // @@protoc_insertion_point(field_set_char:bgs.protocol.config.ProtocolAlias.server_service_name)
1219 }
1220 inline void ProtocolAlias::set_server_service_name(const char* value, size_t size) {
1221  set_has_server_service_name();
1222  if (server_service_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1223  server_service_name_ = new ::std::string;
1224  }
1225  server_service_name_->assign(reinterpret_cast<const char*>(value), size);
1226  // @@protoc_insertion_point(field_set_pointer:bgs.protocol.config.ProtocolAlias.server_service_name)
1227 }
1229  set_has_server_service_name();
1230  if (server_service_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1231  server_service_name_ = new ::std::string;
1232  }
1233  // @@protoc_insertion_point(field_mutable:bgs.protocol.config.ProtocolAlias.server_service_name)
1234  return server_service_name_;
1235 }
1237  clear_has_server_service_name();
1238  if (server_service_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1239  return NULL;
1240  } else {
1241  ::std::string* temp = server_service_name_;
1242  server_service_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1243  return temp;
1244  }
1245 }
1246 inline void ProtocolAlias::set_allocated_server_service_name(::std::string* server_service_name) {
1247  if (server_service_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1248  delete server_service_name_;
1249  }
1250  if (server_service_name) {
1251  set_has_server_service_name();
1252  server_service_name_ = server_service_name;
1253  } else {
1254  clear_has_server_service_name();
1255  server_service_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1256  }
1257  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.config.ProtocolAlias.server_service_name)
1258 }
1259 
1260 // required string client_service_name = 2;
1262  return (_has_bits_[0] & 0x00000002u) != 0;
1263 }
1265  _has_bits_[0] |= 0x00000002u;
1266 }
1268  _has_bits_[0] &= ~0x00000002u;
1269 }
1271  if (client_service_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1272  client_service_name_->clear();
1273  }
1274  clear_has_client_service_name();
1275 }
1276 inline const ::std::string& ProtocolAlias::client_service_name() const {
1277  // @@protoc_insertion_point(field_get:bgs.protocol.config.ProtocolAlias.client_service_name)
1278  return *client_service_name_;
1279 }
1280 inline void ProtocolAlias::set_client_service_name(const ::std::string& value) {
1281  set_has_client_service_name();
1282  if (client_service_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1283  client_service_name_ = new ::std::string;
1284  }
1285  client_service_name_->assign(value);
1286  // @@protoc_insertion_point(field_set:bgs.protocol.config.ProtocolAlias.client_service_name)
1287 }
1289  set_has_client_service_name();
1290  if (client_service_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1291  client_service_name_ = new ::std::string;
1292  }
1293  client_service_name_->assign(value);
1294  // @@protoc_insertion_point(field_set_char:bgs.protocol.config.ProtocolAlias.client_service_name)
1295 }
1296 inline void ProtocolAlias::set_client_service_name(const char* value, size_t size) {
1297  set_has_client_service_name();
1298  if (client_service_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1299  client_service_name_ = new ::std::string;
1300  }
1301  client_service_name_->assign(reinterpret_cast<const char*>(value), size);
1302  // @@protoc_insertion_point(field_set_pointer:bgs.protocol.config.ProtocolAlias.client_service_name)
1303 }
1305  set_has_client_service_name();
1306  if (client_service_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1307  client_service_name_ = new ::std::string;
1308  }
1309  // @@protoc_insertion_point(field_mutable:bgs.protocol.config.ProtocolAlias.client_service_name)
1310  return client_service_name_;
1311 }
1313  clear_has_client_service_name();
1314  if (client_service_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1315  return NULL;
1316  } else {
1317  ::std::string* temp = client_service_name_;
1318  client_service_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1319  return temp;
1320  }
1321 }
1322 inline void ProtocolAlias::set_allocated_client_service_name(::std::string* client_service_name) {
1323  if (client_service_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1324  delete client_service_name_;
1325  }
1326  if (client_service_name) {
1327  set_has_client_service_name();
1328  client_service_name_ = client_service_name;
1329  } else {
1330  clear_has_client_service_name();
1331  client_service_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1332  }
1333  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.config.ProtocolAlias.client_service_name)
1334 }
1335 
1336 // -------------------------------------------------------------------
1337 
1338 // ServiceAliases
1339 
1340 // repeated .bgs.protocol.config.ProtocolAlias protocol_alias = 1;
1342  return protocol_alias_.size();
1343 }
1345  protocol_alias_.Clear();
1346 }
1347 inline const ::bgs::protocol::config::ProtocolAlias& ServiceAliases::protocol_alias(int index) const {
1348  // @@protoc_insertion_point(field_get:bgs.protocol.config.ServiceAliases.protocol_alias)
1349  return protocol_alias_.Get(index);
1350 }
1351 inline ::bgs::protocol::config::ProtocolAlias* ServiceAliases::mutable_protocol_alias(int index) {
1352  // @@protoc_insertion_point(field_mutable:bgs.protocol.config.ServiceAliases.protocol_alias)
1353  return protocol_alias_.Mutable(index);
1354 }
1355 inline ::bgs::protocol::config::ProtocolAlias* ServiceAliases::add_protocol_alias() {
1356  // @@protoc_insertion_point(field_add:bgs.protocol.config.ServiceAliases.protocol_alias)
1357  return protocol_alias_.Add();
1358 }
1359 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::ProtocolAlias >&
1361  // @@protoc_insertion_point(field_list:bgs.protocol.config.ServiceAliases.protocol_alias)
1362  return protocol_alias_;
1363 }
1364 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::ProtocolAlias >*
1366  // @@protoc_insertion_point(field_mutable_list:bgs.protocol.config.ServiceAliases.protocol_alias)
1367  return &protocol_alias_;
1368 }
1369 
1370 
1371 // @@protoc_insertion_point(namespace_scope)
1372 
1373 } // namespace config
1374 } // namespace protocol
1375 } // namespace bgs
1376 
1377 #ifndef SWIG
1378 namespace google {
1379 namespace protobuf {
1380 
1381 
1382 } // namespace google
1383 } // namespace protobuf
1384 #endif // SWIG
1385 
1386 // @@protoc_insertion_point(global_scope)
1387 
1388 #endif // PROTOBUF_rpc_5fconfig_2eproto__INCLUDED
inline::std::string * release_server_service_name()
Definition: rpc_config.pb.h:1236
RPCMethodConfig & operator=(const RPCMethodConfig &from)
Definition: rpc_config.pb.h:53
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: rpc_config.pb.h:481
void clear_max_packet_size()
Definition: rpc_config.pb.h:892
void set_variable_multiplier(float value)
Definition: rpc_config.pb.h:804
void clear_has_income_per_second()
Definition: rpc_config.pb.h:1091
void set_income_per_second(float value)
Definition: rpc_config.pb.h:996
::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::RPCMethodConfig > method_
Definition: rpc_config.pb.h:383
inline::google::protobuf::uint32 max_packet_size() const
Definition: rpc_config.pb.h:896
void set_timeout(float value)
Definition: rpc_config.pb.h:948
inline::google::protobuf::uint32 initial_balance() const
Definition: rpc_config.pb.h:1122
int GetCachedSize() const
Definition: rpc_config.pb.h:87
void clear_fixed_packet_size()
Definition: rpc_config.pb.h:772
void set_has_max_encoded_size()
Definition: rpc_config.pb.h:910
void set_has_method_name()
Definition: rpc_config.pb.h:666
void TC_SHARED_API protobuf_AddDesc_rpc_5fconfig_2eproto()
const ::std::string & method_name() const PROTOBUF_DEPRECATED
Definition: rpc_config.pb.h:678
void set_has_timeout()
Definition: rpc_config.pb.h:934
inline::google::protobuf::uint32 fixed_packet_size() const
Definition: rpc_config.pb.h:776
void clear_has_rate_limit_seconds()
Definition: rpc_config.pb.h:865
bool has_cap_balance() const
Definition: rpc_config.pb.h:1133
int _cached_size_
Definition: rpc_config.pb.h:484
void protobuf_AssignDesc_rpc_5fconfig_2eproto()
void clear_service_name() PROTOBUF_DEPRECATED
Definition: rpc_config.pb.h:596
bool has_server_service_name() const
Definition: rpc_config.pb.h:1185
bool has_income_per_second() const
Definition: rpc_config.pb.h:979
void clear_has_variable_multiplier()
Definition: rpc_config.pb.h:793
Definition: Session.h:36
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: rpc_config.pb.h:287
void clear_income_per_second()
Definition: rpc_config.pb.h:988
inline::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::RPCMethodConfig > * mutable_method()
Definition: rpc_config.pb.h:1079
void clear_has_cap_balance()
Definition: rpc_config.pb.h:961
static RPCMeterConfig * default_instance_
Definition: rpc_config.pb.h:393
const ::std::string & service_name() const PROTOBUF_DEPRECATED
Definition: rpc_config.pb.h:602
void set_has_service_name()
Definition: rpc_config.pb.h:590
bool has_cap_balance() const
Definition: rpc_config.pb.h:955
void set_has_service_hash()
Definition: rpc_config.pb.h:1006
Definition: unknown_field_set.h:74
inline::google::protobuf::uint32 cap_balance() const
Definition: rpc_config.pb.h:968
bool has_max_packet_size() const
Definition: rpc_config.pb.h:883
uint8_t uint8
Definition: common.h:175
void clear_has_client_service_name()
Definition: rpc_config.pb.h:1267
float variable_multiplier() const
Definition: rpc_config.pb.h:800
void clear_has_fixed_call_cost()
Definition: rpc_config.pb.h:745
void set_rate_limit_count(::google::protobuf::uint32 value)
Definition: rpc_config.pb.h:852
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: rpc_config.pb.h:409
STL namespace.
void set_has_fixed_packet_size()
Definition: rpc_config.pb.h:766
bool has_method_id() const
Definition: rpc_config.pb.h:1027
Definition: rpc_config.pb.h:46
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: message.h:147
void clear_has_service_hash()
Definition: rpc_config.pb.h:1009
void clear_fixed_call_cost()
Definition: rpc_config.pb.h:748
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: rpc_config.pb.h:512
LIBPROTOBUF_EXPORTconst::std::string & GetEmptyStringAlreadyInited()
Definition: generated_message_util.h:79
bool has_rate_limit_count() const
Definition: rpc_config.pb.h:835
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: rpc_config.pb.h:508
bool has_timeout() const
Definition: rpc_config.pb.h:931
void set_has_rate_limit_count()
Definition: rpc_config.pb.h:838
void clear_rate_limit_seconds()
Definition: rpc_config.pb.h:868
void set_has_client_service_name()
Definition: rpc_config.pb.h:1264
void clear_has_fixed_packet_size()
Definition: rpc_config.pb.h:769
void set_max_encoded_size(::google::protobuf::uint32 value)
Definition: rpc_config.pb.h:924
void clear_timeout()
Definition: rpc_config.pb.h:940
void set_max_packet_size(::google::protobuf::uint32 value)
Definition: rpc_config.pb.h:900
void clear_has_startup_period()
Definition: rpc_config.pb.h:1163
void clear_method_name() PROTOBUF_DEPRECATED
Definition: rpc_config.pb.h:672
Definition: message.h:165
#define output
Definition: wire_format_lite.h:381
void set_has_income_per_second()
Definition: rpc_config.pb.h:982
RPCMeterConfig & operator=(const RPCMeterConfig &from)
Definition: rpc_config.pb.h:282
::std::string * server_service_name_
Definition: rpc_config.pb.h:485
Definition: rpc_config.pb.h:496
bool has_startup_period() const
Definition: rpc_config.pb.h:1157
void set_allocated_service_name(::std::string *service_name) PROTOBUF_DEPRECATED
Definition: rpc_config.pb.h:648
Definition: coded_stream.h:156
void set_startup_period(float value)
Definition: rpc_config.pb.h:1174
float startup_period_
Definition: rpc_config.pb.h:387
bool has_method_name() const PROTOBUF_DEPRECATED
Definition: rpc_config.pb.h:663
void clear_has_server_service_name()
Definition: rpc_config.pb.h:1191
bool has_fixed_call_cost() const
Definition: rpc_config.pb.h:739
bool has_variable_multiplier() const
Definition: rpc_config.pb.h:787
float timeout() const
Definition: rpc_config.pb.h:944
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: rpc_config.pb.h:564
void set_fixed_call_cost(::google::protobuf::uint32 value)
Definition: rpc_config.pb.h:756
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: rpc_config.pb.h:58
inline::std::string * mutable_service_name() PROTOBUF_DEPRECATED
Definition: rpc_config.pb.h:630
void set_multiplier(float value)
Definition: rpc_config.pb.h:828
void clear_max_encoded_size()
Definition: rpc_config.pb.h:916
Definition: coded_stream.h:621
bool has_max_encoded_size() const
Definition: rpc_config.pb.h:907
bool has_fixed_packet_size() const
Definition: rpc_config.pb.h:763
Definition: rpc_config.pb.h:397
void set_has_multiplier()
Definition: rpc_config.pb.h:814
void set_method_id(::google::protobuf::uint32 value)
Definition: rpc_config.pb.h:1044
void clear_initial_balance()
Definition: rpc_config.pb.h:1118
inline::google::protobuf::uint32 max_encoded_size() const
Definition: rpc_config.pb.h:920
float multiplier() const
Definition: rpc_config.pb.h:824
inline::google::protobuf::uint32 rate_limit_count() const
Definition: rpc_config.pb.h:848
void set_has_server_service_name()
Definition: rpc_config.pb.h:1188
inline::google::protobuf::uint32 fixed_call_cost() const
Definition: rpc_config.pb.h:752
void set_service_hash(::google::protobuf::uint32 value)
Definition: rpc_config.pb.h:1020
#define PROTOBUF_DEPRECATED
Definition: generated_message_util.h:60
Definition: message.h:150
void clear_has_method_name()
Definition: rpc_config.pb.h:669
void set_rate_limit_seconds(::google::protobuf::uint32 value)
Definition: rpc_config.pb.h:876
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: rpc_config.pb.h:291
void set_has_max_packet_size()
Definition: rpc_config.pb.h:886
void set_has_initial_balance()
Definition: rpc_config.pb.h:1112
#define input
Definition: wire_format_lite.h:242
void set_allocated_method_name(::std::string *method_name) PROTOBUF_DEPRECATED
Definition: rpc_config.pb.h:724
bool has_client_service_name() const
Definition: rpc_config.pb.h:1261
::std::string * client_service_name_
Definition: rpc_config.pb.h:486
inline::std::string * release_method_name() PROTOBUF_DEPRECATED
Definition: rpc_config.pb.h:714
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: rpc_config.pb.h:413
float income_per_second() const
Definition: rpc_config.pb.h:992
inline::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::ProtocolAlias > * mutable_protocol_alias()
Definition: rpc_config.pb.h:1365
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::RPCMethodConfig > & method() const
Definition: rpc_config.pb.h:1074
void clear_rate_limit_count()
Definition: rpc_config.pb.h:844
uint32_t uint32
Definition: common.h:177
uint32_t uint32
Definition: Define.h:150
const ::std::string & client_service_name() const
Definition: rpc_config.pb.h:1276
bool has_service_hash() const
Definition: rpc_config.pb.h:1003
#define TC_SHARED_API
Definition: Define.h:128
::google::protobuf::uint32 income_per_second_
Definition: rpc_config.pb.h:384
void set_has_cap_balance()
Definition: rpc_config.pb.h:1136
static const int kMethodIdFieldNumber
Definition: method_options.pb.h:46
void clear_cap_balance()
Definition: rpc_config.pb.h:1142
inline::std::string * mutable_client_service_name()
Definition: rpc_config.pb.h:1304
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::ProtocolAlias > & protocol_alias() const
Definition: rpc_config.pb.h:1360
void clear_has_max_encoded_size()
Definition: rpc_config.pb.h:913
void set_has_variable_multiplier()
Definition: rpc_config.pb.h:790
void clear_service_hash()
Definition: rpc_config.pb.h:1012
inline::google::protobuf::uint32 service_hash() const
Definition: rpc_config.pb.h:1016
void clear_method()
Definition: rpc_config.pb.h:1058
bool has_multiplier() const
Definition: rpc_config.pb.h:811
inline::std::string * release_client_service_name()
Definition: rpc_config.pb.h:1312
void set_allocated_server_service_name(::std::string *server_service_name)
Definition: rpc_config.pb.h:1246
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: rpc_config.pb.h:379
void set_cap_balance(::google::protobuf::uint32 value)
Definition: rpc_config.pb.h:972
bool has_service_name() const PROTOBUF_DEPRECATED
Definition: rpc_config.pb.h:587
void set_initial_balance(::google::protobuf::uint32 value)
Definition: rpc_config.pb.h:1126
::google::protobuf::uint32 initial_balance_
Definition: rpc_config.pb.h:385
void clear_client_service_name()
Definition: rpc_config.pb.h:1270
inline::std::string * mutable_server_service_name()
Definition: rpc_config.pb.h:1228
ServiceAliases & operator=(const ServiceAliases &from)
Definition: rpc_config.pb.h:503
void clear_income_per_second()
Definition: rpc_config.pb.h:1094
void clear_has_initial_balance()
Definition: rpc_config.pb.h:1115
void set_has_income_per_second()
Definition: rpc_config.pb.h:1088
void clear_multiplier()
Definition: rpc_config.pb.h:820
void set_allocated_client_service_name(::std::string *client_service_name)
Definition: rpc_config.pb.h:1322
static ProtocolAlias * default_instance_
Definition: rpc_config.pb.h:492
inline::std::string * mutable_method_name() PROTOBUF_DEPRECATED
Definition: rpc_config.pb.h:706
void set_cap_balance(::google::protobuf::uint32 value)
Definition: rpc_config.pb.h:1150
void set_has_startup_period()
Definition: rpc_config.pb.h:1160
void set_client_service_name(const ::std::string &value)
Definition: rpc_config.pb.h:1280
inline::google::protobuf::uint32 method_id() const
Definition: rpc_config.pb.h:1040
int method_size() const
Definition: rpc_config.pb.h:1055
void clear_has_max_packet_size()
Definition: rpc_config.pb.h:889
int protocol_alias_size() const
Definition: rpc_config.pb.h:1341
void clear_server_service_name()
Definition: rpc_config.pb.h:1194
bool has_rate_limit_seconds() const
Definition: rpc_config.pb.h:859
const ::std::string & server_service_name() const
Definition: rpc_config.pb.h:1200
inline::google::protobuf::uint32 cap_balance() const
Definition: rpc_config.pb.h:1146
void clear_protocol_alias()
Definition: rpc_config.pb.h:1344
void clear_cap_balance()
Definition: rpc_config.pb.h:964
void set_method_name(const ::std::string &value) PROTOBUF_DEPRECATED
Definition: rpc_config.pb.h:682
void clear_has_service_name()
Definition: rpc_config.pb.h:593
bool has_income_per_second() const
Definition: rpc_config.pb.h:1085
inline::google::protobuf::uint32 rate_limit_seconds() const
Definition: rpc_config.pb.h:872
inline::bgs::protocol::config::ProtocolAlias * add_protocol_alias()
Definition: rpc_config.pb.h:1355
void set_fixed_packet_size(::google::protobuf::uint32 value)
Definition: rpc_config.pb.h:780
void clear_has_rate_limit_count()
Definition: rpc_config.pb.h:841
::google::protobuf::uint32 cap_balance_
Definition: rpc_config.pb.h:386
void clear_variable_multiplier()
Definition: rpc_config.pb.h:796
Definition: BnetFileGenerator.h:47
inline::std::string * release_service_name() PROTOBUF_DEPRECATED
Definition: rpc_config.pb.h:638
int _cached_size_
Definition: rpc_config.pb.h:567
void clear_method_id()
Definition: rpc_config.pb.h:1036
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: rpc_config.pb.h:62
const FieldDescriptor value
Definition: descriptor.h:1522
void clear_has_timeout()
Definition: rpc_config.pb.h:937
int GetCachedSize() const
Definition: rpc_config.pb.h:438
void set_income_per_second(::google::protobuf::uint32 value)
Definition: rpc_config.pb.h:1102
int GetCachedSize() const
Definition: rpc_config.pb.h:316
uint32_t uint32
Definition: g3dmath.h:168
inline::bgs::protocol::config::RPCMethodConfig * add_method()
Definition: rpc_config.pb.h:1069
#define const
Definition: zconf.h:217
float startup_period() const
Definition: rpc_config.pb.h:1170
void protobuf_ShutdownFile_rpc_5fconfig_2eproto()
void set_has_method_id()
Definition: rpc_config.pb.h:1030
void clear_has_income_per_second()
Definition: rpc_config.pb.h:985
inline::google::protobuf::uint32 income_per_second() const
Definition: rpc_config.pb.h:1098
void clear_startup_period()
Definition: rpc_config.pb.h:1166
Definition: rpc_config.pb.h:275
void set_service_name(const ::std::string &value) PROTOBUF_DEPRECATED
Definition: rpc_config.pb.h:606
int _cached_size_
Definition: rpc_config.pb.h:382
::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::ProtocolAlias > protocol_alias_
Definition: rpc_config.pb.h:568
void set_has_cap_balance()
Definition: rpc_config.pb.h:958
void clear_has_multiplier()
Definition: rpc_config.pb.h:817
static ServiceAliases * default_instance_
Definition: rpc_config.pb.h:574
TC_SHARED_API::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false > method_id
Definition: method_options.pb.h:44
void set_has_fixed_call_cost()
Definition: rpc_config.pb.h:742
void set_server_service_name(const ::std::string &value)
Definition: rpc_config.pb.h:1204
ProtocolAlias & operator=(const ProtocolAlias &from)
Definition: rpc_config.pb.h:404
void clear_has_method_id()
Definition: rpc_config.pb.h:1033
void set_has_rate_limit_seconds()
Definition: rpc_config.pb.h:862
int GetCachedSize() const
Definition: rpc_config.pb.h:537
void clear_has_cap_balance()
Definition: rpc_config.pb.h:1139
bool has_initial_balance() const
Definition: rpc_config.pb.h:1109