aboutsummaryrefslogtreecommitdiff
path: root/src/server/proto/Client/rpc_config.pb.h
blob: 05574470239cfd8fd59d4d203c0ab6da5b90039f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: rpc_config.proto

#ifndef PROTOBUF_rpc_5fconfig_2eproto__INCLUDED
#define PROTOBUF_rpc_5fconfig_2eproto__INCLUDED

#include <string>

#include <google/protobuf/stubs/common.h>

#if GOOGLE_PROTOBUF_VERSION < 2006000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers.  Please update
#error your headers.
#endif
#if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers.  Please
#error regenerate this file with a newer version of protoc.
#endif

#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/unknown_field_set.h>
#include "Define.h" // for TC_PROTO_API
// @@protoc_insertion_point(includes)

namespace bgs {
namespace protocol {
namespace config {

// Internal implementation detail -- do not call these.
void TC_PROTO_API protobuf_AddDesc_rpc_5fconfig_2eproto();
void protobuf_AssignDesc_rpc_5fconfig_2eproto();
void protobuf_ShutdownFile_rpc_5fconfig_2eproto();

class RPCMethodConfig;
class RPCMeterConfig;

// ===================================================================

class TC_PROTO_API RPCMethodConfig : public ::google::protobuf::Message {
 public:
  RPCMethodConfig();
  virtual ~RPCMethodConfig();

  RPCMethodConfig(const RPCMethodConfig& from);

  inline RPCMethodConfig& operator=(const RPCMethodConfig& from) {
    CopyFrom(from);
    return *this;
  }

  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _unknown_fields_;
  }

  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return &_unknown_fields_;
  }

  static const ::google::protobuf::Descriptor* descriptor();
  static const RPCMethodConfig& default_instance();

  void Swap(RPCMethodConfig* other);

  // implements Message ----------------------------------------------

  RPCMethodConfig* New() const;
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  ::google::protobuf::Metadata GetMetadata() const;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // optional string service_name = 1 [deprecated = true];
  inline bool has_service_name() const PROTOBUF_DEPRECATED;
  inline void clear_service_name() PROTOBUF_DEPRECATED;
  static const int kServiceNameFieldNumber = 1;
  inline const ::std::string& service_name() const PROTOBUF_DEPRECATED;
  inline void set_service_name(const ::std::string& value) PROTOBUF_DEPRECATED;
  inline void set_service_name(const char* value) PROTOBUF_DEPRECATED;
  inline void set_service_name(const char* value, size_t size) PROTOBUF_DEPRECATED;
  inline ::std::string* mutable_service_name() PROTOBUF_DEPRECATED;
  inline ::std::string* release_service_name() PROTOBUF_DEPRECATED;
  inline void set_allocated_service_name(::std::string* service_name) PROTOBUF_DEPRECATED;

  // optional string method_name = 2 [deprecated = true];
  inline bool has_method_name() const PROTOBUF_DEPRECATED;
  inline void clear_method_name() PROTOBUF_DEPRECATED;
  static const int kMethodNameFieldNumber = 2;
  inline const ::std::string& method_name() const PROTOBUF_DEPRECATED;
  inline void set_method_name(const ::std::string& value) PROTOBUF_DEPRECATED;
  inline void set_method_name(const char* value) PROTOBUF_DEPRECATED;
  inline void set_method_name(const char* value, size_t size) PROTOBUF_DEPRECATED;
  inline ::std::string* mutable_method_name() PROTOBUF_DEPRECATED;
  inline ::std::string* release_method_name() PROTOBUF_DEPRECATED;
  inline void set_allocated_method_name(::std::string* method_name) PROTOBUF_DEPRECATED;

  // optional uint32 fixed_call_cost = 3 [default = 1];
  inline bool has_fixed_call_cost() const;
  inline void clear_fixed_call_cost();
  static const int kFixedCallCostFieldNumber = 3;
  inline ::google::protobuf::uint32 fixed_call_cost() const;
  inline void set_fixed_call_cost(::google::protobuf::uint32 value);

  // optional uint32 fixed_packet_size = 4;
  inline bool has_fixed_packet_size() const;
  inline void clear_fixed_packet_size();
  static const int kFixedPacketSizeFieldNumber = 4;
  inline ::google::protobuf::uint32 fixed_packet_size() const;
  inline void set_fixed_packet_size(::google::protobuf::uint32 value);

