Bnet/Services: Updated bnet proto files

This commit is contained in:
hondacrx
2020-04-25 00:12:46 -04:00
parent 8a9bd6504c
commit fbd2922b3d
68 changed files with 104838 additions and 37901 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,281 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/global_extensions/message_options.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 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/global_extensions/message_options.proto</summary>
public static partial class MessageOptionsReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/global_extensions/message_options.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static MessageOptionsReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXNzYWdl",
"X29wdGlvbnMucHJvdG8SDGJncy5wcm90b2NvbBogZ29vZ2xlL3Byb3RvYnVm",
"L2Rlc2NyaXB0b3IucHJvdG8iZAoRQkdTTWVzc2FnZU9wdGlvbnMSGwoTY3Vz",
"dG9tX3NlbGVjdF9zaGFyZBgBIAEoCBIYChBjdXN0b21fdmFsaWRhdG9yGAIg",
"ASgIEhgKEGNsaWVudF9pZF9mYW5vdXQYAyABKAg6WwoPbWVzc2FnZV9vcHRp",
"b25zEh8uZ29vZ2xlLnByb3RvYnVmLk1lc3NhZ2VPcHRpb25zGJC/BSABKAsy",
"Hy5iZ3MucHJvdG9jb2wuQkdTTWVzc2FnZU9wdGlvbnNCJAoNYm5ldC5wcm90",
"b2NvbEITTWVzc2FnZU9wdGlvbnNQcm90bw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Protobuf.DescriptorReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pb::Extension[] { MessageOptionsExtensions.MessageOptions_ }, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.BGSMessageOptions), global::Bgs.Protocol.BGSMessageOptions.Parser, new[]{ "CustomSelectShard", "CustomValidator", "ClientIdFanout" }, null, null, null, null)
}));
}
#endregion
}
/// <summary>Holder for extension identifiers generated from the top level of bgs/low/pb/client/global_extensions/message_options.proto</summary>
public static partial class MessageOptionsExtensions {
public static readonly pb::Extension<global::Google.Protobuf.MessageOptions, global::Bgs.Protocol.BGSMessageOptions> MessageOptions_ =
new pb::Extension<global::Google.Protobuf.MessageOptions, global::Bgs.Protocol.BGSMessageOptions>(90000, pb::FieldCodec.ForMessage(720002, global::Bgs.Protocol.BGSMessageOptions.Parser));
}
#region Messages
public sealed partial class BGSMessageOptions : pb::IMessage<BGSMessageOptions> {
private static readonly pb::MessageParser<BGSMessageOptions> _parser = new pb::MessageParser<BGSMessageOptions>(() => new BGSMessageOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<BGSMessageOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.MessageOptionsReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public BGSMessageOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public BGSMessageOptions(BGSMessageOptions other) : this() {
_hasBits0 = other._hasBits0;
customSelectShard_ = other.customSelectShard_;
customValidator_ = other.customValidator_;
clientIdFanout_ = other.clientIdFanout_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public BGSMessageOptions Clone() {
return new BGSMessageOptions(this);
}
/// <summary>Field number for the "custom_select_shard" field.</summary>
public const int CustomSelectShardFieldNumber = 1;
private readonly static bool CustomSelectShardDefaultValue = false;
private bool customSelectShard_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool CustomSelectShard {
get { if ((_hasBits0 & 1) != 0) { return customSelectShard_; } else { return CustomSelectShardDefaultValue; } }
set {
_hasBits0 |= 1;
customSelectShard_ = value;
}
}
/// <summary>Gets whether the "custom_select_shard" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasCustomSelectShard {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "custom_select_shard" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearCustomSelectShard() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "custom_validator" field.</summary>
public const int CustomValidatorFieldNumber = 2;
private readonly static bool CustomValidatorDefaultValue = false;
private bool customValidator_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool CustomValidator {
get { if ((_hasBits0 & 2) != 0) { return customValidator_; } else { return CustomValidatorDefaultValue; } }
set {
_hasBits0 |= 2;
customValidator_ = value;
}
}
/// <summary>Gets whether the "custom_validator" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasCustomValidator {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "custom_validator" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearCustomValidator() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "client_id_fanout" field.</summary>
public const int ClientIdFanoutFieldNumber = 3;
private readonly static bool ClientIdFanoutDefaultValue = false;
private bool clientIdFanout_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool ClientIdFanout {
get { if ((_hasBits0 & 4) != 0) { return clientIdFanout_; } else { return ClientIdFanoutDefaultValue; } }
set {
_hasBits0 |= 4;
clientIdFanout_ = value;
}
}
/// <summary>Gets whether the "client_id_fanout" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasClientIdFanout {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "client_id_fanout" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearClientIdFanout() {
_hasBits0 &= ~4;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as BGSMessageOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(BGSMessageOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (CustomSelectShard != other.CustomSelectShard) return false;
if (CustomValidator != other.CustomValidator) return false;
if (ClientIdFanout != other.ClientIdFanout) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasCustomSelectShard) hash ^= CustomSelectShard.GetHashCode();
if (HasCustomValidator) hash ^= CustomValidator.GetHashCode();
if (HasClientIdFanout) hash ^= ClientIdFanout.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 (HasCustomSelectShard) {
output.WriteRawTag(8);
output.WriteBool(CustomSelectShard);
}
if (HasCustomValidator) {
output.WriteRawTag(16);
output.WriteBool(CustomValidator);
}
if (HasClientIdFanout) {
output.WriteRawTag(24);
output.WriteBool(ClientIdFanout);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasCustomSelectShard) {
size += 1 + 1;
}
if (HasCustomValidator) {
size += 1 + 1;
}
if (HasClientIdFanout) {
size += 1 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(BGSMessageOptions other) {
if (other == null) {
return;
}
if (other.HasCustomSelectShard) {
CustomSelectShard = other.CustomSelectShard;
}
if (other.HasCustomValidator) {
CustomValidator = other.CustomValidator;
}
if (other.HasClientIdFanout) {
ClientIdFanout = other.ClientIdFanout;
}
_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: {
CustomSelectShard = input.ReadBool();
break;
}
case 16: {
CustomValidator = input.ReadBool();
break;
}
case 24: {
ClientIdFanout = input.ReadBool();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code
@@ -1,14 +1,17 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/global_extensions/method_options.proto
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/global_extensions/method_options.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pbr = Google.Protobuf.Reflection;
namespace Bgs.Protocol
{
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 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/global_extensions/method_options.proto</summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
/// <summary>Holder for reflection information generated from bgs/low/pb/client/global_extensions/method_options.proto</summary>
public static partial class MethodOptionsReflection {
#region Descriptor
@@ -19,20 +22,176 @@ namespace Bgs.Protocol
private static pbr::FileDescriptor descriptor;
static MethodOptionsReflection() {
byte[] descriptorData = System.Convert.FromBase64String(
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjhiZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXRob2Rf",
"b3B0aW9ucy5wcm90bxIMYmdzLnByb3RvY29sGiBnb29nbGUvcHJvdG9idWYv",
"ZGVzY3JpcHRvci5wcm90bzozCgltZXRob2RfaWQSHi5nb29nbGUucHJvdG9i",
"dWYuTWV0aG9kT3B0aW9ucxjQhgMgASgNQiUKDWJuZXQucHJvdG9jb2xCEk1l",
"dGhvZE9wdGlvbnNQcm90b0gCYgZwcm90bzM="));
"ZGVzY3JpcHRvci5wcm90byIeChBCR1NNZXRob2RPcHRpb25zEgoKAmlkGAEg",
"ASgNOlgKDm1ldGhvZF9vcHRpb25zEh4uZ29vZ2xlLnByb3RvYnVmLk1ldGhv",
"ZE9wdGlvbnMYkL8FIAEoCzIeLmJncy5wcm90b2NvbC5CR1NNZXRob2RPcHRp",
"b25zQiMKDWJuZXQucHJvdG9jb2xCEk1ldGhvZE9wdGlvbnNQcm90bw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { pbr::FileDescriptor.DescriptorProtoFileDescriptor, },
new pbr::GeneratedClrTypeInfo(null, null));
new pbr::FileDescriptor[] { global::Google.Protobuf.DescriptorReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pb::Extension[] { MethodOptionsExtensions.MethodOptions_ }, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.BGSMethodOptions), global::Bgs.Protocol.BGSMethodOptions.Parser, new[]{ "Id" }, null, null, null, null)
}));
}
#endregion
}
/// <summary>Holder for extension identifiers generated from the top level of bgs/low/pb/client/global_extensions/method_options.proto</summary>
public static partial class MethodOptionsExtensions {
public static readonly pb::Extension<global::Google.Protobuf.MethodOptions, global::Bgs.Protocol.BGSMethodOptions> MethodOptions_ =
new pb::Extension<global::Google.Protobuf.MethodOptions, global::Bgs.Protocol.BGSMethodOptions>(90000, pb::FieldCodec.ForMessage(720002, global::Bgs.Protocol.BGSMethodOptions.Parser));
}
#region Messages
public sealed partial class BGSMethodOptions : pb::IMessage<BGSMethodOptions> {
private static readonly pb::MessageParser<BGSMethodOptions> _parser = new pb::MessageParser<BGSMethodOptions>(() => new BGSMethodOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<BGSMethodOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.MethodOptionsReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public BGSMethodOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public BGSMethodOptions(BGSMethodOptions other) : this() {
_hasBits0 = other._hasBits0;
id_ = other.id_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public BGSMethodOptions Clone() {
return new BGSMethodOptions(this);
}
/// <summary>Field number for the "id" field.</summary>
public const int IdFieldNumber = 1;
private readonly static uint IdDefaultValue = 0;
private uint id_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Id {
get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } }
set {
_hasBits0 |= 1;
id_ = value;
}
}
/// <summary>Gets whether the "id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasId {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearId() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as BGSMethodOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(BGSMethodOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
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 (HasId) {
output.WriteRawTag(8);
output.WriteUInt32(Id);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasId) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(BGSMethodOptions other) {
if (other == null) {
return;
}
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 8: {
Id = input.ReadUInt32();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code
@@ -0,0 +1,603 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/global_extensions/range.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 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/global_extensions/range.proto</summary>
public static partial class RangeReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/global_extensions/range.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static RangeReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Ci9iZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9yYW5nZS5w",
"cm90bxIMYmdzLnByb3RvY29sIiwKEFVuc2lnbmVkSW50UmFuZ2USCwoDbWlu",
"GAEgASgEEgsKA21heBgCIAEoBCIqCg5TaWduZWRJbnRSYW5nZRILCgNtaW4Y",
"ASABKAMSCwoDbWF4GAIgASgDIiYKCkZsb2F0UmFuZ2USCwoDbWluGAEgASgC",
"EgsKA21heBgCIAEoAg=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.UnsignedIntRange), global::Bgs.Protocol.UnsignedIntRange.Parser, new[]{ "Min", "Max" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.SignedIntRange), global::Bgs.Protocol.SignedIntRange.Parser, new[]{ "Min", "Max" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.FloatRange), global::Bgs.Protocol.FloatRange.Parser, new[]{ "Min", "Max" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class UnsignedIntRange : pb::IMessage<UnsignedIntRange> {
private static readonly pb::MessageParser<UnsignedIntRange> _parser = new pb::MessageParser<UnsignedIntRange>(() => new UnsignedIntRange());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<UnsignedIntRange> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.RangeReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UnsignedIntRange() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UnsignedIntRange(UnsignedIntRange other) : this() {
_hasBits0 = other._hasBits0;
min_ = other.min_;
max_ = other.max_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UnsignedIntRange Clone() {
return new UnsignedIntRange(this);
}
/// <summary>Field number for the "min" field.</summary>
public const int MinFieldNumber = 1;
private readonly static ulong MinDefaultValue = 0UL;
private ulong min_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong Min {
get { if ((_hasBits0 & 1) != 0) { return min_; } else { return MinDefaultValue; } }
set {
_hasBits0 |= 1;
min_ = value;
}
}
/// <summary>Gets whether the "min" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMin {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "min" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMin() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "max" field.</summary>
public const int MaxFieldNumber = 2;
private readonly static ulong MaxDefaultValue = 0UL;
private ulong max_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong Max {
get { if ((_hasBits0 & 2) != 0) { return max_; } else { return MaxDefaultValue; } }
set {
_hasBits0 |= 2;
max_ = value;
}
}
/// <summary>Gets whether the "max" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMax {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "max" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMax() {
_hasBits0 &= ~2;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as UnsignedIntRange);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(UnsignedIntRange other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Min != other.Min) return false;
if (Max != other.Max) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasMin) hash ^= Min.GetHashCode();
if (HasMax) hash ^= Max.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 (HasMin) {
output.WriteRawTag(8);
output.WriteUInt64(Min);
}
if (HasMax) {
output.WriteRawTag(16);
output.WriteUInt64(Max);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasMin) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Min);
}
if (HasMax) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Max);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(UnsignedIntRange other) {
if (other == null) {
return;
}
if (other.HasMin) {
Min = other.Min;
}
if (other.HasMax) {
Max = other.Max;
}
_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: {
Min = input.ReadUInt64();
break;
}
case 16: {
Max = input.ReadUInt64();
break;
}
}
}
}
}
public sealed partial class SignedIntRange : pb::IMessage<SignedIntRange> {
private static readonly pb::MessageParser<SignedIntRange> _parser = new pb::MessageParser<SignedIntRange>(() => new SignedIntRange());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SignedIntRange> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.RangeReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SignedIntRange() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SignedIntRange(SignedIntRange other) : this() {
_hasBits0 = other._hasBits0;
min_ = other.min_;
max_ = other.max_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SignedIntRange Clone() {
return new SignedIntRange(this);
}
/// <summary>Field number for the "min" field.</summary>
public const int MinFieldNumber = 1;
private readonly static long MinDefaultValue = 0L;
private long min_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long Min {
get { if ((_hasBits0 & 1) != 0) { return min_; } else { return MinDefaultValue; } }
set {
_hasBits0 |= 1;
min_ = value;
}
}
/// <summary>Gets whether the "min" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMin {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "min" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMin() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "max" field.</summary>
public const int MaxFieldNumber = 2;
private readonly static long MaxDefaultValue = 0L;
private long max_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long Max {
get { if ((_hasBits0 & 2) != 0) { return max_; } else { return MaxDefaultValue; } }
set {
_hasBits0 |= 2;
max_ = value;
}
}
/// <summary>Gets whether the "max" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMax {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "max" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMax() {
_hasBits0 &= ~2;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as SignedIntRange);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(SignedIntRange other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Min != other.Min) return false;
if (Max != other.Max) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasMin) hash ^= Min.GetHashCode();
if (HasMax) hash ^= Max.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 (HasMin) {
output.WriteRawTag(8);
output.WriteInt64(Min);
}
if (HasMax) {
output.WriteRawTag(16);
output.WriteInt64(Max);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasMin) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Min);
}
if (HasMax) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Max);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(SignedIntRange other) {
if (other == null) {
return;
}
if (other.HasMin) {
Min = other.Min;
}
if (other.HasMax) {
Max = other.Max;
}
_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: {
Min = input.ReadInt64();
break;
}
case 16: {
Max = input.ReadInt64();
break;
}
}
}
}
}
public sealed partial class FloatRange : pb::IMessage<FloatRange> {
private static readonly pb::MessageParser<FloatRange> _parser = new pb::MessageParser<FloatRange>(() => new FloatRange());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<FloatRange> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.RangeReflection.Descriptor.MessageTypes[2]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public FloatRange() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public FloatRange(FloatRange other) : this() {
_hasBits0 = other._hasBits0;
min_ = other.min_;
max_ = other.max_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public FloatRange Clone() {
return new FloatRange(this);
}
/// <summary>Field number for the "min" field.</summary>
public const int MinFieldNumber = 1;
private readonly static float MinDefaultValue = 0F;
private float min_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public float Min {
get { if ((_hasBits0 & 1) != 0) { return min_; } else { return MinDefaultValue; } }
set {
_hasBits0 |= 1;
min_ = value;
}
}
/// <summary>Gets whether the "min" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMin {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "min" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMin() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "max" field.</summary>
public const int MaxFieldNumber = 2;
private readonly static float MaxDefaultValue = 0F;
private float max_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public float Max {
get { if ((_hasBits0 & 2) != 0) { return max_; } else { return MaxDefaultValue; } }
set {
_hasBits0 |= 2;
max_ = value;
}
}
/// <summary>Gets whether the "max" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMax {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "max" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMax() {
_hasBits0 &= ~2;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as FloatRange);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(FloatRange other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Min, other.Min)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Max, other.Max)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasMin) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Min);
if (HasMax) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Max);
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 (HasMin) {
output.WriteRawTag(13);
output.WriteFloat(Min);
}
if (HasMax) {
output.WriteRawTag(21);
output.WriteFloat(Max);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasMin) {
size += 1 + 4;
}
if (HasMax) {
size += 1 + 4;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(FloatRange other) {
if (other == null) {
return;
}
if (other.HasMin) {
Min = other.Min;
}
if (other.HasMax) {
Max = other.Max;
}
_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: {
Min = input.ReadFloat();
break;
}
case 21: {
Max = input.ReadFloat();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code
@@ -1,14 +1,17 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/global_extensions/service_options.proto
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/global_extensions/service_options.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pbr = Google.Protobuf.Reflection;
namespace Bgs.Protocol
{
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 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/global_extensions/service_options.proto</summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
/// <summary>Holder for reflection information generated from bgs/low/pb/client/global_extensions/service_options.proto</summary>
public static partial class ServiceOptionsReflection {
#region Descriptor
@@ -19,22 +22,491 @@ namespace Bgs.Protocol
private static pbr::FileDescriptor descriptor;
static ServiceOptionsReflection() {
byte[] descriptorData = System.Convert.FromBase64String(
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9zZXJ2aWNl",
"X29wdGlvbnMucHJvdG8SDGJncy5wcm90b2NvbBogZ29vZ2xlL3Byb3RvYnVm",
"L2Rlc2NyaXB0b3IucHJvdG86Ugoob3JpZ2luYWxfZnVsbHlfcXVhbGlmaWVk",
"X2Rlc2NyaXB0b3JfbmFtZRIfLmdvb2dsZS5wcm90b2J1Zi5TZXJ2aWNlT3B0",
"aW9ucxjpByABKAk6NQoKc2VydmljZV9pZBIfLmdvb2dsZS5wcm90b2J1Zi5T",
"ZXJ2aWNlT3B0aW9ucxjQhgMgASgNQiYKDWJuZXQucHJvdG9jb2xCE1NlcnZp",
"Y2VPcHRpb25zUHJvdG9IAmIGcHJvdG8z"));
"L2Rlc2NyaXB0b3IucHJvdG8iUQoRQkdTU2VydmljZU9wdGlvbnMSFwoPZGVz",
"Y3JpcHRvcl9uYW1lGAEgASgJEg8KB3ZlcnNpb24YBCABKA0SEgoKc2hhcmRf",
"bmFtZRgFIAEoCSJNChFTREtTZXJ2aWNlT3B0aW9ucxIPCgdpbmJvdW5kGAEg",
"ASgIEhAKCG91dGJvdW5kGAIgASgIEhUKDXVzZV9jbGllbnRfaWQYAyABKAg6",
"WwoPc2VydmljZV9vcHRpb25zEh8uZ29vZ2xlLnByb3RvYnVmLlNlcnZpY2VP",
"cHRpb25zGJC/BSABKAsyHy5iZ3MucHJvdG9jb2wuQkdTU2VydmljZU9wdGlv",
"bnM6XwoTc2RrX3NlcnZpY2Vfb3B0aW9ucxIfLmdvb2dsZS5wcm90b2J1Zi5T",
"ZXJ2aWNlT3B0aW9ucxiRvwUgASgLMh8uYmdzLnByb3RvY29sLlNES1NlcnZp",
"Y2VPcHRpb25zQiQKDWJuZXQucHJvdG9jb2xCE1NlcnZpY2VPcHRpb25zUHJv",
"dG8="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { pbr::FileDescriptor.DescriptorProtoFileDescriptor, },
new pbr::GeneratedClrTypeInfo(null, null));
new pbr::FileDescriptor[] { global::Google.Protobuf.DescriptorReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pb::Extension[] { ServiceOptionsExtensions.ServiceOptions_, ServiceOptionsExtensions.SdkServiceOptions }, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.BGSServiceOptions), global::Bgs.Protocol.BGSServiceOptions.Parser, new[]{ "DescriptorName", "Version", "ShardName" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.SDKServiceOptions), global::Bgs.Protocol.SDKServiceOptions.Parser, new[]{ "Inbound", "Outbound", "UseClientId" }, null, null, null, null)
}));
}
#endregion
}
/// <summary>Holder for extension identifiers generated from the top level of bgs/low/pb/client/global_extensions/service_options.proto</summary>
public static partial class ServiceOptionsExtensions {
public static readonly pb::Extension<global::Google.Protobuf.ServiceOptions, global::Bgs.Protocol.BGSServiceOptions> ServiceOptions_ =
new pb::Extension<global::Google.Protobuf.ServiceOptions, global::Bgs.Protocol.BGSServiceOptions>(90000, pb::FieldCodec.ForMessage(720002, global::Bgs.Protocol.BGSServiceOptions.Parser));
public static readonly pb::Extension<global::Google.Protobuf.ServiceOptions, global::Bgs.Protocol.SDKServiceOptions> SdkServiceOptions =
new pb::Extension<global::Google.Protobuf.ServiceOptions, global::Bgs.Protocol.SDKServiceOptions>(90001, pb::FieldCodec.ForMessage(720010, global::Bgs.Protocol.SDKServiceOptions.Parser));
}
#region Messages
public sealed partial class BGSServiceOptions : pb::IMessage<BGSServiceOptions> {
private static readonly pb::MessageParser<BGSServiceOptions> _parser = new pb::MessageParser<BGSServiceOptions>(() => new BGSServiceOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<BGSServiceOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.ServiceOptionsReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public BGSServiceOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public BGSServiceOptions(BGSServiceOptions other) : this() {
_hasBits0 = other._hasBits0;
descriptorName_ = other.descriptorName_;
version_ = other.version_;
shardName_ = other.shardName_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public BGSServiceOptions Clone() {
return new BGSServiceOptions(this);
}
/// <summary>Field number for the "descriptor_name" field.</summary>
public const int DescriptorNameFieldNumber = 1;
private readonly static string DescriptorNameDefaultValue = "";
private string descriptorName_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string DescriptorName {
get { return descriptorName_ ?? DescriptorNameDefaultValue; }
set {
descriptorName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "descriptor_name" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasDescriptorName {
get { return descriptorName_ != null; }
}
/// <summary>Clears the value of the "descriptor_name" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearDescriptorName() {
descriptorName_ = null;
}
/// <summary>Field number for the "version" field.</summary>
public const int VersionFieldNumber = 4;
private readonly static uint VersionDefaultValue = 0;
private uint version_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Version {
get { if ((_hasBits0 & 1) != 0) { return version_; } else { return VersionDefaultValue; } }
set {
_hasBits0 |= 1;
version_ = value;
}
}
/// <summary>Gets whether the "version" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasVersion {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "version" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearVersion() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "shard_name" field.</summary>
public const int ShardNameFieldNumber = 5;
private readonly static string ShardNameDefaultValue = "";
private string shardName_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string ShardName {
get { return shardName_ ?? ShardNameDefaultValue; }
set {
shardName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "shard_name" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasShardName {
get { return shardName_ != null; }
}
/// <summary>Clears the value of the "shard_name" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearShardName() {
shardName_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as BGSServiceOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(BGSServiceOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (DescriptorName != other.DescriptorName) return false;
if (Version != other.Version) return false;
if (ShardName != other.ShardName) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasDescriptorName) hash ^= DescriptorName.GetHashCode();
if (HasVersion) hash ^= Version.GetHashCode();
if (HasShardName) hash ^= ShardName.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 (HasDescriptorName) {
output.WriteRawTag(10);
output.WriteString(DescriptorName);
}
if (HasVersion) {
output.WriteRawTag(32);
output.WriteUInt32(Version);
}
if (HasShardName) {
output.WriteRawTag(42);
output.WriteString(ShardName);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasDescriptorName) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(DescriptorName);
}
if (HasVersion) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Version);
}
if (HasShardName) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ShardName);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(BGSServiceOptions other) {
if (other == null) {
return;
}
if (other.HasDescriptorName) {
DescriptorName = other.DescriptorName;
}
if (other.HasVersion) {
Version = other.Version;
}
if (other.HasShardName) {
ShardName = other.ShardName;
}
_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: {
DescriptorName = input.ReadString();
break;
}
case 32: {
Version = input.ReadUInt32();
break;
}
case 42: {
ShardName = input.ReadString();
break;
}
}
}
}
}
public sealed partial class SDKServiceOptions : pb::IMessage<SDKServiceOptions> {
private static readonly pb::MessageParser<SDKServiceOptions> _parser = new pb::MessageParser<SDKServiceOptions>(() => new SDKServiceOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SDKServiceOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.ServiceOptionsReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SDKServiceOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SDKServiceOptions(SDKServiceOptions other) : this() {
_hasBits0 = other._hasBits0;
inbound_ = other.inbound_;
outbound_ = other.outbound_;
useClientId_ = other.useClientId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SDKServiceOptions Clone() {
return new SDKServiceOptions(this);
}
/// <summary>Field number for the "inbound" field.</summary>
public const int InboundFieldNumber = 1;
private readonly static bool InboundDefaultValue = false;
private bool inbound_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Inbound {
get { if ((_hasBits0 & 1) != 0) { return inbound_; } else { return InboundDefaultValue; } }
set {
_hasBits0 |= 1;
inbound_ = value;
}
}
/// <summary>Gets whether the "inbound" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasInbound {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "inbound" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearInbound() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "outbound" field.</summary>
public const int OutboundFieldNumber = 2;
private readonly static bool OutboundDefaultValue = false;
private bool outbound_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Outbound {
get { if ((_hasBits0 & 2) != 0) { return outbound_; } else { return OutboundDefaultValue; } }
set {
_hasBits0 |= 2;
outbound_ = value;
}
}
/// <summary>Gets whether the "outbound" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasOutbound {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "outbound" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearOutbound() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "use_client_id" field.</summary>
public const int UseClientIdFieldNumber = 3;
private readonly static bool UseClientIdDefaultValue = false;
private bool useClientId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool UseClientId {
get { if ((_hasBits0 & 4) != 0) { return useClientId_; } else { return UseClientIdDefaultValue; } }
set {
_hasBits0 |= 4;
useClientId_ = value;
}
}
/// <summary>Gets whether the "use_client_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasUseClientId {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "use_client_id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearUseClientId() {
_hasBits0 &= ~4;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as SDKServiceOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(SDKServiceOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Inbound != other.Inbound) return false;
if (Outbound != other.Outbound) return false;
if (UseClientId != other.UseClientId) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasInbound) hash ^= Inbound.GetHashCode();
if (HasOutbound) hash ^= Outbound.GetHashCode();
if (HasUseClientId) hash ^= UseClientId.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 (HasInbound) {
output.WriteRawTag(8);
output.WriteBool(Inbound);
}
if (HasOutbound) {
output.WriteRawTag(16);
output.WriteBool(Outbound);
}
if (HasUseClientId) {
output.WriteRawTag(24);
output.WriteBool(UseClientId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasInbound) {
size += 1 + 1;
}
if (HasOutbound) {
size += 1 + 1;
}
if (HasUseClientId) {
size += 1 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(SDKServiceOptions other) {
if (other == null) {
return;
}
if (other.HasInbound) {
Inbound = other.Inbound;
}
if (other.HasOutbound) {
Outbound = other.Outbound;
}
if (other.HasUseClientId) {
UseClientId = other.UseClientId;
}
_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: {
Inbound = input.ReadBool();
break;
}
case 16: {
Outbound = input.ReadBool();
break;
}
case 24: {
UseClientId = input.ReadBool();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code