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
+280
View File
@@ -0,0 +1,280 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/api/client/v1/channel_id.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.Channel.V1 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/api/client/v1/channel_id.proto</summary>
public static partial class ChannelIdReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/api/client/v1/channel_id.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ChannelIdReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjBiZ3MvbG93L3BiL2NsaWVudC9hcGkvY2xpZW50L3YxL2NoYW5uZWxfaWQu",
"cHJvdG8SF2Jncy5wcm90b2NvbC5jaGFubmVsLnYxGiFiZ3MvbG93L3BiL2Ns",
"aWVudC9ycGNfdHlwZXMucHJvdG8aOWJncy9sb3cvcGIvY2xpZW50L2dsb2Jh",
"bF9leHRlbnNpb25zL21lc3NhZ2Vfb3B0aW9ucy5wcm90bxo3YmdzL2xvdy9w",
"Yi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvZmllbGRfb3B0aW9ucy5wcm90",
"bxo4YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvbWV0aG9k",
"X29wdGlvbnMucHJvdG8aOWJncy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRl",
"bnNpb25zL3NlcnZpY2Vfb3B0aW9ucy5wcm90byJUCglDaGFubmVsSWQSDAoE",
"dHlwZRgBIAEoDRIlCgRob3N0GAIgASgLMhcuYmdzLnByb3RvY29sLlByb2Nl",
"c3NJZBIKCgJpZBgDIAEoBzoGgvkrAggB"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Channel.V1.ChannelId), global::Bgs.Protocol.Channel.V1.ChannelId.Parser, new[]{ "Type", "Host", "Id" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class ChannelId : pb::IMessage<ChannelId> {
private static readonly pb::MessageParser<ChannelId> _parser = new pb::MessageParser<ChannelId>(() => new ChannelId());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ChannelId> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Channel.V1.ChannelIdReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ChannelId() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ChannelId(ChannelId other) : this() {
_hasBits0 = other._hasBits0;
type_ = other.type_;
host_ = other.HasHost ? other.host_.Clone() : null;
id_ = other.id_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ChannelId Clone() {
return new ChannelId(this);
}
/// <summary>Field number for the "type" field.</summary>
public const int TypeFieldNumber = 1;
private readonly static uint TypeDefaultValue = 0;
private uint type_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Type {
get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } }
set {
_hasBits0 |= 1;
type_ = value;
}
}
/// <summary>Gets whether the "type" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasType {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "type" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearType() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "host" field.</summary>
public const int HostFieldNumber = 2;
private global::Bgs.Protocol.ProcessId host_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.ProcessId Host {
get { return host_; }
set {
host_ = value;
}
}
/// <summary>Gets whether the host field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasHost {
get { return host_ != null; }
}
/// <summary>Clears the value of the host field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearHost() {
host_ = null;
}
/// <summary>Field number for the "id" field.</summary>
public const int IdFieldNumber = 3;
private readonly static uint IdDefaultValue = 0;
private uint id_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Id {
get { if ((_hasBits0 & 2) != 0) { return id_; } else { return IdDefaultValue; } }
set {
_hasBits0 |= 2;
id_ = value;
}
}
/// <summary>Gets whether the "id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasId {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearId() {
_hasBits0 &= ~2;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as ChannelId);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(ChannelId other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Type != other.Type) return false;
if (!object.Equals(Host, other.Host)) return false;
if (Id != other.Id) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasType) hash ^= Type.GetHashCode();
if (HasHost) hash ^= Host.GetHashCode();
if (HasId) hash ^= Id.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
if (HasType) {
output.WriteRawTag(8);
output.WriteUInt32(Type);
}
if (HasHost) {
output.WriteRawTag(18);
output.WriteMessage(Host);
}
if (HasId) {
output.WriteRawTag(29);
output.WriteFixed32(Id);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasType) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Type);
}
if (HasHost) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Host);
}
if (HasId) {
size += 1 + 4;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(ChannelId other) {
if (other == null) {
return;
}
if (other.HasType) {
Type = other.Type;
}
if (other.HasHost) {
if (!HasHost) {
Host = new global::Bgs.Protocol.ProcessId();
}
Host.MergeFrom(other.Host);
}
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: {
Type = input.ReadUInt32();
break;
}
case 18: {
if (!HasHost) {
Host = new global::Bgs.Protocol.ProcessId();
}
input.ReadMessage(Host);
break;
}
case 29: {
Id = input.ReadFixed32();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code
@@ -0,0 +1,804 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/api/client/v2/attribute_types.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.V2 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/api/client/v2/attribute_types.proto</summary>
public static partial class AttributeTypesReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/api/client/v2/attribute_types.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static AttributeTypesReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjViZ3MvbG93L3BiL2NsaWVudC9hcGkvY2xpZW50L3YyL2F0dHJpYnV0ZV90",
"eXBlcy5wcm90bxIPYmdzLnByb3RvY29sLnYyIpcBCgdWYXJpYW50EhQKCmJv",
"b2xfdmFsdWUYASABKAhIABITCglpbnRfdmFsdWUYAiABKANIABIVCgtmbG9h",
"dF92YWx1ZRgDIAEoAUgAEhYKDHN0cmluZ192YWx1ZRgEIAEoCUgAEhQKCmJs",
"b2JfdmFsdWUYBSABKAxIABIUCgp1aW50X3ZhbHVlGAYgASgESABCBgoEdHlw",
"ZSJCCglBdHRyaWJ1dGUSDAoEbmFtZRgBIAEoCRInCgV2YWx1ZRgCIAEoCzIY",
"LmJncy5wcm90b2NvbC52Mi5WYXJpYW50ItwBCg9BdHRyaWJ1dGVGaWx0ZXIS",
"QgoCb3AYASABKA4yKi5iZ3MucHJvdG9jb2wudjIuQXR0cmlidXRlRmlsdGVy",
"Lk9wZXJhdGlvbjoKTUFUQ0hfTk9ORRItCglhdHRyaWJ1dGUYAiADKAsyGi5i",
"Z3MucHJvdG9jb2wudjIuQXR0cmlidXRlIlYKCU9wZXJhdGlvbhIOCgpNQVRD",
"SF9OT05FEAASDQoJTUFUQ0hfQU5ZEAESDQoJTUFUQ0hfQUxMEAISGwoXTUFU",
"Q0hfQUxMX01PU1RfU1BFQ0lGSUMQAw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.V2.Variant), global::Bgs.Protocol.V2.Variant.Parser, new[]{ "BoolValue", "IntValue", "FloatValue", "StringValue", "BlobValue", "UintValue" }, new[]{ "Type" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.V2.Attribute), global::Bgs.Protocol.V2.Attribute.Parser, new[]{ "Name", "Value" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.V2.AttributeFilter), global::Bgs.Protocol.V2.AttributeFilter.Parser, new[]{ "Op", "Attribute" }, null, new[]{ typeof(global::Bgs.Protocol.V2.AttributeFilter.Types.Operation) }, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class Variant : pb::IMessage<Variant> {
private static readonly pb::MessageParser<Variant> _parser = new pb::MessageParser<Variant>(() => new Variant());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<Variant> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.V2.AttributeTypesReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Variant() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Variant(Variant other) : this() {
_hasBits0 = other._hasBits0;
switch (other.TypeCase) {
case TypeOneofCase.BoolValue:
BoolValue = other.BoolValue;
break;
case TypeOneofCase.IntValue:
IntValue = other.IntValue;
break;
case TypeOneofCase.FloatValue:
FloatValue = other.FloatValue;
break;
case TypeOneofCase.StringValue:
StringValue = other.StringValue;
break;
case TypeOneofCase.BlobValue:
BlobValue = other.BlobValue;
break;
case TypeOneofCase.UintValue:
UintValue = other.UintValue;
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Variant Clone() {
return new Variant(this);
}
/// <summary>Field number for the "bool_value" field.</summary>
public const int BoolValueFieldNumber = 1;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool BoolValue {
get { return HasBoolValue ? (bool) type_ : false; }
set {
type_ = value;
typeCase_ = TypeOneofCase.BoolValue;
}
}
/// <summary>Gets whether the "bool_value" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasBoolValue {
get { return typeCase_ == TypeOneofCase.BoolValue; }
}
/// <summary> Clears the value of the oneof if it's currently set to "bool_value" </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearBoolValue() {
if (HasBoolValue) {
ClearType();
}
}
/// <summary>Field number for the "int_value" field.</summary>
public const int IntValueFieldNumber = 2;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long IntValue {
get { return HasIntValue ? (long) type_ : 0L; }
set {
type_ = value;
typeCase_ = TypeOneofCase.IntValue;
}
}
/// <summary>Gets whether the "int_value" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasIntValue {
get { return typeCase_ == TypeOneofCase.IntValue; }
}
/// <summary> Clears the value of the oneof if it's currently set to "int_value" </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearIntValue() {
if (HasIntValue) {
ClearType();
}
}
/// <summary>Field number for the "float_value" field.</summary>
public const int FloatValueFieldNumber = 3;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public double FloatValue {
get { return HasFloatValue ? (double) type_ : 0D; }
set {
type_ = value;
typeCase_ = TypeOneofCase.FloatValue;
}
}
/// <summary>Gets whether the "float_value" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasFloatValue {
get { return typeCase_ == TypeOneofCase.FloatValue; }
}
/// <summary> Clears the value of the oneof if it's currently set to "float_value" </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearFloatValue() {
if (HasFloatValue) {
ClearType();
}
}
/// <summary>Field number for the "string_value" field.</summary>
public const int StringValueFieldNumber = 4;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string StringValue {
get { return HasStringValue ? (string) type_ : ""; }
set {
type_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
typeCase_ = TypeOneofCase.StringValue;
}
}
/// <summary>Gets whether the "string_value" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasStringValue {
get { return typeCase_ == TypeOneofCase.StringValue; }
}
/// <summary> Clears the value of the oneof if it's currently set to "string_value" </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearStringValue() {
if (HasStringValue) {
ClearType();
}
}
/// <summary>Field number for the "blob_value" field.</summary>
public const int BlobValueFieldNumber = 5;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pb::ByteString BlobValue {
get { return HasBlobValue ? (pb::ByteString) type_ : pb::ByteString.Empty; }
set {
type_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
typeCase_ = TypeOneofCase.BlobValue;
}
}
/// <summary>Gets whether the "blob_value" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasBlobValue {
get { return typeCase_ == TypeOneofCase.BlobValue; }
}
/// <summary> Clears the value of the oneof if it's currently set to "blob_value" </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearBlobValue() {
if (HasBlobValue) {
ClearType();
}
}
/// <summary>Field number for the "uint_value" field.</summary>
public const int UintValueFieldNumber = 6;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong UintValue {
get { return HasUintValue ? (ulong) type_ : 0UL; }
set {
type_ = value;
typeCase_ = TypeOneofCase.UintValue;
}
}
/// <summary>Gets whether the "uint_value" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasUintValue {
get { return typeCase_ == TypeOneofCase.UintValue; }
}
/// <summary> Clears the value of the oneof if it's currently set to "uint_value" </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearUintValue() {
if (HasUintValue) {
ClearType();
}
}
private object type_;
/// <summary>Enum of possible cases for the "type" oneof.</summary>
public enum TypeOneofCase {
None = 0,
BoolValue = 1,
IntValue = 2,
FloatValue = 3,
StringValue = 4,
BlobValue = 5,
UintValue = 6,
}
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 Variant);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Variant other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (BoolValue != other.BoolValue) return false;
if (IntValue != other.IntValue) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FloatValue, other.FloatValue)) return false;
if (StringValue != other.StringValue) return false;
if (BlobValue != other.BlobValue) return false;
if (UintValue != other.UintValue) 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 (HasBoolValue) hash ^= BoolValue.GetHashCode();
if (HasIntValue) hash ^= IntValue.GetHashCode();
if (HasFloatValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FloatValue);
if (HasStringValue) hash ^= StringValue.GetHashCode();
if (HasBlobValue) hash ^= BlobValue.GetHashCode();
if (HasUintValue) hash ^= UintValue.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 (HasBoolValue) {
output.WriteRawTag(8);
output.WriteBool(BoolValue);
}
if (HasIntValue) {
output.WriteRawTag(16);
output.WriteInt64(IntValue);
}
if (HasFloatValue) {
output.WriteRawTag(25);
output.WriteDouble(FloatValue);
}
if (HasStringValue) {
output.WriteRawTag(34);
output.WriteString(StringValue);
}
if (HasBlobValue) {
output.WriteRawTag(42);
output.WriteBytes(BlobValue);
}
if (HasUintValue) {
output.WriteRawTag(48);
output.WriteUInt64(UintValue);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasBoolValue) {
size += 1 + 1;
}
if (HasIntValue) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(IntValue);
}
if (HasFloatValue) {
size += 1 + 8;
}
if (HasStringValue) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(StringValue);
}
if (HasBlobValue) {
size += 1 + pb::CodedOutputStream.ComputeBytesSize(BlobValue);
}
if (HasUintValue) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(UintValue);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Variant other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.BoolValue:
BoolValue = other.BoolValue;
break;
case TypeOneofCase.IntValue:
IntValue = other.IntValue;
break;
case TypeOneofCase.FloatValue:
FloatValue = other.FloatValue;
break;
case TypeOneofCase.StringValue:
StringValue = other.StringValue;
break;
case TypeOneofCase.BlobValue:
BlobValue = other.BlobValue;
break;
case TypeOneofCase.UintValue:
UintValue = other.UintValue;
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 8: {
BoolValue = input.ReadBool();
break;
}
case 16: {
IntValue = input.ReadInt64();
break;
}
case 25: {
FloatValue = input.ReadDouble();
break;
}
case 34: {
StringValue = input.ReadString();
break;
}
case 42: {
BlobValue = input.ReadBytes();
break;
}
case 48: {
UintValue = input.ReadUInt64();
break;
}
}
}
}
}
public sealed partial class Attribute : pb::IMessage<Attribute> {
private static readonly pb::MessageParser<Attribute> _parser = new pb::MessageParser<Attribute>(() => new Attribute());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<Attribute> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.V2.AttributeTypesReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Attribute() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Attribute(Attribute other) : this() {
name_ = other.name_;
value_ = other.HasValue ? other.value_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public Attribute Clone() {
return new Attribute(this);
}
/// <summary>Field number for the "name" field.</summary>
public const int NameFieldNumber = 1;
private readonly static string NameDefaultValue = "";
private string name_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string Name {
get { return name_ ?? NameDefaultValue; }
set {
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "name" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasName {
get { return name_ != null; }
}
/// <summary>Clears the value of the "name" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearName() {
name_ = null;
}
/// <summary>Field number for the "value" field.</summary>
public const int ValueFieldNumber = 2;
private global::Bgs.Protocol.V2.Variant value_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.V2.Variant Value {
get { return value_; }
set {
value_ = value;
}
}
/// <summary>Gets whether the value field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasValue {
get { return value_ != null; }
}
/// <summary>Clears the value of the value field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearValue() {
value_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as Attribute);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(Attribute other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Name != other.Name) return false;
if (!object.Equals(Value, other.Value)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasName) hash ^= Name.GetHashCode();
if (HasValue) hash ^= Value.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 (HasName) {
output.WriteRawTag(10);
output.WriteString(Name);
}
if (HasValue) {
output.WriteRawTag(18);
output.WriteMessage(Value);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasName) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
if (HasValue) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(Attribute other) {
if (other == null) {
return;
}
if (other.HasName) {
Name = other.Name;
}
if (other.HasValue) {
if (!HasValue) {
Value = new global::Bgs.Protocol.V2.Variant();
}
Value.MergeFrom(other.Value);
}
_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: {
Name = input.ReadString();
break;
}
case 18: {
if (!HasValue) {
Value = new global::Bgs.Protocol.V2.Variant();
}
input.ReadMessage(Value);
break;
}
}
}
}
}
public sealed partial class AttributeFilter : pb::IMessage<AttributeFilter> {
private static readonly pb::MessageParser<AttributeFilter> _parser = new pb::MessageParser<AttributeFilter>(() => new AttributeFilter());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<AttributeFilter> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.V2.AttributeTypesReflection.Descriptor.MessageTypes[2]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public AttributeFilter() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public AttributeFilter(AttributeFilter other) : this() {
_hasBits0 = other._hasBits0;
op_ = other.op_;
attribute_ = other.attribute_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public AttributeFilter Clone() {
return new AttributeFilter(this);
}
/// <summary>Field number for the "op" field.</summary>
public const int OpFieldNumber = 1;
private readonly static global::Bgs.Protocol.V2.AttributeFilter.Types.Operation OpDefaultValue = global::Bgs.Protocol.V2.AttributeFilter.Types.Operation.MatchNone;
private global::Bgs.Protocol.V2.AttributeFilter.Types.Operation op_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.V2.AttributeFilter.Types.Operation Op {
get { if ((_hasBits0 & 1) != 0) { return op_; } else { return OpDefaultValue; } }
set {
_hasBits0 |= 1;
op_ = value;
}
}
/// <summary>Gets whether the "op" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasOp {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "op" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearOp() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "attribute" field.</summary>
public const int AttributeFieldNumber = 2;
private static readonly pb::FieldCodec<global::Bgs.Protocol.V2.Attribute> _repeated_attribute_codec
= pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.V2.Attribute.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute> attribute_ = new pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute> Attribute {
get { return attribute_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as AttributeFilter);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(AttributeFilter other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Op != other.Op) return false;
if(!attribute_.Equals(other.attribute_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasOp) hash ^= Op.GetHashCode();
hash ^= attribute_.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 (HasOp) {
output.WriteRawTag(8);
output.WriteEnum((int) Op);
}
attribute_.WriteTo(output, _repeated_attribute_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasOp) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Op);
}
size += attribute_.CalculateSize(_repeated_attribute_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(AttributeFilter other) {
if (other == null) {
return;
}
if (other.HasOp) {
Op = other.Op;
}
attribute_.Add(other.attribute_);
_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: {
Op = (global::Bgs.Protocol.V2.AttributeFilter.Types.Operation) input.ReadEnum();
break;
}
case 18: {
attribute_.AddEntriesFrom(input, _repeated_attribute_codec);
break;
}
}
}
}
#region Nested types
/// <summary>Container for nested types declared in the AttributeFilter message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static partial class Types {
public enum Operation {
[pbr::OriginalName("MATCH_NONE")] MatchNone = 0,
[pbr::OriginalName("MATCH_ANY")] MatchAny = 1,
[pbr::OriginalName("MATCH_ALL")] MatchAll = 2,
[pbr::OriginalName("MATCH_ALL_MOST_SPECIFIC")] MatchAllMostSpecific = 3,
}
}
#endregion
}
#endregion
}
#endregion Designer generated code
@@ -0,0 +1,416 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/api/client/v2/report_service.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Bgs.Protocol.Report.V2 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/api/client/v2/report_service.proto</summary>
public static partial class ReportServiceReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/api/client/v2/report_service.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ReportServiceReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjRiZ3MvbG93L3BiL2NsaWVudC9hcGkvY2xpZW50L3YyL3JlcG9ydF9zZXJ2",
"aWNlLnByb3RvEhZiZ3MucHJvdG9jb2wucmVwb3J0LnYyGiViZ3MvbG93L3Bi",
"L2NsaWVudC9hY2NvdW50X3R5cGVzLnByb3RvGjJiZ3MvbG93L3BiL2NsaWVu",
"dC9hcGkvY2xpZW50L3YyL3JlcG9ydF90eXBlcy5wcm90bxohYmdzL2xvdy9w",
"Yi9jbGllbnQvcnBjX3R5cGVzLnByb3RvGjliZ3MvbG93L3BiL2NsaWVudC9n",
"bG9iYWxfZXh0ZW5zaW9ucy9tZXNzYWdlX29wdGlvbnMucHJvdG8aN2Jncy9s",
"b3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL2ZpZWxkX29wdGlvbnMu",
"cHJvdG8aOGJncy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL21l",
"dGhvZF9vcHRpb25zLnByb3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxf",
"ZXh0ZW5zaW9ucy9zZXJ2aWNlX29wdGlvbnMucHJvdG8igAIKE1N1Ym1pdFJl",
"cG9ydFJlcXVlc3QSNAoIYWdlbnRfaWQYASABKAsyIi5iZ3MucHJvdG9jb2wu",
"YWNjb3VudC52MS5BY2NvdW50SWQSGAoQdXNlcl9kZXNjcmlwdGlvbhgCIAEo",
"CRIPCgdwcm9ncmFtGAMgASgNEjsKDHVzZXJfb3B0aW9ucxgKIAEoCzIjLmJn",
"cy5wcm90b2NvbC5yZXBvcnQudjIuVXNlck9wdGlvbnNIABI7CgxjbHViX29w",
"dGlvbnMYCyABKAsyIy5iZ3MucHJvdG9jb2wucmVwb3J0LnYyLkNsdWJPcHRp",
"b25zSAA6BoL5KwIQAUIGCgR0eXBlMqkBCg1SZXBvcnRTZXJ2aWNlElkKDFN1",
"Ym1pdFJlcG9ydBIrLmJncy5wcm90b2NvbC5yZXBvcnQudjIuU3VibWl0UmVw",
"b3J0UmVxdWVzdBoULmJncy5wcm90b2NvbC5Ob0RhdGEiBoL5KwIIARo9gvkr",
"JwolYm5ldC5wcm90b2NvbC5yZXBvcnQudjIuUmVwb3J0U2VydmljZYL5Kwgq",
"BnJlcG9ydIr5KwIQAUIDgAEA"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor, global::Bgs.Protocol.Report.V2.ReportTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Report.V2.SubmitReportRequest), global::Bgs.Protocol.Report.V2.SubmitReportRequest.Parser, new[]{ "AgentId", "UserDescription", "Program", "UserOptions", "ClubOptions" }, new[]{ "Type" }, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class SubmitReportRequest : pb::IMessage<SubmitReportRequest> {
private static readonly pb::MessageParser<SubmitReportRequest> _parser = new pb::MessageParser<SubmitReportRequest>(() => new SubmitReportRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SubmitReportRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Report.V2.ReportServiceReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubmitReportRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubmitReportRequest(SubmitReportRequest other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
userDescription_ = other.userDescription_;
program_ = other.program_;
switch (other.TypeCase) {
case TypeOneofCase.UserOptions:
UserOptions = other.UserOptions.Clone();
break;
case TypeOneofCase.ClubOptions:
ClubOptions = other.ClubOptions.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubmitReportRequest Clone() {
return new SubmitReportRequest(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.Account.V1.AccountId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Account.V1.AccountId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <summary>Gets whether the agent_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAgentId {
get { return agentId_ != null; }
}
/// <summary>Clears the value of the agent_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAgentId() {
agentId_ = null;
}
/// <summary>Field number for the "user_description" field.</summary>
public const int UserDescriptionFieldNumber = 2;
private readonly static string UserDescriptionDefaultValue = "";
private string userDescription_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public string UserDescription {
get { return userDescription_ ?? UserDescriptionDefaultValue; }
set {
userDescription_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "user_description" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasUserDescription {
get { return userDescription_ != null; }
}
/// <summary>Clears the value of the "user_description" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearUserDescription() {
userDescription_ = null;
}
/// <summary>Field number for the "program" field.</summary>
public const int ProgramFieldNumber = 3;
private readonly static uint ProgramDefaultValue = 0;
private uint program_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Program {
get { if ((_hasBits0 & 1) != 0) { return program_; } else { return ProgramDefaultValue; } }
set {
_hasBits0 |= 1;
program_ = value;
}
}
/// <summary>Gets whether the "program" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasProgram {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "program" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearProgram() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "user_options" field.</summary>
public const int UserOptionsFieldNumber = 10;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Report.V2.UserOptions UserOptions {
get { return HasUserOptions ? (global::Bgs.Protocol.Report.V2.UserOptions) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.UserOptions;
}
}
/// <summary>Gets whether the "user_options" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasUserOptions {
get { return typeCase_ == TypeOneofCase.UserOptions; }
}
/// <summary> Clears the value of the oneof if it's currently set to "user_options" </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearUserOptions() {
if (HasUserOptions) {
ClearType();
}
}
/// <summary>Field number for the "club_options" field.</summary>
public const int ClubOptionsFieldNumber = 11;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Report.V2.ClubOptions ClubOptions {
get { return HasClubOptions ? (global::Bgs.Protocol.Report.V2.ClubOptions) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.ClubOptions;
}
}
/// <summary>Gets whether the "club_options" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasClubOptions {
get { return typeCase_ == TypeOneofCase.ClubOptions; }
}
/// <summary> Clears the value of the oneof if it's currently set to "club_options" </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearClubOptions() {
if (HasClubOptions) {
ClearType();
}
}
private object type_;
/// <summary>Enum of possible cases for the "type" oneof.</summary>
public enum TypeOneofCase {
None = 0,
UserOptions = 10,
ClubOptions = 11,
}
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 SubmitReportRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(SubmitReportRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (UserDescription != other.UserDescription) return false;
if (Program != other.Program) return false;
if (!object.Equals(UserOptions, other.UserOptions)) return false;
if (!object.Equals(ClubOptions, other.ClubOptions)) 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 (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasUserDescription) hash ^= UserDescription.GetHashCode();
if (HasProgram) hash ^= Program.GetHashCode();
if (HasUserOptions) hash ^= UserOptions.GetHashCode();
if (HasClubOptions) hash ^= ClubOptions.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 (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasUserDescription) {
output.WriteRawTag(18);
output.WriteString(UserDescription);
}
if (HasProgram) {
output.WriteRawTag(24);
output.WriteUInt32(Program);
}
if (HasUserOptions) {
output.WriteRawTag(82);
output.WriteMessage(UserOptions);
}
if (HasClubOptions) {
output.WriteRawTag(90);
output.WriteMessage(ClubOptions);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasUserDescription) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(UserDescription);
}
if (HasProgram) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Program);
}
if (HasUserOptions) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserOptions);
}
if (HasClubOptions) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClubOptions);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(SubmitReportRequest other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Account.V1.AccountId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasUserDescription) {
UserDescription = other.UserDescription;
}
if (other.HasProgram) {
Program = other.Program;
}
switch (other.TypeCase) {
case TypeOneofCase.UserOptions:
if (UserOptions == null) {
UserOptions = new global::Bgs.Protocol.Report.V2.UserOptions();
}
UserOptions.MergeFrom(other.UserOptions);
break;
case TypeOneofCase.ClubOptions:
if (ClubOptions == null) {
ClubOptions = new global::Bgs.Protocol.Report.V2.ClubOptions();
}
ClubOptions.MergeFrom(other.ClubOptions);
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 (!HasAgentId) {
AgentId = new global::Bgs.Protocol.Account.V1.AccountId();
}
input.ReadMessage(AgentId);
break;
}
case 18: {
UserDescription = input.ReadString();
break;
}
case 24: {
Program = input.ReadUInt32();
break;
}
case 82: {
global::Bgs.Protocol.Report.V2.UserOptions subBuilder = new global::Bgs.Protocol.Report.V2.UserOptions();
if (HasUserOptions) {
subBuilder.MergeFrom(UserOptions);
}
input.ReadMessage(subBuilder);
UserOptions = subBuilder;
break;
}
case 90: {
global::Bgs.Protocol.Report.V2.ClubOptions subBuilder = new global::Bgs.Protocol.Report.V2.ClubOptions();
if (HasClubOptions) {
subBuilder.MergeFrom(ClubOptions);
}
input.ReadMessage(subBuilder);
ClubOptions = subBuilder;
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code
@@ -0,0 +1,865 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/api/client/v2/report_types.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.Report.V2 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/api/client/v2/report_types.proto</summary>
public static partial class ReportTypesReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/api/client/v2/report_types.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ReportTypesReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjJiZ3MvbG93L3BiL2NsaWVudC9hcGkvY2xpZW50L3YyL3JlcG9ydF90eXBl",
"cy5wcm90bxIWYmdzLnByb3RvY29sLnJlcG9ydC52MholYmdzL2xvdy9wYi9j",
"bGllbnQvYWNjb3VudF90eXBlcy5wcm90bxohYmdzL2xvdy9wYi9jbGllbnQv",
"cnBjX3R5cGVzLnByb3RvGiViZ3MvbG93L3BiL2NsaWVudC9tZXNzYWdlX3R5",
"cGVzLnByb3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9u",
"cy9tZXNzYWdlX29wdGlvbnMucHJvdG8aN2Jncy9sb3cvcGIvY2xpZW50L2ds",
"b2JhbF9leHRlbnNpb25zL2ZpZWxkX29wdGlvbnMucHJvdG8aOGJncy9sb3cv",
"cGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL21ldGhvZF9vcHRpb25zLnBy",
"b3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9zZXJ2",
"aWNlX29wdGlvbnMucHJvdG8iQwoKUmVwb3J0SXRlbRItCgptZXNzYWdlX2lk",
"GAEgASgLMhcuYmdzLnByb3RvY29sLk1lc3NhZ2VJZEgAQgYKBHR5cGUi/wEK",
"C1VzZXJPcHRpb25zEjUKCXRhcmdldF9pZBgBIAEoCzIiLmJncy5wcm90b2Nv",
"bC5hY2NvdW50LnYxLkFjY291bnRJZBJACgR0eXBlGAIgASgOMiEuYmdzLnBy",
"b3RvY29sLnJlcG9ydC52Mi5Jc3N1ZVR5cGU6D0lTU1VFX1RZUEVfU1BBTRJF",
"CgZzb3VyY2UYAyABKA4yIi5iZ3MucHJvdG9jb2wucmVwb3J0LnYyLlVzZXJT",
"b3VyY2U6EVVTRVJfU09VUkNFX09USEVSEjAKBGl0ZW0YBCABKAsyIi5iZ3Mu",
"cHJvdG9jb2wucmVwb3J0LnYyLlJlcG9ydEl0ZW0i7AEKC0NsdWJPcHRpb25z",
"Eg8KB2NsdWJfaWQYASABKAQSEQoJc3RyZWFtX2lkGAIgASgEEkAKBHR5cGUY",
"AyABKA4yIS5iZ3MucHJvdG9jb2wucmVwb3J0LnYyLklzc3VlVHlwZToPSVNT",
"VUVfVFlQRV9TUEFNEkUKBnNvdXJjZRgEIAEoDjIiLmJncy5wcm90b2NvbC5y",
"ZXBvcnQudjIuQ2x1YlNvdXJjZToRQ0xVQl9TT1VSQ0VfT1RIRVISMAoEaXRl",
"bRgFIAEoCzIiLmJncy5wcm90b2NvbC5yZXBvcnQudjIuUmVwb3J0SXRlbSqN",
"AQoJSXNzdWVUeXBlEhMKD0lTU1VFX1RZUEVfU1BBTRAAEhkKFUlTU1VFX1RZ",
"UEVfSEFSQVNTTUVOVBABEiAKHElTU1VFX1RZUEVfT0ZGRU5TSVZFX0NPTlRF",
"TlQQAxIWChJJU1NVRV9UWVBFX0hBQ0tJTkcQBBIWChJJU1NVRV9UWVBFX0JP",
"VFRJTkcQBSrBAQoKVXNlclNvdXJjZRIVChFVU0VSX1NPVVJDRV9PVEhFUhAA",
"EhcKE1VTRVJfU09VUkNFX1dISVNQRVIQARIXChNVU0VSX1NPVVJDRV9QUk9G",
"SUxFEAISGgoWVVNFUl9TT1VSQ0VfQkFUVExFX1RBRxADEhQKEFVTRVJfU09V",
"UkNFX0NIQVQQBBIhCh1VU0VSX1NPVVJDRV9GUklFTkRfSU5WSVRBVElPThAF",
"EhUKEVVTRVJfU09VUkNFX1ZPSUNFEAYqdAoKQ2x1YlNvdXJjZRIVChFDTFVC",
"X1NPVVJDRV9PVEhFUhAAEhcKE0NMVUJfU09VUkNFX01FU1NBR0UQARIZChVD",
"TFVCX1NPVVJDRV9DTFVCX05BTUUQAhIbChdDTFVCX1NPVVJDRV9TVFJFQU1f",
"TkFNRRADQgOAAQA="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Bgs.Protocol.Report.V2.IssueType), typeof(global::Bgs.Protocol.Report.V2.UserSource), typeof(global::Bgs.Protocol.Report.V2.ClubSource), }, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Report.V2.ReportItem), global::Bgs.Protocol.Report.V2.ReportItem.Parser, new[]{ "MessageId" }, new[]{ "Type" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Report.V2.UserOptions), global::Bgs.Protocol.Report.V2.UserOptions.Parser, new[]{ "TargetId", "Type", "Source", "Item" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Report.V2.ClubOptions), global::Bgs.Protocol.Report.V2.ClubOptions.Parser, new[]{ "ClubId", "StreamId", "Type", "Source", "Item" }, null, null, null, null)
}));
}
#endregion
}
#region Enums
public enum IssueType {
[pbr::OriginalName("ISSUE_TYPE_SPAM")] Spam = 0,
[pbr::OriginalName("ISSUE_TYPE_HARASSMENT")] Harassment = 1,
[pbr::OriginalName("ISSUE_TYPE_OFFENSIVE_CONTENT")] OffensiveContent = 3,
[pbr::OriginalName("ISSUE_TYPE_HACKING")] Hacking = 4,
[pbr::OriginalName("ISSUE_TYPE_BOTTING")] Botting = 5,
}
public enum UserSource {
[pbr::OriginalName("USER_SOURCE_OTHER")] Other = 0,
[pbr::OriginalName("USER_SOURCE_WHISPER")] Whisper = 1,
[pbr::OriginalName("USER_SOURCE_PROFILE")] Profile = 2,
[pbr::OriginalName("USER_SOURCE_BATTLE_TAG")] BattleTag = 3,
[pbr::OriginalName("USER_SOURCE_CHAT")] Chat = 4,
[pbr::OriginalName("USER_SOURCE_FRIEND_INVITATION")] FriendInvitation = 5,
[pbr::OriginalName("USER_SOURCE_VOICE")] Voice = 6,
}
public enum ClubSource {
[pbr::OriginalName("CLUB_SOURCE_OTHER")] Other = 0,
[pbr::OriginalName("CLUB_SOURCE_MESSAGE")] Message = 1,
[pbr::OriginalName("CLUB_SOURCE_CLUB_NAME")] ClubName = 2,
[pbr::OriginalName("CLUB_SOURCE_STREAM_NAME")] StreamName = 3,
}
#endregion
#region Messages
public sealed partial class ReportItem : pb::IMessage<ReportItem> {
private static readonly pb::MessageParser<ReportItem> _parser = new pb::MessageParser<ReportItem>(() => new ReportItem());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ReportItem> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Report.V2.ReportTypesReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ReportItem() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ReportItem(ReportItem other) : this() {
switch (other.TypeCase) {
case TypeOneofCase.MessageId:
MessageId = other.MessageId.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ReportItem Clone() {
return new ReportItem(this);
}
/// <summary>Field number for the "message_id" field.</summary>
public const int MessageIdFieldNumber = 1;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.MessageId MessageId {
get { return HasMessageId ? (global::Bgs.Protocol.MessageId) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.MessageId;
}
}
/// <summary>Gets whether the "message_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasMessageId {
get { return typeCase_ == TypeOneofCase.MessageId; }
}
/// <summary> Clears the value of the oneof if it's currently set to "message_id" </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearMessageId() {
if (HasMessageId) {
ClearType();
}
}
private object type_;
/// <summary>Enum of possible cases for the "type" oneof.</summary>
public enum TypeOneofCase {
None = 0,
MessageId = 1,
}
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 ReportItem);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(ReportItem other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(MessageId, other.MessageId)) 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 (HasMessageId) hash ^= MessageId.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 (HasMessageId) {
output.WriteRawTag(10);
output.WriteMessage(MessageId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasMessageId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(ReportItem other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.MessageId:
if (MessageId == null) {
MessageId = new global::Bgs.Protocol.MessageId();
}
MessageId.MergeFrom(other.MessageId);
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.MessageId subBuilder = new global::Bgs.Protocol.MessageId();
if (HasMessageId) {
subBuilder.MergeFrom(MessageId);
}
input.ReadMessage(subBuilder);
MessageId = subBuilder;
break;
}
}
}
}
}
public sealed partial class UserOptions : pb::IMessage<UserOptions> {
private static readonly pb::MessageParser<UserOptions> _parser = new pb::MessageParser<UserOptions>(() => new UserOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<UserOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Report.V2.ReportTypesReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UserOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UserOptions(UserOptions other) : this() {
_hasBits0 = other._hasBits0;
targetId_ = other.HasTargetId ? other.targetId_.Clone() : null;
type_ = other.type_;
source_ = other.source_;
item_ = other.HasItem ? other.item_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UserOptions Clone() {
return new UserOptions(this);
}
/// <summary>Field number for the "target_id" field.</summary>
public const int TargetIdFieldNumber = 1;
private global::Bgs.Protocol.Account.V1.AccountId targetId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Account.V1.AccountId TargetId {
get { return targetId_; }
set {
targetId_ = value;
}
}
/// <summary>Gets whether the target_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasTargetId {
get { return targetId_ != null; }
}
/// <summary>Clears the value of the target_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearTargetId() {
targetId_ = null;
}
/// <summary>Field number for the "type" field.</summary>
public const int TypeFieldNumber = 2;
private readonly static global::Bgs.Protocol.Report.V2.IssueType TypeDefaultValue = global::Bgs.Protocol.Report.V2.IssueType.Spam;
private global::Bgs.Protocol.Report.V2.IssueType type_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Report.V2.IssueType Type {
get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } }
set {
_hasBits0 |= 1;
type_ = value;
}
}
/// <summary>Gets whether the "type" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasType {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "type" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearType() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "source" field.</summary>
public const int SourceFieldNumber = 3;
private readonly static global::Bgs.Protocol.Report.V2.UserSource SourceDefaultValue = global::Bgs.Protocol.Report.V2.UserSource.Other;
private global::Bgs.Protocol.Report.V2.UserSource source_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Report.V2.UserSource Source {
get { if ((_hasBits0 & 2) != 0) { return source_; } else { return SourceDefaultValue; } }
set {
_hasBits0 |= 2;
source_ = value;
}
}
/// <summary>Gets whether the "source" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasSource {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "source" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearSource() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "item" field.</summary>
public const int ItemFieldNumber = 4;
private global::Bgs.Protocol.Report.V2.ReportItem item_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Report.V2.ReportItem Item {
get { return item_; }
set {
item_ = value;
}
}
/// <summary>Gets whether the item field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasItem {
get { return item_ != null; }
}
/// <summary>Clears the value of the item field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearItem() {
item_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as UserOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(UserOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(TargetId, other.TargetId)) return false;
if (Type != other.Type) return false;
if (Source != other.Source) return false;
if (!object.Equals(Item, other.Item)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasTargetId) hash ^= TargetId.GetHashCode();
if (HasType) hash ^= Type.GetHashCode();
if (HasSource) hash ^= Source.GetHashCode();
if (HasItem) hash ^= Item.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 (HasTargetId) {
output.WriteRawTag(10);
output.WriteMessage(TargetId);
}
if (HasType) {
output.WriteRawTag(16);
output.WriteEnum((int) Type);
}
if (HasSource) {
output.WriteRawTag(24);
output.WriteEnum((int) Source);
}
if (HasItem) {
output.WriteRawTag(34);
output.WriteMessage(Item);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasTargetId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId);
}
if (HasType) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
}
if (HasSource) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source);
}
if (HasItem) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Item);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(UserOptions other) {
if (other == null) {
return;
}
if (other.HasTargetId) {
if (!HasTargetId) {
TargetId = new global::Bgs.Protocol.Account.V1.AccountId();
}
TargetId.MergeFrom(other.TargetId);
}
if (other.HasType) {
Type = other.Type;
}
if (other.HasSource) {
Source = other.Source;
}
if (other.HasItem) {
if (!HasItem) {
Item = new global::Bgs.Protocol.Report.V2.ReportItem();
}
Item.MergeFrom(other.Item);
}
_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 (!HasTargetId) {
TargetId = new global::Bgs.Protocol.Account.V1.AccountId();
}
input.ReadMessage(TargetId);
break;
}
case 16: {
Type = (global::Bgs.Protocol.Report.V2.IssueType) input.ReadEnum();
break;
}
case 24: {
Source = (global::Bgs.Protocol.Report.V2.UserSource) input.ReadEnum();
break;
}
case 34: {
if (!HasItem) {
Item = new global::Bgs.Protocol.Report.V2.ReportItem();
}
input.ReadMessage(Item);
break;
}
}
}
}
}
public sealed partial class ClubOptions : pb::IMessage<ClubOptions> {
private static readonly pb::MessageParser<ClubOptions> _parser = new pb::MessageParser<ClubOptions>(() => new ClubOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ClubOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Report.V2.ReportTypesReflection.Descriptor.MessageTypes[2]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ClubOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ClubOptions(ClubOptions other) : this() {
_hasBits0 = other._hasBits0;
clubId_ = other.clubId_;
streamId_ = other.streamId_;
type_ = other.type_;
source_ = other.source_;
item_ = other.HasItem ? other.item_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ClubOptions Clone() {
return new ClubOptions(this);
}
/// <summary>Field number for the "club_id" field.</summary>
public const int ClubIdFieldNumber = 1;
private readonly static ulong ClubIdDefaultValue = 0UL;
private ulong clubId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ClubId {
get { if ((_hasBits0 & 1) != 0) { return clubId_; } else { return ClubIdDefaultValue; } }
set {
_hasBits0 |= 1;
clubId_ = value;
}
}
/// <summary>Gets whether the "club_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasClubId {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "club_id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearClubId() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "stream_id" field.</summary>
public const int StreamIdFieldNumber = 2;
private readonly static ulong StreamIdDefaultValue = 0UL;
private ulong streamId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong StreamId {
get { if ((_hasBits0 & 2) != 0) { return streamId_; } else { return StreamIdDefaultValue; } }
set {
_hasBits0 |= 2;
streamId_ = value;
}
}
/// <summary>Gets whether the "stream_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasStreamId {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "stream_id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearStreamId() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "type" field.</summary>
public const int TypeFieldNumber = 3;
private readonly static global::Bgs.Protocol.Report.V2.IssueType TypeDefaultValue = global::Bgs.Protocol.Report.V2.IssueType.Spam;
private global::Bgs.Protocol.Report.V2.IssueType type_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Report.V2.IssueType Type {
get { if ((_hasBits0 & 4) != 0) { return type_; } else { return TypeDefaultValue; } }
set {
_hasBits0 |= 4;
type_ = value;
}
}
/// <summary>Gets whether the "type" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasType {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "type" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearType() {
_hasBits0 &= ~4;
}
/// <summary>Field number for the "source" field.</summary>
public const int SourceFieldNumber = 4;
private readonly static global::Bgs.Protocol.Report.V2.ClubSource SourceDefaultValue = global::Bgs.Protocol.Report.V2.ClubSource.Other;
private global::Bgs.Protocol.Report.V2.ClubSource source_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Report.V2.ClubSource Source {
get { if ((_hasBits0 & 8) != 0) { return source_; } else { return SourceDefaultValue; } }
set {
_hasBits0 |= 8;
source_ = value;
}
}
/// <summary>Gets whether the "source" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasSource {
get { return (_hasBits0 & 8) != 0; }
}
/// <summary>Clears the value of the "source" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearSource() {
_hasBits0 &= ~8;
}
/// <summary>Field number for the "item" field.</summary>
public const int ItemFieldNumber = 5;
private global::Bgs.Protocol.Report.V2.ReportItem item_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Report.V2.ReportItem Item {
get { return item_; }
set {
item_ = value;
}
}
/// <summary>Gets whether the item field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasItem {
get { return item_ != null; }
}
/// <summary>Clears the value of the item field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearItem() {
item_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as ClubOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(ClubOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (ClubId != other.ClubId) return false;
if (StreamId != other.StreamId) return false;
if (Type != other.Type) return false;
if (Source != other.Source) return false;
if (!object.Equals(Item, other.Item)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasClubId) hash ^= ClubId.GetHashCode();
if (HasStreamId) hash ^= StreamId.GetHashCode();
if (HasType) hash ^= Type.GetHashCode();
if (HasSource) hash ^= Source.GetHashCode();
if (HasItem) hash ^= Item.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 (HasClubId) {
output.WriteRawTag(8);
output.WriteUInt64(ClubId);
}
if (HasStreamId) {
output.WriteRawTag(16);
output.WriteUInt64(StreamId);
}
if (HasType) {
output.WriteRawTag(24);
output.WriteEnum((int) Type);
}
if (HasSource) {
output.WriteRawTag(32);
output.WriteEnum((int) Source);
}
if (HasItem) {
output.WriteRawTag(42);
output.WriteMessage(Item);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasClubId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ClubId);
}
if (HasStreamId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamId);
}
if (HasType) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
}
if (HasSource) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Source);
}
if (HasItem) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Item);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(ClubOptions other) {
if (other == null) {
return;
}
if (other.HasClubId) {
ClubId = other.ClubId;
}
if (other.HasStreamId) {
StreamId = other.StreamId;
}
if (other.HasType) {
Type = other.Type;
}
if (other.HasSource) {
Source = other.Source;
}
if (other.HasItem) {
if (!HasItem) {
Item = new global::Bgs.Protocol.Report.V2.ReportItem();
}
Item.MergeFrom(other.Item);
}
_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: {
ClubId = input.ReadUInt64();
break;
}
case 16: {
StreamId = input.ReadUInt64();
break;
}
case 24: {
Type = (global::Bgs.Protocol.Report.V2.IssueType) input.ReadEnum();
break;
}
case 32: {
Source = (global::Bgs.Protocol.Report.V2.ClubSource) input.ReadEnum();
break;
}
case 42: {
if (!HasItem) {
Item = new global::Bgs.Protocol.Report.V2.ReportItem();
}
input.ReadMessage(Item);
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code