  // optional float variable_multiplier = 5;
  inline bool has_variable_multiplier() const;
  inline void clear_variable_multiplier();
  static const int kVariableMultiplierFieldNumber = 5;
  inline float variable_multiplier() const;
  inline void set_variable_multiplier(float value);

  // optional float multiplier = 6 [default = 1];
  inline bool has_multiplier() const;
  inline void clear_multiplier();
  static const int kMultiplierFieldNumber = 6;
  inline float multiplier() const;
  inline void set_multiplier(float value);

  // optional uint32 rate_limit_count = 7;
  inline bool has_rate_limit_count() const;
  inline void clear_rate_limit_count();
  static const int kRateLimitCountFieldNumber = 7;
  inline ::google::protobuf::uint32 rate_limit_count() const;
  inline void set_rate_limit_count(::google::protobuf::uint32 value);

  // optional uint32 rate_limit_seconds = 8;
  inline bool has_rate_limit_seconds() const;
  inline void clear_rate_limit_seconds();
  static const int kRateLimitSecondsFieldNumber = 8;
  inline ::google::protobuf::uint32 rate_limit_seconds() const;
  inline void set_rate_limit_seconds(::google::protobuf::uint32 value);

  // optional uint32 max_packet_size = 9;
  inline bool has_max_packet_size() const;
  inline void clear_max_packet_size();
  static const int kMaxPacketSizeFieldNumber = 9;
  inline ::google::protobuf::uint32 max_packet_size() const;
  inline void set_max_packet_size(::google::protobuf::uint32 value);

  // optional uint32 max_encoded_size = 10;
  inline bool has_max_encoded_size() const;
  inline void clear_max_encoded_size();
  static const int kMaxEncodedSizeFieldNumber = 10;
  inline ::google::protobuf::uint32 max_encoded_size() const;
  inline void set_max_encoded_size(::google::protobuf::uint32 value);

  // optional float timeout = 11;
  inline bool has_timeout() const;
  inline void clear_timeout();
  static const int kTimeoutFieldNumber = 11;
  inline float timeout() const;
  inline void set_timeout(float value);

  // optional uint32 cap_balance = 12;
  inline bool has_cap_balance() const;
  inline void clear_cap_balance();
  static const int kCapBalanceFieldNumber = 12;
  inline ::google::protobuf::uint32 cap_balance() const;
  inline void set_cap_balance(::google::protobuf::uint32 value);

  // optional float income_per_second = 13;
  inline bool has_income_per_second() const;
  inline void clear_income_per_second();
  static const int kIncomePerSecondFieldNumber = 13;
  inline float income_per_second() const;
  inline void set_income_per_second(float value);

  // optional uint32 service_hash = 14;
  inline bool has_service_hash() const;
  inline void clear_service_hash();
  static const int kServiceHashFieldNumber = 14;
  inline ::google::protobuf::uint32 service_hash() const;
  inline void set_service_hash(::google::protobuf::uint32 value);

  // optional uint32 method_id = 15;
  inline bool has_method_id() const;
  inline void clear_method_id();
  static const int kMethodIdFieldNumber = 15;
  inline ::google::protobuf::uint32 method_id() const;
  inline void set_method_id(::google::protobuf::uint32 value);

  // @@protoc_insertion_point(class_scope:bgs.protocol.config.RPCMethodConfig)
 private:
  inline void set_has_service_name();
  inline void clear_has_service_name();
  inline void set_has_method_name();
  inline void clear_has_method_name();
  inline void set_has_fixed_call_cost();
  inline void clear_has_fixed_call_cost();
  inline void set_has_fixed_packet_size();
  inline void clear_has_fixed_packet_size();
  inline void set_has_variable_multiplier();
  inline void clear_has_variable_multiplier();
  inline void set_has_multiplier();
  inline void clear_has_multiplier();
  inline void set_has_rate_limit_count();
  inline void clear_has_rate_limit_count();
  inline void set_has_rate_limit_seconds();
  inline void clear_has_rate_limit_seconds();
  inline void set_has_max_packet_size();
  inline void clear_has_max_packet_size();
  inline void set_has_max_encoded_size();
  inline void clear_has_max_encoded_size();
  inline void set_has_timeout();
  inline void clear_has_timeout();
  inline void set_has_cap_balance();
  inline void clear_has_cap_balance();
  inline void set_has_income_per_second();
  inline void clear_has_income_per_second();
  inline void set_has_service_hash();
  inline void clear_has_service_hash();
  inline void set_has_method_id();
  inline void clear_has_method_id();

