//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/global_extensions/service_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/service_options.proto
public static partial class ServiceOptionsReflection {
#region Descriptor
/// File descriptor for bgs/low/pb/client/global_extensions/service_options.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ServiceOptionsReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9zZXJ2aWNl",
"X29wdGlvbnMucHJvdG8SDGJncy5wcm90b2NvbBogZ29vZ2xlL3Byb3RvYnVm",
"L2Rlc2NyaXB0b3IucHJvdG8iUQoRQkdTU2VydmljZU9wdGlvbnMSFwoPZGVz",
"Y3JpcHRvcl9uYW1lGAEgASgJEg8KB3ZlcnNpb24YBCABKA0SEgoKc2hhcmRf",
"bmFtZRgFIAEoCSJNChFTREtTZXJ2aWNlT3B0aW9ucxIPCgdpbmJvdW5kGAEg",
"ASgIEhAKCG91dGJvdW5kGAIgASgIEhUKDXVzZV9jbGllbnRfaWQYAyABKAg6",
"WwoPc2VydmljZV9vcHRpb25zEh8uZ29vZ2xlLnByb3RvYnVmLlNlcnZpY2VP",
"cHRpb25zGJC/BSABKAsyHy5iZ3MucHJvdG9jb2wuQkdTU2VydmljZU9wdGlv",
"bnM6XwoTc2RrX3NlcnZpY2Vfb3B0aW9ucxIfLmdvb2dsZS5wcm90b2J1Zi5T",
"ZXJ2aWNlT3B0aW9ucxiRvwUgASgLMh8uYmdzLnByb3RvY29sLlNES1NlcnZp",
"Y2VPcHRpb25zQiQKDWJuZXQucHJvdG9jb2xCE1NlcnZpY2VPcHRpb25zUHJv",
"dG8="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
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
}
/// Holder for extension identifiers generated from the top level of bgs/low/pb/client/global_extensions/service_options.proto
public static partial class ServiceOptionsExtensions {
public static readonly pb::Extension ServiceOptions_ =
new pb::Extension(90000, pb::FieldCodec.ForMessage(720002, global::Bgs.Protocol.BGSServiceOptions.Parser));
public static readonly pb::Extension SdkServiceOptions =
new pb::Extension(90001, pb::FieldCodec.ForMessage(720010, global::Bgs.Protocol.SDKServiceOptions.Parser));
}
#region Messages
public sealed partial class BGSServiceOptions : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BGSServiceOptions());
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.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);
}
/// Field number for the "descriptor_name" field.
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");
}
}
/// Gets whether the "descriptor_name" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasDescriptorName {
get { return descriptorName_ != null; }
}
/// Clears the value of the "descriptor_name" field
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearDescriptorName() {
descriptorName_ = null;
}
/// Field number for the "version" field.
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;
}
}
/// Gets whether the "version" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasVersion {
get { return (_hasBits0 & 1) != 0; }
}
/// Clears the value of the "version" field
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearVersion() {
_hasBits0 &= ~1;
}
/// Field number for the "shard_name" field.
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");
}
}
/// Gets whether the "shard_name" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasShardName {
get { return shardName_ != null; }
}
/// Clears the value of the "shard_name" field
[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 {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SDKServiceOptions());
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.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);
}
/// Field number for the "inbound" field.
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;
}
}
/// Gets whether the "inbound" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasInbound {
get { return (_hasBits0 & 1) != 0; }
}
/// Clears the value of the "inbound" field
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearInbound() {
_hasBits0 &= ~1;
}
/// Field number for the "outbound" field.
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;
}
}
/// Gets whether the "outbound" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasOutbound {
get { return (_hasBits0 & 2) != 0; }
}
/// Clears the value of the "outbound" field
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearOutbound() {
_hasBits0 &= ~2;
}
/// Field number for the "use_client_id" field.
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;
}
}
/// Gets whether the "use_client_id" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasUseClientId {
get { return (_hasBits0 & 4) != 0; }
}
/// Clears the value of the "use_client_id" field
[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