TrinityCore
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
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 "Define.h" // for TC_PROTO_API
28// @@protoc_insertion_point(includes)
29
30namespace bgs {
31namespace protocol {
32namespace config {
33
34// Internal implementation detail -- do not call these.
38
39class RPCMethodConfig;
40class RPCMeterConfig;
41
42// ===================================================================
43
44class TC_PROTO_API RPCMethodConfig : public ::google::protobuf::Message {
45 public:
48
50
52 CopyFrom(from);
53 return *this;
54 }
55
56 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
57 return _unknown_fields_;
58 }
59
60 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
61 return &_unknown_fields_;
62 }
63
64 static const ::google::protobuf::Descriptor* descriptor();
66
67 void Swap(RPCMethodConfig* other);
68
69 // implements Message ----------------------------------------------
70
72 int GetCachedSize() const { return _cached_size_; }
73 private:
74 void SharedCtor();
75 void SharedDtor();
76 void SetCachedSize(int size) const;
77 public:
78 ::google::protobuf::Metadata GetMetadata() const;
79
80 // nested types ----------------------------------------------------
81
82 // accessors -------------------------------------------------------
83
84 // optional string service_name = 1 [deprecated = true];
85 inline bool has_service_name() const PROTOBUF_DEPRECATED;
86 inline void clear_service_name() PROTOBUF_DEPRECATED;
87 static const int kServiceNameFieldNumber = 1;
88 inline const ::std::string& service_name() const PROTOBUF_DEPRECATED;
89 inline void set_service_name(const ::std::string& value) PROTOBUF_DEPRECATED;
90 inline void set_service_name(const char* value) PROTOBUF_DEPRECATED;
91 inline void set_service_name(const char* value, size_t size) PROTOBUF_DEPRECATED;
92 inline ::std::string* mutable_service_name() PROTOBUF_DEPRECATED;
93 inline ::std::string* release_service_name() PROTOBUF_DEPRECATED;
94 inline void set_allocated_service_name(::std::string* service_name) PROTOBUF_DEPRECATED;
95
96 // optional string method_name = 2 [deprecated = true];
97 inline bool has_method_name() const PROTOBUF_DEPRECATED;
98 inline void clear_method_name() PROTOBUF_DEPRECATED;
99 static const int kMethodNameFieldNumber = 2;
100 inline const ::std::string& method_name() const PROTOBUF_DEPRECATED;
101 inline void set_method_name(const ::std::string& value) PROTOBUF_DEPRECATED;
102 inline void set_method_name(const char* value) PROTOBUF_DEPRECATED;
103 inline void set_method_name(const char* value, size_t size) PROTOBUF_DEPRECATED;
104 inline ::std::string* mutable_method_name() PROTOBUF_DEPRECATED;
105 inline ::std::string* release_method_name() PROTOBUF_DEPRECATED;
106 inline void set_allocated_method_name(::std::string* method_name) PROTOBUF_DEPRECATED;
107
108 // optional uint32 fixed_call_cost = 3 [default = 1];
109 inline bool has_fixed_call_cost() const;
110 inline void clear_fixed_call_cost();
111 static const int kFixedCallCostFieldNumber = 3;
112 inline ::google::protobuf::uint32 fixed_call_cost() const;
113 inline void set_fixed_call_cost(::google::protobuf::uint32 value);
114
115 // optional uint32 fixed_packet_size = 4;
116 inline bool has_fixed_packet_size() const;
117 inline void clear_fixed_packet_size();
118 static const int kFixedPacketSizeFieldNumber = 4;
119 inline ::google::protobuf::uint32 fixed_packet_size() const;
120 inline void set_fixed_packet_size(::google::protobuf::uint32 value);
121
122 // optional float variable_multiplier = 5;
123 inline bool has_variable_multiplier() const;
124 inline void clear_variable_multiplier();
125 static const int kVariableMultiplierFieldNumber = 5;
126 inline float variable_multiplier() const;
127 inline void set_variable_multiplier(float value);
128
129 // optional float multiplier = 6 [default = 1];
130 inline bool has_multiplier() const;
131 inline void clear_multiplier();
132 static const int kMultiplierFieldNumber = 6;
133 inline float multiplier() const;
134 inline void set_multiplier(float value);
135
136 // optional uint32 rate_limit_count = 7;
137 inline bool has_rate_limit_count() const;
138 inline void clear_rate_limit_count();
139 static const int kRateLimitCountFieldNumber = 7;
140 inline ::google::protobuf::uint32 rate_limit_count() const;
141 inline void set_rate_limit_count(::google::protobuf::uint32 value);
142
143 // optional uint32 rate_limit_seconds = 8;
144 inline bool has_rate_limit_seconds() const;
145 inline void clear_rate_limit_seconds();
146 static const int kRateLimitSecondsFieldNumber = 8;
147 inline ::google::protobuf::uint32 rate_limit_seconds() const;
148 inline void set_rate_limit_seconds(::google::protobuf::uint32 value);
149
150 // optional uint32 max_packet_size = 9;
151 inline bool has_max_packet_size() const;
152 inline void clear_max_packet_size();
153 static const int kMaxPacketSizeFieldNumber = 9;
154 inline ::google::protobuf::uint32 max_packet_size() const;
155 inline void set_max_packet_size(::google::protobuf::uint32 value);
156
157 // optional uint32 max_encoded_size = 10;
158 inline bool has_max_encoded_size() const;
159 inline void clear_max_encoded_size();
160 static const int kMaxEncodedSizeFieldNumber = 10;
161 inline ::google::protobuf::uint32 max_encoded_size() const;
162 inline void set_max_encoded_size(::google::protobuf::uint32 value);
163
164 // optional float timeout = 11;
165 inline bool has_timeout() const;
166 inline void clear_timeout();
167 static const int kTimeoutFieldNumber = 11;
168 inline float timeout() const;
169 inline void set_timeout(float value);
170
171 // optional uint32 cap_balance = 12;
172 inline bool has_cap_balance() const;
173 inline void clear_cap_balance();
174 static const int kCapBalanceFieldNumber = 12;
175 inline ::google::protobuf::uint32 cap_balance() const;
176 inline void set_cap_balance(::google::protobuf::uint32 value);
177
178 // optional float income_per_second = 13;
179 inline bool has_income_per_second() const;
180 inline void clear_income_per_second();
181 static const int kIncomePerSecondFieldNumber = 13;
182 inline float income_per_second() const;
183 inline void set_income_per_second(float value);
184
185 // optional uint32 service_hash = 14;
186 inline bool has_service_hash() const;
187 inline void clear_service_hash();
188 static const int kServiceHashFieldNumber = 14;
189 inline ::google::protobuf::uint32 service_hash() const;
190 inline void set_service_hash(::google::protobuf::uint32 value);
191
192 // optional uint32 method_id = 15;
193 inline bool has_method_id() const;
194 inline void clear_method_id();
195 static const int kMethodIdFieldNumber = 15;
196 inline ::google::protobuf::uint32 method_id() const;
197 inline void set_method_id(::google::protobuf::uint32 value);
198
199 // @@protoc_insertion_point(class_scope:bgs.protocol.config.RPCMethodConfig)
200 private:
201 inline void set_has_service_name();
202 inline void clear_has_service_name();
203 inline void set_has_method_name();
204 inline void clear_has_method_name();
205 inline void set_has_fixed_call_cost();
206 inline void clear_has_fixed_call_cost();
207 inline void set_has_fixed_packet_size();
208 inline void clear_has_fixed_packet_size();
209 inline void set_has_variable_multiplier();
210 inline void clear_has_variable_multiplier();
211 inline void set_has_multiplier();
212 inline void clear_has_multiplier();
213 inline void set_has_rate_limit_count();
214 inline void clear_has_rate_limit_count();
215 inline void set_has_rate_limit_seconds();
216 inline void clear_has_rate_limit_seconds();
217 inline void set_has_max_packet_size();
218 inline void clear_has_max_packet_size();
219 inline void set_has_max_encoded_size();
220 inline void clear_has_max_encoded_size();
221 inline void set_has_timeout();
222 inline void clear_has_timeout();
223 inline void set_has_cap_balance();
224 inline void clear_has_cap_balance();
225 inline void set_has_income_per_second();
226 inline void clear_has_income_per_second();
227 inline void set_has_service_hash();
228 inline void clear_has_service_hash();
229 inline void set_has_method_id();
230 inline void clear_has_method_id();
231
232 ::google::protobuf::UnknownFieldSet _unknown_fields_;
233
234 ::google::protobuf::uint32 _has_bits_[1];
235 mutable int _cached_size_;
236 ::std::string* service_name_;
237 ::std::string* method_name_;
238 ::google::protobuf::uint32 fixed_call_cost_;
239 ::google::protobuf::uint32 fixed_packet_size_;
240 float variable_multiplier_;
241 float multiplier_;
242 ::google::protobuf::uint32 rate_limit_count_;
243 ::google::protobuf::uint32 rate_limit_seconds_;
244 ::google::protobuf::uint32 max_packet_size_;
245 ::google::protobuf::uint32 max_encoded_size_;
246 float timeout_;
247 ::google::protobuf::uint32 cap_balance_;
248 float income_per_second_;
249 ::google::protobuf::uint32 service_hash_;
250 ::google::protobuf::uint32 method_id_;
254
255 void InitAsDefaultInstance();
256 static RPCMethodConfig* default_instance_;
257};
258// -------------------------------------------------------------------
259
260class TC_PROTO_API RPCMeterConfig : public ::google::protobuf::Message {
261 public:
264
266
268 CopyFrom(from);
269 return *this;
270 }
271
272 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
273 return _unknown_fields_;
274 }
275
276 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
277 return &_unknown_fields_;
278 }
279
280 static const ::google::protobuf::Descriptor* descriptor();
282
283 void Swap(RPCMeterConfig* other);
284
285 // implements Message ----------------------------------------------
286
288 int GetCachedSize() const { return _cached_size_; }
289 private:
292 void SetCachedSize(int size) const;
293 public:
294 ::google::protobuf::Metadata GetMetadata() const;
295
296 // nested types ----------------------------------------------------
297
298 // accessors -------------------------------------------------------
299
300 // repeated .bgs.protocol.config.RPCMethodConfig method = 1;
301 inline int method_size() const;
302 inline void clear_method();
303 static const int kMethodFieldNumber = 1;
304 inline const ::bgs::protocol::config::RPCMethodConfig& method(int index) const;
305 inline ::bgs::protocol::config::RPCMethodConfig* mutable_method(int index);
306 inline ::bgs::protocol::config::RPCMethodConfig* add_method();
307 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::RPCMethodConfig >&
308 method() const;
309 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::RPCMethodConfig >*
310 mutable_method();
311
312 // optional uint32 income_per_second = 2 [default = 1];
313 inline bool has_income_per_second() const;
314 inline void clear_income_per_second();
315 static const int kIncomePerSecondFieldNumber = 2;
316 inline ::google::protobuf::uint32 income_per_second() const;
317 inline void set_income_per_second(::google::protobuf::uint32 value);
318
319 // optional uint32 initial_balance = 3;
320 inline bool has_initial_balance() const;
321 inline void clear_initial_balance();
322 static const int kInitialBalanceFieldNumber = 3;
323 inline ::google::protobuf::uint32 initial_balance() const;
324 inline void set_initial_balance(::google::protobuf::uint32 value);
325
326 // optional uint32 cap_balance = 4;
327 inline bool has_cap_balance() const;
328 inline void clear_cap_balance();
329 static const int kCapBalanceFieldNumber = 4;
330 inline ::google::protobuf::uint32 cap_balance() const;
331 inline void set_cap_balance(::google::protobuf::uint32 value);
332
333 // optional float startup_period = 5;
334 inline bool has_startup_period() const;
335 inline void clear_startup_period();
336 static const int kStartupPeriodFieldNumber = 5;
337 inline float startup_period() const;
338 inline void set_startup_period(float value);
339
340 // @@protoc_insertion_point(class_scope:bgs.protocol.config.RPCMeterConfig)
341 private:
342 inline void set_has_income_per_second();
343 inline void clear_has_income_per_second();
344 inline void set_has_initial_balance();
345 inline void clear_has_initial_balance();
346 inline void set_has_cap_balance();
347 inline void clear_has_cap_balance();
348 inline void set_has_startup_period();
349 inline void clear_has_startup_period();
350
351 ::google::protobuf::UnknownFieldSet _unknown_fields_;
352
354 mutable int _cached_size_;
355 ::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::RPCMethodConfig > method_;
363
366};
367// ===================================================================
368
369// ===================================================================
370
371// ===================================================================
372
373// RPCMethodConfig
374
375// optional string service_name = 1 [deprecated = true];
377 return (_has_bits_[0] & 0x00000001u) != 0;
378}
380 _has_bits_[0] |= 0x00000001u;
381}
383 _has_bits_[0] &= ~0x00000001u;
384}
386 if (service_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
387 service_name_->clear();
388 }
389 clear_has_service_name();
390}
391inline const ::std::string& RPCMethodConfig::service_name() const {
392 // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.service_name)
393 return *service_name_;
394}
395inline void RPCMethodConfig::set_service_name(const ::std::string& value) {
396 set_has_service_name();
397 if (service_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
398 service_name_ = new ::std::string;
399 }
400 service_name_->assign(value);
401 // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.service_name)
402}
403inline void RPCMethodConfig::set_service_name(const char* value) {
404 set_has_service_name();
405 if (service_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
406 service_name_ = new ::std::string;
407 }
408 service_name_->assign(value);
409 // @@protoc_insertion_point(field_set_char:bgs.protocol.config.RPCMethodConfig.service_name)
410}
411inline void RPCMethodConfig::set_service_name(const char* value, size_t size) {
412 set_has_service_name();
413 if (service_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
414 service_name_ = new ::std::string;
415 }
416 service_name_->assign(reinterpret_cast<const char*>(value), size);
417 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.config.RPCMethodConfig.service_name)
418}
420 set_has_service_name();
421 if (service_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
422 service_name_ = new ::std::string;
423 }
424 // @@protoc_insertion_point(field_mutable:bgs.protocol.config.RPCMethodConfig.service_name)
425 return service_name_;
426}
428 clear_has_service_name();
429 if (service_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
430 return NULL;
431 } else {
432 ::std::string* temp = service_name_;
433 service_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
434 return temp;
435 }
436}
437inline void RPCMethodConfig::set_allocated_service_name(::std::string* service_name) {
438 if (service_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
439 delete service_name_;
440 }
441 if (service_name) {
442 set_has_service_name();
443 service_name_ = service_name;
444 } else {
445 clear_has_service_name();
446 service_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
447 }
448 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.config.RPCMethodConfig.service_name)
449}
450
451// optional string method_name = 2 [deprecated = true];
453 return (_has_bits_[0] & 0x00000002u) != 0;
454}
456 _has_bits_[0] |= 0x00000002u;
457}
459 _has_bits_[0] &= ~0x00000002u;
460}
462 if (method_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
463 method_name_->clear();
464 }
465 clear_has_method_name();
466}
467inline const ::std::string& RPCMethodConfig::method_name() const {
468 // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.method_name)
469 return *method_name_;
470}
471inline void RPCMethodConfig::set_method_name(const ::std::string& value) {
472 set_has_method_name();
473 if (method_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
474 method_name_ = new ::std::string;
475 }
476 method_name_->assign(value);
477 // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.method_name)
478}
479inline void RPCMethodConfig::set_method_name(const char* value) {
480 set_has_method_name();
481 if (method_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
482 method_name_ = new ::std::string;
483 }
484 method_name_->assign(value);
485 // @@protoc_insertion_point(field_set_char:bgs.protocol.config.RPCMethodConfig.method_name)
486}
487inline void RPCMethodConfig::set_method_name(const char* value, size_t size) {
488 set_has_method_name();
489 if (method_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
490 method_name_ = new ::std::string;
491 }
492 method_name_->assign(reinterpret_cast<const char*>(value), size);
493 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.config.RPCMethodConfig.method_name)
494}
496 set_has_method_name();
497 if (method_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
498 method_name_ = new ::std::string;
499 }
500 // @@protoc_insertion_point(field_mutable:bgs.protocol.config.RPCMethodConfig.method_name)
501 return method_name_;
502}
504 clear_has_method_name();
505 if (method_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
506 return NULL;
507 } else {
508 ::std::string* temp = method_name_;
509 method_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
510 return temp;
511 }
512}
513inline void RPCMethodConfig::set_allocated_method_name(::std::string* method_name) {
514 if (method_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
515 delete method_name_;
516 }
517 if (method_name) {
518 set_has_method_name();
519 method_name_ = method_name;
520 } else {
521 clear_has_method_name();
522 method_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
523 }
524 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.config.RPCMethodConfig.method_name)
525}
526
527// optional uint32 fixed_call_cost = 3 [default = 1];
529 return (_has_bits_[0] & 0x00000004u) != 0;
530}
532 _has_bits_[0] |= 0x00000004u;
533}
535 _has_bits_[0] &= ~0x00000004u;
536}
538 fixed_call_cost_ = 1u;
539 clear_has_fixed_call_cost();
540}
542 // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.fixed_call_cost)
543 return fixed_call_cost_;
544}
546 set_has_fixed_call_cost();
547 fixed_call_cost_ = value;
548 // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.fixed_call_cost)
549}
550
551// optional uint32 fixed_packet_size = 4;
553 return (_has_bits_[0] & 0x00000008u) != 0;
554}
556 _has_bits_[0] |= 0x00000008u;
557}
559 _has_bits_[0] &= ~0x00000008u;
560}
562 fixed_packet_size_ = 0u;
563 clear_has_fixed_packet_size();
564}
566 // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.fixed_packet_size)
567 return fixed_packet_size_;
568}
570 set_has_fixed_packet_size();
571 fixed_packet_size_ = value;
572 // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.fixed_packet_size)
573}
574
575// optional float variable_multiplier = 5;
577 return (_has_bits_[0] & 0x00000010u) != 0;
578}
580 _has_bits_[0] |= 0x00000010u;
581}
583 _has_bits_[0] &= ~0x00000010u;
584}
586 variable_multiplier_ = 0;
587 clear_has_variable_multiplier();
588}
590 // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.variable_multiplier)
591 return variable_multiplier_;
592}
594 set_has_variable_multiplier();
595 variable_multiplier_ = value;
596 // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.variable_multiplier)
597}
598
599// optional float multiplier = 6 [default = 1];
601 return (_has_bits_[0] & 0x00000020u) != 0;
602}
604 _has_bits_[0] |= 0x00000020u;
605}
607 _has_bits_[0] &= ~0x00000020u;
608}
610 multiplier_ = 1;
611 clear_has_multiplier();
612}
613inline float RPCMethodConfig::multiplier() const {
614 // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.multiplier)
615 return multiplier_;
616}
617inline void RPCMethodConfig::set_multiplier(float value) {
618 set_has_multiplier();
619 multiplier_ = value;
620 // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.multiplier)
621}
622
623// optional uint32 rate_limit_count = 7;
625 return (_has_bits_[0] & 0x00000040u) != 0;
626}
628 _has_bits_[0] |= 0x00000040u;
629}
631 _has_bits_[0] &= ~0x00000040u;
632}
634 rate_limit_count_ = 0u;
635 clear_has_rate_limit_count();
636}
638 // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.rate_limit_count)
639 return rate_limit_count_;
640}
642 set_has_rate_limit_count();
643 rate_limit_count_ = value;
644 // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.rate_limit_count)
645}
646
647// optional uint32 rate_limit_seconds = 8;
649 return (_has_bits_[0] & 0x00000080u) != 0;
650}
652 _has_bits_[0] |= 0x00000080u;
653}
655 _has_bits_[0] &= ~0x00000080u;
656}
658 rate_limit_seconds_ = 0u;
659 clear_has_rate_limit_seconds();
660}
662 // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.rate_limit_seconds)
663 return rate_limit_seconds_;
664}
666 set_has_rate_limit_seconds();
667 rate_limit_seconds_ = value;
668 // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.rate_limit_seconds)
669}
670
671// optional uint32 max_packet_size = 9;
673 return (_has_bits_[0] & 0x00000100u) != 0;
674}
676 _has_bits_[0] |= 0x00000100u;
677}
679 _has_bits_[0] &= ~0x00000100u;
680}
682 max_packet_size_ = 0u;
683 clear_has_max_packet_size();
684}
686 // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.max_packet_size)
687 return max_packet_size_;
688}
690 set_has_max_packet_size();
691 max_packet_size_ = value;
692 // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.max_packet_size)
693}
694
695// optional uint32 max_encoded_size = 10;
697 return (_has_bits_[0] & 0x00000200u) != 0;
698}
700 _has_bits_[0] |= 0x00000200u;
701}
703 _has_bits_[0] &= ~0x00000200u;
704}
706 max_encoded_size_ = 0u;
707 clear_has_max_encoded_size();
708}
710 // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.max_encoded_size)
711 return max_encoded_size_;
712}
714 set_has_max_encoded_size();
715 max_encoded_size_ = value;
716 // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.max_encoded_size)
717}
718
719// optional float timeout = 11;
720inline bool RPCMethodConfig::has_timeout() const {
721 return (_has_bits_[0] & 0x00000400u) != 0;
722}
724 _has_bits_[0] |= 0x00000400u;
725}
727 _has_bits_[0] &= ~0x00000400u;
728}
730 timeout_ = 0;
731 clear_has_timeout();
732}
733inline float RPCMethodConfig::timeout() const {
734 // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.timeout)
735 return timeout_;
736}
737inline void RPCMethodConfig::set_timeout(float value) {
738 set_has_timeout();
739 timeout_ = value;
740 // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.timeout)
741}
742
743// optional uint32 cap_balance = 12;
745 return (_has_bits_[0] & 0x00000800u) != 0;
746}
748 _has_bits_[0] |= 0x00000800u;
749}
751 _has_bits_[0] &= ~0x00000800u;
752}
754 cap_balance_ = 0u;
755 clear_has_cap_balance();
756}
758 // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.cap_balance)
759 return cap_balance_;
760}
762 set_has_cap_balance();
763 cap_balance_ = value;
764 // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.cap_balance)
765}
766
767// optional float income_per_second = 13;
769 return (_has_bits_[0] & 0x00001000u) != 0;
770}
772 _has_bits_[0] |= 0x00001000u;
773}
775 _has_bits_[0] &= ~0x00001000u;
776}
778 income_per_second_ = 0;
779 clear_has_income_per_second();
780}
782 // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.income_per_second)
783 return income_per_second_;
784}
786 set_has_income_per_second();
787 income_per_second_ = value;
788 // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.income_per_second)
789}
790
791// optional uint32 service_hash = 14;
793 return (_has_bits_[0] & 0x00002000u) != 0;
794}
796 _has_bits_[0] |= 0x00002000u;
797}
799 _has_bits_[0] &= ~0x00002000u;
800}
802 service_hash_ = 0u;
803 clear_has_service_hash();
804}
806 // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.service_hash)
807 return service_hash_;
808}
810 set_has_service_hash();
811 service_hash_ = value;
812 // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.service_hash)
813}
814
815// optional uint32 method_id = 15;
817 return (_has_bits_[0] & 0x00004000u) != 0;
818}
820 _has_bits_[0] |= 0x00004000u;
821}
823 _has_bits_[0] &= ~0x00004000u;
824}
826 method_id_ = 0u;
827 clear_has_method_id();
828}
830 // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.method_id)
831 return method_id_;
832}
834 set_has_method_id();
835 method_id_ = value;
836 // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.method_id)
837}
838
839// -------------------------------------------------------------------
840
841// RPCMeterConfig
842
843// repeated .bgs.protocol.config.RPCMethodConfig method = 1;
844inline int RPCMeterConfig::method_size() const {
845 return method_.size();
846}
848 method_.Clear();
849}
850inline const ::bgs::protocol::config::RPCMethodConfig& RPCMeterConfig::method(int index) const {
851 // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMeterConfig.method)
852 return method_.Get(index);
853}
854inline ::bgs::protocol::config::RPCMethodConfig* RPCMeterConfig::mutable_method(int index) {
855 // @@protoc_insertion_point(field_mutable:bgs.protocol.config.RPCMeterConfig.method)
856 return method_.Mutable(index);
857}
858inline ::bgs::protocol::config::RPCMethodConfig* RPCMeterConfig::add_method() {
859 // @@protoc_insertion_point(field_add:bgs.protocol.config.RPCMeterConfig.method)
860 return method_.Add();
861}
862inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::RPCMethodConfig >&
864 // @@protoc_insertion_point(field_list:bgs.protocol.config.RPCMeterConfig.method)
865 return method_;
866}
867inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::RPCMethodConfig >*
869 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.config.RPCMeterConfig.method)
870 return &method_;
871}
872
873// optional uint32 income_per_second = 2 [default = 1];
875 return (_has_bits_[0] & 0x00000002u) != 0;
876}
878 _has_bits_[0] |= 0x00000002u;
879}
881 _has_bits_[0] &= ~0x00000002u;
882}
884 income_per_second_ = 1u;
885 clear_has_income_per_second();
886}
888 // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMeterConfig.income_per_second)
889 return income_per_second_;
890}
892 set_has_income_per_second();
893 income_per_second_ = value;
894 // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMeterConfig.income_per_second)
895}
896
897// optional uint32 initial_balance = 3;
899 return (_has_bits_[0] & 0x00000004u) != 0;
900}
902 _has_bits_[0] |= 0x00000004u;
903}
905 _has_bits_[0] &= ~0x00000004u;
906}
908 initial_balance_ = 0u;
909 clear_has_initial_balance();
910}
912 // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMeterConfig.initial_balance)
913 return initial_balance_;
914}
916 set_has_initial_balance();
917 initial_balance_ = value;
918 // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMeterConfig.initial_balance)
919}
920
921// optional uint32 cap_balance = 4;
923 return (_has_bits_[0] & 0x00000008u) != 0;
924}
926 _has_bits_[0] |= 0x00000008u;
927}
929 _has_bits_[0] &= ~0x00000008u;
930}
932 cap_balance_ = 0u;
933 clear_has_cap_balance();
934}
936 // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMeterConfig.cap_balance)
937 return cap_balance_;
938}
940 set_has_cap_balance();
941 cap_balance_ = value;
942 // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMeterConfig.cap_balance)
943}
944
945// optional float startup_period = 5;
947 return (_has_bits_[0] & 0x00000010u) != 0;
948}
950 _has_bits_[0] |= 0x00000010u;
951}
953 _has_bits_[0] &= ~0x00000010u;
954}
956 startup_period_ = 0;
957 clear_has_startup_period();
958}
959inline float RPCMeterConfig::startup_period() const {
960 // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMeterConfig.startup_period)
961 return startup_period_;
962}
963inline void RPCMeterConfig::set_startup_period(float value) {
964 set_has_startup_period();
965 startup_period_ = value;
966 // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMeterConfig.startup_period)
967}
968
969// @@protoc_insertion_point(namespace_scope)
970
971} // namespace config
972} // namespace protocol
973} // namespace bgs
974
975#ifndef SWIG
976namespace google {
977namespace protobuf {
978} // namespace google
979} // namespace protobuf
980#endif // SWIG
981
982// @@protoc_insertion_point(global_scope)
983
984#endif // PROTOBUF_rpc_5fconfig_2eproto__INCLUDED
#define TC_PROTO_API
Definition: Define.h:105
uint32_t uint32
Definition: Define.h:142
::google::protobuf::uint32 cap_balance_
RPCMeterConfig(const RPCMeterConfig &from)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
void set_cap_balance(::google::protobuf::uint32 value)
static const RPCMeterConfig & default_instance()
friend void protobuf_AssignDesc_rpc_5fconfig_2eproto()
::google::protobuf::uint32 income_per_second_
void set_income_per_second(::google::protobuf::uint32 value)
static const ::google::protobuf::Descriptor * descriptor()
inline ::google::protobuf::uint32 cap_balance() const
static RPCMeterConfig * default_instance_
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::RPCMethodConfig > * mutable_method()
::google::protobuf::uint32 initial_balance_
RPCMeterConfig & operator=(const RPCMeterConfig &from)
void Swap(RPCMeterConfig *other)
inline ::google::protobuf::uint32 initial_balance() const
RPCMeterConfig * New() const
inline ::google::protobuf::uint32 income_per_second() const
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::RPCMethodConfig > & method() const
friend void TC_PROTO_API protobuf_AddDesc_rpc_5fconfig_2eproto()
friend void protobuf_ShutdownFile_rpc_5fconfig_2eproto()
::google::protobuf::Metadata GetMetadata() const
::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::RPCMethodConfig > method_
void set_initial_balance(::google::protobuf::uint32 value)
inline ::bgs::protocol::config::RPCMethodConfig * add_method()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
::google::protobuf::UnknownFieldSet _unknown_fields_
void set_service_hash(::google::protobuf::uint32 value)
void set_allocated_service_name(::std::string *service_name) PROTOBUF_DEPRECATED
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: rpc_config.pb.h:56
const ::std::string & service_name() const PROTOBUF_DEPRECATED
void clear_method_name() PROTOBUF_DEPRECATED
inline ::std::string * release_service_name() PROTOBUF_DEPRECATED
static const ::google::protobuf::Descriptor * descriptor()
static const RPCMethodConfig & default_instance()
void set_service_name(const ::std::string &value) PROTOBUF_DEPRECATED
RPCMethodConfig & operator=(const RPCMethodConfig &from)
Definition: rpc_config.pb.h:51
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: rpc_config.pb.h:60
void clear_service_name() PROTOBUF_DEPRECATED
inline ::google::protobuf::uint32 fixed_packet_size() const
const ::std::string & method_name() const PROTOBUF_DEPRECATED
inline ::google::protobuf::uint32 rate_limit_seconds() const
RPCMethodConfig(const RPCMethodConfig &from)
bool has_service_name() const PROTOBUF_DEPRECATED
inline ::google::protobuf::uint32 cap_balance() const
inline ::google::protobuf::uint32 max_packet_size() const
void set_method_id(::google::protobuf::uint32 value)
void set_cap_balance(::google::protobuf::uint32 value)
void set_max_packet_size(::google::protobuf::uint32 value)
inline ::google::protobuf::uint32 method_id() const
void set_allocated_method_name(::std::string *method_name) PROTOBUF_DEPRECATED
void set_rate_limit_seconds(::google::protobuf::uint32 value)
bool has_method_name() const PROTOBUF_DEPRECATED
void set_rate_limit_count(::google::protobuf::uint32 value)
void Swap(RPCMethodConfig *other)
void set_method_name(const ::std::string &value) PROTOBUF_DEPRECATED
inline ::google::protobuf::uint32 service_hash() const
inline ::google::protobuf::uint32 max_encoded_size() const
inline ::std::string * mutable_service_name() PROTOBUF_DEPRECATED
inline ::google::protobuf::uint32 fixed_call_cost() const
void set_fixed_packet_size(::google::protobuf::uint32 value)
inline ::std::string * mutable_method_name() PROTOBUF_DEPRECATED
::google::protobuf::Metadata GetMetadata() const
void set_fixed_call_cost(::google::protobuf::uint32 value)
inline ::std::string * release_method_name() PROTOBUF_DEPRECATED
inline ::google::protobuf::uint32 rate_limit_count() const
void set_max_encoded_size(::google::protobuf::uint32 value)
RPCMethodConfig * New() const
constexpr std::size_t size()
Definition: UpdateField.h:796
void TC_PROTO_API protobuf_AddDesc_rpc_5fconfig_2eproto()
void protobuf_AssignDesc_rpc_5fconfig_2eproto()
void protobuf_ShutdownFile_rpc_5fconfig_2eproto()
Definition: Session.h:36
STL namespace.