  ::google::protobuf::UnknownFieldSet _unknown_fields_;

  ::google::protobuf::uint32 _has_bits_[1];
  mutable int _cached_size_;
  ::std::string* service_name_;
  ::std::string* method_name_;
  ::google::protobuf::uint32 fixed_call_cost_;
  ::google::protobuf::uint32 fixed_packet_size_;
  float variable_multiplier_;
  float multiplier_;
  ::google::protobuf::uint32 rate_limit_count_;
  ::google::protobuf::uint32 rate_limit_seconds_;
  ::google::protobuf::uint32 max_packet_size_;
  ::google::protobuf::uint32 max_encoded_size_;
  float timeout_;
  ::google::protobuf::uint32 cap_balance_;
  float income_per_second_;
  ::google::protobuf::uint32 service_hash_;
  ::google::protobuf::uint32 method_id_;
  friend void TC_PROTO_API protobuf_AddDesc_rpc_5fconfig_2eproto();
  friend void protobuf_AssignDesc_rpc_5fconfig_2eproto();
  friend void protobuf_ShutdownFile_rpc_5fconfig_2eproto();

  void InitAsDefaultInstance();
  static RPCMethodConfig* default_instance_;
};
// -------------------------------------------------------------------

class TC_PROTO_API RPCMeterConfig : public ::google::protobuf::Message {
 public:
  RPCMeterConfig();
  virtual ~RPCMeterConfig();

  RPCMeterConfig(const RPCMeterConfig& from);

  inline RPCMeterConfig& operator=(const RPCMeterConfig& from) {
    CopyFrom(from);
    return *this;
  }

  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
    return _unknown_fields_;
  }

  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
    return &_unknown_fields_;
  }

  static const ::google::protobuf::Descriptor* descriptor();
  static const RPCMeterConfig& default_instance();

  void Swap(RPCMeterConfig* other);

  // implements Message ----------------------------------------------

  RPCMeterConfig* New() const;
  int GetCachedSize() const { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const;
  public:
  ::google::protobuf::Metadata GetMetadata() const;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // repeated .bgs.protocol.config.RPCMethodConfig method = 1;
  inline int method_size() const;
  inline void clear_method();
  static const int kMethodFieldNumber = 1;
  inline const ::bgs::protocol::config::RPCMethodConfig& method(int index) const;
  inline ::bgs::protocol::config::RPCMethodConfig* mutable_method(int index);
  inline ::bgs::protocol::config::RPCMethodConfig* add_method();
  inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::RPCMethodConfig >&
      method() const;
  inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::RPCMethodConfig >*
      mutable_method();

  // optional uint32 income_per_second = 2 [default = 1];
  inline bool has_income_per_second() const;
  inline void clear_income_per_second();
  static const int kIncomePerSecondFieldNumber = 2;
  inline ::google::protobuf::uint32 income_per_second() const;
  inline void set_income_per_second(::google::protobuf::uint32 value);

  // optional uint32 initial_balance = 3;
  inline bool has_initial_balance() const;
  inline void clear_initial_balance();
  static const int kInitialBalanceFieldNumber = 3;
  inline ::google::protobuf::uint32 initial_balance() const;
  inline void set_initial_balance(::google::protobuf::uint32 value);

  // optional uint32 cap_balance = 4;
  inline bool has_cap_balance() const;
  inline void clear_cap_balance();
  static const int kCapBalanceFieldNumber = 4;
  inline ::google::protobuf::uint32 cap_balance() const;
  inline void set_cap_balance(::google::protobuf::uint32 value);

  // optional float startup_period = 5;
  inline bool has_startup_period() const;
  inline void clear_startup_period();
  static const int kStartupPeriodFieldNumber = 5;
  inline float startup_period() const;
  inline void set_startup_period(float value);

  // @@protoc_insertion_point(class_scope:bgs.protocol.config.RPCMeterConfig)
 private:
  inline void set_has_income_per_second();
  inline void clear_has_income_per_second();
  inline void set_has_initial_balance();
  inline void clear_has_initial_balance();
  inline void set_has_cap_balance();
  inline void clear_has_cap_balance();
  inline void set_has_startup_period();
  inline void clear_has_startup_period();

  ::google::protobuf::UnknownFieldSet _unknown_fields_;

  ::google::protobuf::uint32 _has_bits_[1];
  mutable int _cached_size_;
  ::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::RPCMethodConfig > method_;
  ::google::protobuf::uint32 income_per_second_;
  ::google::protobuf::uint32 initial_balance_;
  ::google::protobuf::uint32 cap_balance_;
  float startup_period_;
  friend void TC_PROTO_API protobuf_AddDesc_rpc_5fconfig_2eproto();
  friend void protobuf_AssignDesc_rpc_5fconfig_2eproto();
  friend void protobuf_ShutdownFile_rpc_5fconfig_2eproto();

  void InitAsDefaultInstance();
  static RPCMeterConfig* default_instance_;
};
// ===================================================================

