Ported .Net Core commits:
hondacrx: - Initial commit: Switch to .Net Core 2.0 - Fix build and removed not needed files Fabi: - Updated solution platforms. - Changed folder structure. - Change library target framework to netstandard2.0. - Updated solution platforms again... - Removed windows specific kernel32 function usage (Ctrl-C handler).
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,794 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/attribute_types.proto
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = Google.Protobuf;
|
||||
using pbc = Google.Protobuf.Collections;
|
||||
using pbr = Google.Protobuf.Reflection;
|
||||
namespace Bgs.Protocol
|
||||
{
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/attribute_types.proto</summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public static partial class AttributeTypesReflection
|
||||
{
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/attribute_types.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor
|
||||
{
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static AttributeTypesReflection()
|
||||
{
|
||||
byte[] descriptorData = System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CidiZ3MvbG93L3BiL2NsaWVudC9hdHRyaWJ1dGVfdHlwZXMucHJvdG8SDGJn",
|
||||
"cy5wcm90b2NvbBokYmdzL2xvdy9wYi9jbGllbnQvZW50aXR5X3R5cGVzLnBy",
|
||||
"b3RvIuEBCgdWYXJpYW50EhIKCmJvb2xfdmFsdWUYAiABKAgSEQoJaW50X3Zh",
|
||||
"bHVlGAMgASgDEhMKC2Zsb2F0X3ZhbHVlGAQgASgBEhQKDHN0cmluZ192YWx1",
|
||||
"ZRgFIAEoCRISCgpibG9iX3ZhbHVlGAYgASgMEhUKDW1lc3NhZ2VfdmFsdWUY",
|
||||
"ByABKAwSFAoMZm91cmNjX3ZhbHVlGAggASgJEhIKCnVpbnRfdmFsdWUYCSAB",
|
||||
"KAQSLwoPZW50aXR5X2lkX3ZhbHVlGAogASgLMhYuYmdzLnByb3RvY29sLkVu",
|
||||
"dGl0eUlkIj8KCUF0dHJpYnV0ZRIMCgRuYW1lGAEgASgJEiQKBXZhbHVlGAIg",
|
||||
"ASgLMhUuYmdzLnByb3RvY29sLlZhcmlhbnQiygEKD0F0dHJpYnV0ZUZpbHRl",
|
||||
"chIzCgJvcBgBIAEoDjInLmJncy5wcm90b2NvbC5BdHRyaWJ1dGVGaWx0ZXIu",
|
||||
"T3BlcmF0aW9uEioKCWF0dHJpYnV0ZRgCIAMoCzIXLmJncy5wcm90b2NvbC5B",
|
||||
"dHRyaWJ1dGUiVgoJT3BlcmF0aW9uEg4KCk1BVENIX05PTkUQABINCglNQVRD",
|
||||
"SF9BTlkQARINCglNQVRDSF9BTEwQAhIbChdNQVRDSF9BTExfTU9TVF9TUEVD",
|
||||
"SUZJQxADQiEKDWJuZXQucHJvdG9jb2xCDkF0dHJpYnV0ZVByb3RvSAJiBnBy",
|
||||
"b3RvMw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { Bgs.Protocol.EntityTypesReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Variant), Bgs.Protocol.Variant.Parser, new[]{ "BoolValue", "IntValue", "FloatValue", "StringValue", "BlobValue", "MessageValue", "FourccValue", "UintValue", "EntityIdValue" }, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Attribute), Bgs.Protocol.Attribute.Parser, new[]{ "Name", "Value" }, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.AttributeFilter), Bgs.Protocol.AttributeFilter.Parser, new[]{ "Op", "Attribute" }, null, new[]{ typeof(Bgs.Protocol.AttributeFilter.Types.Operation) }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class Variant : pb::IMessage<Variant>
|
||||
{
|
||||
private static readonly pb::MessageParser<Variant> _parser = new pb::MessageParser<Variant>(() => new Variant());
|
||||
public static pb::MessageParser<Variant> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor
|
||||
{
|
||||
get { return Bgs.Protocol.AttributeTypesReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor
|
||||
{
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public Variant()
|
||||
{
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public Variant(Variant other) : this()
|
||||
{
|
||||
boolValue_ = other.boolValue_;
|
||||
intValue_ = other.intValue_;
|
||||
floatValue_ = other.floatValue_;
|
||||
stringValue_ = other.stringValue_;
|
||||
blobValue_ = other.blobValue_;
|
||||
messageValue_ = other.messageValue_;
|
||||
fourccValue_ = other.fourccValue_;
|
||||
uintValue_ = other.uintValue_;
|
||||
EntityIdValue = other.entityIdValue_ != null ? other.EntityIdValue.Clone() : null;
|
||||
}
|
||||
|
||||
public Variant Clone()
|
||||
{
|
||||
return new Variant(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "bool_value" field.</summary>
|
||||
public const int BoolValueFieldNumber = 2;
|
||||
private bool boolValue_;
|
||||
public bool BoolValue
|
||||
{
|
||||
get { return boolValue_; }
|
||||
set
|
||||
{
|
||||
boolValue_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "int_value" field.</summary>
|
||||
public const int IntValueFieldNumber = 3;
|
||||
private long intValue_;
|
||||
public long IntValue
|
||||
{
|
||||
get { return intValue_; }
|
||||
set
|
||||
{
|
||||
intValue_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "float_value" field.</summary>
|
||||
public const int FloatValueFieldNumber = 4;
|
||||
private double floatValue_;
|
||||
public double FloatValue
|
||||
{
|
||||
get { return floatValue_; }
|
||||
set
|
||||
{
|
||||
floatValue_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "string_value" field.</summary>
|
||||
public const int StringValueFieldNumber = 5;
|
||||
private string stringValue_ = "";
|
||||
public string StringValue
|
||||
{
|
||||
get { return stringValue_; }
|
||||
set
|
||||
{
|
||||
stringValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "blob_value" field.</summary>
|
||||
public const int BlobValueFieldNumber = 6;
|
||||
private pb::ByteString blobValue_ = pb::ByteString.Empty;
|
||||
public pb::ByteString BlobValue
|
||||
{
|
||||
get { return blobValue_; }
|
||||
set
|
||||
{
|
||||
blobValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "message_value" field.</summary>
|
||||
public const int MessageValueFieldNumber = 7;
|
||||
private pb::ByteString messageValue_ = pb::ByteString.Empty;
|
||||
public pb::ByteString MessageValue
|
||||
{
|
||||
get { return messageValue_; }
|
||||
set
|
||||
{
|
||||
messageValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "fourcc_value" field.</summary>
|
||||
public const int FourccValueFieldNumber = 8;
|
||||
private string fourccValue_ = "";
|
||||
public string FourccValue
|
||||
{
|
||||
get { return fourccValue_; }
|
||||
set
|
||||
{
|
||||
fourccValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "uint_value" field.</summary>
|
||||
public const int UintValueFieldNumber = 9;
|
||||
private ulong uintValue_;
|
||||
public ulong UintValue
|
||||
{
|
||||
get { return uintValue_; }
|
||||
set
|
||||
{
|
||||
uintValue_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "entity_id_value" field.</summary>
|
||||
public const int EntityIdValueFieldNumber = 10;
|
||||
private Bgs.Protocol.EntityId entityIdValue_;
|
||||
public Bgs.Protocol.EntityId EntityIdValue
|
||||
{
|
||||
get { return entityIdValue_; }
|
||||
set
|
||||
{
|
||||
entityIdValue_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return Equals(other as Variant);
|
||||
}
|
||||
|
||||
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 (FloatValue != other.FloatValue) return false;
|
||||
if (StringValue != other.StringValue) return false;
|
||||
if (BlobValue != other.BlobValue) return false;
|
||||
if (MessageValue != other.MessageValue) return false;
|
||||
if (FourccValue != other.FourccValue) return false;
|
||||
if (UintValue != other.UintValue) return false;
|
||||
if (!object.Equals(EntityIdValue, other.EntityIdValue)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int hash = 1;
|
||||
if (BoolValue != false) hash ^= BoolValue.GetHashCode();
|
||||
if (IntValue != 0L) hash ^= IntValue.GetHashCode();
|
||||
if (FloatValue != 0D) hash ^= FloatValue.GetHashCode();
|
||||
if (StringValue.Length != 0) hash ^= StringValue.GetHashCode();
|
||||
if (BlobValue.Length != 0) hash ^= BlobValue.GetHashCode();
|
||||
if (MessageValue.Length != 0) hash ^= MessageValue.GetHashCode();
|
||||
if (FourccValue.Length != 0) hash ^= FourccValue.GetHashCode();
|
||||
if (UintValue != 0UL) hash ^= UintValue.GetHashCode();
|
||||
if (entityIdValue_ != null) hash ^= EntityIdValue.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output)
|
||||
{
|
||||
if (BoolValue != false)
|
||||
{
|
||||
output.WriteRawTag(16);
|
||||
output.WriteBool(BoolValue);
|
||||
}
|
||||
if (IntValue != 0L)
|
||||
{
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt64(IntValue);
|
||||
}
|
||||
if (FloatValue != 0D)
|
||||
{
|
||||
output.WriteRawTag(33);
|
||||
output.WriteDouble(FloatValue);
|
||||
}
|
||||
if (StringValue.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(42);
|
||||
output.WriteString(StringValue);
|
||||
}
|
||||
if (BlobValue.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(50);
|
||||
output.WriteBytes(BlobValue);
|
||||
}
|
||||
if (MessageValue.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(58);
|
||||
output.WriteBytes(MessageValue);
|
||||
}
|
||||
if (FourccValue.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(66);
|
||||
output.WriteString(FourccValue);
|
||||
}
|
||||
if (UintValue != 0UL)
|
||||
{
|
||||
output.WriteRawTag(72);
|
||||
output.WriteUInt64(UintValue);
|
||||
}
|
||||
if (entityIdValue_ != null)
|
||||
{
|
||||
output.WriteRawTag(82);
|
||||
output.WriteMessage(EntityIdValue);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize()
|
||||
{
|
||||
int size = 0;
|
||||
if (BoolValue != false)
|
||||
{
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (IntValue != 0L)
|
||||
{
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt64Size(IntValue);
|
||||
}
|
||||
if (FloatValue != 0D)
|
||||
{
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (StringValue.Length != 0)
|
||||
{
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(StringValue);
|
||||
}
|
||||
if (BlobValue.Length != 0)
|
||||
{
|
||||
size += 1 + pb::CodedOutputStream.ComputeBytesSize(BlobValue);
|
||||
}
|
||||
if (MessageValue.Length != 0)
|
||||
{
|
||||
size += 1 + pb::CodedOutputStream.ComputeBytesSize(MessageValue);
|
||||
}
|
||||
if (FourccValue.Length != 0)
|
||||
{
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(FourccValue);
|
||||
}
|
||||
if (UintValue != 0UL)
|
||||
{
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(UintValue);
|
||||
}
|
||||
if (entityIdValue_ != null)
|
||||
{
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityIdValue);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(Variant other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (other.BoolValue != false)
|
||||
{
|
||||
BoolValue = other.BoolValue;
|
||||
}
|
||||
if (other.IntValue != 0L)
|
||||
{
|
||||
IntValue = other.IntValue;
|
||||
}
|
||||
if (other.FloatValue != 0D)
|
||||
{
|
||||
FloatValue = other.FloatValue;
|
||||
}
|
||||
if (other.StringValue.Length != 0)
|
||||
{
|
||||
StringValue = other.StringValue;
|
||||
}
|
||||
if (other.BlobValue.Length != 0)
|
||||
{
|
||||
BlobValue = other.BlobValue;
|
||||
}
|
||||
if (other.MessageValue.Length != 0)
|
||||
{
|
||||
MessageValue = other.MessageValue;
|
||||
}
|
||||
if (other.FourccValue.Length != 0)
|
||||
{
|
||||
FourccValue = other.FourccValue;
|
||||
}
|
||||
if (other.UintValue != 0UL)
|
||||
{
|
||||
UintValue = other.UintValue;
|
||||
}
|
||||
if (other.entityIdValue_ != null)
|
||||
{
|
||||
if (entityIdValue_ == null)
|
||||
{
|
||||
entityIdValue_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
EntityIdValue.MergeFrom(other.EntityIdValue);
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input)
|
||||
{
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0)
|
||||
{
|
||||
switch (tag)
|
||||
{
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 16:
|
||||
{
|
||||
BoolValue = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 24:
|
||||
{
|
||||
IntValue = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 33:
|
||||
{
|
||||
FloatValue = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 42:
|
||||
{
|
||||
StringValue = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 50:
|
||||
{
|
||||
BlobValue = input.ReadBytes();
|
||||
break;
|
||||
}
|
||||
case 58:
|
||||
{
|
||||
MessageValue = input.ReadBytes();
|
||||
break;
|
||||
}
|
||||
case 66:
|
||||
{
|
||||
FourccValue = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 72:
|
||||
{
|
||||
UintValue = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
case 82:
|
||||
{
|
||||
if (entityIdValue_ == null)
|
||||
{
|
||||
entityIdValue_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
input.ReadMessage(entityIdValue_);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class Attribute : pb::IMessage<Attribute>
|
||||
{
|
||||
private static readonly pb::MessageParser<Attribute> _parser = new pb::MessageParser<Attribute>(() => new Attribute());
|
||||
public static pb::MessageParser<Attribute> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor
|
||||
{
|
||||
get { return Bgs.Protocol.AttributeTypesReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor
|
||||
{
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public Attribute()
|
||||
{
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public Attribute(Attribute other) : this()
|
||||
{
|
||||
name_ = other.name_;
|
||||
Value = other.value_ != null ? other.Value.Clone() : null;
|
||||
}
|
||||
|
||||
public Attribute Clone()
|
||||
{
|
||||
return new Attribute(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "name" field.</summary>
|
||||
public const int NameFieldNumber = 1;
|
||||
private string name_ = "";
|
||||
public string Name
|
||||
{
|
||||
get { return name_; }
|
||||
set
|
||||
{
|
||||
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "value" field.</summary>
|
||||
public const int ValueFieldNumber = 2;
|
||||
private Bgs.Protocol.Variant value_;
|
||||
public Bgs.Protocol.Variant Value
|
||||
{
|
||||
get { return value_; }
|
||||
set
|
||||
{
|
||||
value_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return Equals(other as Attribute);
|
||||
}
|
||||
|
||||
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 true;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int hash = 1;
|
||||
if (Name.Length != 0) hash ^= Name.GetHashCode();
|
||||
if (value_ != null) hash ^= Value.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output)
|
||||
{
|
||||
if (Name.Length != 0)
|
||||
{
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(Name);
|
||||
}
|
||||
if (value_ != null)
|
||||
{
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(Value);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize()
|
||||
{
|
||||
int size = 0;
|
||||
if (Name.Length != 0)
|
||||
{
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
||||
}
|
||||
if (value_ != null)
|
||||
{
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(Attribute other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (other.Name.Length != 0)
|
||||
{
|
||||
Name = other.Name;
|
||||
}
|
||||
if (other.value_ != null)
|
||||
{
|
||||
if (value_ == null)
|
||||
{
|
||||
value_ = new Bgs.Protocol.Variant();
|
||||
}
|
||||
Value.MergeFrom(other.Value);
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input)
|
||||
{
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0)
|
||||
{
|
||||
switch (tag)
|
||||
{
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 10:
|
||||
{
|
||||
Name = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 18:
|
||||
{
|
||||
if (value_ == null)
|
||||
{
|
||||
value_ = new Bgs.Protocol.Variant();
|
||||
}
|
||||
input.ReadMessage(value_);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class AttributeFilter : pb::IMessage<AttributeFilter>
|
||||
{
|
||||
private static readonly pb::MessageParser<AttributeFilter> _parser = new pb::MessageParser<AttributeFilter>(() => new AttributeFilter());
|
||||
public static pb::MessageParser<AttributeFilter> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor
|
||||
{
|
||||
get { return Bgs.Protocol.AttributeTypesReflection.Descriptor.MessageTypes[2]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor
|
||||
{
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public AttributeFilter()
|
||||
{
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public AttributeFilter(AttributeFilter other) : this()
|
||||
{
|
||||
op_ = other.op_;
|
||||
attribute_ = other.attribute_.Clone();
|
||||
}
|
||||
|
||||
public AttributeFilter Clone()
|
||||
{
|
||||
return new AttributeFilter(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "op" field.</summary>
|
||||
public const int OpFieldNumber = 1;
|
||||
private Bgs.Protocol.AttributeFilter.Types.Operation op_ = Bgs.Protocol.AttributeFilter.Types.Operation.MATCH_NONE;
|
||||
public Bgs.Protocol.AttributeFilter.Types.Operation Op
|
||||
{
|
||||
get { return op_; }
|
||||
set
|
||||
{
|
||||
op_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "attribute" field.</summary>
|
||||
public const int AttributeFieldNumber = 2;
|
||||
private static readonly pb::FieldCodec<Bgs.Protocol.Attribute> _repeated_attribute_codec
|
||||
= pb::FieldCodec.ForMessage(18, Bgs.Protocol.Attribute.Parser);
|
||||
private readonly pbc::RepeatedField<Bgs.Protocol.Attribute> attribute_ = new pbc::RepeatedField<Bgs.Protocol.Attribute>();
|
||||
public pbc::RepeatedField<Bgs.Protocol.Attribute> Attribute
|
||||
{
|
||||
get { return attribute_; }
|
||||
}
|
||||
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return Equals(other as AttributeFilter);
|
||||
}
|
||||
|
||||
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 true;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int hash = 1;
|
||||
if (Op != Bgs.Protocol.AttributeFilter.Types.Operation.MATCH_NONE) hash ^= Op.GetHashCode();
|
||||
hash ^= attribute_.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output)
|
||||
{
|
||||
if (Op != Bgs.Protocol.AttributeFilter.Types.Operation.MATCH_NONE)
|
||||
{
|
||||
output.WriteRawTag(8);
|
||||
output.WriteEnum((int)Op);
|
||||
}
|
||||
attribute_.WriteTo(output, _repeated_attribute_codec);
|
||||
}
|
||||
|
||||
public int CalculateSize()
|
||||
{
|
||||
int size = 0;
|
||||
if (Op != Bgs.Protocol.AttributeFilter.Types.Operation.MATCH_NONE)
|
||||
{
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int)Op);
|
||||
}
|
||||
size += attribute_.CalculateSize(_repeated_attribute_codec);
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(AttributeFilter other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (other.Op != Bgs.Protocol.AttributeFilter.Types.Operation.MATCH_NONE)
|
||||
{
|
||||
Op = other.Op;
|
||||
}
|
||||
attribute_.Add(other.attribute_);
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input)
|
||||
{
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0)
|
||||
{
|
||||
switch (tag)
|
||||
{
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 8:
|
||||
{
|
||||
op_ = (Bgs.Protocol.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>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public static partial class Types
|
||||
{
|
||||
public enum Operation
|
||||
{
|
||||
MATCH_NONE = 0,
|
||||
MATCH_ANY = 1,
|
||||
MATCH_ALL = 2,
|
||||
MATCH_ALL_MOST_SPECIFIC = 3,
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,228 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/content_handle_types.proto
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = Google.Protobuf;
|
||||
using pbr = Google.Protobuf.Reflection;
|
||||
namespace Bgs.Protocol
|
||||
{
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/content_handle_types.proto</summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public static partial class ContentHandleTypesReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/content_handle_types.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static ContentHandleTypesReflection() {
|
||||
byte[] descriptorData = System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CixiZ3MvbG93L3BiL2NsaWVudC9jb250ZW50X2hhbmRsZV90eXBlcy5wcm90",
|
||||
"bxIMYmdzLnByb3RvY29sIk8KDUNvbnRlbnRIYW5kbGUSDgoGcmVnaW9uGAEg",
|
||||
"ASgHEg0KBXVzYWdlGAIgASgHEgwKBGhhc2gYAyABKAwSEQoJcHJvdG9fdXJs",
|
||||
"GAQgASgJQiUKDWJuZXQucHJvdG9jb2xCEkNvbnRlbnRIYW5kbGVQcm90b0gC",
|
||||
"YgZwcm90bzM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.ContentHandle), Bgs.Protocol.ContentHandle.Parser, new[]{ "Region", "Usage", "Hash", "ProtoUrl" }, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class ContentHandle : pb::IMessage<ContentHandle> {
|
||||
private static readonly pb::MessageParser<ContentHandle> _parser = new pb::MessageParser<ContentHandle>(() => new ContentHandle());
|
||||
public static pb::MessageParser<ContentHandle> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.ContentHandleTypesReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public ContentHandle() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public ContentHandle(ContentHandle other) : this() {
|
||||
region_ = other.region_;
|
||||
usage_ = other.usage_;
|
||||
hash_ = other.hash_;
|
||||
protoUrl_ = other.protoUrl_;
|
||||
}
|
||||
|
||||
public ContentHandle Clone() {
|
||||
return new ContentHandle(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "region" field.</summary>
|
||||
public const int RegionFieldNumber = 1;
|
||||
private uint region_;
|
||||
public uint Region {
|
||||
get { return region_; }
|
||||
set {
|
||||
region_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "usage" field.</summary>
|
||||
public const int UsageFieldNumber = 2;
|
||||
private uint usage_;
|
||||
public uint Usage {
|
||||
get { return usage_; }
|
||||
set {
|
||||
usage_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "hash" field.</summary>
|
||||
public const int HashFieldNumber = 3;
|
||||
private pb::ByteString hash_ = pb::ByteString.Empty;
|
||||
public pb::ByteString Hash {
|
||||
get { return hash_; }
|
||||
set {
|
||||
hash_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "proto_url" field.</summary>
|
||||
public const int ProtoUrlFieldNumber = 4;
|
||||
private string protoUrl_ = "";
|
||||
public string ProtoUrl {
|
||||
get { return protoUrl_; }
|
||||
set {
|
||||
protoUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as ContentHandle);
|
||||
}
|
||||
|
||||
public bool Equals(ContentHandle other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Region != other.Region) return false;
|
||||
if (Usage != other.Usage) return false;
|
||||
if (Hash != other.Hash) return false;
|
||||
if (ProtoUrl != other.ProtoUrl) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (Region != 0) hash ^= Region.GetHashCode();
|
||||
if (Usage != 0) hash ^= Usage.GetHashCode();
|
||||
if (Hash.Length != 0) hash ^= Hash.GetHashCode();
|
||||
if (ProtoUrl.Length != 0) hash ^= ProtoUrl.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (Region != 0) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFixed32(Region);
|
||||
}
|
||||
if (Usage != 0) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFixed32(Usage);
|
||||
}
|
||||
if (Hash.Length != 0) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteBytes(Hash);
|
||||
}
|
||||
if (ProtoUrl.Length != 0) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteString(ProtoUrl);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (Region != 0) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (Usage != 0) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (Hash.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeBytesSize(Hash);
|
||||
}
|
||||
if (ProtoUrl.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(ProtoUrl);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(ContentHandle other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.Region != 0) {
|
||||
Region = other.Region;
|
||||
}
|
||||
if (other.Usage != 0) {
|
||||
Usage = other.Usage;
|
||||
}
|
||||
if (other.Hash.Length != 0) {
|
||||
Hash = other.Hash;
|
||||
}
|
||||
if (other.ProtoUrl.Length != 0) {
|
||||
ProtoUrl = other.ProtoUrl;
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 13: {
|
||||
Region = input.ReadFixed32();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
Usage = input.ReadFixed32();
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
Hash = input.ReadBytes();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
ProtoUrl = input.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,568 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/entity_types.proto
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = Google.Protobuf;
|
||||
using pbr = Google.Protobuf.Reflection;
|
||||
namespace Bgs.Protocol
|
||||
{
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/entity_types.proto</summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public static partial class EntityTypesReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/entity_types.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static EntityTypesReflection() {
|
||||
byte[] descriptorData = System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CiRiZ3MvbG93L3BiL2NsaWVudC9lbnRpdHlfdHlwZXMucHJvdG8SDGJncy5w",
|
||||
"cm90b2NvbBo3YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMv",
|
||||
"ZmllbGRfb3B0aW9ucy5wcm90byIlCghFbnRpdHlJZBIMCgRoaWdoGAEgASgG",
|
||||
"EgsKA2xvdxgCIAEoBiJnCghJZGVudGl0eRIqCgphY2NvdW50X2lkGAEgASgL",
|
||||
"MhYuYmdzLnByb3RvY29sLkVudGl0eUlkEi8KD2dhbWVfYWNjb3VudF9pZBgC",
|
||||
"IAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZCKjAQoLQWNjb3VudEluZm8S",
|
||||
"FAoMYWNjb3VudF9wYWlkGAEgASgIEhIKCmNvdW50cnlfaWQYAiABKAcSEgoK",
|
||||
"YmF0dGxlX3RhZxgDIAEoCRIVCg1tYW51YWxfcmV2aWV3GAQgASgIEigKCGlk",
|
||||
"ZW50aXR5GAUgASgLMhYuYmdzLnByb3RvY29sLklkZW50aXR5EhUKDWFjY291",
|
||||
"bnRfbXV0ZWQYBiABKAhCHgoNYm5ldC5wcm90b2NvbEILRW50aXR5UHJvdG9I",
|
||||
"AmIGcHJvdG8z"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { Bgs.Protocol.FieldOptionsReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.EntityId), Bgs.Protocol.EntityId.Parser, new[]{ "High", "Low" }, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Identity), Bgs.Protocol.Identity.Parser, new[]{ "AccountId", "GameAccountId" }, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.AccountInfo), Bgs.Protocol.AccountInfo.Parser, new[]{ "AccountPaid", "CountryId", "BattleTag", "ManualReview", "Identity", "AccountMuted" }, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class EntityId : pb::IMessage<EntityId> {
|
||||
private static readonly pb::MessageParser<EntityId> _parser = new pb::MessageParser<EntityId>(() => new EntityId());
|
||||
public static pb::MessageParser<EntityId> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.EntityTypesReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public EntityId() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public EntityId(EntityId other) : this() {
|
||||
high_ = other.high_;
|
||||
low_ = other.low_;
|
||||
}
|
||||
|
||||
public EntityId Clone() {
|
||||
return new EntityId(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "high" field.</summary>
|
||||
public const int HighFieldNumber = 1;
|
||||
private ulong high_;
|
||||
public ulong High {
|
||||
get { return high_; }
|
||||
set {
|
||||
high_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "low" field.</summary>
|
||||
public const int LowFieldNumber = 2;
|
||||
private ulong low_;
|
||||
public ulong Low {
|
||||
get { return low_; }
|
||||
set {
|
||||
low_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as EntityId);
|
||||
}
|
||||
|
||||
public bool Equals(EntityId other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (High != other.High) return false;
|
||||
if (Low != other.Low) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (High != 0UL) hash ^= High.GetHashCode();
|
||||
if (Low != 0UL) hash ^= Low.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (High != 0UL) {
|
||||
output.WriteRawTag(9);
|
||||
output.WriteFixed64(High);
|
||||
}
|
||||
if (Low != 0UL) {
|
||||
output.WriteRawTag(17);
|
||||
output.WriteFixed64(Low);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (High != 0UL) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (Low != 0UL) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(EntityId other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.High != 0UL) {
|
||||
High = other.High;
|
||||
}
|
||||
if (other.Low != 0UL) {
|
||||
Low = other.Low;
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 9: {
|
||||
High = input.ReadFixed64();
|
||||
break;
|
||||
}
|
||||
case 17: {
|
||||
Low = input.ReadFixed64();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class Identity : pb::IMessage<Identity> {
|
||||
private static readonly pb::MessageParser<Identity> _parser = new pb::MessageParser<Identity>(() => new Identity());
|
||||
public static pb::MessageParser<Identity> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.EntityTypesReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public Identity() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public Identity(Identity other) : this() {
|
||||
AccountId = other.accountId_ != null ? other.AccountId.Clone() : null;
|
||||
GameAccountId = other.gameAccountId_ != null ? other.GameAccountId.Clone() : null;
|
||||
}
|
||||
|
||||
public Identity Clone() {
|
||||
return new Identity(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "account_id" field.</summary>
|
||||
public const int AccountIdFieldNumber = 1;
|
||||
private Bgs.Protocol.EntityId accountId_;
|
||||
public Bgs.Protocol.EntityId AccountId {
|
||||
get { return accountId_; }
|
||||
set {
|
||||
accountId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "game_account_id" field.</summary>
|
||||
public const int GameAccountIdFieldNumber = 2;
|
||||
private Bgs.Protocol.EntityId gameAccountId_;
|
||||
public Bgs.Protocol.EntityId GameAccountId {
|
||||
get { return gameAccountId_; }
|
||||
set {
|
||||
gameAccountId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as Identity);
|
||||
}
|
||||
|
||||
public bool Equals(Identity other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(AccountId, other.AccountId)) return false;
|
||||
if (!object.Equals(GameAccountId, other.GameAccountId)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (accountId_ != null) hash ^= AccountId.GetHashCode();
|
||||
if (gameAccountId_ != null) hash ^= GameAccountId.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (accountId_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(AccountId);
|
||||
}
|
||||
if (gameAccountId_ != null) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(GameAccountId);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (accountId_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId);
|
||||
}
|
||||
if (gameAccountId_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(GameAccountId);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(Identity other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.accountId_ != null) {
|
||||
if (accountId_ == null) {
|
||||
accountId_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
AccountId.MergeFrom(other.AccountId);
|
||||
}
|
||||
if (other.gameAccountId_ != null) {
|
||||
if (gameAccountId_ == null) {
|
||||
gameAccountId_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
GameAccountId.MergeFrom(other.GameAccountId);
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 10: {
|
||||
if (accountId_ == null) {
|
||||
accountId_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
input.ReadMessage(accountId_);
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (gameAccountId_ == null) {
|
||||
gameAccountId_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
input.ReadMessage(gameAccountId_);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class AccountInfo : pb::IMessage<AccountInfo> {
|
||||
private static readonly pb::MessageParser<AccountInfo> _parser = new pb::MessageParser<AccountInfo>(() => new AccountInfo());
|
||||
public static pb::MessageParser<AccountInfo> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.EntityTypesReflection.Descriptor.MessageTypes[2]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public AccountInfo() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public AccountInfo(AccountInfo other) : this() {
|
||||
accountPaid_ = other.accountPaid_;
|
||||
countryId_ = other.countryId_;
|
||||
battleTag_ = other.battleTag_;
|
||||
manualReview_ = other.manualReview_;
|
||||
Identity = other.identity_ != null ? other.Identity.Clone() : null;
|
||||
accountMuted_ = other.accountMuted_;
|
||||
}
|
||||
|
||||
public AccountInfo Clone() {
|
||||
return new AccountInfo(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "account_paid" field.</summary>
|
||||
public const int AccountPaidFieldNumber = 1;
|
||||
private bool accountPaid_;
|
||||
public bool AccountPaid {
|
||||
get { return accountPaid_; }
|
||||
set {
|
||||
accountPaid_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "country_id" field.</summary>
|
||||
public const int CountryIdFieldNumber = 2;
|
||||
private uint countryId_;
|
||||
public uint CountryId {
|
||||
get { return countryId_; }
|
||||
set {
|
||||
countryId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "battle_tag" field.</summary>
|
||||
public const int BattleTagFieldNumber = 3;
|
||||
private string battleTag_ = "";
|
||||
public string BattleTag {
|
||||
get { return battleTag_; }
|
||||
set {
|
||||
battleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "manual_review" field.</summary>
|
||||
public const int ManualReviewFieldNumber = 4;
|
||||
private bool manualReview_;
|
||||
public bool ManualReview {
|
||||
get { return manualReview_; }
|
||||
set {
|
||||
manualReview_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "identity" field.</summary>
|
||||
public const int IdentityFieldNumber = 5;
|
||||
private Bgs.Protocol.Identity identity_;
|
||||
public Bgs.Protocol.Identity Identity {
|
||||
get { return identity_; }
|
||||
set {
|
||||
identity_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "account_muted" field.</summary>
|
||||
public const int AccountMutedFieldNumber = 6;
|
||||
private bool accountMuted_;
|
||||
public bool AccountMuted {
|
||||
get { return accountMuted_; }
|
||||
set {
|
||||
accountMuted_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as AccountInfo);
|
||||
}
|
||||
|
||||
public bool Equals(AccountInfo other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (AccountPaid != other.AccountPaid) return false;
|
||||
if (CountryId != other.CountryId) return false;
|
||||
if (BattleTag != other.BattleTag) return false;
|
||||
if (ManualReview != other.ManualReview) return false;
|
||||
if (!object.Equals(Identity, other.Identity)) return false;
|
||||
if (AccountMuted != other.AccountMuted) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (AccountPaid != false) hash ^= AccountPaid.GetHashCode();
|
||||
if (CountryId != 0) hash ^= CountryId.GetHashCode();
|
||||
if (BattleTag.Length != 0) hash ^= BattleTag.GetHashCode();
|
||||
if (ManualReview != false) hash ^= ManualReview.GetHashCode();
|
||||
if (identity_ != null) hash ^= Identity.GetHashCode();
|
||||
if (AccountMuted != false) hash ^= AccountMuted.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (AccountPaid != false) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteBool(AccountPaid);
|
||||
}
|
||||
if (CountryId != 0) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFixed32(CountryId);
|
||||
}
|
||||
if (BattleTag.Length != 0) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteString(BattleTag);
|
||||
}
|
||||
if (ManualReview != false) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteBool(ManualReview);
|
||||
}
|
||||
if (identity_ != null) {
|
||||
output.WriteRawTag(42);
|
||||
output.WriteMessage(Identity);
|
||||
}
|
||||
if (AccountMuted != false) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteBool(AccountMuted);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (AccountPaid != false) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (CountryId != 0) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (BattleTag.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(BattleTag);
|
||||
}
|
||||
if (ManualReview != false) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (identity_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Identity);
|
||||
}
|
||||
if (AccountMuted != false) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(AccountInfo other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.AccountPaid != false) {
|
||||
AccountPaid = other.AccountPaid;
|
||||
}
|
||||
if (other.CountryId != 0) {
|
||||
CountryId = other.CountryId;
|
||||
}
|
||||
if (other.BattleTag.Length != 0) {
|
||||
BattleTag = other.BattleTag;
|
||||
}
|
||||
if (other.ManualReview != false) {
|
||||
ManualReview = other.ManualReview;
|
||||
}
|
||||
if (other.identity_ != null) {
|
||||
if (identity_ == null) {
|
||||
identity_ = new Bgs.Protocol.Identity();
|
||||
}
|
||||
Identity.MergeFrom(other.Identity);
|
||||
}
|
||||
if (other.AccountMuted != false) {
|
||||
AccountMuted = other.AccountMuted;
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 8: {
|
||||
AccountPaid = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
CountryId = input.ReadFixed32();
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
BattleTag = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
ManualReview = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 42: {
|
||||
if (identity_ == null) {
|
||||
identity_ = new Bgs.Protocol.Identity();
|
||||
}
|
||||
input.ReadMessage(identity_);
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
AccountMuted = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,759 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/friends_types.proto
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = Google.Protobuf;
|
||||
using pbc = Google.Protobuf.Collections;
|
||||
using pbr = Google.Protobuf.Reflection;
|
||||
namespace Bgs.Protocol.Friends.V1
|
||||
{
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/friends_types.proto</summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public static partial class FriendsTypesReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/friends_types.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static FriendsTypesReflection() {
|
||||
byte[] descriptorData = System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CiViZ3MvbG93L3BiL2NsaWVudC9mcmllbmRzX3R5cGVzLnByb3RvEhdiZ3Mu",
|
||||
"cHJvdG9jb2wuZnJpZW5kcy52MRonYmdzL2xvdy9wYi9jbGllbnQvYXR0cmli",
|
||||
"dXRlX3R5cGVzLnByb3RvGiRiZ3MvbG93L3BiL2NsaWVudC9lbnRpdHlfdHlw",
|
||||
"ZXMucHJvdG8aKGJncy9sb3cvcGIvY2xpZW50L2ludml0YXRpb25fdHlwZXMu",
|
||||
"cHJvdG8ixwEKBkZyaWVuZBIqCgphY2NvdW50X2lkGAEgASgLMhYuYmdzLnBy",
|
||||
"b3RvY29sLkVudGl0eUlkEioKCWF0dHJpYnV0ZRgCIAMoCzIXLmJncy5wcm90",
|
||||
"b2NvbC5BdHRyaWJ1dGUSEAoEcm9sZRgDIAMoDUICEAESEgoKcHJpdmlsZWdl",
|
||||
"cxgEIAEoBBIYChBhdHRyaWJ1dGVzX2Vwb2NoGAUgASgEEhEKCWZ1bGxfbmFt",
|
||||
"ZRgGIAEoCRISCgpiYXR0bGVfdGFnGAcgASgJIoIBChBGcmllbmRJbnZpdGF0",
|
||||
"aW9uEhYKDmZpcnN0X3JlY2VpdmVkGAEgASgIEhAKBHJvbGUYAiADKA1CAhAB",
|
||||
"EkQKEWZyaWVuZF9pbnZpdGF0aW9uGGcgASgLMikuYmdzLnByb3RvY29sLmZy",
|
||||
"aWVuZHMudjEuRnJpZW5kSW52aXRhdGlvbiKgAgoWRnJpZW5kSW52aXRhdGlv",
|
||||
"blBhcmFtcxIUCgx0YXJnZXRfZW1haWwYASABKAkSGQoRdGFyZ2V0X2JhdHRs",
|
||||
"ZV90YWcYAiABKAkSGgoSaW52aXRlcl9iYXR0bGVfdGFnGAMgASgJEhkKEWlu",
|
||||
"dml0ZXJfZnVsbF9uYW1lGAQgASgJEhwKFGludml0ZWVfZGlzcGxheV9uYW1l",
|
||||
"GAUgASgJEhAKBHJvbGUYBiADKA1CAhABEiYKGHByZXZpb3VzX3JvbGVfZGVw",
|
||||
"cmVjYXRlZBgHIAMoDUIEEAEYARJGCg1mcmllbmRfcGFyYW1zGGcgASgLMi8u",
|
||||
"YmdzLnByb3RvY29sLmZyaWVuZHMudjEuRnJpZW5kSW52aXRhdGlvblBhcmFt",
|
||||
"c0IvChhibmV0LnByb3RvY29sLmZyaWVuZHMudjFCEUZyaWVuZHNUeXBlc1By",
|
||||
"b3RvSAJiBnByb3RvMw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { Bgs.Protocol.AttributeTypesReflection.Descriptor, Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.InvitationTypesReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Friends.V1.Friend), Bgs.Protocol.Friends.V1.Friend.Parser, new[]{ "AccountId", "Attribute", "Role", "Privileges", "AttributesEpoch", "FullName", "BattleTag" }, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Friends.V1.FriendInvitation), Bgs.Protocol.Friends.V1.FriendInvitation.Parser, new[]{ "FirstReceived", "Role", "FriendInvitation_" }, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Friends.V1.FriendInvitationParams), Bgs.Protocol.Friends.V1.FriendInvitationParams.Parser, new[]{ "TargetEmail", "TargetBattleTag", "InviterBattleTag", "InviterFullName", "InviteeDisplayName", "Role", "PreviousRoleDeprecated", "FriendParams" }, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class Friend : pb::IMessage<Friend> {
|
||||
private static readonly pb::MessageParser<Friend> _parser = new pb::MessageParser<Friend>(() => new Friend());
|
||||
public static pb::MessageParser<Friend> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.Friends.V1.FriendsTypesReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public Friend() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public Friend(Friend other) : this() {
|
||||
AccountId = other.accountId_ != null ? other.AccountId.Clone() : null;
|
||||
attribute_ = other.attribute_.Clone();
|
||||
role_ = other.role_.Clone();
|
||||
privileges_ = other.privileges_;
|
||||
attributesEpoch_ = other.attributesEpoch_;
|
||||
fullName_ = other.fullName_;
|
||||
battleTag_ = other.battleTag_;
|
||||
}
|
||||
|
||||
public Friend Clone() {
|
||||
return new Friend(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "account_id" field.</summary>
|
||||
public const int AccountIdFieldNumber = 1;
|
||||
private Bgs.Protocol.EntityId accountId_;
|
||||
public Bgs.Protocol.EntityId AccountId {
|
||||
get { return accountId_; }
|
||||
set {
|
||||
accountId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "attribute" field.</summary>
|
||||
public const int AttributeFieldNumber = 2;
|
||||
private static readonly pb::FieldCodec<Bgs.Protocol.Attribute> _repeated_attribute_codec
|
||||
= pb::FieldCodec.ForMessage(18, Bgs.Protocol.Attribute.Parser);
|
||||
private readonly pbc::RepeatedField<Bgs.Protocol.Attribute> attribute_ = new pbc::RepeatedField<Bgs.Protocol.Attribute>();
|
||||
public pbc::RepeatedField<Bgs.Protocol.Attribute> Attribute {
|
||||
get { return attribute_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "role" field.</summary>
|
||||
public const int RoleFieldNumber = 3;
|
||||
private static readonly pb::FieldCodec<uint> _repeated_role_codec
|
||||
= pb::FieldCodec.ForUInt32(26);
|
||||
private readonly pbc::RepeatedField<uint> role_ = new pbc::RepeatedField<uint>();
|
||||
public pbc::RepeatedField<uint> Role {
|
||||
get { return role_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "privileges" field.</summary>
|
||||
public const int PrivilegesFieldNumber = 4;
|
||||
private ulong privileges_;
|
||||
public ulong Privileges {
|
||||
get { return privileges_; }
|
||||
set {
|
||||
privileges_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "attributes_epoch" field.</summary>
|
||||
public const int AttributesEpochFieldNumber = 5;
|
||||
private ulong attributesEpoch_;
|
||||
public ulong AttributesEpoch {
|
||||
get { return attributesEpoch_; }
|
||||
set {
|
||||
attributesEpoch_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "full_name" field.</summary>
|
||||
public const int FullNameFieldNumber = 6;
|
||||
private string fullName_ = "";
|
||||
public string FullName {
|
||||
get { return fullName_; }
|
||||
set {
|
||||
fullName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "battle_tag" field.</summary>
|
||||
public const int BattleTagFieldNumber = 7;
|
||||
private string battleTag_ = "";
|
||||
public string BattleTag {
|
||||
get { return battleTag_; }
|
||||
set {
|
||||
battleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as Friend);
|
||||
}
|
||||
|
||||
public bool Equals(Friend other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(AccountId, other.AccountId)) return false;
|
||||
if(!attribute_.Equals(other.attribute_)) return false;
|
||||
if(!role_.Equals(other.role_)) return false;
|
||||
if (Privileges != other.Privileges) return false;
|
||||
if (AttributesEpoch != other.AttributesEpoch) return false;
|
||||
if (FullName != other.FullName) return false;
|
||||
if (BattleTag != other.BattleTag) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (accountId_ != null) hash ^= AccountId.GetHashCode();
|
||||
hash ^= attribute_.GetHashCode();
|
||||
hash ^= role_.GetHashCode();
|
||||
if (Privileges != 0UL) hash ^= Privileges.GetHashCode();
|
||||
if (AttributesEpoch != 0UL) hash ^= AttributesEpoch.GetHashCode();
|
||||
if (FullName.Length != 0) hash ^= FullName.GetHashCode();
|
||||
if (BattleTag.Length != 0) hash ^= BattleTag.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (accountId_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(AccountId);
|
||||
}
|
||||
attribute_.WriteTo(output, _repeated_attribute_codec);
|
||||
role_.WriteTo(output, _repeated_role_codec);
|
||||
if (Privileges != 0UL) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteUInt64(Privileges);
|
||||
}
|
||||
if (AttributesEpoch != 0UL) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteUInt64(AttributesEpoch);
|
||||
}
|
||||
if (FullName.Length != 0) {
|
||||
output.WriteRawTag(50);
|
||||
output.WriteString(FullName);
|
||||
}
|
||||
if (BattleTag.Length != 0) {
|
||||
output.WriteRawTag(58);
|
||||
output.WriteString(BattleTag);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (accountId_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId);
|
||||
}
|
||||
size += attribute_.CalculateSize(_repeated_attribute_codec);
|
||||
size += role_.CalculateSize(_repeated_role_codec);
|
||||
if (Privileges != 0UL) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Privileges);
|
||||
}
|
||||
if (AttributesEpoch != 0UL) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AttributesEpoch);
|
||||
}
|
||||
if (FullName.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(FullName);
|
||||
}
|
||||
if (BattleTag.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(BattleTag);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(Friend other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.accountId_ != null) {
|
||||
if (accountId_ == null) {
|
||||
accountId_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
AccountId.MergeFrom(other.AccountId);
|
||||
}
|
||||
attribute_.Add(other.attribute_);
|
||||
role_.Add(other.role_);
|
||||
if (other.Privileges != 0UL) {
|
||||
Privileges = other.Privileges;
|
||||
}
|
||||
if (other.AttributesEpoch != 0UL) {
|
||||
AttributesEpoch = other.AttributesEpoch;
|
||||
}
|
||||
if (other.FullName.Length != 0) {
|
||||
FullName = other.FullName;
|
||||
}
|
||||
if (other.BattleTag.Length != 0) {
|
||||
BattleTag = other.BattleTag;
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 10: {
|
||||
if (accountId_ == null) {
|
||||
accountId_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
input.ReadMessage(accountId_);
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
attribute_.AddEntriesFrom(input, _repeated_attribute_codec);
|
||||
break;
|
||||
}
|
||||
case 26:
|
||||
case 24: {
|
||||
role_.AddEntriesFrom(input, _repeated_role_codec);
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
Privileges = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
AttributesEpoch = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
case 50: {
|
||||
FullName = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 58: {
|
||||
BattleTag = input.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class FriendInvitation : pb::IMessage<FriendInvitation> {
|
||||
private static readonly pb::MessageParser<FriendInvitation> _parser = new pb::MessageParser<FriendInvitation>(() => new FriendInvitation());
|
||||
public static pb::MessageParser<FriendInvitation> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.Friends.V1.FriendsTypesReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public FriendInvitation() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public FriendInvitation(FriendInvitation other) : this() {
|
||||
firstReceived_ = other.firstReceived_;
|
||||
role_ = other.role_.Clone();
|
||||
FriendInvitation_ = other.friendInvitation_ != null ? other.FriendInvitation_.Clone() : null;
|
||||
}
|
||||
|
||||
public FriendInvitation Clone() {
|
||||
return new FriendInvitation(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "first_received" field.</summary>
|
||||
public const int FirstReceivedFieldNumber = 1;
|
||||
private bool firstReceived_;
|
||||
public bool FirstReceived {
|
||||
get { return firstReceived_; }
|
||||
set {
|
||||
firstReceived_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "role" field.</summary>
|
||||
public const int RoleFieldNumber = 2;
|
||||
private static readonly pb::FieldCodec<uint> _repeated_role_codec
|
||||
= pb::FieldCodec.ForUInt32(18);
|
||||
private readonly pbc::RepeatedField<uint> role_ = new pbc::RepeatedField<uint>();
|
||||
public pbc::RepeatedField<uint> Role {
|
||||
get { return role_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "friend_invitation" field.</summary>
|
||||
public const int FriendInvitation_FieldNumber = 103;
|
||||
private Bgs.Protocol.Friends.V1.FriendInvitation friendInvitation_;
|
||||
public Bgs.Protocol.Friends.V1.FriendInvitation FriendInvitation_ {
|
||||
get { return friendInvitation_; }
|
||||
set {
|
||||
friendInvitation_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as FriendInvitation);
|
||||
}
|
||||
|
||||
public bool Equals(FriendInvitation other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (FirstReceived != other.FirstReceived) return false;
|
||||
if(!role_.Equals(other.role_)) return false;
|
||||
if (!object.Equals(FriendInvitation_, other.FriendInvitation_)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (FirstReceived != false) hash ^= FirstReceived.GetHashCode();
|
||||
hash ^= role_.GetHashCode();
|
||||
if (friendInvitation_ != null) hash ^= FriendInvitation_.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (FirstReceived != false) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteBool(FirstReceived);
|
||||
}
|
||||
role_.WriteTo(output, _repeated_role_codec);
|
||||
if (friendInvitation_ != null) {
|
||||
output.WriteRawTag(186, 6);
|
||||
output.WriteMessage(FriendInvitation_);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (FirstReceived != false) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
size += role_.CalculateSize(_repeated_role_codec);
|
||||
if (friendInvitation_ != null) {
|
||||
size += 2 + pb::CodedOutputStream.ComputeMessageSize(FriendInvitation_);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(FriendInvitation other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.FirstReceived != false) {
|
||||
FirstReceived = other.FirstReceived;
|
||||
}
|
||||
role_.Add(other.role_);
|
||||
if (other.friendInvitation_ != null) {
|
||||
if (friendInvitation_ == null) {
|
||||
friendInvitation_ = new Bgs.Protocol.Friends.V1.FriendInvitation();
|
||||
}
|
||||
FriendInvitation_.MergeFrom(other.FriendInvitation_);
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 8: {
|
||||
FirstReceived = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 18:
|
||||
case 16: {
|
||||
role_.AddEntriesFrom(input, _repeated_role_codec);
|
||||
break;
|
||||
}
|
||||
case 826: {
|
||||
if (friendInvitation_ == null) {
|
||||
friendInvitation_ = new Bgs.Protocol.Friends.V1.FriendInvitation();
|
||||
}
|
||||
input.ReadMessage(friendInvitation_);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class FriendInvitationParams : pb::IMessage<FriendInvitationParams> {
|
||||
private static readonly pb::MessageParser<FriendInvitationParams> _parser = new pb::MessageParser<FriendInvitationParams>(() => new FriendInvitationParams());
|
||||
public static pb::MessageParser<FriendInvitationParams> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.Friends.V1.FriendsTypesReflection.Descriptor.MessageTypes[2]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public FriendInvitationParams() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public FriendInvitationParams(FriendInvitationParams other) : this() {
|
||||
targetEmail_ = other.targetEmail_;
|
||||
targetBattleTag_ = other.targetBattleTag_;
|
||||
inviterBattleTag_ = other.inviterBattleTag_;
|
||||
inviterFullName_ = other.inviterFullName_;
|
||||
inviteeDisplayName_ = other.inviteeDisplayName_;
|
||||
role_ = other.role_.Clone();
|
||||
previousRoleDeprecated_ = other.previousRoleDeprecated_.Clone();
|
||||
FriendParams = other.friendParams_ != null ? other.FriendParams.Clone() : null;
|
||||
}
|
||||
|
||||
public FriendInvitationParams Clone() {
|
||||
return new FriendInvitationParams(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "target_email" field.</summary>
|
||||
public const int TargetEmailFieldNumber = 1;
|
||||
private string targetEmail_ = "";
|
||||
public string TargetEmail {
|
||||
get { return targetEmail_; }
|
||||
set {
|
||||
targetEmail_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "target_battle_tag" field.</summary>
|
||||
public const int TargetBattleTagFieldNumber = 2;
|
||||
private string targetBattleTag_ = "";
|
||||
public string TargetBattleTag {
|
||||
get { return targetBattleTag_; }
|
||||
set {
|
||||
targetBattleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "inviter_battle_tag" field.</summary>
|
||||
public const int InviterBattleTagFieldNumber = 3;
|
||||
private string inviterBattleTag_ = "";
|
||||
public string InviterBattleTag {
|
||||
get { return inviterBattleTag_; }
|
||||
set {
|
||||
inviterBattleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "inviter_full_name" field.</summary>
|
||||
public const int InviterFullNameFieldNumber = 4;
|
||||
private string inviterFullName_ = "";
|
||||
public string InviterFullName {
|
||||
get { return inviterFullName_; }
|
||||
set {
|
||||
inviterFullName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "invitee_display_name" field.</summary>
|
||||
public const int InviteeDisplayNameFieldNumber = 5;
|
||||
private string inviteeDisplayName_ = "";
|
||||
public string InviteeDisplayName {
|
||||
get { return inviteeDisplayName_; }
|
||||
set {
|
||||
inviteeDisplayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "role" field.</summary>
|
||||
public const int RoleFieldNumber = 6;
|
||||
private static readonly pb::FieldCodec<uint> _repeated_role_codec
|
||||
= pb::FieldCodec.ForUInt32(50);
|
||||
private readonly pbc::RepeatedField<uint> role_ = new pbc::RepeatedField<uint>();
|
||||
public pbc::RepeatedField<uint> Role {
|
||||
get { return role_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "previous_role_deprecated" field.</summary>
|
||||
public const int PreviousRoleDeprecatedFieldNumber = 7;
|
||||
private static readonly pb::FieldCodec<uint> _repeated_previousRoleDeprecated_codec
|
||||
= pb::FieldCodec.ForUInt32(58);
|
||||
private readonly pbc::RepeatedField<uint> previousRoleDeprecated_ = new pbc::RepeatedField<uint>();
|
||||
[System.ObsoleteAttribute()]
|
||||
public pbc::RepeatedField<uint> PreviousRoleDeprecated {
|
||||
get { return previousRoleDeprecated_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "friend_params" field.</summary>
|
||||
public const int FriendParamsFieldNumber = 103;
|
||||
private Bgs.Protocol.Friends.V1.FriendInvitationParams friendParams_;
|
||||
public Bgs.Protocol.Friends.V1.FriendInvitationParams FriendParams {
|
||||
get { return friendParams_; }
|
||||
set {
|
||||
friendParams_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as FriendInvitationParams);
|
||||
}
|
||||
|
||||
public bool Equals(FriendInvitationParams other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (TargetEmail != other.TargetEmail) return false;
|
||||
if (TargetBattleTag != other.TargetBattleTag) return false;
|
||||
if (InviterBattleTag != other.InviterBattleTag) return false;
|
||||
if (InviterFullName != other.InviterFullName) return false;
|
||||
if (InviteeDisplayName != other.InviteeDisplayName) return false;
|
||||
if(!role_.Equals(other.role_)) return false;
|
||||
if(!previousRoleDeprecated_.Equals(other.previousRoleDeprecated_)) return false;
|
||||
if (!object.Equals(FriendParams, other.FriendParams)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (TargetEmail.Length != 0) hash ^= TargetEmail.GetHashCode();
|
||||
if (TargetBattleTag.Length != 0) hash ^= TargetBattleTag.GetHashCode();
|
||||
if (InviterBattleTag.Length != 0) hash ^= InviterBattleTag.GetHashCode();
|
||||
if (InviterFullName.Length != 0) hash ^= InviterFullName.GetHashCode();
|
||||
if (InviteeDisplayName.Length != 0) hash ^= InviteeDisplayName.GetHashCode();
|
||||
hash ^= role_.GetHashCode();
|
||||
hash ^= previousRoleDeprecated_.GetHashCode();
|
||||
if (friendParams_ != null) hash ^= FriendParams.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (TargetEmail.Length != 0) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(TargetEmail);
|
||||
}
|
||||
if (TargetBattleTag.Length != 0) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteString(TargetBattleTag);
|
||||
}
|
||||
if (InviterBattleTag.Length != 0) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteString(InviterBattleTag);
|
||||
}
|
||||
if (InviterFullName.Length != 0) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteString(InviterFullName);
|
||||
}
|
||||
if (InviteeDisplayName.Length != 0) {
|
||||
output.WriteRawTag(42);
|
||||
output.WriteString(InviteeDisplayName);
|
||||
}
|
||||
role_.WriteTo(output, _repeated_role_codec);
|
||||
previousRoleDeprecated_.WriteTo(output, _repeated_previousRoleDeprecated_codec);
|
||||
if (friendParams_ != null) {
|
||||
output.WriteRawTag(186, 6);
|
||||
output.WriteMessage(FriendParams);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (TargetEmail.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetEmail);
|
||||
}
|
||||
if (TargetBattleTag.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetBattleTag);
|
||||
}
|
||||
if (InviterBattleTag.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(InviterBattleTag);
|
||||
}
|
||||
if (InviterFullName.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(InviterFullName);
|
||||
}
|
||||
if (InviteeDisplayName.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(InviteeDisplayName);
|
||||
}
|
||||
size += role_.CalculateSize(_repeated_role_codec);
|
||||
size += previousRoleDeprecated_.CalculateSize(_repeated_previousRoleDeprecated_codec);
|
||||
if (friendParams_ != null) {
|
||||
size += 2 + pb::CodedOutputStream.ComputeMessageSize(FriendParams);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(FriendInvitationParams other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.TargetEmail.Length != 0) {
|
||||
TargetEmail = other.TargetEmail;
|
||||
}
|
||||
if (other.TargetBattleTag.Length != 0) {
|
||||
TargetBattleTag = other.TargetBattleTag;
|
||||
}
|
||||
if (other.InviterBattleTag.Length != 0) {
|
||||
InviterBattleTag = other.InviterBattleTag;
|
||||
}
|
||||
if (other.InviterFullName.Length != 0) {
|
||||
InviterFullName = other.InviterFullName;
|
||||
}
|
||||
if (other.InviteeDisplayName.Length != 0) {
|
||||
InviteeDisplayName = other.InviteeDisplayName;
|
||||
}
|
||||
role_.Add(other.role_);
|
||||
previousRoleDeprecated_.Add(other.previousRoleDeprecated_);
|
||||
if (other.friendParams_ != null) {
|
||||
if (friendParams_ == null) {
|
||||
friendParams_ = new Bgs.Protocol.Friends.V1.FriendInvitationParams();
|
||||
}
|
||||
FriendParams.MergeFrom(other.FriendParams);
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 10: {
|
||||
TargetEmail = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
TargetBattleTag = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
InviterBattleTag = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
InviterFullName = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 42: {
|
||||
InviteeDisplayName = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 50:
|
||||
case 48: {
|
||||
role_.AddEntriesFrom(input, _repeated_role_codec);
|
||||
break;
|
||||
}
|
||||
case 58:
|
||||
case 56: {
|
||||
previousRoleDeprecated_.AddEntriesFrom(input, _repeated_previousRoleDeprecated_codec);
|
||||
break;
|
||||
}
|
||||
case 826: {
|
||||
if (friendParams_ == null) {
|
||||
friendParams_ = new Bgs.Protocol.Friends.V1.FriendInvitationParams();
|
||||
}
|
||||
input.ReadMessage(friendParams_);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,336 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/game_utilities_types.proto
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = Google.Protobuf;
|
||||
using pbc = Google.Protobuf.Collections;
|
||||
using pbr = Google.Protobuf.Reflection;
|
||||
namespace Bgs.Protocol.GameUtilities.V1
|
||||
{
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/game_utilities_types.proto</summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public static partial class GameUtilitiesTypesReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/game_utilities_types.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static GameUtilitiesTypesReflection() {
|
||||
byte[] descriptorData = System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CixiZ3MvbG93L3BiL2NsaWVudC9nYW1lX3V0aWxpdGllc190eXBlcy5wcm90",
|
||||
"bxIeYmdzLnByb3RvY29sLmdhbWVfdXRpbGl0aWVzLnYxGidiZ3MvbG93L3Bi",
|
||||
"L2NsaWVudC9hdHRyaWJ1dGVfdHlwZXMucHJvdG8aJGJncy9sb3cvcGIvY2xp",
|
||||
"ZW50L2VudGl0eV90eXBlcy5wcm90byJ3Cg9QbGF5ZXJWYXJpYWJsZXMSKAoI",
|
||||
"aWRlbnRpdHkYASABKAsyFi5iZ3MucHJvdG9jb2wuSWRlbnRpdHkSDgoGcmF0",
|
||||
"aW5nGAIgASgBEioKCWF0dHJpYnV0ZRgDIAMoCzIXLmJncy5wcm90b2NvbC5B",
|
||||
"dHRyaWJ1dGUiQAoKQ2xpZW50SW5mbxIWCg5jbGllbnRfYWRkcmVzcxgBIAEo",
|
||||
"CRIaChJwcml2aWxlZ2VkX25ldHdvcmsYAiABKAhCPAofYm5ldC5wcm90b2Nv",
|
||||
"bC5nYW1lX3V0aWxpdGllcy52MUIXR2FtZVV0aWxpdGllc1R5cGVzUHJvdG9I",
|
||||
"AmIGcHJvdG8z"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { Bgs.Protocol.AttributeTypesReflection.Descriptor, Bgs.Protocol.EntityTypesReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.GameUtilities.V1.PlayerVariables), Bgs.Protocol.GameUtilities.V1.PlayerVariables.Parser, new[]{ "Identity", "Rating", "Attribute" }, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.GameUtilities.V1.ClientInfo), Bgs.Protocol.GameUtilities.V1.ClientInfo.Parser, new[]{ "ClientAddress", "PrivilegedNetwork" }, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class PlayerVariables : pb::IMessage<PlayerVariables> {
|
||||
private static readonly pb::MessageParser<PlayerVariables> _parser = new pb::MessageParser<PlayerVariables>(() => new PlayerVariables());
|
||||
public static pb::MessageParser<PlayerVariables> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.GameUtilities.V1.GameUtilitiesTypesReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public PlayerVariables() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public PlayerVariables(PlayerVariables other) : this() {
|
||||
Identity = other.identity_ != null ? other.Identity.Clone() : null;
|
||||
rating_ = other.rating_;
|
||||
attribute_ = other.attribute_.Clone();
|
||||
}
|
||||
|
||||
public PlayerVariables Clone() {
|
||||
return new PlayerVariables(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "identity" field.</summary>
|
||||
public const int IdentityFieldNumber = 1;
|
||||
private Bgs.Protocol.Identity identity_;
|
||||
public Bgs.Protocol.Identity Identity {
|
||||
get { return identity_; }
|
||||
set {
|
||||
identity_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "rating" field.</summary>
|
||||
public const int RatingFieldNumber = 2;
|
||||
private double rating_;
|
||||
public double Rating {
|
||||
get { return rating_; }
|
||||
set {
|
||||
rating_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "attribute" field.</summary>
|
||||
public const int AttributeFieldNumber = 3;
|
||||
private static readonly pb::FieldCodec<Bgs.Protocol.Attribute> _repeated_attribute_codec
|
||||
= pb::FieldCodec.ForMessage(26, Bgs.Protocol.Attribute.Parser);
|
||||
private readonly pbc::RepeatedField<Bgs.Protocol.Attribute> attribute_ = new pbc::RepeatedField<Bgs.Protocol.Attribute>();
|
||||
public pbc::RepeatedField<Bgs.Protocol.Attribute> Attribute {
|
||||
get { return attribute_; }
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as PlayerVariables);
|
||||
}
|
||||
|
||||
public bool Equals(PlayerVariables other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(Identity, other.Identity)) return false;
|
||||
if (Rating != other.Rating) return false;
|
||||
if(!attribute_.Equals(other.attribute_)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (identity_ != null) hash ^= Identity.GetHashCode();
|
||||
if (Rating != 0D) hash ^= Rating.GetHashCode();
|
||||
hash ^= attribute_.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (identity_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(Identity);
|
||||
}
|
||||
if (Rating != 0D) {
|
||||
output.WriteRawTag(17);
|
||||
output.WriteDouble(Rating);
|
||||
}
|
||||
attribute_.WriteTo(output, _repeated_attribute_codec);
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (identity_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Identity);
|
||||
}
|
||||
if (Rating != 0D) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
size += attribute_.CalculateSize(_repeated_attribute_codec);
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(PlayerVariables other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.identity_ != null) {
|
||||
if (identity_ == null) {
|
||||
identity_ = new Bgs.Protocol.Identity();
|
||||
}
|
||||
Identity.MergeFrom(other.Identity);
|
||||
}
|
||||
if (other.Rating != 0D) {
|
||||
Rating = other.Rating;
|
||||
}
|
||||
attribute_.Add(other.attribute_);
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 10: {
|
||||
if (identity_ == null) {
|
||||
identity_ = new Bgs.Protocol.Identity();
|
||||
}
|
||||
input.ReadMessage(identity_);
|
||||
break;
|
||||
}
|
||||
case 17: {
|
||||
Rating = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
attribute_.AddEntriesFrom(input, _repeated_attribute_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class ClientInfo : pb::IMessage<ClientInfo> {
|
||||
private static readonly pb::MessageParser<ClientInfo> _parser = new pb::MessageParser<ClientInfo>(() => new ClientInfo());
|
||||
public static pb::MessageParser<ClientInfo> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.GameUtilities.V1.GameUtilitiesTypesReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public ClientInfo() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public ClientInfo(ClientInfo other) : this() {
|
||||
clientAddress_ = other.clientAddress_;
|
||||
privilegedNetwork_ = other.privilegedNetwork_;
|
||||
}
|
||||
|
||||
public ClientInfo Clone() {
|
||||
return new ClientInfo(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "client_address" field.</summary>
|
||||
public const int ClientAddressFieldNumber = 1;
|
||||
private string clientAddress_ = "";
|
||||
public string ClientAddress {
|
||||
get { return clientAddress_; }
|
||||
set {
|
||||
clientAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "privileged_network" field.</summary>
|
||||
public const int PrivilegedNetworkFieldNumber = 2;
|
||||
private bool privilegedNetwork_;
|
||||
public bool PrivilegedNetwork {
|
||||
get { return privilegedNetwork_; }
|
||||
set {
|
||||
privilegedNetwork_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as ClientInfo);
|
||||
}
|
||||
|
||||
public bool Equals(ClientInfo other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (ClientAddress != other.ClientAddress) return false;
|
||||
if (PrivilegedNetwork != other.PrivilegedNetwork) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (ClientAddress.Length != 0) hash ^= ClientAddress.GetHashCode();
|
||||
if (PrivilegedNetwork != false) hash ^= PrivilegedNetwork.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (ClientAddress.Length != 0) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(ClientAddress);
|
||||
}
|
||||
if (PrivilegedNetwork != false) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteBool(PrivilegedNetwork);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (ClientAddress.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientAddress);
|
||||
}
|
||||
if (PrivilegedNetwork != false) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(ClientInfo other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.ClientAddress.Length != 0) {
|
||||
ClientAddress = other.ClientAddress;
|
||||
}
|
||||
if (other.PrivilegedNetwork != false) {
|
||||
PrivilegedNetwork = other.PrivilegedNetwork;
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 10: {
|
||||
ClientAddress = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
PrivilegedNetwork = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,48 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/global_extensions/field_options.proto
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pbr = Google.Protobuf.Reflection;
|
||||
namespace Bgs.Protocol
|
||||
{
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/global_extensions/field_options.proto</summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public static partial class FieldOptionsReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/global_extensions/field_options.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static FieldOptionsReflection() {
|
||||
byte[] descriptorData = System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjdiZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9maWVsZF9v",
|
||||
"cHRpb25zLnByb3RvEgxiZ3MucHJvdG9jb2waIGdvb2dsZS9wcm90b2J1Zi9k",
|
||||
"ZXNjcmlwdG9yLnByb3RvKioKCUxvZ09wdGlvbhIICgROT05FEAASCgoGSElE",
|
||||
"REVOEAESBwoDSEVYEAI6RQoDbG9nEh0uZ29vZ2xlLnByb3RvYnVmLkZpZWxk",
|
||||
"T3B0aW9ucxjQhgMgASgOMhcuYmdzLnByb3RvY29sLkxvZ09wdGlvbkIkCg1i",
|
||||
"bmV0LnByb3RvY29sQhFGaWVsZE9wdGlvbnNQcm90b0gCYgZwcm90bzM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { pbr::FileDescriptor.DescriptorProtoFileDescriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(new[] {typeof(Bgs.Protocol.LogOption), }, null));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Enums
|
||||
public enum LogOption {
|
||||
NONE = 0,
|
||||
HIDDEN = 1,
|
||||
HEX = 2,
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,38 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/global_extensions/method_options.proto
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pbr = Google.Protobuf.Reflection;
|
||||
namespace Bgs.Protocol
|
||||
{
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/global_extensions/method_options.proto</summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public static partial class MethodOptionsReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/global_extensions/method_options.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static MethodOptionsReflection() {
|
||||
byte[] descriptorData = System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjhiZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXRob2Rf",
|
||||
"b3B0aW9ucy5wcm90bxIMYmdzLnByb3RvY29sGiBnb29nbGUvcHJvdG9idWYv",
|
||||
"ZGVzY3JpcHRvci5wcm90bzozCgltZXRob2RfaWQSHi5nb29nbGUucHJvdG9i",
|
||||
"dWYuTWV0aG9kT3B0aW9ucxjQhgMgASgNQiUKDWJuZXQucHJvdG9jb2xCEk1l",
|
||||
"dGhvZE9wdGlvbnNQcm90b0gCYgZwcm90bzM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { pbr::FileDescriptor.DescriptorProtoFileDescriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,40 @@
|
||||
// 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 pbr = Google.Protobuf.Reflection;
|
||||
namespace Bgs.Protocol
|
||||
{
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/global_extensions/service_options.proto</summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public static partial class ServiceOptionsReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/global_extensions/service_options.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static ServiceOptionsReflection() {
|
||||
byte[] descriptorData = System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9zZXJ2aWNl",
|
||||
"X29wdGlvbnMucHJvdG8SDGJncy5wcm90b2NvbBogZ29vZ2xlL3Byb3RvYnVm",
|
||||
"L2Rlc2NyaXB0b3IucHJvdG86Ugoob3JpZ2luYWxfZnVsbHlfcXVhbGlmaWVk",
|
||||
"X2Rlc2NyaXB0b3JfbmFtZRIfLmdvb2dsZS5wcm90b2J1Zi5TZXJ2aWNlT3B0",
|
||||
"aW9ucxjpByABKAk6NQoKc2VydmljZV9pZBIfLmdvb2dsZS5wcm90b2J1Zi5T",
|
||||
"ZXJ2aWNlT3B0aW9ucxjQhgMgASgNQiYKDWJuZXQucHJvdG9jb2xCE1NlcnZp",
|
||||
"Y2VPcHRpb25zUHJvdG9IAmIGcHJvdG8z"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { pbr::FileDescriptor.DescriptorProtoFileDescriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,727 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/notification_types.proto
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = Google.Protobuf;
|
||||
using pbc = Google.Protobuf.Collections;
|
||||
using pbr = Google.Protobuf.Reflection;
|
||||
namespace Bgs.Protocol.Notification.V1
|
||||
{
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/notification_types.proto</summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public static partial class NotificationTypesReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/notification_types.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static NotificationTypesReflection() {
|
||||
byte[] descriptorData = System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CipiZ3MvbG93L3BiL2NsaWVudC9ub3RpZmljYXRpb25fdHlwZXMucHJvdG8S",
|
||||
"HGJncy5wcm90b2NvbC5ub3RpZmljYXRpb24udjEaJWJncy9sb3cvcGIvY2xp",
|
||||
"ZW50L2FjY291bnRfdHlwZXMucHJvdG8aJ2Jncy9sb3cvcGIvY2xpZW50L2F0",
|
||||
"dHJpYnV0ZV90eXBlcy5wcm90bxokYmdzL2xvdy9wYi9jbGllbnQvZW50aXR5",
|
||||
"X3R5cGVzLnByb3RvGiFiZ3MvbG93L3BiL2NsaWVudC9ycGNfdHlwZXMucHJv",
|
||||
"dG8iSwoGVGFyZ2V0EjMKCGlkZW50aXR5GAEgASgLMiEuYmdzLnByb3RvY29s",
|
||||
"LmFjY291bnQudjEuSWRlbnRpdHkSDAoEdHlwZRgCIAEoCSKWAQoMU3Vic2Ny",
|
||||
"aXB0aW9uEjQKBnRhcmdldBgBIAMoCzIkLmJncy5wcm90b2NvbC5ub3RpZmlj",
|
||||
"YXRpb24udjEuVGFyZ2V0EjUKCnN1YnNjcmliZXIYAiABKAsyIS5iZ3MucHJv",
|
||||
"dG9jb2wuYWNjb3VudC52MS5JZGVudGl0eRIZChFkZWxpdmVyeV9yZXF1aXJl",
|
||||
"ZBgDIAEoCCKhAwoMTm90aWZpY2F0aW9uEikKCXNlbmRlcl9pZBgBIAEoCzIW",
|
||||
"LmJncy5wcm90b2NvbC5FbnRpdHlJZBIpCgl0YXJnZXRfaWQYAiABKAsyFi5i",
|
||||
"Z3MucHJvdG9jb2wuRW50aXR5SWQSDAoEdHlwZRgDIAEoCRIqCglhdHRyaWJ1",
|
||||
"dGUYBCADKAsyFy5iZ3MucHJvdG9jb2wuQXR0cmlidXRlEjEKEXNlbmRlcl9h",
|
||||
"Y2NvdW50X2lkGAUgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEjEKEXRh",
|
||||
"cmdldF9hY2NvdW50X2lkGAYgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlk",
|
||||
"EhkKEXNlbmRlcl9iYXR0bGVfdGFnGAcgASgJEhkKEXRhcmdldF9iYXR0bGVf",
|
||||
"dGFnGAggASgJEiUKBHBlZXIYCSABKAsyFy5iZ3MucHJvdG9jb2wuUHJvY2Vz",
|
||||
"c0lkEj4KE2ZvcndhcmRpbmdfaWRlbnRpdHkYCiABKAsyIS5iZ3MucHJvdG9j",
|
||||
"b2wuYWNjb3VudC52MS5JZGVudGl0eUICSAJiBnByb3RvMw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor, Bgs.Protocol.AttributeTypesReflection.Descriptor, Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.RpcTypesReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Notification.V1.Target), Bgs.Protocol.Notification.V1.Target.Parser, new[]{ "Identity", "Type" }, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Notification.V1.Subscription), Bgs.Protocol.Notification.V1.Subscription.Parser, new[]{ "Target", "Subscriber", "DeliveryRequired" }, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Notification.V1.Notification), Bgs.Protocol.Notification.V1.Notification.Parser, new[]{ "SenderId", "TargetId", "Type", "Attribute", "SenderAccountId", "TargetAccountId", "SenderBattleTag", "TargetBattleTag", "Peer", "ForwardingIdentity" }, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class Target : pb::IMessage<Target> {
|
||||
private static readonly pb::MessageParser<Target> _parser = new pb::MessageParser<Target>(() => new Target());
|
||||
public static pb::MessageParser<Target> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.Notification.V1.NotificationTypesReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public Target() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public Target(Target other) : this() {
|
||||
Identity = other.identity_ != null ? other.Identity.Clone() : null;
|
||||
type_ = other.type_;
|
||||
}
|
||||
|
||||
public Target Clone() {
|
||||
return new Target(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "identity" field.</summary>
|
||||
public const int IdentityFieldNumber = 1;
|
||||
private Bgs.Protocol.Account.V1.Identity identity_;
|
||||
public Bgs.Protocol.Account.V1.Identity Identity {
|
||||
get { return identity_; }
|
||||
set {
|
||||
identity_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "type" field.</summary>
|
||||
public const int TypeFieldNumber = 2;
|
||||
private string type_ = "";
|
||||
public string Type {
|
||||
get { return type_; }
|
||||
set {
|
||||
type_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as Target);
|
||||
}
|
||||
|
||||
public bool Equals(Target other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(Identity, other.Identity)) return false;
|
||||
if (Type != other.Type) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (identity_ != null) hash ^= Identity.GetHashCode();
|
||||
if (Type.Length != 0) hash ^= Type.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (identity_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(Identity);
|
||||
}
|
||||
if (Type.Length != 0) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteString(Type);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (identity_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Identity);
|
||||
}
|
||||
if (Type.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Type);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(Target other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.identity_ != null) {
|
||||
if (identity_ == null) {
|
||||
identity_ = new Bgs.Protocol.Account.V1.Identity();
|
||||
}
|
||||
Identity.MergeFrom(other.Identity);
|
||||
}
|
||||
if (other.Type.Length != 0) {
|
||||
Type = other.Type;
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 10: {
|
||||
if (identity_ == null) {
|
||||
identity_ = new Bgs.Protocol.Account.V1.Identity();
|
||||
}
|
||||
input.ReadMessage(identity_);
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
Type = input.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class Subscription : pb::IMessage<Subscription> {
|
||||
private static readonly pb::MessageParser<Subscription> _parser = new pb::MessageParser<Subscription>(() => new Subscription());
|
||||
public static pb::MessageParser<Subscription> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.Notification.V1.NotificationTypesReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public Subscription() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public Subscription(Subscription other) : this() {
|
||||
target_ = other.target_.Clone();
|
||||
Subscriber = other.subscriber_ != null ? other.Subscriber.Clone() : null;
|
||||
deliveryRequired_ = other.deliveryRequired_;
|
||||
}
|
||||
|
||||
public Subscription Clone() {
|
||||
return new Subscription(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "target" field.</summary>
|
||||
public const int TargetFieldNumber = 1;
|
||||
private static readonly pb::FieldCodec<Bgs.Protocol.Notification.V1.Target> _repeated_target_codec
|
||||
= pb::FieldCodec.ForMessage(10, Bgs.Protocol.Notification.V1.Target.Parser);
|
||||
private readonly pbc::RepeatedField<Bgs.Protocol.Notification.V1.Target> target_ = new pbc::RepeatedField<Bgs.Protocol.Notification.V1.Target>();
|
||||
public pbc::RepeatedField<Bgs.Protocol.Notification.V1.Target> Target {
|
||||
get { return target_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "subscriber" field.</summary>
|
||||
public const int SubscriberFieldNumber = 2;
|
||||
private Bgs.Protocol.Account.V1.Identity subscriber_;
|
||||
public Bgs.Protocol.Account.V1.Identity Subscriber {
|
||||
get { return subscriber_; }
|
||||
set {
|
||||
subscriber_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "delivery_required" field.</summary>
|
||||
public const int DeliveryRequiredFieldNumber = 3;
|
||||
private bool deliveryRequired_;
|
||||
public bool DeliveryRequired {
|
||||
get { return deliveryRequired_; }
|
||||
set {
|
||||
deliveryRequired_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as Subscription);
|
||||
}
|
||||
|
||||
public bool Equals(Subscription other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if(!target_.Equals(other.target_)) return false;
|
||||
if (!object.Equals(Subscriber, other.Subscriber)) return false;
|
||||
if (DeliveryRequired != other.DeliveryRequired) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
hash ^= target_.GetHashCode();
|
||||
if (subscriber_ != null) hash ^= Subscriber.GetHashCode();
|
||||
if (DeliveryRequired != false) hash ^= DeliveryRequired.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
target_.WriteTo(output, _repeated_target_codec);
|
||||
if (subscriber_ != null) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(Subscriber);
|
||||
}
|
||||
if (DeliveryRequired != false) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteBool(DeliveryRequired);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
size += target_.CalculateSize(_repeated_target_codec);
|
||||
if (subscriber_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Subscriber);
|
||||
}
|
||||
if (DeliveryRequired != false) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(Subscription other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
target_.Add(other.target_);
|
||||
if (other.subscriber_ != null) {
|
||||
if (subscriber_ == null) {
|
||||
subscriber_ = new Bgs.Protocol.Account.V1.Identity();
|
||||
}
|
||||
Subscriber.MergeFrom(other.Subscriber);
|
||||
}
|
||||
if (other.DeliveryRequired != false) {
|
||||
DeliveryRequired = other.DeliveryRequired;
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 10: {
|
||||
target_.AddEntriesFrom(input, _repeated_target_codec);
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (subscriber_ == null) {
|
||||
subscriber_ = new Bgs.Protocol.Account.V1.Identity();
|
||||
}
|
||||
input.ReadMessage(subscriber_);
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
DeliveryRequired = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class Notification : pb::IMessage<Notification> {
|
||||
private static readonly pb::MessageParser<Notification> _parser = new pb::MessageParser<Notification>(() => new Notification());
|
||||
public static pb::MessageParser<Notification> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.Notification.V1.NotificationTypesReflection.Descriptor.MessageTypes[2]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public Notification() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public Notification(Notification other) : this() {
|
||||
SenderId = other.senderId_ != null ? other.SenderId.Clone() : null;
|
||||
TargetId = other.targetId_ != null ? other.TargetId.Clone() : null;
|
||||
type_ = other.type_;
|
||||
attribute_ = other.attribute_.Clone();
|
||||
SenderAccountId = other.senderAccountId_ != null ? other.SenderAccountId.Clone() : null;
|
||||
TargetAccountId = other.targetAccountId_ != null ? other.TargetAccountId.Clone() : null;
|
||||
senderBattleTag_ = other.senderBattleTag_;
|
||||
targetBattleTag_ = other.targetBattleTag_;
|
||||
Peer = other.peer_ != null ? other.Peer.Clone() : null;
|
||||
ForwardingIdentity = other.forwardingIdentity_ != null ? other.ForwardingIdentity.Clone() : null;
|
||||
}
|
||||
|
||||
public Notification Clone() {
|
||||
return new Notification(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "sender_id" field.</summary>
|
||||
public const int SenderIdFieldNumber = 1;
|
||||
private Bgs.Protocol.EntityId senderId_;
|
||||
public Bgs.Protocol.EntityId SenderId {
|
||||
get { return senderId_; }
|
||||
set {
|
||||
senderId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "target_id" field.</summary>
|
||||
public const int TargetIdFieldNumber = 2;
|
||||
private Bgs.Protocol.EntityId targetId_;
|
||||
public Bgs.Protocol.EntityId TargetId {
|
||||
get { return targetId_; }
|
||||
set {
|
||||
targetId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "type" field.</summary>
|
||||
public const int TypeFieldNumber = 3;
|
||||
private string type_ = "";
|
||||
public string Type {
|
||||
get { return type_; }
|
||||
set {
|
||||
type_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "attribute" field.</summary>
|
||||
public const int AttributeFieldNumber = 4;
|
||||
private static readonly pb::FieldCodec<Bgs.Protocol.Attribute> _repeated_attribute_codec
|
||||
= pb::FieldCodec.ForMessage(34, Bgs.Protocol.Attribute.Parser);
|
||||
private readonly pbc::RepeatedField<Bgs.Protocol.Attribute> attribute_ = new pbc::RepeatedField<Bgs.Protocol.Attribute>();
|
||||
public pbc::RepeatedField<Bgs.Protocol.Attribute> Attribute {
|
||||
get { return attribute_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "sender_account_id" field.</summary>
|
||||
public const int SenderAccountIdFieldNumber = 5;
|
||||
private Bgs.Protocol.EntityId senderAccountId_;
|
||||
public Bgs.Protocol.EntityId SenderAccountId {
|
||||
get { return senderAccountId_; }
|
||||
set {
|
||||
senderAccountId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "target_account_id" field.</summary>
|
||||
public const int TargetAccountIdFieldNumber = 6;
|
||||
private Bgs.Protocol.EntityId targetAccountId_;
|
||||
public Bgs.Protocol.EntityId TargetAccountId {
|
||||
get { return targetAccountId_; }
|
||||
set {
|
||||
targetAccountId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "sender_battle_tag" field.</summary>
|
||||
public const int SenderBattleTagFieldNumber = 7;
|
||||
private string senderBattleTag_ = "";
|
||||
public string SenderBattleTag {
|
||||
get { return senderBattleTag_; }
|
||||
set {
|
||||
senderBattleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "target_battle_tag" field.</summary>
|
||||
public const int TargetBattleTagFieldNumber = 8;
|
||||
private string targetBattleTag_ = "";
|
||||
public string TargetBattleTag {
|
||||
get { return targetBattleTag_; }
|
||||
set {
|
||||
targetBattleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "peer" field.</summary>
|
||||
public const int PeerFieldNumber = 9;
|
||||
private Bgs.Protocol.ProcessId peer_;
|
||||
public Bgs.Protocol.ProcessId Peer {
|
||||
get { return peer_; }
|
||||
set {
|
||||
peer_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "forwarding_identity" field.</summary>
|
||||
public const int ForwardingIdentityFieldNumber = 10;
|
||||
private Bgs.Protocol.Account.V1.Identity forwardingIdentity_;
|
||||
public Bgs.Protocol.Account.V1.Identity ForwardingIdentity {
|
||||
get { return forwardingIdentity_; }
|
||||
set {
|
||||
forwardingIdentity_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as Notification);
|
||||
}
|
||||
|
||||
public bool Equals(Notification other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(SenderId, other.SenderId)) return false;
|
||||
if (!object.Equals(TargetId, other.TargetId)) return false;
|
||||
if (Type != other.Type) return false;
|
||||
if(!attribute_.Equals(other.attribute_)) return false;
|
||||
if (!object.Equals(SenderAccountId, other.SenderAccountId)) return false;
|
||||
if (!object.Equals(TargetAccountId, other.TargetAccountId)) return false;
|
||||
if (SenderBattleTag != other.SenderBattleTag) return false;
|
||||
if (TargetBattleTag != other.TargetBattleTag) return false;
|
||||
if (!object.Equals(Peer, other.Peer)) return false;
|
||||
if (!object.Equals(ForwardingIdentity, other.ForwardingIdentity)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (senderId_ != null) hash ^= SenderId.GetHashCode();
|
||||
if (targetId_ != null) hash ^= TargetId.GetHashCode();
|
||||
if (Type.Length != 0) hash ^= Type.GetHashCode();
|
||||
hash ^= attribute_.GetHashCode();
|
||||
if (senderAccountId_ != null) hash ^= SenderAccountId.GetHashCode();
|
||||
if (targetAccountId_ != null) hash ^= TargetAccountId.GetHashCode();
|
||||
if (SenderBattleTag.Length != 0) hash ^= SenderBattleTag.GetHashCode();
|
||||
if (TargetBattleTag.Length != 0) hash ^= TargetBattleTag.GetHashCode();
|
||||
if (peer_ != null) hash ^= Peer.GetHashCode();
|
||||
if (forwardingIdentity_ != null) hash ^= ForwardingIdentity.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (senderId_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(SenderId);
|
||||
}
|
||||
if (targetId_ != null) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(TargetId);
|
||||
}
|
||||
if (Type.Length != 0) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteString(Type);
|
||||
}
|
||||
attribute_.WriteTo(output, _repeated_attribute_codec);
|
||||
if (senderAccountId_ != null) {
|
||||
output.WriteRawTag(42);
|
||||
output.WriteMessage(SenderAccountId);
|
||||
}
|
||||
if (targetAccountId_ != null) {
|
||||
output.WriteRawTag(50);
|
||||
output.WriteMessage(TargetAccountId);
|
||||
}
|
||||
if (SenderBattleTag.Length != 0) {
|
||||
output.WriteRawTag(58);
|
||||
output.WriteString(SenderBattleTag);
|
||||
}
|
||||
if (TargetBattleTag.Length != 0) {
|
||||
output.WriteRawTag(66);
|
||||
output.WriteString(TargetBattleTag);
|
||||
}
|
||||
if (peer_ != null) {
|
||||
output.WriteRawTag(74);
|
||||
output.WriteMessage(Peer);
|
||||
}
|
||||
if (forwardingIdentity_ != null) {
|
||||
output.WriteRawTag(82);
|
||||
output.WriteMessage(ForwardingIdentity);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (senderId_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(SenderId);
|
||||
}
|
||||
if (targetId_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId);
|
||||
}
|
||||
if (Type.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Type);
|
||||
}
|
||||
size += attribute_.CalculateSize(_repeated_attribute_codec);
|
||||
if (senderAccountId_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(SenderAccountId);
|
||||
}
|
||||
if (targetAccountId_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetAccountId);
|
||||
}
|
||||
if (SenderBattleTag.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(SenderBattleTag);
|
||||
}
|
||||
if (TargetBattleTag.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetBattleTag);
|
||||
}
|
||||
if (peer_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Peer);
|
||||
}
|
||||
if (forwardingIdentity_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ForwardingIdentity);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(Notification other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.senderId_ != null) {
|
||||
if (senderId_ == null) {
|
||||
senderId_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
SenderId.MergeFrom(other.SenderId);
|
||||
}
|
||||
if (other.targetId_ != null) {
|
||||
if (targetId_ == null) {
|
||||
targetId_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
TargetId.MergeFrom(other.TargetId);
|
||||
}
|
||||
if (other.Type.Length != 0) {
|
||||
Type = other.Type;
|
||||
}
|
||||
attribute_.Add(other.attribute_);
|
||||
if (other.senderAccountId_ != null) {
|
||||
if (senderAccountId_ == null) {
|
||||
senderAccountId_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
SenderAccountId.MergeFrom(other.SenderAccountId);
|
||||
}
|
||||
if (other.targetAccountId_ != null) {
|
||||
if (targetAccountId_ == null) {
|
||||
targetAccountId_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
TargetAccountId.MergeFrom(other.TargetAccountId);
|
||||
}
|
||||
if (other.SenderBattleTag.Length != 0) {
|
||||
SenderBattleTag = other.SenderBattleTag;
|
||||
}
|
||||
if (other.TargetBattleTag.Length != 0) {
|
||||
TargetBattleTag = other.TargetBattleTag;
|
||||
}
|
||||
if (other.peer_ != null) {
|
||||
if (peer_ == null) {
|
||||
peer_ = new Bgs.Protocol.ProcessId();
|
||||
}
|
||||
Peer.MergeFrom(other.Peer);
|
||||
}
|
||||
if (other.forwardingIdentity_ != null) {
|
||||
if (forwardingIdentity_ == null) {
|
||||
forwardingIdentity_ = new Bgs.Protocol.Account.V1.Identity();
|
||||
}
|
||||
ForwardingIdentity.MergeFrom(other.ForwardingIdentity);
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 10: {
|
||||
if (senderId_ == null) {
|
||||
senderId_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
input.ReadMessage(senderId_);
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (targetId_ == null) {
|
||||
targetId_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
input.ReadMessage(targetId_);
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
Type = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
attribute_.AddEntriesFrom(input, _repeated_attribute_codec);
|
||||
break;
|
||||
}
|
||||
case 42: {
|
||||
if (senderAccountId_ == null) {
|
||||
senderAccountId_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
input.ReadMessage(senderAccountId_);
|
||||
break;
|
||||
}
|
||||
case 50: {
|
||||
if (targetAccountId_ == null) {
|
||||
targetAccountId_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
input.ReadMessage(targetAccountId_);
|
||||
break;
|
||||
}
|
||||
case 58: {
|
||||
SenderBattleTag = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 66: {
|
||||
TargetBattleTag = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 74: {
|
||||
if (peer_ == null) {
|
||||
peer_ = new Bgs.Protocol.ProcessId();
|
||||
}
|
||||
input.ReadMessage(peer_);
|
||||
break;
|
||||
}
|
||||
case 82: {
|
||||
if (forwardingIdentity_ == null) {
|
||||
forwardingIdentity_ = new Bgs.Protocol.Account.V1.Identity();
|
||||
}
|
||||
input.ReadMessage(forwardingIdentity_);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,882 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/presence_types.proto
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = Google.Protobuf;
|
||||
using pbc = Google.Protobuf.Collections;
|
||||
using pbr = Google.Protobuf.Reflection;
|
||||
namespace Bgs.Protocol.Presence.V1
|
||||
{
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/presence_types.proto</summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public static partial class PresenceTypesReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/presence_types.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static PresenceTypesReflection() {
|
||||
byte[] descriptorData = System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CiZiZ3MvbG93L3BiL2NsaWVudC9wcmVzZW5jZV90eXBlcy5wcm90bxIYYmdz",
|
||||
"LnByb3RvY29sLnByZXNlbmNlLnYxGidiZ3MvbG93L3BiL2NsaWVudC9hdHRy",
|
||||
"aWJ1dGVfdHlwZXMucHJvdG8aJGJncy9sb3cvcGIvY2xpZW50L2VudGl0eV90",
|
||||
"eXBlcy5wcm90bxolYmdzL2xvdy9wYi9jbGllbnQvY2hhbm5lbF90eXBlcy5w",
|
||||
"cm90byJXChtSaWNoUHJlc2VuY2VMb2NhbGl6YXRpb25LZXkSDwoHcHJvZ3Jh",
|
||||
"bRgBIAEoBxIOCgZzdHJlYW0YAiABKAcSFwoPbG9jYWxpemF0aW9uX2lkGAMg",
|
||||
"ASgNIkwKCEZpZWxkS2V5Eg8KB3Byb2dyYW0YASABKA0SDQoFZ3JvdXAYAiAB",
|
||||
"KA0SDQoFZmllbGQYAyABKA0SEQoJdW5pcXVlX2lkGAQgASgEIl4KBUZpZWxk",
|
||||
"Ei8KA2tleRgBIAEoCzIiLmJncy5wcm90b2NvbC5wcmVzZW5jZS52MS5GaWVs",
|
||||
"ZEtleRIkCgV2YWx1ZRgCIAEoCzIVLmJncy5wcm90b2NvbC5WYXJpYW50IrAB",
|
||||
"Cg5GaWVsZE9wZXJhdGlvbhIuCgVmaWVsZBgBIAEoCzIfLmJncy5wcm90b2Nv",
|
||||
"bC5wcmVzZW5jZS52MS5GaWVsZBJJCglvcGVyYXRpb24YAiABKA4yNi5iZ3Mu",
|
||||
"cHJvdG9jb2wucHJlc2VuY2UudjEuRmllbGRPcGVyYXRpb24uT3BlcmF0aW9u",
|
||||
"VHlwZSIjCg1PcGVyYXRpb25UeXBlEgcKA1NFVBAAEgkKBUNMRUFSEAEixwEK",
|
||||
"DENoYW5uZWxTdGF0ZRIpCgllbnRpdHlfaWQYASABKAsyFi5iZ3MucHJvdG9j",
|
||||
"b2wuRW50aXR5SWQSQQoPZmllbGRfb3BlcmF0aW9uGAIgAygLMiguYmdzLnBy",
|
||||
"b3RvY29sLnByZXNlbmNlLnYxLkZpZWxkT3BlcmF0aW9uEg8KB2hlYWxpbmcY",
|
||||
"AyABKAgSOAoIcHJlc2VuY2UYZSABKAsyJi5iZ3MucHJvdG9jb2wucHJlc2Vu",
|
||||
"Y2UudjEuQ2hhbm5lbFN0YXRlQgJIAmIGcHJvdG8z"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { Bgs.Protocol.AttributeTypesReflection.Descriptor, Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.Channel.V1.ChannelTypesReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Presence.V1.RichPresenceLocalizationKey), Bgs.Protocol.Presence.V1.RichPresenceLocalizationKey.Parser, new[]{ "Program", "Stream", "LocalizationId" }, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Presence.V1.FieldKey), Bgs.Protocol.Presence.V1.FieldKey.Parser, new[]{ "Program", "Group", "Field", "UniqueId" }, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Presence.V1.Field), Bgs.Protocol.Presence.V1.Field.Parser, new[]{ "Key", "Value" }, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Presence.V1.FieldOperation), Bgs.Protocol.Presence.V1.FieldOperation.Parser, new[]{ "Field", "Operation" }, null, new[]{ typeof(Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType) }, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Presence.V1.ChannelState), Bgs.Protocol.Presence.V1.ChannelState.Parser, new[]{ "EntityId", "FieldOperation", "Healing", "Presence" }, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class RichPresenceLocalizationKey : pb::IMessage<RichPresenceLocalizationKey> {
|
||||
private static readonly pb::MessageParser<RichPresenceLocalizationKey> _parser = new pb::MessageParser<RichPresenceLocalizationKey>(() => new RichPresenceLocalizationKey());
|
||||
public static pb::MessageParser<RichPresenceLocalizationKey> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.Presence.V1.PresenceTypesReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public RichPresenceLocalizationKey() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public RichPresenceLocalizationKey(RichPresenceLocalizationKey other) : this() {
|
||||
program_ = other.program_;
|
||||
stream_ = other.stream_;
|
||||
localizationId_ = other.localizationId_;
|
||||
}
|
||||
|
||||
public RichPresenceLocalizationKey Clone() {
|
||||
return new RichPresenceLocalizationKey(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "program" field.</summary>
|
||||
public const int ProgramFieldNumber = 1;
|
||||
private uint program_;
|
||||
public uint Program {
|
||||
get { return program_; }
|
||||
set {
|
||||
program_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "stream" field.</summary>
|
||||
public const int StreamFieldNumber = 2;
|
||||
private uint stream_;
|
||||
public uint Stream {
|
||||
get { return stream_; }
|
||||
set {
|
||||
stream_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "localization_id" field.</summary>
|
||||
public const int LocalizationIdFieldNumber = 3;
|
||||
private uint localizationId_;
|
||||
public uint LocalizationId {
|
||||
get { return localizationId_; }
|
||||
set {
|
||||
localizationId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as RichPresenceLocalizationKey);
|
||||
}
|
||||
|
||||
public bool Equals(RichPresenceLocalizationKey other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Program != other.Program) return false;
|
||||
if (Stream != other.Stream) return false;
|
||||
if (LocalizationId != other.LocalizationId) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (Program != 0) hash ^= Program.GetHashCode();
|
||||
if (Stream != 0) hash ^= Stream.GetHashCode();
|
||||
if (LocalizationId != 0) hash ^= LocalizationId.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (Program != 0) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFixed32(Program);
|
||||
}
|
||||
if (Stream != 0) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFixed32(Stream);
|
||||
}
|
||||
if (LocalizationId != 0) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteUInt32(LocalizationId);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (Program != 0) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (Stream != 0) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (LocalizationId != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(LocalizationId);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(RichPresenceLocalizationKey other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.Program != 0) {
|
||||
Program = other.Program;
|
||||
}
|
||||
if (other.Stream != 0) {
|
||||
Stream = other.Stream;
|
||||
}
|
||||
if (other.LocalizationId != 0) {
|
||||
LocalizationId = other.LocalizationId;
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 13: {
|
||||
Program = input.ReadFixed32();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
Stream = input.ReadFixed32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
LocalizationId = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class FieldKey : pb::IMessage<FieldKey> {
|
||||
private static readonly pb::MessageParser<FieldKey> _parser = new pb::MessageParser<FieldKey>(() => new FieldKey());
|
||||
public static pb::MessageParser<FieldKey> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.Presence.V1.PresenceTypesReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public FieldKey() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public FieldKey(FieldKey other) : this() {
|
||||
program_ = other.program_;
|
||||
group_ = other.group_;
|
||||
field_ = other.field_;
|
||||
uniqueId_ = other.uniqueId_;
|
||||
}
|
||||
|
||||
public FieldKey Clone() {
|
||||
return new FieldKey(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "program" field.</summary>
|
||||
public const int ProgramFieldNumber = 1;
|
||||
private uint program_;
|
||||
public uint Program {
|
||||
get { return program_; }
|
||||
set {
|
||||
program_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "group" field.</summary>
|
||||
public const int GroupFieldNumber = 2;
|
||||
private uint group_;
|
||||
public uint Group {
|
||||
get { return group_; }
|
||||
set {
|
||||
group_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "field" field.</summary>
|
||||
public const int FieldFieldNumber = 3;
|
||||
private uint field_;
|
||||
public uint Field {
|
||||
get { return field_; }
|
||||
set {
|
||||
field_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "unique_id" field.</summary>
|
||||
public const int UniqueIdFieldNumber = 4;
|
||||
private ulong uniqueId_;
|
||||
public ulong UniqueId {
|
||||
get { return uniqueId_; }
|
||||
set {
|
||||
uniqueId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as FieldKey);
|
||||
}
|
||||
|
||||
public bool Equals(FieldKey other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Program != other.Program) return false;
|
||||
if (Group != other.Group) return false;
|
||||
if (Field != other.Field) return false;
|
||||
if (UniqueId != other.UniqueId) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (Program != 0) hash ^= Program.GetHashCode();
|
||||
if (Group != 0) hash ^= Group.GetHashCode();
|
||||
if (Field != 0) hash ^= Field.GetHashCode();
|
||||
if (UniqueId != 0UL) hash ^= UniqueId.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (Program != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt32(Program);
|
||||
}
|
||||
if (Group != 0) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteUInt32(Group);
|
||||
}
|
||||
if (Field != 0) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteUInt32(Field);
|
||||
}
|
||||
if (UniqueId != 0UL) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteUInt64(UniqueId);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (Program != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Program);
|
||||
}
|
||||
if (Group != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Group);
|
||||
}
|
||||
if (Field != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Field);
|
||||
}
|
||||
if (UniqueId != 0UL) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(UniqueId);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(FieldKey other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.Program != 0) {
|
||||
Program = other.Program;
|
||||
}
|
||||
if (other.Group != 0) {
|
||||
Group = other.Group;
|
||||
}
|
||||
if (other.Field != 0) {
|
||||
Field = other.Field;
|
||||
}
|
||||
if (other.UniqueId != 0UL) {
|
||||
UniqueId = other.UniqueId;
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 8: {
|
||||
Program = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
Group = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
Field = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
UniqueId = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class Field : pb::IMessage<Field> {
|
||||
private static readonly pb::MessageParser<Field> _parser = new pb::MessageParser<Field>(() => new Field());
|
||||
public static pb::MessageParser<Field> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.Presence.V1.PresenceTypesReflection.Descriptor.MessageTypes[2]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public Field() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public Field(Field other) : this() {
|
||||
Key = other.key_ != null ? other.Key.Clone() : null;
|
||||
Value = other.value_ != null ? other.Value.Clone() : null;
|
||||
}
|
||||
|
||||
public Field Clone() {
|
||||
return new Field(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "key" field.</summary>
|
||||
public const int KeyFieldNumber = 1;
|
||||
private Bgs.Protocol.Presence.V1.FieldKey key_;
|
||||
public Bgs.Protocol.Presence.V1.FieldKey Key {
|
||||
get { return key_; }
|
||||
set {
|
||||
key_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "value" field.</summary>
|
||||
public const int ValueFieldNumber = 2;
|
||||
private Bgs.Protocol.Variant value_;
|
||||
public Bgs.Protocol.Variant Value {
|
||||
get { return value_; }
|
||||
set {
|
||||
value_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as Field);
|
||||
}
|
||||
|
||||
public bool Equals(Field other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(Key, other.Key)) return false;
|
||||
if (!object.Equals(Value, other.Value)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (key_ != null) hash ^= Key.GetHashCode();
|
||||
if (value_ != null) hash ^= Value.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (key_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(Key);
|
||||
}
|
||||
if (value_ != null) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(Value);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (key_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Key);
|
||||
}
|
||||
if (value_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(Field other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.key_ != null) {
|
||||
if (key_ == null) {
|
||||
key_ = new Bgs.Protocol.Presence.V1.FieldKey();
|
||||
}
|
||||
Key.MergeFrom(other.Key);
|
||||
}
|
||||
if (other.value_ != null) {
|
||||
if (value_ == null) {
|
||||
value_ = new Bgs.Protocol.Variant();
|
||||
}
|
||||
Value.MergeFrom(other.Value);
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 10: {
|
||||
if (key_ == null) {
|
||||
key_ = new Bgs.Protocol.Presence.V1.FieldKey();
|
||||
}
|
||||
input.ReadMessage(key_);
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (value_ == null) {
|
||||
value_ = new Bgs.Protocol.Variant();
|
||||
}
|
||||
input.ReadMessage(value_);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class FieldOperation : pb::IMessage<FieldOperation> {
|
||||
private static readonly pb::MessageParser<FieldOperation> _parser = new pb::MessageParser<FieldOperation>(() => new FieldOperation());
|
||||
public static pb::MessageParser<FieldOperation> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.Presence.V1.PresenceTypesReflection.Descriptor.MessageTypes[3]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public FieldOperation() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public FieldOperation(FieldOperation other) : this() {
|
||||
Field = other.field_ != null ? other.Field.Clone() : null;
|
||||
operation_ = other.operation_;
|
||||
}
|
||||
|
||||
public FieldOperation Clone() {
|
||||
return new FieldOperation(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "field" field.</summary>
|
||||
public const int FieldFieldNumber = 1;
|
||||
private Bgs.Protocol.Presence.V1.Field field_;
|
||||
public Bgs.Protocol.Presence.V1.Field Field {
|
||||
get { return field_; }
|
||||
set {
|
||||
field_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "operation" field.</summary>
|
||||
public const int OperationFieldNumber = 2;
|
||||
private Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType operation_ = Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType.SET;
|
||||
public Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType Operation {
|
||||
get { return operation_; }
|
||||
set {
|
||||
operation_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as FieldOperation);
|
||||
}
|
||||
|
||||
public bool Equals(FieldOperation other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(Field, other.Field)) return false;
|
||||
if (Operation != other.Operation) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (field_ != null) hash ^= Field.GetHashCode();
|
||||
if (Operation != Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType.SET) hash ^= Operation.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (field_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(Field);
|
||||
}
|
||||
if (Operation != Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType.SET) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteEnum((int) Operation);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (field_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Field);
|
||||
}
|
||||
if (Operation != Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType.SET) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Operation);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(FieldOperation other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.field_ != null) {
|
||||
if (field_ == null) {
|
||||
field_ = new Bgs.Protocol.Presence.V1.Field();
|
||||
}
|
||||
Field.MergeFrom(other.Field);
|
||||
}
|
||||
if (other.Operation != Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType.SET) {
|
||||
Operation = other.Operation;
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 10: {
|
||||
if (field_ == null) {
|
||||
field_ = new Bgs.Protocol.Presence.V1.Field();
|
||||
}
|
||||
input.ReadMessage(field_);
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
operation_ = (Bgs.Protocol.Presence.V1.FieldOperation.Types.OperationType) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#region Nested types
|
||||
/// <summary>Container for nested types declared in the FieldOperation message type.</summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public static partial class Types {
|
||||
public enum OperationType {
|
||||
SET = 0,
|
||||
CLEAR = 1,
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class ChannelState : pb::IMessage<ChannelState> {
|
||||
private static readonly pb::MessageParser<ChannelState> _parser = new pb::MessageParser<ChannelState>(() => new ChannelState());
|
||||
public static pb::MessageParser<ChannelState> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.Presence.V1.PresenceTypesReflection.Descriptor.MessageTypes[4]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public ChannelState() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public ChannelState(ChannelState other) : this() {
|
||||
EntityId = other.entityId_ != null ? other.EntityId.Clone() : null;
|
||||
fieldOperation_ = other.fieldOperation_.Clone();
|
||||
healing_ = other.healing_;
|
||||
Presence = other.presence_ != null ? other.Presence.Clone() : null;
|
||||
}
|
||||
|
||||
public ChannelState Clone() {
|
||||
return new ChannelState(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "entity_id" field.</summary>
|
||||
public const int EntityIdFieldNumber = 1;
|
||||
private Bgs.Protocol.EntityId entityId_;
|
||||
public Bgs.Protocol.EntityId EntityId {
|
||||
get { return entityId_; }
|
||||
set {
|
||||
entityId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "field_operation" field.</summary>
|
||||
public const int FieldOperationFieldNumber = 2;
|
||||
private static readonly pb::FieldCodec<Bgs.Protocol.Presence.V1.FieldOperation> _repeated_fieldOperation_codec
|
||||
= pb::FieldCodec.ForMessage(18, Bgs.Protocol.Presence.V1.FieldOperation.Parser);
|
||||
private readonly pbc::RepeatedField<Bgs.Protocol.Presence.V1.FieldOperation> fieldOperation_ = new pbc::RepeatedField<Bgs.Protocol.Presence.V1.FieldOperation>();
|
||||
public pbc::RepeatedField<Bgs.Protocol.Presence.V1.FieldOperation> FieldOperation {
|
||||
get { return fieldOperation_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "healing" field.</summary>
|
||||
public const int HealingFieldNumber = 3;
|
||||
private bool healing_;
|
||||
public bool Healing {
|
||||
get { return healing_; }
|
||||
set {
|
||||
healing_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "presence" field.</summary>
|
||||
public const int PresenceFieldNumber = 101;
|
||||
private Bgs.Protocol.Presence.V1.ChannelState presence_;
|
||||
public Bgs.Protocol.Presence.V1.ChannelState Presence {
|
||||
get { return presence_; }
|
||||
set {
|
||||
presence_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as ChannelState);
|
||||
}
|
||||
|
||||
public bool Equals(ChannelState other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(EntityId, other.EntityId)) return false;
|
||||
if(!fieldOperation_.Equals(other.fieldOperation_)) return false;
|
||||
if (Healing != other.Healing) return false;
|
||||
if (!object.Equals(Presence, other.Presence)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (entityId_ != null) hash ^= EntityId.GetHashCode();
|
||||
hash ^= fieldOperation_.GetHashCode();
|
||||
if (Healing != false) hash ^= Healing.GetHashCode();
|
||||
if (presence_ != null) hash ^= Presence.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (entityId_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(EntityId);
|
||||
}
|
||||
fieldOperation_.WriteTo(output, _repeated_fieldOperation_codec);
|
||||
if (Healing != false) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteBool(Healing);
|
||||
}
|
||||
if (presence_ != null) {
|
||||
output.WriteRawTag(170, 6);
|
||||
output.WriteMessage(Presence);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (entityId_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId);
|
||||
}
|
||||
size += fieldOperation_.CalculateSize(_repeated_fieldOperation_codec);
|
||||
if (Healing != false) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (presence_ != null) {
|
||||
size += 2 + pb::CodedOutputStream.ComputeMessageSize(Presence);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(ChannelState other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.entityId_ != null) {
|
||||
if (entityId_ == null) {
|
||||
entityId_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
EntityId.MergeFrom(other.EntityId);
|
||||
}
|
||||
fieldOperation_.Add(other.fieldOperation_);
|
||||
if (other.Healing != false) {
|
||||
Healing = other.Healing;
|
||||
}
|
||||
if (other.presence_ != null) {
|
||||
if (presence_ == null) {
|
||||
presence_ = new Bgs.Protocol.Presence.V1.ChannelState();
|
||||
}
|
||||
Presence.MergeFrom(other.Presence);
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 10: {
|
||||
if (entityId_ == null) {
|
||||
entityId_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
input.ReadMessage(entityId_);
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
fieldOperation_.AddEntriesFrom(input, _repeated_fieldOperation_codec);
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
Healing = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 810: {
|
||||
if (presence_ == null) {
|
||||
presence_ = new Bgs.Protocol.Presence.V1.ChannelState();
|
||||
}
|
||||
input.ReadMessage(presence_);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,271 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/profanity_filter_config.proto
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = Google.Protobuf;
|
||||
using pbc = Google.Protobuf.Collections;
|
||||
using pbr = Google.Protobuf.Reflection;
|
||||
namespace Bgs.Protocol.Profanity.V1
|
||||
{
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/profanity_filter_config.proto</summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public static partial class ProfanityFilterConfigReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/profanity_filter_config.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static ProfanityFilterConfigReflection() {
|
||||
byte[] descriptorData = System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Ci9iZ3MvbG93L3BiL2NsaWVudC9wcm9mYW5pdHlfZmlsdGVyX2NvbmZpZy5w",
|
||||
"cm90bxIZYmdzLnByb3RvY29sLnByb2Zhbml0eS52MSIpCgpXb3JkRmlsdGVy",
|
||||
"EgwKBHR5cGUYASABKAkSDQoFcmVnZXgYAiABKAkiRQoLV29yZEZpbHRlcnMS",
|
||||
"NgoHZmlsdGVycxgBIAMoCzIlLmJncy5wcm90b2NvbC5wcm9mYW5pdHkudjEu",
|
||||
"V29yZEZpbHRlckICSAJiBnByb3RvMw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Profanity.V1.WordFilter), Bgs.Protocol.Profanity.V1.WordFilter.Parser, new[]{ "Type", "Regex" }, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Profanity.V1.WordFilters), Bgs.Protocol.Profanity.V1.WordFilters.Parser, new[]{ "Filters" }, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class WordFilter : pb::IMessage<WordFilter> {
|
||||
private static readonly pb::MessageParser<WordFilter> _parser = new pb::MessageParser<WordFilter>(() => new WordFilter());
|
||||
public static pb::MessageParser<WordFilter> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.Profanity.V1.ProfanityFilterConfigReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public WordFilter() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public WordFilter(WordFilter other) : this() {
|
||||
type_ = other.type_;
|
||||
regex_ = other.regex_;
|
||||
}
|
||||
|
||||
public WordFilter Clone() {
|
||||
return new WordFilter(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "type" field.</summary>
|
||||
public const int TypeFieldNumber = 1;
|
||||
private string type_ = "";
|
||||
public string Type {
|
||||
get { return type_; }
|
||||
set {
|
||||
type_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "regex" field.</summary>
|
||||
public const int RegexFieldNumber = 2;
|
||||
private string regex_ = "";
|
||||
public string Regex {
|
||||
get { return regex_; }
|
||||
set {
|
||||
regex_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as WordFilter);
|
||||
}
|
||||
|
||||
public bool Equals(WordFilter other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Type != other.Type) return false;
|
||||
if (Regex != other.Regex) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (Type.Length != 0) hash ^= Type.GetHashCode();
|
||||
if (Regex.Length != 0) hash ^= Regex.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (Type.Length != 0) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(Type);
|
||||
}
|
||||
if (Regex.Length != 0) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteString(Regex);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (Type.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Type);
|
||||
}
|
||||
if (Regex.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Regex);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(WordFilter other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.Type.Length != 0) {
|
||||
Type = other.Type;
|
||||
}
|
||||
if (other.Regex.Length != 0) {
|
||||
Regex = other.Regex;
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 10: {
|
||||
Type = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
Regex = input.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class WordFilters : pb::IMessage<WordFilters> {
|
||||
private static readonly pb::MessageParser<WordFilters> _parser = new pb::MessageParser<WordFilters>(() => new WordFilters());
|
||||
public static pb::MessageParser<WordFilters> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.Profanity.V1.ProfanityFilterConfigReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public WordFilters() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public WordFilters(WordFilters other) : this() {
|
||||
filters_ = other.filters_.Clone();
|
||||
}
|
||||
|
||||
public WordFilters Clone() {
|
||||
return new WordFilters(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "filters" field.</summary>
|
||||
public const int FiltersFieldNumber = 1;
|
||||
private static readonly pb::FieldCodec<Bgs.Protocol.Profanity.V1.WordFilter> _repeated_filters_codec
|
||||
= pb::FieldCodec.ForMessage(10, Bgs.Protocol.Profanity.V1.WordFilter.Parser);
|
||||
private readonly pbc::RepeatedField<Bgs.Protocol.Profanity.V1.WordFilter> filters_ = new pbc::RepeatedField<Bgs.Protocol.Profanity.V1.WordFilter>();
|
||||
public pbc::RepeatedField<Bgs.Protocol.Profanity.V1.WordFilter> Filters {
|
||||
get { return filters_; }
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as WordFilters);
|
||||
}
|
||||
|
||||
public bool Equals(WordFilters other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if(!filters_.Equals(other.filters_)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
hash ^= filters_.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
filters_.WriteTo(output, _repeated_filters_codec);
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
size += filters_.CalculateSize(_repeated_filters_codec);
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(WordFilters other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
filters_.Add(other.filters_);
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 10: {
|
||||
filters_.AddEntriesFrom(input, _repeated_filters_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,406 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/report_service.proto
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = Google.Protobuf;
|
||||
using pbc = Google.Protobuf.Collections;
|
||||
using pbr = Google.Protobuf.Reflection;
|
||||
namespace Bgs.Protocol.Report.V1
|
||||
{
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/report_service.proto</summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public static partial class ReportServiceReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/report_service.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static ReportServiceReflection() {
|
||||
byte[] descriptorData = System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CiZiZ3MvbG93L3BiL2NsaWVudC9yZXBvcnRfc2VydmljZS5wcm90bxIWYmdz",
|
||||
"LnByb3RvY29sLnJlcG9ydC52MRonYmdzL2xvdy9wYi9jbGllbnQvYXR0cmli",
|
||||
"dXRlX3R5cGVzLnByb3RvGiRiZ3MvbG93L3BiL2NsaWVudC9lbnRpdHlfdHlw",
|
||||
"ZXMucHJvdG8aIWJncy9sb3cvcGIvY2xpZW50L3JwY190eXBlcy5wcm90byLi",
|
||||
"AQoGUmVwb3J0EhMKC3JlcG9ydF90eXBlGAEgASgJEioKCWF0dHJpYnV0ZRgC",
|
||||
"IAMoCzIXLmJncy5wcm90b2NvbC5BdHRyaWJ1dGUSEgoKcmVwb3J0X3FvcxgD",
|
||||
"IAEoBRIxChFyZXBvcnRpbmdfYWNjb3VudBgEIAEoCzIWLmJncy5wcm90b2Nv",
|
||||
"bC5FbnRpdHlJZBI2ChZyZXBvcnRpbmdfZ2FtZV9hY2NvdW50GAUgASgLMhYu",
|
||||
"YmdzLnByb3RvY29sLkVudGl0eUlkEhgKEHJlcG9ydF90aW1lc3RhbXAYBiAB",
|
||||
"KAYiQwoRU2VuZFJlcG9ydFJlcXVlc3QSLgoGcmVwb3J0GAEgASgLMh4uYmdz",
|
||||
"LnByb3RvY29sLnJlcG9ydC52MS5SZXBvcnQyXgoNUmVwb3J0U2VydmljZRJN",
|
||||
"CgpTZW5kUmVwb3J0EikuYmdzLnByb3RvY29sLnJlcG9ydC52MS5TZW5kUmVw",
|
||||
"b3J0UmVxdWVzdBoULmJncy5wcm90b2NvbC5Ob0RhdGFCBUgCgAEAYgZwcm90",
|
||||
"bzM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { Bgs.Protocol.AttributeTypesReflection.Descriptor, Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.RpcTypesReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Report.V1.Report), Bgs.Protocol.Report.V1.Report.Parser, new[]{ "ReportType", "Attribute", "ReportQos", "ReportingAccount", "ReportingGameAccount", "ReportTimestamp" }, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Report.V1.SendReportRequest), Bgs.Protocol.Report.V1.SendReportRequest.Parser, new[]{ "Report" }, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class Report : pb::IMessage<Report> {
|
||||
private static readonly pb::MessageParser<Report> _parser = new pb::MessageParser<Report>(() => new Report());
|
||||
public static pb::MessageParser<Report> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.Report.V1.ReportServiceReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public Report() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public Report(Report other) : this() {
|
||||
reportType_ = other.reportType_;
|
||||
attribute_ = other.attribute_.Clone();
|
||||
reportQos_ = other.reportQos_;
|
||||
ReportingAccount = other.reportingAccount_ != null ? other.ReportingAccount.Clone() : null;
|
||||
ReportingGameAccount = other.reportingGameAccount_ != null ? other.ReportingGameAccount.Clone() : null;
|
||||
reportTimestamp_ = other.reportTimestamp_;
|
||||
}
|
||||
|
||||
public Report Clone() {
|
||||
return new Report(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "report_type" field.</summary>
|
||||
public const int ReportTypeFieldNumber = 1;
|
||||
private string reportType_ = "";
|
||||
public string ReportType {
|
||||
get { return reportType_; }
|
||||
set {
|
||||
reportType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "attribute" field.</summary>
|
||||
public const int AttributeFieldNumber = 2;
|
||||
private static readonly pb::FieldCodec<Bgs.Protocol.Attribute> _repeated_attribute_codec
|
||||
= pb::FieldCodec.ForMessage(18, Bgs.Protocol.Attribute.Parser);
|
||||
private readonly pbc::RepeatedField<Bgs.Protocol.Attribute> attribute_ = new pbc::RepeatedField<Bgs.Protocol.Attribute>();
|
||||
public pbc::RepeatedField<Bgs.Protocol.Attribute> Attribute {
|
||||
get { return attribute_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "report_qos" field.</summary>
|
||||
public const int ReportQosFieldNumber = 3;
|
||||
private int reportQos_;
|
||||
public int ReportQos {
|
||||
get { return reportQos_; }
|
||||
set {
|
||||
reportQos_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "reporting_account" field.</summary>
|
||||
public const int ReportingAccountFieldNumber = 4;
|
||||
private Bgs.Protocol.EntityId reportingAccount_;
|
||||
public Bgs.Protocol.EntityId ReportingAccount {
|
||||
get { return reportingAccount_; }
|
||||
set {
|
||||
reportingAccount_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "reporting_game_account" field.</summary>
|
||||
public const int ReportingGameAccountFieldNumber = 5;
|
||||
private Bgs.Protocol.EntityId reportingGameAccount_;
|
||||
public Bgs.Protocol.EntityId ReportingGameAccount {
|
||||
get { return reportingGameAccount_; }
|
||||
set {
|
||||
reportingGameAccount_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "report_timestamp" field.</summary>
|
||||
public const int ReportTimestampFieldNumber = 6;
|
||||
private ulong reportTimestamp_;
|
||||
public ulong ReportTimestamp {
|
||||
get { return reportTimestamp_; }
|
||||
set {
|
||||
reportTimestamp_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as Report);
|
||||
}
|
||||
|
||||
public bool Equals(Report other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (ReportType != other.ReportType) return false;
|
||||
if(!attribute_.Equals(other.attribute_)) return false;
|
||||
if (ReportQos != other.ReportQos) return false;
|
||||
if (!object.Equals(ReportingAccount, other.ReportingAccount)) return false;
|
||||
if (!object.Equals(ReportingGameAccount, other.ReportingGameAccount)) return false;
|
||||
if (ReportTimestamp != other.ReportTimestamp) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (ReportType.Length != 0) hash ^= ReportType.GetHashCode();
|
||||
hash ^= attribute_.GetHashCode();
|
||||
if (ReportQos != 0) hash ^= ReportQos.GetHashCode();
|
||||
if (reportingAccount_ != null) hash ^= ReportingAccount.GetHashCode();
|
||||
if (reportingGameAccount_ != null) hash ^= ReportingGameAccount.GetHashCode();
|
||||
if (ReportTimestamp != 0UL) hash ^= ReportTimestamp.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (ReportType.Length != 0) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(ReportType);
|
||||
}
|
||||
attribute_.WriteTo(output, _repeated_attribute_codec);
|
||||
if (ReportQos != 0) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(ReportQos);
|
||||
}
|
||||
if (reportingAccount_ != null) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteMessage(ReportingAccount);
|
||||
}
|
||||
if (reportingGameAccount_ != null) {
|
||||
output.WriteRawTag(42);
|
||||
output.WriteMessage(ReportingGameAccount);
|
||||
}
|
||||
if (ReportTimestamp != 0UL) {
|
||||
output.WriteRawTag(49);
|
||||
output.WriteFixed64(ReportTimestamp);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (ReportType.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(ReportType);
|
||||
}
|
||||
size += attribute_.CalculateSize(_repeated_attribute_codec);
|
||||
if (ReportQos != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ReportQos);
|
||||
}
|
||||
if (reportingAccount_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReportingAccount);
|
||||
}
|
||||
if (reportingGameAccount_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReportingGameAccount);
|
||||
}
|
||||
if (ReportTimestamp != 0UL) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(Report other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.ReportType.Length != 0) {
|
||||
ReportType = other.ReportType;
|
||||
}
|
||||
attribute_.Add(other.attribute_);
|
||||
if (other.ReportQos != 0) {
|
||||
ReportQos = other.ReportQos;
|
||||
}
|
||||
if (other.reportingAccount_ != null) {
|
||||
if (reportingAccount_ == null) {
|
||||
reportingAccount_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
ReportingAccount.MergeFrom(other.ReportingAccount);
|
||||
}
|
||||
if (other.reportingGameAccount_ != null) {
|
||||
if (reportingGameAccount_ == null) {
|
||||
reportingGameAccount_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
ReportingGameAccount.MergeFrom(other.ReportingGameAccount);
|
||||
}
|
||||
if (other.ReportTimestamp != 0UL) {
|
||||
ReportTimestamp = other.ReportTimestamp;
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 10: {
|
||||
ReportType = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
attribute_.AddEntriesFrom(input, _repeated_attribute_codec);
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
ReportQos = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
if (reportingAccount_ == null) {
|
||||
reportingAccount_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
input.ReadMessage(reportingAccount_);
|
||||
break;
|
||||
}
|
||||
case 42: {
|
||||
if (reportingGameAccount_ == null) {
|
||||
reportingGameAccount_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
input.ReadMessage(reportingGameAccount_);
|
||||
break;
|
||||
}
|
||||
case 49: {
|
||||
ReportTimestamp = input.ReadFixed64();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class SendReportRequest : pb::IMessage<SendReportRequest> {
|
||||
private static readonly pb::MessageParser<SendReportRequest> _parser = new pb::MessageParser<SendReportRequest>(() => new SendReportRequest());
|
||||
public static pb::MessageParser<SendReportRequest> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.Report.V1.ReportServiceReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public SendReportRequest() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public SendReportRequest(SendReportRequest other) : this() {
|
||||
Report = other.report_ != null ? other.Report.Clone() : null;
|
||||
}
|
||||
|
||||
public SendReportRequest Clone() {
|
||||
return new SendReportRequest(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "report" field.</summary>
|
||||
public const int ReportFieldNumber = 1;
|
||||
private Bgs.Protocol.Report.V1.Report report_;
|
||||
public Bgs.Protocol.Report.V1.Report Report {
|
||||
get { return report_; }
|
||||
set {
|
||||
report_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as SendReportRequest);
|
||||
}
|
||||
|
||||
public bool Equals(SendReportRequest other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(Report, other.Report)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (report_ != null) hash ^= Report.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (report_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(Report);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (report_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Report);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(SendReportRequest other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.report_ != null) {
|
||||
if (report_ == null) {
|
||||
report_ = new Bgs.Protocol.Report.V1.Report();
|
||||
}
|
||||
Report.MergeFrom(other.Report);
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 10: {
|
||||
if (report_ == null) {
|
||||
report_ = new Bgs.Protocol.Report.V1.Report();
|
||||
}
|
||||
input.ReadMessage(report_);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,244 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/resource_service.proto
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = Google.Protobuf;
|
||||
using pbr = Google.Protobuf.Reflection;
|
||||
namespace Bgs.Protocol.Resources.V1
|
||||
{
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/resource_service.proto</summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public static partial class ResourceServiceReflection
|
||||
{
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/resource_service.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor
|
||||
{
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static ResourceServiceReflection()
|
||||
{
|
||||
byte[] descriptorData = System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CihiZ3MvbG93L3BiL2NsaWVudC9yZXNvdXJjZV9zZXJ2aWNlLnByb3RvEhli",
|
||||
"Z3MucHJvdG9jb2wucmVzb3VyY2VzLnYxGixiZ3MvbG93L3BiL2NsaWVudC9j",
|
||||
"b250ZW50X2hhbmRsZV90eXBlcy5wcm90bxohYmdzL2xvdy9wYi9jbGllbnQv",
|
||||
"cnBjX3R5cGVzLnByb3RvIkgKFENvbnRlbnRIYW5kbGVSZXF1ZXN0Eg8KB3By",
|
||||
"b2dyYW0YASABKAcSDgoGc3RyZWFtGAIgASgHEg8KB3ZlcnNpb24YAyABKAcy",
|
||||
"dAoQUmVzb3VyY2VzU2VydmljZRJgChBHZXRDb250ZW50SGFuZGxlEi8uYmdz",
|
||||
"LnByb3RvY29sLnJlc291cmNlcy52MS5Db250ZW50SGFuZGxlUmVxdWVzdBob",
|
||||
"LmJncy5wcm90b2NvbC5Db250ZW50SGFuZGxlQgVIAoABAGIGcHJvdG8z"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { Bgs.Protocol.ContentHandleTypesReflection.Descriptor, Bgs.Protocol.RpcTypesReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Resources.V1.ContentHandleRequest), Bgs.Protocol.Resources.V1.ContentHandleRequest.Parser, new[]{ "Program", "Stream", "Version" }, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class ContentHandleRequest : pb::IMessage<ContentHandleRequest>
|
||||
{
|
||||
private static readonly pb::MessageParser<ContentHandleRequest> _parser = new pb::MessageParser<ContentHandleRequest>(() => new ContentHandleRequest());
|
||||
public static pb::MessageParser<ContentHandleRequest> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor
|
||||
{
|
||||
get { return Bgs.Protocol.Resources.V1.ResourceServiceReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor
|
||||
{
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public ContentHandleRequest()
|
||||
{
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public ContentHandleRequest(ContentHandleRequest other) : this()
|
||||
{
|
||||
program_ = other.program_;
|
||||
stream_ = other.stream_;
|
||||
version_ = other.version_;
|
||||
}
|
||||
|
||||
public ContentHandleRequest Clone()
|
||||
{
|
||||
return new ContentHandleRequest(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "program" field.</summary>
|
||||
public const int ProgramFieldNumber = 1;
|
||||
private uint program_;
|
||||
public uint Program
|
||||
{
|
||||
get { return program_; }
|
||||
set
|
||||
{
|
||||
program_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "stream" field.</summary>
|
||||
public const int StreamFieldNumber = 2;
|
||||
private uint stream_;
|
||||
public uint Stream
|
||||
{
|
||||
get { return stream_; }
|
||||
set
|
||||
{
|
||||
stream_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "version" field.</summary>
|
||||
public const int VersionFieldNumber = 3;
|
||||
private uint version_;
|
||||
public uint Version
|
||||
{
|
||||
get { return version_; }
|
||||
set
|
||||
{
|
||||
version_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other)
|
||||
{
|
||||
return Equals(other as ContentHandleRequest);
|
||||
}
|
||||
|
||||
public bool Equals(ContentHandleRequest other)
|
||||
{
|
||||
if (ReferenceEquals(other, null))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (Program != other.Program) return false;
|
||||
if (Stream != other.Stream) return false;
|
||||
if (Version != other.Version) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
int hash = 1;
|
||||
if (Program != 0) hash ^= Program.GetHashCode();
|
||||
if (Stream != 0) hash ^= Stream.GetHashCode();
|
||||
if (Version != 0) hash ^= Version.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output)
|
||||
{
|
||||
if (Program != 0)
|
||||
{
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFixed32(Program);
|
||||
}
|
||||
if (Stream != 0)
|
||||
{
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFixed32(Stream);
|
||||
}
|
||||
if (Version != 0)
|
||||
{
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFixed32(Version);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize()
|
||||
{
|
||||
int size = 0;
|
||||
if (Program != 0)
|
||||
{
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (Stream != 0)
|
||||
{
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (Version != 0)
|
||||
{
|
||||
size += 1 + 4;
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(ContentHandleRequest other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (other.Program != 0)
|
||||
{
|
||||
Program = other.Program;
|
||||
}
|
||||
if (other.Stream != 0)
|
||||
{
|
||||
Stream = other.Stream;
|
||||
}
|
||||
if (other.Version != 0)
|
||||
{
|
||||
Version = other.Version;
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input)
|
||||
{
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0)
|
||||
{
|
||||
switch (tag)
|
||||
{
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 13:
|
||||
{
|
||||
Program = input.ReadFixed32();
|
||||
break;
|
||||
}
|
||||
case 21:
|
||||
{
|
||||
Stream = input.ReadFixed32();
|
||||
break;
|
||||
}
|
||||
case 29:
|
||||
{
|
||||
Version = input.ReadFixed32();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,357 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/role_types.proto
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = Google.Protobuf;
|
||||
using pbc = Google.Protobuf.Collections;
|
||||
using pbr = Google.Protobuf.Reflection;
|
||||
namespace Bgs.Protocol
|
||||
{
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/role_types.proto</summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public static partial class RoleTypesReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/role_types.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static RoleTypesReflection() {
|
||||
byte[] descriptorData = System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CiJiZ3MvbG93L3BiL2NsaWVudC9yb2xlX3R5cGVzLnByb3RvEgxiZ3MucHJv",
|
||||
"dG9jb2waJ2Jncy9sb3cvcGIvY2xpZW50L2F0dHJpYnV0ZV90eXBlcy5wcm90",
|
||||
"byLuAQoEUm9sZRIKCgJpZBgBIAEoDRIMCgRuYW1lGAIgASgJEhEKCXByaXZp",
|
||||
"bGVnZRgDIAMoCRIbCg9hc3NpZ25hYmxlX3JvbGUYBCADKA1CAhABEhAKCHJl",
|
||||
"cXVpcmVkGAUgASgIEg4KBnVuaXF1ZRgGIAEoCBIXCg9yZWxlZ2F0aW9uX3Jv",
|
||||
"bGUYByABKA0SKgoJYXR0cmlidXRlGAggAygLMhcuYmdzLnByb3RvY29sLkF0",
|
||||
"dHJpYnV0ZRIZCg1raWNrYWJsZV9yb2xlGAkgAygNQgIQARIaCg5yZW1vdmFi",
|
||||
"bGVfcm9sZRgKIAMoDUICEAFCAkgCYgZwcm90bzM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { Bgs.Protocol.AttributeTypesReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Role), Bgs.Protocol.Role.Parser, new[]{ "Id", "Name", "Privilege", "AssignableRole", "Required", "Unique", "RelegationRole", "Attribute", "KickableRole", "RemovableRole" }, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class Role : pb::IMessage<Role> {
|
||||
private static readonly pb::MessageParser<Role> _parser = new pb::MessageParser<Role>(() => new Role());
|
||||
public static pb::MessageParser<Role> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.RoleTypesReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public Role() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public Role(Role other) : this() {
|
||||
id_ = other.id_;
|
||||
name_ = other.name_;
|
||||
privilege_ = other.privilege_.Clone();
|
||||
assignableRole_ = other.assignableRole_.Clone();
|
||||
required_ = other.required_;
|
||||
unique_ = other.unique_;
|
||||
relegationRole_ = other.relegationRole_;
|
||||
attribute_ = other.attribute_.Clone();
|
||||
kickableRole_ = other.kickableRole_.Clone();
|
||||
removableRole_ = other.removableRole_.Clone();
|
||||
}
|
||||
|
||||
public Role Clone() {
|
||||
return new Role(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "id" field.</summary>
|
||||
public const int IdFieldNumber = 1;
|
||||
private uint id_;
|
||||
public uint Id {
|
||||
get { return id_; }
|
||||
set {
|
||||
id_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "name" field.</summary>
|
||||
public const int NameFieldNumber = 2;
|
||||
private string name_ = "";
|
||||
public string Name {
|
||||
get { return name_; }
|
||||
set {
|
||||
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "privilege" field.</summary>
|
||||
public const int PrivilegeFieldNumber = 3;
|
||||
private static readonly pb::FieldCodec<string> _repeated_privilege_codec
|
||||
= pb::FieldCodec.ForString(26);
|
||||
private readonly pbc::RepeatedField<string> privilege_ = new pbc::RepeatedField<string>();
|
||||
public pbc::RepeatedField<string> Privilege {
|
||||
get { return privilege_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "assignable_role" field.</summary>
|
||||
public const int AssignableRoleFieldNumber = 4;
|
||||
private static readonly pb::FieldCodec<uint> _repeated_assignableRole_codec
|
||||
= pb::FieldCodec.ForUInt32(34);
|
||||
private readonly pbc::RepeatedField<uint> assignableRole_ = new pbc::RepeatedField<uint>();
|
||||
public pbc::RepeatedField<uint> AssignableRole {
|
||||
get { return assignableRole_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "required" field.</summary>
|
||||
public const int RequiredFieldNumber = 5;
|
||||
private bool required_;
|
||||
public bool Required {
|
||||
get { return required_; }
|
||||
set {
|
||||
required_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "unique" field.</summary>
|
||||
public const int UniqueFieldNumber = 6;
|
||||
private bool unique_;
|
||||
public bool Unique {
|
||||
get { return unique_; }
|
||||
set {
|
||||
unique_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "relegation_role" field.</summary>
|
||||
public const int RelegationRoleFieldNumber = 7;
|
||||
private uint relegationRole_;
|
||||
public uint RelegationRole {
|
||||
get { return relegationRole_; }
|
||||
set {
|
||||
relegationRole_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "attribute" field.</summary>
|
||||
public const int AttributeFieldNumber = 8;
|
||||
private static readonly pb::FieldCodec<Bgs.Protocol.Attribute> _repeated_attribute_codec
|
||||
= pb::FieldCodec.ForMessage(66, Bgs.Protocol.Attribute.Parser);
|
||||
private readonly pbc::RepeatedField<Bgs.Protocol.Attribute> attribute_ = new pbc::RepeatedField<Bgs.Protocol.Attribute>();
|
||||
public pbc::RepeatedField<Bgs.Protocol.Attribute> Attribute {
|
||||
get { return attribute_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "kickable_role" field.</summary>
|
||||
public const int KickableRoleFieldNumber = 9;
|
||||
private static readonly pb::FieldCodec<uint> _repeated_kickableRole_codec
|
||||
= pb::FieldCodec.ForUInt32(74);
|
||||
private readonly pbc::RepeatedField<uint> kickableRole_ = new pbc::RepeatedField<uint>();
|
||||
public pbc::RepeatedField<uint> KickableRole {
|
||||
get { return kickableRole_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "removable_role" field.</summary>
|
||||
public const int RemovableRoleFieldNumber = 10;
|
||||
private static readonly pb::FieldCodec<uint> _repeated_removableRole_codec
|
||||
= pb::FieldCodec.ForUInt32(82);
|
||||
private readonly pbc::RepeatedField<uint> removableRole_ = new pbc::RepeatedField<uint>();
|
||||
public pbc::RepeatedField<uint> RemovableRole {
|
||||
get { return removableRole_; }
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as Role);
|
||||
}
|
||||
|
||||
public bool Equals(Role other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Id != other.Id) return false;
|
||||
if (Name != other.Name) return false;
|
||||
if(!privilege_.Equals(other.privilege_)) return false;
|
||||
if(!assignableRole_.Equals(other.assignableRole_)) return false;
|
||||
if (Required != other.Required) return false;
|
||||
if (Unique != other.Unique) return false;
|
||||
if (RelegationRole != other.RelegationRole) return false;
|
||||
if(!attribute_.Equals(other.attribute_)) return false;
|
||||
if(!kickableRole_.Equals(other.kickableRole_)) return false;
|
||||
if(!removableRole_.Equals(other.removableRole_)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (Id != 0) hash ^= Id.GetHashCode();
|
||||
if (Name.Length != 0) hash ^= Name.GetHashCode();
|
||||
hash ^= privilege_.GetHashCode();
|
||||
hash ^= assignableRole_.GetHashCode();
|
||||
if (Required != false) hash ^= Required.GetHashCode();
|
||||
if (Unique != false) hash ^= Unique.GetHashCode();
|
||||
if (RelegationRole != 0) hash ^= RelegationRole.GetHashCode();
|
||||
hash ^= attribute_.GetHashCode();
|
||||
hash ^= kickableRole_.GetHashCode();
|
||||
hash ^= removableRole_.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (Id != 0) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt32(Id);
|
||||
}
|
||||
if (Name.Length != 0) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteString(Name);
|
||||
}
|
||||
privilege_.WriteTo(output, _repeated_privilege_codec);
|
||||
assignableRole_.WriteTo(output, _repeated_assignableRole_codec);
|
||||
if (Required != false) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteBool(Required);
|
||||
}
|
||||
if (Unique != false) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteBool(Unique);
|
||||
}
|
||||
if (RelegationRole != 0) {
|
||||
output.WriteRawTag(56);
|
||||
output.WriteUInt32(RelegationRole);
|
||||
}
|
||||
attribute_.WriteTo(output, _repeated_attribute_codec);
|
||||
kickableRole_.WriteTo(output, _repeated_kickableRole_codec);
|
||||
removableRole_.WriteTo(output, _repeated_removableRole_codec);
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (Id != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id);
|
||||
}
|
||||
if (Name.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
||||
}
|
||||
size += privilege_.CalculateSize(_repeated_privilege_codec);
|
||||
size += assignableRole_.CalculateSize(_repeated_assignableRole_codec);
|
||||
if (Required != false) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (Unique != false) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (RelegationRole != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RelegationRole);
|
||||
}
|
||||
size += attribute_.CalculateSize(_repeated_attribute_codec);
|
||||
size += kickableRole_.CalculateSize(_repeated_kickableRole_codec);
|
||||
size += removableRole_.CalculateSize(_repeated_removableRole_codec);
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(Role other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.Id != 0) {
|
||||
Id = other.Id;
|
||||
}
|
||||
if (other.Name.Length != 0) {
|
||||
Name = other.Name;
|
||||
}
|
||||
privilege_.Add(other.privilege_);
|
||||
assignableRole_.Add(other.assignableRole_);
|
||||
if (other.Required != false) {
|
||||
Required = other.Required;
|
||||
}
|
||||
if (other.Unique != false) {
|
||||
Unique = other.Unique;
|
||||
}
|
||||
if (other.RelegationRole != 0) {
|
||||
RelegationRole = other.RelegationRole;
|
||||
}
|
||||
attribute_.Add(other.attribute_);
|
||||
kickableRole_.Add(other.kickableRole_);
|
||||
removableRole_.Add(other.removableRole_);
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 8: {
|
||||
Id = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
Name = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
privilege_.AddEntriesFrom(input, _repeated_privilege_codec);
|
||||
break;
|
||||
}
|
||||
case 34:
|
||||
case 32: {
|
||||
assignableRole_.AddEntriesFrom(input, _repeated_assignableRole_codec);
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
Required = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
Unique = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 56: {
|
||||
RelegationRole = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 66: {
|
||||
attribute_.AddEntriesFrom(input, _repeated_attribute_codec);
|
||||
break;
|
||||
}
|
||||
case 74:
|
||||
case 72: {
|
||||
kickableRole_.AddEntriesFrom(input, _repeated_kickableRole_codec);
|
||||
break;
|
||||
}
|
||||
case 82:
|
||||
case 80: {
|
||||
removableRole_.AddEntriesFrom(input, _repeated_removableRole_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,972 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/rpc_config.proto
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = Google.Protobuf;
|
||||
using pbc = Google.Protobuf.Collections;
|
||||
using pbr = Google.Protobuf.Reflection;
|
||||
namespace Bgs.Protocol.Config
|
||||
{
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/rpc_config.proto</summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public static partial class RpcConfigReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/rpc_config.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static RpcConfigReflection() {
|
||||
byte[] descriptorData = System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CiJiZ3MvbG93L3BiL2NsaWVudC9ycGNfY29uZmlnLnByb3RvEhNiZ3MucHJv",
|
||||
"dG9jb2wuY29uZmlnIvwCCg9SUENNZXRob2RDb25maWcSGAoMc2VydmljZV9u",
|
||||
"YW1lGAEgASgJQgIYARIXCgttZXRob2RfbmFtZRgCIAEoCUICGAESFwoPZml4",
|
||||
"ZWRfY2FsbF9jb3N0GAMgASgNEhkKEWZpeGVkX3BhY2tldF9zaXplGAQgASgN",
|
||||
"EhsKE3ZhcmlhYmxlX211bHRpcGxpZXIYBSABKAISEgoKbXVsdGlwbGllchgG",
|
||||
"IAEoAhIYChByYXRlX2xpbWl0X2NvdW50GAcgASgNEhoKEnJhdGVfbGltaXRf",
|
||||
"c2Vjb25kcxgIIAEoDRIXCg9tYXhfcGFja2V0X3NpemUYCSABKA0SGAoQbWF4",
|
||||
"X2VuY29kZWRfc2l6ZRgKIAEoDRIPCgd0aW1lb3V0GAsgASgCEhMKC2NhcF9i",
|
||||
"YWxhbmNlGAwgASgNEhkKEWluY29tZV9wZXJfc2Vjb25kGA0gASgCEhQKDHNl",
|
||||
"cnZpY2VfaGFzaBgOIAEoDRIRCgltZXRob2RfaWQYDyABKA0ipwEKDlJQQ01l",
|
||||
"dGVyQ29uZmlnEjQKBm1ldGhvZBgBIAMoCzIkLmJncy5wcm90b2NvbC5jb25m",
|
||||
"aWcuUlBDTWV0aG9kQ29uZmlnEhkKEWluY29tZV9wZXJfc2Vjb25kGAIgASgN",
|
||||
"EhcKD2luaXRpYWxfYmFsYW5jZRgDIAEoDRITCgtjYXBfYmFsYW5jZRgEIAEo",
|
||||
"DRIWCg5zdGFydHVwX3BlcmlvZBgFIAEoAiJJCg1Qcm90b2NvbEFsaWFzEhsK",
|
||||
"E3NlcnZlcl9zZXJ2aWNlX25hbWUYASABKAkSGwoTY2xpZW50X3NlcnZpY2Vf",
|
||||
"bmFtZRgCIAEoCSJMCg5TZXJ2aWNlQWxpYXNlcxI6Cg5wcm90b2NvbF9hbGlh",
|
||||
"cxgBIAMoCzIiLmJncy5wcm90b2NvbC5jb25maWcuUHJvdG9jb2xBbGlhc0IC",
|
||||
"SAJiBnByb3RvMw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Config.RPCMethodConfig), Bgs.Protocol.Config.RPCMethodConfig.Parser, new[]{ "ServiceName", "MethodName", "FixedCallCost", "FixedPacketSize", "VariableMultiplier", "Multiplier", "RateLimitCount", "RateLimitSeconds", "MaxPacketSize", "MaxEncodedSize", "Timeout", "CapBalance", "IncomePerSecond", "ServiceHash", "MethodId" }, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Config.RPCMeterConfig), Bgs.Protocol.Config.RPCMeterConfig.Parser, new[]{ "Method", "IncomePerSecond", "InitialBalance", "CapBalance", "StartupPeriod" }, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Config.ProtocolAlias), Bgs.Protocol.Config.ProtocolAlias.Parser, new[]{ "ServerServiceName", "ClientServiceName" }, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.Config.ServiceAliases), Bgs.Protocol.Config.ServiceAliases.Parser, new[]{ "ProtocolAlias" }, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class RPCMethodConfig : pb::IMessage<RPCMethodConfig> {
|
||||
private static readonly pb::MessageParser<RPCMethodConfig> _parser = new pb::MessageParser<RPCMethodConfig>(() => new RPCMethodConfig());
|
||||
public static pb::MessageParser<RPCMethodConfig> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.Config.RpcConfigReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public RPCMethodConfig() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public RPCMethodConfig(RPCMethodConfig other) : this() {
|
||||
serviceName_ = other.serviceName_;
|
||||
methodName_ = other.methodName_;
|
||||
fixedCallCost_ = other.fixedCallCost_;
|
||||
fixedPacketSize_ = other.fixedPacketSize_;
|
||||
variableMultiplier_ = other.variableMultiplier_;
|
||||
multiplier_ = other.multiplier_;
|
||||
rateLimitCount_ = other.rateLimitCount_;
|
||||
rateLimitSeconds_ = other.rateLimitSeconds_;
|
||||
maxPacketSize_ = other.maxPacketSize_;
|
||||
maxEncodedSize_ = other.maxEncodedSize_;
|
||||
timeout_ = other.timeout_;
|
||||
capBalance_ = other.capBalance_;
|
||||
incomePerSecond_ = other.incomePerSecond_;
|
||||
serviceHash_ = other.serviceHash_;
|
||||
methodId_ = other.methodId_;
|
||||
}
|
||||
|
||||
public RPCMethodConfig Clone() {
|
||||
return new RPCMethodConfig(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "service_name" field.</summary>
|
||||
public const int ServiceNameFieldNumber = 1;
|
||||
private string serviceName_ = "";
|
||||
[System.ObsoleteAttribute()]
|
||||
public string ServiceName {
|
||||
get { return serviceName_; }
|
||||
set {
|
||||
serviceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "method_name" field.</summary>
|
||||
public const int MethodNameFieldNumber = 2;
|
||||
private string methodName_ = "";
|
||||
[System.ObsoleteAttribute()]
|
||||
public string MethodName {
|
||||
get { return methodName_; }
|
||||
set {
|
||||
methodName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "fixed_call_cost" field.</summary>
|
||||
public const int FixedCallCostFieldNumber = 3;
|
||||
private uint fixedCallCost_;
|
||||
public uint FixedCallCost {
|
||||
get { return fixedCallCost_; }
|
||||
set {
|
||||
fixedCallCost_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "fixed_packet_size" field.</summary>
|
||||
public const int FixedPacketSizeFieldNumber = 4;
|
||||
private uint fixedPacketSize_;
|
||||
public uint FixedPacketSize {
|
||||
get { return fixedPacketSize_; }
|
||||
set {
|
||||
fixedPacketSize_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "variable_multiplier" field.</summary>
|
||||
public const int VariableMultiplierFieldNumber = 5;
|
||||
private float variableMultiplier_;
|
||||
public float VariableMultiplier {
|
||||
get { return variableMultiplier_; }
|
||||
set {
|
||||
variableMultiplier_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "multiplier" field.</summary>
|
||||
public const int MultiplierFieldNumber = 6;
|
||||
private float multiplier_;
|
||||
public float Multiplier {
|
||||
get { return multiplier_; }
|
||||
set {
|
||||
multiplier_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "rate_limit_count" field.</summary>
|
||||
public const int RateLimitCountFieldNumber = 7;
|
||||
private uint rateLimitCount_;
|
||||
public uint RateLimitCount {
|
||||
get { return rateLimitCount_; }
|
||||
set {
|
||||
rateLimitCount_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "rate_limit_seconds" field.</summary>
|
||||
public const int RateLimitSecondsFieldNumber = 8;
|
||||
private uint rateLimitSeconds_;
|
||||
public uint RateLimitSeconds {
|
||||
get { return rateLimitSeconds_; }
|
||||
set {
|
||||
rateLimitSeconds_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "max_packet_size" field.</summary>
|
||||
public const int MaxPacketSizeFieldNumber = 9;
|
||||
private uint maxPacketSize_;
|
||||
public uint MaxPacketSize {
|
||||
get { return maxPacketSize_; }
|
||||
set {
|
||||
maxPacketSize_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "max_encoded_size" field.</summary>
|
||||
public const int MaxEncodedSizeFieldNumber = 10;
|
||||
private uint maxEncodedSize_;
|
||||
public uint MaxEncodedSize {
|
||||
get { return maxEncodedSize_; }
|
||||
set {
|
||||
maxEncodedSize_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "timeout" field.</summary>
|
||||
public const int TimeoutFieldNumber = 11;
|
||||
private float timeout_;
|
||||
public float Timeout {
|
||||
get { return timeout_; }
|
||||
set {
|
||||
timeout_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "cap_balance" field.</summary>
|
||||
public const int CapBalanceFieldNumber = 12;
|
||||
private uint capBalance_;
|
||||
public uint CapBalance {
|
||||
get { return capBalance_; }
|
||||
set {
|
||||
capBalance_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "income_per_second" field.</summary>
|
||||
public const int IncomePerSecondFieldNumber = 13;
|
||||
private float incomePerSecond_;
|
||||
public float IncomePerSecond {
|
||||
get { return incomePerSecond_; }
|
||||
set {
|
||||
incomePerSecond_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "service_hash" field.</summary>
|
||||
public const int ServiceHashFieldNumber = 14;
|
||||
private uint serviceHash_;
|
||||
public uint ServiceHash {
|
||||
get { return serviceHash_; }
|
||||
set {
|
||||
serviceHash_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "method_id" field.</summary>
|
||||
public const int MethodIdFieldNumber = 15;
|
||||
private uint methodId_;
|
||||
public uint MethodId {
|
||||
get { return methodId_; }
|
||||
set {
|
||||
methodId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as RPCMethodConfig);
|
||||
}
|
||||
|
||||
public bool Equals(RPCMethodConfig other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (ServiceName != other.ServiceName) return false;
|
||||
if (MethodName != other.MethodName) return false;
|
||||
if (FixedCallCost != other.FixedCallCost) return false;
|
||||
if (FixedPacketSize != other.FixedPacketSize) return false;
|
||||
if (VariableMultiplier != other.VariableMultiplier) return false;
|
||||
if (Multiplier != other.Multiplier) return false;
|
||||
if (RateLimitCount != other.RateLimitCount) return false;
|
||||
if (RateLimitSeconds != other.RateLimitSeconds) return false;
|
||||
if (MaxPacketSize != other.MaxPacketSize) return false;
|
||||
if (MaxEncodedSize != other.MaxEncodedSize) return false;
|
||||
if (Timeout != other.Timeout) return false;
|
||||
if (CapBalance != other.CapBalance) return false;
|
||||
if (IncomePerSecond != other.IncomePerSecond) return false;
|
||||
if (ServiceHash != other.ServiceHash) return false;
|
||||
if (MethodId != other.MethodId) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (ServiceName.Length != 0) hash ^= ServiceName.GetHashCode();
|
||||
if (MethodName.Length != 0) hash ^= MethodName.GetHashCode();
|
||||
if (FixedCallCost != 0) hash ^= FixedCallCost.GetHashCode();
|
||||
if (FixedPacketSize != 0) hash ^= FixedPacketSize.GetHashCode();
|
||||
if (VariableMultiplier != 0F) hash ^= VariableMultiplier.GetHashCode();
|
||||
if (Multiplier != 0F) hash ^= Multiplier.GetHashCode();
|
||||
if (RateLimitCount != 0) hash ^= RateLimitCount.GetHashCode();
|
||||
if (RateLimitSeconds != 0) hash ^= RateLimitSeconds.GetHashCode();
|
||||
if (MaxPacketSize != 0) hash ^= MaxPacketSize.GetHashCode();
|
||||
if (MaxEncodedSize != 0) hash ^= MaxEncodedSize.GetHashCode();
|
||||
if (Timeout != 0F) hash ^= Timeout.GetHashCode();
|
||||
if (CapBalance != 0) hash ^= CapBalance.GetHashCode();
|
||||
if (IncomePerSecond != 0F) hash ^= IncomePerSecond.GetHashCode();
|
||||
if (ServiceHash != 0) hash ^= ServiceHash.GetHashCode();
|
||||
if (MethodId != 0) hash ^= MethodId.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (ServiceName.Length != 0) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(ServiceName);
|
||||
}
|
||||
if (MethodName.Length != 0) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteString(MethodName);
|
||||
}
|
||||
if (FixedCallCost != 0) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteUInt32(FixedCallCost);
|
||||
}
|
||||
if (FixedPacketSize != 0) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteUInt32(FixedPacketSize);
|
||||
}
|
||||
if (VariableMultiplier != 0F) {
|
||||
output.WriteRawTag(45);
|
||||
output.WriteFloat(VariableMultiplier);
|
||||
}
|
||||
if (Multiplier != 0F) {
|
||||
output.WriteRawTag(53);
|
||||
output.WriteFloat(Multiplier);
|
||||
}
|
||||
if (RateLimitCount != 0) {
|
||||
output.WriteRawTag(56);
|
||||
output.WriteUInt32(RateLimitCount);
|
||||
}
|
||||
if (RateLimitSeconds != 0) {
|
||||
output.WriteRawTag(64);
|
||||
output.WriteUInt32(RateLimitSeconds);
|
||||
}
|
||||
if (MaxPacketSize != 0) {
|
||||
output.WriteRawTag(72);
|
||||
output.WriteUInt32(MaxPacketSize);
|
||||
}
|
||||
if (MaxEncodedSize != 0) {
|
||||
output.WriteRawTag(80);
|
||||
output.WriteUInt32(MaxEncodedSize);
|
||||
}
|
||||
if (Timeout != 0F) {
|
||||
output.WriteRawTag(93);
|
||||
output.WriteFloat(Timeout);
|
||||
}
|
||||
if (CapBalance != 0) {
|
||||
output.WriteRawTag(96);
|
||||
output.WriteUInt32(CapBalance);
|
||||
}
|
||||
if (IncomePerSecond != 0F) {
|
||||
output.WriteRawTag(109);
|
||||
output.WriteFloat(IncomePerSecond);
|
||||
}
|
||||
if (ServiceHash != 0) {
|
||||
output.WriteRawTag(112);
|
||||
output.WriteUInt32(ServiceHash);
|
||||
}
|
||||
if (MethodId != 0) {
|
||||
output.WriteRawTag(120);
|
||||
output.WriteUInt32(MethodId);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (ServiceName.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceName);
|
||||
}
|
||||
if (MethodName.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(MethodName);
|
||||
}
|
||||
if (FixedCallCost != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FixedCallCost);
|
||||
}
|
||||
if (FixedPacketSize != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(FixedPacketSize);
|
||||
}
|
||||
if (VariableMultiplier != 0F) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (Multiplier != 0F) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (RateLimitCount != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RateLimitCount);
|
||||
}
|
||||
if (RateLimitSeconds != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RateLimitSeconds);
|
||||
}
|
||||
if (MaxPacketSize != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxPacketSize);
|
||||
}
|
||||
if (MaxEncodedSize != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxEncodedSize);
|
||||
}
|
||||
if (Timeout != 0F) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (CapBalance != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CapBalance);
|
||||
}
|
||||
if (IncomePerSecond != 0F) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (ServiceHash != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ServiceHash);
|
||||
}
|
||||
if (MethodId != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MethodId);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(RPCMethodConfig other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.ServiceName.Length != 0) {
|
||||
ServiceName = other.ServiceName;
|
||||
}
|
||||
if (other.MethodName.Length != 0) {
|
||||
MethodName = other.MethodName;
|
||||
}
|
||||
if (other.FixedCallCost != 0) {
|
||||
FixedCallCost = other.FixedCallCost;
|
||||
}
|
||||
if (other.FixedPacketSize != 0) {
|
||||
FixedPacketSize = other.FixedPacketSize;
|
||||
}
|
||||
if (other.VariableMultiplier != 0F) {
|
||||
VariableMultiplier = other.VariableMultiplier;
|
||||
}
|
||||
if (other.Multiplier != 0F) {
|
||||
Multiplier = other.Multiplier;
|
||||
}
|
||||
if (other.RateLimitCount != 0) {
|
||||
RateLimitCount = other.RateLimitCount;
|
||||
}
|
||||
if (other.RateLimitSeconds != 0) {
|
||||
RateLimitSeconds = other.RateLimitSeconds;
|
||||
}
|
||||
if (other.MaxPacketSize != 0) {
|
||||
MaxPacketSize = other.MaxPacketSize;
|
||||
}
|
||||
if (other.MaxEncodedSize != 0) {
|
||||
MaxEncodedSize = other.MaxEncodedSize;
|
||||
}
|
||||
if (other.Timeout != 0F) {
|
||||
Timeout = other.Timeout;
|
||||
}
|
||||
if (other.CapBalance != 0) {
|
||||
CapBalance = other.CapBalance;
|
||||
}
|
||||
if (other.IncomePerSecond != 0F) {
|
||||
IncomePerSecond = other.IncomePerSecond;
|
||||
}
|
||||
if (other.ServiceHash != 0) {
|
||||
ServiceHash = other.ServiceHash;
|
||||
}
|
||||
if (other.MethodId != 0) {
|
||||
MethodId = other.MethodId;
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 10: {
|
||||
ServiceName = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
MethodName = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
FixedCallCost = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
FixedPacketSize = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 45: {
|
||||
VariableMultiplier = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 53: {
|
||||
Multiplier = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 56: {
|
||||
RateLimitCount = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 64: {
|
||||
RateLimitSeconds = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 72: {
|
||||
MaxPacketSize = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 80: {
|
||||
MaxEncodedSize = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 93: {
|
||||
Timeout = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 96: {
|
||||
CapBalance = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 109: {
|
||||
IncomePerSecond = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 112: {
|
||||
ServiceHash = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 120: {
|
||||
MethodId = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class RPCMeterConfig : pb::IMessage<RPCMeterConfig> {
|
||||
private static readonly pb::MessageParser<RPCMeterConfig> _parser = new pb::MessageParser<RPCMeterConfig>(() => new RPCMeterConfig());
|
||||
public static pb::MessageParser<RPCMeterConfig> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.Config.RpcConfigReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public RPCMeterConfig() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public RPCMeterConfig(RPCMeterConfig other) : this() {
|
||||
method_ = other.method_.Clone();
|
||||
incomePerSecond_ = other.incomePerSecond_;
|
||||
initialBalance_ = other.initialBalance_;
|
||||
capBalance_ = other.capBalance_;
|
||||
startupPeriod_ = other.startupPeriod_;
|
||||
}
|
||||
|
||||
public RPCMeterConfig Clone() {
|
||||
return new RPCMeterConfig(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "method" field.</summary>
|
||||
public const int MethodFieldNumber = 1;
|
||||
private static readonly pb::FieldCodec<Bgs.Protocol.Config.RPCMethodConfig> _repeated_method_codec
|
||||
= pb::FieldCodec.ForMessage(10, Bgs.Protocol.Config.RPCMethodConfig.Parser);
|
||||
private readonly pbc::RepeatedField<Bgs.Protocol.Config.RPCMethodConfig> method_ = new pbc::RepeatedField<Bgs.Protocol.Config.RPCMethodConfig>();
|
||||
public pbc::RepeatedField<Bgs.Protocol.Config.RPCMethodConfig> Method {
|
||||
get { return method_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "income_per_second" field.</summary>
|
||||
public const int IncomePerSecondFieldNumber = 2;
|
||||
private uint incomePerSecond_;
|
||||
public uint IncomePerSecond {
|
||||
get { return incomePerSecond_; }
|
||||
set {
|
||||
incomePerSecond_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "initial_balance" field.</summary>
|
||||
public const int InitialBalanceFieldNumber = 3;
|
||||
private uint initialBalance_;
|
||||
public uint InitialBalance {
|
||||
get { return initialBalance_; }
|
||||
set {
|
||||
initialBalance_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "cap_balance" field.</summary>
|
||||
public const int CapBalanceFieldNumber = 4;
|
||||
private uint capBalance_;
|
||||
public uint CapBalance {
|
||||
get { return capBalance_; }
|
||||
set {
|
||||
capBalance_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "startup_period" field.</summary>
|
||||
public const int StartupPeriodFieldNumber = 5;
|
||||
private float startupPeriod_;
|
||||
public float StartupPeriod {
|
||||
get { return startupPeriod_; }
|
||||
set {
|
||||
startupPeriod_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as RPCMeterConfig);
|
||||
}
|
||||
|
||||
public bool Equals(RPCMeterConfig other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if(!method_.Equals(other.method_)) return false;
|
||||
if (IncomePerSecond != other.IncomePerSecond) return false;
|
||||
if (InitialBalance != other.InitialBalance) return false;
|
||||
if (CapBalance != other.CapBalance) return false;
|
||||
if (StartupPeriod != other.StartupPeriod) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
hash ^= method_.GetHashCode();
|
||||
if (IncomePerSecond != 0) hash ^= IncomePerSecond.GetHashCode();
|
||||
if (InitialBalance != 0) hash ^= InitialBalance.GetHashCode();
|
||||
if (CapBalance != 0) hash ^= CapBalance.GetHashCode();
|
||||
if (StartupPeriod != 0F) hash ^= StartupPeriod.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
method_.WriteTo(output, _repeated_method_codec);
|
||||
if (IncomePerSecond != 0) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteUInt32(IncomePerSecond);
|
||||
}
|
||||
if (InitialBalance != 0) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteUInt32(InitialBalance);
|
||||
}
|
||||
if (CapBalance != 0) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteUInt32(CapBalance);
|
||||
}
|
||||
if (StartupPeriod != 0F) {
|
||||
output.WriteRawTag(45);
|
||||
output.WriteFloat(StartupPeriod);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
size += method_.CalculateSize(_repeated_method_codec);
|
||||
if (IncomePerSecond != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(IncomePerSecond);
|
||||
}
|
||||
if (InitialBalance != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(InitialBalance);
|
||||
}
|
||||
if (CapBalance != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(CapBalance);
|
||||
}
|
||||
if (StartupPeriod != 0F) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(RPCMeterConfig other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
method_.Add(other.method_);
|
||||
if (other.IncomePerSecond != 0) {
|
||||
IncomePerSecond = other.IncomePerSecond;
|
||||
}
|
||||
if (other.InitialBalance != 0) {
|
||||
InitialBalance = other.InitialBalance;
|
||||
}
|
||||
if (other.CapBalance != 0) {
|
||||
CapBalance = other.CapBalance;
|
||||
}
|
||||
if (other.StartupPeriod != 0F) {
|
||||
StartupPeriod = other.StartupPeriod;
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 10: {
|
||||
method_.AddEntriesFrom(input, _repeated_method_codec);
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
IncomePerSecond = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
InitialBalance = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
CapBalance = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 45: {
|
||||
StartupPeriod = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class ProtocolAlias : pb::IMessage<ProtocolAlias> {
|
||||
private static readonly pb::MessageParser<ProtocolAlias> _parser = new pb::MessageParser<ProtocolAlias>(() => new ProtocolAlias());
|
||||
public static pb::MessageParser<ProtocolAlias> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.Config.RpcConfigReflection.Descriptor.MessageTypes[2]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public ProtocolAlias() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public ProtocolAlias(ProtocolAlias other) : this() {
|
||||
serverServiceName_ = other.serverServiceName_;
|
||||
clientServiceName_ = other.clientServiceName_;
|
||||
}
|
||||
|
||||
public ProtocolAlias Clone() {
|
||||
return new ProtocolAlias(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "server_service_name" field.</summary>
|
||||
public const int ServerServiceNameFieldNumber = 1;
|
||||
private string serverServiceName_ = "";
|
||||
public string ServerServiceName {
|
||||
get { return serverServiceName_; }
|
||||
set {
|
||||
serverServiceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "client_service_name" field.</summary>
|
||||
public const int ClientServiceNameFieldNumber = 2;
|
||||
private string clientServiceName_ = "";
|
||||
public string ClientServiceName {
|
||||
get { return clientServiceName_; }
|
||||
set {
|
||||
clientServiceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as ProtocolAlias);
|
||||
}
|
||||
|
||||
public bool Equals(ProtocolAlias other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (ServerServiceName != other.ServerServiceName) return false;
|
||||
if (ClientServiceName != other.ClientServiceName) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (ServerServiceName.Length != 0) hash ^= ServerServiceName.GetHashCode();
|
||||
if (ClientServiceName.Length != 0) hash ^= ClientServiceName.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (ServerServiceName.Length != 0) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(ServerServiceName);
|
||||
}
|
||||
if (ClientServiceName.Length != 0) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteString(ClientServiceName);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (ServerServiceName.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(ServerServiceName);
|
||||
}
|
||||
if (ClientServiceName.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientServiceName);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(ProtocolAlias other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.ServerServiceName.Length != 0) {
|
||||
ServerServiceName = other.ServerServiceName;
|
||||
}
|
||||
if (other.ClientServiceName.Length != 0) {
|
||||
ClientServiceName = other.ClientServiceName;
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 10: {
|
||||
ServerServiceName = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
ClientServiceName = input.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class ServiceAliases : pb::IMessage<ServiceAliases> {
|
||||
private static readonly pb::MessageParser<ServiceAliases> _parser = new pb::MessageParser<ServiceAliases>(() => new ServiceAliases());
|
||||
public static pb::MessageParser<ServiceAliases> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.Config.RpcConfigReflection.Descriptor.MessageTypes[3]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public ServiceAliases() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public ServiceAliases(ServiceAliases other) : this() {
|
||||
protocolAlias_ = other.protocolAlias_.Clone();
|
||||
}
|
||||
|
||||
public ServiceAliases Clone() {
|
||||
return new ServiceAliases(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "protocol_alias" field.</summary>
|
||||
public const int ProtocolAliasFieldNumber = 1;
|
||||
private static readonly pb::FieldCodec<Bgs.Protocol.Config.ProtocolAlias> _repeated_protocolAlias_codec
|
||||
= pb::FieldCodec.ForMessage(10, Bgs.Protocol.Config.ProtocolAlias.Parser);
|
||||
private readonly pbc::RepeatedField<Bgs.Protocol.Config.ProtocolAlias> protocolAlias_ = new pbc::RepeatedField<Bgs.Protocol.Config.ProtocolAlias>();
|
||||
public pbc::RepeatedField<Bgs.Protocol.Config.ProtocolAlias> ProtocolAlias {
|
||||
get { return protocolAlias_; }
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as ServiceAliases);
|
||||
}
|
||||
|
||||
public bool Equals(ServiceAliases other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if(!protocolAlias_.Equals(other.protocolAlias_)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
hash ^= protocolAlias_.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
protocolAlias_.WriteTo(output, _repeated_protocolAlias_codec);
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
size += protocolAlias_.CalculateSize(_repeated_protocolAlias_codec);
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(ServiceAliases other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
protocolAlias_.Add(other.protocolAlias_);
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 10: {
|
||||
protocolAlias_.AddEntriesFrom(input, _repeated_protocolAlias_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,471 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/user_manager_types.proto
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = Google.Protobuf;
|
||||
using pbc = Google.Protobuf.Collections;
|
||||
using pbr = Google.Protobuf.Reflection;
|
||||
namespace Bgs.Protocol.UserManager.V1
|
||||
{
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/user_manager_types.proto</summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public static partial class UserManagerTypesReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/user_manager_types.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static UserManagerTypesReflection() {
|
||||
byte[] descriptorData = System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CipiZ3MvbG93L3BiL2NsaWVudC91c2VyX21hbmFnZXJfdHlwZXMucHJvdG8S",
|
||||
"HGJncy5wcm90b2NvbC51c2VyX21hbmFnZXIudjEaJGJncy9sb3cvcGIvY2xp",
|
||||
"ZW50L2VudGl0eV90eXBlcy5wcm90bxonYmdzL2xvdy9wYi9jbGllbnQvYXR0",
|
||||
"cmlidXRlX3R5cGVzLnByb3RvIq4BCgxSZWNlbnRQbGF5ZXISKQoJZW50aXR5",
|
||||
"X2lkGAEgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEg8KB3Byb2dyYW0Y",
|
||||
"AiABKAkSGAoQdGltZXN0YW1wX3BsYXllZBgDIAEoBhIrCgphdHRyaWJ1dGVz",
|
||||
"GAQgAygLMhcuYmdzLnByb3RvY29sLkF0dHJpYnV0ZRIKCgJpZBgFIAEoBxIP",
|
||||
"Cgdjb3VudGVyGAYgASgHIm8KDUJsb2NrZWRQbGF5ZXISKgoKYWNjb3VudF9p",
|
||||
"ZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIMCgRuYW1lGAIgASgJ",
|
||||
"EhAKBHJvbGUYAyADKA1CAhABEhIKCnByaXZpbGVnZXMYBCABKARCAkgCYgZw",
|
||||
"cm90bzM="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { Bgs.Protocol.EntityTypesReflection.Descriptor, Bgs.Protocol.AttributeTypesReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.UserManager.V1.RecentPlayer), Bgs.Protocol.UserManager.V1.RecentPlayer.Parser, new[]{ "EntityId", "Program", "TimestampPlayed", "Attributes", "Id", "Counter" }, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(Bgs.Protocol.UserManager.V1.BlockedPlayer), Bgs.Protocol.UserManager.V1.BlockedPlayer.Parser, new[]{ "AccountId", "Name", "Role", "Privileges" }, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class RecentPlayer : pb::IMessage<RecentPlayer> {
|
||||
private static readonly pb::MessageParser<RecentPlayer> _parser = new pb::MessageParser<RecentPlayer>(() => new RecentPlayer());
|
||||
public static pb::MessageParser<RecentPlayer> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.UserManager.V1.UserManagerTypesReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public RecentPlayer() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public RecentPlayer(RecentPlayer other) : this() {
|
||||
EntityId = other.entityId_ != null ? other.EntityId.Clone() : null;
|
||||
program_ = other.program_;
|
||||
timestampPlayed_ = other.timestampPlayed_;
|
||||
attributes_ = other.attributes_.Clone();
|
||||
id_ = other.id_;
|
||||
counter_ = other.counter_;
|
||||
}
|
||||
|
||||
public RecentPlayer Clone() {
|
||||
return new RecentPlayer(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "entity_id" field.</summary>
|
||||
public const int EntityIdFieldNumber = 1;
|
||||
private Bgs.Protocol.EntityId entityId_;
|
||||
public Bgs.Protocol.EntityId EntityId {
|
||||
get { return entityId_; }
|
||||
set {
|
||||
entityId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "program" field.</summary>
|
||||
public const int ProgramFieldNumber = 2;
|
||||
private string program_ = "";
|
||||
public string Program {
|
||||
get { return program_; }
|
||||
set {
|
||||
program_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "timestamp_played" field.</summary>
|
||||
public const int TimestampPlayedFieldNumber = 3;
|
||||
private ulong timestampPlayed_;
|
||||
public ulong TimestampPlayed {
|
||||
get { return timestampPlayed_; }
|
||||
set {
|
||||
timestampPlayed_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "attributes" field.</summary>
|
||||
public const int AttributesFieldNumber = 4;
|
||||
private static readonly pb::FieldCodec<Bgs.Protocol.Attribute> _repeated_attributes_codec
|
||||
= pb::FieldCodec.ForMessage(34, Bgs.Protocol.Attribute.Parser);
|
||||
private readonly pbc::RepeatedField<Bgs.Protocol.Attribute> attributes_ = new pbc::RepeatedField<Bgs.Protocol.Attribute>();
|
||||
public pbc::RepeatedField<Bgs.Protocol.Attribute> Attributes {
|
||||
get { return attributes_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "id" field.</summary>
|
||||
public const int IdFieldNumber = 5;
|
||||
private uint id_;
|
||||
public uint Id {
|
||||
get { return id_; }
|
||||
set {
|
||||
id_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "counter" field.</summary>
|
||||
public const int CounterFieldNumber = 6;
|
||||
private uint counter_;
|
||||
public uint Counter {
|
||||
get { return counter_; }
|
||||
set {
|
||||
counter_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as RecentPlayer);
|
||||
}
|
||||
|
||||
public bool Equals(RecentPlayer other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(EntityId, other.EntityId)) return false;
|
||||
if (Program != other.Program) return false;
|
||||
if (TimestampPlayed != other.TimestampPlayed) return false;
|
||||
if(!attributes_.Equals(other.attributes_)) return false;
|
||||
if (Id != other.Id) return false;
|
||||
if (Counter != other.Counter) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (entityId_ != null) hash ^= EntityId.GetHashCode();
|
||||
if (Program.Length != 0) hash ^= Program.GetHashCode();
|
||||
if (TimestampPlayed != 0UL) hash ^= TimestampPlayed.GetHashCode();
|
||||
hash ^= attributes_.GetHashCode();
|
||||
if (Id != 0) hash ^= Id.GetHashCode();
|
||||
if (Counter != 0) hash ^= Counter.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (entityId_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(EntityId);
|
||||
}
|
||||
if (Program.Length != 0) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteString(Program);
|
||||
}
|
||||
if (TimestampPlayed != 0UL) {
|
||||
output.WriteRawTag(25);
|
||||
output.WriteFixed64(TimestampPlayed);
|
||||
}
|
||||
attributes_.WriteTo(output, _repeated_attributes_codec);
|
||||
if (Id != 0) {
|
||||
output.WriteRawTag(45);
|
||||
output.WriteFixed32(Id);
|
||||
}
|
||||
if (Counter != 0) {
|
||||
output.WriteRawTag(53);
|
||||
output.WriteFixed32(Counter);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (entityId_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(EntityId);
|
||||
}
|
||||
if (Program.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Program);
|
||||
}
|
||||
if (TimestampPlayed != 0UL) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
size += attributes_.CalculateSize(_repeated_attributes_codec);
|
||||
if (Id != 0) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (Counter != 0) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(RecentPlayer other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.entityId_ != null) {
|
||||
if (entityId_ == null) {
|
||||
entityId_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
EntityId.MergeFrom(other.EntityId);
|
||||
}
|
||||
if (other.Program.Length != 0) {
|
||||
Program = other.Program;
|
||||
}
|
||||
if (other.TimestampPlayed != 0UL) {
|
||||
TimestampPlayed = other.TimestampPlayed;
|
||||
}
|
||||
attributes_.Add(other.attributes_);
|
||||
if (other.Id != 0) {
|
||||
Id = other.Id;
|
||||
}
|
||||
if (other.Counter != 0) {
|
||||
Counter = other.Counter;
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 10: {
|
||||
if (entityId_ == null) {
|
||||
entityId_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
input.ReadMessage(entityId_);
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
Program = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 25: {
|
||||
TimestampPlayed = input.ReadFixed64();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
attributes_.AddEntriesFrom(input, _repeated_attributes_codec);
|
||||
break;
|
||||
}
|
||||
case 45: {
|
||||
Id = input.ReadFixed32();
|
||||
break;
|
||||
}
|
||||
case 53: {
|
||||
Counter = input.ReadFixed32();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public sealed partial class BlockedPlayer : pb::IMessage<BlockedPlayer> {
|
||||
private static readonly pb::MessageParser<BlockedPlayer> _parser = new pb::MessageParser<BlockedPlayer>(() => new BlockedPlayer());
|
||||
public static pb::MessageParser<BlockedPlayer> Parser { get { return _parser; } }
|
||||
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return Bgs.Protocol.UserManager.V1.UserManagerTypesReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
public BlockedPlayer() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
public BlockedPlayer(BlockedPlayer other) : this() {
|
||||
AccountId = other.accountId_ != null ? other.AccountId.Clone() : null;
|
||||
name_ = other.name_;
|
||||
role_ = other.role_.Clone();
|
||||
privileges_ = other.privileges_;
|
||||
}
|
||||
|
||||
public BlockedPlayer Clone() {
|
||||
return new BlockedPlayer(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "account_id" field.</summary>
|
||||
public const int AccountIdFieldNumber = 1;
|
||||
private Bgs.Protocol.EntityId accountId_;
|
||||
public Bgs.Protocol.EntityId AccountId {
|
||||
get { return accountId_; }
|
||||
set {
|
||||
accountId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "name" field.</summary>
|
||||
public const int NameFieldNumber = 2;
|
||||
private string name_ = "";
|
||||
public string Name {
|
||||
get { return name_; }
|
||||
set {
|
||||
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "role" field.</summary>
|
||||
public const int RoleFieldNumber = 3;
|
||||
private static readonly pb::FieldCodec<uint> _repeated_role_codec
|
||||
= pb::FieldCodec.ForUInt32(26);
|
||||
private readonly pbc::RepeatedField<uint> role_ = new pbc::RepeatedField<uint>();
|
||||
public pbc::RepeatedField<uint> Role {
|
||||
get { return role_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "privileges" field.</summary>
|
||||
public const int PrivilegesFieldNumber = 4;
|
||||
private ulong privileges_;
|
||||
public ulong Privileges {
|
||||
get { return privileges_; }
|
||||
set {
|
||||
privileges_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as BlockedPlayer);
|
||||
}
|
||||
|
||||
public bool Equals(BlockedPlayer other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(AccountId, other.AccountId)) return false;
|
||||
if (Name != other.Name) return false;
|
||||
if(!role_.Equals(other.role_)) return false;
|
||||
if (Privileges != other.Privileges) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (accountId_ != null) hash ^= AccountId.GetHashCode();
|
||||
if (Name.Length != 0) hash ^= Name.GetHashCode();
|
||||
hash ^= role_.GetHashCode();
|
||||
if (Privileges != 0UL) hash ^= Privileges.GetHashCode();
|
||||
return hash;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (accountId_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(AccountId);
|
||||
}
|
||||
if (Name.Length != 0) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteString(Name);
|
||||
}
|
||||
role_.WriteTo(output, _repeated_role_codec);
|
||||
if (Privileges != 0UL) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteUInt64(Privileges);
|
||||
}
|
||||
}
|
||||
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (accountId_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId);
|
||||
}
|
||||
if (Name.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
||||
}
|
||||
size += role_.CalculateSize(_repeated_role_codec);
|
||||
if (Privileges != 0UL) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Privileges);
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
public void MergeFrom(BlockedPlayer other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.accountId_ != null) {
|
||||
if (accountId_ == null) {
|
||||
accountId_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
AccountId.MergeFrom(other.AccountId);
|
||||
}
|
||||
if (other.Name.Length != 0) {
|
||||
Name = other.Name;
|
||||
}
|
||||
role_.Add(other.role_);
|
||||
if (other.Privileges != 0UL) {
|
||||
Privileges = other.Privileges;
|
||||
}
|
||||
}
|
||||
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
input.SkipLastField();
|
||||
break;
|
||||
case 10: {
|
||||
if (accountId_ == null) {
|
||||
accountId_ = new Bgs.Protocol.EntityId();
|
||||
}
|
||||
input.ReadMessage(accountId_);
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
Name = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 26:
|
||||
case 24: {
|
||||
role_.AddEntriesFrom(input, _repeated_role_codec);
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
Privileges = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
Reference in New Issue
Block a user