2323 lines
85 KiB
C#
2323 lines
85 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: bgs/low/pb/client/connection_service.proto
|
|
// </auto-generated>
|
|
#pragma warning disable 1591, 0612, 3021
|
|
#region Designer generated code
|
|
|
|
using pb = global::Google.Protobuf;
|
|
using pbc = global::Google.Protobuf.Collections;
|
|
using pbr = global::Google.Protobuf.Reflection;
|
|
using scg = global::System.Collections.Generic;
|
|
namespace Bgs.Protocol.Connection.V1 {
|
|
|
|
/// <summary>Holder for reflection information generated from bgs/low/pb/client/connection_service.proto</summary>
|
|
public static partial class ConnectionServiceReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for bgs/low/pb/client/connection_service.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static ConnectionServiceReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"CipiZ3MvbG93L3BiL2NsaWVudC9jb25uZWN0aW9uX3NlcnZpY2UucHJvdG8S",
|
|
"GmJncy5wcm90b2NvbC5jb25uZWN0aW9uLnYxGixiZ3MvbG93L3BiL2NsaWVu",
|
|
"dC9jb250ZW50X2hhbmRsZV90eXBlcy5wcm90bxohYmdzL2xvdy9wYi9jbGll",
|
|
"bnQvcnBjX3R5cGVzLnByb3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxf",
|
|
"ZXh0ZW5zaW9ucy9tZXNzYWdlX29wdGlvbnMucHJvdG8aN2Jncy9sb3cvcGIv",
|
|
"Y2xpZW50L2dsb2JhbF9leHRlbnNpb25zL2ZpZWxkX29wdGlvbnMucHJvdG8a",
|
|
"OGJncy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL21ldGhvZF9v",
|
|
"cHRpb25zLnByb3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5z",
|
|
"aW9ucy9zZXJ2aWNlX29wdGlvbnMucHJvdG8imwEKDkNvbm5lY3RSZXF1ZXN0",
|
|
"EioKCWNsaWVudF9pZBgBIAEoCzIXLmJncy5wcm90b2NvbC5Qcm9jZXNzSWQS",
|
|
"PQoMYmluZF9yZXF1ZXN0GAIgASgLMicuYmdzLnByb3RvY29sLmNvbm5lY3Rp",
|
|
"b24udjEuQmluZFJlcXVlc3QSHgoQdXNlX2JpbmRsZXNzX3JwYxgDIAEoCDoE",
|
|
"dHJ1ZSJXCiBDb25uZWN0aW9uTWV0ZXJpbmdDb250ZW50SGFuZGxlcxIzCg5j",
|
|
"b250ZW50X2hhbmRsZRgBIAMoCzIbLmJncy5wcm90b2NvbC5Db250ZW50SGFu",
|
|
"ZGxlIrQDCg9Db25uZWN0UmVzcG9uc2USKgoJc2VydmVyX2lkGAEgAigLMhcu",
|
|
"YmdzLnByb3RvY29sLlByb2Nlc3NJZBIqCgljbGllbnRfaWQYAiABKAsyFy5i",
|
|
"Z3MucHJvdG9jb2wuUHJvY2Vzc0lkEhMKC2JpbmRfcmVzdWx0GAMgASgNEj8K",
|
|
"DWJpbmRfcmVzcG9uc2UYBCABKAsyKC5iZ3MucHJvdG9jb2wuY29ubmVjdGlv",
|
|
"bi52MS5CaW5kUmVzcG9uc2USWgoUY29udGVudF9oYW5kbGVfYXJyYXkYBSAB",
|
|
"KAsyPC5iZ3MucHJvdG9jb2wuY29ubmVjdGlvbi52MS5Db25uZWN0aW9uTWV0",
|
|
"ZXJpbmdDb250ZW50SGFuZGxlcxITCgtzZXJ2ZXJfdGltZRgGIAEoBBIfChB1",
|
|
"c2VfYmluZGxlc3NfcnBjGAcgASgIOgVmYWxzZRJhChtiaW5hcnlfY29udGVu",
|
|
"dF9oYW5kbGVfYXJyYXkYCCABKAsyPC5iZ3MucHJvdG9jb2wuY29ubmVjdGlv",
|
|
"bi52MS5Db25uZWN0aW9uTWV0ZXJpbmdDb250ZW50SGFuZGxlcyIoCgxCb3Vu",
|
|
"ZFNlcnZpY2USDAoEaGFzaBgBIAIoBxIKCgJpZBgCIAIoDSKYAgoLQmluZFJl",
|
|
"cXVlc3QSLgogZGVwcmVjYXRlZF9pbXBvcnRlZF9zZXJ2aWNlX2hhc2gYASAD",
|
|
"KAdCBBABGAESUQobZGVwcmVjYXRlZF9leHBvcnRlZF9zZXJ2aWNlGAIgAygL",
|
|
"MiguYmdzLnByb3RvY29sLmNvbm5lY3Rpb24udjEuQm91bmRTZXJ2aWNlQgIY",
|
|
"ARJCChBleHBvcnRlZF9zZXJ2aWNlGAMgAygLMiguYmdzLnByb3RvY29sLmNv",
|
|
"bm5lY3Rpb24udjEuQm91bmRTZXJ2aWNlEkIKEGltcG9ydGVkX3NlcnZpY2UY",
|
|
"BCADKAsyKC5iZ3MucHJvdG9jb2wuY29ubmVjdGlvbi52MS5Cb3VuZFNlcnZp",
|
|
"Y2UiMQoMQmluZFJlc3BvbnNlEiEKE2ltcG9ydGVkX3NlcnZpY2VfaWQYASAD",
|
|
"KA1CBBABGAEijgEKC0VjaG9SZXF1ZXN0EgwKBHRpbWUYASABKAYSGwoMbmV0",
|
|
"d29ya19vbmx5GAIgASgIOgVmYWxzZRIPCgdwYXlsb2FkGAMgASgMEigKB2Zv",
|
|
"cndhcmQYBCABKAsyFy5iZ3MucHJvdG9jb2wuUHJvY2Vzc0lkEhkKEWZvcndh",
|
|
"cmRfY2xpZW50X2lkGAUgASgJIi0KDEVjaG9SZXNwb25zZRIMCgR0aW1lGAEg",
|
|
"ASgGEg8KB3BheWxvYWQYAiABKAwiJwoRRGlzY29ubmVjdFJlcXVlc3QSEgoK",
|
|
"ZXJyb3JfY29kZRgBIAIoDSI8ChZEaXNjb25uZWN0Tm90aWZpY2F0aW9uEhIK",
|
|
"CmVycm9yX2NvZGUYASACKA0SDgoGcmVhc29uGAIgASgJIhAKDkVuY3J5cHRS",
|
|
"ZXF1ZXN0MoUGChFDb25uZWN0aW9uU2VydmljZRJqCgdDb25uZWN0EiouYmdz",
|
|
"LnByb3RvY29sLmNvbm5lY3Rpb24udjEuQ29ubmVjdFJlcXVlc3QaKy5iZ3Mu",
|
|
"cHJvdG9jb2wuY29ubmVjdGlvbi52MS5Db25uZWN0UmVzcG9uc2UiBoL5KwII",
|
|
"ARJkCgRCaW5kEicuYmdzLnByb3RvY29sLmNvbm5lY3Rpb24udjEuQmluZFJl",
|
|
"cXVlc3QaKC5iZ3MucHJvdG9jb2wuY29ubmVjdGlvbi52MS5CaW5kUmVzcG9u",
|
|
"c2UiCYgCAYL5KwIIAhJhCgRFY2hvEicuYmdzLnByb3RvY29sLmNvbm5lY3Rp",
|
|
"b24udjEuRWNob1JlcXVlc3QaKC5iZ3MucHJvdG9jb2wuY29ubmVjdGlvbi52",
|
|
"MS5FY2hvUmVzcG9uc2UiBoL5KwIIAxJoCg9Gb3JjZURpc2Nvbm5lY3QSMi5i",
|
|
"Z3MucHJvdG9jb2wuY29ubmVjdGlvbi52MS5EaXNjb25uZWN0Tm90aWZpY2F0",
|
|
"aW9uGhkuYmdzLnByb3RvY29sLk5PX1JFU1BPTlNFIgaC+SsCCAQSRAoJS2Vl",
|
|
"cEFsaXZlEhQuYmdzLnByb3RvY29sLk5vRGF0YRoZLmJncy5wcm90b2NvbC5O",
|
|
"T19SRVNQT05TRSIGgvkrAggFElYKB0VuY3J5cHQSKi5iZ3MucHJvdG9jb2wu",
|
|
"Y29ubmVjdGlvbi52MS5FbmNyeXB0UmVxdWVzdBoULmJncy5wcm90b2NvbC5O",
|
|
"b0RhdGEiCYgCAYL5KwIIBhJlChFSZXF1ZXN0RGlzY29ubmVjdBItLmJncy5w",
|
|
"cm90b2NvbC5jb25uZWN0aW9uLnYxLkRpc2Nvbm5lY3RSZXF1ZXN0GhkuYmdz",
|
|
"LnByb3RvY29sLk5PX1JFU1BPTlNFIgaC+SsCCAcaTIL5KywKKmJuZXQucHJv",
|
|
"dG9jb2wuY29ubmVjdGlvbi5Db25uZWN0aW9uU2VydmljZYL5KwwqCmNvbm5l",
|
|
"Y3Rpb26K+SsCCAGK+SsCEAFCOwobYm5ldC5wcm90b2NvbC5jb25uZWN0aW9u",
|
|
"LnYxQhZDb25uZWN0aW9uU2VydmljZVByb3RvgAEAiAEB"));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::Bgs.Protocol.ContentHandleTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.ConnectRequest), global::Bgs.Protocol.Connection.V1.ConnectRequest.Parser, new[]{ "ClientId", "BindRequest", "UseBindlessRpc" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles), global::Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles.Parser, new[]{ "ContentHandle" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.ConnectResponse), global::Bgs.Protocol.Connection.V1.ConnectResponse.Parser, new[]{ "ServerId", "ClientId", "BindResult", "BindResponse", "ContentHandleArray", "ServerTime", "UseBindlessRpc", "BinaryContentHandleArray" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.BoundService), global::Bgs.Protocol.Connection.V1.BoundService.Parser, new[]{ "Hash", "Id" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.BindRequest), global::Bgs.Protocol.Connection.V1.BindRequest.Parser, new[]{ "DeprecatedImportedServiceHash", "DeprecatedExportedService", "ExportedService", "ImportedService" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.BindResponse), global::Bgs.Protocol.Connection.V1.BindResponse.Parser, new[]{ "ImportedServiceId" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.EchoRequest), global::Bgs.Protocol.Connection.V1.EchoRequest.Parser, new[]{ "Time", "NetworkOnly", "Payload", "Forward", "ForwardClientId" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.EchoResponse), global::Bgs.Protocol.Connection.V1.EchoResponse.Parser, new[]{ "Time", "Payload" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.DisconnectRequest), global::Bgs.Protocol.Connection.V1.DisconnectRequest.Parser, new[]{ "ErrorCode" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.DisconnectNotification), global::Bgs.Protocol.Connection.V1.DisconnectNotification.Parser, new[]{ "ErrorCode", "Reason" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.EncryptRequest), global::Bgs.Protocol.Connection.V1.EncryptRequest.Parser, null, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
public sealed partial class ConnectRequest : pb::IMessage<ConnectRequest> {
|
|
private static readonly pb::MessageParser<ConnectRequest> _parser = new pb::MessageParser<ConnectRequest>(() => new ConnectRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
private int _hasBits0;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<ConnectRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[0]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ConnectRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ConnectRequest(ConnectRequest other) : this() {
|
|
_hasBits0 = other._hasBits0;
|
|
clientId_ = other.HasClientId ? other.clientId_.Clone() : null;
|
|
bindRequest_ = other.HasBindRequest ? other.bindRequest_.Clone() : null;
|
|
useBindlessRpc_ = other.useBindlessRpc_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ConnectRequest Clone() {
|
|
return new ConnectRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "client_id" field.</summary>
|
|
public const int ClientIdFieldNumber = 1;
|
|
private global::Bgs.Protocol.ProcessId clientId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Bgs.Protocol.ProcessId ClientId {
|
|
get { return clientId_; }
|
|
set {
|
|
clientId_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the client_id field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasClientId {
|
|
get { return clientId_ != null; }
|
|
}
|
|
/// <summary>Clears the value of the client_id field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearClientId() {
|
|
clientId_ = null;
|
|
}
|
|
|
|
/// <summary>Field number for the "bind_request" field.</summary>
|
|
public const int BindRequestFieldNumber = 2;
|
|
private global::Bgs.Protocol.Connection.V1.BindRequest bindRequest_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Bgs.Protocol.Connection.V1.BindRequest BindRequest {
|
|
get { return bindRequest_; }
|
|
set {
|
|
bindRequest_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the bind_request field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasBindRequest {
|
|
get { return bindRequest_ != null; }
|
|
}
|
|
/// <summary>Clears the value of the bind_request field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearBindRequest() {
|
|
bindRequest_ = null;
|
|
}
|
|
|
|
/// <summary>Field number for the "use_bindless_rpc" field.</summary>
|
|
public const int UseBindlessRpcFieldNumber = 3;
|
|
private readonly static bool UseBindlessRpcDefaultValue = true;
|
|
|
|
private bool useBindlessRpc_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool UseBindlessRpc {
|
|
get { if ((_hasBits0 & 1) != 0) { return useBindlessRpc_; } else { return UseBindlessRpcDefaultValue; } }
|
|
set {
|
|
_hasBits0 |= 1;
|
|
useBindlessRpc_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "use_bindless_rpc" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasUseBindlessRpc {
|
|
get { return (_hasBits0 & 1) != 0; }
|
|
}
|
|
/// <summary>Clears the value of the "use_bindless_rpc" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearUseBindlessRpc() {
|
|
_hasBits0 &= ~1;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as ConnectRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(ConnectRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(ClientId, other.ClientId)) return false;
|
|
if (!object.Equals(BindRequest, other.BindRequest)) return false;
|
|
if (UseBindlessRpc != other.UseBindlessRpc) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (HasClientId) hash ^= ClientId.GetHashCode();
|
|
if (HasBindRequest) hash ^= BindRequest.GetHashCode();
|
|
if (HasUseBindlessRpc) hash ^= UseBindlessRpc.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (HasClientId) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(ClientId);
|
|
}
|
|
if (HasBindRequest) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(BindRequest);
|
|
}
|
|
if (HasUseBindlessRpc) {
|
|
output.WriteRawTag(24);
|
|
output.WriteBool(UseBindlessRpc);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (HasClientId) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClientId);
|
|
}
|
|
if (HasBindRequest) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(BindRequest);
|
|
}
|
|
if (HasUseBindlessRpc) {
|
|
size += 1 + 1;
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(ConnectRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.HasClientId) {
|
|
if (!HasClientId) {
|
|
ClientId = new global::Bgs.Protocol.ProcessId();
|
|
}
|
|
ClientId.MergeFrom(other.ClientId);
|
|
}
|
|
if (other.HasBindRequest) {
|
|
if (!HasBindRequest) {
|
|
BindRequest = new global::Bgs.Protocol.Connection.V1.BindRequest();
|
|
}
|
|
BindRequest.MergeFrom(other.BindRequest);
|
|
}
|
|
if (other.HasUseBindlessRpc) {
|
|
UseBindlessRpc = other.UseBindlessRpc;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
if (!HasClientId) {
|
|
ClientId = new global::Bgs.Protocol.ProcessId();
|
|
}
|
|
input.ReadMessage(ClientId);
|
|
break;
|
|
}
|
|
case 18: {
|
|
if (!HasBindRequest) {
|
|
BindRequest = new global::Bgs.Protocol.Connection.V1.BindRequest();
|
|
}
|
|
input.ReadMessage(BindRequest);
|
|
break;
|
|
}
|
|
case 24: {
|
|
UseBindlessRpc = input.ReadBool();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class ConnectionMeteringContentHandles : pb::IMessage<ConnectionMeteringContentHandles> {
|
|
private static readonly pb::MessageParser<ConnectionMeteringContentHandles> _parser = new pb::MessageParser<ConnectionMeteringContentHandles>(() => new ConnectionMeteringContentHandles());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<ConnectionMeteringContentHandles> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[1]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ConnectionMeteringContentHandles() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ConnectionMeteringContentHandles(ConnectionMeteringContentHandles other) : this() {
|
|
contentHandle_ = other.contentHandle_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ConnectionMeteringContentHandles Clone() {
|
|
return new ConnectionMeteringContentHandles(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "content_handle" field.</summary>
|
|
public const int ContentHandleFieldNumber = 1;
|
|
private static readonly pb::FieldCodec<global::Bgs.Protocol.ContentHandle> _repeated_contentHandle_codec
|
|
= pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.ContentHandle.Parser);
|
|
private readonly pbc::RepeatedField<global::Bgs.Protocol.ContentHandle> contentHandle_ = new pbc::RepeatedField<global::Bgs.Protocol.ContentHandle>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<global::Bgs.Protocol.ContentHandle> ContentHandle {
|
|
get { return contentHandle_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as ConnectionMeteringContentHandles);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(ConnectionMeteringContentHandles other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if(!contentHandle_.Equals(other.contentHandle_)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
hash ^= contentHandle_.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
contentHandle_.WriteTo(output, _repeated_contentHandle_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
size += contentHandle_.CalculateSize(_repeated_contentHandle_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(ConnectionMeteringContentHandles other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
contentHandle_.Add(other.contentHandle_);
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
contentHandle_.AddEntriesFrom(input, _repeated_contentHandle_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class ConnectResponse : pb::IMessage<ConnectResponse> {
|
|
private static readonly pb::MessageParser<ConnectResponse> _parser = new pb::MessageParser<ConnectResponse>(() => new ConnectResponse());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
private int _hasBits0;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<ConnectResponse> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[2]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ConnectResponse() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ConnectResponse(ConnectResponse other) : this() {
|
|
_hasBits0 = other._hasBits0;
|
|
serverId_ = other.HasServerId ? other.serverId_.Clone() : null;
|
|
clientId_ = other.HasClientId ? other.clientId_.Clone() : null;
|
|
bindResult_ = other.bindResult_;
|
|
bindResponse_ = other.HasBindResponse ? other.bindResponse_.Clone() : null;
|
|
contentHandleArray_ = other.HasContentHandleArray ? other.contentHandleArray_.Clone() : null;
|
|
serverTime_ = other.serverTime_;
|
|
useBindlessRpc_ = other.useBindlessRpc_;
|
|
binaryContentHandleArray_ = other.HasBinaryContentHandleArray ? other.binaryContentHandleArray_.Clone() : null;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ConnectResponse Clone() {
|
|
return new ConnectResponse(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "server_id" field.</summary>
|
|
public const int ServerIdFieldNumber = 1;
|
|
private global::Bgs.Protocol.ProcessId serverId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Bgs.Protocol.ProcessId ServerId {
|
|
get { return serverId_; }
|
|
set {
|
|
serverId_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the server_id field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasServerId {
|
|
get { return serverId_ != null; }
|
|
}
|
|
/// <summary>Clears the value of the server_id field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearServerId() {
|
|
serverId_ = null;
|
|
}
|
|
|
|
/// <summary>Field number for the "client_id" field.</summary>
|
|
public const int ClientIdFieldNumber = 2;
|
|
private global::Bgs.Protocol.ProcessId clientId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Bgs.Protocol.ProcessId ClientId {
|
|
get { return clientId_; }
|
|
set {
|
|
clientId_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the client_id field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasClientId {
|
|
get { return clientId_ != null; }
|
|
}
|
|
/// <summary>Clears the value of the client_id field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearClientId() {
|
|
clientId_ = null;
|
|
}
|
|
|
|
/// <summary>Field number for the "bind_result" field.</summary>
|
|
public const int BindResultFieldNumber = 3;
|
|
private readonly static uint BindResultDefaultValue = 0;
|
|
|
|
private uint bindResult_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public uint BindResult {
|
|
get { if ((_hasBits0 & 1) != 0) { return bindResult_; } else { return BindResultDefaultValue; } }
|
|
set {
|
|
_hasBits0 |= 1;
|
|
bindResult_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "bind_result" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasBindResult {
|
|
get { return (_hasBits0 & 1) != 0; }
|
|
}
|
|
/// <summary>Clears the value of the "bind_result" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearBindResult() {
|
|
_hasBits0 &= ~1;
|
|
}
|
|
|
|
/// <summary>Field number for the "bind_response" field.</summary>
|
|
public const int BindResponseFieldNumber = 4;
|
|
private global::Bgs.Protocol.Connection.V1.BindResponse bindResponse_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Bgs.Protocol.Connection.V1.BindResponse BindResponse {
|
|
get { return bindResponse_; }
|
|
set {
|
|
bindResponse_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the bind_response field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasBindResponse {
|
|
get { return bindResponse_ != null; }
|
|
}
|
|
/// <summary>Clears the value of the bind_response field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearBindResponse() {
|
|
bindResponse_ = null;
|
|
}
|
|
|
|
/// <summary>Field number for the "content_handle_array" field.</summary>
|
|
public const int ContentHandleArrayFieldNumber = 5;
|
|
private global::Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles contentHandleArray_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles ContentHandleArray {
|
|
get { return contentHandleArray_; }
|
|
set {
|
|
contentHandleArray_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the content_handle_array field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasContentHandleArray {
|
|
get { return contentHandleArray_ != null; }
|
|
}
|
|
/// <summary>Clears the value of the content_handle_array field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearContentHandleArray() {
|
|
contentHandleArray_ = null;
|
|
}
|
|
|
|
/// <summary>Field number for the "server_time" field.</summary>
|
|
public const int ServerTimeFieldNumber = 6;
|
|
private readonly static ulong ServerTimeDefaultValue = 0UL;
|
|
|
|
private ulong serverTime_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ulong ServerTime {
|
|
get { if ((_hasBits0 & 2) != 0) { return serverTime_; } else { return ServerTimeDefaultValue; } }
|
|
set {
|
|
_hasBits0 |= 2;
|
|
serverTime_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "server_time" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasServerTime {
|
|
get { return (_hasBits0 & 2) != 0; }
|
|
}
|
|
/// <summary>Clears the value of the "server_time" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearServerTime() {
|
|
_hasBits0 &= ~2;
|
|
}
|
|
|
|
/// <summary>Field number for the "use_bindless_rpc" field.</summary>
|
|
public const int UseBindlessRpcFieldNumber = 7;
|
|
private readonly static bool UseBindlessRpcDefaultValue = false;
|
|
|
|
private bool useBindlessRpc_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool UseBindlessRpc {
|
|
get { if ((_hasBits0 & 4) != 0) { return useBindlessRpc_; } else { return UseBindlessRpcDefaultValue; } }
|
|
set {
|
|
_hasBits0 |= 4;
|
|
useBindlessRpc_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "use_bindless_rpc" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasUseBindlessRpc {
|
|
get { return (_hasBits0 & 4) != 0; }
|
|
}
|
|
/// <summary>Clears the value of the "use_bindless_rpc" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearUseBindlessRpc() {
|
|
_hasBits0 &= ~4;
|
|
}
|
|
|
|
/// <summary>Field number for the "binary_content_handle_array" field.</summary>
|
|
public const int BinaryContentHandleArrayFieldNumber = 8;
|
|
private global::Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles binaryContentHandleArray_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles BinaryContentHandleArray {
|
|
get { return binaryContentHandleArray_; }
|
|
set {
|
|
binaryContentHandleArray_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the binary_content_handle_array field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasBinaryContentHandleArray {
|
|
get { return binaryContentHandleArray_ != null; }
|
|
}
|
|
/// <summary>Clears the value of the binary_content_handle_array field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearBinaryContentHandleArray() {
|
|
binaryContentHandleArray_ = null;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as ConnectResponse);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(ConnectResponse other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(ServerId, other.ServerId)) return false;
|
|
if (!object.Equals(ClientId, other.ClientId)) return false;
|
|
if (BindResult != other.BindResult) return false;
|
|
if (!object.Equals(BindResponse, other.BindResponse)) return false;
|
|
if (!object.Equals(ContentHandleArray, other.ContentHandleArray)) return false;
|
|
if (ServerTime != other.ServerTime) return false;
|
|
if (UseBindlessRpc != other.UseBindlessRpc) return false;
|
|
if (!object.Equals(BinaryContentHandleArray, other.BinaryContentHandleArray)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (HasServerId) hash ^= ServerId.GetHashCode();
|
|
if (HasClientId) hash ^= ClientId.GetHashCode();
|
|
if (HasBindResult) hash ^= BindResult.GetHashCode();
|
|
if (HasBindResponse) hash ^= BindResponse.GetHashCode();
|
|
if (HasContentHandleArray) hash ^= ContentHandleArray.GetHashCode();
|
|
if (HasServerTime) hash ^= ServerTime.GetHashCode();
|
|
if (HasUseBindlessRpc) hash ^= UseBindlessRpc.GetHashCode();
|
|
if (HasBinaryContentHandleArray) hash ^= BinaryContentHandleArray.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (HasServerId) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(ServerId);
|
|
}
|
|
if (HasClientId) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(ClientId);
|
|
}
|
|
if (HasBindResult) {
|
|
output.WriteRawTag(24);
|
|
output.WriteUInt32(BindResult);
|
|
}
|
|
if (HasBindResponse) {
|
|
output.WriteRawTag(34);
|
|
output.WriteMessage(BindResponse);
|
|
}
|
|
if (HasContentHandleArray) {
|
|
output.WriteRawTag(42);
|
|
output.WriteMessage(ContentHandleArray);
|
|
}
|
|
if (HasServerTime) {
|
|
output.WriteRawTag(48);
|
|
output.WriteUInt64(ServerTime);
|
|
}
|
|
if (HasUseBindlessRpc) {
|
|
output.WriteRawTag(56);
|
|
output.WriteBool(UseBindlessRpc);
|
|
}
|
|
if (HasBinaryContentHandleArray) {
|
|
output.WriteRawTag(66);
|
|
output.WriteMessage(BinaryContentHandleArray);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (HasServerId) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ServerId);
|
|
}
|
|
if (HasClientId) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClientId);
|
|
}
|
|
if (HasBindResult) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(BindResult);
|
|
}
|
|
if (HasBindResponse) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(BindResponse);
|
|
}
|
|
if (HasContentHandleArray) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ContentHandleArray);
|
|
}
|
|
if (HasServerTime) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ServerTime);
|
|
}
|
|
if (HasUseBindlessRpc) {
|
|
size += 1 + 1;
|
|
}
|
|
if (HasBinaryContentHandleArray) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(BinaryContentHandleArray);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(ConnectResponse other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.HasServerId) {
|
|
if (!HasServerId) {
|
|
ServerId = new global::Bgs.Protocol.ProcessId();
|
|
}
|
|
ServerId.MergeFrom(other.ServerId);
|
|
}
|
|
if (other.HasClientId) {
|
|
if (!HasClientId) {
|
|
ClientId = new global::Bgs.Protocol.ProcessId();
|
|
}
|
|
ClientId.MergeFrom(other.ClientId);
|
|
}
|
|
if (other.HasBindResult) {
|
|
BindResult = other.BindResult;
|
|
}
|
|
if (other.HasBindResponse) {
|
|
if (!HasBindResponse) {
|
|
BindResponse = new global::Bgs.Protocol.Connection.V1.BindResponse();
|
|
}
|
|
BindResponse.MergeFrom(other.BindResponse);
|
|
}
|
|
if (other.HasContentHandleArray) {
|
|
if (!HasContentHandleArray) {
|
|
ContentHandleArray = new global::Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles();
|
|
}
|
|
ContentHandleArray.MergeFrom(other.ContentHandleArray);
|
|
}
|
|
if (other.HasServerTime) {
|
|
ServerTime = other.ServerTime;
|
|
}
|
|
if (other.HasUseBindlessRpc) {
|
|
UseBindlessRpc = other.UseBindlessRpc;
|
|
}
|
|
if (other.HasBinaryContentHandleArray) {
|
|
if (!HasBinaryContentHandleArray) {
|
|
BinaryContentHandleArray = new global::Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles();
|
|
}
|
|
BinaryContentHandleArray.MergeFrom(other.BinaryContentHandleArray);
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
if (!HasServerId) {
|
|
ServerId = new global::Bgs.Protocol.ProcessId();
|
|
}
|
|
input.ReadMessage(ServerId);
|
|
break;
|
|
}
|
|
case 18: {
|
|
if (!HasClientId) {
|
|
ClientId = new global::Bgs.Protocol.ProcessId();
|
|
}
|
|
input.ReadMessage(ClientId);
|
|
break;
|
|
}
|
|
case 24: {
|
|
BindResult = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 34: {
|
|
if (!HasBindResponse) {
|
|
BindResponse = new global::Bgs.Protocol.Connection.V1.BindResponse();
|
|
}
|
|
input.ReadMessage(BindResponse);
|
|
break;
|
|
}
|
|
case 42: {
|
|
if (!HasContentHandleArray) {
|
|
ContentHandleArray = new global::Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles();
|
|
}
|
|
input.ReadMessage(ContentHandleArray);
|
|
break;
|
|
}
|
|
case 48: {
|
|
ServerTime = input.ReadUInt64();
|
|
break;
|
|
}
|
|
case 56: {
|
|
UseBindlessRpc = input.ReadBool();
|
|
break;
|
|
}
|
|
case 66: {
|
|
if (!HasBinaryContentHandleArray) {
|
|
BinaryContentHandleArray = new global::Bgs.Protocol.Connection.V1.ConnectionMeteringContentHandles();
|
|
}
|
|
input.ReadMessage(BinaryContentHandleArray);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class BoundService : pb::IMessage<BoundService> {
|
|
private static readonly pb::MessageParser<BoundService> _parser = new pb::MessageParser<BoundService>(() => new BoundService());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
private int _hasBits0;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<BoundService> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[3]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public BoundService() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public BoundService(BoundService other) : this() {
|
|
_hasBits0 = other._hasBits0;
|
|
hash_ = other.hash_;
|
|
id_ = other.id_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public BoundService Clone() {
|
|
return new BoundService(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "hash" field.</summary>
|
|
public const int HashFieldNumber = 1;
|
|
private readonly static uint HashDefaultValue = 0;
|
|
|
|
private uint hash_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public uint Hash {
|
|
get { if ((_hasBits0 & 1) != 0) { return hash_; } else { return HashDefaultValue; } }
|
|
set {
|
|
_hasBits0 |= 1;
|
|
hash_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "hash" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasHash {
|
|
get { return (_hasBits0 & 1) != 0; }
|
|
}
|
|
/// <summary>Clears the value of the "hash" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearHash() {
|
|
_hasBits0 &= ~1;
|
|
}
|
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
public const int IdFieldNumber = 2;
|
|
private readonly static uint IdDefaultValue = 0;
|
|
|
|
private uint id_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public uint Id {
|
|
get { if ((_hasBits0 & 2) != 0) { return id_; } else { return IdDefaultValue; } }
|
|
set {
|
|
_hasBits0 |= 2;
|
|
id_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "id" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasId {
|
|
get { return (_hasBits0 & 2) != 0; }
|
|
}
|
|
/// <summary>Clears the value of the "id" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearId() {
|
|
_hasBits0 &= ~2;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as BoundService);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(BoundService other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Hash != other.Hash) return false;
|
|
if (Id != other.Id) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (HasHash) hash ^= Hash.GetHashCode();
|
|
if (HasId) hash ^= Id.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (HasHash) {
|
|
output.WriteRawTag(13);
|
|
output.WriteFixed32(Hash);
|
|
}
|
|
if (HasId) {
|
|
output.WriteRawTag(16);
|
|
output.WriteUInt32(Id);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (HasHash) {
|
|
size += 1 + 4;
|
|
}
|
|
if (HasId) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(BoundService other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.HasHash) {
|
|
Hash = other.Hash;
|
|
}
|
|
if (other.HasId) {
|
|
Id = other.Id;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 13: {
|
|
Hash = input.ReadFixed32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
Id = input.ReadUInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class BindRequest : pb::IMessage<BindRequest> {
|
|
private static readonly pb::MessageParser<BindRequest> _parser = new pb::MessageParser<BindRequest>(() => new BindRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<BindRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[4]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public BindRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public BindRequest(BindRequest other) : this() {
|
|
deprecatedImportedServiceHash_ = other.deprecatedImportedServiceHash_.Clone();
|
|
deprecatedExportedService_ = other.deprecatedExportedService_.Clone();
|
|
exportedService_ = other.exportedService_.Clone();
|
|
importedService_ = other.importedService_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public BindRequest Clone() {
|
|
return new BindRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "deprecated_imported_service_hash" field.</summary>
|
|
public const int DeprecatedImportedServiceHashFieldNumber = 1;
|
|
private static readonly pb::FieldCodec<uint> _repeated_deprecatedImportedServiceHash_codec
|
|
= pb::FieldCodec.ForFixed32(10);
|
|
private readonly pbc::RepeatedField<uint> deprecatedImportedServiceHash_ = new pbc::RepeatedField<uint>();
|
|
[global::System.ObsoleteAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<uint> DeprecatedImportedServiceHash {
|
|
get { return deprecatedImportedServiceHash_; }
|
|
}
|
|
|
|
/// <summary>Field number for the "deprecated_exported_service" field.</summary>
|
|
public const int DeprecatedExportedServiceFieldNumber = 2;
|
|
private static readonly pb::FieldCodec<global::Bgs.Protocol.Connection.V1.BoundService> _repeated_deprecatedExportedService_codec
|
|
= pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.Connection.V1.BoundService.Parser);
|
|
private readonly pbc::RepeatedField<global::Bgs.Protocol.Connection.V1.BoundService> deprecatedExportedService_ = new pbc::RepeatedField<global::Bgs.Protocol.Connection.V1.BoundService>();
|
|
[global::System.ObsoleteAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<global::Bgs.Protocol.Connection.V1.BoundService> DeprecatedExportedService {
|
|
get { return deprecatedExportedService_; }
|
|
}
|
|
|
|
/// <summary>Field number for the "exported_service" field.</summary>
|
|
public const int ExportedServiceFieldNumber = 3;
|
|
private static readonly pb::FieldCodec<global::Bgs.Protocol.Connection.V1.BoundService> _repeated_exportedService_codec
|
|
= pb::FieldCodec.ForMessage(26, global::Bgs.Protocol.Connection.V1.BoundService.Parser);
|
|
private readonly pbc::RepeatedField<global::Bgs.Protocol.Connection.V1.BoundService> exportedService_ = new pbc::RepeatedField<global::Bgs.Protocol.Connection.V1.BoundService>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<global::Bgs.Protocol.Connection.V1.BoundService> ExportedService {
|
|
get { return exportedService_; }
|
|
}
|
|
|
|
/// <summary>Field number for the "imported_service" field.</summary>
|
|
public const int ImportedServiceFieldNumber = 4;
|
|
private static readonly pb::FieldCodec<global::Bgs.Protocol.Connection.V1.BoundService> _repeated_importedService_codec
|
|
= pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Connection.V1.BoundService.Parser);
|
|
private readonly pbc::RepeatedField<global::Bgs.Protocol.Connection.V1.BoundService> importedService_ = new pbc::RepeatedField<global::Bgs.Protocol.Connection.V1.BoundService>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<global::Bgs.Protocol.Connection.V1.BoundService> ImportedService {
|
|
get { return importedService_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as BindRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(BindRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if(!deprecatedImportedServiceHash_.Equals(other.deprecatedImportedServiceHash_)) return false;
|
|
if(!deprecatedExportedService_.Equals(other.deprecatedExportedService_)) return false;
|
|
if(!exportedService_.Equals(other.exportedService_)) return false;
|
|
if(!importedService_.Equals(other.importedService_)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
hash ^= deprecatedImportedServiceHash_.GetHashCode();
|
|
hash ^= deprecatedExportedService_.GetHashCode();
|
|
hash ^= exportedService_.GetHashCode();
|
|
hash ^= importedService_.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
deprecatedImportedServiceHash_.WriteTo(output, _repeated_deprecatedImportedServiceHash_codec);
|
|
deprecatedExportedService_.WriteTo(output, _repeated_deprecatedExportedService_codec);
|
|
exportedService_.WriteTo(output, _repeated_exportedService_codec);
|
|
importedService_.WriteTo(output, _repeated_importedService_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
size += deprecatedImportedServiceHash_.CalculateSize(_repeated_deprecatedImportedServiceHash_codec);
|
|
size += deprecatedExportedService_.CalculateSize(_repeated_deprecatedExportedService_codec);
|
|
size += exportedService_.CalculateSize(_repeated_exportedService_codec);
|
|
size += importedService_.CalculateSize(_repeated_importedService_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(BindRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
deprecatedImportedServiceHash_.Add(other.deprecatedImportedServiceHash_);
|
|
deprecatedExportedService_.Add(other.deprecatedExportedService_);
|
|
exportedService_.Add(other.exportedService_);
|
|
importedService_.Add(other.importedService_);
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10:
|
|
case 13: {
|
|
deprecatedImportedServiceHash_.AddEntriesFrom(input, _repeated_deprecatedImportedServiceHash_codec);
|
|
break;
|
|
}
|
|
case 18: {
|
|
deprecatedExportedService_.AddEntriesFrom(input, _repeated_deprecatedExportedService_codec);
|
|
break;
|
|
}
|
|
case 26: {
|
|
exportedService_.AddEntriesFrom(input, _repeated_exportedService_codec);
|
|
break;
|
|
}
|
|
case 34: {
|
|
importedService_.AddEntriesFrom(input, _repeated_importedService_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class BindResponse : pb::IMessage<BindResponse> {
|
|
private static readonly pb::MessageParser<BindResponse> _parser = new pb::MessageParser<BindResponse>(() => new BindResponse());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<BindResponse> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[5]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public BindResponse() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public BindResponse(BindResponse other) : this() {
|
|
importedServiceId_ = other.importedServiceId_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public BindResponse Clone() {
|
|
return new BindResponse(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "imported_service_id" field.</summary>
|
|
public const int ImportedServiceIdFieldNumber = 1;
|
|
private static readonly pb::FieldCodec<uint> _repeated_importedServiceId_codec
|
|
= pb::FieldCodec.ForUInt32(10);
|
|
private readonly pbc::RepeatedField<uint> importedServiceId_ = new pbc::RepeatedField<uint>();
|
|
[global::System.ObsoleteAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pbc::RepeatedField<uint> ImportedServiceId {
|
|
get { return importedServiceId_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as BindResponse);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(BindResponse other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if(!importedServiceId_.Equals(other.importedServiceId_)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
hash ^= importedServiceId_.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
importedServiceId_.WriteTo(output, _repeated_importedServiceId_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
size += importedServiceId_.CalculateSize(_repeated_importedServiceId_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(BindResponse other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
importedServiceId_.Add(other.importedServiceId_);
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10:
|
|
case 8: {
|
|
importedServiceId_.AddEntriesFrom(input, _repeated_importedServiceId_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class EchoRequest : pb::IMessage<EchoRequest> {
|
|
private static readonly pb::MessageParser<EchoRequest> _parser = new pb::MessageParser<EchoRequest>(() => new EchoRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
private int _hasBits0;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<EchoRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[6]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public EchoRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public EchoRequest(EchoRequest other) : this() {
|
|
_hasBits0 = other._hasBits0;
|
|
time_ = other.time_;
|
|
networkOnly_ = other.networkOnly_;
|
|
payload_ = other.payload_;
|
|
forward_ = other.HasForward ? other.forward_.Clone() : null;
|
|
forwardClientId_ = other.forwardClientId_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public EchoRequest Clone() {
|
|
return new EchoRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "time" field.</summary>
|
|
public const int TimeFieldNumber = 1;
|
|
private readonly static ulong TimeDefaultValue = 0UL;
|
|
|
|
private ulong time_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ulong Time {
|
|
get { if ((_hasBits0 & 1) != 0) { return time_; } else { return TimeDefaultValue; } }
|
|
set {
|
|
_hasBits0 |= 1;
|
|
time_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "time" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasTime {
|
|
get { return (_hasBits0 & 1) != 0; }
|
|
}
|
|
/// <summary>Clears the value of the "time" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearTime() {
|
|
_hasBits0 &= ~1;
|
|
}
|
|
|
|
/// <summary>Field number for the "network_only" field.</summary>
|
|
public const int NetworkOnlyFieldNumber = 2;
|
|
private readonly static bool NetworkOnlyDefaultValue = false;
|
|
|
|
private bool networkOnly_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool NetworkOnly {
|
|
get { if ((_hasBits0 & 2) != 0) { return networkOnly_; } else { return NetworkOnlyDefaultValue; } }
|
|
set {
|
|
_hasBits0 |= 2;
|
|
networkOnly_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "network_only" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasNetworkOnly {
|
|
get { return (_hasBits0 & 2) != 0; }
|
|
}
|
|
/// <summary>Clears the value of the "network_only" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearNetworkOnly() {
|
|
_hasBits0 &= ~2;
|
|
}
|
|
|
|
/// <summary>Field number for the "payload" field.</summary>
|
|
public const int PayloadFieldNumber = 3;
|
|
private readonly static pb::ByteString PayloadDefaultValue = pb::ByteString.Empty;
|
|
|
|
private pb::ByteString payload_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pb::ByteString Payload {
|
|
get { return payload_ ?? PayloadDefaultValue; }
|
|
set {
|
|
payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "payload" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasPayload {
|
|
get { return payload_ != null; }
|
|
}
|
|
/// <summary>Clears the value of the "payload" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearPayload() {
|
|
payload_ = null;
|
|
}
|
|
|
|
/// <summary>Field number for the "forward" field.</summary>
|
|
public const int ForwardFieldNumber = 4;
|
|
private global::Bgs.Protocol.ProcessId forward_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public global::Bgs.Protocol.ProcessId Forward {
|
|
get { return forward_; }
|
|
set {
|
|
forward_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the forward field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasForward {
|
|
get { return forward_ != null; }
|
|
}
|
|
/// <summary>Clears the value of the forward field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearForward() {
|
|
forward_ = null;
|
|
}
|
|
|
|
/// <summary>Field number for the "forward_client_id" field.</summary>
|
|
public const int ForwardClientIdFieldNumber = 5;
|
|
private readonly static string ForwardClientIdDefaultValue = "";
|
|
|
|
private string forwardClientId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string ForwardClientId {
|
|
get { return forwardClientId_ ?? ForwardClientIdDefaultValue; }
|
|
set {
|
|
forwardClientId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "forward_client_id" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasForwardClientId {
|
|
get { return forwardClientId_ != null; }
|
|
}
|
|
/// <summary>Clears the value of the "forward_client_id" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearForwardClientId() {
|
|
forwardClientId_ = null;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as EchoRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(EchoRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Time != other.Time) return false;
|
|
if (NetworkOnly != other.NetworkOnly) return false;
|
|
if (Payload != other.Payload) return false;
|
|
if (!object.Equals(Forward, other.Forward)) return false;
|
|
if (ForwardClientId != other.ForwardClientId) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (HasTime) hash ^= Time.GetHashCode();
|
|
if (HasNetworkOnly) hash ^= NetworkOnly.GetHashCode();
|
|
if (HasPayload) hash ^= Payload.GetHashCode();
|
|
if (HasForward) hash ^= Forward.GetHashCode();
|
|
if (HasForwardClientId) hash ^= ForwardClientId.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (HasTime) {
|
|
output.WriteRawTag(9);
|
|
output.WriteFixed64(Time);
|
|
}
|
|
if (HasNetworkOnly) {
|
|
output.WriteRawTag(16);
|
|
output.WriteBool(NetworkOnly);
|
|
}
|
|
if (HasPayload) {
|
|
output.WriteRawTag(26);
|
|
output.WriteBytes(Payload);
|
|
}
|
|
if (HasForward) {
|
|
output.WriteRawTag(34);
|
|
output.WriteMessage(Forward);
|
|
}
|
|
if (HasForwardClientId) {
|
|
output.WriteRawTag(42);
|
|
output.WriteString(ForwardClientId);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (HasTime) {
|
|
size += 1 + 8;
|
|
}
|
|
if (HasNetworkOnly) {
|
|
size += 1 + 1;
|
|
}
|
|
if (HasPayload) {
|
|
size += 1 + pb::CodedOutputStream.ComputeBytesSize(Payload);
|
|
}
|
|
if (HasForward) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Forward);
|
|
}
|
|
if (HasForwardClientId) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(ForwardClientId);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(EchoRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.HasTime) {
|
|
Time = other.Time;
|
|
}
|
|
if (other.HasNetworkOnly) {
|
|
NetworkOnly = other.NetworkOnly;
|
|
}
|
|
if (other.HasPayload) {
|
|
Payload = other.Payload;
|
|
}
|
|
if (other.HasForward) {
|
|
if (!HasForward) {
|
|
Forward = new global::Bgs.Protocol.ProcessId();
|
|
}
|
|
Forward.MergeFrom(other.Forward);
|
|
}
|
|
if (other.HasForwardClientId) {
|
|
ForwardClientId = other.ForwardClientId;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 9: {
|
|
Time = input.ReadFixed64();
|
|
break;
|
|
}
|
|
case 16: {
|
|
NetworkOnly = input.ReadBool();
|
|
break;
|
|
}
|
|
case 26: {
|
|
Payload = input.ReadBytes();
|
|
break;
|
|
}
|
|
case 34: {
|
|
if (!HasForward) {
|
|
Forward = new global::Bgs.Protocol.ProcessId();
|
|
}
|
|
input.ReadMessage(Forward);
|
|
break;
|
|
}
|
|
case 42: {
|
|
ForwardClientId = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class EchoResponse : pb::IMessage<EchoResponse> {
|
|
private static readonly pb::MessageParser<EchoResponse> _parser = new pb::MessageParser<EchoResponse>(() => new EchoResponse());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
private int _hasBits0;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<EchoResponse> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[7]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public EchoResponse() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public EchoResponse(EchoResponse other) : this() {
|
|
_hasBits0 = other._hasBits0;
|
|
time_ = other.time_;
|
|
payload_ = other.payload_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public EchoResponse Clone() {
|
|
return new EchoResponse(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "time" field.</summary>
|
|
public const int TimeFieldNumber = 1;
|
|
private readonly static ulong TimeDefaultValue = 0UL;
|
|
|
|
private ulong time_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public ulong Time {
|
|
get { if ((_hasBits0 & 1) != 0) { return time_; } else { return TimeDefaultValue; } }
|
|
set {
|
|
_hasBits0 |= 1;
|
|
time_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "time" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasTime {
|
|
get { return (_hasBits0 & 1) != 0; }
|
|
}
|
|
/// <summary>Clears the value of the "time" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearTime() {
|
|
_hasBits0 &= ~1;
|
|
}
|
|
|
|
/// <summary>Field number for the "payload" field.</summary>
|
|
public const int PayloadFieldNumber = 2;
|
|
private readonly static pb::ByteString PayloadDefaultValue = pb::ByteString.Empty;
|
|
|
|
private pb::ByteString payload_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public pb::ByteString Payload {
|
|
get { return payload_ ?? PayloadDefaultValue; }
|
|
set {
|
|
payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "payload" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasPayload {
|
|
get { return payload_ != null; }
|
|
}
|
|
/// <summary>Clears the value of the "payload" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearPayload() {
|
|
payload_ = null;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as EchoResponse);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(EchoResponse other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Time != other.Time) return false;
|
|
if (Payload != other.Payload) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (HasTime) hash ^= Time.GetHashCode();
|
|
if (HasPayload) hash ^= Payload.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (HasTime) {
|
|
output.WriteRawTag(9);
|
|
output.WriteFixed64(Time);
|
|
}
|
|
if (HasPayload) {
|
|
output.WriteRawTag(18);
|
|
output.WriteBytes(Payload);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (HasTime) {
|
|
size += 1 + 8;
|
|
}
|
|
if (HasPayload) {
|
|
size += 1 + pb::CodedOutputStream.ComputeBytesSize(Payload);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(EchoResponse other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.HasTime) {
|
|
Time = other.Time;
|
|
}
|
|
if (other.HasPayload) {
|
|
Payload = other.Payload;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 9: {
|
|
Time = input.ReadFixed64();
|
|
break;
|
|
}
|
|
case 18: {
|
|
Payload = input.ReadBytes();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class DisconnectRequest : pb::IMessage<DisconnectRequest> {
|
|
private static readonly pb::MessageParser<DisconnectRequest> _parser = new pb::MessageParser<DisconnectRequest>(() => new DisconnectRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
private int _hasBits0;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<DisconnectRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[8]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public DisconnectRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public DisconnectRequest(DisconnectRequest other) : this() {
|
|
_hasBits0 = other._hasBits0;
|
|
errorCode_ = other.errorCode_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public DisconnectRequest Clone() {
|
|
return new DisconnectRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "error_code" field.</summary>
|
|
public const int ErrorCodeFieldNumber = 1;
|
|
private readonly static uint ErrorCodeDefaultValue = 0;
|
|
|
|
private uint errorCode_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public uint ErrorCode {
|
|
get { if ((_hasBits0 & 1) != 0) { return errorCode_; } else { return ErrorCodeDefaultValue; } }
|
|
set {
|
|
_hasBits0 |= 1;
|
|
errorCode_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "error_code" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasErrorCode {
|
|
get { return (_hasBits0 & 1) != 0; }
|
|
}
|
|
/// <summary>Clears the value of the "error_code" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearErrorCode() {
|
|
_hasBits0 &= ~1;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as DisconnectRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(DisconnectRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (ErrorCode != other.ErrorCode) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (HasErrorCode) hash ^= ErrorCode.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (HasErrorCode) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(ErrorCode);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (HasErrorCode) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ErrorCode);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(DisconnectRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.HasErrorCode) {
|
|
ErrorCode = other.ErrorCode;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 8: {
|
|
ErrorCode = input.ReadUInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class DisconnectNotification : pb::IMessage<DisconnectNotification> {
|
|
private static readonly pb::MessageParser<DisconnectNotification> _parser = new pb::MessageParser<DisconnectNotification>(() => new DisconnectNotification());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
private int _hasBits0;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<DisconnectNotification> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[9]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public DisconnectNotification() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public DisconnectNotification(DisconnectNotification other) : this() {
|
|
_hasBits0 = other._hasBits0;
|
|
errorCode_ = other.errorCode_;
|
|
reason_ = other.reason_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public DisconnectNotification Clone() {
|
|
return new DisconnectNotification(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "error_code" field.</summary>
|
|
public const int ErrorCodeFieldNumber = 1;
|
|
private readonly static uint ErrorCodeDefaultValue = 0;
|
|
|
|
private uint errorCode_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public uint ErrorCode {
|
|
get { if ((_hasBits0 & 1) != 0) { return errorCode_; } else { return ErrorCodeDefaultValue; } }
|
|
set {
|
|
_hasBits0 |= 1;
|
|
errorCode_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "error_code" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasErrorCode {
|
|
get { return (_hasBits0 & 1) != 0; }
|
|
}
|
|
/// <summary>Clears the value of the "error_code" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearErrorCode() {
|
|
_hasBits0 &= ~1;
|
|
}
|
|
|
|
/// <summary>Field number for the "reason" field.</summary>
|
|
public const int ReasonFieldNumber = 2;
|
|
private readonly static string ReasonDefaultValue = "";
|
|
|
|
private string reason_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public string Reason {
|
|
get { return reason_ ?? ReasonDefaultValue; }
|
|
set {
|
|
reason_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "reason" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasReason {
|
|
get { return reason_ != null; }
|
|
}
|
|
/// <summary>Clears the value of the "reason" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearReason() {
|
|
reason_ = null;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as DisconnectNotification);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(DisconnectNotification other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (ErrorCode != other.ErrorCode) return false;
|
|
if (Reason != other.Reason) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (HasErrorCode) hash ^= ErrorCode.GetHashCode();
|
|
if (HasReason) hash ^= Reason.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (HasErrorCode) {
|
|
output.WriteRawTag(8);
|
|
output.WriteUInt32(ErrorCode);
|
|
}
|
|
if (HasReason) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Reason);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (HasErrorCode) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ErrorCode);
|
|
}
|
|
if (HasReason) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Reason);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(DisconnectNotification other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.HasErrorCode) {
|
|
ErrorCode = other.ErrorCode;
|
|
}
|
|
if (other.HasReason) {
|
|
Reason = other.Reason;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 8: {
|
|
ErrorCode = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 18: {
|
|
Reason = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
public sealed partial class EncryptRequest : pb::IMessage<EncryptRequest> {
|
|
private static readonly pb::MessageParser<EncryptRequest> _parser = new pb::MessageParser<EncryptRequest>(() => new EncryptRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<EncryptRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[10]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public EncryptRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public EncryptRequest(EncryptRequest other) : this() {
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public EncryptRequest Clone() {
|
|
return new EncryptRequest(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as EncryptRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool Equals(EncryptRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(EncryptRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|