// ===================================================================

// ===================================================================

// RPCMethodConfig

// optional string service_name = 1 [deprecated = true];
inline bool RPCMethodConfig::has_service_name() const {
  return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void RPCMethodConfig::set_has_service_name() {
  _has_bits_[0] |= 0x00000001u;
}
inline void RPCMethodConfig::clear_has_service_name() {
  _has_bits_[0] &= ~0x00000001u;
}
inline void RPCMethodConfig::clear_service_name() {
  if (service_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    service_name_->clear();
  }
  clear_has_service_name();
}
inline const ::std::string& RPCMethodConfig::service_name() const {
  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.service_name)
  return *service_name_;
}
inline void RPCMethodConfig::set_service_name(const ::std::string& value) {
  set_has_service_name();
  if (service_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    service_name_ = new ::std::string;
  }
  service_name_->assign(value);
  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.service_name)
}
inline void RPCMethodConfig::set_service_name(const char* value) {
  set_has_service_name();
  if (service_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    service_name_ = new ::std::string;
  }
  service_name_->assign(value);
  // @@protoc_insertion_point(field_set_char:bgs.protocol.config.RPCMethodConfig.service_name)
}
inline void RPCMethodConfig::set_service_name(const char* value, size_t size) {
  set_has_service_name();
  if (service_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    service_name_ = new ::std::string;
  }
  service_name_->assign(reinterpret_cast<const char*>(value), size);
  // @@protoc_insertion_point(field_set_pointer:bgs.protocol.config.RPCMethodConfig.service_name)
}
inline ::std::string* RPCMethodConfig::mutable_service_name() {
  set_has_service_name();
  if (service_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    service_name_ = new ::std::string;
  }
  // @@protoc_insertion_point(field_mutable:bgs.protocol.config.RPCMethodConfig.service_name)
  return service_name_;
}
inline ::std::string* RPCMethodConfig::release_service_name() {
  clear_has_service_name();
  if (service_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    return NULL;
  } else {
    ::std::string* temp = service_name_;
    service_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    return temp;
  }
}
inline void RPCMethodConfig::set_allocated_service_name(::std::string* service_name) {
  if (service_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    delete service_name_;
  }
  if (service_name) {
    set_has_service_name();
    service_name_ = service_name;
  } else {
    clear_has_service_name();
    service_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.config.RPCMethodConfig.service_name)
}

// optional string method_name = 2 [deprecated = true];
inline bool RPCMethodConfig::has_method_name() const {
  return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void RPCMethodConfig::set_has_method_name() {
  _has_bits_[0] |= 0x00000002u;
}
inline void RPCMethodConfig::clear_has_method_name() {
  _has_bits_[0] &= ~0x00000002u;
}
inline void RPCMethodConfig::clear_method_name() {
  if (method_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    method_name_->clear();
  }
  clear_has_method_name();
}
inline const ::std::string& RPCMethodConfig::method_name() const {
  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.method_name)
  return *method_name_;
}
inline void RPCMethodConfig::set_method_name(const ::std::string& value) {
  set_has_method_name();
  if (method_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    method_name_ = new ::std::string;
  }
  method_name_->assign(value);
  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.method_name)
}
inline void RPCMethodConfig::set_method_name(const char* value) {
  set_has_method_name();
  if (method_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    method_name_ = new ::std::string;
  }
  method_name_->assign(value);
  // @@protoc_insertion_point(field_set_char:bgs.protocol.config.RPCMethodConfig.method_name)
}
inline void RPCMethodConfig::set_method_name(const char* value, size_t size) {
  set_has_method_name();
  if (method_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    method_name_ = new ::std::string;
  }
  method_name_->assign(reinterpret_cast<const char*>(value), size);
  // @@protoc_insertion_point(field_set_pointer:bgs.protocol.config.RPCMethodConfig.method_name)
}
inline ::std::string* RPCMethodConfig::mutable_method_name() {
  set_has_method_name();
  if (method_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    method_name_ = new ::std::string;
  }
  // @@protoc_insertion_point(field_mutable:bgs.protocol.config.RPCMethodConfig.method_name)
  return method_name_;
}
inline ::std::string* RPCMethodConfig::release_method_name() {
  clear_has_method_name();
  if (method_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    return NULL;
  } else {
    ::std::string* temp = method_name_;
    method_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
    return temp;
  }
}
inline void RPCMethodConfig::set_allocated_method_name(::std::string* method_name) {
  if (method_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
    delete method_name_;
  }
  if (method_name) {
    set_has_method_name();
    method_name_ = method_name;
  } else {
    clear_has_method_name();
    method_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  }
  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.config.RPCMethodConfig.method_name)
}

