Updated Proto files
This commit is contained in:
@@ -0,0 +1,801 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/api/common/v1/club_core.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Bgs.Protocol.Club.V1 {
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/api/common/v1/club_core.proto</summary>
|
||||
public static partial class ClubCoreReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/api/common/v1/club_core.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static ClubCoreReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Ci9iZ3MvbG93L3BiL2NsaWVudC9hcGkvY29tbW9uL3YxL2NsdWJfY29yZS5w",
|
||||
"cm90bxIUYmdzLnByb3RvY29sLmNsdWIudjEaLmJncy9sb3cvcGIvY2xpZW50",
|
||||
"L2FwaS9jb21tb24vdjEvY2x1Yl90YWcucHJvdG8aL2Jncy9sb3cvcGIvY2xp",
|
||||
"ZW50L2FwaS9jb21tb24vdjEvY2x1Yl90eXBlLnByb3RvGi9iZ3MvbG93L3Bi",
|
||||
"L2NsaWVudC9hcGkvY29tbW9uL3YxL2NsdWJfZW51bS5wcm90bxoxYmdzL2xv",
|
||||
"dy9wYi9jbGllbnQvYXBpL2NsaWVudC92MS9jbHViX21lbWJlci5wcm90byIW",
|
||||
"CghBdmF0YXJJZBIKCgJpZBgBIAEoDSKRBAoPQ2x1YkRlc2NyaXB0aW9uEgoK",
|
||||
"AmlkGAEgASgEEjIKBHR5cGUYAiABKAsyJC5iZ3MucHJvdG9jb2wuY2x1Yi52",
|
||||
"MS5VbmlxdWVDbHViVHlwZRIMCgRuYW1lGAMgASgJEhMKC2Rlc2NyaXB0aW9u",
|
||||
"GAQgASgJEi4KBmF2YXRhchgFIAEoCzIeLmJncy5wcm90b2NvbC5jbHViLnYx",
|
||||
"LkF2YXRhcklkEk8KDXByaXZhY3lfbGV2ZWwYBiABKA4yIi5iZ3MucHJvdG9j",
|
||||
"b2wuY2x1Yi52MS5Qcml2YWN5TGV2ZWw6FFBSSVZBQ1lfTEVWRUxfQ0xPU0VE",
|
||||
"ElkKEHZpc2liaWxpdHlfbGV2ZWwYByABKA4yJS5iZ3MucHJvdG9jb2wuY2x1",
|
||||
"Yi52MS5WaXNpYmlsaXR5TGV2ZWw6GFZJU0lCSUxJVFlfTEVWRUxfUFJJVkFU",
|
||||
"RRIUCgxtZW1iZXJfY291bnQYCCABKA0SPgoGbGVhZGVyGAkgAygLMi4uYmdz",
|
||||
"LnByb3RvY29sLmNsdWIudjEuY2xpZW50Lk1lbWJlckRlc2NyaXB0aW9uEhUK",
|
||||
"DWNyZWF0aW9uX3RpbWUYCiABKAQSEAoIdGltZXpvbmUYCyABKAkSDgoGbG9j",
|
||||
"YWxlGAwgASgJEjAKA3RhZxgNIAMoCzIjLmJncy5wcm90b2NvbC5jbHViLnYx",
|
||||
"LlRhZ0lkZW50aWZpZXI="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Bgs.Protocol.Club.V1.ClubTagReflection.Descriptor, global::Bgs.Protocol.Club.V1.ClubTypeReflection.Descriptor, global::Bgs.Protocol.Club.V1.ClubEnumReflection.Descriptor, global::Bgs.Protocol.Club.V1.Client.ClubMemberReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.AvatarId), global::Bgs.Protocol.Club.V1.AvatarId.Parser, new[]{ "Id" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.ClubDescription), global::Bgs.Protocol.Club.V1.ClubDescription.Parser, new[]{ "Id", "Type", "Name", "Description", "Avatar", "PrivacyLevel", "VisibilityLevel", "MemberCount", "Leader", "CreationTime", "Timezone", "Locale", "Tag" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class AvatarId : pb::IMessage<AvatarId> {
|
||||
private static readonly pb::MessageParser<AvatarId> _parser = new pb::MessageParser<AvatarId>(() => new AvatarId());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pb::MessageParser<AvatarId> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Bgs.Protocol.Club.V1.ClubCoreReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public AvatarId() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public AvatarId(AvatarId other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
id_ = other.id_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public AvatarId Clone() {
|
||||
return new AvatarId(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "id" field.</summary>
|
||||
public const int IdFieldNumber = 1;
|
||||
private readonly static uint IdDefaultValue = 0;
|
||||
|
||||
private uint id_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public uint Id {
|
||||
get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
id_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "id" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasId {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "id" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearId() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as AvatarId);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool Equals(AvatarId other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Id != other.Id) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasId) hash ^= Id.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (HasId) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt32(Id);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasId) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(AvatarId other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasId) {
|
||||
Id = other.Id;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
Id = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public sealed partial class ClubDescription : pb::IMessage<ClubDescription> {
|
||||
private static readonly pb::MessageParser<ClubDescription> _parser = new pb::MessageParser<ClubDescription>(() => new ClubDescription());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pb::MessageParser<ClubDescription> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Bgs.Protocol.Club.V1.ClubCoreReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ClubDescription() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ClubDescription(ClubDescription other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
id_ = other.id_;
|
||||
type_ = other.HasType ? other.type_.Clone() : null;
|
||||
name_ = other.name_;
|
||||
description_ = other.description_;
|
||||
avatar_ = other.HasAvatar ? other.avatar_.Clone() : null;
|
||||
privacyLevel_ = other.privacyLevel_;
|
||||
visibilityLevel_ = other.visibilityLevel_;
|
||||
memberCount_ = other.memberCount_;
|
||||
leader_ = other.leader_.Clone();
|
||||
creationTime_ = other.creationTime_;
|
||||
timezone_ = other.timezone_;
|
||||
locale_ = other.locale_;
|
||||
tag_ = other.tag_.Clone();
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ClubDescription Clone() {
|
||||
return new ClubDescription(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "id" field.</summary>
|
||||
public const int IdFieldNumber = 1;
|
||||
private readonly static ulong IdDefaultValue = 0UL;
|
||||
|
||||
private ulong id_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ulong Id {
|
||||
get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
id_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "id" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasId {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "id" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearId() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "type" field.</summary>
|
||||
public const int TypeFieldNumber = 2;
|
||||
private global::Bgs.Protocol.Club.V1.UniqueClubType type_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public global::Bgs.Protocol.Club.V1.UniqueClubType Type {
|
||||
get { return type_; }
|
||||
set {
|
||||
type_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the type field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasType {
|
||||
get { return type_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the type field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearType() {
|
||||
type_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "name" field.</summary>
|
||||
public const int NameFieldNumber = 3;
|
||||
private readonly static string NameDefaultValue = "";
|
||||
|
||||
private string name_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public string Name {
|
||||
get { return name_ ?? NameDefaultValue; }
|
||||
set {
|
||||
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "name" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasName {
|
||||
get { return name_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "name" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearName() {
|
||||
name_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "description" field.</summary>
|
||||
public const int DescriptionFieldNumber = 4;
|
||||
private readonly static string DescriptionDefaultValue = "";
|
||||
|
||||
private string description_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public string Description {
|
||||
get { return description_ ?? DescriptionDefaultValue; }
|
||||
set {
|
||||
description_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "description" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasDescription {
|
||||
get { return description_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "description" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearDescription() {
|
||||
description_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "avatar" field.</summary>
|
||||
public const int AvatarFieldNumber = 5;
|
||||
private global::Bgs.Protocol.Club.V1.AvatarId avatar_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public global::Bgs.Protocol.Club.V1.AvatarId Avatar {
|
||||
get { return avatar_; }
|
||||
set {
|
||||
avatar_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the avatar field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasAvatar {
|
||||
get { return avatar_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the avatar field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearAvatar() {
|
||||
avatar_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "privacy_level" field.</summary>
|
||||
public const int PrivacyLevelFieldNumber = 6;
|
||||
private readonly static global::Bgs.Protocol.Club.V1.PrivacyLevel PrivacyLevelDefaultValue = global::Bgs.Protocol.Club.V1.PrivacyLevel.Closed;
|
||||
|
||||
private global::Bgs.Protocol.Club.V1.PrivacyLevel privacyLevel_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public global::Bgs.Protocol.Club.V1.PrivacyLevel PrivacyLevel {
|
||||
get { if ((_hasBits0 & 2) != 0) { return privacyLevel_; } else { return PrivacyLevelDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
privacyLevel_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "privacy_level" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasPrivacyLevel {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "privacy_level" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearPrivacyLevel() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "visibility_level" field.</summary>
|
||||
public const int VisibilityLevelFieldNumber = 7;
|
||||
private readonly static global::Bgs.Protocol.Club.V1.VisibilityLevel VisibilityLevelDefaultValue = global::Bgs.Protocol.Club.V1.VisibilityLevel.Private;
|
||||
|
||||
private global::Bgs.Protocol.Club.V1.VisibilityLevel visibilityLevel_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public global::Bgs.Protocol.Club.V1.VisibilityLevel VisibilityLevel {
|
||||
get { if ((_hasBits0 & 4) != 0) { return visibilityLevel_; } else { return VisibilityLevelDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
visibilityLevel_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "visibility_level" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasVisibilityLevel {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "visibility_level" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearVisibilityLevel() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "member_count" field.</summary>
|
||||
public const int MemberCountFieldNumber = 8;
|
||||
private readonly static uint MemberCountDefaultValue = 0;
|
||||
|
||||
private uint memberCount_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public uint MemberCount {
|
||||
get { if ((_hasBits0 & 8) != 0) { return memberCount_; } else { return MemberCountDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
memberCount_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "member_count" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasMemberCount {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "member_count" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearMemberCount() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "leader" field.</summary>
|
||||
public const int LeaderFieldNumber = 9;
|
||||
private static readonly pb::FieldCodec<global::Bgs.Protocol.Club.V1.Client.MemberDescription> _repeated_leader_codec
|
||||
= pb::FieldCodec.ForMessage(74, global::Bgs.Protocol.Club.V1.Client.MemberDescription.Parser);
|
||||
private readonly pbc::RepeatedField<global::Bgs.Protocol.Club.V1.Client.MemberDescription> leader_ = new pbc::RepeatedField<global::Bgs.Protocol.Club.V1.Client.MemberDescription>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public pbc::RepeatedField<global::Bgs.Protocol.Club.V1.Client.MemberDescription> Leader {
|
||||
get { return leader_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "creation_time" field.</summary>
|
||||
public const int CreationTimeFieldNumber = 10;
|
||||
private readonly static ulong CreationTimeDefaultValue = 0UL;
|
||||
|
||||
private ulong creationTime_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ulong CreationTime {
|
||||
get { if ((_hasBits0 & 16) != 0) { return creationTime_; } else { return CreationTimeDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 16;
|
||||
creationTime_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "creation_time" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasCreationTime {
|
||||
get { return (_hasBits0 & 16) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "creation_time" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearCreationTime() {
|
||||
_hasBits0 &= ~16;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "timezone" field.</summary>
|
||||
public const int TimezoneFieldNumber = 11;
|
||||
private readonly static string TimezoneDefaultValue = "";
|
||||
|
||||
private string timezone_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public string Timezone {
|
||||
get { return timezone_ ?? TimezoneDefaultValue; }
|
||||
set {
|
||||
timezone_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "timezone" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasTimezone {
|
||||
get { return timezone_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "timezone" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearTimezone() {
|
||||
timezone_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "locale" field.</summary>
|
||||
public const int LocaleFieldNumber = 12;
|
||||
private readonly static string LocaleDefaultValue = "";
|
||||
|
||||
private string locale_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public string Locale {
|
||||
get { return locale_ ?? LocaleDefaultValue; }
|
||||
set {
|
||||
locale_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "locale" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasLocale {
|
||||
get { return locale_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "locale" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearLocale() {
|
||||
locale_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "tag" field.</summary>
|
||||
public const int TagFieldNumber = 13;
|
||||
private static readonly pb::FieldCodec<global::Bgs.Protocol.Club.V1.TagIdentifier> _repeated_tag_codec
|
||||
= pb::FieldCodec.ForMessage(106, global::Bgs.Protocol.Club.V1.TagIdentifier.Parser);
|
||||
private readonly pbc::RepeatedField<global::Bgs.Protocol.Club.V1.TagIdentifier> tag_ = new pbc::RepeatedField<global::Bgs.Protocol.Club.V1.TagIdentifier>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public pbc::RepeatedField<global::Bgs.Protocol.Club.V1.TagIdentifier> Tag {
|
||||
get { return tag_; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as ClubDescription);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool Equals(ClubDescription other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Id != other.Id) return false;
|
||||
if (!object.Equals(Type, other.Type)) return false;
|
||||
if (Name != other.Name) return false;
|
||||
if (Description != other.Description) return false;
|
||||
if (!object.Equals(Avatar, other.Avatar)) return false;
|
||||
if (PrivacyLevel != other.PrivacyLevel) return false;
|
||||
if (VisibilityLevel != other.VisibilityLevel) return false;
|
||||
if (MemberCount != other.MemberCount) return false;
|
||||
if(!leader_.Equals(other.leader_)) return false;
|
||||
if (CreationTime != other.CreationTime) return false;
|
||||
if (Timezone != other.Timezone) return false;
|
||||
if (Locale != other.Locale) return false;
|
||||
if(!tag_.Equals(other.tag_)) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasId) hash ^= Id.GetHashCode();
|
||||
if (HasType) hash ^= Type.GetHashCode();
|
||||
if (HasName) hash ^= Name.GetHashCode();
|
||||
if (HasDescription) hash ^= Description.GetHashCode();
|
||||
if (HasAvatar) hash ^= Avatar.GetHashCode();
|
||||
if (HasPrivacyLevel) hash ^= PrivacyLevel.GetHashCode();
|
||||
if (HasVisibilityLevel) hash ^= VisibilityLevel.GetHashCode();
|
||||
if (HasMemberCount) hash ^= MemberCount.GetHashCode();
|
||||
hash ^= leader_.GetHashCode();
|
||||
if (HasCreationTime) hash ^= CreationTime.GetHashCode();
|
||||
if (HasTimezone) hash ^= Timezone.GetHashCode();
|
||||
if (HasLocale) hash ^= Locale.GetHashCode();
|
||||
hash ^= tag_.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (HasId) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt64(Id);
|
||||
}
|
||||
if (HasType) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(Type);
|
||||
}
|
||||
if (HasName) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteString(Name);
|
||||
}
|
||||
if (HasDescription) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteString(Description);
|
||||
}
|
||||
if (HasAvatar) {
|
||||
output.WriteRawTag(42);
|
||||
output.WriteMessage(Avatar);
|
||||
}
|
||||
if (HasPrivacyLevel) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteEnum((int) PrivacyLevel);
|
||||
}
|
||||
if (HasVisibilityLevel) {
|
||||
output.WriteRawTag(56);
|
||||
output.WriteEnum((int) VisibilityLevel);
|
||||
}
|
||||
if (HasMemberCount) {
|
||||
output.WriteRawTag(64);
|
||||
output.WriteUInt32(MemberCount);
|
||||
}
|
||||
leader_.WriteTo(output, _repeated_leader_codec);
|
||||
if (HasCreationTime) {
|
||||
output.WriteRawTag(80);
|
||||
output.WriteUInt64(CreationTime);
|
||||
}
|
||||
if (HasTimezone) {
|
||||
output.WriteRawTag(90);
|
||||
output.WriteString(Timezone);
|
||||
}
|
||||
if (HasLocale) {
|
||||
output.WriteRawTag(98);
|
||||
output.WriteString(Locale);
|
||||
}
|
||||
tag_.WriteTo(output, _repeated_tag_codec);
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasId) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Id);
|
||||
}
|
||||
if (HasType) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Type);
|
||||
}
|
||||
if (HasName) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
||||
}
|
||||
if (HasDescription) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Description);
|
||||
}
|
||||
if (HasAvatar) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Avatar);
|
||||
}
|
||||
if (HasPrivacyLevel) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PrivacyLevel);
|
||||
}
|
||||
if (HasVisibilityLevel) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) VisibilityLevel);
|
||||
}
|
||||
if (HasMemberCount) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MemberCount);
|
||||
}
|
||||
size += leader_.CalculateSize(_repeated_leader_codec);
|
||||
if (HasCreationTime) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreationTime);
|
||||
}
|
||||
if (HasTimezone) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Timezone);
|
||||
}
|
||||
if (HasLocale) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Locale);
|
||||
}
|
||||
size += tag_.CalculateSize(_repeated_tag_codec);
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(ClubDescription other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasId) {
|
||||
Id = other.Id;
|
||||
}
|
||||
if (other.HasType) {
|
||||
if (!HasType) {
|
||||
Type = new global::Bgs.Protocol.Club.V1.UniqueClubType();
|
||||
}
|
||||
Type.MergeFrom(other.Type);
|
||||
}
|
||||
if (other.HasName) {
|
||||
Name = other.Name;
|
||||
}
|
||||
if (other.HasDescription) {
|
||||
Description = other.Description;
|
||||
}
|
||||
if (other.HasAvatar) {
|
||||
if (!HasAvatar) {
|
||||
Avatar = new global::Bgs.Protocol.Club.V1.AvatarId();
|
||||
}
|
||||
Avatar.MergeFrom(other.Avatar);
|
||||
}
|
||||
if (other.HasPrivacyLevel) {
|
||||
PrivacyLevel = other.PrivacyLevel;
|
||||
}
|
||||
if (other.HasVisibilityLevel) {
|
||||
VisibilityLevel = other.VisibilityLevel;
|
||||
}
|
||||
if (other.HasMemberCount) {
|
||||
MemberCount = other.MemberCount;
|
||||
}
|
||||
leader_.Add(other.leader_);
|
||||
if (other.HasCreationTime) {
|
||||
CreationTime = other.CreationTime;
|
||||
}
|
||||
if (other.HasTimezone) {
|
||||
Timezone = other.Timezone;
|
||||
}
|
||||
if (other.HasLocale) {
|
||||
Locale = other.Locale;
|
||||
}
|
||||
tag_.Add(other.tag_);
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
Id = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (!HasType) {
|
||||
Type = new global::Bgs.Protocol.Club.V1.UniqueClubType();
|
||||
}
|
||||
input.ReadMessage(Type);
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
Name = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
Description = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 42: {
|
||||
if (!HasAvatar) {
|
||||
Avatar = new global::Bgs.Protocol.Club.V1.AvatarId();
|
||||
}
|
||||
input.ReadMessage(Avatar);
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
PrivacyLevel = (global::Bgs.Protocol.Club.V1.PrivacyLevel) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 56: {
|
||||
VisibilityLevel = (global::Bgs.Protocol.Club.V1.VisibilityLevel) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 64: {
|
||||
MemberCount = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 74: {
|
||||
leader_.AddEntriesFrom(input, _repeated_leader_codec);
|
||||
break;
|
||||
}
|
||||
case 80: {
|
||||
CreationTime = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
case 90: {
|
||||
Timezone = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 98: {
|
||||
Locale = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 106: {
|
||||
tag_.AddEntriesFrom(input, _repeated_tag_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,66 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/api/common/v1/club_enum.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Bgs.Protocol.Club.V1 {
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/api/common/v1/club_enum.proto</summary>
|
||||
public static partial class ClubEnumReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/api/common/v1/club_enum.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static ClubEnumReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Ci9iZ3MvbG93L3BiL2NsaWVudC9hcGkvY29tbW9uL3YxL2NsdWJfZW51bS5w",
|
||||
"cm90bxIUYmdzLnByb3RvY29sLmNsdWIudjEqggEKDFByaXZhY3lMZXZlbBIY",
|
||||
"ChRQUklWQUNZX0xFVkVMX0NMT1NFRBAAEiEKHVBSSVZBQ1lfTEVWRUxfT1BF",
|
||||
"Tl9JTlZJVEFUSU9OEAESHQoZUFJJVkFDWV9MRVZFTF9PUEVOX1RJQ0tFVBAC",
|
||||
"EhYKElBSSVZBQ1lfTEVWRUxfT1BFThADKkwKD1Zpc2liaWxpdHlMZXZlbBIc",
|
||||
"ChhWSVNJQklMSVRZX0xFVkVMX1BSSVZBVEUQABIbChdWSVNJQklMSVRZX0xF",
|
||||
"VkVMX1BVQkxJQxABKncKDkpvaW5DbHViU291cmNlEhkKFUpPSU5fQ0xVQl9T",
|
||||
"T1VSQ0VfTk9ORRAAEiAKHEpPSU5fQ0xVQl9TT1VSQ0VfQ0xVQl9GSU5ERVIQ",
|
||||
"ARIoCiRKT0lOX0NMVUJfU09VUkNFX0NMVUJfUkVDT01NRU5EQVRJT04QAg=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Bgs.Protocol.Club.V1.PrivacyLevel), typeof(global::Bgs.Protocol.Club.V1.VisibilityLevel), typeof(global::Bgs.Protocol.Club.V1.JoinClubSource), }, null, null));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Enums
|
||||
public enum PrivacyLevel {
|
||||
[pbr::OriginalName("PRIVACY_LEVEL_CLOSED")] Closed = 0,
|
||||
[pbr::OriginalName("PRIVACY_LEVEL_OPEN_INVITATION")] OpenInvitation = 1,
|
||||
[pbr::OriginalName("PRIVACY_LEVEL_OPEN_TICKET")] OpenTicket = 2,
|
||||
[pbr::OriginalName("PRIVACY_LEVEL_OPEN")] Open = 3,
|
||||
}
|
||||
|
||||
public enum VisibilityLevel {
|
||||
[pbr::OriginalName("VISIBILITY_LEVEL_PRIVATE")] Private = 0,
|
||||
[pbr::OriginalName("VISIBILITY_LEVEL_PUBLIC")] Public = 1,
|
||||
}
|
||||
|
||||
public enum JoinClubSource {
|
||||
[pbr::OriginalName("JOIN_CLUB_SOURCE_NONE")] None = 0,
|
||||
[pbr::OriginalName("JOIN_CLUB_SOURCE_CLUB_FINDER")] ClubFinder = 1,
|
||||
[pbr::OriginalName("JOIN_CLUB_SOURCE_CLUB_RECOMMENDATION")] ClubRecommendation = 2,
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,282 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/api/common/v1/club_member_id.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Bgs.Protocol.Club.V1 {
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/api/common/v1/club_member_id.proto</summary>
|
||||
public static partial class ClubMemberIdReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/api/common/v1/club_member_id.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static ClubMemberIdReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjRiZ3MvbG93L3BiL2NsaWVudC9hcGkvY29tbW9uL3YxL2NsdWJfbWVtYmVy",
|
||||
"X2lkLnByb3RvEhRiZ3MucHJvdG9jb2wuY2x1Yi52MRo5YmdzL2xvdy9wYi9j",
|
||||
"bGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvbWVzc2FnZV9vcHRpb25zLnByb3Rv",
|
||||
"GiViZ3MvbG93L3BiL2NsaWVudC9hY2NvdW50X3R5cGVzLnByb3RvGiFiZ3Mv",
|
||||
"bG93L3BiL2NsaWVudC9ycGNfdHlwZXMucHJvdG8aN2Jncy9sb3cvcGIvY2xp",
|
||||
"ZW50L2dsb2JhbF9leHRlbnNpb25zL2ZpZWxkX29wdGlvbnMucHJvdG8aOGJn",
|
||||
"cy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL21ldGhvZF9vcHRp",
|
||||
"b25zLnByb3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9u",
|
||||
"cy9zZXJ2aWNlX29wdGlvbnMucHJvdG8ihAEKCE1lbWJlcklkEkkKFWFjY291",
|
||||
"bnRfaWRfZGVwcmVjYXRlZBgBIAEoCzIiLmJncy5wcm90b2NvbC5hY2NvdW50",
|
||||
"LnYxLkFjY291bnRJZEIGkvkrAiABEhEKCXVuaXF1ZV9pZBgCIAEoBBISCgph",
|
||||
"Y2NvdW50X2lkGAMgASgEOgaC+SsCCAE="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.Account.V1.AccountTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.MemberId), global::Bgs.Protocol.Club.V1.MemberId.Parser, new[]{ "AccountIdDeprecated", "UniqueId", "AccountId" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class MemberId : pb::IMessage<MemberId> {
|
||||
private static readonly pb::MessageParser<MemberId> _parser = new pb::MessageParser<MemberId>(() => new MemberId());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pb::MessageParser<MemberId> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Bgs.Protocol.Club.V1.ClubMemberIdReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public MemberId() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public MemberId(MemberId other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
accountIdDeprecated_ = other.HasAccountIdDeprecated ? other.accountIdDeprecated_.Clone() : null;
|
||||
uniqueId_ = other.uniqueId_;
|
||||
accountId_ = other.accountId_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public MemberId Clone() {
|
||||
return new MemberId(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "account_id_deprecated" field.</summary>
|
||||
public const int AccountIdDeprecatedFieldNumber = 1;
|
||||
private global::Bgs.Protocol.Account.V1.AccountId accountIdDeprecated_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public global::Bgs.Protocol.Account.V1.AccountId AccountIdDeprecated {
|
||||
get { return accountIdDeprecated_; }
|
||||
set {
|
||||
accountIdDeprecated_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the account_id_deprecated field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasAccountIdDeprecated {
|
||||
get { return accountIdDeprecated_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the account_id_deprecated field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearAccountIdDeprecated() {
|
||||
accountIdDeprecated_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "unique_id" field.</summary>
|
||||
public const int UniqueIdFieldNumber = 2;
|
||||
private readonly static ulong UniqueIdDefaultValue = 0UL;
|
||||
|
||||
private ulong uniqueId_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ulong UniqueId {
|
||||
get { if ((_hasBits0 & 1) != 0) { return uniqueId_; } else { return UniqueIdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
uniqueId_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "unique_id" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasUniqueId {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "unique_id" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearUniqueId() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "account_id" field.</summary>
|
||||
public const int AccountIdFieldNumber = 3;
|
||||
private readonly static ulong AccountIdDefaultValue = 0UL;
|
||||
|
||||
private ulong accountId_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ulong AccountId {
|
||||
get { if ((_hasBits0 & 2) != 0) { return accountId_; } else { return AccountIdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
accountId_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "account_id" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasAccountId {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "account_id" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearAccountId() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as MemberId);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool Equals(MemberId other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(AccountIdDeprecated, other.AccountIdDeprecated)) return false;
|
||||
if (UniqueId != other.UniqueId) return false;
|
||||
if (AccountId != other.AccountId) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasAccountIdDeprecated) hash ^= AccountIdDeprecated.GetHashCode();
|
||||
if (HasUniqueId) hash ^= UniqueId.GetHashCode();
|
||||
if (HasAccountId) hash ^= AccountId.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (HasAccountIdDeprecated) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(AccountIdDeprecated);
|
||||
}
|
||||
if (HasUniqueId) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteUInt64(UniqueId);
|
||||
}
|
||||
if (HasAccountId) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteUInt64(AccountId);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasAccountIdDeprecated) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountIdDeprecated);
|
||||
}
|
||||
if (HasUniqueId) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(UniqueId);
|
||||
}
|
||||
if (HasAccountId) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(AccountId);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(MemberId other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasAccountIdDeprecated) {
|
||||
if (!HasAccountIdDeprecated) {
|
||||
AccountIdDeprecated = new global::Bgs.Protocol.Account.V1.AccountId();
|
||||
}
|
||||
AccountIdDeprecated.MergeFrom(other.AccountIdDeprecated);
|
||||
}
|
||||
if (other.HasUniqueId) {
|
||||
UniqueId = other.UniqueId;
|
||||
}
|
||||
if (other.HasAccountId) {
|
||||
AccountId = other.AccountId;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 10: {
|
||||
if (!HasAccountIdDeprecated) {
|
||||
AccountIdDeprecated = new global::Bgs.Protocol.Account.V1.AccountId();
|
||||
}
|
||||
input.ReadMessage(AccountIdDeprecated);
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
UniqueId = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
AccountId = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,649 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/api/common/v1/club_tag.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Bgs.Protocol.Club.V1 {
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/api/common/v1/club_tag.proto</summary>
|
||||
public static partial class ClubTagReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/api/common/v1/club_tag.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static ClubTagReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Ci5iZ3MvbG93L3BiL2NsaWVudC9hcGkvY29tbW9uL3YxL2NsdWJfdGFnLnBy",
|
||||
"b3RvEhRiZ3MucHJvdG9jb2wuY2x1Yi52MRohYmdzL2xvdy9wYi9jbGllbnQv",
|
||||
"cnBjX3R5cGVzLnByb3RvGjdiZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0",
|
||||
"ZW5zaW9ucy9maWVsZF9vcHRpb25zLnByb3RvGjliZ3MvbG93L3BiL2NsaWVu",
|
||||
"dC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXNzYWdlX29wdGlvbnMucHJvdG8aOGJn",
|
||||
"cy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL21ldGhvZF9vcHRp",
|
||||
"b25zLnByb3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9u",
|
||||
"cy9zZXJ2aWNlX29wdGlvbnMucHJvdG8iXwoKVGFnT3B0aW9ucxIfCgZhY3Rp",
|
||||
"b24YASABKA1CD4L5KwsqCVRhZ0FjdGlvbhIwCgN0YWcYAiADKAsyIy5iZ3Mu",
|
||||
"cHJvdG9jb2wuY2x1Yi52MS5UYWdJZGVudGlmaWVyIjgKDVRhZ0lkZW50aWZp",
|
||||
"ZXISCgoCaWQYASABKA0SGwoEdHlwZRgCIAEoDUINgvkrCSoHVGFnVHlwZSJm",
|
||||
"CgxMb2NhbGl6ZWRUYWcSMwoGdGFnX2lkGAEgASgLMiMuYmdzLnByb3RvY29s",
|
||||
"LmNsdWIudjEuVGFnSWRlbnRpZmllchIMCgRuYW1lGAIgASgJEhMKC2Rlc2Ny",
|
||||
"aXB0aW9uGAMgASgJKkoKCVRhZ0FjdGlvbhITCg9UQUdfQUNUSU9OX05PTkUQ",
|
||||
"ABIUChBUQUdfQUNUSU9OX0NMRUFSEAESEgoOVEFHX0FDVElPTl9TRVQQAipL",
|
||||
"CgdUYWdUeXBlEhQKEFRBR19UWVBFX0lOVkFMSUQQABIVChFUQUdfVFlQRV9Q",
|
||||
"TEFURk9STRABEhMKD1RBR19UWVBFX0NVU1RPTRAC"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Bgs.Protocol.Club.V1.TagAction), typeof(global::Bgs.Protocol.Club.V1.TagType), }, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.TagOptions), global::Bgs.Protocol.Club.V1.TagOptions.Parser, new[]{ "Action", "Tag" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.TagIdentifier), global::Bgs.Protocol.Club.V1.TagIdentifier.Parser, new[]{ "Id", "Type" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.LocalizedTag), global::Bgs.Protocol.Club.V1.LocalizedTag.Parser, new[]{ "TagId", "Name", "Description" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Enums
|
||||
public enum TagAction {
|
||||
[pbr::OriginalName("TAG_ACTION_NONE")] None = 0,
|
||||
[pbr::OriginalName("TAG_ACTION_CLEAR")] Clear = 1,
|
||||
[pbr::OriginalName("TAG_ACTION_SET")] Set = 2,
|
||||
}
|
||||
|
||||
public enum TagType {
|
||||
[pbr::OriginalName("TAG_TYPE_INVALID")] Invalid = 0,
|
||||
[pbr::OriginalName("TAG_TYPE_PLATFORM")] Platform = 1,
|
||||
[pbr::OriginalName("TAG_TYPE_CUSTOM")] Custom = 2,
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Messages
|
||||
public sealed partial class TagOptions : pb::IMessage<TagOptions> {
|
||||
private static readonly pb::MessageParser<TagOptions> _parser = new pb::MessageParser<TagOptions>(() => new TagOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pb::MessageParser<TagOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Bgs.Protocol.Club.V1.ClubTagReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public TagOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public TagOptions(TagOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
action_ = other.action_;
|
||||
tag_ = other.tag_.Clone();
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public TagOptions Clone() {
|
||||
return new TagOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "action" field.</summary>
|
||||
public const int ActionFieldNumber = 1;
|
||||
private readonly static uint ActionDefaultValue = 0;
|
||||
|
||||
private uint action_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public uint Action {
|
||||
get { if ((_hasBits0 & 1) != 0) { return action_; } else { return ActionDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
action_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "action" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasAction {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "action" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearAction() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "tag" field.</summary>
|
||||
public const int TagFieldNumber = 2;
|
||||
private static readonly pb::FieldCodec<global::Bgs.Protocol.Club.V1.TagIdentifier> _repeated_tag_codec
|
||||
= pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.Club.V1.TagIdentifier.Parser);
|
||||
private readonly pbc::RepeatedField<global::Bgs.Protocol.Club.V1.TagIdentifier> tag_ = new pbc::RepeatedField<global::Bgs.Protocol.Club.V1.TagIdentifier>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public pbc::RepeatedField<global::Bgs.Protocol.Club.V1.TagIdentifier> Tag {
|
||||
get { return tag_; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as TagOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool Equals(TagOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Action != other.Action) return false;
|
||||
if(!tag_.Equals(other.tag_)) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasAction) hash ^= Action.GetHashCode();
|
||||
hash ^= tag_.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (HasAction) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt32(Action);
|
||||
}
|
||||
tag_.WriteTo(output, _repeated_tag_codec);
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasAction) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Action);
|
||||
}
|
||||
size += tag_.CalculateSize(_repeated_tag_codec);
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(TagOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasAction) {
|
||||
Action = other.Action;
|
||||
}
|
||||
tag_.Add(other.tag_);
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
Action = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
tag_.AddEntriesFrom(input, _repeated_tag_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public sealed partial class TagIdentifier : pb::IMessage<TagIdentifier> {
|
||||
private static readonly pb::MessageParser<TagIdentifier> _parser = new pb::MessageParser<TagIdentifier>(() => new TagIdentifier());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pb::MessageParser<TagIdentifier> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Bgs.Protocol.Club.V1.ClubTagReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public TagIdentifier() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public TagIdentifier(TagIdentifier other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
id_ = other.id_;
|
||||
type_ = other.type_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public TagIdentifier Clone() {
|
||||
return new TagIdentifier(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "id" field.</summary>
|
||||
public const int IdFieldNumber = 1;
|
||||
private readonly static uint IdDefaultValue = 0;
|
||||
|
||||
private uint id_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public uint Id {
|
||||
get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
id_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "id" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasId {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "id" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearId() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "type" field.</summary>
|
||||
public const int TypeFieldNumber = 2;
|
||||
private readonly static uint TypeDefaultValue = 0;
|
||||
|
||||
private uint type_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public uint Type {
|
||||
get { if ((_hasBits0 & 2) != 0) { return type_; } else { return TypeDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
type_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "type" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasType {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "type" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearType() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as TagIdentifier);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool Equals(TagIdentifier other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Id != other.Id) return false;
|
||||
if (Type != other.Type) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasId) hash ^= Id.GetHashCode();
|
||||
if (HasType) hash ^= Type.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (HasId) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt32(Id);
|
||||
}
|
||||
if (HasType) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteUInt32(Type);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasId) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Id);
|
||||
}
|
||||
if (HasType) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Type);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(TagIdentifier other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasId) {
|
||||
Id = other.Id;
|
||||
}
|
||||
if (other.HasType) {
|
||||
Type = other.Type;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
Id = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
Type = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public sealed partial class LocalizedTag : pb::IMessage<LocalizedTag> {
|
||||
private static readonly pb::MessageParser<LocalizedTag> _parser = new pb::MessageParser<LocalizedTag>(() => new LocalizedTag());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pb::MessageParser<LocalizedTag> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Bgs.Protocol.Club.V1.ClubTagReflection.Descriptor.MessageTypes[2]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public LocalizedTag() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public LocalizedTag(LocalizedTag other) : this() {
|
||||
tagId_ = other.HasTagId ? other.tagId_.Clone() : null;
|
||||
name_ = other.name_;
|
||||
description_ = other.description_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public LocalizedTag Clone() {
|
||||
return new LocalizedTag(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "tag_id" field.</summary>
|
||||
public const int TagIdFieldNumber = 1;
|
||||
private global::Bgs.Protocol.Club.V1.TagIdentifier tagId_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public global::Bgs.Protocol.Club.V1.TagIdentifier TagId {
|
||||
get { return tagId_; }
|
||||
set {
|
||||
tagId_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the tag_id field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasTagId {
|
||||
get { return tagId_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the tag_id field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearTagId() {
|
||||
tagId_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "name" field.</summary>
|
||||
public const int NameFieldNumber = 2;
|
||||
private readonly static string NameDefaultValue = "";
|
||||
|
||||
private string name_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public string Name {
|
||||
get { return name_ ?? NameDefaultValue; }
|
||||
set {
|
||||
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "name" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasName {
|
||||
get { return name_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "name" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearName() {
|
||||
name_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "description" field.</summary>
|
||||
public const int DescriptionFieldNumber = 3;
|
||||
private readonly static string DescriptionDefaultValue = "";
|
||||
|
||||
private string description_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public string Description {
|
||||
get { return description_ ?? DescriptionDefaultValue; }
|
||||
set {
|
||||
description_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "description" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasDescription {
|
||||
get { return description_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "description" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearDescription() {
|
||||
description_ = null;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as LocalizedTag);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool Equals(LocalizedTag other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(TagId, other.TagId)) return false;
|
||||
if (Name != other.Name) return false;
|
||||
if (Description != other.Description) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasTagId) hash ^= TagId.GetHashCode();
|
||||
if (HasName) hash ^= Name.GetHashCode();
|
||||
if (HasDescription) hash ^= Description.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (HasTagId) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(TagId);
|
||||
}
|
||||
if (HasName) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteString(Name);
|
||||
}
|
||||
if (HasDescription) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteString(Description);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasTagId) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TagId);
|
||||
}
|
||||
if (HasName) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
||||
}
|
||||
if (HasDescription) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Description);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(LocalizedTag other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasTagId) {
|
||||
if (!HasTagId) {
|
||||
TagId = new global::Bgs.Protocol.Club.V1.TagIdentifier();
|
||||
}
|
||||
TagId.MergeFrom(other.TagId);
|
||||
}
|
||||
if (other.HasName) {
|
||||
Name = other.Name;
|
||||
}
|
||||
if (other.HasDescription) {
|
||||
Description = other.Description;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 10: {
|
||||
if (!HasTagId) {
|
||||
TagId = new global::Bgs.Protocol.Club.V1.TagIdentifier();
|
||||
}
|
||||
input.ReadMessage(TagId);
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
Name = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
Description = input.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,228 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/api/common/v1/club_type.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Bgs.Protocol.Club.V1 {
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/api/common/v1/club_type.proto</summary>
|
||||
public static partial class ClubTypeReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/api/common/v1/club_type.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static ClubTypeReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Ci9iZ3MvbG93L3BiL2NsaWVudC9hcGkvY29tbW9uL3YxL2NsdWJfdHlwZS5w",
|
||||
"cm90bxIUYmdzLnByb3RvY29sLmNsdWIudjEiLwoOVW5pcXVlQ2x1YlR5cGUS",
|
||||
"DwoHcHJvZ3JhbRgBIAEoBxIMCgRuYW1lGAIgASgJ"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Club.V1.UniqueClubType), global::Bgs.Protocol.Club.V1.UniqueClubType.Parser, new[]{ "Program", "Name" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class UniqueClubType : pb::IMessage<UniqueClubType> {
|
||||
private static readonly pb::MessageParser<UniqueClubType> _parser = new pb::MessageParser<UniqueClubType>(() => new UniqueClubType());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pb::MessageParser<UniqueClubType> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Bgs.Protocol.Club.V1.ClubTypeReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public UniqueClubType() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public UniqueClubType(UniqueClubType other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
program_ = other.program_;
|
||||
name_ = other.name_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public UniqueClubType Clone() {
|
||||
return new UniqueClubType(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "program" field.</summary>
|
||||
public const int ProgramFieldNumber = 1;
|
||||
private readonly static uint ProgramDefaultValue = 0;
|
||||
|
||||
private uint program_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public uint Program {
|
||||
get { if ((_hasBits0 & 1) != 0) { return program_; } else { return ProgramDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
program_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "program" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasProgram {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "program" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearProgram() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "name" field.</summary>
|
||||
public const int NameFieldNumber = 2;
|
||||
private readonly static string NameDefaultValue = "";
|
||||
|
||||
private string name_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public string Name {
|
||||
get { return name_ ?? NameDefaultValue; }
|
||||
set {
|
||||
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "name" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasName {
|
||||
get { return name_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "name" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearName() {
|
||||
name_ = null;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as UniqueClubType);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool Equals(UniqueClubType other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Program != other.Program) return false;
|
||||
if (Name != other.Name) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasProgram) hash ^= Program.GetHashCode();
|
||||
if (HasName) hash ^= Name.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (HasProgram) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFixed32(Program);
|
||||
}
|
||||
if (HasName) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteString(Name);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasProgram) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasName) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(UniqueClubType other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasProgram) {
|
||||
Program = other.Program;
|
||||
}
|
||||
if (other.HasName) {
|
||||
Name = other.Name;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 13: {
|
||||
Program = input.ReadFixed32();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
Name = input.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,510 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/api/common/v1/event_view_types.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Bgs.Protocol {
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/api/common/v1/event_view_types.proto</summary>
|
||||
public static partial class EventViewTypesReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/api/common/v1/event_view_types.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static EventViewTypesReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjZiZ3MvbG93L3BiL2NsaWVudC9hcGkvY29tbW9uL3YxL2V2ZW50X3ZpZXdf",
|
||||
"dHlwZXMucHJvdG8SDGJncy5wcm90b2NvbCKJAQoPR2V0RXZlbnRPcHRpb25z",
|
||||
"EhIKCmZldGNoX2Zyb20YASABKAQSEwoLZmV0Y2hfdW50aWwYAiABKAQSEgoK",
|
||||
"bWF4X2V2ZW50cxgDIAEoDRI5CgVvcmRlchgEIAEoDjIYLmJncy5wcm90b2Nv",
|
||||
"bC5FdmVudE9yZGVyOhBFVkVOVF9ERVNDRU5ESU5HIj8KClZpZXdNYXJrZXIS",
|
||||
"FgoObGFzdF9yZWFkX3RpbWUYASABKAQSGQoRbGFzdF9tZXNzYWdlX3RpbWUY",
|
||||
"AiABKAQqNwoKRXZlbnRPcmRlchIUChBFVkVOVF9ERVNDRU5ESU5HEAASEwoP",
|
||||
"RVZFTlRfQVNDRU5ESU5HEAE="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Bgs.Protocol.EventOrder), }, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.GetEventOptions), global::Bgs.Protocol.GetEventOptions.Parser, new[]{ "FetchFrom", "FetchUntil", "MaxEvents", "Order" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.ViewMarker), global::Bgs.Protocol.ViewMarker.Parser, new[]{ "LastReadTime", "LastMessageTime" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Enums
|
||||
public enum EventOrder {
|
||||
[pbr::OriginalName("EVENT_DESCENDING")] EventDescending = 0,
|
||||
[pbr::OriginalName("EVENT_ASCENDING")] EventAscending = 1,
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Messages
|
||||
public sealed partial class GetEventOptions : pb::IMessage<GetEventOptions> {
|
||||
private static readonly pb::MessageParser<GetEventOptions> _parser = new pb::MessageParser<GetEventOptions>(() => new GetEventOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pb::MessageParser<GetEventOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Bgs.Protocol.EventViewTypesReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public GetEventOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public GetEventOptions(GetEventOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
fetchFrom_ = other.fetchFrom_;
|
||||
fetchUntil_ = other.fetchUntil_;
|
||||
maxEvents_ = other.maxEvents_;
|
||||
order_ = other.order_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public GetEventOptions Clone() {
|
||||
return new GetEventOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "fetch_from" field.</summary>
|
||||
public const int FetchFromFieldNumber = 1;
|
||||
private readonly static ulong FetchFromDefaultValue = 0UL;
|
||||
|
||||
private ulong fetchFrom_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ulong FetchFrom {
|
||||
get { if ((_hasBits0 & 1) != 0) { return fetchFrom_; } else { return FetchFromDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
fetchFrom_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "fetch_from" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasFetchFrom {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "fetch_from" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearFetchFrom() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "fetch_until" field.</summary>
|
||||
public const int FetchUntilFieldNumber = 2;
|
||||
private readonly static ulong FetchUntilDefaultValue = 0UL;
|
||||
|
||||
private ulong fetchUntil_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ulong FetchUntil {
|
||||
get { if ((_hasBits0 & 2) != 0) { return fetchUntil_; } else { return FetchUntilDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
fetchUntil_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "fetch_until" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasFetchUntil {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "fetch_until" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearFetchUntil() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "max_events" field.</summary>
|
||||
public const int MaxEventsFieldNumber = 3;
|
||||
private readonly static uint MaxEventsDefaultValue = 0;
|
||||
|
||||
private uint maxEvents_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public uint MaxEvents {
|
||||
get { if ((_hasBits0 & 4) != 0) { return maxEvents_; } else { return MaxEventsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
maxEvents_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "max_events" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasMaxEvents {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "max_events" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearMaxEvents() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "order" field.</summary>
|
||||
public const int OrderFieldNumber = 4;
|
||||
private readonly static global::Bgs.Protocol.EventOrder OrderDefaultValue = global::Bgs.Protocol.EventOrder.EventDescending;
|
||||
|
||||
private global::Bgs.Protocol.EventOrder order_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public global::Bgs.Protocol.EventOrder Order {
|
||||
get { if ((_hasBits0 & 8) != 0) { return order_; } else { return OrderDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
order_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "order" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasOrder {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "order" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearOrder() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as GetEventOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool Equals(GetEventOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (FetchFrom != other.FetchFrom) return false;
|
||||
if (FetchUntil != other.FetchUntil) return false;
|
||||
if (MaxEvents != other.MaxEvents) return false;
|
||||
if (Order != other.Order) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasFetchFrom) hash ^= FetchFrom.GetHashCode();
|
||||
if (HasFetchUntil) hash ^= FetchUntil.GetHashCode();
|
||||
if (HasMaxEvents) hash ^= MaxEvents.GetHashCode();
|
||||
if (HasOrder) hash ^= Order.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (HasFetchFrom) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt64(FetchFrom);
|
||||
}
|
||||
if (HasFetchUntil) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteUInt64(FetchUntil);
|
||||
}
|
||||
if (HasMaxEvents) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteUInt32(MaxEvents);
|
||||
}
|
||||
if (HasOrder) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteEnum((int) Order);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasFetchFrom) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(FetchFrom);
|
||||
}
|
||||
if (HasFetchUntil) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(FetchUntil);
|
||||
}
|
||||
if (HasMaxEvents) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxEvents);
|
||||
}
|
||||
if (HasOrder) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Order);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(GetEventOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasFetchFrom) {
|
||||
FetchFrom = other.FetchFrom;
|
||||
}
|
||||
if (other.HasFetchUntil) {
|
||||
FetchUntil = other.FetchUntil;
|
||||
}
|
||||
if (other.HasMaxEvents) {
|
||||
MaxEvents = other.MaxEvents;
|
||||
}
|
||||
if (other.HasOrder) {
|
||||
Order = other.Order;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
FetchFrom = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
FetchUntil = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
MaxEvents = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
Order = (global::Bgs.Protocol.EventOrder) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public sealed partial class ViewMarker : pb::IMessage<ViewMarker> {
|
||||
private static readonly pb::MessageParser<ViewMarker> _parser = new pb::MessageParser<ViewMarker>(() => new ViewMarker());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pb::MessageParser<ViewMarker> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Bgs.Protocol.EventViewTypesReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ViewMarker() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ViewMarker(ViewMarker other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
lastReadTime_ = other.lastReadTime_;
|
||||
lastMessageTime_ = other.lastMessageTime_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ViewMarker Clone() {
|
||||
return new ViewMarker(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "last_read_time" field.</summary>
|
||||
public const int LastReadTimeFieldNumber = 1;
|
||||
private readonly static ulong LastReadTimeDefaultValue = 0UL;
|
||||
|
||||
private ulong lastReadTime_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ulong LastReadTime {
|
||||
get { if ((_hasBits0 & 1) != 0) { return lastReadTime_; } else { return LastReadTimeDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
lastReadTime_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "last_read_time" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasLastReadTime {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "last_read_time" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearLastReadTime() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "last_message_time" field.</summary>
|
||||
public const int LastMessageTimeFieldNumber = 2;
|
||||
private readonly static ulong LastMessageTimeDefaultValue = 0UL;
|
||||
|
||||
private ulong lastMessageTime_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ulong LastMessageTime {
|
||||
get { if ((_hasBits0 & 2) != 0) { return lastMessageTime_; } else { return LastMessageTimeDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
lastMessageTime_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "last_message_time" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasLastMessageTime {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "last_message_time" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearLastMessageTime() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as ViewMarker);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool Equals(ViewMarker other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (LastReadTime != other.LastReadTime) return false;
|
||||
if (LastMessageTime != other.LastMessageTime) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasLastReadTime) hash ^= LastReadTime.GetHashCode();
|
||||
if (HasLastMessageTime) hash ^= LastMessageTime.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (HasLastReadTime) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt64(LastReadTime);
|
||||
}
|
||||
if (HasLastMessageTime) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteUInt64(LastMessageTime);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasLastReadTime) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LastReadTime);
|
||||
}
|
||||
if (HasLastMessageTime) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(LastMessageTime);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(ViewMarker other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasLastReadTime) {
|
||||
LastReadTime = other.LastReadTime;
|
||||
}
|
||||
if (other.HasLastMessageTime) {
|
||||
LastMessageTime = other.LastMessageTime;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
LastReadTime = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
LastMessageTime = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,785 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/api/common/v1/invitation_types.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Bgs.Protocol {
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/api/common/v1/invitation_types.proto</summary>
|
||||
public static partial class InvitationTypesReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/api/common/v1/invitation_types.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static InvitationTypesReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjZiZ3MvbG93L3BiL2NsaWVudC9hcGkvY29tbW9uL3YxL2ludml0YXRpb25f",
|
||||
"dHlwZXMucHJvdG8SDGJncy5wcm90b2NvbBokYmdzL2xvdy9wYi9jbGllbnQv",
|
||||
"ZW50aXR5X3R5cGVzLnByb3RvGjdiZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxf",
|
||||
"ZXh0ZW5zaW9ucy9maWVsZF9vcHRpb25zLnByb3RvIosCCgpJbnZpdGF0aW9u",
|
||||
"EgoKAmlkGAEgAigGEjAKEGludml0ZXJfaWRlbnRpdHkYAiACKAsyFi5iZ3Mu",
|
||||
"cHJvdG9jb2wuSWRlbnRpdHkSMAoQaW52aXRlZV9pZGVudGl0eRgDIAIoCzIW",
|
||||
"LmJncy5wcm90b2NvbC5JZGVudGl0eRIcCgxpbnZpdGVyX25hbWUYBCABKAlC",
|
||||
"BoL5KwIIARIcCgxpbnZpdGVlX25hbWUYBSABKAlCBoL5KwIIARIaChJpbnZp",
|
||||
"dGF0aW9uX21lc3NhZ2UYBiABKAkSFQoNY3JlYXRpb25fdGltZRgHIAEoBBIX",
|
||||
"Cg9leHBpcmF0aW9uX3RpbWUYCCABKAQqBQhkEJFOIlIKEEludml0YXRpb25Q",
|
||||
"YXJhbXMSHgoSaW52aXRhdGlvbl9tZXNzYWdlGAEgASgJQgIYARIXCg9leHBp",
|
||||
"cmF0aW9uX3RpbWUYAiABKAQqBQhkEJFOKoYCChdJbnZpdGF0aW9uUmVtb3Zl",
|
||||
"ZFJlYXNvbhImCiJJTlZJVEFUSU9OX1JFTU9WRURfUkVBU09OX0FDQ0VQVEVE",
|
||||
"EAASJgoiSU5WSVRBVElPTl9SRU1PVkVEX1JFQVNPTl9ERUNMSU5FRBABEiUK",
|
||||
"IUlOVklUQVRJT05fUkVNT1ZFRF9SRUFTT05fUkVWT0tFRBACEiUKIUlOVklU",
|
||||
"QVRJT05fUkVNT1ZFRF9SRUFTT05fSUdOT1JFRBADEiUKIUlOVklUQVRJT05f",
|
||||
"UkVNT1ZFRF9SRUFTT05fRVhQSVJFRBAEEiYKIklOVklUQVRJT05fUkVNT1ZF",
|
||||
"RF9SRUFTT05fQ0FOQ0VMRUQQBSq4AQoXU3VnZ2VzdGlvblJlbW92ZWRSZWFz",
|
||||
"b24SJgoiU1VHR0VTVElPTl9SRU1PVkVEX1JFQVNPTl9BUFBST1ZFRBAAEiYK",
|
||||
"IlNVR0dFU1RJT05fUkVNT1ZFRF9SRUFTT05fREVDTElORUQQARIlCiFTVUdH",
|
||||
"RVNUSU9OX1JFTU9WRURfUkVBU09OX0VYUElSRUQQAhImCiJTVUdHRVNUSU9O",
|
||||
"X1JFTU9WRURfUkVBU09OX0NBTkNFTEVEEANCJAoMYmdzLnByb3RvY29sQhRJ",
|
||||
"bnZpdGF0aW9uVHlwZXNQcm90bw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Bgs.Protocol.EntityTypesReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Bgs.Protocol.InvitationRemovedReason), typeof(global::Bgs.Protocol.SuggestionRemovedReason), }, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Invitation), global::Bgs.Protocol.Invitation.Parser, new[]{ "Id", "InviterIdentity", "InviteeIdentity", "InviterName", "InviteeName", "InvitationMessage", "CreationTime", "ExpirationTime" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.InvitationParams), global::Bgs.Protocol.InvitationParams.Parser, new[]{ "InvitationMessage", "ExpirationTime" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Enums
|
||||
public enum InvitationRemovedReason {
|
||||
[pbr::OriginalName("INVITATION_REMOVED_REASON_ACCEPTED")] Accepted = 0,
|
||||
[pbr::OriginalName("INVITATION_REMOVED_REASON_DECLINED")] Declined = 1,
|
||||
[pbr::OriginalName("INVITATION_REMOVED_REASON_REVOKED")] Revoked = 2,
|
||||
[pbr::OriginalName("INVITATION_REMOVED_REASON_IGNORED")] Ignored = 3,
|
||||
[pbr::OriginalName("INVITATION_REMOVED_REASON_EXPIRED")] Expired = 4,
|
||||
[pbr::OriginalName("INVITATION_REMOVED_REASON_CANCELED")] Canceled = 5,
|
||||
}
|
||||
|
||||
public enum SuggestionRemovedReason {
|
||||
[pbr::OriginalName("SUGGESTION_REMOVED_REASON_APPROVED")] Approved = 0,
|
||||
[pbr::OriginalName("SUGGESTION_REMOVED_REASON_DECLINED")] Declined = 1,
|
||||
[pbr::OriginalName("SUGGESTION_REMOVED_REASON_EXPIRED")] Expired = 2,
|
||||
[pbr::OriginalName("SUGGESTION_REMOVED_REASON_CANCELED")] Canceled = 3,
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Messages
|
||||
public sealed partial class Invitation : pb::IExtendableMessage<Invitation> {
|
||||
private static readonly pb::MessageParser<Invitation> _parser = new pb::MessageParser<Invitation>(() => new Invitation());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private pb::ExtensionSet<Invitation> _extensions;
|
||||
private pb::ExtensionSet<Invitation> _Extensions => _extensions;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pb::MessageParser<Invitation> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Bgs.Protocol.InvitationTypesReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public Invitation() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public Invitation(Invitation other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
id_ = other.id_;
|
||||
inviterIdentity_ = other.HasInviterIdentity ? other.inviterIdentity_.Clone() : null;
|
||||
inviteeIdentity_ = other.HasInviteeIdentity ? other.inviteeIdentity_.Clone() : null;
|
||||
inviterName_ = other.inviterName_;
|
||||
inviteeName_ = other.inviteeName_;
|
||||
invitationMessage_ = other.invitationMessage_;
|
||||
creationTime_ = other.creationTime_;
|
||||
expirationTime_ = other.expirationTime_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
_extensions = pb::ExtensionSet.Clone(other._extensions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public Invitation Clone() {
|
||||
return new Invitation(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "id" field.</summary>
|
||||
public const int IdFieldNumber = 1;
|
||||
private readonly static ulong IdDefaultValue = 0UL;
|
||||
|
||||
private ulong id_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ulong Id {
|
||||
get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
id_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "id" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasId {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "id" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearId() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "inviter_identity" field.</summary>
|
||||
public const int InviterIdentityFieldNumber = 2;
|
||||
private global::Bgs.Protocol.Identity inviterIdentity_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public global::Bgs.Protocol.Identity InviterIdentity {
|
||||
get { return inviterIdentity_; }
|
||||
set {
|
||||
inviterIdentity_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the inviter_identity field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasInviterIdentity {
|
||||
get { return inviterIdentity_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the inviter_identity field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearInviterIdentity() {
|
||||
inviterIdentity_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "invitee_identity" field.</summary>
|
||||
public const int InviteeIdentityFieldNumber = 3;
|
||||
private global::Bgs.Protocol.Identity inviteeIdentity_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public global::Bgs.Protocol.Identity InviteeIdentity {
|
||||
get { return inviteeIdentity_; }
|
||||
set {
|
||||
inviteeIdentity_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the invitee_identity field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasInviteeIdentity {
|
||||
get { return inviteeIdentity_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the invitee_identity field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearInviteeIdentity() {
|
||||
inviteeIdentity_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "inviter_name" field.</summary>
|
||||
public const int InviterNameFieldNumber = 4;
|
||||
private readonly static string InviterNameDefaultValue = "";
|
||||
|
||||
private string inviterName_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public string InviterName {
|
||||
get { return inviterName_ ?? InviterNameDefaultValue; }
|
||||
set {
|
||||
inviterName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "inviter_name" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasInviterName {
|
||||
get { return inviterName_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "inviter_name" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearInviterName() {
|
||||
inviterName_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "invitee_name" field.</summary>
|
||||
public const int InviteeNameFieldNumber = 5;
|
||||
private readonly static string InviteeNameDefaultValue = "";
|
||||
|
||||
private string inviteeName_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public string InviteeName {
|
||||
get { return inviteeName_ ?? InviteeNameDefaultValue; }
|
||||
set {
|
||||
inviteeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "invitee_name" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasInviteeName {
|
||||
get { return inviteeName_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "invitee_name" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearInviteeName() {
|
||||
inviteeName_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "invitation_message" field.</summary>
|
||||
public const int InvitationMessageFieldNumber = 6;
|
||||
private readonly static string InvitationMessageDefaultValue = "";
|
||||
|
||||
private string invitationMessage_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public string InvitationMessage {
|
||||
get { return invitationMessage_ ?? InvitationMessageDefaultValue; }
|
||||
set {
|
||||
invitationMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "invitation_message" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasInvitationMessage {
|
||||
get { return invitationMessage_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "invitation_message" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearInvitationMessage() {
|
||||
invitationMessage_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "creation_time" field.</summary>
|
||||
public const int CreationTimeFieldNumber = 7;
|
||||
private readonly static ulong CreationTimeDefaultValue = 0UL;
|
||||
|
||||
private ulong creationTime_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ulong CreationTime {
|
||||
get { if ((_hasBits0 & 2) != 0) { return creationTime_; } else { return CreationTimeDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
creationTime_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "creation_time" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasCreationTime {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "creation_time" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearCreationTime() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "expiration_time" field.</summary>
|
||||
public const int ExpirationTimeFieldNumber = 8;
|
||||
private readonly static ulong ExpirationTimeDefaultValue = 0UL;
|
||||
|
||||
private ulong expirationTime_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ulong ExpirationTime {
|
||||
get { if ((_hasBits0 & 4) != 0) { return expirationTime_; } else { return ExpirationTimeDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
expirationTime_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "expiration_time" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasExpirationTime {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "expiration_time" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearExpirationTime() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as Invitation);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool Equals(Invitation other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Id != other.Id) return false;
|
||||
if (!object.Equals(InviterIdentity, other.InviterIdentity)) return false;
|
||||
if (!object.Equals(InviteeIdentity, other.InviteeIdentity)) return false;
|
||||
if (InviterName != other.InviterName) return false;
|
||||
if (InviteeName != other.InviteeName) return false;
|
||||
if (InvitationMessage != other.InvitationMessage) return false;
|
||||
if (CreationTime != other.CreationTime) return false;
|
||||
if (ExpirationTime != other.ExpirationTime) return false;
|
||||
if (!Equals(_extensions, other._extensions)) {
|
||||
return false;
|
||||
}
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasId) hash ^= Id.GetHashCode();
|
||||
if (HasInviterIdentity) hash ^= InviterIdentity.GetHashCode();
|
||||
if (HasInviteeIdentity) hash ^= InviteeIdentity.GetHashCode();
|
||||
if (HasInviterName) hash ^= InviterName.GetHashCode();
|
||||
if (HasInviteeName) hash ^= InviteeName.GetHashCode();
|
||||
if (HasInvitationMessage) hash ^= InvitationMessage.GetHashCode();
|
||||
if (HasCreationTime) hash ^= CreationTime.GetHashCode();
|
||||
if (HasExpirationTime) hash ^= ExpirationTime.GetHashCode();
|
||||
if (_extensions != null) {
|
||||
hash ^= _extensions.GetHashCode();
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (HasId) {
|
||||
output.WriteRawTag(9);
|
||||
output.WriteFixed64(Id);
|
||||
}
|
||||
if (HasInviterIdentity) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(InviterIdentity);
|
||||
}
|
||||
if (HasInviteeIdentity) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteMessage(InviteeIdentity);
|
||||
}
|
||||
if (HasInviterName) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteString(InviterName);
|
||||
}
|
||||
if (HasInviteeName) {
|
||||
output.WriteRawTag(42);
|
||||
output.WriteString(InviteeName);
|
||||
}
|
||||
if (HasInvitationMessage) {
|
||||
output.WriteRawTag(50);
|
||||
output.WriteString(InvitationMessage);
|
||||
}
|
||||
if (HasCreationTime) {
|
||||
output.WriteRawTag(56);
|
||||
output.WriteUInt64(CreationTime);
|
||||
}
|
||||
if (HasExpirationTime) {
|
||||
output.WriteRawTag(64);
|
||||
output.WriteUInt64(ExpirationTime);
|
||||
}
|
||||
if (_extensions != null) {
|
||||
_extensions.WriteTo(output);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasId) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (HasInviterIdentity) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(InviterIdentity);
|
||||
}
|
||||
if (HasInviteeIdentity) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(InviteeIdentity);
|
||||
}
|
||||
if (HasInviterName) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(InviterName);
|
||||
}
|
||||
if (HasInviteeName) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(InviteeName);
|
||||
}
|
||||
if (HasInvitationMessage) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(InvitationMessage);
|
||||
}
|
||||
if (HasCreationTime) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(CreationTime);
|
||||
}
|
||||
if (HasExpirationTime) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ExpirationTime);
|
||||
}
|
||||
if (_extensions != null) {
|
||||
size += _extensions.CalculateSize();
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(Invitation other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasId) {
|
||||
Id = other.Id;
|
||||
}
|
||||
if (other.HasInviterIdentity) {
|
||||
if (!HasInviterIdentity) {
|
||||
InviterIdentity = new global::Bgs.Protocol.Identity();
|
||||
}
|
||||
InviterIdentity.MergeFrom(other.InviterIdentity);
|
||||
}
|
||||
if (other.HasInviteeIdentity) {
|
||||
if (!HasInviteeIdentity) {
|
||||
InviteeIdentity = new global::Bgs.Protocol.Identity();
|
||||
}
|
||||
InviteeIdentity.MergeFrom(other.InviteeIdentity);
|
||||
}
|
||||
if (other.HasInviterName) {
|
||||
InviterName = other.InviterName;
|
||||
}
|
||||
if (other.HasInviteeName) {
|
||||
InviteeName = other.InviteeName;
|
||||
}
|
||||
if (other.HasInvitationMessage) {
|
||||
InvitationMessage = other.InvitationMessage;
|
||||
}
|
||||
if (other.HasCreationTime) {
|
||||
CreationTime = other.CreationTime;
|
||||
}
|
||||
if (other.HasExpirationTime) {
|
||||
ExpirationTime = other.ExpirationTime;
|
||||
}
|
||||
pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
}
|
||||
break;
|
||||
case 9: {
|
||||
Id = input.ReadFixed64();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (!HasInviterIdentity) {
|
||||
InviterIdentity = new global::Bgs.Protocol.Identity();
|
||||
}
|
||||
input.ReadMessage(InviterIdentity);
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
if (!HasInviteeIdentity) {
|
||||
InviteeIdentity = new global::Bgs.Protocol.Identity();
|
||||
}
|
||||
input.ReadMessage(InviteeIdentity);
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
InviterName = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 42: {
|
||||
InviteeName = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 50: {
|
||||
InvitationMessage = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 56: {
|
||||
CreationTime = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
case 64: {
|
||||
ExpirationTime = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public TValue GetExtension<TValue>(pb::Extension<Invitation, TValue> extension) {
|
||||
return pb::ExtensionSet.Get(ref _extensions, extension);
|
||||
}
|
||||
public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<Invitation, TValue> extension) {
|
||||
return pb::ExtensionSet.Get(ref _extensions, extension);
|
||||
}
|
||||
public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<Invitation, TValue> extension) {
|
||||
return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
|
||||
}
|
||||
public void SetExtension<TValue>(pb::Extension<Invitation, TValue> extension, TValue value) {
|
||||
pb::ExtensionSet.Set(ref _extensions, extension, value);
|
||||
}
|
||||
public bool HasExtension<TValue>(pb::Extension<Invitation, TValue> extension) {
|
||||
return pb::ExtensionSet.Has(ref _extensions, extension);
|
||||
}
|
||||
public void ClearExtension<TValue>(pb::Extension<Invitation, TValue> extension) {
|
||||
pb::ExtensionSet.Clear(ref _extensions, extension);
|
||||
}
|
||||
public void ClearExtension<TValue>(pb::RepeatedExtension<Invitation, TValue> extension) {
|
||||
pb::ExtensionSet.Clear(ref _extensions, extension);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public sealed partial class InvitationParams : pb::IExtendableMessage<InvitationParams> {
|
||||
private static readonly pb::MessageParser<InvitationParams> _parser = new pb::MessageParser<InvitationParams>(() => new InvitationParams());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private pb::ExtensionSet<InvitationParams> _extensions;
|
||||
private pb::ExtensionSet<InvitationParams> _Extensions => _extensions;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pb::MessageParser<InvitationParams> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Bgs.Protocol.InvitationTypesReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public InvitationParams() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public InvitationParams(InvitationParams other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
invitationMessage_ = other.invitationMessage_;
|
||||
expirationTime_ = other.expirationTime_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
_extensions = pb::ExtensionSet.Clone(other._extensions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public InvitationParams Clone() {
|
||||
return new InvitationParams(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "invitation_message" field.</summary>
|
||||
public const int InvitationMessageFieldNumber = 1;
|
||||
private readonly static string InvitationMessageDefaultValue = "";
|
||||
|
||||
private string invitationMessage_;
|
||||
[global::System.ObsoleteAttribute]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public string InvitationMessage {
|
||||
get { return invitationMessage_ ?? InvitationMessageDefaultValue; }
|
||||
set {
|
||||
invitationMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "invitation_message" field is set</summary>
|
||||
[global::System.ObsoleteAttribute]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasInvitationMessage {
|
||||
get { return invitationMessage_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "invitation_message" field</summary>
|
||||
[global::System.ObsoleteAttribute]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearInvitationMessage() {
|
||||
invitationMessage_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "expiration_time" field.</summary>
|
||||
public const int ExpirationTimeFieldNumber = 2;
|
||||
private readonly static ulong ExpirationTimeDefaultValue = 0UL;
|
||||
|
||||
private ulong expirationTime_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ulong ExpirationTime {
|
||||
get { if ((_hasBits0 & 1) != 0) { return expirationTime_; } else { return ExpirationTimeDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
expirationTime_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "expiration_time" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasExpirationTime {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "expiration_time" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearExpirationTime() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as InvitationParams);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool Equals(InvitationParams other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (InvitationMessage != other.InvitationMessage) return false;
|
||||
if (ExpirationTime != other.ExpirationTime) return false;
|
||||
if (!Equals(_extensions, other._extensions)) {
|
||||
return false;
|
||||
}
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasInvitationMessage) hash ^= InvitationMessage.GetHashCode();
|
||||
if (HasExpirationTime) hash ^= ExpirationTime.GetHashCode();
|
||||
if (_extensions != null) {
|
||||
hash ^= _extensions.GetHashCode();
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (HasInvitationMessage) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(InvitationMessage);
|
||||
}
|
||||
if (HasExpirationTime) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteUInt64(ExpirationTime);
|
||||
}
|
||||
if (_extensions != null) {
|
||||
_extensions.WriteTo(output);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasInvitationMessage) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(InvitationMessage);
|
||||
}
|
||||
if (HasExpirationTime) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ExpirationTime);
|
||||
}
|
||||
if (_extensions != null) {
|
||||
size += _extensions.CalculateSize();
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(InvitationParams other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasInvitationMessage) {
|
||||
InvitationMessage = other.InvitationMessage;
|
||||
}
|
||||
if (other.HasExpirationTime) {
|
||||
ExpirationTime = other.ExpirationTime;
|
||||
}
|
||||
pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
}
|
||||
break;
|
||||
case 10: {
|
||||
InvitationMessage = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
ExpirationTime = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public TValue GetExtension<TValue>(pb::Extension<InvitationParams, TValue> extension) {
|
||||
return pb::ExtensionSet.Get(ref _extensions, extension);
|
||||
}
|
||||
public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<InvitationParams, TValue> extension) {
|
||||
return pb::ExtensionSet.Get(ref _extensions, extension);
|
||||
}
|
||||
public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<InvitationParams, TValue> extension) {
|
||||
return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
|
||||
}
|
||||
public void SetExtension<TValue>(pb::Extension<InvitationParams, TValue> extension, TValue value) {
|
||||
pb::ExtensionSet.Set(ref _extensions, extension, value);
|
||||
}
|
||||
public bool HasExtension<TValue>(pb::Extension<InvitationParams, TValue> extension) {
|
||||
return pb::ExtensionSet.Has(ref _extensions, extension);
|
||||
}
|
||||
public void ClearExtension<TValue>(pb::Extension<InvitationParams, TValue> extension) {
|
||||
pb::ExtensionSet.Clear(ref _extensions, extension);
|
||||
}
|
||||
public void ClearExtension<TValue>(pb::RepeatedExtension<InvitationParams, TValue> extension) {
|
||||
pb::ExtensionSet.Clear(ref _extensions, extension);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,245 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/api/common/v1/message_types.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Bgs.Protocol {
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/api/common/v1/message_types.proto</summary>
|
||||
public static partial class MessageTypesReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/api/common/v1/message_types.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static MessageTypesReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjNiZ3MvbG93L3BiL2NsaWVudC9hcGkvY29tbW9uL3YxL21lc3NhZ2VfdHlw",
|
||||
"ZXMucHJvdG8SDGJncy5wcm90b2NvbCIsCglNZXNzYWdlSWQSDQoFZXBvY2gY",
|
||||
"ASABKAQSEAoIcG9zaXRpb24YAiABKAQqNAoPVHlwaW5nSW5kaWNhdG9yEhAK",
|
||||
"DFRZUElOR19TVEFSVBAAEg8KC1RZUElOR19TVE9QEAEqRQoNTWVzc2FnZU9y",
|
||||
"aWdpbhIZChVNRVNTQUdFX09SSUdJTl9QTEFZRVIQABIZChVNRVNTQUdFX09S",
|
||||
"SUdJTl9TWVNURU0QAQ=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Bgs.Protocol.TypingIndicator), typeof(global::Bgs.Protocol.MessageOrigin), }, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.MessageId), global::Bgs.Protocol.MessageId.Parser, new[]{ "Epoch", "Position" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Enums
|
||||
public enum TypingIndicator {
|
||||
[pbr::OriginalName("TYPING_START")] TypingStart = 0,
|
||||
[pbr::OriginalName("TYPING_STOP")] TypingStop = 1,
|
||||
}
|
||||
|
||||
public enum MessageOrigin {
|
||||
[pbr::OriginalName("MESSAGE_ORIGIN_PLAYER")] Player = 0,
|
||||
[pbr::OriginalName("MESSAGE_ORIGIN_SYSTEM")] System = 1,
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Messages
|
||||
public sealed partial class MessageId : pb::IMessage<MessageId> {
|
||||
private static readonly pb::MessageParser<MessageId> _parser = new pb::MessageParser<MessageId>(() => new MessageId());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pb::MessageParser<MessageId> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Bgs.Protocol.MessageTypesReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public MessageId() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public MessageId(MessageId other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
epoch_ = other.epoch_;
|
||||
position_ = other.position_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public MessageId Clone() {
|
||||
return new MessageId(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "epoch" field.</summary>
|
||||
public const int EpochFieldNumber = 1;
|
||||
private readonly static ulong EpochDefaultValue = 0UL;
|
||||
|
||||
private ulong epoch_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ulong Epoch {
|
||||
get { if ((_hasBits0 & 1) != 0) { return epoch_; } else { return EpochDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
epoch_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "epoch" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasEpoch {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "epoch" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearEpoch() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "position" field.</summary>
|
||||
public const int PositionFieldNumber = 2;
|
||||
private readonly static ulong PositionDefaultValue = 0UL;
|
||||
|
||||
private ulong position_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ulong Position {
|
||||
get { if ((_hasBits0 & 2) != 0) { return position_; } else { return PositionDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
position_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "position" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasPosition {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "position" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearPosition() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as MessageId);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool Equals(MessageId other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Epoch != other.Epoch) return false;
|
||||
if (Position != other.Position) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasEpoch) hash ^= Epoch.GetHashCode();
|
||||
if (HasPosition) hash ^= Position.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (HasEpoch) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt64(Epoch);
|
||||
}
|
||||
if (HasPosition) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteUInt64(Position);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasEpoch) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Epoch);
|
||||
}
|
||||
if (HasPosition) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Position);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(MessageId other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasEpoch) {
|
||||
Epoch = other.Epoch;
|
||||
}
|
||||
if (other.HasPosition) {
|
||||
Position = other.Position;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
Epoch = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
Position = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,384 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/api/common/v1/voice_types.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Bgs.Protocol.Voice.V1 {
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/api/common/v1/voice_types.proto</summary>
|
||||
public static partial class VoiceTypesReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/api/common/v1/voice_types.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static VoiceTypesReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjFiZ3MvbG93L3BiL2NsaWVudC9hcGkvY29tbW9uL3YxL3ZvaWNlX3R5cGVz",
|
||||
"LnByb3RvEhViZ3MucHJvdG9jb2wudm9pY2UudjEaIWJncy9sb3cvcGIvY2xp",
|
||||
"ZW50L3JwY190eXBlcy5wcm90bxo3YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFs",
|
||||
"X2V4dGVuc2lvbnMvZmllbGRfb3B0aW9ucy5wcm90bxo5YmdzL2xvdy9wYi9j",
|
||||
"bGllbnQvZ2xvYmFsX2V4dGVuc2lvbnMvbWVzc2FnZV9vcHRpb25zLnByb3Rv",
|
||||
"GjhiZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXRob2Rf",
|
||||
"b3B0aW9ucy5wcm90bxo5YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVu",
|
||||
"c2lvbnMvc2VydmljZV9vcHRpb25zLnByb3RvIpwBChBWb2ljZUNyZWRlbnRp",
|
||||
"YWxzEhgKEHZvaWNlX2FjY291bnRfaWQYASABKAkSDQoFdG9rZW4YAiABKAkS",
|
||||
"CwoDdXJsGAMgASgJEiYKCWpvaW5fdHlwZRgEIAEoDUITgvkrDyoNVm9pY2VK",
|
||||
"b2luVHlwZRIqCgttdXRlX3JlYXNvbhgFIAEoDUIVgvkrESoPVm9pY2VNdXRl",
|
||||
"UmVhc29uKjwKDVZvaWNlSm9pblR5cGUSFQoRVk9JQ0VfSk9JTl9OT1JNQUwQ",
|
||||
"ABIUChBWT0lDRV9KT0lOX01VVEVEEAEqowEKD1ZvaWNlTXV0ZVJlYXNvbhIa",
|
||||
"ChZWT0lDRV9NVVRFX1JFQVNPTl9OT05FEAASMgouVk9JQ0VfTVVURV9SRUFT",
|
||||
"T05fUEFSRU5UQUxfQ09OVFJPTF9MSVNURU5fT05MWRABEh8KG1ZPSUNFX01V",
|
||||
"VEVfUkVBU09OX1JFUVVFU1RFRBACEh8KG1ZPSUNFX01VVEVfUkVBU09OX1NR",
|
||||
"VUVMQ0hFRBADKkQKFFZvaWNlUHJvdmlkZXJWZXJzaW9uEhUKEVZPSUNFX1BS",
|
||||
"T1ZJREVSX1Y0EAASFQoRVk9JQ0VfUFJPVklERVJfVjUQAQ=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Bgs.Protocol.Voice.V1.VoiceJoinType), typeof(global::Bgs.Protocol.Voice.V1.VoiceMuteReason), typeof(global::Bgs.Protocol.Voice.V1.VoiceProviderVersion), }, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Voice.V1.VoiceCredentials), global::Bgs.Protocol.Voice.V1.VoiceCredentials.Parser, new[]{ "VoiceAccountId", "Token", "Url", "JoinType", "MuteReason" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Enums
|
||||
public enum VoiceJoinType {
|
||||
[pbr::OriginalName("VOICE_JOIN_NORMAL")] VoiceJoinNormal = 0,
|
||||
[pbr::OriginalName("VOICE_JOIN_MUTED")] VoiceJoinMuted = 1,
|
||||
}
|
||||
|
||||
public enum VoiceMuteReason {
|
||||
[pbr::OriginalName("VOICE_MUTE_REASON_NONE")] None = 0,
|
||||
[pbr::OriginalName("VOICE_MUTE_REASON_PARENTAL_CONTROL_LISTEN_ONLY")] ParentalControlListenOnly = 1,
|
||||
[pbr::OriginalName("VOICE_MUTE_REASON_REQUESTED")] Requested = 2,
|
||||
[pbr::OriginalName("VOICE_MUTE_REASON_SQUELCHED")] Squelched = 3,
|
||||
}
|
||||
|
||||
public enum VoiceProviderVersion {
|
||||
[pbr::OriginalName("VOICE_PROVIDER_V4")] VoiceProviderV4 = 0,
|
||||
[pbr::OriginalName("VOICE_PROVIDER_V5")] VoiceProviderV5 = 1,
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Messages
|
||||
public sealed partial class VoiceCredentials : pb::IMessage<VoiceCredentials> {
|
||||
private static readonly pb::MessageParser<VoiceCredentials> _parser = new pb::MessageParser<VoiceCredentials>(() => new VoiceCredentials());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pb::MessageParser<VoiceCredentials> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Bgs.Protocol.Voice.V1.VoiceTypesReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public VoiceCredentials() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public VoiceCredentials(VoiceCredentials other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
voiceAccountId_ = other.voiceAccountId_;
|
||||
token_ = other.token_;
|
||||
url_ = other.url_;
|
||||
joinType_ = other.joinType_;
|
||||
muteReason_ = other.muteReason_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public VoiceCredentials Clone() {
|
||||
return new VoiceCredentials(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "voice_account_id" field.</summary>
|
||||
public const int VoiceAccountIdFieldNumber = 1;
|
||||
private readonly static string VoiceAccountIdDefaultValue = "";
|
||||
|
||||
private string voiceAccountId_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public string VoiceAccountId {
|
||||
get { return voiceAccountId_ ?? VoiceAccountIdDefaultValue; }
|
||||
set {
|
||||
voiceAccountId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "voice_account_id" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasVoiceAccountId {
|
||||
get { return voiceAccountId_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "voice_account_id" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearVoiceAccountId() {
|
||||
voiceAccountId_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "token" field.</summary>
|
||||
public const int TokenFieldNumber = 2;
|
||||
private readonly static string TokenDefaultValue = "";
|
||||
|
||||
private string token_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public string Token {
|
||||
get { return token_ ?? TokenDefaultValue; }
|
||||
set {
|
||||
token_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "token" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasToken {
|
||||
get { return token_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "token" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearToken() {
|
||||
token_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "url" field.</summary>
|
||||
public const int UrlFieldNumber = 3;
|
||||
private readonly static string UrlDefaultValue = "";
|
||||
|
||||
private string url_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public string Url {
|
||||
get { return url_ ?? UrlDefaultValue; }
|
||||
set {
|
||||
url_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "url" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasUrl {
|
||||
get { return url_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "url" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearUrl() {
|
||||
url_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "join_type" field.</summary>
|
||||
public const int JoinTypeFieldNumber = 4;
|
||||
private readonly static uint JoinTypeDefaultValue = 0;
|
||||
|
||||
private uint joinType_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public uint JoinType {
|
||||
get { if ((_hasBits0 & 1) != 0) { return joinType_; } else { return JoinTypeDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
joinType_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "join_type" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasJoinType {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "join_type" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearJoinType() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "mute_reason" field.</summary>
|
||||
public const int MuteReasonFieldNumber = 5;
|
||||
private readonly static uint MuteReasonDefaultValue = 0;
|
||||
|
||||
private uint muteReason_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public uint MuteReason {
|
||||
get { if ((_hasBits0 & 2) != 0) { return muteReason_; } else { return MuteReasonDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
muteReason_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "mute_reason" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasMuteReason {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "mute_reason" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearMuteReason() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as VoiceCredentials);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool Equals(VoiceCredentials other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (VoiceAccountId != other.VoiceAccountId) return false;
|
||||
if (Token != other.Token) return false;
|
||||
if (Url != other.Url) return false;
|
||||
if (JoinType != other.JoinType) return false;
|
||||
if (MuteReason != other.MuteReason) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasVoiceAccountId) hash ^= VoiceAccountId.GetHashCode();
|
||||
if (HasToken) hash ^= Token.GetHashCode();
|
||||
if (HasUrl) hash ^= Url.GetHashCode();
|
||||
if (HasJoinType) hash ^= JoinType.GetHashCode();
|
||||
if (HasMuteReason) hash ^= MuteReason.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (HasVoiceAccountId) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(VoiceAccountId);
|
||||
}
|
||||
if (HasToken) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteString(Token);
|
||||
}
|
||||
if (HasUrl) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteString(Url);
|
||||
}
|
||||
if (HasJoinType) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteUInt32(JoinType);
|
||||
}
|
||||
if (HasMuteReason) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteUInt32(MuteReason);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasVoiceAccountId) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(VoiceAccountId);
|
||||
}
|
||||
if (HasToken) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Token);
|
||||
}
|
||||
if (HasUrl) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Url);
|
||||
}
|
||||
if (HasJoinType) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(JoinType);
|
||||
}
|
||||
if (HasMuteReason) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MuteReason);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(VoiceCredentials other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasVoiceAccountId) {
|
||||
VoiceAccountId = other.VoiceAccountId;
|
||||
}
|
||||
if (other.HasToken) {
|
||||
Token = other.Token;
|
||||
}
|
||||
if (other.HasUrl) {
|
||||
Url = other.Url;
|
||||
}
|
||||
if (other.HasJoinType) {
|
||||
JoinType = other.JoinType;
|
||||
}
|
||||
if (other.HasMuteReason) {
|
||||
MuteReason = other.MuteReason;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 10: {
|
||||
VoiceAccountId = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
Token = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
Url = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
JoinType = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
MuteReason = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,804 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/api/common/v2/attribute_types.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Bgs.Protocol.V2 {
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/api/common/v2/attribute_types.proto</summary>
|
||||
public static partial class AttributeTypesReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/api/common/v2/attribute_types.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static AttributeTypesReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjViZ3MvbG93L3BiL2NsaWVudC9hcGkvY29tbW9uL3YyL2F0dHJpYnV0ZV90",
|
||||
"eXBlcy5wcm90bxIPYmdzLnByb3RvY29sLnYyIpcBCgdWYXJpYW50EhQKCmJv",
|
||||
"b2xfdmFsdWUYASABKAhIABITCglpbnRfdmFsdWUYAiABKANIABIVCgtmbG9h",
|
||||
"dF92YWx1ZRgDIAEoAUgAEhYKDHN0cmluZ192YWx1ZRgEIAEoCUgAEhQKCmJs",
|
||||
"b2JfdmFsdWUYBSABKAxIABIUCgp1aW50X3ZhbHVlGAYgASgESABCBgoEdHlw",
|
||||
"ZSJCCglBdHRyaWJ1dGUSDAoEbmFtZRgBIAEoCRInCgV2YWx1ZRgCIAEoCzIY",
|
||||
"LmJncy5wcm90b2NvbC52Mi5WYXJpYW50ItwBCg9BdHRyaWJ1dGVGaWx0ZXIS",
|
||||
"QgoCb3AYASABKA4yKi5iZ3MucHJvdG9jb2wudjIuQXR0cmlidXRlRmlsdGVy",
|
||||
"Lk9wZXJhdGlvbjoKTUFUQ0hfTk9ORRItCglhdHRyaWJ1dGUYAiADKAsyGi5i",
|
||||
"Z3MucHJvdG9jb2wudjIuQXR0cmlidXRlIlYKCU9wZXJhdGlvbhIOCgpNQVRD",
|
||||
"SF9OT05FEAASDQoJTUFUQ0hfQU5ZEAESDQoJTUFUQ0hfQUxMEAISGwoXTUFU",
|
||||
"Q0hfQUxMX01PU1RfU1BFQ0lGSUMQAw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.V2.Variant), global::Bgs.Protocol.V2.Variant.Parser, new[]{ "BoolValue", "IntValue", "FloatValue", "StringValue", "BlobValue", "UintValue" }, new[]{ "Type" }, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.V2.Attribute), global::Bgs.Protocol.V2.Attribute.Parser, new[]{ "Name", "Value" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.V2.AttributeFilter), global::Bgs.Protocol.V2.AttributeFilter.Parser, new[]{ "Op", "Attribute" }, null, new[]{ typeof(global::Bgs.Protocol.V2.AttributeFilter.Types.Operation) }, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class Variant : pb::IMessage<Variant> {
|
||||
private static readonly pb::MessageParser<Variant> _parser = new pb::MessageParser<Variant>(() => new Variant());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pb::MessageParser<Variant> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Bgs.Protocol.V2.AttributeTypesReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public Variant() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public Variant(Variant other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
switch (other.TypeCase) {
|
||||
case TypeOneofCase.BoolValue:
|
||||
BoolValue = other.BoolValue;
|
||||
break;
|
||||
case TypeOneofCase.IntValue:
|
||||
IntValue = other.IntValue;
|
||||
break;
|
||||
case TypeOneofCase.FloatValue:
|
||||
FloatValue = other.FloatValue;
|
||||
break;
|
||||
case TypeOneofCase.StringValue:
|
||||
StringValue = other.StringValue;
|
||||
break;
|
||||
case TypeOneofCase.BlobValue:
|
||||
BlobValue = other.BlobValue;
|
||||
break;
|
||||
case TypeOneofCase.UintValue:
|
||||
UintValue = other.UintValue;
|
||||
break;
|
||||
}
|
||||
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public Variant Clone() {
|
||||
return new Variant(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "bool_value" field.</summary>
|
||||
public const int BoolValueFieldNumber = 1;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool BoolValue {
|
||||
get { return HasBoolValue ? (bool) type_ : false; }
|
||||
set {
|
||||
type_ = value;
|
||||
typeCase_ = TypeOneofCase.BoolValue;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "bool_value" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasBoolValue {
|
||||
get { return typeCase_ == TypeOneofCase.BoolValue; }
|
||||
}
|
||||
/// <summary> Clears the value of the oneof if it's currently set to "bool_value" </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearBoolValue() {
|
||||
if (HasBoolValue) {
|
||||
ClearType();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "int_value" field.</summary>
|
||||
public const int IntValueFieldNumber = 2;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public long IntValue {
|
||||
get { return HasIntValue ? (long) type_ : 0L; }
|
||||
set {
|
||||
type_ = value;
|
||||
typeCase_ = TypeOneofCase.IntValue;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "int_value" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasIntValue {
|
||||
get { return typeCase_ == TypeOneofCase.IntValue; }
|
||||
}
|
||||
/// <summary> Clears the value of the oneof if it's currently set to "int_value" </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearIntValue() {
|
||||
if (HasIntValue) {
|
||||
ClearType();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "float_value" field.</summary>
|
||||
public const int FloatValueFieldNumber = 3;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public double FloatValue {
|
||||
get { return HasFloatValue ? (double) type_ : 0D; }
|
||||
set {
|
||||
type_ = value;
|
||||
typeCase_ = TypeOneofCase.FloatValue;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "float_value" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasFloatValue {
|
||||
get { return typeCase_ == TypeOneofCase.FloatValue; }
|
||||
}
|
||||
/// <summary> Clears the value of the oneof if it's currently set to "float_value" </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearFloatValue() {
|
||||
if (HasFloatValue) {
|
||||
ClearType();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "string_value" field.</summary>
|
||||
public const int StringValueFieldNumber = 4;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public string StringValue {
|
||||
get { return HasStringValue ? (string) type_ : ""; }
|
||||
set {
|
||||
type_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
typeCase_ = TypeOneofCase.StringValue;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "string_value" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasStringValue {
|
||||
get { return typeCase_ == TypeOneofCase.StringValue; }
|
||||
}
|
||||
/// <summary> Clears the value of the oneof if it's currently set to "string_value" </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearStringValue() {
|
||||
if (HasStringValue) {
|
||||
ClearType();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "blob_value" field.</summary>
|
||||
public const int BlobValueFieldNumber = 5;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public pb::ByteString BlobValue {
|
||||
get { return HasBlobValue ? (pb::ByteString) type_ : pb::ByteString.Empty; }
|
||||
set {
|
||||
type_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
typeCase_ = TypeOneofCase.BlobValue;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "blob_value" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasBlobValue {
|
||||
get { return typeCase_ == TypeOneofCase.BlobValue; }
|
||||
}
|
||||
/// <summary> Clears the value of the oneof if it's currently set to "blob_value" </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearBlobValue() {
|
||||
if (HasBlobValue) {
|
||||
ClearType();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "uint_value" field.</summary>
|
||||
public const int UintValueFieldNumber = 6;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ulong UintValue {
|
||||
get { return HasUintValue ? (ulong) type_ : 0UL; }
|
||||
set {
|
||||
type_ = value;
|
||||
typeCase_ = TypeOneofCase.UintValue;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "uint_value" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasUintValue {
|
||||
get { return typeCase_ == TypeOneofCase.UintValue; }
|
||||
}
|
||||
/// <summary> Clears the value of the oneof if it's currently set to "uint_value" </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearUintValue() {
|
||||
if (HasUintValue) {
|
||||
ClearType();
|
||||
}
|
||||
}
|
||||
|
||||
private object type_;
|
||||
/// <summary>Enum of possible cases for the "type" oneof.</summary>
|
||||
public enum TypeOneofCase {
|
||||
None = 0,
|
||||
BoolValue = 1,
|
||||
IntValue = 2,
|
||||
FloatValue = 3,
|
||||
StringValue = 4,
|
||||
BlobValue = 5,
|
||||
UintValue = 6,
|
||||
}
|
||||
private TypeOneofCase typeCase_ = TypeOneofCase.None;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public TypeOneofCase TypeCase {
|
||||
get { return typeCase_; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearType() {
|
||||
typeCase_ = TypeOneofCase.None;
|
||||
type_ = null;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as Variant);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool Equals(Variant other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (BoolValue != other.BoolValue) return false;
|
||||
if (IntValue != other.IntValue) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FloatValue, other.FloatValue)) return false;
|
||||
if (StringValue != other.StringValue) return false;
|
||||
if (BlobValue != other.BlobValue) return false;
|
||||
if (UintValue != other.UintValue) return false;
|
||||
if (TypeCase != other.TypeCase) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasBoolValue) hash ^= BoolValue.GetHashCode();
|
||||
if (HasIntValue) hash ^= IntValue.GetHashCode();
|
||||
if (HasFloatValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FloatValue);
|
||||
if (HasStringValue) hash ^= StringValue.GetHashCode();
|
||||
if (HasBlobValue) hash ^= BlobValue.GetHashCode();
|
||||
if (HasUintValue) hash ^= UintValue.GetHashCode();
|
||||
hash ^= (int) typeCase_;
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (HasBoolValue) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteBool(BoolValue);
|
||||
}
|
||||
if (HasIntValue) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt64(IntValue);
|
||||
}
|
||||
if (HasFloatValue) {
|
||||
output.WriteRawTag(25);
|
||||
output.WriteDouble(FloatValue);
|
||||
}
|
||||
if (HasStringValue) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteString(StringValue);
|
||||
}
|
||||
if (HasBlobValue) {
|
||||
output.WriteRawTag(42);
|
||||
output.WriteBytes(BlobValue);
|
||||
}
|
||||
if (HasUintValue) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteUInt64(UintValue);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasBoolValue) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasIntValue) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt64Size(IntValue);
|
||||
}
|
||||
if (HasFloatValue) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (HasStringValue) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(StringValue);
|
||||
}
|
||||
if (HasBlobValue) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeBytesSize(BlobValue);
|
||||
}
|
||||
if (HasUintValue) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(UintValue);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(Variant other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
switch (other.TypeCase) {
|
||||
case TypeOneofCase.BoolValue:
|
||||
BoolValue = other.BoolValue;
|
||||
break;
|
||||
case TypeOneofCase.IntValue:
|
||||
IntValue = other.IntValue;
|
||||
break;
|
||||
case TypeOneofCase.FloatValue:
|
||||
FloatValue = other.FloatValue;
|
||||
break;
|
||||
case TypeOneofCase.StringValue:
|
||||
StringValue = other.StringValue;
|
||||
break;
|
||||
case TypeOneofCase.BlobValue:
|
||||
BlobValue = other.BlobValue;
|
||||
break;
|
||||
case TypeOneofCase.UintValue:
|
||||
UintValue = other.UintValue;
|
||||
break;
|
||||
}
|
||||
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
BoolValue = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
IntValue = input.ReadInt64();
|
||||
break;
|
||||
}
|
||||
case 25: {
|
||||
FloatValue = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
StringValue = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 42: {
|
||||
BlobValue = input.ReadBytes();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
UintValue = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public sealed partial class Attribute : pb::IMessage<Attribute> {
|
||||
private static readonly pb::MessageParser<Attribute> _parser = new pb::MessageParser<Attribute>(() => new Attribute());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pb::MessageParser<Attribute> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Bgs.Protocol.V2.AttributeTypesReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public Attribute() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public Attribute(Attribute other) : this() {
|
||||
name_ = other.name_;
|
||||
value_ = other.HasValue ? other.value_.Clone() : null;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public Attribute Clone() {
|
||||
return new Attribute(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "name" field.</summary>
|
||||
public const int NameFieldNumber = 1;
|
||||
private readonly static string NameDefaultValue = "";
|
||||
|
||||
private string name_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public string Name {
|
||||
get { return name_ ?? NameDefaultValue; }
|
||||
set {
|
||||
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "name" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasName {
|
||||
get { return name_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "name" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearName() {
|
||||
name_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "value" field.</summary>
|
||||
public const int ValueFieldNumber = 2;
|
||||
private global::Bgs.Protocol.V2.Variant value_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public global::Bgs.Protocol.V2.Variant Value {
|
||||
get { return value_; }
|
||||
set {
|
||||
value_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the value field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasValue {
|
||||
get { return value_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the value field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearValue() {
|
||||
value_ = null;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as Attribute);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool Equals(Attribute other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Name != other.Name) return false;
|
||||
if (!object.Equals(Value, other.Value)) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasName) hash ^= Name.GetHashCode();
|
||||
if (HasValue) hash ^= Value.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (HasName) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(Name);
|
||||
}
|
||||
if (HasValue) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(Value);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasName) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
||||
}
|
||||
if (HasValue) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(Attribute other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasName) {
|
||||
Name = other.Name;
|
||||
}
|
||||
if (other.HasValue) {
|
||||
if (!HasValue) {
|
||||
Value = new global::Bgs.Protocol.V2.Variant();
|
||||
}
|
||||
Value.MergeFrom(other.Value);
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 10: {
|
||||
Name = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (!HasValue) {
|
||||
Value = new global::Bgs.Protocol.V2.Variant();
|
||||
}
|
||||
input.ReadMessage(Value);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public sealed partial class AttributeFilter : pb::IMessage<AttributeFilter> {
|
||||
private static readonly pb::MessageParser<AttributeFilter> _parser = new pb::MessageParser<AttributeFilter>(() => new AttributeFilter());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pb::MessageParser<AttributeFilter> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Bgs.Protocol.V2.AttributeTypesReflection.Descriptor.MessageTypes[2]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public AttributeFilter() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public AttributeFilter(AttributeFilter other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
op_ = other.op_;
|
||||
attribute_ = other.attribute_.Clone();
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public AttributeFilter Clone() {
|
||||
return new AttributeFilter(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "op" field.</summary>
|
||||
public const int OpFieldNumber = 1;
|
||||
private readonly static global::Bgs.Protocol.V2.AttributeFilter.Types.Operation OpDefaultValue = global::Bgs.Protocol.V2.AttributeFilter.Types.Operation.MatchNone;
|
||||
|
||||
private global::Bgs.Protocol.V2.AttributeFilter.Types.Operation op_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public global::Bgs.Protocol.V2.AttributeFilter.Types.Operation Op {
|
||||
get { if ((_hasBits0 & 1) != 0) { return op_; } else { return OpDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
op_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "op" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasOp {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "op" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearOp() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "attribute" field.</summary>
|
||||
public const int AttributeFieldNumber = 2;
|
||||
private static readonly pb::FieldCodec<global::Bgs.Protocol.V2.Attribute> _repeated_attribute_codec
|
||||
= pb::FieldCodec.ForMessage(18, global::Bgs.Protocol.V2.Attribute.Parser);
|
||||
private readonly pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute> attribute_ = new pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public pbc::RepeatedField<global::Bgs.Protocol.V2.Attribute> Attribute {
|
||||
get { return attribute_; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as AttributeFilter);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool Equals(AttributeFilter other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Op != other.Op) return false;
|
||||
if(!attribute_.Equals(other.attribute_)) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasOp) hash ^= Op.GetHashCode();
|
||||
hash ^= attribute_.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (HasOp) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteEnum((int) Op);
|
||||
}
|
||||
attribute_.WriteTo(output, _repeated_attribute_codec);
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasOp) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Op);
|
||||
}
|
||||
size += attribute_.CalculateSize(_repeated_attribute_codec);
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(AttributeFilter other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasOp) {
|
||||
Op = other.Op;
|
||||
}
|
||||
attribute_.Add(other.attribute_);
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
Op = (global::Bgs.Protocol.V2.AttributeFilter.Types.Operation) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
attribute_.AddEntriesFrom(input, _repeated_attribute_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#region Nested types
|
||||
/// <summary>Container for nested types declared in the AttributeFilter message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static partial class Types {
|
||||
public enum Operation {
|
||||
[pbr::OriginalName("MATCH_NONE")] MatchNone = 0,
|
||||
[pbr::OriginalName("MATCH_ANY")] MatchAny = 1,
|
||||
[pbr::OriginalName("MATCH_ALL")] MatchAll = 2,
|
||||
[pbr::OriginalName("MATCH_ALL_MOST_SPECIFIC")] MatchAllMostSpecific = 3,
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,278 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/api/common/v2/game_account_handle.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Bgs.Protocol.Account.V2 {
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/api/common/v2/game_account_handle.proto</summary>
|
||||
public static partial class GameAccountHandleReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/api/common/v2/game_account_handle.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static GameAccountHandleReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjliZ3MvbG93L3BiL2NsaWVudC9hcGkvY29tbW9uL3YyL2dhbWVfYWNjb3Vu",
|
||||
"dF9oYW5kbGUucHJvdG8SF2Jncy5wcm90b2NvbC5hY2NvdW50LnYyGiFiZ3Mv",
|
||||
"bG93L3BiL2NsaWVudC9ycGNfdHlwZXMucHJvdG8aN2Jncy9sb3cvcGIvY2xp",
|
||||
"ZW50L2dsb2JhbF9leHRlbnNpb25zL2ZpZWxkX29wdGlvbnMucHJvdG8aOWJn",
|
||||
"cy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL21lc3NhZ2Vfb3B0",
|
||||
"aW9ucy5wcm90bxo4YmdzL2xvdy9wYi9jbGllbnQvZ2xvYmFsX2V4dGVuc2lv",
|
||||
"bnMvbWV0aG9kX29wdGlvbnMucHJvdG8aOWJncy9sb3cvcGIvY2xpZW50L2ds",
|
||||
"b2JhbF9leHRlbnNpb25zL3NlcnZpY2Vfb3B0aW9ucy5wcm90byJ0ChFHYW1l",
|
||||
"QWNjb3VudEhhbmRsZRIUCgJpZBgBIAEoBEIIivkrBBICEAASGgoIdGl0bGVf",
|
||||
"aWQYAiABKA1CCIr5KwQSAhAAEiUKBnJlZ2lvbhgDIAEoDUIVivkrBhIECgII",
|
||||
"AYr5KwcSBQoDEP8BOgaC+SsCCAE="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Account.V2.GameAccountHandle), global::Bgs.Protocol.Account.V2.GameAccountHandle.Parser, new[]{ "Id", "TitleId", "Region" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class GameAccountHandle : pb::IMessage<GameAccountHandle> {
|
||||
private static readonly pb::MessageParser<GameAccountHandle> _parser = new pb::MessageParser<GameAccountHandle>(() => new GameAccountHandle());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pb::MessageParser<GameAccountHandle> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Bgs.Protocol.Account.V2.GameAccountHandleReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public GameAccountHandle() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public GameAccountHandle(GameAccountHandle other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
id_ = other.id_;
|
||||
titleId_ = other.titleId_;
|
||||
region_ = other.region_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public GameAccountHandle Clone() {
|
||||
return new GameAccountHandle(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "id" field.</summary>
|
||||
public const int IdFieldNumber = 1;
|
||||
private readonly static ulong IdDefaultValue = 0UL;
|
||||
|
||||
private ulong id_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ulong Id {
|
||||
get { if ((_hasBits0 & 1) != 0) { return id_; } else { return IdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
id_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "id" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasId {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "id" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearId() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "title_id" field.</summary>
|
||||
public const int TitleIdFieldNumber = 2;
|
||||
private readonly static uint TitleIdDefaultValue = 0;
|
||||
|
||||
private uint titleId_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public uint TitleId {
|
||||
get { if ((_hasBits0 & 2) != 0) { return titleId_; } else { return TitleIdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
titleId_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "title_id" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasTitleId {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "title_id" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearTitleId() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "region" field.</summary>
|
||||
public const int RegionFieldNumber = 3;
|
||||
private readonly static uint RegionDefaultValue = 0;
|
||||
|
||||
private uint region_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public uint Region {
|
||||
get { if ((_hasBits0 & 4) != 0) { return region_; } else { return RegionDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
region_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "region" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasRegion {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "region" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearRegion() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as GameAccountHandle);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool Equals(GameAccountHandle other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Id != other.Id) return false;
|
||||
if (TitleId != other.TitleId) return false;
|
||||
if (Region != other.Region) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasId) hash ^= Id.GetHashCode();
|
||||
if (HasTitleId) hash ^= TitleId.GetHashCode();
|
||||
if (HasRegion) hash ^= Region.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (HasId) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt64(Id);
|
||||
}
|
||||
if (HasTitleId) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteUInt32(TitleId);
|
||||
}
|
||||
if (HasRegion) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteUInt32(Region);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasId) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Id);
|
||||
}
|
||||
if (HasTitleId) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TitleId);
|
||||
}
|
||||
if (HasRegion) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Region);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(GameAccountHandle other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasId) {
|
||||
Id = other.Id;
|
||||
}
|
||||
if (other.HasTitleId) {
|
||||
TitleId = other.TitleId;
|
||||
}
|
||||
if (other.HasRegion) {
|
||||
Region = other.Region;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
Id = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
TitleId = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
Region = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,762 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: bgs/low/pb/client/api/common/v2/whisper_types.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Bgs.Protocol.Whisper.V2 {
|
||||
|
||||
/// <summary>Holder for reflection information generated from bgs/low/pb/client/api/common/v2/whisper_types.proto</summary>
|
||||
public static partial class WhisperTypesReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for bgs/low/pb/client/api/common/v2/whisper_types.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static WhisperTypesReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjNiZ3MvbG93L3BiL2NsaWVudC9hcGkvY29tbW9uL3YyL3doaXNwZXJfdHlw",
|
||||
"ZXMucHJvdG8SF2Jncy5wcm90b2NvbC53aGlzcGVyLnYyGjFiZ3MvbG93L3Bi",
|
||||
"L2NsaWVudC9hcGkvY29tbW9uL3YxL2VtYmVkX3R5cGVzLnByb3RvGjZiZ3Mv",
|
||||
"bG93L3BiL2NsaWVudC9hcGkvY29tbW9uL3YxL2V2ZW50X3ZpZXdfdHlwZXMu",
|
||||
"cHJvdG8aM2Jncy9sb3cvcGIvY2xpZW50L2FwaS9jb21tb24vdjEvbWVzc2Fn",
|
||||
"ZV90eXBlcy5wcm90bxohYmdzL2xvdy9wYi9jbGllbnQvcnBjX3R5cGVzLnBy",
|
||||
"b3RvGjdiZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9maWVs",
|
||||
"ZF9vcHRpb25zLnByb3RvGjliZ3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0",
|
||||
"ZW5zaW9ucy9tZXNzYWdlX29wdGlvbnMucHJvdG8aOGJncy9sb3cvcGIvY2xp",
|
||||
"ZW50L2dsb2JhbF9leHRlbnNpb25zL21ldGhvZF9vcHRpb25zLnByb3RvGjli",
|
||||
"Z3MvbG93L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9zZXJ2aWNlX29w",
|
||||
"dGlvbnMucHJvdG8iugEKB1doaXNwZXISKwoKd2hpc3Blcl9pZBgBIAEoCzIX",
|
||||
"LmJncy5wcm90b2NvbC5NZXNzYWdlSWQSGQoRc2VuZGVyX2FjY291bnRfaWQY",
|
||||
"AiABKAQSGwoTcmVjZWl2ZXJfYWNjb3VudF9pZBgDIAEoBBIQCgh0aXRsZV9p",
|
||||
"ZBgEIAEoDRIPCgdjb250ZW50GAUgASgJEicKBmVtYmVkcxgGIAMoCzIXLmJn",
|
||||
"cy5wcm90b2NvbC5FbWJlZEluZm8iegoLV2hpc3BlclZpZXcSGQoRdGFyZ2V0",
|
||||
"X2FjY291bnRfaWQYASABKAQSLQoLdmlld19tYXJrZXIYAiABKAsyGC5iZ3Mu",
|
||||
"cHJvdG9jb2wuVmlld01hcmtlchIhChF0YXJnZXRfYmF0dGxlX3RhZxgDIAEo",
|
||||
"CUIGgvkrAggBIiUKElNlbmRXaGlzcGVyT3B0aW9ucxIPCgdjb250ZW50GAEg",
|
||||
"ASgJ"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { global::Bgs.Protocol.EmbedTypesReflection.Descriptor, global::Bgs.Protocol.EventViewTypesReflection.Descriptor, global::Bgs.Protocol.MessageTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Whisper.V2.Whisper), global::Bgs.Protocol.Whisper.V2.Whisper.Parser, new[]{ "WhisperId", "SenderAccountId", "ReceiverAccountId", "TitleId", "Content", "Embeds" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Whisper.V2.WhisperView), global::Bgs.Protocol.Whisper.V2.WhisperView.Parser, new[]{ "TargetAccountId", "ViewMarker", "TargetBattleTag" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Whisper.V2.SendWhisperOptions), global::Bgs.Protocol.Whisper.V2.SendWhisperOptions.Parser, new[]{ "Content" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class Whisper : pb::IMessage<Whisper> {
|
||||
private static readonly pb::MessageParser<Whisper> _parser = new pb::MessageParser<Whisper>(() => new Whisper());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pb::MessageParser<Whisper> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Bgs.Protocol.Whisper.V2.WhisperTypesReflection.Descriptor.MessageTypes[0]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public Whisper() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public Whisper(Whisper other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
whisperId_ = other.HasWhisperId ? other.whisperId_.Clone() : null;
|
||||
senderAccountId_ = other.senderAccountId_;
|
||||
receiverAccountId_ = other.receiverAccountId_;
|
||||
titleId_ = other.titleId_;
|
||||
content_ = other.content_;
|
||||
embeds_ = other.embeds_.Clone();
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public Whisper Clone() {
|
||||
return new Whisper(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "whisper_id" field.</summary>
|
||||
public const int WhisperIdFieldNumber = 1;
|
||||
private global::Bgs.Protocol.MessageId whisperId_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public global::Bgs.Protocol.MessageId WhisperId {
|
||||
get { return whisperId_; }
|
||||
set {
|
||||
whisperId_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the whisper_id field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasWhisperId {
|
||||
get { return whisperId_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the whisper_id field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearWhisperId() {
|
||||
whisperId_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "sender_account_id" field.</summary>
|
||||
public const int SenderAccountIdFieldNumber = 2;
|
||||
private readonly static ulong SenderAccountIdDefaultValue = 0UL;
|
||||
|
||||
private ulong senderAccountId_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ulong SenderAccountId {
|
||||
get { if ((_hasBits0 & 1) != 0) { return senderAccountId_; } else { return SenderAccountIdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
senderAccountId_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "sender_account_id" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasSenderAccountId {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "sender_account_id" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearSenderAccountId() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "receiver_account_id" field.</summary>
|
||||
public const int ReceiverAccountIdFieldNumber = 3;
|
||||
private readonly static ulong ReceiverAccountIdDefaultValue = 0UL;
|
||||
|
||||
private ulong receiverAccountId_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ulong ReceiverAccountId {
|
||||
get { if ((_hasBits0 & 2) != 0) { return receiverAccountId_; } else { return ReceiverAccountIdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
receiverAccountId_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "receiver_account_id" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasReceiverAccountId {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "receiver_account_id" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearReceiverAccountId() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "title_id" field.</summary>
|
||||
public const int TitleIdFieldNumber = 4;
|
||||
private readonly static uint TitleIdDefaultValue = 0;
|
||||
|
||||
private uint titleId_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public uint TitleId {
|
||||
get { if ((_hasBits0 & 4) != 0) { return titleId_; } else { return TitleIdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
titleId_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "title_id" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasTitleId {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "title_id" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearTitleId() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "content" field.</summary>
|
||||
public const int ContentFieldNumber = 5;
|
||||
private readonly static string ContentDefaultValue = "";
|
||||
|
||||
private string content_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public string Content {
|
||||
get { return content_ ?? ContentDefaultValue; }
|
||||
set {
|
||||
content_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "content" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasContent {
|
||||
get { return content_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "content" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearContent() {
|
||||
content_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "embeds" field.</summary>
|
||||
public const int EmbedsFieldNumber = 6;
|
||||
private static readonly pb::FieldCodec<global::Bgs.Protocol.EmbedInfo> _repeated_embeds_codec
|
||||
= pb::FieldCodec.ForMessage(50, global::Bgs.Protocol.EmbedInfo.Parser);
|
||||
private readonly pbc::RepeatedField<global::Bgs.Protocol.EmbedInfo> embeds_ = new pbc::RepeatedField<global::Bgs.Protocol.EmbedInfo>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public pbc::RepeatedField<global::Bgs.Protocol.EmbedInfo> Embeds {
|
||||
get { return embeds_; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as Whisper);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool Equals(Whisper other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(WhisperId, other.WhisperId)) return false;
|
||||
if (SenderAccountId != other.SenderAccountId) return false;
|
||||
if (ReceiverAccountId != other.ReceiverAccountId) return false;
|
||||
if (TitleId != other.TitleId) return false;
|
||||
if (Content != other.Content) return false;
|
||||
if(!embeds_.Equals(other.embeds_)) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasWhisperId) hash ^= WhisperId.GetHashCode();
|
||||
if (HasSenderAccountId) hash ^= SenderAccountId.GetHashCode();
|
||||
if (HasReceiverAccountId) hash ^= ReceiverAccountId.GetHashCode();
|
||||
if (HasTitleId) hash ^= TitleId.GetHashCode();
|
||||
if (HasContent) hash ^= Content.GetHashCode();
|
||||
hash ^= embeds_.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (HasWhisperId) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(WhisperId);
|
||||
}
|
||||
if (HasSenderAccountId) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteUInt64(SenderAccountId);
|
||||
}
|
||||
if (HasReceiverAccountId) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteUInt64(ReceiverAccountId);
|
||||
}
|
||||
if (HasTitleId) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteUInt32(TitleId);
|
||||
}
|
||||
if (HasContent) {
|
||||
output.WriteRawTag(42);
|
||||
output.WriteString(Content);
|
||||
}
|
||||
embeds_.WriteTo(output, _repeated_embeds_codec);
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasWhisperId) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(WhisperId);
|
||||
}
|
||||
if (HasSenderAccountId) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SenderAccountId);
|
||||
}
|
||||
if (HasReceiverAccountId) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ReceiverAccountId);
|
||||
}
|
||||
if (HasTitleId) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(TitleId);
|
||||
}
|
||||
if (HasContent) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Content);
|
||||
}
|
||||
size += embeds_.CalculateSize(_repeated_embeds_codec);
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(Whisper other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasWhisperId) {
|
||||
if (!HasWhisperId) {
|
||||
WhisperId = new global::Bgs.Protocol.MessageId();
|
||||
}
|
||||
WhisperId.MergeFrom(other.WhisperId);
|
||||
}
|
||||
if (other.HasSenderAccountId) {
|
||||
SenderAccountId = other.SenderAccountId;
|
||||
}
|
||||
if (other.HasReceiverAccountId) {
|
||||
ReceiverAccountId = other.ReceiverAccountId;
|
||||
}
|
||||
if (other.HasTitleId) {
|
||||
TitleId = other.TitleId;
|
||||
}
|
||||
if (other.HasContent) {
|
||||
Content = other.Content;
|
||||
}
|
||||
embeds_.Add(other.embeds_);
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 10: {
|
||||
if (!HasWhisperId) {
|
||||
WhisperId = new global::Bgs.Protocol.MessageId();
|
||||
}
|
||||
input.ReadMessage(WhisperId);
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
SenderAccountId = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
ReceiverAccountId = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
TitleId = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 42: {
|
||||
Content = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 50: {
|
||||
embeds_.AddEntriesFrom(input, _repeated_embeds_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public sealed partial class WhisperView : pb::IMessage<WhisperView> {
|
||||
private static readonly pb::MessageParser<WhisperView> _parser = new pb::MessageParser<WhisperView>(() => new WhisperView());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pb::MessageParser<WhisperView> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Bgs.Protocol.Whisper.V2.WhisperTypesReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public WhisperView() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public WhisperView(WhisperView other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
targetAccountId_ = other.targetAccountId_;
|
||||
viewMarker_ = other.HasViewMarker ? other.viewMarker_.Clone() : null;
|
||||
targetBattleTag_ = other.targetBattleTag_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public WhisperView Clone() {
|
||||
return new WhisperView(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "target_account_id" field.</summary>
|
||||
public const int TargetAccountIdFieldNumber = 1;
|
||||
private readonly static ulong TargetAccountIdDefaultValue = 0UL;
|
||||
|
||||
private ulong targetAccountId_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public ulong TargetAccountId {
|
||||
get { if ((_hasBits0 & 1) != 0) { return targetAccountId_; } else { return TargetAccountIdDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
targetAccountId_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "target_account_id" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasTargetAccountId {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "target_account_id" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearTargetAccountId() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "view_marker" field.</summary>
|
||||
public const int ViewMarkerFieldNumber = 2;
|
||||
private global::Bgs.Protocol.ViewMarker viewMarker_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public global::Bgs.Protocol.ViewMarker ViewMarker {
|
||||
get { return viewMarker_; }
|
||||
set {
|
||||
viewMarker_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the view_marker field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasViewMarker {
|
||||
get { return viewMarker_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the view_marker field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearViewMarker() {
|
||||
viewMarker_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "target_battle_tag" field.</summary>
|
||||
public const int TargetBattleTagFieldNumber = 3;
|
||||
private readonly static string TargetBattleTagDefaultValue = "";
|
||||
|
||||
private string targetBattleTag_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public string TargetBattleTag {
|
||||
get { return targetBattleTag_ ?? TargetBattleTagDefaultValue; }
|
||||
set {
|
||||
targetBattleTag_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "target_battle_tag" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasTargetBattleTag {
|
||||
get { return targetBattleTag_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "target_battle_tag" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearTargetBattleTag() {
|
||||
targetBattleTag_ = null;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as WhisperView);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool Equals(WhisperView other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (TargetAccountId != other.TargetAccountId) return false;
|
||||
if (!object.Equals(ViewMarker, other.ViewMarker)) return false;
|
||||
if (TargetBattleTag != other.TargetBattleTag) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasTargetAccountId) hash ^= TargetAccountId.GetHashCode();
|
||||
if (HasViewMarker) hash ^= ViewMarker.GetHashCode();
|
||||
if (HasTargetBattleTag) hash ^= TargetBattleTag.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (HasTargetAccountId) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt64(TargetAccountId);
|
||||
}
|
||||
if (HasViewMarker) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(ViewMarker);
|
||||
}
|
||||
if (HasTargetBattleTag) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteString(TargetBattleTag);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasTargetAccountId) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(TargetAccountId);
|
||||
}
|
||||
if (HasViewMarker) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ViewMarker);
|
||||
}
|
||||
if (HasTargetBattleTag) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetBattleTag);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(WhisperView other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasTargetAccountId) {
|
||||
TargetAccountId = other.TargetAccountId;
|
||||
}
|
||||
if (other.HasViewMarker) {
|
||||
if (!HasViewMarker) {
|
||||
ViewMarker = new global::Bgs.Protocol.ViewMarker();
|
||||
}
|
||||
ViewMarker.MergeFrom(other.ViewMarker);
|
||||
}
|
||||
if (other.HasTargetBattleTag) {
|
||||
TargetBattleTag = other.TargetBattleTag;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 8: {
|
||||
TargetAccountId = input.ReadUInt64();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (!HasViewMarker) {
|
||||
ViewMarker = new global::Bgs.Protocol.ViewMarker();
|
||||
}
|
||||
input.ReadMessage(ViewMarker);
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
TargetBattleTag = input.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public sealed partial class SendWhisperOptions : pb::IMessage<SendWhisperOptions> {
|
||||
private static readonly pb::MessageParser<SendWhisperOptions> _parser = new pb::MessageParser<SendWhisperOptions>(() => new SendWhisperOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pb::MessageParser<SendWhisperOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Bgs.Protocol.Whisper.V2.WhisperTypesReflection.Descriptor.MessageTypes[2]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public SendWhisperOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public SendWhisperOptions(SendWhisperOptions other) : this() {
|
||||
content_ = other.content_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public SendWhisperOptions Clone() {
|
||||
return new SendWhisperOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "content" field.</summary>
|
||||
public const int ContentFieldNumber = 1;
|
||||
private readonly static string ContentDefaultValue = "";
|
||||
|
||||
private string content_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public string Content {
|
||||
get { return content_ ?? ContentDefaultValue; }
|
||||
set {
|
||||
content_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "content" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool HasContent {
|
||||
get { return content_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "content" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void ClearContent() {
|
||||
content_ = null;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as SendWhisperOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public bool Equals(SendWhisperOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Content != other.Content) return false;
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
if (HasContent) hash ^= Content.GetHashCode();
|
||||
if (_unknownFields != null) {
|
||||
hash ^= _unknownFields.GetHashCode();
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public override string ToString() {
|
||||
return pb::JsonFormatter.ToDiagnosticString(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void WriteTo(pb::CodedOutputStream output) {
|
||||
if (HasContent) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteString(Content);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasContent) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Content);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(SendWhisperOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasContent) {
|
||||
Content = other.Content;
|
||||
}
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
public void MergeFrom(pb::CodedInputStream input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||||
break;
|
||||
case 10: {
|
||||
Content = input.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
Reference in New Issue
Block a user