2738 lines
101 KiB
C#
2738 lines
101 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",
|
|
"bnQvcnBjX3R5cGVzLnByb3RvGihiZ3MvbG93L3BiL2NsaWVudC9zZW1hbnRp",
|
|
"Y192ZXJzaW9uLnByb3RvGjdiZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0",
|
|
"ZW5zaW9ucy9maWVsZF9vcHRpb25zLnByb3RvGjliZ3MvbG93L3BiL2NsaWVu",
|
|
"dC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXNzYWdlX29wdGlvbnMucHJvdG8aOGJn",
|
|
"cy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL21ldGhvZF9vcHRp",
|
|
"b25zLnByb3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9u",
|
|
"cy9zZXJ2aWNlX29wdGlvbnMucHJvdG8ilQEKFENsaWVudFNka1ZlcnNpb25J",
|
|
"bmZvEhAKCHNka19uYW1lGAEgASgJEjIKC3Nka192ZXJzaW9uGAIgASgLMh0u",
|
|
"YmdzLnByb3RvY29sLlNlbWFudGljVmVyc2lvbhI3ChBwcm90b2NvbF92ZXJz",
|
|
"aW9uGAMgASgLMh0uYmdzLnByb3RvY29sLlNlbWFudGljVmVyc2lvbiLAAgoO",
|
|
"Q29ubmVjdFJlcXVlc3QSKgoJY2xpZW50X2lkGAEgASgLMhcuYmdzLnByb3Rv",
|
|
"Y29sLlByb2Nlc3NJZBI9CgxiaW5kX3JlcXVlc3QYAiABKAsyJy5iZ3MucHJv",
|
|
"dG9jb2wuY29ubmVjdGlvbi52MS5CaW5kUmVxdWVzdBIeChB1c2VfYmluZGxl",
|
|
"c3NfcnBjGAMgASgIOgR0cnVlElgKDm1ldGVyaW5nX2xldmVsGAQgASgOMiku",
|
|
"YmdzLnByb3RvY29sLmNvbm5lY3Rpb24udjEuTWV0ZXJpbmdMZXZlbDoVTUVU",
|
|
"RVJJTkdfTEVWRUxfTEVHQUNZEkkKD2NsaWVudF9zZGtfaW5mbxgFIAEoCzIw",
|
|
"LmJncy5wcm90b2NvbC5jb25uZWN0aW9uLnYxLkNsaWVudFNka1ZlcnNpb25J",
|
|
"bmZvIlcKIENvbm5lY3Rpb25NZXRlcmluZ0NvbnRlbnRIYW5kbGVzEjMKDmNv",
|
|
"bnRlbnRfaGFuZGxlGAEgAygLMhsuYmdzLnByb3RvY29sLkNvbnRlbnRIYW5k",
|
|
"bGUi3AMKD0Nvbm5lY3RSZXNwb25zZRIqCglzZXJ2ZXJfaWQYASACKAsyFy5i",
|
|
"Z3MucHJvdG9jb2wuUHJvY2Vzc0lkEioKCWNsaWVudF9pZBgCIAEoCzIXLmJn",
|
|
"cy5wcm90b2NvbC5Qcm9jZXNzSWQSEwoLYmluZF9yZXN1bHQYAyABKA0SPwoN",
|
|
"YmluZF9yZXNwb25zZRgEIAEoCzIoLmJncy5wcm90b2NvbC5jb25uZWN0aW9u",
|
|
"LnYxLkJpbmRSZXNwb25zZRJaChRjb250ZW50X2hhbmRsZV9hcnJheRgFIAEo",
|
|
"CzI8LmJncy5wcm90b2NvbC5jb25uZWN0aW9uLnYxLkNvbm5lY3Rpb25NZXRl",
|
|
"cmluZ0NvbnRlbnRIYW5kbGVzEhMKC3NlcnZlcl90aW1lGAYgASgEEh8KEHVz",
|
|
"ZV9iaW5kbGVzc19ycGMYByABKAg6BWZhbHNlEmEKG2JpbmFyeV9jb250ZW50",
|
|
"X2hhbmRsZV9hcnJheRgIIAEoCzI8LmJncy5wcm90b2NvbC5jb25uZWN0aW9u",
|
|
"LnYxLkNvbm5lY3Rpb25NZXRlcmluZ0NvbnRlbnRIYW5kbGVzEgwKBGNpaWQY",
|
|
"CSABKAkSGAoQY29ubmVjdGVkX3JlZ2lvbhgKIAEoDSIoCgxCb3VuZFNlcnZp",
|
|
"Y2USDAoEaGFzaBgBIAIoBxIKCgJpZBgCIAIoDSKYAgoLQmluZFJlcXVlc3QS",
|
|
"LgogZGVwcmVjYXRlZF9pbXBvcnRlZF9zZXJ2aWNlX2hhc2gYASADKAdCBBAB",
|
|
"GAESUQobZGVwcmVjYXRlZF9leHBvcnRlZF9zZXJ2aWNlGAIgAygLMiguYmdz",
|
|
"LnByb3RvY29sLmNvbm5lY3Rpb24udjEuQm91bmRTZXJ2aWNlQgIYARJCChBl",
|
|
"eHBvcnRlZF9zZXJ2aWNlGAMgAygLMiguYmdzLnByb3RvY29sLmNvbm5lY3Rp",
|
|
"b24udjEuQm91bmRTZXJ2aWNlEkIKEGltcG9ydGVkX3NlcnZpY2UYBCADKAsy",
|
|
"KC5iZ3MucHJvdG9jb2wuY29ubmVjdGlvbi52MS5Cb3VuZFNlcnZpY2UiMQoM",
|
|
"QmluZFJlc3BvbnNlEiEKE2ltcG9ydGVkX3NlcnZpY2VfaWQYASADKA1CBBAB",
|
|
"GAEijgEKC0VjaG9SZXF1ZXN0EgwKBHRpbWUYASABKAYSGwoMbmV0d29ya19v",
|
|
"bmx5GAIgASgIOgVmYWxzZRIPCgdwYXlsb2FkGAMgASgMEigKB2ZvcndhcmQY",
|
|
"BCABKAsyFy5iZ3MucHJvdG9jb2wuUHJvY2Vzc0lkEhkKEWZvcndhcmRfY2xp",
|
|
"ZW50X2lkGAUgASgJIi0KDEVjaG9SZXNwb25zZRIMCgR0aW1lGAEgASgGEg8K",
|
|
"B3BheWxvYWQYAiABKAwiJwoRRGlzY29ubmVjdFJlcXVlc3QSEgoKZXJyb3Jf",
|
|
"Y29kZRgBIAIoDSI8ChZEaXNjb25uZWN0Tm90aWZpY2F0aW9uEhIKCmVycm9y",
|
|
"X2NvZGUYASACKA0SDgoGcmVhc29uGAIgASgJIhAKDkVuY3J5cHRSZXF1ZXN0",
|
|
"KkoKDU1ldGVyaW5nTGV2ZWwSGQoVTUVURVJJTkdfTEVWRUxfTEVHQUNZEAAS",
|
|
"HgoaTUVURVJJTkdfTEVWRUxfQ0FURUdPUklaRUQQATKLBgoRQ29ubmVjdGlv",
|
|
"blNlcnZpY2USagoHQ29ubmVjdBIqLmJncy5wcm90b2NvbC5jb25uZWN0aW9u",
|
|
"LnYxLkNvbm5lY3RSZXF1ZXN0GisuYmdzLnByb3RvY29sLmNvbm5lY3Rpb24u",
|
|
"djEuQ29ubmVjdFJlc3BvbnNlIgaC+SsCCAESZwoEQmluZBInLmJncy5wcm90",
|
|
"b2NvbC5jb25uZWN0aW9uLnYxLkJpbmRSZXF1ZXN0GiguYmdzLnByb3RvY29s",
|
|
"LmNvbm5lY3Rpb24udjEuQmluZFJlc3BvbnNlIgyC+SsCCAKC+SsCUAESYQoE",
|
|
"RWNobxInLmJncy5wcm90b2NvbC5jb25uZWN0aW9uLnYxLkVjaG9SZXF1ZXN0",
|
|
"GiguYmdzLnByb3RvY29sLmNvbm5lY3Rpb24udjEuRWNob1Jlc3BvbnNlIgaC",
|
|
"+SsCCAMSaAoPRm9yY2VEaXNjb25uZWN0EjIuYmdzLnByb3RvY29sLmNvbm5l",
|
|
"Y3Rpb24udjEuRGlzY29ubmVjdE5vdGlmaWNhdGlvbhoZLmJncy5wcm90b2Nv",
|
|
"bC5OT19SRVNQT05TRSIGgvkrAggEEkQKCUtlZXBBbGl2ZRIULmJncy5wcm90",
|
|
"b2NvbC5Ob0RhdGEaGS5iZ3MucHJvdG9jb2wuTk9fUkVTUE9OU0UiBoL5KwII",
|
|
"BRJZCgdFbmNyeXB0EiouYmdzLnByb3RvY29sLmNvbm5lY3Rpb24udjEuRW5j",
|
|
"cnlwdFJlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9EYXRhIgyC+SsCCAaC+SsC",
|
|
"UAESZQoRUmVxdWVzdERpc2Nvbm5lY3QSLS5iZ3MucHJvdG9jb2wuY29ubmVj",
|
|
"dGlvbi52MS5EaXNjb25uZWN0UmVxdWVzdBoZLmJncy5wcm90b2NvbC5OT19S",
|
|
"RVNQT05TRSIGgvkrAggHGkyC+SssCipibmV0LnByb3RvY29sLmNvbm5lY3Rp",
|
|
"b24uQ29ubmVjdGlvblNlcnZpY2WC+SsMKgpjb25uZWN0aW9uivkrAggBivkr",
|
|
"AhABQjoKGmJncy5wcm90b2NvbC5jb25uZWN0aW9uLnYxQhZDb25uZWN0aW9u",
|
|
"U2VydmljZVByb3RvgAEAiAEB"));
|
|
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", "ConnectedRegion" }, 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<ClientSdkVersionInfo> {
|
|
private static readonly pb::MessageParser<ClientSdkVersionInfo> _parser = new pb::MessageParser<ClientSdkVersionInfo>(() => new ClientSdkVersionInfo());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public static pb::MessageParser<ClientSdkVersionInfo> 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);
|
|
}
|
|
|
|
/// <summary>Field number for the "sdk_name" field.</summary>
|
|
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");
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "sdk_name" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasSdkName {
|
|
get { return sdkName_ != null; }
|
|
}
|
|
/// <summary>Clears the value of the "sdk_name" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearSdkName() {
|
|
sdkName_ = null;
|
|
}
|
|
|
|
/// <summary>Field number for the "sdk_version" field.</summary>
|
|
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;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the sdk_version field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasSdkVersion {
|
|
get { return sdkVersion_ != null; }
|
|
}
|
|
/// <summary>Clears the value of the sdk_version field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearSdkVersion() {
|
|
sdkVersion_ = null;
|
|
}
|
|
|
|
/// <summary>Field number for the "protocol_version" field.</summary>
|
|
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;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the protocol_version field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasProtocolVersion {
|
|
get { return protocolVersion_ != null; }
|
|
}
|
|
/// <summary>Clears the value of the protocol_version field</summary>
|
|
[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<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[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);
|
|
}
|
|
|
|
/// <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;
|
|
}
|
|
|
|
/// <summary>Field number for the "metering_level" field.</summary>
|
|
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;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "metering_level" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasMeteringLevel {
|
|
get { return (_hasBits0 & 2) != 0; }
|
|
}
|
|
/// <summary>Clears the value of the "metering_level" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearMeteringLevel() {
|
|
_hasBits0 &= ~2;
|
|
}
|
|
|
|
/// <summary>Field number for the "client_sdk_info" field.</summary>
|
|
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;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the client_sdk_info field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasClientSdkInfo {
|
|
get { return clientSdkInfo_ != null; }
|
|
}
|
|
/// <summary>Clears the value of the client_sdk_info field</summary>
|
|
[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<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[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);
|
|
}
|
|
|
|
/// <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[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_;
|
|
connectedRegion_ = other.connectedRegion_;
|
|
_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;
|
|
}
|
|
|
|
/// <summary>Field number for the "ciid" field.</summary>
|
|
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");
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "ciid" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasCiid {
|
|
get { return ciid_ != null; }
|
|
}
|
|
/// <summary>Clears the value of the "ciid" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearCiid() {
|
|
ciid_ = null;
|
|
}
|
|
|
|
/// <summary>Field number for the "connected_region" field.</summary>
|
|
public const int ConnectedRegionFieldNumber = 10;
|
|
private readonly static uint ConnectedRegionDefaultValue = 0;
|
|
|
|
private uint connectedRegion_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public uint ConnectedRegion {
|
|
get { if ((_hasBits0 & 8) != 0) { return connectedRegion_; } else { return ConnectedRegionDefaultValue; } }
|
|
set {
|
|
_hasBits0 |= 8;
|
|
connectedRegion_ = value;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "connected_region" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public bool HasConnectedRegion {
|
|
get { return (_hasBits0 & 8) != 0; }
|
|
}
|
|
/// <summary>Clears the value of the "connected_region" field</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void ClearConnectedRegion() {
|
|
_hasBits0 &= ~8;
|
|
}
|
|
|
|
[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;
|
|
if (ConnectedRegion != other.ConnectedRegion) 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 (HasConnectedRegion) hash ^= ConnectedRegion.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 (HasConnectedRegion) {
|
|
output.WriteRawTag(80);
|
|
output.WriteUInt32(ConnectedRegion);
|
|
}
|
|
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 (HasConnectedRegion) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ConnectedRegion);
|
|
}
|
|
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;
|
|
}
|
|
if (other.HasConnectedRegion) {
|
|
ConnectedRegion = other.ConnectedRegion;
|
|
}
|
|
_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;
|
|
}
|
|
case 80: {
|
|
ConnectedRegion = input.ReadUInt32();
|
|
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[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);
|
|
}
|
|
|
|
/// <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[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);
|
|
}
|
|
|
|
/// <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[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);
|
|
}
|
|
|
|
/// <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[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);
|
|
}
|
|
|
|
/// <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[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);
|
|
}
|
|
|
|
/// <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[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);
|
|
}
|
|
|
|
/// <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[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);
|
|
}
|
|
|
|
/// <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[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
|