// optional uint32 fixed_call_cost = 3 [default = 1];
inline bool RPCMethodConfig::has_fixed_call_cost() const {
  return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void RPCMethodConfig::set_has_fixed_call_cost() {
  _has_bits_[0] |= 0x00000004u;
}
inline void RPCMethodConfig::clear_has_fixed_call_cost() {
  _has_bits_[0] &= ~0x00000004u;
}
inline void RPCMethodConfig::clear_fixed_call_cost() {
  fixed_call_cost_ = 1u;
  clear_has_fixed_call_cost();
}
inline ::google::protobuf::uint32 RPCMethodConfig::fixed_call_cost() const {
  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.fixed_call_cost)
  return fixed_call_cost_;
}
inline void RPCMethodConfig::set_fixed_call_cost(::google::protobuf::uint32 value) {
  set_has_fixed_call_cost();
  fixed_call_cost_ = value;
  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.fixed_call_cost)
}

// optional uint32 fixed_packet_size = 4;
inline bool RPCMethodConfig::has_fixed_packet_size() const {
  return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void RPCMethodConfig::set_has_fixed_packet_size() {
  _has_bits_[0] |= 0x00000008u;
}
inline void RPCMethodConfig::clear_has_fixed_packet_size() {
  _has_bits_[0] &= ~0x00000008u;
}
inline void RPCMethodConfig::clear_fixed_packet_size() {
  fixed_packet_size_ = 0u;
  clear_has_fixed_packet_size();
}
inline ::google::protobuf::uint32 RPCMethodConfig::fixed_packet_size() const {
  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.fixed_packet_size)
  return fixed_packet_size_;
}
inline void RPCMethodConfig::set_fixed_packet_size(::google::protobuf::uint32 value) {
  set_has_fixed_packet_size();
  fixed_packet_size_ = value;
  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.fixed_packet_size)
}

// optional float variable_multiplier = 5;
inline bool RPCMethodConfig::has_variable_multiplier() const {
  return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void RPCMethodConfig::set_has_variable_multiplier() {
  _has_bits_[0] |= 0x00000010u;
}
inline void RPCMethodConfig::clear_has_variable_multiplier() {
  _has_bits_[0] &= ~0x00000010u;
}
inline void RPCMethodConfig::clear_variable_multiplier() {
  variable_multiplier_ = 0;
  clear_has_variable_multiplier();
}
inline float RPCMethodConfig::variable_multiplier() const {
  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.variable_multiplier)
  return variable_multiplier_;
}
inline void RPCMethodConfig::set_variable_multiplier(float value) {
  set_has_variable_multiplier();
  variable_multiplier_ = value;
  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.variable_multiplier)
}

// optional float multiplier = 6 [default = 1];
inline bool RPCMethodConfig::has_multiplier() const {
  return (_has_bits_[0] & 0x00000020u) != 0;
}
inline void RPCMethodConfig::set_has_multiplier() {
  _has_bits_[0] |= 0x00000020u;
}
inline void RPCMethodConfig::clear_has_multiplier() {
  _has_bits_[0] &= ~0x00000020u;
}
inline void RPCMethodConfig::clear_multiplier() {
  multiplier_ = 1;
  clear_has_multiplier();
}
inline float RPCMethodConfig::multiplier() const {
  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.multiplier)
  return multiplier_;
}
inline void RPCMethodConfig::set_multiplier(float value) {
  set_has_multiplier();
  multiplier_ = value;
  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.multiplier)
}

