TrinityCore
connection_service.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: connection_service.proto
3
4#ifndef PROTOBUF_connection_5fservice_2eproto__INCLUDED
5#define PROTOBUF_connection_5fservice_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/generated_enum_reflection.h>
27#include <google/protobuf/unknown_field_set.h>
29#include "rpc_types.pb.h"
30#include "semantic_version.pb.h"
31#include "ServiceBase.h"
32#include "MessageBuffer.h"
33#include <functional>
34#include <type_traits>
35// @@protoc_insertion_point(includes)
36
37namespace bgs {
38namespace protocol {
39namespace connection {
40namespace v1 {
41
42// Internal implementation detail -- do not call these.
46
48class ConnectRequest;
50class ConnectResponse;
51class BoundService;
52class BindRequest;
53class BindResponse;
54class EchoRequest;
55class EchoResponse;
58class EncryptRequest;
59
63};
68
69TC_PROTO_API const ::google::protobuf::EnumDescriptor* MeteringLevel_descriptor();
70inline const ::std::string& MeteringLevel_Name(MeteringLevel value) {
71 return ::google::protobuf::internal::NameOfEnum(
73}
75 const ::std::string& name, MeteringLevel* value) {
76 return ::google::protobuf::internal::ParseNamedEnum<MeteringLevel>(
77 MeteringLevel_descriptor(), name, value);
78}
79// ===================================================================
80
81class TC_PROTO_API ClientSdkVersionInfo : public ::google::protobuf::Message {
82 public:
85
87
89 CopyFrom(from);
90 return *this;
91 }
92
93 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
94 return _unknown_fields_;
95 }
96
97 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
98 return &_unknown_fields_;
99 }
100
101 static const ::google::protobuf::Descriptor* descriptor();
103
105
106 // implements Message ----------------------------------------------
107
109 int GetCachedSize() const { return _cached_size_; }
110 private:
113 void SetCachedSize(int size) const;
114 public:
115 ::google::protobuf::Metadata GetMetadata() const;
116
117 // nested types ----------------------------------------------------
118
119 // accessors -------------------------------------------------------
120
121 // optional string sdk_name = 1;
122 inline bool has_sdk_name() const;
123 inline void clear_sdk_name();
124 static const int kSdkNameFieldNumber = 1;
125 inline const ::std::string& sdk_name() const;
126 inline void set_sdk_name(const ::std::string& value);
127 inline void set_sdk_name(const char* value);
128 inline void set_sdk_name(const char* value, size_t size);
129 inline ::std::string* mutable_sdk_name();
130 inline ::std::string* release_sdk_name();
131 inline void set_allocated_sdk_name(::std::string* sdk_name);
132
133 // optional .bgs.protocol.SemanticVersion sdk_version = 2;
134 inline bool has_sdk_version() const;
135 inline void clear_sdk_version();
136 static const int kSdkVersionFieldNumber = 2;
137 inline const ::bgs::protocol::SemanticVersion& sdk_version() const;
138 inline ::bgs::protocol::SemanticVersion* mutable_sdk_version();
139 inline ::bgs::protocol::SemanticVersion* release_sdk_version();
140 inline void set_allocated_sdk_version(::bgs::protocol::SemanticVersion* sdk_version);
141
142 // optional .bgs.protocol.SemanticVersion protocol_version = 3;
143 inline bool has_protocol_version() const;
144 inline void clear_protocol_version();
145 static const int kProtocolVersionFieldNumber = 3;
146 inline const ::bgs::protocol::SemanticVersion& protocol_version() const;
147 inline ::bgs::protocol::SemanticVersion* mutable_protocol_version();
148 inline ::bgs::protocol::SemanticVersion* release_protocol_version();
149 inline void set_allocated_protocol_version(::bgs::protocol::SemanticVersion* protocol_version);
150
151 // @@protoc_insertion_point(class_scope:bgs.protocol.connection.v1.ClientSdkVersionInfo)
152 private:
153 inline void set_has_sdk_name();
154 inline void clear_has_sdk_name();
155 inline void set_has_sdk_version();
156 inline void clear_has_sdk_version();
157 inline void set_has_protocol_version();
158 inline void clear_has_protocol_version();
159
160 ::google::protobuf::UnknownFieldSet _unknown_fields_;
161
163 mutable int _cached_size_;
164 ::std::string* sdk_name_;
170
173};
174// -------------------------------------------------------------------
175
176class TC_PROTO_API ConnectRequest : public ::google::protobuf::Message {
177 public:
180
182
184 CopyFrom(from);
185 return *this;
186 }
187
188 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
189 return _unknown_fields_;
190 }
191
192 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
193 return &_unknown_fields_;
194 }
195
196 static const ::google::protobuf::Descriptor* descriptor();
198
199 void Swap(ConnectRequest* other);
200
201 // implements Message ----------------------------------------------
202
204 int GetCachedSize() const { return _cached_size_; }
205 private:
208 void SetCachedSize(int size) const;
209 public:
210 ::google::protobuf::Metadata GetMetadata() const;
211
212 // nested types ----------------------------------------------------
213
214 // accessors -------------------------------------------------------
215
216 // optional .bgs.protocol.ProcessId client_id = 1;
217 inline bool has_client_id() const;
218 inline void clear_client_id();
219 static const int kClientIdFieldNumber = 1;
220 inline const ::bgs::protocol::ProcessId& client_id() const;
221 inline ::bgs::protocol::ProcessId* mutable_client_id();
222 inline ::bgs::protocol::ProcessId* release_client_id();
223 inline void set_allocated_client_id(::bgs::protocol::ProcessId* client_id);
224
225 // optional .bgs.protocol.connection.v1.BindRequest bind_request = 2;
226 inline bool has_bind_request() const;
227 inline void clear_bind_request();
228 static const int kBindRequestFieldNumber = 2;
229 inline const ::bgs::protocol::connection::v1::BindRequest& bind_request() const;
230 inline ::bgs::protocol::connection::v1::BindRequest* mutable_bind_request();
231 inline ::bgs::protocol::connection::v1::BindRequest* release_bind_request();
232 inline void set_allocated_bind_request(::bgs::protocol::connection::v1::BindRequest* bind_request);
233
234 // optional bool use_bindless_rpc = 3 [default = true];
235 inline bool has_use_bindless_rpc() const;
236 inline void clear_use_bindless_rpc();
237 static const int kUseBindlessRpcFieldNumber = 3;
238 inline bool use_bindless_rpc() const;
239 inline void set_use_bindless_rpc(bool value);
240
241 // optional .bgs.protocol.connection.v1.MeteringLevel metering_level = 4;
242 inline bool has_metering_level() const;
243 inline void clear_metering_level();
244 static const int kMeteringLevelFieldNumber = 4;
246 inline void set_metering_level(::bgs::protocol::connection::v1::MeteringLevel value);
247
248 // optional .bgs.protocol.connection.v1.ClientSdkVersionInfo client_sdk_info = 5;
249 inline bool has_client_sdk_info() const;
250 inline void clear_client_sdk_info();
251 static const int kClientSdkInfoFieldNumber = 5;
252 inline const ::bgs::protocol::connection::v1::ClientSdkVersionInfo& client_sdk_info() const;
253 inline ::bgs::protocol::connection::v1::ClientSdkVersionInfo* mutable_client_sdk_info();
254 inline ::bgs::protocol::connection::v1::ClientSdkVersionInfo* release_client_sdk_info();
255 inline void set_allocated_client_sdk_info(::bgs::protocol::connection::v1::ClientSdkVersionInfo* client_sdk_info);
256
257 // @@protoc_insertion_point(class_scope:bgs.protocol.connection.v1.ConnectRequest)
258 private:
259 inline void set_has_client_id();
260 inline void clear_has_client_id();
261 inline void set_has_bind_request();
262 inline void clear_has_bind_request();
263 inline void set_has_use_bindless_rpc();
264 inline void clear_has_use_bindless_rpc();
265 inline void set_has_metering_level();
266 inline void clear_has_metering_level();
267 inline void set_has_client_sdk_info();
268 inline void clear_has_client_sdk_info();
269
270 ::google::protobuf::UnknownFieldSet _unknown_fields_;
271
273 mutable int _cached_size_;
282
285};
286// -------------------------------------------------------------------
287
288class TC_PROTO_API ConnectionMeteringContentHandles : public ::google::protobuf::Message {
289 public:
292
294
296 CopyFrom(from);
297 return *this;
298 }
299
300 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
301 return _unknown_fields_;
302 }
303
304 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
305 return &_unknown_fields_;
306 }
307
308 static const ::google::protobuf::Descriptor* descriptor();
310
312
313 // implements Message ----------------------------------------------
314
316 int GetCachedSize() const { return _cached_size_; }
317 private:
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.ContentHandle content_handle = 1;
329 inline int content_handle_size() const;
330 inline void clear_content_handle();
331 static const int kContentHandleFieldNumber = 1;
332 inline const ::bgs::protocol::ContentHandle& content_handle(int index) const;
333 inline ::bgs::protocol::ContentHandle* mutable_content_handle(int index);
334 inline ::bgs::protocol::ContentHandle* add_content_handle();
335 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::ContentHandle >&
336 content_handle() const;
337 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::ContentHandle >*
338 mutable_content_handle();
339
340 // @@protoc_insertion_point(class_scope:bgs.protocol.connection.v1.ConnectionMeteringContentHandles)
341 private:
342
343 ::google::protobuf::UnknownFieldSet _unknown_fields_;
344
346 mutable int _cached_size_;
347 ::google::protobuf::RepeatedPtrField< ::bgs::protocol::ContentHandle > content_handle_;
351
354};
355// -------------------------------------------------------------------
356
357class TC_PROTO_API ConnectResponse : public ::google::protobuf::Message {
358 public:
361
363
365 CopyFrom(from);
366 return *this;
367 }
368
369 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
370 return _unknown_fields_;
371 }
372
373 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
374 return &_unknown_fields_;
375 }
376
377 static const ::google::protobuf::Descriptor* descriptor();
379
380 void Swap(ConnectResponse* other);
381
382 // implements Message ----------------------------------------------
383
385 int GetCachedSize() const { return _cached_size_; }
386 private:
389 void SetCachedSize(int size) const;
390 public:
391 ::google::protobuf::Metadata GetMetadata() const;
392
393 // nested types ----------------------------------------------------
394
395 // accessors -------------------------------------------------------
396
397 // required .bgs.protocol.ProcessId server_id = 1;
398 inline bool has_server_id() const;
399 inline void clear_server_id();
400 static const int kServerIdFieldNumber = 1;
401 inline const ::bgs::protocol::ProcessId& server_id() const;
402 inline ::bgs::protocol::ProcessId* mutable_server_id();
403 inline ::bgs::protocol::ProcessId* release_server_id();
404 inline void set_allocated_server_id(::bgs::protocol::ProcessId* server_id);
405
406 // optional .bgs.protocol.ProcessId client_id = 2;
407 inline bool has_client_id() const;
408 inline void clear_client_id();
409 static const int kClientIdFieldNumber = 2;
410 inline const ::bgs::protocol::ProcessId& client_id() const;
411 inline ::bgs::protocol::ProcessId* mutable_client_id();
412 inline ::bgs::protocol::ProcessId* release_client_id();
413 inline void set_allocated_client_id(::bgs::protocol::ProcessId* client_id);
414
415 // optional uint32 bind_result = 3;
416 inline bool has_bind_result() const;
417 inline void clear_bind_result();
418 static const int kBindResultFieldNumber = 3;
419 inline ::google::protobuf::uint32 bind_result() const;
420 inline void set_bind_result(::google::protobuf::uint32 value);
421
422 // optional .bgs.protocol.connection.v1.BindResponse bind_response = 4;
423 inline bool has_bind_response() const;
424 inline void clear_bind_response();
425 static const int kBindResponseFieldNumber = 4;
426 inline const ::bgs::protocol::connection::v1::BindResponse& bind_response() const;
427 inline ::bgs::protocol::connection::v1::BindResponse* mutable_bind_response();
428 inline ::bgs::protocol::connection::v1::BindResponse* release_bind_response();
429 inline void set_allocated_bind_response(::bgs::protocol::connection::v1::BindResponse* bind_response);
430
431 // optional .bgs.protocol.connection.v1.ConnectionMeteringContentHandles content_handle_array = 5;
432 inline bool has_content_handle_array() const;
433 inline void clear_content_handle_array();
434 static const int kContentHandleArrayFieldNumber = 5;
435 inline const ::bgs::protocol::connection::v1::ConnectionMeteringContentHandles& content_handle_array() const;
436 inline ::bgs::protocol::connection::v1::ConnectionMeteringContentHandles* mutable_content_handle_array();
437 inline ::bgs::protocol::connection::v1::ConnectionMeteringContentHandles* release_content_handle_array();
438 inline void set_allocated_content_handle_array(::bgs::protocol::connection::v1::ConnectionMeteringContentHandles* content_handle_array);
439
440 // optional uint64 server_time = 6;
441 inline bool has_server_time() const;
442 inline void clear_server_time();
443 static const int kServerTimeFieldNumber = 6;
444 inline ::google::protobuf::uint64 server_time() const;
445 inline void set_server_time(::google::protobuf::uint64 value);
446
447 // optional bool use_bindless_rpc = 7 [default = false];
448 inline bool has_use_bindless_rpc() const;
449 inline void clear_use_bindless_rpc();
450 static const int kUseBindlessRpcFieldNumber = 7;
451 inline bool use_bindless_rpc() const;
452 inline void set_use_bindless_rpc(bool value);
453
454 // optional .bgs.protocol.connection.v1.ConnectionMeteringContentHandles binary_content_handle_array = 8;
455 inline bool has_binary_content_handle_array() const;
456 inline void clear_binary_content_handle_array();
457 static const int kBinaryContentHandleArrayFieldNumber = 8;
458 inline const ::bgs::protocol::connection::v1::ConnectionMeteringContentHandles& binary_content_handle_array() const;
459 inline ::bgs::protocol::connection::v1::ConnectionMeteringContentHandles* mutable_binary_content_handle_array();
460 inline ::bgs::protocol::connection::v1::ConnectionMeteringContentHandles* release_binary_content_handle_array();
461 inline void set_allocated_binary_content_handle_array(::bgs::protocol::connection::v1::ConnectionMeteringContentHandles* binary_content_handle_array);
462
463 // optional string ciid = 9;
464 inline bool has_ciid() const;
465 inline void clear_ciid();
466 static const int kCiidFieldNumber = 9;
467 inline const ::std::string& ciid() const;
468 inline void set_ciid(const ::std::string& value);
469 inline void set_ciid(const char* value);
470 inline void set_ciid(const char* value, size_t size);
471 inline ::std::string* mutable_ciid();
472 inline ::std::string* release_ciid();
473 inline void set_allocated_ciid(::std::string* ciid);
474
475 // optional uint32 connected_region = 10;
476 inline bool has_connected_region() const;
477 inline void clear_connected_region();
478 static const int kConnectedRegionFieldNumber = 10;
479 inline ::google::protobuf::uint32 connected_region() const;
480 inline void set_connected_region(::google::protobuf::uint32 value);
481
482 // @@protoc_insertion_point(class_scope:bgs.protocol.connection.v1.ConnectResponse)
483 private:
484 inline void set_has_server_id();
485 inline void clear_has_server_id();
486 inline void set_has_client_id();
487 inline void clear_has_client_id();
488 inline void set_has_bind_result();
489 inline void clear_has_bind_result();
490 inline void set_has_bind_response();
491 inline void clear_has_bind_response();
492 inline void set_has_content_handle_array();
493 inline void clear_has_content_handle_array();
494 inline void set_has_server_time();
495 inline void clear_has_server_time();
496 inline void set_has_use_bindless_rpc();
497 inline void clear_has_use_bindless_rpc();
498 inline void set_has_binary_content_handle_array();
499 inline void clear_has_binary_content_handle_array();
500 inline void set_has_ciid();
501 inline void clear_has_ciid();
502 inline void set_has_connected_region();
503 inline void clear_has_connected_region();
504
505 ::google::protobuf::UnknownFieldSet _unknown_fields_;
506
508 mutable int _cached_size_;
517 ::std::string* ciid_;
522
525};
526// -------------------------------------------------------------------
527
528class TC_PROTO_API BoundService : public ::google::protobuf::Message {
529 public:
531 virtual ~BoundService();
532
534
535 inline BoundService& operator=(const BoundService& from) {
536 CopyFrom(from);
537 return *this;
538 }
539
540 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
541 return _unknown_fields_;
542 }
543
544 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
545 return &_unknown_fields_;
546 }
547
548 static const ::google::protobuf::Descriptor* descriptor();
550
551 void Swap(BoundService* other);
552
553 // implements Message ----------------------------------------------
554
556 int GetCachedSize() const { return _cached_size_; }
557 private:
560 void SetCachedSize(int size) const;
561 public:
562 ::google::protobuf::Metadata GetMetadata() const;
563
564 // nested types ----------------------------------------------------
565
566 // accessors -------------------------------------------------------
567
568 // required fixed32 hash = 1;
569 inline bool has_hash() const;
570 inline void clear_hash();
571 static const int kHashFieldNumber = 1;
573 inline void set_hash(::google::protobuf::uint32 value);
574
575 // required uint32 id = 2;
576 inline bool has_id() const;
577 inline void clear_id();
578 static const int kIdFieldNumber = 2;
580 inline void set_id(::google::protobuf::uint32 value);
581
582 // @@protoc_insertion_point(class_scope:bgs.protocol.connection.v1.BoundService)
583 private:
584 inline void set_has_hash();
585 inline void clear_has_hash();
586 inline void set_has_id();
587 inline void clear_has_id();
588
589 ::google::protobuf::UnknownFieldSet _unknown_fields_;
590
592 mutable int _cached_size_;
598
601};
602// -------------------------------------------------------------------
603
604class TC_PROTO_API BindRequest : public ::google::protobuf::Message {
605 public:
607 virtual ~BindRequest();
608
610
611 inline BindRequest& operator=(const BindRequest& from) {
612 CopyFrom(from);
613 return *this;
614 }
615
616 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
617 return _unknown_fields_;
618 }
619
620 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
621 return &_unknown_fields_;
622 }
623
624 static const ::google::protobuf::Descriptor* descriptor();
626
627 void Swap(BindRequest* other);
628
629 // implements Message ----------------------------------------------
630
631 BindRequest* New() const;
632 int GetCachedSize() const { return _cached_size_; }
633 private:
636 void SetCachedSize(int size) const;
637 public:
638 ::google::protobuf::Metadata GetMetadata() const;
639
640 // nested types ----------------------------------------------------
641
642 // accessors -------------------------------------------------------
643
644 // repeated fixed32 deprecated_imported_service_hash = 1 [packed = true, deprecated = true];
645 inline int deprecated_imported_service_hash_size() const PROTOBUF_DEPRECATED;
646 inline void clear_deprecated_imported_service_hash() PROTOBUF_DEPRECATED;
647 static const int kDeprecatedImportedServiceHashFieldNumber = 1;
648 inline ::google::protobuf::uint32 deprecated_imported_service_hash(int index) const PROTOBUF_DEPRECATED;
649 inline void set_deprecated_imported_service_hash(int index, ::google::protobuf::uint32 value) PROTOBUF_DEPRECATED;
650 inline void add_deprecated_imported_service_hash(::google::protobuf::uint32 value) PROTOBUF_DEPRECATED;
651 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
652 deprecated_imported_service_hash() const PROTOBUF_DEPRECATED;
653 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
654 mutable_deprecated_imported_service_hash() PROTOBUF_DEPRECATED;
655
656 // repeated .bgs.protocol.connection.v1.BoundService deprecated_exported_service = 2 [deprecated = true];
657 inline int deprecated_exported_service_size() const PROTOBUF_DEPRECATED;
658 inline void clear_deprecated_exported_service() PROTOBUF_DEPRECATED;
659 static const int kDeprecatedExportedServiceFieldNumber = 2;
660 inline const ::bgs::protocol::connection::v1::BoundService& deprecated_exported_service(int index) const PROTOBUF_DEPRECATED;
661 inline ::bgs::protocol::connection::v1::BoundService* mutable_deprecated_exported_service(int index) PROTOBUF_DEPRECATED;
662 inline ::bgs::protocol::connection::v1::BoundService* add_deprecated_exported_service() PROTOBUF_DEPRECATED;
663 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService >&
664 deprecated_exported_service() const PROTOBUF_DEPRECATED;
665 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService >*
666 mutable_deprecated_exported_service() PROTOBUF_DEPRECATED;
667
668 // repeated .bgs.protocol.connection.v1.BoundService exported_service = 3;
669 inline int exported_service_size() const;
670 inline void clear_exported_service();
671 static const int kExportedServiceFieldNumber = 3;
672 inline const ::bgs::protocol::connection::v1::BoundService& exported_service(int index) const;
673 inline ::bgs::protocol::connection::v1::BoundService* mutable_exported_service(int index);
674 inline ::bgs::protocol::connection::v1::BoundService* add_exported_service();
675 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService >&
676 exported_service() const;
677 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService >*
678 mutable_exported_service();
679
680 // repeated .bgs.protocol.connection.v1.BoundService imported_service = 4;
681 inline int imported_service_size() const;
682 inline void clear_imported_service();
683 static const int kImportedServiceFieldNumber = 4;
684 inline const ::bgs::protocol::connection::v1::BoundService& imported_service(int index) const;
685 inline ::bgs::protocol::connection::v1::BoundService* mutable_imported_service(int index);
686 inline ::bgs::protocol::connection::v1::BoundService* add_imported_service();
687 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService >&
688 imported_service() const;
689 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService >*
690 mutable_imported_service();
691
692 // @@protoc_insertion_point(class_scope:bgs.protocol.connection.v1.BindRequest)
693 private:
694
695 ::google::protobuf::UnknownFieldSet _unknown_fields_;
696
697 ::google::protobuf::uint32 _has_bits_[1];
698 mutable int _cached_size_;
699 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > deprecated_imported_service_hash_;
700 ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService > deprecated_exported_service_;
701 ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService > exported_service_;
702 ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService > imported_service_;
706
707 void InitAsDefaultInstance();
708 static BindRequest* default_instance_;
709};
710// -------------------------------------------------------------------
711
712class TC_PROTO_API BindResponse : public ::google::protobuf::Message {
713 public:
715 virtual ~BindResponse();
716
718
719 inline BindResponse& operator=(const BindResponse& from) {
720 CopyFrom(from);
721 return *this;
722 }
723
724 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
725 return _unknown_fields_;
726 }
727
728 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
729 return &_unknown_fields_;
730 }
731
732 static const ::google::protobuf::Descriptor* descriptor();
734
735 void Swap(BindResponse* other);
736
737 // implements Message ----------------------------------------------
738
740 int GetCachedSize() const { return _cached_size_; }
741 private:
744 void SetCachedSize(int size) const;
745 public:
746 ::google::protobuf::Metadata GetMetadata() const;
747
748 // nested types ----------------------------------------------------
749
750 // accessors -------------------------------------------------------
751
752 // repeated uint32 imported_service_id = 1 [packed = true, deprecated = true];
753 inline int imported_service_id_size() const PROTOBUF_DEPRECATED;
754 inline void clear_imported_service_id() PROTOBUF_DEPRECATED;
755 static const int kImportedServiceIdFieldNumber = 1;
756 inline ::google::protobuf::uint32 imported_service_id(int index) const PROTOBUF_DEPRECATED;
757 inline void set_imported_service_id(int index, ::google::protobuf::uint32 value) PROTOBUF_DEPRECATED;
758 inline void add_imported_service_id(::google::protobuf::uint32 value) PROTOBUF_DEPRECATED;
759 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
760 imported_service_id() const PROTOBUF_DEPRECATED;
761 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
762 mutable_imported_service_id() PROTOBUF_DEPRECATED;
763
764 // @@protoc_insertion_point(class_scope:bgs.protocol.connection.v1.BindResponse)
765 private:
766
767 ::google::protobuf::UnknownFieldSet _unknown_fields_;
768
769 ::google::protobuf::uint32 _has_bits_[1];
770 mutable int _cached_size_;
771 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > imported_service_id_;
775
776 void InitAsDefaultInstance();
777 static BindResponse* default_instance_;
778};
779// -------------------------------------------------------------------
780
781class TC_PROTO_API EchoRequest : public ::google::protobuf::Message {
782 public:
784 virtual ~EchoRequest();
785
787
788 inline EchoRequest& operator=(const EchoRequest& from) {
789 CopyFrom(from);
790 return *this;
791 }
792
793 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
794 return _unknown_fields_;
795 }
796
797 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
798 return &_unknown_fields_;
799 }
800
801 static const ::google::protobuf::Descriptor* descriptor();
803
804 void Swap(EchoRequest* other);
805
806 // implements Message ----------------------------------------------
807
808 EchoRequest* New() const;
809 int GetCachedSize() const { return _cached_size_; }
810 private:
813 void SetCachedSize(int size) const;
814 public:
815 ::google::protobuf::Metadata GetMetadata() const;
816
817 // nested types ----------------------------------------------------
818
819 // accessors -------------------------------------------------------
820
821 // optional fixed64 time = 1;
822 inline bool has_time() const;
823 inline void clear_time();
824 static const int kTimeFieldNumber = 1;
826 inline void set_time(::google::protobuf::uint64 value);
827
828 // optional bool network_only = 2 [default = false];
829 inline bool has_network_only() const;
830 inline void clear_network_only();
831 static const int kNetworkOnlyFieldNumber = 2;
832 inline bool network_only() const;
833 inline void set_network_only(bool value);
834
835 // optional bytes payload = 3;
836 inline bool has_payload() const;
837 inline void clear_payload();
838 static const int kPayloadFieldNumber = 3;
839 inline const ::std::string& payload() const;
840 inline void set_payload(const ::std::string& value);
841 inline void set_payload(const char* value);
842 inline void set_payload(const void* value, size_t size);
843 inline ::std::string* mutable_payload();
844 inline ::std::string* release_payload();
845 inline void set_allocated_payload(::std::string* payload);
846
847 // optional .bgs.protocol.ProcessId forward = 4;
848 inline bool has_forward() const;
849 inline void clear_forward();
850 static const int kForwardFieldNumber = 4;
851 inline const ::bgs::protocol::ProcessId& forward() const;
852 inline ::bgs::protocol::ProcessId* mutable_forward();
853 inline ::bgs::protocol::ProcessId* release_forward();
854 inline void set_allocated_forward(::bgs::protocol::ProcessId* forward);
855
856 // optional string forward_client_id = 5;
857 inline bool has_forward_client_id() const;
858 inline void clear_forward_client_id();
859 static const int kForwardClientIdFieldNumber = 5;
860 inline const ::std::string& forward_client_id() const;
861 inline void set_forward_client_id(const ::std::string& value);
862 inline void set_forward_client_id(const char* value);
863 inline void set_forward_client_id(const char* value, size_t size);
864 inline ::std::string* mutable_forward_client_id();
865 inline ::std::string* release_forward_client_id();
866 inline void set_allocated_forward_client_id(::std::string* forward_client_id);
867
868 // @@protoc_insertion_point(class_scope:bgs.protocol.connection.v1.EchoRequest)
869 private:
870 inline void set_has_time();
871 inline void clear_has_time();
872 inline void set_has_network_only();
873 inline void clear_has_network_only();
874 inline void set_has_payload();
875 inline void clear_has_payload();
876 inline void set_has_forward();
877 inline void clear_has_forward();
878 inline void set_has_forward_client_id();
879 inline void clear_has_forward_client_id();
880
881 ::google::protobuf::UnknownFieldSet _unknown_fields_;
882
884 mutable int _cached_size_;
886 ::std::string* payload_;
888 ::std::string* forward_client_id_;
893
896};
897// -------------------------------------------------------------------
898
899class TC_PROTO_API EchoResponse : public ::google::protobuf::Message {
900 public:
902 virtual ~EchoResponse();
903
905
906 inline EchoResponse& operator=(const EchoResponse& from) {
907 CopyFrom(from);
908 return *this;
909 }
910
911 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
912 return _unknown_fields_;
913 }
914
915 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
916 return &_unknown_fields_;
917 }
918
919 static const ::google::protobuf::Descriptor* descriptor();
921
922 void Swap(EchoResponse* other);
923
924 // implements Message ----------------------------------------------
925
927 int GetCachedSize() const { return _cached_size_; }
928 private:
931 void SetCachedSize(int size) const;
932 public:
933 ::google::protobuf::Metadata GetMetadata() const;
934
935 // nested types ----------------------------------------------------
936
937 // accessors -------------------------------------------------------
938
939 // optional fixed64 time = 1;
940 inline bool has_time() const;
941 inline void clear_time();
942 static const int kTimeFieldNumber = 1;
944 inline void set_time(::google::protobuf::uint64 value);
945
946 // optional bytes payload = 2;
947 inline bool has_payload() const;
948 inline void clear_payload();
949 static const int kPayloadFieldNumber = 2;
950 inline const ::std::string& payload() const;
951 inline void set_payload(const ::std::string& value);
952 inline void set_payload(const char* value);
953 inline void set_payload(const void* value, size_t size);
954 inline ::std::string* mutable_payload();
955 inline ::std::string* release_payload();
956 inline void set_allocated_payload(::std::string* payload);
957
958 // @@protoc_insertion_point(class_scope:bgs.protocol.connection.v1.EchoResponse)
959 private:
960 inline void set_has_time();
961 inline void clear_has_time();
962 inline void set_has_payload();
963 inline void clear_has_payload();
964
965 ::google::protobuf::UnknownFieldSet _unknown_fields_;
966
968 mutable int _cached_size_;
970 ::std::string* payload_;
974
977};
978// -------------------------------------------------------------------
979
980class TC_PROTO_API DisconnectRequest : public ::google::protobuf::Message {
981 public:
984
986
988 CopyFrom(from);
989 return *this;
990 }
991
992 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
993 return _unknown_fields_;
994 }
995
996 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
997 return &_unknown_fields_;
998 }
999
1000 static const ::google::protobuf::Descriptor* descriptor();
1002
1004
1005 // implements Message ----------------------------------------------
1006
1008 int GetCachedSize() const { return _cached_size_; }
1009 private:
1012 void SetCachedSize(int size) const;
1013 public:
1014 ::google::protobuf::Metadata GetMetadata() const;
1015
1016 // nested types ----------------------------------------------------
1017
1018 // accessors -------------------------------------------------------
1019
1020 // required uint32 error_code = 1;
1021 inline bool has_error_code() const;
1022 inline void clear_error_code();
1023 static const int kErrorCodeFieldNumber = 1;
1024 inline ::google::protobuf::uint32 error_code() const;
1025 inline void set_error_code(::google::protobuf::uint32 value);
1026
1027 // @@protoc_insertion_point(class_scope:bgs.protocol.connection.v1.DisconnectRequest)
1028 private:
1029 inline void set_has_error_code();
1030 inline void clear_has_error_code();
1031
1032 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1033
1035 mutable int _cached_size_;
1040
1043};
1044// -------------------------------------------------------------------
1045
1046class TC_PROTO_API DisconnectNotification : public ::google::protobuf::Message {
1047 public:
1050
1052
1054 CopyFrom(from);
1055 return *this;
1056 }
1057
1058 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1059 return _unknown_fields_;
1060 }
1061
1062 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1063 return &_unknown_fields_;
1064 }
1065
1066 static const ::google::protobuf::Descriptor* descriptor();
1068
1070
1071 // implements Message ----------------------------------------------
1072
1074 int GetCachedSize() const { return _cached_size_; }
1075 private:
1078 void SetCachedSize(int size) const;
1079 public:
1080 ::google::protobuf::Metadata GetMetadata() const;
1081
1082 // nested types ----------------------------------------------------
1083
1084 // accessors -------------------------------------------------------
1085
1086 // required uint32 error_code = 1;
1087 inline bool has_error_code() const;
1088 inline void clear_error_code();
1089 static const int kErrorCodeFieldNumber = 1;
1090 inline ::google::protobuf::uint32 error_code() const;
1091 inline void set_error_code(::google::protobuf::uint32 value);
1092
1093 // optional string reason = 2;
1094 inline bool has_reason() const;
1095 inline void clear_reason();
1096 static const int kReasonFieldNumber = 2;
1097 inline const ::std::string& reason() const;
1098 inline void set_reason(const ::std::string& value);
1099 inline void set_reason(const char* value);
1100 inline void set_reason(const char* value, size_t size);
1101 inline ::std::string* mutable_reason();
1102 inline ::std::string* release_reason();
1103 inline void set_allocated_reason(::std::string* reason);
1104
1105 // @@protoc_insertion_point(class_scope:bgs.protocol.connection.v1.DisconnectNotification)
1106 private:
1107 inline void set_has_error_code();
1108 inline void clear_has_error_code();
1109 inline void set_has_reason();
1110 inline void clear_has_reason();
1111
1112 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1113
1115 mutable int _cached_size_;
1116 ::std::string* reason_;
1121
1124};
1125// -------------------------------------------------------------------
1126
1127class TC_PROTO_API EncryptRequest : public ::google::protobuf::Message {
1128 public:
1131
1133
1135 CopyFrom(from);
1136 return *this;
1137 }
1138
1139 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1140 return _unknown_fields_;
1141 }
1142
1143 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1144 return &_unknown_fields_;
1145 }
1146
1147 static const ::google::protobuf::Descriptor* descriptor();
1149
1150 void Swap(EncryptRequest* other);
1151
1152 // implements Message ----------------------------------------------
1153
1155 int GetCachedSize() const { return _cached_size_; }
1156 private:
1159 void SetCachedSize(int size) const;
1160 public:
1161 ::google::protobuf::Metadata GetMetadata() const;
1162
1163 // nested types ----------------------------------------------------
1164
1165 // accessors -------------------------------------------------------
1166
1167 // @@protoc_insertion_point(class_scope:bgs.protocol.connection.v1.EncryptRequest)
1168 private:
1169
1170 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1171
1173 mutable int _cached_size_;
1177
1180};
1181// ===================================================================
1182
1184{
1185 public:
1186
1187 explicit ConnectionService(bool use_original_hash);
1193
1194 typedef std::integral_constant<uint32, 0x65446991u> OriginalHash;
1195 typedef std::integral_constant<uint32, 0x2782094Bu> NameHash;
1196
1197 static google::protobuf::ServiceDescriptor const* descriptor();
1198
1199 // client methods --------------------------------------------------
1200 void Connect(::bgs::protocol::connection::v1::ConnectRequest const* request, std::function<void(::bgs::protocol::connection::v1::ConnectResponse const*)> responseCallback, bool client = false, bool server = false);
1201 void Bind(::bgs::protocol::connection::v1::BindRequest const* request, std::function<void(::bgs::protocol::connection::v1::BindResponse const*)> responseCallback, bool client = false, bool server = false);
1202 void Echo(::bgs::protocol::connection::v1::EchoRequest const* request, std::function<void(::bgs::protocol::connection::v1::EchoResponse const*)> responseCallback, bool client = false, bool server = false);
1203 void ForceDisconnect(::bgs::protocol::connection::v1::DisconnectNotification const* request, bool client = false, bool server = false);
1204 void KeepAlive(::bgs::protocol::NoData const* request, bool client = false, bool server = false);
1205 void Encrypt(::bgs::protocol::connection::v1::EncryptRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback, bool client = false, bool server = false);
1206 void RequestDisconnect(::bgs::protocol::connection::v1::DisconnectRequest const* request, bool client = false, bool server = false);
1207
1208 void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final;
1209
1210 protected:
1211 // server methods --------------------------------------------------
1212 virtual uint32 HandleConnect(::bgs::protocol::connection::v1::ConnectRequest const* request, ::bgs::protocol::connection::v1::ConnectResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
1213 virtual uint32 HandleBind(::bgs::protocol::connection::v1::BindRequest const* request, ::bgs::protocol::connection::v1::BindResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
1214 virtual uint32 HandleEcho(::bgs::protocol::connection::v1::EchoRequest const* request, ::bgs::protocol::connection::v1::EchoResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
1217 virtual uint32 HandleEncrypt(::bgs::protocol::connection::v1::EncryptRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
1219
1220 private:
1221 void ParseAndHandleConnect(uint32 token, uint32 methodId, MessageBuffer& buffer);
1222 void ParseAndHandleBind(uint32 token, uint32 methodId, MessageBuffer& buffer);
1223 void ParseAndHandleEcho(uint32 token, uint32 methodId, MessageBuffer& buffer);
1225 void ParseAndHandleKeepAlive(uint32 token, uint32 methodId, MessageBuffer& buffer);
1226 void ParseAndHandleEncrypt(uint32 token, uint32 methodId, MessageBuffer& buffer);
1228};
1229
1230// ===================================================================
1231
1232// ===================================================================
1233
1234// ClientSdkVersionInfo
1235
1236// optional string sdk_name = 1;
1238 return (_has_bits_[0] & 0x00000001u) != 0;
1239}
1241 _has_bits_[0] |= 0x00000001u;
1242}
1244 _has_bits_[0] &= ~0x00000001u;
1245}
1247 if (sdk_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1248 sdk_name_->clear();
1249 }
1250 clear_has_sdk_name();
1251}
1252inline const ::std::string& ClientSdkVersionInfo::sdk_name() const {
1253 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.ClientSdkVersionInfo.sdk_name)
1254 return *sdk_name_;
1255}
1256inline void ClientSdkVersionInfo::set_sdk_name(const ::std::string& value) {
1257 set_has_sdk_name();
1258 if (sdk_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1259 sdk_name_ = new ::std::string;
1260 }
1261 sdk_name_->assign(value);
1262 // @@protoc_insertion_point(field_set:bgs.protocol.connection.v1.ClientSdkVersionInfo.sdk_name)
1263}
1264inline void ClientSdkVersionInfo::set_sdk_name(const char* value) {
1265 set_has_sdk_name();
1266 if (sdk_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1267 sdk_name_ = new ::std::string;
1268 }
1269 sdk_name_->assign(value);
1270 // @@protoc_insertion_point(field_set_char:bgs.protocol.connection.v1.ClientSdkVersionInfo.sdk_name)
1271}
1272inline void ClientSdkVersionInfo::set_sdk_name(const char* value, size_t size) {
1273 set_has_sdk_name();
1274 if (sdk_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1275 sdk_name_ = new ::std::string;
1276 }
1277 sdk_name_->assign(reinterpret_cast<const char*>(value), size);
1278 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.connection.v1.ClientSdkVersionInfo.sdk_name)
1279}
1281 set_has_sdk_name();
1282 if (sdk_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1283 sdk_name_ = new ::std::string;
1284 }
1285 // @@protoc_insertion_point(field_mutable:bgs.protocol.connection.v1.ClientSdkVersionInfo.sdk_name)
1286 return sdk_name_;
1287}
1289 clear_has_sdk_name();
1290 if (sdk_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1291 return NULL;
1292 } else {
1293 ::std::string* temp = sdk_name_;
1294 sdk_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1295 return temp;
1296 }
1297}
1298inline void ClientSdkVersionInfo::set_allocated_sdk_name(::std::string* sdk_name) {
1299 if (sdk_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1300 delete sdk_name_;
1301 }
1302 if (sdk_name) {
1303 set_has_sdk_name();
1304 sdk_name_ = sdk_name;
1305 } else {
1306 clear_has_sdk_name();
1307 sdk_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1308 }
1309 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.connection.v1.ClientSdkVersionInfo.sdk_name)
1310}
1311
1312// optional .bgs.protocol.SemanticVersion sdk_version = 2;
1314 return (_has_bits_[0] & 0x00000002u) != 0;
1315}
1317 _has_bits_[0] |= 0x00000002u;
1318}
1320 _has_bits_[0] &= ~0x00000002u;
1321}
1323 if (sdk_version_ != NULL) sdk_version_->::bgs::protocol::SemanticVersion::Clear();
1324 clear_has_sdk_version();
1325}
1326inline const ::bgs::protocol::SemanticVersion& ClientSdkVersionInfo::sdk_version() const {
1327 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.ClientSdkVersionInfo.sdk_version)
1328 return sdk_version_ != NULL ? *sdk_version_ : *default_instance_->sdk_version_;
1329}
1330inline ::bgs::protocol::SemanticVersion* ClientSdkVersionInfo::mutable_sdk_version() {
1331 set_has_sdk_version();
1332 if (sdk_version_ == NULL) sdk_version_ = new ::bgs::protocol::SemanticVersion;
1333 // @@protoc_insertion_point(field_mutable:bgs.protocol.connection.v1.ClientSdkVersionInfo.sdk_version)
1334 return sdk_version_;
1335}
1336inline ::bgs::protocol::SemanticVersion* ClientSdkVersionInfo::release_sdk_version() {
1337 clear_has_sdk_version();
1338 ::bgs::protocol::SemanticVersion* temp = sdk_version_;
1339 sdk_version_ = NULL;
1340 return temp;
1341}
1343 delete sdk_version_;
1344 sdk_version_ = sdk_version;
1345 if (sdk_version) {
1346 set_has_sdk_version();
1347 } else {
1348 clear_has_sdk_version();
1349 }
1350 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.connection.v1.ClientSdkVersionInfo.sdk_version)
1351}
1352
1353// optional .bgs.protocol.SemanticVersion protocol_version = 3;
1355 return (_has_bits_[0] & 0x00000004u) != 0;
1356}
1358 _has_bits_[0] |= 0x00000004u;
1359}
1361 _has_bits_[0] &= ~0x00000004u;
1362}
1364 if (protocol_version_ != NULL) protocol_version_->::bgs::protocol::SemanticVersion::Clear();
1365 clear_has_protocol_version();
1366}
1367inline const ::bgs::protocol::SemanticVersion& ClientSdkVersionInfo::protocol_version() const {
1368 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.ClientSdkVersionInfo.protocol_version)
1369 return protocol_version_ != NULL ? *protocol_version_ : *default_instance_->protocol_version_;
1370}
1371inline ::bgs::protocol::SemanticVersion* ClientSdkVersionInfo::mutable_protocol_version() {
1372 set_has_protocol_version();
1373 if (protocol_version_ == NULL) protocol_version_ = new ::bgs::protocol::SemanticVersion;
1374 // @@protoc_insertion_point(field_mutable:bgs.protocol.connection.v1.ClientSdkVersionInfo.protocol_version)
1375 return protocol_version_;
1376}
1377inline ::bgs::protocol::SemanticVersion* ClientSdkVersionInfo::release_protocol_version() {
1378 clear_has_protocol_version();
1379 ::bgs::protocol::SemanticVersion* temp = protocol_version_;
1380 protocol_version_ = NULL;
1381 return temp;
1382}
1384 delete protocol_version_;
1385 protocol_version_ = protocol_version;
1386 if (protocol_version) {
1387 set_has_protocol_version();
1388 } else {
1389 clear_has_protocol_version();
1390 }
1391 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.connection.v1.ClientSdkVersionInfo.protocol_version)
1392}
1393
1394// -------------------------------------------------------------------
1395
1396// ConnectRequest
1397
1398// optional .bgs.protocol.ProcessId client_id = 1;
1400 return (_has_bits_[0] & 0x00000001u) != 0;
1401}
1403 _has_bits_[0] |= 0x00000001u;
1404}
1406 _has_bits_[0] &= ~0x00000001u;
1407}
1409 if (client_id_ != NULL) client_id_->::bgs::protocol::ProcessId::Clear();
1410 clear_has_client_id();
1411}
1412inline const ::bgs::protocol::ProcessId& ConnectRequest::client_id() const {
1413 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.ConnectRequest.client_id)
1414 return client_id_ != NULL ? *client_id_ : *default_instance_->client_id_;
1415}
1416inline ::bgs::protocol::ProcessId* ConnectRequest::mutable_client_id() {
1417 set_has_client_id();
1418 if (client_id_ == NULL) client_id_ = new ::bgs::protocol::ProcessId;
1419 // @@protoc_insertion_point(field_mutable:bgs.protocol.connection.v1.ConnectRequest.client_id)
1420 return client_id_;
1421}
1422inline ::bgs::protocol::ProcessId* ConnectRequest::release_client_id() {
1423 clear_has_client_id();
1424 ::bgs::protocol::ProcessId* temp = client_id_;
1425 client_id_ = NULL;
1426 return temp;
1427}
1429 delete client_id_;
1430 client_id_ = client_id;
1431 if (client_id) {
1432 set_has_client_id();
1433 } else {
1434 clear_has_client_id();
1435 }
1436 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.connection.v1.ConnectRequest.client_id)
1437}
1438
1439// optional .bgs.protocol.connection.v1.BindRequest bind_request = 2;
1441 return (_has_bits_[0] & 0x00000002u) != 0;
1442}
1444 _has_bits_[0] |= 0x00000002u;
1445}
1447 _has_bits_[0] &= ~0x00000002u;
1448}
1450 if (bind_request_ != NULL) bind_request_->::bgs::protocol::connection::v1::BindRequest::Clear();
1451 clear_has_bind_request();
1452}
1453inline const ::bgs::protocol::connection::v1::BindRequest& ConnectRequest::bind_request() const {
1454 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.ConnectRequest.bind_request)
1455 return bind_request_ != NULL ? *bind_request_ : *default_instance_->bind_request_;
1456}
1457inline ::bgs::protocol::connection::v1::BindRequest* ConnectRequest::mutable_bind_request() {
1458 set_has_bind_request();
1459 if (bind_request_ == NULL) bind_request_ = new ::bgs::protocol::connection::v1::BindRequest;
1460 // @@protoc_insertion_point(field_mutable:bgs.protocol.connection.v1.ConnectRequest.bind_request)
1461 return bind_request_;
1462}
1463inline ::bgs::protocol::connection::v1::BindRequest* ConnectRequest::release_bind_request() {
1464 clear_has_bind_request();
1466 bind_request_ = NULL;
1467 return temp;
1468}
1470 delete bind_request_;
1471 bind_request_ = bind_request;
1472 if (bind_request) {
1473 set_has_bind_request();
1474 } else {
1475 clear_has_bind_request();
1476 }
1477 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.connection.v1.ConnectRequest.bind_request)
1478}
1479
1480// optional bool use_bindless_rpc = 3 [default = true];
1482 return (_has_bits_[0] & 0x00000004u) != 0;
1483}
1485 _has_bits_[0] |= 0x00000004u;
1486}
1488 _has_bits_[0] &= ~0x00000004u;
1489}
1491 use_bindless_rpc_ = true;
1492 clear_has_use_bindless_rpc();
1493}
1495 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.ConnectRequest.use_bindless_rpc)
1496 return use_bindless_rpc_;
1497}
1499 set_has_use_bindless_rpc();
1500 use_bindless_rpc_ = value;
1501 // @@protoc_insertion_point(field_set:bgs.protocol.connection.v1.ConnectRequest.use_bindless_rpc)
1502}
1503
1504// optional .bgs.protocol.connection.v1.MeteringLevel metering_level = 4;
1506 return (_has_bits_[0] & 0x00000008u) != 0;
1507}
1509 _has_bits_[0] |= 0x00000008u;
1510}
1512 _has_bits_[0] &= ~0x00000008u;
1513}
1515 metering_level_ = 0;
1516 clear_has_metering_level();
1517}
1519 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.ConnectRequest.metering_level)
1520 return static_cast< ::bgs::protocol::connection::v1::MeteringLevel >(metering_level_);
1521}
1524 set_has_metering_level();
1525 metering_level_ = value;
1526 // @@protoc_insertion_point(field_set:bgs.protocol.connection.v1.ConnectRequest.metering_level)
1527}
1528
1529// optional .bgs.protocol.connection.v1.ClientSdkVersionInfo client_sdk_info = 5;
1531 return (_has_bits_[0] & 0x00000010u) != 0;
1532}
1534 _has_bits_[0] |= 0x00000010u;
1535}
1537 _has_bits_[0] &= ~0x00000010u;
1538}
1540 if (client_sdk_info_ != NULL) client_sdk_info_->::bgs::protocol::connection::v1::ClientSdkVersionInfo::Clear();
1541 clear_has_client_sdk_info();
1542}
1543inline const ::bgs::protocol::connection::v1::ClientSdkVersionInfo& ConnectRequest::client_sdk_info() const {
1544 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.ConnectRequest.client_sdk_info)
1545 return client_sdk_info_ != NULL ? *client_sdk_info_ : *default_instance_->client_sdk_info_;
1546}
1547inline ::bgs::protocol::connection::v1::ClientSdkVersionInfo* ConnectRequest::mutable_client_sdk_info() {
1548 set_has_client_sdk_info();
1549 if (client_sdk_info_ == NULL) client_sdk_info_ = new ::bgs::protocol::connection::v1::ClientSdkVersionInfo;
1550 // @@protoc_insertion_point(field_mutable:bgs.protocol.connection.v1.ConnectRequest.client_sdk_info)
1551 return client_sdk_info_;
1552}
1553inline ::bgs::protocol::connection::v1::ClientSdkVersionInfo* ConnectRequest::release_client_sdk_info() {
1554 clear_has_client_sdk_info();
1556 client_sdk_info_ = NULL;
1557 return temp;
1558}
1560 delete client_sdk_info_;
1561 client_sdk_info_ = client_sdk_info;
1562 if (client_sdk_info) {
1563 set_has_client_sdk_info();
1564 } else {
1565 clear_has_client_sdk_info();
1566 }
1567 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.connection.v1.ConnectRequest.client_sdk_info)
1568}
1569
1570// -------------------------------------------------------------------
1571
1572// ConnectionMeteringContentHandles
1573
1574// repeated .bgs.protocol.ContentHandle content_handle = 1;
1576 return content_handle_.size();
1577}
1579 content_handle_.Clear();
1580}
1581inline const ::bgs::protocol::ContentHandle& ConnectionMeteringContentHandles::content_handle(int index) const {
1582 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.ConnectionMeteringContentHandles.content_handle)
1583 return content_handle_.Get(index);
1584}
1585inline ::bgs::protocol::ContentHandle* ConnectionMeteringContentHandles::mutable_content_handle(int index) {
1586 // @@protoc_insertion_point(field_mutable:bgs.protocol.connection.v1.ConnectionMeteringContentHandles.content_handle)
1587 return content_handle_.Mutable(index);
1588}
1589inline ::bgs::protocol::ContentHandle* ConnectionMeteringContentHandles::add_content_handle() {
1590 // @@protoc_insertion_point(field_add:bgs.protocol.connection.v1.ConnectionMeteringContentHandles.content_handle)
1591 return content_handle_.Add();
1592}
1593inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::ContentHandle >&
1595 // @@protoc_insertion_point(field_list:bgs.protocol.connection.v1.ConnectionMeteringContentHandles.content_handle)
1596 return content_handle_;
1597}
1598inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::ContentHandle >*
1600 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.connection.v1.ConnectionMeteringContentHandles.content_handle)
1601 return &content_handle_;
1602}
1603
1604// -------------------------------------------------------------------
1605
1606// ConnectResponse
1607
1608// required .bgs.protocol.ProcessId server_id = 1;
1610 return (_has_bits_[0] & 0x00000001u) != 0;
1611}
1613 _has_bits_[0] |= 0x00000001u;
1614}
1616 _has_bits_[0] &= ~0x00000001u;
1617}
1619 if (server_id_ != NULL) server_id_->::bgs::protocol::ProcessId::Clear();
1620 clear_has_server_id();
1621}
1622inline const ::bgs::protocol::ProcessId& ConnectResponse::server_id() const {
1623 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.ConnectResponse.server_id)
1624 return server_id_ != NULL ? *server_id_ : *default_instance_->server_id_;
1625}
1626inline ::bgs::protocol::ProcessId* ConnectResponse::mutable_server_id() {
1627 set_has_server_id();
1628 if (server_id_ == NULL) server_id_ = new ::bgs::protocol::ProcessId;
1629 // @@protoc_insertion_point(field_mutable:bgs.protocol.connection.v1.ConnectResponse.server_id)
1630 return server_id_;
1631}
1632inline ::bgs::protocol::ProcessId* ConnectResponse::release_server_id() {
1633 clear_has_server_id();
1634 ::bgs::protocol::ProcessId* temp = server_id_;
1635 server_id_ = NULL;
1636 return temp;
1637}
1639 delete server_id_;
1640 server_id_ = server_id;
1641 if (server_id) {
1642 set_has_server_id();
1643 } else {
1644 clear_has_server_id();
1645 }
1646 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.connection.v1.ConnectResponse.server_id)
1647}
1648
1649// optional .bgs.protocol.ProcessId client_id = 2;
1651 return (_has_bits_[0] & 0x00000002u) != 0;
1652}
1654 _has_bits_[0] |= 0x00000002u;
1655}
1657 _has_bits_[0] &= ~0x00000002u;
1658}
1660 if (client_id_ != NULL) client_id_->::bgs::protocol::ProcessId::Clear();
1661 clear_has_client_id();
1662}
1663inline const ::bgs::protocol::ProcessId& ConnectResponse::client_id() const {
1664 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.ConnectResponse.client_id)
1665 return client_id_ != NULL ? *client_id_ : *default_instance_->client_id_;
1666}
1667inline ::bgs::protocol::ProcessId* ConnectResponse::mutable_client_id() {
1668 set_has_client_id();
1669 if (client_id_ == NULL) client_id_ = new ::bgs::protocol::ProcessId;
1670 // @@protoc_insertion_point(field_mutable:bgs.protocol.connection.v1.ConnectResponse.client_id)
1671 return client_id_;
1672}
1673inline ::bgs::protocol::ProcessId* ConnectResponse::release_client_id() {
1674 clear_has_client_id();
1675 ::bgs::protocol::ProcessId* temp = client_id_;
1676 client_id_ = NULL;
1677 return temp;
1678}
1680 delete client_id_;
1681 client_id_ = client_id;
1682 if (client_id) {
1683 set_has_client_id();
1684 } else {
1685 clear_has_client_id();
1686 }
1687 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.connection.v1.ConnectResponse.client_id)
1688}
1689
1690// optional uint32 bind_result = 3;
1692 return (_has_bits_[0] & 0x00000004u) != 0;
1693}
1695 _has_bits_[0] |= 0x00000004u;
1696}
1698 _has_bits_[0] &= ~0x00000004u;
1699}
1701 bind_result_ = 0u;
1702 clear_has_bind_result();
1703}
1705 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.ConnectResponse.bind_result)
1706 return bind_result_;
1707}
1709 set_has_bind_result();
1710 bind_result_ = value;
1711 // @@protoc_insertion_point(field_set:bgs.protocol.connection.v1.ConnectResponse.bind_result)
1712}
1713
1714// optional .bgs.protocol.connection.v1.BindResponse bind_response = 4;
1716 return (_has_bits_[0] & 0x00000008u) != 0;
1717}
1719 _has_bits_[0] |= 0x00000008u;
1720}
1722 _has_bits_[0] &= ~0x00000008u;
1723}
1725 if (bind_response_ != NULL) bind_response_->::bgs::protocol::connection::v1::BindResponse::Clear();
1726 clear_has_bind_response();
1727}
1728inline const ::bgs::protocol::connection::v1::BindResponse& ConnectResponse::bind_response() const {
1729 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.ConnectResponse.bind_response)
1730 return bind_response_ != NULL ? *bind_response_ : *default_instance_->bind_response_;
1731}
1732inline ::bgs::protocol::connection::v1::BindResponse* ConnectResponse::mutable_bind_response() {
1733 set_has_bind_response();
1734 if (bind_response_ == NULL) bind_response_ = new ::bgs::protocol::connection::v1::BindResponse;
1735 // @@protoc_insertion_point(field_mutable:bgs.protocol.connection.v1.ConnectResponse.bind_response)
1736 return bind_response_;
1737}
1738inline ::bgs::protocol::connection::v1::BindResponse* ConnectResponse::release_bind_response() {
1739 clear_has_bind_response();
1740 ::bgs::protocol::connection::v1::BindResponse* temp = bind_response_;
1741 bind_response_ = NULL;
1742 return temp;
1743}
1745 delete bind_response_;
1746 bind_response_ = bind_response;
1747 if (bind_response) {
1748 set_has_bind_response();
1749 } else {
1750 clear_has_bind_response();
1751 }
1752 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.connection.v1.ConnectResponse.bind_response)
1753}
1754
1755// optional .bgs.protocol.connection.v1.ConnectionMeteringContentHandles content_handle_array = 5;
1757 return (_has_bits_[0] & 0x00000010u) != 0;
1758}
1760 _has_bits_[0] |= 0x00000010u;
1761}
1763 _has_bits_[0] &= ~0x00000010u;
1764}
1766 if (content_handle_array_ != NULL) content_handle_array_->::bgs::protocol::connection::v1::ConnectionMeteringContentHandles::Clear();
1767 clear_has_content_handle_array();
1768}
1769inline const ::bgs::protocol::connection::v1::ConnectionMeteringContentHandles& ConnectResponse::content_handle_array() const {
1770 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.ConnectResponse.content_handle_array)
1771 return content_handle_array_ != NULL ? *content_handle_array_ : *default_instance_->content_handle_array_;
1772}
1773inline ::bgs::protocol::connection::v1::ConnectionMeteringContentHandles* ConnectResponse::mutable_content_handle_array() {
1774 set_has_content_handle_array();
1775 if (content_handle_array_ == NULL) content_handle_array_ = new ::bgs::protocol::connection::v1::ConnectionMeteringContentHandles;
1776 // @@protoc_insertion_point(field_mutable:bgs.protocol.connection.v1.ConnectResponse.content_handle_array)
1777 return content_handle_array_;
1778}
1779inline ::bgs::protocol::connection::v1::ConnectionMeteringContentHandles* ConnectResponse::release_content_handle_array() {
1780 clear_has_content_handle_array();
1782 content_handle_array_ = NULL;
1783 return temp;
1784}
1786 delete content_handle_array_;
1787 content_handle_array_ = content_handle_array;
1788 if (content_handle_array) {
1789 set_has_content_handle_array();
1790 } else {
1791 clear_has_content_handle_array();
1792 }
1793 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.connection.v1.ConnectResponse.content_handle_array)
1794}
1795
1796// optional uint64 server_time = 6;
1798 return (_has_bits_[0] & 0x00000020u) != 0;
1799}
1801 _has_bits_[0] |= 0x00000020u;
1802}
1804 _has_bits_[0] &= ~0x00000020u;
1805}
1807 server_time_ = GOOGLE_ULONGLONG(0);
1808 clear_has_server_time();
1809}
1811 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.ConnectResponse.server_time)
1812 return server_time_;
1813}
1815 set_has_server_time();
1816 server_time_ = value;
1817 // @@protoc_insertion_point(field_set:bgs.protocol.connection.v1.ConnectResponse.server_time)
1818}
1819
1820// optional bool use_bindless_rpc = 7 [default = false];
1822 return (_has_bits_[0] & 0x00000040u) != 0;
1823}
1825 _has_bits_[0] |= 0x00000040u;
1826}
1828 _has_bits_[0] &= ~0x00000040u;
1829}
1831 use_bindless_rpc_ = false;
1832 clear_has_use_bindless_rpc();
1833}
1835 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.ConnectResponse.use_bindless_rpc)
1836 return use_bindless_rpc_;
1837}
1839 set_has_use_bindless_rpc();
1840 use_bindless_rpc_ = value;
1841 // @@protoc_insertion_point(field_set:bgs.protocol.connection.v1.ConnectResponse.use_bindless_rpc)
1842}
1843
1844// optional .bgs.protocol.connection.v1.ConnectionMeteringContentHandles binary_content_handle_array = 8;
1846 return (_has_bits_[0] & 0x00000080u) != 0;
1847}
1849 _has_bits_[0] |= 0x00000080u;
1850}
1852 _has_bits_[0] &= ~0x00000080u;
1853}
1855 if (binary_content_handle_array_ != NULL) binary_content_handle_array_->::bgs::protocol::connection::v1::ConnectionMeteringContentHandles::Clear();
1856 clear_has_binary_content_handle_array();
1857}
1858inline const ::bgs::protocol::connection::v1::ConnectionMeteringContentHandles& ConnectResponse::binary_content_handle_array() const {
1859 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.ConnectResponse.binary_content_handle_array)
1860 return binary_content_handle_array_ != NULL ? *binary_content_handle_array_ : *default_instance_->binary_content_handle_array_;
1861}
1862inline ::bgs::protocol::connection::v1::ConnectionMeteringContentHandles* ConnectResponse::mutable_binary_content_handle_array() {
1863 set_has_binary_content_handle_array();
1864 if (binary_content_handle_array_ == NULL) binary_content_handle_array_ = new ::bgs::protocol::connection::v1::ConnectionMeteringContentHandles;
1865 // @@protoc_insertion_point(field_mutable:bgs.protocol.connection.v1.ConnectResponse.binary_content_handle_array)
1866 return binary_content_handle_array_;
1867}
1868inline ::bgs::protocol::connection::v1::ConnectionMeteringContentHandles* ConnectResponse::release_binary_content_handle_array() {
1869 clear_has_binary_content_handle_array();
1870 ::bgs::protocol::connection::v1::ConnectionMeteringContentHandles* temp = binary_content_handle_array_;
1871 binary_content_handle_array_ = NULL;
1872 return temp;
1873}
1875 delete binary_content_handle_array_;
1876 binary_content_handle_array_ = binary_content_handle_array;
1877 if (binary_content_handle_array) {
1878 set_has_binary_content_handle_array();
1879 } else {
1880 clear_has_binary_content_handle_array();
1881 }
1882 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.connection.v1.ConnectResponse.binary_content_handle_array)
1883}
1884
1885// optional string ciid = 9;
1886inline bool ConnectResponse::has_ciid() const {
1887 return (_has_bits_[0] & 0x00000100u) != 0;
1888}
1890 _has_bits_[0] |= 0x00000100u;
1891}
1893 _has_bits_[0] &= ~0x00000100u;
1894}
1896 if (ciid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1897 ciid_->clear();
1898 }
1899 clear_has_ciid();
1900}
1901inline const ::std::string& ConnectResponse::ciid() const {
1902 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.ConnectResponse.ciid)
1903 return *ciid_;
1904}
1905inline void ConnectResponse::set_ciid(const ::std::string& value) {
1906 set_has_ciid();
1907 if (ciid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1908 ciid_ = new ::std::string;
1909 }
1910 ciid_->assign(value);
1911 // @@protoc_insertion_point(field_set:bgs.protocol.connection.v1.ConnectResponse.ciid)
1912}
1913inline void ConnectResponse::set_ciid(const char* value) {
1914 set_has_ciid();
1915 if (ciid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1916 ciid_ = new ::std::string;
1917 }
1918 ciid_->assign(value);
1919 // @@protoc_insertion_point(field_set_char:bgs.protocol.connection.v1.ConnectResponse.ciid)
1920}
1921inline void ConnectResponse::set_ciid(const char* value, size_t size) {
1922 set_has_ciid();
1923 if (ciid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1924 ciid_ = new ::std::string;
1925 }
1926 ciid_->assign(reinterpret_cast<const char*>(value), size);
1927 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.connection.v1.ConnectResponse.ciid)
1928}
1929inline ::std::string* ConnectResponse::mutable_ciid() {
1930 set_has_ciid();
1931 if (ciid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1932 ciid_ = new ::std::string;
1933 }
1934 // @@protoc_insertion_point(field_mutable:bgs.protocol.connection.v1.ConnectResponse.ciid)
1935 return ciid_;
1936}
1937inline ::std::string* ConnectResponse::release_ciid() {
1938 clear_has_ciid();
1939 if (ciid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1940 return NULL;
1941 } else {
1942 ::std::string* temp = ciid_;
1943 ciid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1944 return temp;
1945 }
1946}
1947inline void ConnectResponse::set_allocated_ciid(::std::string* ciid) {
1948 if (ciid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1949 delete ciid_;
1950 }
1951 if (ciid) {
1952 set_has_ciid();
1953 ciid_ = ciid;
1954 } else {
1955 clear_has_ciid();
1956 ciid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1957 }
1958 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.connection.v1.ConnectResponse.ciid)
1959}
1960
1961// optional uint32 connected_region = 10;
1963 return (_has_bits_[0] & 0x00000200u) != 0;
1964}
1966 _has_bits_[0] |= 0x00000200u;
1967}
1969 _has_bits_[0] &= ~0x00000200u;
1970}
1972 connected_region_ = 0u;
1973 clear_has_connected_region();
1974}
1976 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.ConnectResponse.connected_region)
1977 return connected_region_;
1978}
1980 set_has_connected_region();
1981 connected_region_ = value;
1982 // @@protoc_insertion_point(field_set:bgs.protocol.connection.v1.ConnectResponse.connected_region)
1983}
1984
1985// -------------------------------------------------------------------
1986
1987// BoundService
1988
1989// required fixed32 hash = 1;
1990inline bool BoundService::has_hash() const {
1991 return (_has_bits_[0] & 0x00000001u) != 0;
1992}
1994 _has_bits_[0] |= 0x00000001u;
1995}
1997 _has_bits_[0] &= ~0x00000001u;
1998}
2000 hash_ = 0u;
2001 clear_has_hash();
2002}
2004 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.BoundService.hash)
2005 return hash_;
2006}
2008 set_has_hash();
2009 hash_ = value;
2010 // @@protoc_insertion_point(field_set:bgs.protocol.connection.v1.BoundService.hash)
2011}
2012
2013// required uint32 id = 2;
2014inline bool BoundService::has_id() const {
2015 return (_has_bits_[0] & 0x00000002u) != 0;
2016}
2018 _has_bits_[0] |= 0x00000002u;
2019}
2021 _has_bits_[0] &= ~0x00000002u;
2022}
2024 id_ = 0u;
2025 clear_has_id();
2026}
2028 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.BoundService.id)
2029 return id_;
2030}
2032 set_has_id();
2033 id_ = value;
2034 // @@protoc_insertion_point(field_set:bgs.protocol.connection.v1.BoundService.id)
2035}
2036
2037// -------------------------------------------------------------------
2038
2039// BindRequest
2040
2041// repeated fixed32 deprecated_imported_service_hash = 1 [packed = true, deprecated = true];
2043 return deprecated_imported_service_hash_.size();
2044}
2046 deprecated_imported_service_hash_.Clear();
2047}
2049 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.BindRequest.deprecated_imported_service_hash)
2050 return deprecated_imported_service_hash_.Get(index);
2051}
2053 deprecated_imported_service_hash_.Set(index, value);
2054 // @@protoc_insertion_point(field_set:bgs.protocol.connection.v1.BindRequest.deprecated_imported_service_hash)
2055}
2057 deprecated_imported_service_hash_.Add(value);
2058 // @@protoc_insertion_point(field_add:bgs.protocol.connection.v1.BindRequest.deprecated_imported_service_hash)
2059}
2060inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
2062 // @@protoc_insertion_point(field_list:bgs.protocol.connection.v1.BindRequest.deprecated_imported_service_hash)
2063 return deprecated_imported_service_hash_;
2064}
2065inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
2067 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.connection.v1.BindRequest.deprecated_imported_service_hash)
2068 return &deprecated_imported_service_hash_;
2069}
2070
2071// repeated .bgs.protocol.connection.v1.BoundService deprecated_exported_service = 2 [deprecated = true];
2073 return deprecated_exported_service_.size();
2074}
2076 deprecated_exported_service_.Clear();
2077}
2078inline const ::bgs::protocol::connection::v1::BoundService& BindRequest::deprecated_exported_service(int index) const {
2079 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.BindRequest.deprecated_exported_service)
2080 return deprecated_exported_service_.Get(index);
2081}
2082inline ::bgs::protocol::connection::v1::BoundService* BindRequest::mutable_deprecated_exported_service(int index) {
2083 // @@protoc_insertion_point(field_mutable:bgs.protocol.connection.v1.BindRequest.deprecated_exported_service)
2084 return deprecated_exported_service_.Mutable(index);
2085}
2086inline ::bgs::protocol::connection::v1::BoundService* BindRequest::add_deprecated_exported_service() {
2087 // @@protoc_insertion_point(field_add:bgs.protocol.connection.v1.BindRequest.deprecated_exported_service)
2088 return deprecated_exported_service_.Add();
2089}
2090inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService >&
2092 // @@protoc_insertion_point(field_list:bgs.protocol.connection.v1.BindRequest.deprecated_exported_service)
2093 return deprecated_exported_service_;
2094}
2095inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService >*
2097 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.connection.v1.BindRequest.deprecated_exported_service)
2098 return &deprecated_exported_service_;
2099}
2100
2101// repeated .bgs.protocol.connection.v1.BoundService exported_service = 3;
2103 return exported_service_.size();
2104}
2106 exported_service_.Clear();
2107}
2108inline const ::bgs::protocol::connection::v1::BoundService& BindRequest::exported_service(int index) const {
2109 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.BindRequest.exported_service)
2110 return exported_service_.Get(index);
2111}
2112inline ::bgs::protocol::connection::v1::BoundService* BindRequest::mutable_exported_service(int index) {
2113 // @@protoc_insertion_point(field_mutable:bgs.protocol.connection.v1.BindRequest.exported_service)
2114 return exported_service_.Mutable(index);
2115}
2116inline ::bgs::protocol::connection::v1::BoundService* BindRequest::add_exported_service() {
2117 // @@protoc_insertion_point(field_add:bgs.protocol.connection.v1.BindRequest.exported_service)
2118 return exported_service_.Add();
2119}
2120inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService >&
2122 // @@protoc_insertion_point(field_list:bgs.protocol.connection.v1.BindRequest.exported_service)
2123 return exported_service_;
2124}
2125inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService >*
2127 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.connection.v1.BindRequest.exported_service)
2128 return &exported_service_;
2129}
2130
2131// repeated .bgs.protocol.connection.v1.BoundService imported_service = 4;
2133 return imported_service_.size();
2134}
2136 imported_service_.Clear();
2137}
2138inline const ::bgs::protocol::connection::v1::BoundService& BindRequest::imported_service(int index) const {
2139 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.BindRequest.imported_service)
2140 return imported_service_.Get(index);
2141}
2142inline ::bgs::protocol::connection::v1::BoundService* BindRequest::mutable_imported_service(int index) {
2143 // @@protoc_insertion_point(field_mutable:bgs.protocol.connection.v1.BindRequest.imported_service)
2144 return imported_service_.Mutable(index);
2145}
2146inline ::bgs::protocol::connection::v1::BoundService* BindRequest::add_imported_service() {
2147 // @@protoc_insertion_point(field_add:bgs.protocol.connection.v1.BindRequest.imported_service)
2148 return imported_service_.Add();
2149}
2150inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService >&
2152 // @@protoc_insertion_point(field_list:bgs.protocol.connection.v1.BindRequest.imported_service)
2153 return imported_service_;
2154}
2155inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService >*
2157 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.connection.v1.BindRequest.imported_service)
2158 return &imported_service_;
2159}
2160
2161// -------------------------------------------------------------------
2162
2163// BindResponse
2164
2165// repeated uint32 imported_service_id = 1 [packed = true, deprecated = true];
2167 return imported_service_id_.size();
2168}
2170 imported_service_id_.Clear();
2171}
2173 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.BindResponse.imported_service_id)
2174 return imported_service_id_.Get(index);
2175}
2177 imported_service_id_.Set(index, value);
2178 // @@protoc_insertion_point(field_set:bgs.protocol.connection.v1.BindResponse.imported_service_id)
2179}
2181 imported_service_id_.Add(value);
2182 // @@protoc_insertion_point(field_add:bgs.protocol.connection.v1.BindResponse.imported_service_id)
2183}
2184inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
2186 // @@protoc_insertion_point(field_list:bgs.protocol.connection.v1.BindResponse.imported_service_id)
2187 return imported_service_id_;
2188}
2189inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
2191 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.connection.v1.BindResponse.imported_service_id)
2192 return &imported_service_id_;
2193}
2194
2195// -------------------------------------------------------------------
2196
2197// EchoRequest
2198
2199// optional fixed64 time = 1;
2200inline bool EchoRequest::has_time() const {
2201 return (_has_bits_[0] & 0x00000001u) != 0;
2202}
2204 _has_bits_[0] |= 0x00000001u;
2205}
2207 _has_bits_[0] &= ~0x00000001u;
2208}
2210 time_ = GOOGLE_ULONGLONG(0);
2211 clear_has_time();
2212}
2214 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.EchoRequest.time)
2215 return time_;
2216}
2218 set_has_time();
2219 time_ = value;
2220 // @@protoc_insertion_point(field_set:bgs.protocol.connection.v1.EchoRequest.time)
2221}
2222
2223// optional bool network_only = 2 [default = false];
2225 return (_has_bits_[0] & 0x00000002u) != 0;
2226}
2228 _has_bits_[0] |= 0x00000002u;
2229}
2231 _has_bits_[0] &= ~0x00000002u;
2232}
2234 network_only_ = false;
2235 clear_has_network_only();
2236}
2237inline bool EchoRequest::network_only() const {
2238 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.EchoRequest.network_only)
2239 return network_only_;
2240}
2241inline void EchoRequest::set_network_only(bool value) {
2242 set_has_network_only();
2243 network_only_ = value;
2244 // @@protoc_insertion_point(field_set:bgs.protocol.connection.v1.EchoRequest.network_only)
2245}
2246
2247// optional bytes payload = 3;
2248inline bool EchoRequest::has_payload() const {
2249 return (_has_bits_[0] & 0x00000004u) != 0;
2250}
2252 _has_bits_[0] |= 0x00000004u;
2253}
2255 _has_bits_[0] &= ~0x00000004u;
2256}
2258 if (payload_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2259 payload_->clear();
2260 }
2261 clear_has_payload();
2262}
2263inline const ::std::string& EchoRequest::payload() const {
2264 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.EchoRequest.payload)
2265 return *payload_;
2266}
2267inline void EchoRequest::set_payload(const ::std::string& value) {
2268 set_has_payload();
2269 if (payload_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2270 payload_ = new ::std::string;
2271 }
2272 payload_->assign(value);
2273 // @@protoc_insertion_point(field_set:bgs.protocol.connection.v1.EchoRequest.payload)
2274}
2275inline void EchoRequest::set_payload(const char* value) {
2276 set_has_payload();
2277 if (payload_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2278 payload_ = new ::std::string;
2279 }
2280 payload_->assign(value);
2281 // @@protoc_insertion_point(field_set_char:bgs.protocol.connection.v1.EchoRequest.payload)
2282}
2283inline void EchoRequest::set_payload(const void* value, size_t size) {
2284 set_has_payload();
2285 if (payload_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2286 payload_ = new ::std::string;
2287 }
2288 payload_->assign(reinterpret_cast<const char*>(value), size);
2289 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.connection.v1.EchoRequest.payload)
2290}
2291inline ::std::string* EchoRequest::mutable_payload() {
2292 set_has_payload();
2293 if (payload_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2294 payload_ = new ::std::string;
2295 }
2296 // @@protoc_insertion_point(field_mutable:bgs.protocol.connection.v1.EchoRequest.payload)
2297 return payload_;
2298}
2299inline ::std::string* EchoRequest::release_payload() {
2300 clear_has_payload();
2301 if (payload_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2302 return NULL;
2303 } else {
2304 ::std::string* temp = payload_;
2305 payload_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2306 return temp;
2307 }
2308}
2309inline void EchoRequest::set_allocated_payload(::std::string* payload) {
2310 if (payload_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2311 delete payload_;
2312 }
2313 if (payload) {
2314 set_has_payload();
2315 payload_ = payload;
2316 } else {
2317 clear_has_payload();
2318 payload_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2319 }
2320 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.connection.v1.EchoRequest.payload)
2321}
2322
2323// optional .bgs.protocol.ProcessId forward = 4;
2324inline bool EchoRequest::has_forward() const {
2325 return (_has_bits_[0] & 0x00000008u) != 0;
2326}
2328 _has_bits_[0] |= 0x00000008u;
2329}
2331 _has_bits_[0] &= ~0x00000008u;
2332}
2334 if (forward_ != NULL) forward_->::bgs::protocol::ProcessId::Clear();
2335 clear_has_forward();
2336}
2337inline const ::bgs::protocol::ProcessId& EchoRequest::forward() const {
2338 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.EchoRequest.forward)
2339 return forward_ != NULL ? *forward_ : *default_instance_->forward_;
2340}
2341inline ::bgs::protocol::ProcessId* EchoRequest::mutable_forward() {
2342 set_has_forward();
2343 if (forward_ == NULL) forward_ = new ::bgs::protocol::ProcessId;
2344 // @@protoc_insertion_point(field_mutable:bgs.protocol.connection.v1.EchoRequest.forward)
2345 return forward_;
2346}
2347inline ::bgs::protocol::ProcessId* EchoRequest::release_forward() {
2348 clear_has_forward();
2349 ::bgs::protocol::ProcessId* temp = forward_;
2350 forward_ = NULL;
2351 return temp;
2352}
2354 delete forward_;
2355 forward_ = forward;
2356 if (forward) {
2357 set_has_forward();
2358 } else {
2359 clear_has_forward();
2360 }
2361 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.connection.v1.EchoRequest.forward)
2362}
2363
2364// optional string forward_client_id = 5;
2366 return (_has_bits_[0] & 0x00000010u) != 0;
2367}
2369 _has_bits_[0] |= 0x00000010u;
2370}
2372 _has_bits_[0] &= ~0x00000010u;
2373}
2375 if (forward_client_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2376 forward_client_id_->clear();
2377 }
2378 clear_has_forward_client_id();
2379}
2380inline const ::std::string& EchoRequest::forward_client_id() const {
2381 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.EchoRequest.forward_client_id)
2382 return *forward_client_id_;
2383}
2384inline void EchoRequest::set_forward_client_id(const ::std::string& value) {
2385 set_has_forward_client_id();
2386 if (forward_client_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2387 forward_client_id_ = new ::std::string;
2388 }
2389 forward_client_id_->assign(value);
2390 // @@protoc_insertion_point(field_set:bgs.protocol.connection.v1.EchoRequest.forward_client_id)
2391}
2392inline void EchoRequest::set_forward_client_id(const char* value) {
2393 set_has_forward_client_id();
2394 if (forward_client_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2395 forward_client_id_ = new ::std::string;
2396 }
2397 forward_client_id_->assign(value);
2398 // @@protoc_insertion_point(field_set_char:bgs.protocol.connection.v1.EchoRequest.forward_client_id)
2399}
2400inline void EchoRequest::set_forward_client_id(const char* value, size_t size) {
2401 set_has_forward_client_id();
2402 if (forward_client_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2403 forward_client_id_ = new ::std::string;
2404 }
2405 forward_client_id_->assign(reinterpret_cast<const char*>(value), size);
2406 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.connection.v1.EchoRequest.forward_client_id)
2407}
2409 set_has_forward_client_id();
2410 if (forward_client_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2411 forward_client_id_ = new ::std::string;
2412 }
2413 // @@protoc_insertion_point(field_mutable:bgs.protocol.connection.v1.EchoRequest.forward_client_id)
2414 return forward_client_id_;
2415}
2417 clear_has_forward_client_id();
2418 if (forward_client_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2419 return NULL;
2420 } else {
2421 ::std::string* temp = forward_client_id_;
2422 forward_client_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2423 return temp;
2424 }
2425}
2426inline void EchoRequest::set_allocated_forward_client_id(::std::string* forward_client_id) {
2427 if (forward_client_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2428 delete forward_client_id_;
2429 }
2430 if (forward_client_id) {
2431 set_has_forward_client_id();
2432 forward_client_id_ = forward_client_id;
2433 } else {
2434 clear_has_forward_client_id();
2435 forward_client_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2436 }
2437 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.connection.v1.EchoRequest.forward_client_id)
2438}
2439
2440// -------------------------------------------------------------------
2441
2442// EchoResponse
2443
2444// optional fixed64 time = 1;
2445inline bool EchoResponse::has_time() const {
2446 return (_has_bits_[0] & 0x00000001u) != 0;
2447}
2449 _has_bits_[0] |= 0x00000001u;
2450}
2452 _has_bits_[0] &= ~0x00000001u;
2453}
2455 time_ = GOOGLE_ULONGLONG(0);
2456 clear_has_time();
2457}
2459 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.EchoResponse.time)
2460 return time_;
2461}
2463 set_has_time();
2464 time_ = value;
2465 // @@protoc_insertion_point(field_set:bgs.protocol.connection.v1.EchoResponse.time)
2466}
2467
2468// optional bytes payload = 2;
2469inline bool EchoResponse::has_payload() const {
2470 return (_has_bits_[0] & 0x00000002u) != 0;
2471}
2473 _has_bits_[0] |= 0x00000002u;
2474}
2476 _has_bits_[0] &= ~0x00000002u;
2477}
2479 if (payload_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2480 payload_->clear();
2481 }
2482 clear_has_payload();
2483}
2484inline const ::std::string& EchoResponse::payload() const {
2485 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.EchoResponse.payload)
2486 return *payload_;
2487}
2488inline void EchoResponse::set_payload(const ::std::string& value) {
2489 set_has_payload();
2490 if (payload_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2491 payload_ = new ::std::string;
2492 }
2493 payload_->assign(value);
2494 // @@protoc_insertion_point(field_set:bgs.protocol.connection.v1.EchoResponse.payload)
2495}
2496inline void EchoResponse::set_payload(const char* value) {
2497 set_has_payload();
2498 if (payload_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2499 payload_ = new ::std::string;
2500 }
2501 payload_->assign(value);
2502 // @@protoc_insertion_point(field_set_char:bgs.protocol.connection.v1.EchoResponse.payload)
2503}
2504inline void EchoResponse::set_payload(const void* value, size_t size) {
2505 set_has_payload();
2506 if (payload_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2507 payload_ = new ::std::string;
2508 }
2509 payload_->assign(reinterpret_cast<const char*>(value), size);
2510 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.connection.v1.EchoResponse.payload)
2511}
2512inline ::std::string* EchoResponse::mutable_payload() {
2513 set_has_payload();
2514 if (payload_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2515 payload_ = new ::std::string;
2516 }
2517 // @@protoc_insertion_point(field_mutable:bgs.protocol.connection.v1.EchoResponse.payload)
2518 return payload_;
2519}
2520inline ::std::string* EchoResponse::release_payload() {
2521 clear_has_payload();
2522 if (payload_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2523 return NULL;
2524 } else {
2525 ::std::string* temp = payload_;
2526 payload_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2527 return temp;
2528 }
2529}
2530inline void EchoResponse::set_allocated_payload(::std::string* payload) {
2531 if (payload_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2532 delete payload_;
2533 }
2534 if (payload) {
2535 set_has_payload();
2536 payload_ = payload;
2537 } else {
2538 clear_has_payload();
2539 payload_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2540 }
2541 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.connection.v1.EchoResponse.payload)
2542}
2543
2544// -------------------------------------------------------------------
2545
2546// DisconnectRequest
2547
2548// required uint32 error_code = 1;
2550 return (_has_bits_[0] & 0x00000001u) != 0;
2551}
2553 _has_bits_[0] |= 0x00000001u;
2554}
2556 _has_bits_[0] &= ~0x00000001u;
2557}
2559 error_code_ = 0u;
2560 clear_has_error_code();
2561}
2563 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.DisconnectRequest.error_code)
2564 return error_code_;
2565}
2567 set_has_error_code();
2568 error_code_ = value;
2569 // @@protoc_insertion_point(field_set:bgs.protocol.connection.v1.DisconnectRequest.error_code)
2570}
2571
2572// -------------------------------------------------------------------
2573
2574// DisconnectNotification
2575
2576// required uint32 error_code = 1;
2578 return (_has_bits_[0] & 0x00000001u) != 0;
2579}
2581 _has_bits_[0] |= 0x00000001u;
2582}
2584 _has_bits_[0] &= ~0x00000001u;
2585}
2587 error_code_ = 0u;
2588 clear_has_error_code();
2589}
2591 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.DisconnectNotification.error_code)
2592 return error_code_;
2593}
2595 set_has_error_code();
2596 error_code_ = value;
2597 // @@protoc_insertion_point(field_set:bgs.protocol.connection.v1.DisconnectNotification.error_code)
2598}
2599
2600// optional string reason = 2;
2602 return (_has_bits_[0] & 0x00000002u) != 0;
2603}
2605 _has_bits_[0] |= 0x00000002u;
2606}
2608 _has_bits_[0] &= ~0x00000002u;
2609}
2611 if (reason_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2612 reason_->clear();
2613 }
2614 clear_has_reason();
2615}
2616inline const ::std::string& DisconnectNotification::reason() const {
2617 // @@protoc_insertion_point(field_get:bgs.protocol.connection.v1.DisconnectNotification.reason)
2618 return *reason_;
2619}
2620inline void DisconnectNotification::set_reason(const ::std::string& value) {
2621 set_has_reason();
2622 if (reason_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2623 reason_ = new ::std::string;
2624 }
2625 reason_->assign(value);
2626 // @@protoc_insertion_point(field_set:bgs.protocol.connection.v1.DisconnectNotification.reason)
2627}
2628inline void DisconnectNotification::set_reason(const char* value) {
2629 set_has_reason();
2630 if (reason_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2631 reason_ = new ::std::string;
2632 }
2633 reason_->assign(value);
2634 // @@protoc_insertion_point(field_set_char:bgs.protocol.connection.v1.DisconnectNotification.reason)
2635}
2636inline void DisconnectNotification::set_reason(const char* value, size_t size) {
2637 set_has_reason();
2638 if (reason_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2639 reason_ = new ::std::string;
2640 }
2641 reason_->assign(reinterpret_cast<const char*>(value), size);
2642 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.connection.v1.DisconnectNotification.reason)
2643}
2645 set_has_reason();
2646 if (reason_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2647 reason_ = new ::std::string;
2648 }
2649 // @@protoc_insertion_point(field_mutable:bgs.protocol.connection.v1.DisconnectNotification.reason)
2650 return reason_;
2651}
2653 clear_has_reason();
2654 if (reason_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2655 return NULL;
2656 } else {
2657 ::std::string* temp = reason_;
2658 reason_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2659 return temp;
2660 }
2661}
2662inline void DisconnectNotification::set_allocated_reason(::std::string* reason) {
2663 if (reason_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
2664 delete reason_;
2665 }
2666 if (reason) {
2667 set_has_reason();
2668 reason_ = reason;
2669 } else {
2670 clear_has_reason();
2671 reason_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2672 }
2673 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.connection.v1.DisconnectNotification.reason)
2674}
2675
2676// -------------------------------------------------------------------
2677
2678// EncryptRequest
2679
2680// @@protoc_insertion_point(namespace_scope)
2681
2682} // namespace v1
2683} // namespace connection
2684} // namespace protocol
2685} // namespace bgs
2686
2687#ifndef SWIG
2688namespace google {
2689namespace protobuf {
2690template <> struct is_proto_enum< ::bgs::protocol::connection::v1::MeteringLevel> : ::google::protobuf::internal::true_type {};
2691template <>
2692inline const EnumDescriptor* GetEnumDescriptor< ::bgs::protocol::connection::v1::MeteringLevel>() {
2694}
2695} // namespace google
2696} // namespace protobuf
2697#endif // SWIG
2698
2699// @@protoc_insertion_point(global_scope)
2700
2701#endif // PROTOBUF_connection_5fservice_2eproto__INCLUDED
#define TC_PROTO_API
Definition: Define.h:105
uint64_t uint64
Definition: Define.h:141
uint32_t uint32
Definition: Define.h:142
void add_deprecated_imported_service_hash(::google::protobuf::uint32 value) PROTOBUF_DEPRECATED
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService > * mutable_imported_service()
int deprecated_exported_service_size() const PROTOBUF_DEPRECATED
void set_deprecated_imported_service_hash(int index, ::google::protobuf::uint32 value) PROTOBUF_DEPRECATED
void clear_deprecated_exported_service() PROTOBUF_DEPRECATED
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService > & imported_service() const
static const BindRequest & default_instance()
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService > * mutable_exported_service()
int deprecated_imported_service_hash_size() const PROTOBUF_DEPRECATED
void clear_deprecated_imported_service_hash() PROTOBUF_DEPRECATED
const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > & deprecated_imported_service_hash() const PROTOBUF_DEPRECATED
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService > & exported_service() const
inline ::bgs::protocol::connection::v1::BoundService * add_imported_service()
inline ::bgs::protocol::connection::v1::BoundService * add_deprecated_exported_service() PROTOBUF_DEPRECATED
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
::google::protobuf::Metadata GetMetadata() const
BindRequest & operator=(const BindRequest &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService > & deprecated_exported_service() const PROTOBUF_DEPRECATED
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > * mutable_deprecated_imported_service_hash() PROTOBUF_DEPRECATED
inline ::bgs::protocol::connection::v1::BoundService * add_exported_service()
static const ::google::protobuf::Descriptor * descriptor()
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::connection::v1::BoundService > * mutable_deprecated_exported_service() PROTOBUF_DEPRECATED
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
int imported_service_id_size() const PROTOBUF_DEPRECATED
BindResponse(const BindResponse &from)
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > & imported_service_id() const PROTOBUF_DEPRECATED
static const ::google::protobuf::Descriptor * descriptor()
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > * mutable_imported_service_id() PROTOBUF_DEPRECATED
static const BindResponse & default_instance()
BindResponse & operator=(const BindResponse &from)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
void add_imported_service_id(::google::protobuf::uint32 value) PROTOBUF_DEPRECATED
void set_imported_service_id(int index, ::google::protobuf::uint32 value) PROTOBUF_DEPRECATED
friend void protobuf_AssignDesc_connection_5fservice_2eproto()
BoundService(const BoundService &from)
void set_id(::google::protobuf::uint32 value)
friend void protobuf_ShutdownFile_connection_5fservice_2eproto()
static const ::google::protobuf::Descriptor * descriptor()
void set_hash(::google::protobuf::uint32 value)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline ::google::protobuf::uint32 hash() const
inline ::google::protobuf::uint32 id() const
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
::google::protobuf::Metadata GetMetadata() const
BoundService & operator=(const BoundService &from)
friend void TC_PROTO_API protobuf_AddDesc_connection_5fservice_2eproto()
::google::protobuf::UnknownFieldSet _unknown_fields_
static const BoundService & default_instance()
::google::protobuf::UnknownFieldSet _unknown_fields_
inline ::bgs::protocol::SemanticVersion * mutable_sdk_version()
const ::bgs::protocol::SemanticVersion & sdk_version() const
void Swap(ClientSdkVersionInfo *other)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void set_allocated_protocol_version(::bgs::protocol::SemanticVersion *protocol_version)
ClientSdkVersionInfo(const ClientSdkVersionInfo &from)
void set_allocated_sdk_version(::bgs::protocol::SemanticVersion *sdk_version)
ClientSdkVersionInfo & operator=(const ClientSdkVersionInfo &from)
inline ::bgs::protocol::SemanticVersion * mutable_protocol_version()
inline ::bgs::protocol::SemanticVersion * release_sdk_version()
inline ::bgs::protocol::SemanticVersion * release_protocol_version()
::google::protobuf::Metadata GetMetadata() const
static const ::google::protobuf::Descriptor * descriptor()
friend void TC_PROTO_API protobuf_AddDesc_connection_5fservice_2eproto()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
static const ClientSdkVersionInfo & default_instance()
const ::bgs::protocol::SemanticVersion & protocol_version() const
void set_allocated_client_id(::bgs::protocol::ProcessId *client_id)
void set_allocated_bind_request(::bgs::protocol::connection::v1::BindRequest *bind_request)
inline ::bgs::protocol::ProcessId * release_client_id()
::google::protobuf::UnknownFieldSet _unknown_fields_
inline ::bgs::protocol::connection::v1::ClientSdkVersionInfo * release_client_sdk_info()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
inline ::bgs::protocol::connection::v1::MeteringLevel metering_level() const
ConnectRequest & operator=(const ConnectRequest &from)
::google::protobuf::Metadata GetMetadata() const
::bgs::protocol::connection::v1::ClientSdkVersionInfo * client_sdk_info_
const ::bgs::protocol::connection::v1::BindRequest & bind_request() const
static const ::google::protobuf::Descriptor * descriptor()
inline ::bgs::protocol::connection::v1::ClientSdkVersionInfo * mutable_client_sdk_info()
const ::bgs::protocol::connection::v1::ClientSdkVersionInfo & client_sdk_info() const
::bgs::protocol::connection::v1::BindRequest * bind_request_
const ::bgs::protocol::ProcessId & client_id() const
inline ::bgs::protocol::connection::v1::BindRequest * mutable_bind_request()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void set_metering_level(::bgs::protocol::connection::v1::MeteringLevel value)
ConnectRequest(const ConnectRequest &from)
void set_allocated_client_sdk_info(::bgs::protocol::connection::v1::ClientSdkVersionInfo *client_sdk_info)
friend void TC_PROTO_API protobuf_AddDesc_connection_5fservice_2eproto()
inline ::bgs::protocol::connection::v1::BindRequest * release_bind_request()
static const ConnectRequest & default_instance()
inline ::bgs::protocol::ProcessId * mutable_client_id()
::google::protobuf::Metadata GetMetadata() const
inline ::google::protobuf::uint32 connected_region() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline ::bgs::protocol::connection::v1::ConnectionMeteringContentHandles * mutable_content_handle_array()
inline ::bgs::protocol::connection::v1::BindResponse * mutable_bind_response()
inline ::google::protobuf::uint64 server_time() const
void set_server_time(::google::protobuf::uint64 value)
inline ::bgs::protocol::connection::v1::ConnectionMeteringContentHandles * release_binary_content_handle_array()
inline ::bgs::protocol::connection::v1::ConnectionMeteringContentHandles * release_content_handle_array()
inline ::bgs::protocol::ProcessId * release_server_id()
inline ::bgs::protocol::ProcessId * mutable_server_id()
const ::bgs::protocol::ProcessId & client_id() const
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
inline ::bgs::protocol::ProcessId * release_client_id()
void set_allocated_bind_response(::bgs::protocol::connection::v1::BindResponse *bind_response)
inline ::bgs::protocol::connection::v1::ConnectionMeteringContentHandles * mutable_binary_content_handle_array()
void set_allocated_server_id(::bgs::protocol::ProcessId *server_id)
void set_allocated_binary_content_handle_array(::bgs::protocol::connection::v1::ConnectionMeteringContentHandles *binary_content_handle_array)
ConnectResponse & operator=(const ConnectResponse &from)
void set_bind_result(::google::protobuf::uint32 value)
const ::bgs::protocol::connection::v1::BindResponse & bind_response() const
void set_allocated_content_handle_array(::bgs::protocol::connection::v1::ConnectionMeteringContentHandles *content_handle_array)
const ::bgs::protocol::connection::v1::ConnectionMeteringContentHandles & binary_content_handle_array() const
::bgs::protocol::connection::v1::BindResponse * bind_response_
static const ConnectResponse & default_instance()
inline ::bgs::protocol::connection::v1::BindResponse * release_bind_response()
const ::bgs::protocol::connection::v1::ConnectionMeteringContentHandles & content_handle_array() const
inline ::bgs::protocol::ProcessId * mutable_client_id()
::bgs::protocol::connection::v1::ConnectionMeteringContentHandles * content_handle_array_
friend void TC_PROTO_API protobuf_AddDesc_connection_5fservice_2eproto()
inline ::google::protobuf::uint32 bind_result() const
static const ::google::protobuf::Descriptor * descriptor()
ConnectResponse(const ConnectResponse &from)
::bgs::protocol::connection::v1::ConnectionMeteringContentHandles * binary_content_handle_array_
const ::bgs::protocol::ProcessId & server_id() const
::google::protobuf::UnknownFieldSet _unknown_fields_
void set_allocated_client_id(::bgs::protocol::ProcessId *client_id)
void set_connected_region(::google::protobuf::uint32 value)
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::ContentHandle > * mutable_content_handle()
::google::protobuf::RepeatedPtrField< ::bgs::protocol::ContentHandle > content_handle_
static const ::google::protobuf::Descriptor * descriptor()
void Swap(ConnectionMeteringContentHandles *other)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
ConnectionMeteringContentHandles(const ConnectionMeteringContentHandles &from)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
ConnectionMeteringContentHandles & operator=(const ConnectionMeteringContentHandles &from)
static const ConnectionMeteringContentHandles & default_instance()
ConnectionMeteringContentHandles * New() const
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::ContentHandle > & content_handle() const
virtual uint32 HandleBind(::bgs::protocol::connection::v1::BindRequest const *request, ::bgs::protocol::connection::v1::BindResponse *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
virtual uint32 HandleForceDisconnect(::bgs::protocol::connection::v1::DisconnectNotification const *request)
void KeepAlive(::bgs::protocol::NoData const *request, bool client=false, bool server=false)
void Encrypt(::bgs::protocol::connection::v1::EncryptRequest const *request, std::function< void(::bgs::protocol::NoData const *)> responseCallback, bool client=false, bool server=false)
void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final
void ParseAndHandleForceDisconnect(uint32 token, uint32 methodId, MessageBuffer &buffer)
static google::protobuf::ServiceDescriptor const * descriptor()
void RequestDisconnect(::bgs::protocol::connection::v1::DisconnectRequest const *request, bool client=false, bool server=false)
virtual uint32 HandleEncrypt(::bgs::protocol::connection::v1::EncryptRequest const *request, ::bgs::protocol::NoData *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
std::integral_constant< uint32, 0x65446991u > OriginalHash
void Bind(::bgs::protocol::connection::v1::BindRequest const *request, std::function< void(::bgs::protocol::connection::v1::BindResponse const *)> responseCallback, bool client=false, bool server=false)
void Connect(::bgs::protocol::connection::v1::ConnectRequest const *request, std::function< void(::bgs::protocol::connection::v1::ConnectResponse const *)> responseCallback, bool client=false, bool server=false)
void ParseAndHandleEncrypt(uint32 token, uint32 methodId, MessageBuffer &buffer)
void Echo(::bgs::protocol::connection::v1::EchoRequest const *request, std::function< void(::bgs::protocol::connection::v1::EchoResponse const *)> responseCallback, bool client=false, bool server=false)
virtual uint32 HandleKeepAlive(::bgs::protocol::NoData const *request)
ConnectionService(ConnectionService const &)=delete
void ParseAndHandleRequestDisconnect(uint32 token, uint32 methodId, MessageBuffer &buffer)
void ParseAndHandleEcho(uint32 token, uint32 methodId, MessageBuffer &buffer)
void ParseAndHandleConnect(uint32 token, uint32 methodId, MessageBuffer &buffer)
ConnectionService & operator=(ConnectionService &&)=delete
void ForceDisconnect(::bgs::protocol::connection::v1::DisconnectNotification const *request, bool client=false, bool server=false)
void ParseAndHandleBind(uint32 token, uint32 methodId, MessageBuffer &buffer)
std::integral_constant< uint32, 0x2782094Bu > NameHash
virtual uint32 HandleConnect(::bgs::protocol::connection::v1::ConnectRequest const *request, ::bgs::protocol::connection::v1::ConnectResponse *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
ConnectionService(ConnectionService &&)=delete
ConnectionService & operator=(ConnectionService const &)=delete
virtual uint32 HandleRequestDisconnect(::bgs::protocol::connection::v1::DisconnectRequest const *request)
virtual uint32 HandleEcho(::bgs::protocol::connection::v1::EchoRequest const *request, ::bgs::protocol::connection::v1::EchoResponse *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
void ParseAndHandleKeepAlive(uint32 token, uint32 methodId, MessageBuffer &buffer)
static const ::google::protobuf::Descriptor * descriptor()
::google::protobuf::Metadata GetMetadata() const
static const DisconnectNotification & default_instance()
inline ::google::protobuf::uint32 error_code() const
void Swap(DisconnectNotification *other)
void set_error_code(::google::protobuf::uint32 value)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
DisconnectNotification & operator=(const DisconnectNotification &from)
friend void TC_PROTO_API protobuf_AddDesc_connection_5fservice_2eproto()
DisconnectNotification(const DisconnectNotification &from)
::google::protobuf::Metadata GetMetadata() const
void set_error_code(::google::protobuf::uint32 value)
static const DisconnectRequest & default_instance()
static const ::google::protobuf::Descriptor * descriptor()
DisconnectRequest & operator=(const DisconnectRequest &from)
inline ::google::protobuf::uint32 error_code() const
DisconnectRequest(const DisconnectRequest &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
friend void TC_PROTO_API protobuf_AddDesc_connection_5fservice_2eproto()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
::google::protobuf::UnknownFieldSet _unknown_fields_
void set_time(::google::protobuf::uint64 value)
friend void protobuf_AssignDesc_connection_5fservice_2eproto()
inline ::bgs::protocol::ProcessId * mutable_forward()
::google::protobuf::Metadata GetMetadata() const
inline ::bgs::protocol::ProcessId * release_forward()
EchoRequest & operator=(const EchoRequest &from)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
void set_forward_client_id(const ::std::string &value)
void set_allocated_forward_client_id(::std::string *forward_client_id)
friend void protobuf_ShutdownFile_connection_5fservice_2eproto()
::google::protobuf::UnknownFieldSet _unknown_fields_
inline ::google::protobuf::uint64 time() const
const ::bgs::protocol::ProcessId & forward() const
void set_payload(const ::std::string &value)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
static const ::google::protobuf::Descriptor * descriptor()
friend void TC_PROTO_API protobuf_AddDesc_connection_5fservice_2eproto()
void set_allocated_payload(::std::string *payload)
void set_allocated_forward(::bgs::protocol::ProcessId *forward)
static const EchoRequest & default_instance()
friend void protobuf_AssignDesc_connection_5fservice_2eproto()
void set_time(::google::protobuf::uint64 value)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
static const ::google::protobuf::Descriptor * descriptor()
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
friend void protobuf_ShutdownFile_connection_5fservice_2eproto()
static const EchoResponse & default_instance()
inline ::google::protobuf::uint64 time() const
EchoResponse & operator=(const EchoResponse &from)
::google::protobuf::UnknownFieldSet _unknown_fields_
friend void TC_PROTO_API protobuf_AddDesc_connection_5fservice_2eproto()
EchoResponse(const EchoResponse &from)
void set_payload(const ::std::string &value)
static const ::google::protobuf::Descriptor * descriptor()
EncryptRequest(const EncryptRequest &from)
::google::protobuf::UnknownFieldSet _unknown_fields_
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
EncryptRequest & operator=(const EncryptRequest &from)
static const EncryptRequest & default_instance()
::google::protobuf::Metadata GetMetadata() const
friend void TC_PROTO_API protobuf_AddDesc_connection_5fservice_2eproto()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
constexpr std::size_t size()
Definition: UpdateField.h:796
void protobuf_ShutdownFile_connection_5fservice_2eproto()
const ::std::string & MeteringLevel_Name(MeteringLevel value)
TC_PROTO_APIconst ::google::protobuf::EnumDescriptor * MeteringLevel_descriptor()
TC_PROTO_API bool MeteringLevel_IsValid(int value)
void TC_PROTO_API protobuf_AddDesc_connection_5fservice_2eproto()
bool MeteringLevel_Parse(const ::std::string &name, MeteringLevel *value)
void protobuf_AssignDesc_connection_5fservice_2eproto()
Definition: Session.h:36