// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: bgs/low/pb/client/global_extensions/field_options.proto // #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 { /// Holder for reflection information generated from bgs/low/pb/client/global_extensions/field_options.proto public static partial class FieldOptionsReflection { #region Descriptor /// File descriptor for bgs/low/pb/client/global_extensions/field_options.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static FieldOptionsReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjdiZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9maWVsZF9v", "cHRpb25zLnByb3RvEgxiZ3MucHJvdG9jb2waIGdvb2dsZS9wcm90b2J1Zi9k", "ZXNjcmlwdG9yLnByb3RvGi9iZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0", "ZW5zaW9ucy9yYW5nZS5wcm90byKaAQoPQkdTRmllbGRPcHRpb25zEiwKA2xv", "ZxgBIAEoDjIXLmJncy5wcm90b2NvbC5Mb2dPcHRpb246BkhJRERFThIRCglz", "aGFyZF9rZXkYAiABKAgSEgoKZmFub3V0X2tleRgDIAEoCBIbChNjbGllbnRf", "aW5zdGFuY2Vfa2V5GAQgASgIEhUKDXJlYWxpemVkX2VudW0YBSABKAki4QMK", "EEZpZWxkUmVzdHJpY3Rpb24SNgoGc2lnbmVkGAEgASgLMiQuYmdzLnByb3Rv", "Y29sLlNpZ25lZEZpZWxkUmVzdHJpY3Rpb25IABI6Cgh1bnNpZ25lZBgCIAEo", "CzImLmJncy5wcm90b2NvbC5VbnNpZ25lZEZpZWxkUmVzdHJpY3Rpb25IABI0", "CgVmbG9hdBgDIAEoCzIjLmJncy5wcm90b2NvbC5GbG9hdEZpZWxkUmVzdHJp", "Y3Rpb25IABI2CgZzdHJpbmcYBCABKAsyJC5iZ3MucHJvdG9jb2wuU3RyaW5n", "RmllbGRSZXN0cmljdGlvbkgAEjoKCHJlcGVhdGVkGAUgASgLMiYuYmdzLnBy", "b3RvY29sLlJlcGVhdGVkRmllbGRSZXN0cmljdGlvbkgAEjgKB21lc3NhZ2UY", "BiABKAsyJS5iZ3MucHJvdG9jb2wuTWVzc2FnZUZpZWxkUmVzdHJpY3Rpb25I", "ABI2CgllbnRpdHlfaWQYByABKAsyIS5iZ3MucHJvdG9jb2wuRW50aXR5SWRS", "ZXN0cmljdGlvbkgAEjUKBWJ5dGVzGAggASgLMiQuYmdzLnByb3RvY29sLlN0", "cmluZ0ZpZWxkUmVzdHJpY3Rpb25IAEIGCgR0eXBlIrEDChhSZXBlYXRlZEZp", "ZWxkUmVzdHJpY3Rpb24SLAoEc2l6ZRgBIAEoCzIeLmJncy5wcm90b2NvbC5V", "bnNpZ25lZEludFJhbmdlEg4KBnVuaXF1ZRgCIAEoCBI2CgZzaWduZWQYAyAB", "KAsyJC5iZ3MucHJvdG9jb2wuU2lnbmVkRmllbGRSZXN0cmljdGlvbkgAEjoK", "CHVuc2lnbmVkGAQgASgLMiYuYmdzLnByb3RvY29sLlVuc2lnbmVkRmllbGRS", "ZXN0cmljdGlvbkgAEjQKBWZsb2F0GAUgASgLMiMuYmdzLnByb3RvY29sLkZs", "b2F0RmllbGRSZXN0cmljdGlvbkgAEjYKBnN0cmluZxgGIAEoCzIkLmJncy5w", "cm90b2NvbC5TdHJpbmdGaWVsZFJlc3RyaWN0aW9uSAASNgoJZW50aXR5X2lk", "GAcgASgLMiEuYmdzLnByb3RvY29sLkVudGl0eUlkUmVzdHJpY3Rpb25IABI1", "CgVieXRlcxgIIAEoCzIkLmJncy5wcm90b2NvbC5TdHJpbmdGaWVsZFJlc3Ry", "aWN0aW9uSABCBgoEdHlwZSJXChZTaWduZWRGaWVsZFJlc3RyaWN0aW9uEiwK", "BmxpbWl0cxgBIAEoCzIcLmJncy5wcm90b2NvbC5TaWduZWRJbnRSYW5nZRIP", "CgdleGNsdWRlGAIgAygSIlsKGFVuc2lnbmVkRmllbGRSZXN0cmljdGlvbhIu", "CgZsaW1pdHMYASABKAsyHi5iZ3MucHJvdG9jb2wuVW5zaWduZWRJbnRSYW5n", "ZRIPCgdleGNsdWRlGAIgAygEIlIKFUZsb2F0RmllbGRSZXN0cmljdGlvbhIo", "CgZsaW1pdHMYASABKAsyGC5iZ3MucHJvdG9jb2wuRmxvYXRSYW5nZRIPCgdl", "eGNsdWRlGAIgAygCIlcKFlN0cmluZ0ZpZWxkUmVzdHJpY3Rpb24SLAoEc2l6", "ZRgBIAEoCzIeLmJncy5wcm90b2NvbC5VbnNpZ25lZEludFJhbmdlEg8KB2V4", "Y2x1ZGUYAiADKAkixwEKE0VudGl0eUlkUmVzdHJpY3Rpb24SDgoGbmVlZGVk", "GAEgASgIEjkKBGtpbmQYAiABKA4yJi5iZ3MucHJvdG9jb2wuRW50aXR5SWRS", "ZXN0cmljdGlvbi5LaW5kOgNBTlkiZQoES2luZBIHCgNBTlkQABILCgdBQ0NP", "VU5UEAESEAoMR0FNRV9BQ0NPVU5UEAISGwoXQUNDT1VOVF9PUl9HQU1FX0FD", "Q09VTlQQAxILCgdTRVJWSUNFEAQSCwoHQ0hBTk5FTBAFIikKF01lc3NhZ2VG", "aWVsZFJlc3RyaWN0aW9uEg4KBm5lZWRlZBgBIAEoCCogCglMb2dPcHRpb24S", "CgoGSElEREVOEAESBwoDSEVYEAI6VQoNZmllbGRfb3B0aW9ucxIdLmdvb2ds", "ZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMYkL8FIAEoCzIdLmJncy5wcm90b2Nv", "bC5CR1NGaWVsZE9wdGlvbnM6TgoFdmFsaWQSHS5nb29nbGUucHJvdG9idWYu", "RmllbGRPcHRpb25zGJG/BSABKAsyHi5iZ3MucHJvdG9jb2wuRmllbGRSZXN0", "cmljdGlvbkIiCg1ibmV0LnByb3RvY29sQhFGaWVsZE9wdGlvbnNQcm90bw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Protobuf.DescriptorReflection.Descriptor, global::Bgs.Protocol.RangeReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Bgs.Protocol.LogOption), }, new pb::Extension[] { FieldOptionsExtensions.FieldOptions_, FieldOptionsExtensions.Valid }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.BGSFieldOptions), global::Bgs.Protocol.BGSFieldOptions.Parser, new[]{ "Log", "ShardKey", "FanoutKey", "ClientInstanceKey", "RealizedEnum" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.FieldRestriction), global::Bgs.Protocol.FieldRestriction.Parser, new[]{ "Signed", "Unsigned", "Float", "String", "Repeated", "Message", "EntityId", "Bytes" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.RepeatedFieldRestriction), global::Bgs.Protocol.RepeatedFieldRestriction.Parser, new[]{ "Size", "Unique", "Signed", "Unsigned", "Float", "String", "EntityId", "Bytes" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.SignedFieldRestriction), global::Bgs.Protocol.SignedFieldRestriction.Parser, new[]{ "Limits", "Exclude" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UnsignedFieldRestriction), global::Bgs.Protocol.UnsignedFieldRestriction.Parser, new[]{ "Limits", "Exclude" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.FloatFieldRestriction), global::Bgs.Protocol.FloatFieldRestriction.Parser, new[]{ "Limits", "Exclude" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.StringFieldRestriction), global::Bgs.Protocol.StringFieldRestriction.Parser, new[]{ "Size", "Exclude" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.EntityIdRestriction), global::Bgs.Protocol.EntityIdRestriction.Parser, new[]{ "Needed", "Kind" }, null, new[]{ typeof(global::Bgs.Protocol.EntityIdRestriction.Types.Kind) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.MessageFieldRestriction), global::Bgs.Protocol.MessageFieldRestriction.Parser, new[]{ "Needed" }, null, null, null, null) })); } #endregion } /// Holder for extension identifiers generated from the top level of bgs/low/pb/client/global_extensions/field_options.proto public static partial class FieldOptionsExtensions { public static readonly pb::Extension FieldOptions_ = new pb::Extension(90000, pb::FieldCodec.ForMessage(720002, global::Bgs.Protocol.BGSFieldOptions.Parser)); public static readonly pb::Extension Valid = new pb::Extension(90001, pb::FieldCodec.ForMessage(720010, global::Bgs.Protocol.FieldRestriction.Parser)); } #region Enums public enum LogOption { [pbr::OriginalName("HIDDEN")] Hidden = 1, [pbr::OriginalName("HEX")] Hex = 2, } #endregion #region Messages public sealed partial class BGSFieldOptions : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BGSFieldOptions()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Bgs.Protocol.FieldOptionsReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public BGSFieldOptions() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public BGSFieldOptions(BGSFieldOptions other) : this() { _hasBits0 = other._hasBits0; log_ = other.log_; shardKey_ = other.shardKey_; fanoutKey_ = other.fanoutKey_; clientInstanceKey_ = other.clientInstanceKey_; realizedEnum_ = other.realizedEnum_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public BGSFieldOptions Clone() { return new BGSFieldOptions(this); } /// Field number for the "log" field. public const int LogFieldNumber = 1; private readonly static global::Bgs.Protocol.LogOption LogDefaultValue = global::Bgs.Protocol.LogOption.Hidden; private global::Bgs.Protocol.LogOption log_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.LogOption Log { get { if ((_hasBits0 & 1) != 0) { return log_; } else { return LogDefaultValue; } } set { _hasBits0 |= 1; log_ = value; } } /// Gets whether the "log" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasLog { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "log" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearLog() { _hasBits0 &= ~1; } /// Field number for the "shard_key" field. public const int ShardKeyFieldNumber = 2; private readonly static bool ShardKeyDefaultValue = false; private bool shardKey_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool ShardKey { get { if ((_hasBits0 & 2) != 0) { return shardKey_; } else { return ShardKeyDefaultValue; } } set { _hasBits0 |= 2; shardKey_ = value; } } /// Gets whether the "shard_key" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasShardKey { get { return (_hasBits0 & 2) != 0; } } /// Clears the value of the "shard_key" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearShardKey() { _hasBits0 &= ~2; } /// Field number for the "fanout_key" field. public const int FanoutKeyFieldNumber = 3; private readonly static bool FanoutKeyDefaultValue = false; private bool fanoutKey_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool FanoutKey { get { if ((_hasBits0 & 4) != 0) { return fanoutKey_; } else { return FanoutKeyDefaultValue; } } set { _hasBits0 |= 4; fanoutKey_ = value; } } /// Gets whether the "fanout_key" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasFanoutKey { get { return (_hasBits0 & 4) != 0; } } /// Clears the value of the "fanout_key" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearFanoutKey() { _hasBits0 &= ~4; } /// Field number for the "client_instance_key" field. public const int ClientInstanceKeyFieldNumber = 4; private readonly static bool ClientInstanceKeyDefaultValue = false; private bool clientInstanceKey_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool ClientInstanceKey { get { if ((_hasBits0 & 8) != 0) { return clientInstanceKey_; } else { return ClientInstanceKeyDefaultValue; } } set { _hasBits0 |= 8; clientInstanceKey_ = value; } } /// Gets whether the "client_instance_key" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasClientInstanceKey { get { return (_hasBits0 & 8) != 0; } } /// Clears the value of the "client_instance_key" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearClientInstanceKey() { _hasBits0 &= ~8; } /// Field number for the "realized_enum" field. public const int RealizedEnumFieldNumber = 5; private readonly static string RealizedEnumDefaultValue = ""; private string realizedEnum_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string RealizedEnum { get { return realizedEnum_ ?? RealizedEnumDefaultValue; } set { realizedEnum_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Gets whether the "realized_enum" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasRealizedEnum { get { return realizedEnum_ != null; } } /// Clears the value of the "realized_enum" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearRealizedEnum() { realizedEnum_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as BGSFieldOptions); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(BGSFieldOptions other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Log != other.Log) return false; if (ShardKey != other.ShardKey) return false; if (FanoutKey != other.FanoutKey) return false; if (ClientInstanceKey != other.ClientInstanceKey) return false; if (RealizedEnum != other.RealizedEnum) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HasLog) hash ^= Log.GetHashCode(); if (HasShardKey) hash ^= ShardKey.GetHashCode(); if (HasFanoutKey) hash ^= FanoutKey.GetHashCode(); if (HasClientInstanceKey) hash ^= ClientInstanceKey.GetHashCode(); if (HasRealizedEnum) hash ^= RealizedEnum.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 (HasLog) { output.WriteRawTag(8); output.WriteEnum((int) Log); } if (HasShardKey) { output.WriteRawTag(16); output.WriteBool(ShardKey); } if (HasFanoutKey) { output.WriteRawTag(24); output.WriteBool(FanoutKey); } if (HasClientInstanceKey) { output.WriteRawTag(32); output.WriteBool(ClientInstanceKey); } if (HasRealizedEnum) { output.WriteRawTag(42); output.WriteString(RealizedEnum); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HasLog) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Log); } if (HasShardKey) { size += 1 + 1; } if (HasFanoutKey) { size += 1 + 1; } if (HasClientInstanceKey) { size += 1 + 1; } if (HasRealizedEnum) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RealizedEnum); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(BGSFieldOptions other) { if (other == null) { return; } if (other.HasLog) { Log = other.Log; } if (other.HasShardKey) { ShardKey = other.ShardKey; } if (other.HasFanoutKey) { FanoutKey = other.FanoutKey; } if (other.HasClientInstanceKey) { ClientInstanceKey = other.ClientInstanceKey; } if (other.HasRealizedEnum) { RealizedEnum = other.RealizedEnum; } _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: { Log = (global::Bgs.Protocol.LogOption) input.ReadEnum(); break; } case 16: { ShardKey = input.ReadBool(); break; } case 24: { FanoutKey = input.ReadBool(); break; } case 32: { ClientInstanceKey = input.ReadBool(); break; } case 42: { RealizedEnum = input.ReadString(); break; } } } } } public sealed partial class FieldRestriction : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FieldRestriction()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Bgs.Protocol.FieldOptionsReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FieldRestriction() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FieldRestriction(FieldRestriction other) : this() { switch (other.TypeCase) { case TypeOneofCase.Signed: Signed = other.Signed.Clone(); break; case TypeOneofCase.Unsigned: Unsigned = other.Unsigned.Clone(); break; case TypeOneofCase.Float: Float = other.Float.Clone(); break; case TypeOneofCase.String: String = other.String.Clone(); break; case TypeOneofCase.Repeated: Repeated = other.Repeated.Clone(); break; case TypeOneofCase.Message: Message = other.Message.Clone(); break; case TypeOneofCase.EntityId: EntityId = other.EntityId.Clone(); break; case TypeOneofCase.Bytes: Bytes = other.Bytes.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FieldRestriction Clone() { return new FieldRestriction(this); } /// Field number for the "signed" field. public const int SignedFieldNumber = 1; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.SignedFieldRestriction Signed { get { return HasSigned ? (global::Bgs.Protocol.SignedFieldRestriction) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Signed; } } /// Gets whether the "signed" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasSigned { get { return typeCase_ == TypeOneofCase.Signed; } } /// Clears the value of the oneof if it's currently set to "signed" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearSigned() { if (HasSigned) { ClearType(); } } /// Field number for the "unsigned" field. public const int UnsignedFieldNumber = 2; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.UnsignedFieldRestriction Unsigned { get { return HasUnsigned ? (global::Bgs.Protocol.UnsignedFieldRestriction) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Unsigned; } } /// Gets whether the "unsigned" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasUnsigned { get { return typeCase_ == TypeOneofCase.Unsigned; } } /// Clears the value of the oneof if it's currently set to "unsigned" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearUnsigned() { if (HasUnsigned) { ClearType(); } } /// Field number for the "float" field. public const int FloatFieldNumber = 3; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.FloatFieldRestriction Float { get { return HasFloat ? (global::Bgs.Protocol.FloatFieldRestriction) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Float; } } /// Gets whether the "float" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasFloat { get { return typeCase_ == TypeOneofCase.Float; } } /// Clears the value of the oneof if it's currently set to "float" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearFloat() { if (HasFloat) { ClearType(); } } /// Field number for the "string" field. public const int StringFieldNumber = 4; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.StringFieldRestriction String { get { return HasString ? (global::Bgs.Protocol.StringFieldRestriction) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.String; } } /// Gets whether the "string" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasString { get { return typeCase_ == TypeOneofCase.String; } } /// Clears the value of the oneof if it's currently set to "string" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearString() { if (HasString) { ClearType(); } } /// Field number for the "repeated" field. public const int RepeatedFieldNumber = 5; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.RepeatedFieldRestriction Repeated { get { return HasRepeated ? (global::Bgs.Protocol.RepeatedFieldRestriction) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Repeated; } } /// Gets whether the "repeated" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasRepeated { get { return typeCase_ == TypeOneofCase.Repeated; } } /// Clears the value of the oneof if it's currently set to "repeated" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearRepeated() { if (HasRepeated) { ClearType(); } } /// Field number for the "message" field. public const int MessageFieldNumber = 6; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.MessageFieldRestriction Message { get { return HasMessage ? (global::Bgs.Protocol.MessageFieldRestriction) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Message; } } /// Gets whether the "message" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasMessage { get { return typeCase_ == TypeOneofCase.Message; } } /// Clears the value of the oneof if it's currently set to "message" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearMessage() { if (HasMessage) { ClearType(); } } /// Field number for the "entity_id" field. public const int EntityIdFieldNumber = 7; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.EntityIdRestriction EntityId { get { return HasEntityId ? (global::Bgs.Protocol.EntityIdRestriction) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.EntityId; } } /// Gets whether the "entity_id" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasEntityId { get { return typeCase_ == TypeOneofCase.EntityId; } } /// Clears the value of the oneof if it's currently set to "entity_id" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearEntityId() { if (HasEntityId) { ClearType(); } } /// Field number for the "bytes" field. public const int BytesFieldNumber = 8; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.StringFieldRestriction Bytes { get { return HasBytes ? (global::Bgs.Protocol.StringFieldRestriction) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Bytes; } } /// Gets whether the "bytes" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasBytes { get { return typeCase_ == TypeOneofCase.Bytes; } } /// Clears the value of the oneof if it's currently set to "bytes" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearBytes() { if (HasBytes) { ClearType(); } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Signed = 1, Unsigned = 2, Float = 3, String = 4, Repeated = 5, Message = 6, EntityId = 7, Bytes = 8, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as FieldRestriction); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(FieldRestriction other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Signed, other.Signed)) return false; if (!object.Equals(Unsigned, other.Unsigned)) return false; if (!object.Equals(Float, other.Float)) return false; if (!object.Equals(String, other.String)) return false; if (!object.Equals(Repeated, other.Repeated)) return false; if (!object.Equals(Message, other.Message)) return false; if (!object.Equals(EntityId, other.EntityId)) return false; if (!object.Equals(Bytes, other.Bytes)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HasSigned) hash ^= Signed.GetHashCode(); if (HasUnsigned) hash ^= Unsigned.GetHashCode(); if (HasFloat) hash ^= Float.GetHashCode(); if (HasString) hash ^= String.GetHashCode(); if (HasRepeated) hash ^= Repeated.GetHashCode(); if (HasMessage) hash ^= Message.GetHashCode(); if (HasEntityId) hash ^= EntityId.GetHashCode(); if (HasBytes) hash ^= Bytes.GetHashCode(); hash ^= (int) typeCase_; 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 (HasSigned) { output.WriteRawTag(10); output.WriteMessage(Signed); } if (HasUnsigned) { output.WriteRawTag(18); output.WriteMessage(Unsigned); } if (HasFloat) { output.WriteRawTag(26); output.WriteMessage(Float); } if (HasString) { output.WriteRawTag(34); output.WriteMessage(String); } if (HasRepeated) { output.WriteRawTag(42); output.WriteMessage(Repeated); } if (HasMessage) { output.WriteRawTag(50); output.WriteMessage(Message); } if (HasEntityId) { output.WriteRawTag(58); output.WriteMessage(EntityId); } if (HasBytes) { output.WriteRawTag(66); output.WriteMessage(Bytes); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HasSigned) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Signed); } if (HasUnsigned) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unsigned); } if (HasFloat) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Float); } if (HasString) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(String); } if (HasRepeated) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Repeated); } if (HasMessage) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Message); } if (HasEntityId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); } if (HasBytes) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bytes); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(FieldRestriction other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Signed: if (Signed == null) { Signed = new global::Bgs.Protocol.SignedFieldRestriction(); } Signed.MergeFrom(other.Signed); break; case TypeOneofCase.Unsigned: if (Unsigned == null) { Unsigned = new global::Bgs.Protocol.UnsignedFieldRestriction(); } Unsigned.MergeFrom(other.Unsigned); break; case TypeOneofCase.Float: if (Float == null) { Float = new global::Bgs.Protocol.FloatFieldRestriction(); } Float.MergeFrom(other.Float); break; case TypeOneofCase.String: if (String == null) { String = new global::Bgs.Protocol.StringFieldRestriction(); } String.MergeFrom(other.String); break; case TypeOneofCase.Repeated: if (Repeated == null) { Repeated = new global::Bgs.Protocol.RepeatedFieldRestriction(); } Repeated.MergeFrom(other.Repeated); break; case TypeOneofCase.Message: if (Message == null) { Message = new global::Bgs.Protocol.MessageFieldRestriction(); } Message.MergeFrom(other.Message); break; case TypeOneofCase.EntityId: if (EntityId == null) { EntityId = new global::Bgs.Protocol.EntityIdRestriction(); } EntityId.MergeFrom(other.EntityId); break; case TypeOneofCase.Bytes: if (Bytes == null) { Bytes = new global::Bgs.Protocol.StringFieldRestriction(); } Bytes.MergeFrom(other.Bytes); break; } _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: { global::Bgs.Protocol.SignedFieldRestriction subBuilder = new global::Bgs.Protocol.SignedFieldRestriction(); if (HasSigned) { subBuilder.MergeFrom(Signed); } input.ReadMessage(subBuilder); Signed = subBuilder; break; } case 18: { global::Bgs.Protocol.UnsignedFieldRestriction subBuilder = new global::Bgs.Protocol.UnsignedFieldRestriction(); if (HasUnsigned) { subBuilder.MergeFrom(Unsigned); } input.ReadMessage(subBuilder); Unsigned = subBuilder; break; } case 26: { global::Bgs.Protocol.FloatFieldRestriction subBuilder = new global::Bgs.Protocol.FloatFieldRestriction(); if (HasFloat) { subBuilder.MergeFrom(Float); } input.ReadMessage(subBuilder); Float = subBuilder; break; } case 34: { global::Bgs.Protocol.StringFieldRestriction subBuilder = new global::Bgs.Protocol.StringFieldRestriction(); if (HasString) { subBuilder.MergeFrom(String); } input.ReadMessage(subBuilder); String = subBuilder; break; } case 42: { global::Bgs.Protocol.RepeatedFieldRestriction subBuilder = new global::Bgs.Protocol.RepeatedFieldRestriction(); if (HasRepeated) { subBuilder.MergeFrom(Repeated); } input.ReadMessage(subBuilder); Repeated = subBuilder; break; } case 50: { global::Bgs.Protocol.MessageFieldRestriction subBuilder = new global::Bgs.Protocol.MessageFieldRestriction(); if (HasMessage) { subBuilder.MergeFrom(Message); } input.ReadMessage(subBuilder); Message = subBuilder; break; } case 58: { global::Bgs.Protocol.EntityIdRestriction subBuilder = new global::Bgs.Protocol.EntityIdRestriction(); if (HasEntityId) { subBuilder.MergeFrom(EntityId); } input.ReadMessage(subBuilder); EntityId = subBuilder; break; } case 66: { global::Bgs.Protocol.StringFieldRestriction subBuilder = new global::Bgs.Protocol.StringFieldRestriction(); if (HasBytes) { subBuilder.MergeFrom(Bytes); } input.ReadMessage(subBuilder); Bytes = subBuilder; break; } } } } } public sealed partial class RepeatedFieldRestriction : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RepeatedFieldRestriction()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Bgs.Protocol.FieldOptionsReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RepeatedFieldRestriction() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RepeatedFieldRestriction(RepeatedFieldRestriction other) : this() { _hasBits0 = other._hasBits0; size_ = other.HasSize ? other.size_.Clone() : null; unique_ = other.unique_; switch (other.TypeCase) { case TypeOneofCase.Signed: Signed = other.Signed.Clone(); break; case TypeOneofCase.Unsigned: Unsigned = other.Unsigned.Clone(); break; case TypeOneofCase.Float: Float = other.Float.Clone(); break; case TypeOneofCase.String: String = other.String.Clone(); break; case TypeOneofCase.EntityId: EntityId = other.EntityId.Clone(); break; case TypeOneofCase.Bytes: Bytes = other.Bytes.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public RepeatedFieldRestriction Clone() { return new RepeatedFieldRestriction(this); } /// Field number for the "size" field. public const int SizeFieldNumber = 1; private global::Bgs.Protocol.UnsignedIntRange size_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.UnsignedIntRange Size { get { return size_; } set { size_ = value; } } /// Gets whether the size field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasSize { get { return size_ != null; } } /// Clears the value of the size field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearSize() { size_ = null; } /// Field number for the "unique" field. public const int UniqueFieldNumber = 2; private readonly static bool UniqueDefaultValue = false; private bool unique_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Unique { get { if ((_hasBits0 & 1) != 0) { return unique_; } else { return UniqueDefaultValue; } } set { _hasBits0 |= 1; unique_ = value; } } /// Gets whether the "unique" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasUnique { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "unique" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearUnique() { _hasBits0 &= ~1; } /// Field number for the "signed" field. public const int SignedFieldNumber = 3; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.SignedFieldRestriction Signed { get { return HasSigned ? (global::Bgs.Protocol.SignedFieldRestriction) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Signed; } } /// Gets whether the "signed" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasSigned { get { return typeCase_ == TypeOneofCase.Signed; } } /// Clears the value of the oneof if it's currently set to "signed" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearSigned() { if (HasSigned) { ClearType(); } } /// Field number for the "unsigned" field. public const int UnsignedFieldNumber = 4; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.UnsignedFieldRestriction Unsigned { get { return HasUnsigned ? (global::Bgs.Protocol.UnsignedFieldRestriction) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Unsigned; } } /// Gets whether the "unsigned" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasUnsigned { get { return typeCase_ == TypeOneofCase.Unsigned; } } /// Clears the value of the oneof if it's currently set to "unsigned" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearUnsigned() { if (HasUnsigned) { ClearType(); } } /// Field number for the "float" field. public const int FloatFieldNumber = 5; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.FloatFieldRestriction Float { get { return HasFloat ? (global::Bgs.Protocol.FloatFieldRestriction) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Float; } } /// Gets whether the "float" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasFloat { get { return typeCase_ == TypeOneofCase.Float; } } /// Clears the value of the oneof if it's currently set to "float" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearFloat() { if (HasFloat) { ClearType(); } } /// Field number for the "string" field. public const int StringFieldNumber = 6; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.StringFieldRestriction String { get { return HasString ? (global::Bgs.Protocol.StringFieldRestriction) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.String; } } /// Gets whether the "string" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasString { get { return typeCase_ == TypeOneofCase.String; } } /// Clears the value of the oneof if it's currently set to "string" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearString() { if (HasString) { ClearType(); } } /// Field number for the "entity_id" field. public const int EntityIdFieldNumber = 7; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.EntityIdRestriction EntityId { get { return HasEntityId ? (global::Bgs.Protocol.EntityIdRestriction) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.EntityId; } } /// Gets whether the "entity_id" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasEntityId { get { return typeCase_ == TypeOneofCase.EntityId; } } /// Clears the value of the oneof if it's currently set to "entity_id" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearEntityId() { if (HasEntityId) { ClearType(); } } /// Field number for the "bytes" field. public const int BytesFieldNumber = 8; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.StringFieldRestriction Bytes { get { return HasBytes ? (global::Bgs.Protocol.StringFieldRestriction) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Bytes; } } /// Gets whether the "bytes" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasBytes { get { return typeCase_ == TypeOneofCase.Bytes; } } /// Clears the value of the oneof if it's currently set to "bytes" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearBytes() { if (HasBytes) { ClearType(); } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Signed = 3, Unsigned = 4, Float = 5, String = 6, EntityId = 7, Bytes = 8, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as RepeatedFieldRestriction); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(RepeatedFieldRestriction other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Size, other.Size)) return false; if (Unique != other.Unique) return false; if (!object.Equals(Signed, other.Signed)) return false; if (!object.Equals(Unsigned, other.Unsigned)) return false; if (!object.Equals(Float, other.Float)) return false; if (!object.Equals(String, other.String)) return false; if (!object.Equals(EntityId, other.EntityId)) return false; if (!object.Equals(Bytes, other.Bytes)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HasSize) hash ^= Size.GetHashCode(); if (HasUnique) hash ^= Unique.GetHashCode(); if (HasSigned) hash ^= Signed.GetHashCode(); if (HasUnsigned) hash ^= Unsigned.GetHashCode(); if (HasFloat) hash ^= Float.GetHashCode(); if (HasString) hash ^= String.GetHashCode(); if (HasEntityId) hash ^= EntityId.GetHashCode(); if (HasBytes) hash ^= Bytes.GetHashCode(); hash ^= (int) typeCase_; 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 (HasSize) { output.WriteRawTag(10); output.WriteMessage(Size); } if (HasUnique) { output.WriteRawTag(16); output.WriteBool(Unique); } if (HasSigned) { output.WriteRawTag(26); output.WriteMessage(Signed); } if (HasUnsigned) { output.WriteRawTag(34); output.WriteMessage(Unsigned); } if (HasFloat) { output.WriteRawTag(42); output.WriteMessage(Float); } if (HasString) { output.WriteRawTag(50); output.WriteMessage(String); } if (HasEntityId) { output.WriteRawTag(58); output.WriteMessage(EntityId); } if (HasBytes) { output.WriteRawTag(66); output.WriteMessage(Bytes); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HasSize) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Size); } if (HasUnique) { size += 1 + 1; } if (HasSigned) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Signed); } if (HasUnsigned) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unsigned); } if (HasFloat) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Float); } if (HasString) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(String); } if (HasEntityId) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId); } if (HasBytes) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Bytes); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(RepeatedFieldRestriction other) { if (other == null) { return; } if (other.HasSize) { if (!HasSize) { Size = new global::Bgs.Protocol.UnsignedIntRange(); } Size.MergeFrom(other.Size); } if (other.HasUnique) { Unique = other.Unique; } switch (other.TypeCase) { case TypeOneofCase.Signed: if (Signed == null) { Signed = new global::Bgs.Protocol.SignedFieldRestriction(); } Signed.MergeFrom(other.Signed); break; case TypeOneofCase.Unsigned: if (Unsigned == null) { Unsigned = new global::Bgs.Protocol.UnsignedFieldRestriction(); } Unsigned.MergeFrom(other.Unsigned); break; case TypeOneofCase.Float: if (Float == null) { Float = new global::Bgs.Protocol.FloatFieldRestriction(); } Float.MergeFrom(other.Float); break; case TypeOneofCase.String: if (String == null) { String = new global::Bgs.Protocol.StringFieldRestriction(); } String.MergeFrom(other.String); break; case TypeOneofCase.EntityId: if (EntityId == null) { EntityId = new global::Bgs.Protocol.EntityIdRestriction(); } EntityId.MergeFrom(other.EntityId); break; case TypeOneofCase.Bytes: if (Bytes == null) { Bytes = new global::Bgs.Protocol.StringFieldRestriction(); } Bytes.MergeFrom(other.Bytes); break; } _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 (!HasSize) { Size = new global::Bgs.Protocol.UnsignedIntRange(); } input.ReadMessage(Size); break; } case 16: { Unique = input.ReadBool(); break; } case 26: { global::Bgs.Protocol.SignedFieldRestriction subBuilder = new global::Bgs.Protocol.SignedFieldRestriction(); if (HasSigned) { subBuilder.MergeFrom(Signed); } input.ReadMessage(subBuilder); Signed = subBuilder; break; } case 34: { global::Bgs.Protocol.UnsignedFieldRestriction subBuilder = new global::Bgs.Protocol.UnsignedFieldRestriction(); if (HasUnsigned) { subBuilder.MergeFrom(Unsigned); } input.ReadMessage(subBuilder); Unsigned = subBuilder; break; } case 42: { global::Bgs.Protocol.FloatFieldRestriction subBuilder = new global::Bgs.Protocol.FloatFieldRestriction(); if (HasFloat) { subBuilder.MergeFrom(Float); } input.ReadMessage(subBuilder); Float = subBuilder; break; } case 50: { global::Bgs.Protocol.StringFieldRestriction subBuilder = new global::Bgs.Protocol.StringFieldRestriction(); if (HasString) { subBuilder.MergeFrom(String); } input.ReadMessage(subBuilder); String = subBuilder; break; } case 58: { global::Bgs.Protocol.EntityIdRestriction subBuilder = new global::Bgs.Protocol.EntityIdRestriction(); if (HasEntityId) { subBuilder.MergeFrom(EntityId); } input.ReadMessage(subBuilder); EntityId = subBuilder; break; } case 66: { global::Bgs.Protocol.StringFieldRestriction subBuilder = new global::Bgs.Protocol.StringFieldRestriction(); if (HasBytes) { subBuilder.MergeFrom(Bytes); } input.ReadMessage(subBuilder); Bytes = subBuilder; break; } } } } } public sealed partial class SignedFieldRestriction : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SignedFieldRestriction()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Bgs.Protocol.FieldOptionsReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SignedFieldRestriction() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SignedFieldRestriction(SignedFieldRestriction other) : this() { limits_ = other.HasLimits ? other.limits_.Clone() : null; exclude_ = other.exclude_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SignedFieldRestriction Clone() { return new SignedFieldRestriction(this); } /// Field number for the "limits" field. public const int LimitsFieldNumber = 1; private global::Bgs.Protocol.SignedIntRange limits_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.SignedIntRange Limits { get { return limits_; } set { limits_ = value; } } /// Gets whether the limits field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasLimits { get { return limits_ != null; } } /// Clears the value of the limits field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearLimits() { limits_ = null; } /// Field number for the "exclude" field. public const int ExcludeFieldNumber = 2; private static readonly pb::FieldCodec _repeated_exclude_codec = pb::FieldCodec.ForSInt64(16); private readonly pbc::RepeatedField exclude_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Exclude { get { return exclude_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SignedFieldRestriction); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SignedFieldRestriction other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Limits, other.Limits)) return false; if(!exclude_.Equals(other.exclude_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HasLimits) hash ^= Limits.GetHashCode(); hash ^= exclude_.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 (HasLimits) { output.WriteRawTag(10); output.WriteMessage(Limits); } exclude_.WriteTo(output, _repeated_exclude_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HasLimits) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Limits); } size += exclude_.CalculateSize(_repeated_exclude_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SignedFieldRestriction other) { if (other == null) { return; } if (other.HasLimits) { if (!HasLimits) { Limits = new global::Bgs.Protocol.SignedIntRange(); } Limits.MergeFrom(other.Limits); } exclude_.Add(other.exclude_); _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 (!HasLimits) { Limits = new global::Bgs.Protocol.SignedIntRange(); } input.ReadMessage(Limits); break; } case 18: case 16: { exclude_.AddEntriesFrom(input, _repeated_exclude_codec); break; } } } } } public sealed partial class UnsignedFieldRestriction : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnsignedFieldRestriction()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Bgs.Protocol.FieldOptionsReflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UnsignedFieldRestriction() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UnsignedFieldRestriction(UnsignedFieldRestriction other) : this() { limits_ = other.HasLimits ? other.limits_.Clone() : null; exclude_ = other.exclude_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public UnsignedFieldRestriction Clone() { return new UnsignedFieldRestriction(this); } /// Field number for the "limits" field. public const int LimitsFieldNumber = 1; private global::Bgs.Protocol.UnsignedIntRange limits_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.UnsignedIntRange Limits { get { return limits_; } set { limits_ = value; } } /// Gets whether the limits field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasLimits { get { return limits_ != null; } } /// Clears the value of the limits field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearLimits() { limits_ = null; } /// Field number for the "exclude" field. public const int ExcludeFieldNumber = 2; private static readonly pb::FieldCodec _repeated_exclude_codec = pb::FieldCodec.ForUInt64(16); private readonly pbc::RepeatedField exclude_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Exclude { get { return exclude_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as UnsignedFieldRestriction); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(UnsignedFieldRestriction other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Limits, other.Limits)) return false; if(!exclude_.Equals(other.exclude_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HasLimits) hash ^= Limits.GetHashCode(); hash ^= exclude_.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 (HasLimits) { output.WriteRawTag(10); output.WriteMessage(Limits); } exclude_.WriteTo(output, _repeated_exclude_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HasLimits) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Limits); } size += exclude_.CalculateSize(_repeated_exclude_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(UnsignedFieldRestriction other) { if (other == null) { return; } if (other.HasLimits) { if (!HasLimits) { Limits = new global::Bgs.Protocol.UnsignedIntRange(); } Limits.MergeFrom(other.Limits); } exclude_.Add(other.exclude_); _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 (!HasLimits) { Limits = new global::Bgs.Protocol.UnsignedIntRange(); } input.ReadMessage(Limits); break; } case 18: case 16: { exclude_.AddEntriesFrom(input, _repeated_exclude_codec); break; } } } } } public sealed partial class FloatFieldRestriction : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FloatFieldRestriction()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Bgs.Protocol.FieldOptionsReflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FloatFieldRestriction() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FloatFieldRestriction(FloatFieldRestriction other) : this() { limits_ = other.HasLimits ? other.limits_.Clone() : null; exclude_ = other.exclude_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FloatFieldRestriction Clone() { return new FloatFieldRestriction(this); } /// Field number for the "limits" field. public const int LimitsFieldNumber = 1; private global::Bgs.Protocol.FloatRange limits_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.FloatRange Limits { get { return limits_; } set { limits_ = value; } } /// Gets whether the limits field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasLimits { get { return limits_ != null; } } /// Clears the value of the limits field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearLimits() { limits_ = null; } /// Field number for the "exclude" field. public const int ExcludeFieldNumber = 2; private static readonly pb::FieldCodec _repeated_exclude_codec = pb::FieldCodec.ForFloat(21); private readonly pbc::RepeatedField exclude_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Exclude { get { return exclude_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as FloatFieldRestriction); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(FloatFieldRestriction other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Limits, other.Limits)) return false; if(!exclude_.Equals(other.exclude_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HasLimits) hash ^= Limits.GetHashCode(); hash ^= exclude_.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 (HasLimits) { output.WriteRawTag(10); output.WriteMessage(Limits); } exclude_.WriteTo(output, _repeated_exclude_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HasLimits) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Limits); } size += exclude_.CalculateSize(_repeated_exclude_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(FloatFieldRestriction other) { if (other == null) { return; } if (other.HasLimits) { if (!HasLimits) { Limits = new global::Bgs.Protocol.FloatRange(); } Limits.MergeFrom(other.Limits); } exclude_.Add(other.exclude_); _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 (!HasLimits) { Limits = new global::Bgs.Protocol.FloatRange(); } input.ReadMessage(Limits); break; } case 18: case 21: { exclude_.AddEntriesFrom(input, _repeated_exclude_codec); break; } } } } } public sealed partial class StringFieldRestriction : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StringFieldRestriction()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Bgs.Protocol.FieldOptionsReflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public StringFieldRestriction() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public StringFieldRestriction(StringFieldRestriction other) : this() { size_ = other.HasSize ? other.size_.Clone() : null; exclude_ = other.exclude_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public StringFieldRestriction Clone() { return new StringFieldRestriction(this); } /// Field number for the "size" field. public const int SizeFieldNumber = 1; private global::Bgs.Protocol.UnsignedIntRange size_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.UnsignedIntRange Size { get { return size_; } set { size_ = value; } } /// Gets whether the size field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasSize { get { return size_ != null; } } /// Clears the value of the size field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearSize() { size_ = null; } /// Field number for the "exclude" field. public const int ExcludeFieldNumber = 2; private static readonly pb::FieldCodec _repeated_exclude_codec = pb::FieldCodec.ForString(18); private readonly pbc::RepeatedField exclude_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Exclude { get { return exclude_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as StringFieldRestriction); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(StringFieldRestriction other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Size, other.Size)) return false; if(!exclude_.Equals(other.exclude_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HasSize) hash ^= Size.GetHashCode(); hash ^= exclude_.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 (HasSize) { output.WriteRawTag(10); output.WriteMessage(Size); } exclude_.WriteTo(output, _repeated_exclude_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HasSize) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Size); } size += exclude_.CalculateSize(_repeated_exclude_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(StringFieldRestriction other) { if (other == null) { return; } if (other.HasSize) { if (!HasSize) { Size = new global::Bgs.Protocol.UnsignedIntRange(); } Size.MergeFrom(other.Size); } exclude_.Add(other.exclude_); _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 (!HasSize) { Size = new global::Bgs.Protocol.UnsignedIntRange(); } input.ReadMessage(Size); break; } case 18: { exclude_.AddEntriesFrom(input, _repeated_exclude_codec); break; } } } } } public sealed partial class EntityIdRestriction : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EntityIdRestriction()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Bgs.Protocol.FieldOptionsReflection.Descriptor.MessageTypes[7]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public EntityIdRestriction() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public EntityIdRestriction(EntityIdRestriction other) : this() { _hasBits0 = other._hasBits0; needed_ = other.needed_; kind_ = other.kind_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public EntityIdRestriction Clone() { return new EntityIdRestriction(this); } /// Field number for the "needed" field. public const int NeededFieldNumber = 1; private readonly static bool NeededDefaultValue = false; private bool needed_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Needed { get { if ((_hasBits0 & 1) != 0) { return needed_; } else { return NeededDefaultValue; } } set { _hasBits0 |= 1; needed_ = value; } } /// Gets whether the "needed" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasNeeded { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "needed" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearNeeded() { _hasBits0 &= ~1; } /// Field number for the "kind" field. public const int KindFieldNumber = 2; private readonly static global::Bgs.Protocol.EntityIdRestriction.Types.Kind KindDefaultValue = global::Bgs.Protocol.EntityIdRestriction.Types.Kind.Any; private global::Bgs.Protocol.EntityIdRestriction.Types.Kind kind_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Bgs.Protocol.EntityIdRestriction.Types.Kind Kind { get { if ((_hasBits0 & 2) != 0) { return kind_; } else { return KindDefaultValue; } } set { _hasBits0 |= 2; kind_ = value; } } /// Gets whether the "kind" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasKind { get { return (_hasBits0 & 2) != 0; } } /// Clears the value of the "kind" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearKind() { _hasBits0 &= ~2; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as EntityIdRestriction); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(EntityIdRestriction other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Needed != other.Needed) return false; if (Kind != other.Kind) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HasNeeded) hash ^= Needed.GetHashCode(); if (HasKind) hash ^= Kind.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 (HasNeeded) { output.WriteRawTag(8); output.WriteBool(Needed); } if (HasKind) { output.WriteRawTag(16); output.WriteEnum((int) Kind); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HasNeeded) { size += 1 + 1; } if (HasKind) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Kind); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(EntityIdRestriction other) { if (other == null) { return; } if (other.HasNeeded) { Needed = other.Needed; } if (other.HasKind) { Kind = other.Kind; } _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: { Needed = input.ReadBool(); break; } case 16: { Kind = (global::Bgs.Protocol.EntityIdRestriction.Types.Kind) input.ReadEnum(); break; } } } } #region Nested types /// Container for nested types declared in the EntityIdRestriction message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static partial class Types { public enum Kind { [pbr::OriginalName("ANY")] Any = 0, [pbr::OriginalName("ACCOUNT")] Account = 1, [pbr::OriginalName("GAME_ACCOUNT")] GameAccount = 2, [pbr::OriginalName("ACCOUNT_OR_GAME_ACCOUNT")] AccountOrGameAccount = 3, [pbr::OriginalName("SERVICE")] Service = 4, [pbr::OriginalName("CHANNEL")] Channel = 5, } } #endregion } public sealed partial class MessageFieldRestriction : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageFieldRestriction()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Bgs.Protocol.FieldOptionsReflection.Descriptor.MessageTypes[8]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MessageFieldRestriction() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MessageFieldRestriction(MessageFieldRestriction other) : this() { _hasBits0 = other._hasBits0; needed_ = other.needed_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MessageFieldRestriction Clone() { return new MessageFieldRestriction(this); } /// Field number for the "needed" field. public const int NeededFieldNumber = 1; private readonly static bool NeededDefaultValue = false; private bool needed_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Needed { get { if ((_hasBits0 & 1) != 0) { return needed_; } else { return NeededDefaultValue; } } set { _hasBits0 |= 1; needed_ = value; } } /// Gets whether the "needed" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HasNeeded { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "needed" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void ClearNeeded() { _hasBits0 &= ~1; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as MessageFieldRestriction); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(MessageFieldRestriction other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Needed != other.Needed) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HasNeeded) hash ^= Needed.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 (HasNeeded) { output.WriteRawTag(8); output.WriteBool(Needed); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HasNeeded) { size += 1 + 1; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(MessageFieldRestriction other) { if (other == null) { return; } if (other.HasNeeded) { Needed = other.Needed; } _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: { Needed = input.ReadBool(); break; } } } } } #endregion } #endregion Designer generated code