// optional uint32 rate_limit_count = 7;
inline bool RPCMethodConfig::has_rate_limit_count() const {
  return (_has_bits_[0] & 0x00000040u) != 0;
}
inline void RPCMethodConfig::set_has_rate_limit_count() {
  _has_bits_[0] |= 0x00000040u;
}
inline void RPCMethodConfig::clear_has_rate_limit_count() {
  _has_bits_[0] &= ~0x00000040u;
}
inline void RPCMethodConfig::clear_rate_limit_count() {
  rate_limit_count_ = 0u;
  clear_has_rate_limit_count();
}
inline ::google::protobuf::uint32 RPCMethodConfig::rate_limit_count() const {
  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.rate_limit_count)
  return rate_limit_count_;
}
inline void RPCMethodConfig::set_rate_limit_count(::google::protobuf::uint32 value) {
  set_has_rate_limit_count();
  rate_limit_count_ = value;
  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.rate_limit_count)
}

// optional uint32 rate_limit_seconds = 8;
inline bool RPCMethodConfig::has_rate_limit_seconds() const {
  return (_has_bits_[0] & 0x00000080u) != 0;
}
inline void RPCMethodConfig::set_has_rate_limit_seconds() {
  _has_bits_[0] |= 0x00000080u;
}
inline void RPCMethodConfig::clear_has_rate_limit_seconds() {
  _has_bits_[0] &= ~0x00000080u;
}
inline void RPCMethodConfig::clear_rate_limit_seconds() {
  rate_limit_seconds_ = 0u;
  clear_has_rate_limit_seconds();
}
inline ::google::protobuf::uint32 RPCMethodConfig::rate_limit_seconds() const {
  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.rate_limit_seconds)
  return rate_limit_seconds_;
}
inline void RPCMethodConfig::set_rate_limit_seconds(::google::protobuf::uint32 value) {
  set_has_rate_limit_seconds();
  rate_limit_seconds_ = value;
  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.rate_limit_seconds)
}

// optional uint32 max_packet_size = 9;
inline bool RPCMethodConfig::has_max_packet_size() const {
  return (_has_bits_[0] & 0x00000100u) != 0;
}
inline void RPCMethodConfig::set_has_max_packet_size() {
  _has_bits_[0] |= 0x00000100u;
}
inline void RPCMethodConfig::clear_has_max_packet_size() {
  _has_bits_[0] &= ~0x00000100u;
}
inline void RPCMethodConfig::clear_max_packet_size() {
  max_packet_size_ = 0u;
  clear_has_max_packet_size();
}
inline ::google::protobuf::uint32 RPCMethodConfig::max_packet_size() const {
  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.max_packet_size)
  return max_packet_size_;
}
inline void RPCMethodConfig::set_max_packet_size(::google::protobuf::uint32 value) {
  set_has_max_packet_size();
  max_packet_size_ = value;
  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.max_packet_size)
}

// optional uint32 max_encoded_size = 10;
inline bool RPCMethodConfig::has_max_encoded_size() const {
  return (_has_bits_[0] & 0x00000200u) != 0;
}
inline void RPCMethodConfig::set_has_max_encoded_size() {
  _has_bits_[0] |= 0x00000200u;
}
inline void RPCMethodConfig::clear_has_max_encoded_size() {
  _has_bits_[0] &= ~0x00000200u;
}
inline void RPCMethodConfig::clear_max_encoded_size() {
  max_encoded_size_ = 0u;
  clear_has_max_encoded_size();
}
inline ::google::protobuf::uint32 RPCMethodConfig::max_encoded_size() const {
  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.max_encoded_size)
  return max_encoded_size_;
}
inline void RPCMethodConfig::set_max_encoded_size(::google::protobuf::uint32 value) {
  set_has_max_encoded_size();
  max_encoded_size_ = value;
  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.max_encoded_size)
}

// optional float timeout = 11;
inline bool RPCMethodConfig::has_timeout() const {
  return (_has_bits_[0] & 0x00000400u) != 0;
}
inline void RPCMethodConfig::set_has_timeout() {
  _has_bits_[0] |= 0x00000400u;
}
inline void RPCMethodConfig::clear_has_timeout() {
  _has_bits_[0] &= ~0x00000400u;
}
inline void RPCMethodConfig::clear_timeout() {
  timeout_ = 0;
  clear_has_timeout();
}
inline float RPCMethodConfig::timeout() const {
  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.timeout)
  return timeout_;
}
inline void RPCMethodConfig::set_timeout(float value) {
  set_has_timeout();
  timeout_ = value;
  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.timeout)
}

