// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: bgs/low/pb/client/connection_service.proto // #pragma warning disable 1591, 0612, 3021, 8981 #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 { /// Holder for reflection information generated from bgs/low/pb/client/connection_service.proto public static partial class ConnectionServiceReflection { #region Descriptor /// File descriptor for bgs/low/pb/client/connection_service.proto 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", "bnQvcnBjX3R5cGVzLnByb3RvGihiZ3MvbG93L3BiL2NsaWVudC9zZW1hbnRp", "Y192ZXJzaW9uLnByb3RvGjdiZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0", "ZW5zaW9ucy9maWVsZF9vcHRpb25zLnByb3RvGjliZ3MvbG93L3BiL2NsaWVu", "dC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXNzYWdlX29wdGlvbnMucHJvdG8aOGJn", "cy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL21ldGhvZF9vcHRp", "b25zLnByb3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9u", "cy9zZXJ2aWNlX29wdGlvbnMucHJvdG8ilQEKFENsaWVudFNka1ZlcnNpb25J", "bmZvEhAKCHNka19uYW1lGAEgASgJEjIKC3Nka192ZXJzaW9uGAIgASgLMh0u", "YmdzLnByb3RvY29sLlNlbWFudGljVmVyc2lvbhI3ChBwcm90b2NvbF92ZXJz", "aW9uGAMgASgLMh0uYmdzLnByb3RvY29sLlNlbWFudGljVmVyc2lvbiLAAgoO", "Q29ubmVjdFJlcXVlc3QSKgoJY2xpZW50X2lkGAEgASgLMhcuYmdzLnByb3Rv", "Y29sLlByb2Nlc3NJZBI9CgxiaW5kX3JlcXVlc3QYAiABKAsyJy5iZ3MucHJv", "dG9jb2wuY29ubmVjdGlvbi52MS5CaW5kUmVxdWVzdBIeChB1c2VfYmluZGxl", "c3NfcnBjGAMgASgIOgR0cnVlElgKDm1ldGVyaW5nX2xldmVsGAQgASgOMiku", "YmdzLnByb3RvY29sLmNvbm5lY3Rpb24udjEuTWV0ZXJpbmdMZXZlbDoVTUVU", "RVJJTkdfTEVWRUxfTEVHQUNZEkkKD2NsaWVudF9zZGtfaW5mbxgFIAEoCzIw", "LmJncy5wcm90b2NvbC5jb25uZWN0aW9uLnYxLkNsaWVudFNka1ZlcnNpb25J", "bmZvIlcKIENvbm5lY3Rpb25NZXRlcmluZ0NvbnRlbnRIYW5kbGVzEjMKDmNv", "bnRlbnRfaGFuZGxlGAEgAygLMhsuYmdzLnByb3RvY29sLkNvbnRlbnRIYW5k", "bGUiwgMKD0Nvbm5lY3RSZXNwb25zZRIqCglzZXJ2ZXJfaWQYASACKAsyFy5i", "Z3MucHJvdG9jb2wuUHJvY2Vzc0lkEioKCWNsaWVudF9pZBgCIAEoCzIXLmJn", "cy5wcm90b2NvbC5Qcm9jZXNzSWQSEwoLYmluZF9yZXN1bHQYAyABKA0SPwoN", "YmluZF9yZXNwb25zZRgEIAEoCzIoLmJncy5wcm90b2NvbC5jb25uZWN0aW9u", "LnYxLkJpbmRSZXNwb25zZRJaChRjb250ZW50X2hhbmRsZV9hcnJheRgFIAEo", "CzI8LmJncy5wcm90b2NvbC5jb25uZWN0aW9uLnYxLkNvbm5lY3Rpb25NZXRl", "cmluZ0NvbnRlbnRIYW5kbGVzEhMKC3NlcnZlcl90aW1lGAYgASgEEh8KEHVz", "ZV9iaW5kbGVzc19ycGMYByABKAg6BWZhbHNlEmEKG2JpbmFyeV9jb250ZW50", "X2hhbmRsZV9hcnJheRgIIAEoCzI8LmJncy5wcm90b2NvbC5jb25uZWN0aW9u", "LnYxLkNvbm5lY3Rpb25NZXRlcmluZ0NvbnRlbnRIYW5kbGVzEgwKBGNpaWQY", "CSABKAkiKAoMQm91bmRTZXJ2aWNlEgwKBGhhc2gYASACKAcSCgoCaWQYAiAC", "KA0imAIKC0JpbmRSZXF1ZXN0Ei4KIGRlcHJlY2F0ZWRfaW1wb3J0ZWRfc2Vy", "dmljZV9oYXNoGAEgAygHQgQQARgBElEKG2RlcHJlY2F0ZWRfZXhwb3J0ZWRf", "c2VydmljZRgCIAMoCzIoLmJncy5wcm90b2NvbC5jb25uZWN0aW9uLnYxLkJv", "dW5kU2VydmljZUICGAESQgoQZXhwb3J0ZWRfc2VydmljZRgDIAMoCzIoLmJn", "cy5wcm90b2NvbC5jb25uZWN0aW9uLnYxLkJvdW5kU2VydmljZRJCChBpbXBv", "cnRlZF9zZXJ2aWNlGAQgAygLMiguYmdzLnByb3RvY29sLmNvbm5lY3Rpb24u", "djEuQm91bmRTZXJ2aWNlIjEKDEJpbmRSZXNwb25zZRIhChNpbXBvcnRlZF9z", "ZXJ2aWNlX2lkGAEgAygNQgQQARgBIo4BCgtFY2hvUmVxdWVzdBIMCgR0aW1l", "GAEgASgGEhsKDG5ldHdvcmtfb25seRgCIAEoCDoFZmFsc2USDwoHcGF5bG9h", "ZBgDIAEoDBIoCgdmb3J3YXJkGAQgASgLMhcuYmdzLnByb3RvY29sLlByb2Nl", "c3NJZBIZChFmb3J3YXJkX2NsaWVudF9pZBgFIAEoCSItCgxFY2hvUmVzcG9u", "c2USDAoEdGltZRgBIAEoBhIPCgdwYXlsb2FkGAIgASgMIicKEURpc2Nvbm5l", "Y3RSZXF1ZXN0EhIKCmVycm9yX2NvZGUYASACKA0iPAoWRGlzY29ubmVjdE5v", "dGlmaWNhdGlvbhISCgplcnJvcl9jb2RlGAEgAigNEg4KBnJlYXNvbhgCIAEo", "CSIQCg5FbmNyeXB0UmVxdWVzdCpKCg1NZXRlcmluZ0xldmVsEhkKFU1FVEVS", "SU5HX0xFVkVMX0xFR0FDWRAAEh4KGk1FVEVSSU5HX0xFVkVMX0NBVEVHT1JJ", "WkVEEAEyiwYKEUNvbm5lY3Rpb25TZXJ2aWNlEmoKB0Nvbm5lY3QSKi5iZ3Mu", "cHJvdG9jb2wuY29ubmVjdGlvbi52MS5Db25uZWN0UmVxdWVzdBorLmJncy5w", "cm90b2NvbC5jb25uZWN0aW9uLnYxLkNvbm5lY3RSZXNwb25zZSIGgvkrAggB", "EmcKBEJpbmQSJy5iZ3MucHJvdG9jb2wuY29ubmVjdGlvbi52MS5CaW5kUmVx", "dWVzdBooLmJncy5wcm90b2NvbC5jb25uZWN0aW9uLnYxLkJpbmRSZXNwb25z", "ZSIMgvkrAggCgvkrAlABEmEKBEVjaG8SJy5iZ3MucHJvdG9jb2wuY29ubmVj", "dGlvbi52MS5FY2hvUmVxdWVzdBooLmJncy5wcm90b2NvbC5jb25uZWN0aW9u", "LnYxLkVjaG9SZXNwb25zZSIGgvkrAggDEmgKD0ZvcmNlRGlzY29ubmVjdBIy", "LmJncy5wcm90b2NvbC5jb25uZWN0aW9uLnYxLkRpc2Nvbm5lY3ROb3RpZmlj", "YXRpb24aGS5iZ3MucHJvdG9jb2wuTk9fUkVTUE9OU0UiBoL5KwIIBBJECglL", "ZWVwQWxpdmUSFC5iZ3MucHJvdG9jb2wuTm9EYXRhGhkuYmdzLnByb3RvY29s", "Lk5PX1JFU1BPTlNFIgaC+SsCCAUSWQoHRW5jcnlwdBIqLmJncy5wcm90b2Nv", "bC5jb25uZWN0aW9uLnYxLkVuY3J5cHRSZXF1ZXN0GhQuYmdzLnByb3RvY29s", "Lk5vRGF0YSIMgvkrAggGgvkrAlABEmUKEVJlcXVlc3REaXNjb25uZWN0Ei0u", "YmdzLnByb3RvY29sLmNvbm5lY3Rpb24udjEuRGlzY29ubmVjdFJlcXVlc3Qa", "GS5iZ3MucHJvdG9jb2wuTk9fUkVTUE9OU0UiBoL5KwIIBxpMgvkrLAoqYm5l", "dC5wcm90b2NvbC5jb25uZWN0aW9uLkNvbm5lY3Rpb25TZXJ2aWNlgvkrDCoK", "Y29ubmVjdGlvbor5KwIIAYr5KwIQAUI6ChpiZ3MucHJvdG9jb2wuY29ubmVj", "dGlvbi52MUIWQ29ubmVjdGlvblNlcnZpY2VQcm90b4ABAIgBAQ==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Bgs.Protocol.ContentHandleTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.SemanticVersionReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Bgs.Protocol.Connection.V1.MeteringLevel), }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.ClientSdkVersionInfo), global::Bgs.Protocol.Connection.V1.ClientSdkVersionInfo.Parser, new[]{ "SdkName", "SdkVersion", "ProtocolVersion" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Connection.V1.ConnectRequest), global::Bgs.Protocol.Connection.V1.ConnectRequest.Parser, new[]{ "ClientId", "BindRequest", "UseBindlessRpc", "MeteringLevel", "ClientSdkInfo" }, 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", "Ciid" }, 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 Enums public enum MeteringLevel { [pbr::OriginalName("METERING_LEVEL_LEGACY")] Legacy = 0, [pbr::OriginalName("METERING_LEVEL_CATEGORIZED")] Categorized = 1, } #endregion #region Messages public sealed partial class ClientSdkVersionInfo : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClientSdkVersionInfo()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser 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 ClientSdkVersionInfo() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ClientSdkVersionInfo(ClientSdkVersionInfo other) : this() { sdkName_ = other.sdkName_; sdkVersion_ = other.HasSdkVersion ? other.sdkVersion_.Clone() : null; protocolVersion_ = other.HasProtocolVersion ? other.protocolVersion_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ClientSdkVersionInfo Clone() { return new ClientSdkVersionInfo(this); } /// Field number for the "sdk_name" field. public const int SdkNameFieldNumber = 1; private readonly static string SdkNameDefaultValue = ""; private string sdkName_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string SdkName { get { return sdkName_ ?? SdkNameDefaultValue; } set { sdkName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Gets whether the "sdk_name" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasSdkName { get { return sdkName_ != null; } } /// Clears the value of the "sdk_name" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearSdkName() { sdkName_ = null; } /// Field number for the "sdk_version" field. public const int SdkVersionFieldNumber = 2; private global::Bgs.Protocol.SemanticVersion sdkVersion_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.SemanticVersion SdkVersion { get { return sdkVersion_; } set { sdkVersion_ = value; } } /// Gets whether the sdk_version field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasSdkVersion { get { return sdkVersion_ != null; } } /// Clears the value of the sdk_version field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearSdkVersion() { sdkVersion_ = null; } /// Field number for the "protocol_version" field. public const int ProtocolVersionFieldNumber = 3; private global::Bgs.Protocol.SemanticVersion protocolVersion_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.SemanticVersion ProtocolVersion { get { return protocolVersion_; } set { protocolVersion_ = value; } } /// Gets whether the protocol_version field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasProtocolVersion { get { return protocolVersion_ != null; } } /// Clears the value of the protocol_version field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearProtocolVersion() { protocolVersion_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ClientSdkVersionInfo); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ClientSdkVersionInfo other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (SdkName != other.SdkName) return false; if (!object.Equals(SdkVersion, other.SdkVersion)) return false; if (!object.Equals(ProtocolVersion, other.ProtocolVersion)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HasSdkName) hash ^= SdkName.GetHashCode(); if (HasSdkVersion) hash ^= SdkVersion.GetHashCode(); if (HasProtocolVersion) hash ^= ProtocolVersion.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 (HasSdkName) { output.WriteRawTag(10); output.WriteString(SdkName); } if (HasSdkVersion) { output.WriteRawTag(18); output.WriteMessage(SdkVersion); } if (HasProtocolVersion) { output.WriteRawTag(26); output.WriteMessage(ProtocolVersion); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HasSdkName) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SdkName); } if (HasSdkVersion) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SdkVersion); } if (HasProtocolVersion) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProtocolVersion); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ClientSdkVersionInfo other) { if (other == null) { return; } if (other.HasSdkName) { SdkName = other.SdkName; } if (other.HasSdkVersion) { if (!HasSdkVersion) { SdkVersion = new global::Bgs.Protocol.SemanticVersion(); } SdkVersion.MergeFrom(other.SdkVersion); } if (other.HasProtocolVersion) { if (!HasProtocolVersion) { ProtocolVersion = new global::Bgs.Protocol.SemanticVersion(); } ProtocolVersion.MergeFrom(other.ProtocolVersion); } _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: { SdkName = input.ReadString(); break; } case 18: { if (!HasSdkVersion) { SdkVersion = new global::Bgs.Protocol.SemanticVersion(); } input.ReadMessage(SdkVersion); break; } case 26: { if (!HasProtocolVersion) { ProtocolVersion = new global::Bgs.Protocol.SemanticVersion(); } input.ReadMessage(ProtocolVersion); break; } } } } } public sealed partial class ConnectRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnectRequest()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser 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 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_; meteringLevel_ = other.meteringLevel_; clientSdkInfo_ = other.HasClientSdkInfo ? other.clientSdkInfo_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ConnectRequest Clone() { return new ConnectRequest(this); } /// Field number for the "client_id" field. 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; } } /// Gets whether the client_id field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasClientId { get { return clientId_ != null; } } /// Clears the value of the client_id field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearClientId() { clientId_ = null; } /// Field number for the "bind_request" field. 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; } } /// Gets whether the bind_request field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasBindRequest { get { return bindRequest_ != null; } } /// Clears the value of the bind_request field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearBindRequest() { bindRequest_ = null; } /// Field number for the "use_bindless_rpc" field. 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; } } /// Gets whether the "use_bindless_rpc" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasUseBindlessRpc { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "use_bindless_rpc" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearUseBindlessRpc() { _hasBits0 &= ~1; } /// Field number for the "metering_level" field. public const int MeteringLevelFieldNumber = 4; private readonly static global::Bgs.Protocol.Connection.V1.MeteringLevel MeteringLevelDefaultValue = global::Bgs.Protocol.Connection.V1.MeteringLevel.Legacy; private global::Bgs.Protocol.Connection.V1.MeteringLevel meteringLevel_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.Connection.V1.MeteringLevel MeteringLevel { get { if ((_hasBits0 & 2) != 0) { return meteringLevel_; } else { return MeteringLevelDefaultValue; } } set { _hasBits0 |= 2; meteringLevel_ = value; } } /// Gets whether the "metering_level" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasMeteringLevel { get { return (_hasBits0 & 2) != 0; } } /// Clears the value of the "metering_level" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearMeteringLevel() { _hasBits0 &= ~2; } /// Field number for the "client_sdk_info" field. public const int ClientSdkInfoFieldNumber = 5; private global::Bgs.Protocol.Connection.V1.ClientSdkVersionInfo clientSdkInfo_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.Connection.V1.ClientSdkVersionInfo ClientSdkInfo { get { return clientSdkInfo_; } set { clientSdkInfo_ = value; } } /// Gets whether the client_sdk_info field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasClientSdkInfo { get { return clientSdkInfo_ != null; } } /// Clears the value of the client_sdk_info field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearClientSdkInfo() { clientSdkInfo_ = null; } [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; if (MeteringLevel != other.MeteringLevel) return false; if (!object.Equals(ClientSdkInfo, other.ClientSdkInfo)) 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 (HasMeteringLevel) hash ^= MeteringLevel.GetHashCode(); if (HasClientSdkInfo) hash ^= ClientSdkInfo.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 (HasMeteringLevel) { output.WriteRawTag(32); output.WriteEnum((int) MeteringLevel); } if (HasClientSdkInfo) { output.WriteRawTag(42); output.WriteMessage(ClientSdkInfo); } 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 (HasMeteringLevel) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MeteringLevel); } if (HasClientSdkInfo) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClientSdkInfo); } 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; } if (other.HasMeteringLevel) { MeteringLevel = other.MeteringLevel; } if (other.HasClientSdkInfo) { if (!HasClientSdkInfo) { ClientSdkInfo = new global::Bgs.Protocol.Connection.V1.ClientSdkVersionInfo(); } ClientSdkInfo.MergeFrom(other.ClientSdkInfo); } _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; } case 32: { MeteringLevel = (global::Bgs.Protocol.Connection.V1.MeteringLevel) input.ReadEnum(); break; } case 42: { if (!HasClientSdkInfo) { ClientSdkInfo = new global::Bgs.Protocol.Connection.V1.ClientSdkVersionInfo(); } input.ReadMessage(ClientSdkInfo); break; } } } } } public sealed partial class ConnectionMeteringContentHandles : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnectionMeteringContentHandles()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser 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 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); } /// Field number for the "content_handle" field. public const int ContentHandleFieldNumber = 1; private static readonly pb::FieldCodec _repeated_contentHandle_codec = pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.ContentHandle.Parser); private readonly pbc::RepeatedField contentHandle_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField 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 { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnectResponse()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser 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 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; ciid_ = other.ciid_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ConnectResponse Clone() { return new ConnectResponse(this); } /// Field number for the "server_id" field. 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; } } /// Gets whether the server_id field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasServerId { get { return serverId_ != null; } } /// Clears the value of the server_id field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearServerId() { serverId_ = null; } /// Field number for the "client_id" field. 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; } } /// Gets whether the client_id field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasClientId { get { return clientId_ != null; } } /// Clears the value of the client_id field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearClientId() { clientId_ = null; } /// Field number for the "bind_result" field. 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; } } /// Gets whether the "bind_result" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasBindResult { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "bind_result" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearBindResult() { _hasBits0 &= ~1; } /// Field number for the "bind_response" field. 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; } } /// Gets whether the bind_response field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasBindResponse { get { return bindResponse_ != null; } } /// Clears the value of the bind_response field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearBindResponse() { bindResponse_ = null; } /// Field number for the "content_handle_array" field. 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; } } /// Gets whether the content_handle_array field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasContentHandleArray { get { return contentHandleArray_ != null; } } /// Clears the value of the content_handle_array field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearContentHandleArray() { contentHandleArray_ = null; } /// Field number for the "server_time" field. 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; } } /// Gets whether the "server_time" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasServerTime { get { return (_hasBits0 & 2) != 0; } } /// Clears the value of the "server_time" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearServerTime() { _hasBits0 &= ~2; } /// Field number for the "use_bindless_rpc" field. 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; } } /// Gets whether the "use_bindless_rpc" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasUseBindlessRpc { get { return (_hasBits0 & 4) != 0; } } /// Clears the value of the "use_bindless_rpc" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearUseBindlessRpc() { _hasBits0 &= ~4; } /// Field number for the "binary_content_handle_array" field. 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; } } /// Gets whether the binary_content_handle_array field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasBinaryContentHandleArray { get { return binaryContentHandleArray_ != null; } } /// Clears the value of the binary_content_handle_array field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearBinaryContentHandleArray() { binaryContentHandleArray_ = null; } /// Field number for the "ciid" field. public const int CiidFieldNumber = 9; private readonly static string CiidDefaultValue = ""; private string ciid_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Ciid { get { return ciid_ ?? CiidDefaultValue; } set { ciid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Gets whether the "ciid" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasCiid { get { return ciid_ != null; } } /// Clears the value of the "ciid" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearCiid() { ciid_ = 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; if (Ciid != other.Ciid) 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 (HasCiid) hash ^= Ciid.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 (HasCiid) { output.WriteRawTag(74); output.WriteString(Ciid); } 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 (HasCiid) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Ciid); } 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); } if (other.HasCiid) { Ciid = other.Ciid; } _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; } case 74: { Ciid = input.ReadString(); break; } } } } } public sealed partial class BoundService : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BoundService()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser 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 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); } /// Field number for the "hash" field. 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; } } /// Gets whether the "hash" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasHash { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "hash" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearHash() { _hasBits0 &= ~1; } /// Field number for the "id" field. 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; } } /// Gets whether the "id" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasId { get { return (_hasBits0 & 2) != 0; } } /// Clears the value of the "id" field [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 { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BindRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser 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 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); } /// Field number for the "deprecated_imported_service_hash" field. public const int DeprecatedImportedServiceHashFieldNumber = 1; private static readonly pb::FieldCodec _repeated_deprecatedImportedServiceHash_codec = pb::FieldCodec.ForFixed32(10); private readonly pbc::RepeatedField deprecatedImportedServiceHash_ = new pbc::RepeatedField(); [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField DeprecatedImportedServiceHash { get { return deprecatedImportedServiceHash_; } } /// Field number for the "deprecated_exported_service" field. public const int DeprecatedExportedServiceFieldNumber = 2; private static readonly pb::FieldCodec _repeated_deprecatedExportedService_codec = pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.Connection.V1.BoundService.Parser); private readonly pbc::RepeatedField deprecatedExportedService_ = new pbc::RepeatedField(); [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField DeprecatedExportedService { get { return deprecatedExportedService_; } } /// Field number for the "exported_service" field. public const int ExportedServiceFieldNumber = 3; private static readonly pb::FieldCodec _repeated_exportedService_codec = pb::FieldCodec.ForMessage(26, global::Bgs.Protocol.Connection.V1.BoundService.Parser); private readonly pbc::RepeatedField exportedService_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField ExportedService { get { return exportedService_; } } /// Field number for the "imported_service" field. public const int ImportedServiceFieldNumber = 4; private static readonly pb::FieldCodec _repeated_importedService_codec = pb::FieldCodec.ForMessage(34, global::Bgs.Protocol.Connection.V1.BoundService.Parser); private readonly pbc::RepeatedField importedService_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField 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 { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BindResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser 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 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); } /// Field number for the "imported_service_id" field. public const int ImportedServiceIdFieldNumber = 1; private static readonly pb::FieldCodec _repeated_importedServiceId_codec = pb::FieldCodec.ForUInt32(10); private readonly pbc::RepeatedField importedServiceId_ = new pbc::RepeatedField(); [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField 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 { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EchoRequest()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser 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 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); } /// Field number for the "time" field. 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; } } /// Gets whether the "time" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasTime { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "time" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearTime() { _hasBits0 &= ~1; } /// Field number for the "network_only" field. 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; } } /// Gets whether the "network_only" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasNetworkOnly { get { return (_hasBits0 & 2) != 0; } } /// Clears the value of the "network_only" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearNetworkOnly() { _hasBits0 &= ~2; } /// Field number for the "payload" field. 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"); } } /// Gets whether the "payload" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasPayload { get { return payload_ != null; } } /// Clears the value of the "payload" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearPayload() { payload_ = null; } /// Field number for the "forward" field. 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; } } /// Gets whether the forward field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasForward { get { return forward_ != null; } } /// Clears the value of the forward field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearForward() { forward_ = null; } /// Field number for the "forward_client_id" field. 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"); } } /// Gets whether the "forward_client_id" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasForwardClientId { get { return forwardClientId_ != null; } } /// Clears the value of the "forward_client_id" field [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 { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EchoResponse()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser 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 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); } /// Field number for the "time" field. 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; } } /// Gets whether the "time" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasTime { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "time" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearTime() { _hasBits0 &= ~1; } /// Field number for the "payload" field. 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"); } } /// Gets whether the "payload" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasPayload { get { return payload_ != null; } } /// Clears the value of the "payload" field [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 { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisconnectRequest()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser 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 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); } /// Field number for the "error_code" field. 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; } } /// Gets whether the "error_code" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasErrorCode { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "error_code" field [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 { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DisconnectNotification()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser 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 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); } /// Field number for the "error_code" field. 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; } } /// Gets whether the "error_code" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasErrorCode { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "error_code" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearErrorCode() { _hasBits0 &= ~1; } /// Field number for the "reason" field. 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"); } } /// Gets whether the "reason" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasReason { get { return reason_ != null; } } /// Clears the value of the "reason" field [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 { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EncryptRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Bgs.Protocol.Connection.V1.ConnectionServiceReflection.Descriptor.MessageTypes[11]; } } [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