// optional uint32 cap_balance = 12;
inline bool RPCMethodConfig::has_cap_balance() const {
  return (_has_bits_[0] & 0x00000800u) != 0;
}
inline void RPCMethodConfig::set_has_cap_balance() {
  _has_bits_[0] |= 0x00000800u;
}
inline void RPCMethodConfig::clear_has_cap_balance() {
  _has_bits_[0] &= ~0x00000800u;
}
inline void RPCMethodConfig::clear_cap_balance() {
  cap_balance_ = 0u;
  clear_has_cap_balance();
}
inline ::google::protobuf::uint32 RPCMethodConfig::cap_balance() const {
  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.cap_balance)
  return cap_balance_;
}
inline void RPCMethodConfig::set_cap_balance(::google::protobuf::uint32 value) {
  set_has_cap_balance();
  cap_balance_ = value;
  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.cap_balance)
}

// optional float income_per_second = 13;
inline bool RPCMethodConfig::has_income_per_second() const {
  return (_has_bits_[0] & 0x00001000u) != 0;
}
inline void RPCMethodConfig::set_has_income_per_second() {
  _has_bits_[0] |= 0x00001000u;
}
inline void RPCMethodConfig::clear_has_income_per_second() {
  _has_bits_[0] &= ~0x00001000u;
}
inline void RPCMethodConfig::clear_income_per_second() {
  income_per_second_ = 0;
  clear_has_income_per_second();
}
inline float RPCMethodConfig::income_per_second() const {
  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.income_per_second)
  return income_per_second_;
}
inline void RPCMethodConfig::set_income_per_second(float value) {
  set_has_income_per_second();
  income_per_second_ = value;
  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.income_per_second)
}

// optional uint32 service_hash = 14;
inline bool RPCMethodConfig::has_service_hash() const {
  return (_has_bits_[0] & 0x00002000u) != 0;
}
inline void RPCMethodConfig::set_has_service_hash() {
  _has_bits_[0] |= 0x00002000u;
}
inline void RPCMethodConfig::clear_has_service_hash() {
  _has_bits_[0] &= ~0x00002000u;
}
inline void RPCMethodConfig::clear_service_hash() {
  service_hash_ = 0u;
  clear_has_service_hash();
}
inline ::google::protobuf::uint32 RPCMethodConfig::service_hash() const {
  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.service_hash)
  return service_hash_;
}
inline void RPCMethodConfig::set_service_hash(::google::protobuf::uint32 value) {
  set_has_service_hash();
  service_hash_ = value;
  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.service_hash)
}

// optional uint32 method_id = 15;
inline bool RPCMethodConfig::has_method_id() const {
  return (_has_bits_[0] & 0x00004000u) != 0;
}
inline void RPCMethodConfig::set_has_method_id() {
  _has_bits_[0] |= 0x00004000u;
}
inline void RPCMethodConfig::clear_has_method_id() {
  _has_bits_[0] &= ~0x00004000u;
}
inline void RPCMethodConfig::clear_method_id() {
  method_id_ = 0u;
  clear_has_method_id();
}
inline ::google::protobuf::uint32 RPCMethodConfig::method_id() const {
  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMethodConfig.method_id)
  return method_id_;
}
inline void RPCMethodConfig::set_method_id(::google::protobuf::uint32 value) {
  set_has_method_id();
  method_id_ = value;
  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMethodConfig.method_id)
}

// -------------------------------------------------------------------

// RPCMeterConfig

// repeated .bgs.protocol.config.RPCMethodConfig method = 1;
inline int RPCMeterConfig::method_size() const {
  return method_.size();
}
inline void RPCMeterConfig::clear_method() {
  method_.Clear();
}
inline const ::bgs::protocol::config::RPCMethodConfig& RPCMeterConfig::method(int index) const {
  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMeterConfig.method)
  return method_.Get(index);
}
inline ::bgs::protocol::config::RPCMethodConfig* RPCMeterConfig::mutable_method(int index) {
  // @@protoc_insertion_point(field_mutable:bgs.protocol.config.RPCMeterConfig.method)
  return method_.Mutable(index);
}
inline ::bgs::protocol::config::RPCMethodConfig* RPCMeterConfig::add_method() {
  // @@protoc_insertion_point(field_add:bgs.protocol.config.RPCMeterConfig.method)
  return method_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::RPCMethodConfig >&
RPCMeterConfig::method() const {
  // @@protoc_insertion_point(field_list:bgs.protocol.config.RPCMeterConfig.method)
  return method_;
}
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::config::RPCMethodConfig >*
RPCMeterConfig::mutable_method() {
  // @@protoc_insertion_point(field_mutable_list:bgs.protocol.config.RPCMeterConfig.method)
  return &method_;
}

// optional uint32 income_per_second = 2 [default = 1];
inline bool RPCMeterConfig::has_income_per_second() const {
  return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void RPCMeterConfig::set_has_income_per_second() {
  _has_bits_[0] |= 0x00000002u;
}
inline void RPCMeterConfig::clear_has_income_per_second() {
  _has_bits_[0] &= ~0x00000002u;
}
inline void RPCMeterConfig::clear_income_per_second() {
  income_per_second_ = 1u;
  clear_has_income_per_second();
}
inline ::google::protobuf::uint32 RPCMeterConfig::income_per_second() const {
  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMeterConfig.income_per_second)
  return income_per_second_;
}
inline void RPCMeterConfig::set_income_per_second(::google::protobuf::uint32 value) {
  set_has_income_per_second();
  income_per_second_ = value;
  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMeterConfig.income_per_second)
}

// optional uint32 initial_balance = 3;
inline bool RPCMeterConfig::has_initial_balance() const {
  return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void RPCMeterConfig::set_has_initial_balance() {
  _has_bits_[0] |= 0x00000004u;
}
inline void RPCMeterConfig::clear_has_initial_balance() {
  _has_bits_[0] &= ~0x00000004u;
}
inline void RPCMeterConfig::clear_initial_balance() {
  initial_balance_ = 0u;
  clear_has_initial_balance();
}
inline ::google::protobuf::uint32 RPCMeterConfig::initial_balance() const {
  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMeterConfig.initial_balance)
  return initial_balance_;
}
inline void RPCMeterConfig::set_initial_balance(::google::protobuf::uint32 value) {
  set_has_initial_balance();
  initial_balance_ = value;
  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMeterConfig.initial_balance)
}

// optional uint32 cap_balance = 4;
inline bool RPCMeterConfig::has_cap_balance() const {
  return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void RPCMeterConfig::set_has_cap_balance() {
  _has_bits_[0] |= 0x00000008u;
}
inline void RPCMeterConfig::clear_has_cap_balance() {
  _has_bits_[0] &= ~0x00000008u;
}
inline void RPCMeterConfig::clear_cap_balance() {
  cap_balance_ = 0u;
  clear_has_cap_balance();
}
inline ::google::protobuf::uint32 RPCMeterConfig::cap_balance() const {
  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMeterConfig.cap_balance)
  return cap_balance_;
}
inline void RPCMeterConfig::set_cap_balance(::google::protobuf::uint32 value) {
  set_has_cap_balance();
  cap_balance_ = value;
  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMeterConfig.cap_balance)
}

// optional float startup_period = 5;
inline bool RPCMeterConfig::has_startup_period() const {
  return (_has_bits_[0] & 0x00000010u) != 0;
}
inline void RPCMeterConfig::set_has_startup_period() {
  _has_bits_[0] |= 0x00000010u;
}
inline void RPCMeterConfig::clear_has_startup_period() {
  _has_bits_[0] &= ~0x00000010u;
}
inline void RPCMeterConfig::clear_startup_period() {
  startup_period_ = 0;
  clear_has_startup_period();
}
inline float RPCMeterConfig::startup_period() const {
  // @@protoc_insertion_point(field_get:bgs.protocol.config.RPCMeterConfig.startup_period)
  return startup_period_;
}
inline void RPCMeterConfig::set_startup_period(float value) {
  set_has_startup_period();
  startup_period_ = value;
  // @@protoc_insertion_point(field_set:bgs.protocol.config.RPCMeterConfig.startup_period)
}

// @@protoc_insertion_point(namespace_scope)

}  // namespace config
}  // namespace protocol
}  // namespace bgs

#ifndef SWIG
namespace google {
namespace protobuf {
}  // namespace google
}  // namespace protobuf
#endif  // SWIG

// @@protoc_insertion_point(global_scope)

#endif  // PROTOBUF_rpc_5fconfig_2eproto__INCLUDED