Files
CypherCore/Source/Framework/Proto/FriendsService.cs
T
2021-10-01 12:49:34 -04:00

3940 lines
142 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: bgs/low/pb/client/friends_service.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Bgs.Protocol.Friends.V1 {
/// <summary>Holder for reflection information generated from bgs/low/pb/client/friends_service.proto</summary>
public static partial class FriendsServiceReflection {
#region Descriptor
/// <summary>File descriptor for bgs/low/pb/client/friends_service.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static FriendsServiceReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CidiZ3MvbG93L3BiL2NsaWVudC9mcmllbmRzX3NlcnZpY2UucHJvdG8SF2Jn",
"cy5wcm90b2NvbC5mcmllbmRzLnYxGidiZ3MvbG93L3BiL2NsaWVudC9hdHRy",
"aWJ1dGVfdHlwZXMucHJvdG8aJGJncy9sb3cvcGIvY2xpZW50L2VudGl0eV90",
"eXBlcy5wcm90bxolYmdzL2xvdy9wYi9jbGllbnQvZnJpZW5kc190eXBlcy5w",
"cm90bxooYmdzL2xvdy9wYi9jbGllbnQvaW52aXRhdGlvbl90eXBlcy5wcm90",
"bxohYmdzL2xvdy9wYi9jbGllbnQvcnBjX3R5cGVzLnByb3RvGjliZ3MvbG93",
"L3BiL2NsaWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9tZXNzYWdlX29wdGlvbnMu",
"cHJvdG8aN2Jncy9sb3cvcGIvY2xpZW50L2dsb2JhbF9leHRlbnNpb25zL2Zp",
"ZWxkX29wdGlvbnMucHJvdG8aOGJncy9sb3cvcGIvY2xpZW50L2dsb2JhbF9l",
"eHRlbnNpb25zL21ldGhvZF9vcHRpb25zLnByb3RvGjliZ3MvbG93L3BiL2Ns",
"aWVudC9nbG9iYWxfZXh0ZW5zaW9ucy9zZXJ2aWNlX29wdGlvbnMucHJvdG8i",
"VwoQU3Vic2NyaWJlUmVxdWVzdBIwCghhZ2VudF9pZBgBIAEoCzIWLmJncy5w",
"cm90b2NvbC5FbnRpdHlJZEIGgvkrAiABEhEKCW9iamVjdF9pZBgCIAIoBCJZ",
"ChJVbnN1YnNjcmliZVJlcXVlc3QSMAoIYWdlbnRfaWQYASABKAsyFi5iZ3Mu",
"cHJvdG9jb2wuRW50aXR5SWRCBoL5KwIgARIRCglvYmplY3RfaWQYAiABKAQi",
"qgEKFVNlbmRJbnZpdGF0aW9uUmVxdWVzdBI2Cg5hZ2VudF9pZGVudGl0eRgB",
"IAEoCzIWLmJncy5wcm90b2NvbC5JZGVudGl0eUIGgvkrAiABEikKCXRhcmdl",
"dF9pZBgCIAIoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIuCgZwYXJhbXMY",
"AyACKAsyHi5iZ3MucHJvdG9jb2wuSW52aXRhdGlvblBhcmFtcyJiChdSZXZv",
"a2VJbnZpdGF0aW9uUmVxdWVzdBIwCghhZ2VudF9pZBgBIAEoCzIWLmJncy5w",
"cm90b2NvbC5FbnRpdHlJZEIGgvkrAiABEhUKDWludml0YXRpb25faWQYAiAB",
"KAYipQEKF0FjY2VwdEludml0YXRpb25SZXF1ZXN0EjAKCGFnZW50X2lkGAEg",
"ASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkQgaC+SsCIAESFQoNaW52aXRh",
"dGlvbl9pZBgDIAIoBhJBCgdvcHRpb25zGAQgASgLMjAuYmdzLnByb3RvY29s",
"LmZyaWVuZHMudjEuQWNjZXB0SW52aXRhdGlvbk9wdGlvbnMiYwoYRGVjbGlu",
"ZUludml0YXRpb25SZXF1ZXN0EjAKCGFnZW50X2lkGAEgASgLMhYuYmdzLnBy",
"b3RvY29sLkVudGl0eUlkQgaC+SsCIAESFQoNaW52aXRhdGlvbl9pZBgDIAIo",
"BiJiChdJZ25vcmVJbnZpdGF0aW9uUmVxdWVzdBIwCghhZ2VudF9pZBgBIAEo",
"CzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZEIGgvkrAiABEhUKDWludml0YXRp",
"b25faWQYAyACKAYicgoTUmVtb3ZlRnJpZW5kUmVxdWVzdBIwCghhZ2VudF9p",
"ZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZEIGgvkrAiABEikKCXRh",
"cmdldF9pZBgCIAIoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZCJPChtSZXZv",
"a2VBbGxJbnZpdGF0aW9uc1JlcXVlc3QSMAoIYWdlbnRfaWQYAiABKAsyFi5i",
"Z3MucHJvdG9jb2wuRW50aXR5SWRCBoL5KwIQASJxChJWaWV3RnJpZW5kc1Jl",
"cXVlc3QSMAoIYWdlbnRfaWQYASABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5",
"SWRCBoL5KwIgARIpCgl0YXJnZXRfaWQYAiACKAsyFi5iZ3MucHJvdG9jb2wu",
"RW50aXR5SWQiTwoTVmlld0ZyaWVuZHNSZXNwb25zZRI4CgdmcmllbmRzGAEg",
"AygLMicuYmdzLnByb3RvY29sLmZyaWVuZHMudjEuRnJpZW5kT2ZGcmllbmQi",
"owEKGFVwZGF0ZUZyaWVuZFN0YXRlUmVxdWVzdBIwCghhZ2VudF9pZBgBIAEo",
"CzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZEIGgvkrAiABEikKCXRhcmdldF9p",
"ZBgCIAIoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIqCglhdHRyaWJ1dGUY",
"AyADKAsyFy5iZ3MucHJvdG9jb2wuQXR0cmlidXRlIkgKFEdldEZyaWVuZExp",
"c3RSZXF1ZXN0EjAKCGFnZW50X2lkGAIgASgLMhYuYmdzLnByb3RvY29sLkVu",
"dGl0eUlkQgaC+SsCEAEiSQoVR2V0RnJpZW5kTGlzdFJlc3BvbnNlEjAKB2Zy",
"aWVuZHMYASADKAsyHy5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5GcmllbmQi",
"nAEKF0NyZWF0ZUZyaWVuZHNoaXBSZXF1ZXN0EjAKCGFnZW50X2lkGAEgASgL",
"MhYuYmdzLnByb3RvY29sLkVudGl0eUlkQgaC+SsCEAESKQoJdGFyZ2V0X2lk",
"GAIgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkEiQKBHJvbGUYAyADKA1C",
"FhABivkrBioECgIIAYr5KwYqBAoCEAEicQoSRnJpZW5kTm90aWZpY2F0aW9u",
"Ei8KBnRhcmdldBgBIAIoCzIfLmJncy5wcm90b2NvbC5mcmllbmRzLnYxLkZy",
"aWVuZBIqCgphY2NvdW50X2lkGAUgASgLMhYuYmdzLnByb3RvY29sLkVudGl0",
"eUlkIoQBCh1VcGRhdGVGcmllbmRTdGF0ZU5vdGlmaWNhdGlvbhI3Cg5jaGFu",
"Z2VkX2ZyaWVuZBgBIAIoCzIfLmJncy5wcm90b2NvbC5mcmllbmRzLnYxLkZy",
"aWVuZBIqCgphY2NvdW50X2lkGAUgASgLMhYuYmdzLnByb3RvY29sLkVudGl0",
"eUlkIpgBChZJbnZpdGF0aW9uTm90aWZpY2F0aW9uEj8KCmludml0YXRpb24Y",
"ASACKAsyKy5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5SZWNlaXZlZEludml0",
"YXRpb24SEQoGcmVhc29uGAMgASgNOgEwEioKCmFjY291bnRfaWQYBSABKAsy",
"Fi5iZ3MucHJvdG9jb2wuRW50aXR5SWQiigEKH1NlbnRJbnZpdGF0aW9uQWRk",
"ZWROb3RpZmljYXRpb24SKgoKYWNjb3VudF9pZBgBIAEoCzIWLmJncy5wcm90",
"b2NvbC5FbnRpdHlJZBI7CgppbnZpdGF0aW9uGAIgASgLMicuYmdzLnByb3Rv",
"Y29sLmZyaWVuZHMudjEuU2VudEludml0YXRpb24idgohU2VudEludml0YXRp",
"b25SZW1vdmVkTm90aWZpY2F0aW9uEioKCmFjY291bnRfaWQYASABKAsyFi5i",
"Z3MucHJvdG9jb2wuRW50aXR5SWQSFQoNaW52aXRhdGlvbl9pZBgCIAEoBhIO",
"CgZyZWFzb24YAyABKA0yyAsKDkZyaWVuZHNTZXJ2aWNlEnAKCVN1YnNjcmli",
"ZRIpLmJncy5wcm90b2NvbC5mcmllbmRzLnYxLlN1YnNjcmliZVJlcXVlc3Qa",
"Ki5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5TdWJzY3JpYmVSZXNwb25zZSIM",
"gvkrAggBgvkrAhABEmQKDlNlbmRJbnZpdGF0aW9uEi4uYmdzLnByb3RvY29s",
"LmZyaWVuZHMudjEuU2VuZEludml0YXRpb25SZXF1ZXN0GhQuYmdzLnByb3Rv",
"Y29sLk5vRGF0YSIMgvkrAggCgvkrAhABEmgKEEFjY2VwdEludml0YXRpb24S",
"MC5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5BY2NlcHRJbnZpdGF0aW9uUmVx",
"dWVzdBoULmJncy5wcm90b2NvbC5Ob0RhdGEiDIL5KwIIA4L5KwIQARJoChBS",
"ZXZva2VJbnZpdGF0aW9uEjAuYmdzLnByb3RvY29sLmZyaWVuZHMudjEuUmV2",
"b2tlSW52aXRhdGlvblJlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9EYXRhIgyC",
"+SsCCASC+SsCEAESbQoRRGVjbGluZUludml0YXRpb24SMS5iZ3MucHJvdG9j",
"b2wuZnJpZW5kcy52MS5EZWNsaW5lSW52aXRhdGlvblJlcXVlc3QaFC5iZ3Mu",
"cHJvdG9jb2wuTm9EYXRhIg+IAgGC+SsCCAWC+SsCEAESaAoQSWdub3JlSW52",
"aXRhdGlvbhIwLmJncy5wcm90b2NvbC5mcmllbmRzLnYxLklnbm9yZUludml0",
"YXRpb25SZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5vRGF0YSIMgvkrAggGgvkr",
"AhABEmAKDFJlbW92ZUZyaWVuZBIsLmJncy5wcm90b2NvbC5mcmllbmRzLnYx",
"LlJlbW92ZUZyaWVuZFJlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9EYXRhIgyC",
"+SsCCAiC+SsCEAESdgoLVmlld0ZyaWVuZHMSKy5iZ3MucHJvdG9jb2wuZnJp",
"ZW5kcy52MS5WaWV3RnJpZW5kc1JlcXVlc3QaLC5iZ3MucHJvdG9jb2wuZnJp",
"ZW5kcy52MS5WaWV3RnJpZW5kc1Jlc3BvbnNlIgyC+SsCCAmC+SsCEAESagoR",
"VXBkYXRlRnJpZW5kU3RhdGUSMS5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5V",
"cGRhdGVGcmllbmRTdGF0ZVJlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9EYXRh",
"IgyC+SsCCAqC+SsCEAESXgoLVW5zdWJzY3JpYmUSKy5iZ3MucHJvdG9jb2wu",
"ZnJpZW5kcy52MS5VbnN1YnNjcmliZVJlcXVlc3QaFC5iZ3MucHJvdG9jb2wu",
"Tm9EYXRhIgyC+SsCCAuC+SsCEAESagoUUmV2b2tlQWxsSW52aXRhdGlvbnMS",
"NC5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5SZXZva2VBbGxJbnZpdGF0aW9u",
"c1JlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9EYXRhIgaC+SsCCAwSdgoNR2V0",
"RnJpZW5kTGlzdBItLmJncy5wcm90b2NvbC5mcmllbmRzLnYxLkdldEZyaWVu",
"ZExpc3RSZXF1ZXN0Gi4uYmdzLnByb3RvY29sLmZyaWVuZHMudjEuR2V0RnJp",
"ZW5kTGlzdFJlc3BvbnNlIgaC+SsCCA0SYgoQQ3JlYXRlRnJpZW5kc2hpcBIw",
"LmJncy5wcm90b2NvbC5mcmllbmRzLnYxLkNyZWF0ZUZyaWVuZHNoaXBSZXF1",
"ZXN0GhQuYmdzLnByb3RvY29sLk5vRGF0YSIGgvkrAggOGkOC+SsmCiRibmV0",
"LnByb3RvY29sLmZyaWVuZHMuRnJpZW5kc1NlcnZpY2WC+SsJKgdmcmllbmRz",
"gvkrAjABivkrAhABMswGCg9GcmllbmRzTGlzdGVuZXISXwoNT25GcmllbmRB",
"ZGRlZBIrLmJncy5wcm90b2NvbC5mcmllbmRzLnYxLkZyaWVuZE5vdGlmaWNh",
"dGlvbhoZLmJncy5wcm90b2NvbC5OT19SRVNQT05TRSIGgvkrAggBEmEKD09u",
"RnJpZW5kUmVtb3ZlZBIrLmJncy5wcm90b2NvbC5mcmllbmRzLnYxLkZyaWVu",
"ZE5vdGlmaWNhdGlvbhoZLmJncy5wcm90b2NvbC5OT19SRVNQT05TRSIGgvkr",
"AggCEm8KGU9uUmVjZWl2ZWRJbnZpdGF0aW9uQWRkZWQSLy5iZ3MucHJvdG9j",
"b2wuZnJpZW5kcy52MS5JbnZpdGF0aW9uTm90aWZpY2F0aW9uGhkuYmdzLnBy",
"b3RvY29sLk5PX1JFU1BPTlNFIgaC+SsCCAMScQobT25SZWNlaXZlZEludml0",
"YXRpb25SZW1vdmVkEi8uYmdzLnByb3RvY29sLmZyaWVuZHMudjEuSW52aXRh",
"dGlvbk5vdGlmaWNhdGlvbhoZLmJncy5wcm90b2NvbC5OT19SRVNQT05TRSIG",
"gvkrAggEEnQKFU9uU2VudEludml0YXRpb25BZGRlZBI4LmJncy5wcm90b2Nv",
"bC5mcmllbmRzLnYxLlNlbnRJbnZpdGF0aW9uQWRkZWROb3RpZmljYXRpb24a",
"GS5iZ3MucHJvdG9jb2wuTk9fUkVTUE9OU0UiBoL5KwIIBRJ4ChdPblNlbnRJ",
"bnZpdGF0aW9uUmVtb3ZlZBI6LmJncy5wcm90b2NvbC5mcmllbmRzLnYxLlNl",
"bnRJbnZpdGF0aW9uUmVtb3ZlZE5vdGlmaWNhdGlvbhoZLmJncy5wcm90b2Nv",
"bC5OT19SRVNQT05TRSIGgvkrAggGEnAKE09uVXBkYXRlRnJpZW5kU3RhdGUS",
"Ni5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5VcGRhdGVGcmllbmRTdGF0ZU5v",
"dGlmaWNhdGlvbhoZLmJncy5wcm90b2NvbC5OT19SRVNQT05TRSIGgvkrAggH",
"Gi+C+SslCiNibmV0LnByb3RvY29sLmZyaWVuZHMuRnJpZW5kc05vdGlmeYr5",
"KwIIAUI1ChhibmV0LnByb3RvY29sLmZyaWVuZHMudjFCE0ZyaWVuZHNTZXJ2",
"aWNlUHJvdG+AAQCIAQE="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Bgs.Protocol.AttributeTypesReflection.Descriptor, global::Bgs.Protocol.EntityTypesReflection.Descriptor, global::Bgs.Protocol.Friends.V1.FriendsTypesReflection.Descriptor, global::Bgs.Protocol.InvitationTypesReflection.Descriptor, global::Bgs.Protocol.RpcTypesReflection.Descriptor, global::Bgs.Protocol.MessageOptionsReflection.Descriptor, global::Bgs.Protocol.FieldOptionsReflection.Descriptor, global::Bgs.Protocol.MethodOptionsReflection.Descriptor, global::Bgs.Protocol.ServiceOptionsReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.SubscribeRequest), global::Bgs.Protocol.Friends.V1.SubscribeRequest.Parser, new[]{ "AgentId", "ObjectId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.UnsubscribeRequest), global::Bgs.Protocol.Friends.V1.UnsubscribeRequest.Parser, new[]{ "AgentId", "ObjectId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.SendInvitationRequest), global::Bgs.Protocol.Friends.V1.SendInvitationRequest.Parser, new[]{ "AgentIdentity", "TargetId", "Params" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.RevokeInvitationRequest), global::Bgs.Protocol.Friends.V1.RevokeInvitationRequest.Parser, new[]{ "AgentId", "InvitationId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.AcceptInvitationRequest), global::Bgs.Protocol.Friends.V1.AcceptInvitationRequest.Parser, new[]{ "AgentId", "InvitationId", "Options" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.DeclineInvitationRequest), global::Bgs.Protocol.Friends.V1.DeclineInvitationRequest.Parser, new[]{ "AgentId", "InvitationId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.IgnoreInvitationRequest), global::Bgs.Protocol.Friends.V1.IgnoreInvitationRequest.Parser, new[]{ "AgentId", "InvitationId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.RemoveFriendRequest), global::Bgs.Protocol.Friends.V1.RemoveFriendRequest.Parser, new[]{ "AgentId", "TargetId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.RevokeAllInvitationsRequest), global::Bgs.Protocol.Friends.V1.RevokeAllInvitationsRequest.Parser, new[]{ "AgentId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.ViewFriendsRequest), global::Bgs.Protocol.Friends.V1.ViewFriendsRequest.Parser, new[]{ "AgentId", "TargetId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.ViewFriendsResponse), global::Bgs.Protocol.Friends.V1.ViewFriendsResponse.Parser, new[]{ "Friends" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.UpdateFriendStateRequest), global::Bgs.Protocol.Friends.V1.UpdateFriendStateRequest.Parser, new[]{ "AgentId", "TargetId", "Attribute" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.GetFriendListRequest), global::Bgs.Protocol.Friends.V1.GetFriendListRequest.Parser, new[]{ "AgentId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.GetFriendListResponse), global::Bgs.Protocol.Friends.V1.GetFriendListResponse.Parser, new[]{ "Friends" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.CreateFriendshipRequest), global::Bgs.Protocol.Friends.V1.CreateFriendshipRequest.Parser, new[]{ "AgentId", "TargetId", "Role" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.FriendNotification), global::Bgs.Protocol.Friends.V1.FriendNotification.Parser, new[]{ "Target", "AccountId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.UpdateFriendStateNotification), global::Bgs.Protocol.Friends.V1.UpdateFriendStateNotification.Parser, new[]{ "ChangedFriend", "AccountId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.InvitationNotification), global::Bgs.Protocol.Friends.V1.InvitationNotification.Parser, new[]{ "Invitation", "Reason", "AccountId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.SentInvitationAddedNotification), global::Bgs.Protocol.Friends.V1.SentInvitationAddedNotification.Parser, new[]{ "AccountId", "Invitation" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.SentInvitationRemovedNotification), global::Bgs.Protocol.Friends.V1.SentInvitationRemovedNotification.Parser, new[]{ "AccountId", "InvitationId", "Reason" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class SubscribeRequest : pb::IMessage<SubscribeRequest> {
private static readonly pb::MessageParser<SubscribeRequest> _parser = new pb::MessageParser<SubscribeRequest>(() => new SubscribeRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SubscribeRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubscribeRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubscribeRequest(SubscribeRequest other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
objectId_ = other.objectId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SubscribeRequest Clone() {
return new SubscribeRequest(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.EntityId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <summary>Gets whether the agent_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAgentId {
get { return agentId_ != null; }
}
/// <summary>Clears the value of the agent_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAgentId() {
agentId_ = null;
}
/// <summary>Field number for the "object_id" field.</summary>
public const int ObjectIdFieldNumber = 2;
private readonly static ulong ObjectIdDefaultValue = 0UL;
private ulong objectId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ObjectId {
get { if ((_hasBits0 & 1) != 0) { return objectId_; } else { return ObjectIdDefaultValue; } }
set {
_hasBits0 |= 1;
objectId_ = value;
}
}
/// <summary>Gets whether the "object_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasObjectId {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "object_id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearObjectId() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as SubscribeRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(SubscribeRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ObjectId != other.ObjectId) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasObjectId) hash ^= ObjectId.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 (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasObjectId) {
output.WriteRawTag(16);
output.WriteUInt64(ObjectId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasObjectId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ObjectId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(SubscribeRequest other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasObjectId) {
ObjectId = other.ObjectId;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AgentId);
break;
}
case 16: {
ObjectId = input.ReadUInt64();
break;
}
}
}
}
}
public sealed partial class UnsubscribeRequest : pb::IMessage<UnsubscribeRequest> {
private static readonly pb::MessageParser<UnsubscribeRequest> _parser = new pb::MessageParser<UnsubscribeRequest>(() => new UnsubscribeRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<UnsubscribeRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UnsubscribeRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UnsubscribeRequest(UnsubscribeRequest other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
objectId_ = other.objectId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UnsubscribeRequest Clone() {
return new UnsubscribeRequest(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.EntityId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <summary>Gets whether the agent_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAgentId {
get { return agentId_ != null; }
}
/// <summary>Clears the value of the agent_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAgentId() {
agentId_ = null;
}
/// <summary>Field number for the "object_id" field.</summary>
public const int ObjectIdFieldNumber = 2;
private readonly static ulong ObjectIdDefaultValue = 0UL;
private ulong objectId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong ObjectId {
get { if ((_hasBits0 & 1) != 0) { return objectId_; } else { return ObjectIdDefaultValue; } }
set {
_hasBits0 |= 1;
objectId_ = value;
}
}
/// <summary>Gets whether the "object_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasObjectId {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "object_id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearObjectId() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as UnsubscribeRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(UnsubscribeRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (ObjectId != other.ObjectId) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasObjectId) hash ^= ObjectId.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 (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasObjectId) {
output.WriteRawTag(16);
output.WriteUInt64(ObjectId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasObjectId) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ObjectId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(UnsubscribeRequest other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasObjectId) {
ObjectId = other.ObjectId;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AgentId);
break;
}
case 16: {
ObjectId = input.ReadUInt64();
break;
}
}
}
}
}
public sealed partial class SendInvitationRequest : pb::IMessage<SendInvitationRequest> {
private static readonly pb::MessageParser<SendInvitationRequest> _parser = new pb::MessageParser<SendInvitationRequest>(() => new SendInvitationRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SendInvitationRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[2]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SendInvitationRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SendInvitationRequest(SendInvitationRequest other) : this() {
agentIdentity_ = other.HasAgentIdentity ? other.agentIdentity_.Clone() : null;
targetId_ = other.HasTargetId ? other.targetId_.Clone() : null;
params_ = other.HasParams ? other.params_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SendInvitationRequest Clone() {
return new SendInvitationRequest(this);
}
/// <summary>Field number for the "agent_identity" field.</summary>
public const int AgentIdentityFieldNumber = 1;
private global::Bgs.Protocol.Identity agentIdentity_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Identity AgentIdentity {
get { return agentIdentity_; }
set {
agentIdentity_ = value;
}
}
/// <summary>Gets whether the agent_identity field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAgentIdentity {
get { return agentIdentity_ != null; }
}
/// <summary>Clears the value of the agent_identity field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAgentIdentity() {
agentIdentity_ = null;
}
/// <summary>Field number for the "target_id" field.</summary>
public const int TargetIdFieldNumber = 2;
private global::Bgs.Protocol.EntityId targetId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId TargetId {
get { return targetId_; }
set {
targetId_ = value;
}
}
/// <summary>Gets whether the target_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasTargetId {
get { return targetId_ != null; }
}
/// <summary>Clears the value of the target_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearTargetId() {
targetId_ = null;
}
/// <summary>Field number for the "params" field.</summary>
public const int ParamsFieldNumber = 3;
private global::Bgs.Protocol.InvitationParams params_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.InvitationParams Params {
get { return params_; }
set {
params_ = value;
}
}
/// <summary>Gets whether the params field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasParams {
get { return params_ != null; }
}
/// <summary>Clears the value of the params field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearParams() {
params_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as SendInvitationRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(SendInvitationRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentIdentity, other.AgentIdentity)) return false;
if (!object.Equals(TargetId, other.TargetId)) return false;
if (!object.Equals(Params, other.Params)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentIdentity) hash ^= AgentIdentity.GetHashCode();
if (HasTargetId) hash ^= TargetId.GetHashCode();
if (HasParams) hash ^= Params.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 (HasAgentIdentity) {
output.WriteRawTag(10);
output.WriteMessage(AgentIdentity);
}
if (HasTargetId) {
output.WriteRawTag(18);
output.WriteMessage(TargetId);
}
if (HasParams) {
output.WriteRawTag(26);
output.WriteMessage(Params);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentIdentity) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentIdentity);
}
if (HasTargetId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId);
}
if (HasParams) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Params);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(SendInvitationRequest other) {
if (other == null) {
return;
}
if (other.HasAgentIdentity) {
if (!HasAgentIdentity) {
AgentIdentity = new global::Bgs.Protocol.Identity();
}
AgentIdentity.MergeFrom(other.AgentIdentity);
}
if (other.HasTargetId) {
if (!HasTargetId) {
TargetId = new global::Bgs.Protocol.EntityId();
}
TargetId.MergeFrom(other.TargetId);
}
if (other.HasParams) {
if (!HasParams) {
Params = new global::Bgs.Protocol.InvitationParams();
}
Params.MergeFrom(other.Params);
}
_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 (!HasAgentIdentity) {
AgentIdentity = new global::Bgs.Protocol.Identity();
}
input.ReadMessage(AgentIdentity);
break;
}
case 18: {
if (!HasTargetId) {
TargetId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(TargetId);
break;
}
case 26: {
if (!HasParams) {
Params = new global::Bgs.Protocol.InvitationParams();
}
input.ReadMessage(Params);
break;
}
}
}
}
}
public sealed partial class RevokeInvitationRequest : pb::IMessage<RevokeInvitationRequest> {
private static readonly pb::MessageParser<RevokeInvitationRequest> _parser = new pb::MessageParser<RevokeInvitationRequest>(() => new RevokeInvitationRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<RevokeInvitationRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[3]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RevokeInvitationRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RevokeInvitationRequest(RevokeInvitationRequest other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
invitationId_ = other.invitationId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RevokeInvitationRequest Clone() {
return new RevokeInvitationRequest(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.EntityId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <summary>Gets whether the agent_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAgentId {
get { return agentId_ != null; }
}
/// <summary>Clears the value of the agent_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAgentId() {
agentId_ = null;
}
/// <summary>Field number for the "invitation_id" field.</summary>
public const int InvitationIdFieldNumber = 2;
private readonly static ulong InvitationIdDefaultValue = 0UL;
private ulong invitationId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong InvitationId {
get { if ((_hasBits0 & 1) != 0) { return invitationId_; } else { return InvitationIdDefaultValue; } }
set {
_hasBits0 |= 1;
invitationId_ = value;
}
}
/// <summary>Gets whether the "invitation_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasInvitationId {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "invitation_id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearInvitationId() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as RevokeInvitationRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(RevokeInvitationRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (InvitationId != other.InvitationId) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasInvitationId) hash ^= InvitationId.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 (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasInvitationId) {
output.WriteRawTag(17);
output.WriteFixed64(InvitationId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasInvitationId) {
size += 1 + 8;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(RevokeInvitationRequest other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasInvitationId) {
InvitationId = other.InvitationId;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AgentId);
break;
}
case 17: {
InvitationId = input.ReadFixed64();
break;
}
}
}
}
}
public sealed partial class AcceptInvitationRequest : pb::IMessage<AcceptInvitationRequest> {
private static readonly pb::MessageParser<AcceptInvitationRequest> _parser = new pb::MessageParser<AcceptInvitationRequest>(() => new AcceptInvitationRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<AcceptInvitationRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[4]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public AcceptInvitationRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public AcceptInvitationRequest(AcceptInvitationRequest other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
invitationId_ = other.invitationId_;
options_ = other.HasOptions ? other.options_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public AcceptInvitationRequest Clone() {
return new AcceptInvitationRequest(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.EntityId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <summary>Gets whether the agent_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAgentId {
get { return agentId_ != null; }
}
/// <summary>Clears the value of the agent_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAgentId() {
agentId_ = null;
}
/// <summary>Field number for the "invitation_id" field.</summary>
public const int InvitationIdFieldNumber = 3;
private readonly static ulong InvitationIdDefaultValue = 0UL;
private ulong invitationId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong InvitationId {
get { if ((_hasBits0 & 1) != 0) { return invitationId_; } else { return InvitationIdDefaultValue; } }
set {
_hasBits0 |= 1;
invitationId_ = value;
}
}
/// <summary>Gets whether the "invitation_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasInvitationId {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "invitation_id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearInvitationId() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "options" field.</summary>
public const int OptionsFieldNumber = 4;
private global::Bgs.Protocol.Friends.V1.AcceptInvitationOptions options_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Friends.V1.AcceptInvitationOptions Options {
get { return options_; }
set {
options_ = value;
}
}
/// <summary>Gets whether the options field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasOptions {
get { return options_ != null; }
}
/// <summary>Clears the value of the options field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearOptions() {
options_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as AcceptInvitationRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(AcceptInvitationRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (InvitationId != other.InvitationId) return false;
if (!object.Equals(Options, other.Options)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasInvitationId) hash ^= InvitationId.GetHashCode();
if (HasOptions) hash ^= Options.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 (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasInvitationId) {
output.WriteRawTag(25);
output.WriteFixed64(InvitationId);
}
if (HasOptions) {
output.WriteRawTag(34);
output.WriteMessage(Options);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasInvitationId) {
size += 1 + 8;
}
if (HasOptions) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(AcceptInvitationRequest other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasInvitationId) {
InvitationId = other.InvitationId;
}
if (other.HasOptions) {
if (!HasOptions) {
Options = new global::Bgs.Protocol.Friends.V1.AcceptInvitationOptions();
}
Options.MergeFrom(other.Options);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AgentId);
break;
}
case 25: {
InvitationId = input.ReadFixed64();
break;
}
case 34: {
if (!HasOptions) {
Options = new global::Bgs.Protocol.Friends.V1.AcceptInvitationOptions();
}
input.ReadMessage(Options);
break;
}
}
}
}
}
public sealed partial class DeclineInvitationRequest : pb::IMessage<DeclineInvitationRequest> {
private static readonly pb::MessageParser<DeclineInvitationRequest> _parser = new pb::MessageParser<DeclineInvitationRequest>(() => new DeclineInvitationRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<DeclineInvitationRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[5]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public DeclineInvitationRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public DeclineInvitationRequest(DeclineInvitationRequest other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
invitationId_ = other.invitationId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public DeclineInvitationRequest Clone() {
return new DeclineInvitationRequest(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.EntityId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <summary>Gets whether the agent_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAgentId {
get { return agentId_ != null; }
}
/// <summary>Clears the value of the agent_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAgentId() {
agentId_ = null;
}
/// <summary>Field number for the "invitation_id" field.</summary>
public const int InvitationIdFieldNumber = 3;
private readonly static ulong InvitationIdDefaultValue = 0UL;
private ulong invitationId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong InvitationId {
get { if ((_hasBits0 & 1) != 0) { return invitationId_; } else { return InvitationIdDefaultValue; } }
set {
_hasBits0 |= 1;
invitationId_ = value;
}
}
/// <summary>Gets whether the "invitation_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasInvitationId {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "invitation_id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearInvitationId() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as DeclineInvitationRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(DeclineInvitationRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (InvitationId != other.InvitationId) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasInvitationId) hash ^= InvitationId.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 (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasInvitationId) {
output.WriteRawTag(25);
output.WriteFixed64(InvitationId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasInvitationId) {
size += 1 + 8;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(DeclineInvitationRequest other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasInvitationId) {
InvitationId = other.InvitationId;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AgentId);
break;
}
case 25: {
InvitationId = input.ReadFixed64();
break;
}
}
}
}
}
public sealed partial class IgnoreInvitationRequest : pb::IMessage<IgnoreInvitationRequest> {
private static readonly pb::MessageParser<IgnoreInvitationRequest> _parser = new pb::MessageParser<IgnoreInvitationRequest>(() => new IgnoreInvitationRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<IgnoreInvitationRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[6]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public IgnoreInvitationRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public IgnoreInvitationRequest(IgnoreInvitationRequest other) : this() {
_hasBits0 = other._hasBits0;
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
invitationId_ = other.invitationId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public IgnoreInvitationRequest Clone() {
return new IgnoreInvitationRequest(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.EntityId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <summary>Gets whether the agent_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAgentId {
get { return agentId_ != null; }
}
/// <summary>Clears the value of the agent_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAgentId() {
agentId_ = null;
}
/// <summary>Field number for the "invitation_id" field.</summary>
public const int InvitationIdFieldNumber = 3;
private readonly static ulong InvitationIdDefaultValue = 0UL;
private ulong invitationId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong InvitationId {
get { if ((_hasBits0 & 1) != 0) { return invitationId_; } else { return InvitationIdDefaultValue; } }
set {
_hasBits0 |= 1;
invitationId_ = value;
}
}
/// <summary>Gets whether the "invitation_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasInvitationId {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "invitation_id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearInvitationId() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as IgnoreInvitationRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(IgnoreInvitationRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (InvitationId != other.InvitationId) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasInvitationId) hash ^= InvitationId.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 (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasInvitationId) {
output.WriteRawTag(25);
output.WriteFixed64(InvitationId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasInvitationId) {
size += 1 + 8;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(IgnoreInvitationRequest other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasInvitationId) {
InvitationId = other.InvitationId;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AgentId);
break;
}
case 25: {
InvitationId = input.ReadFixed64();
break;
}
}
}
}
}
public sealed partial class RemoveFriendRequest : pb::IMessage<RemoveFriendRequest> {
private static readonly pb::MessageParser<RemoveFriendRequest> _parser = new pb::MessageParser<RemoveFriendRequest>(() => new RemoveFriendRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<RemoveFriendRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[7]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RemoveFriendRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RemoveFriendRequest(RemoveFriendRequest other) : this() {
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
targetId_ = other.HasTargetId ? other.targetId_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RemoveFriendRequest Clone() {
return new RemoveFriendRequest(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.EntityId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <summary>Gets whether the agent_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAgentId {
get { return agentId_ != null; }
}
/// <summary>Clears the value of the agent_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAgentId() {
agentId_ = null;
}
/// <summary>Field number for the "target_id" field.</summary>
public const int TargetIdFieldNumber = 2;
private global::Bgs.Protocol.EntityId targetId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId TargetId {
get { return targetId_; }
set {
targetId_ = value;
}
}
/// <summary>Gets whether the target_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasTargetId {
get { return targetId_ != null; }
}
/// <summary>Clears the value of the target_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearTargetId() {
targetId_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as RemoveFriendRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(RemoveFriendRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (!object.Equals(TargetId, other.TargetId)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasTargetId) hash ^= TargetId.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 (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasTargetId) {
output.WriteRawTag(18);
output.WriteMessage(TargetId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasTargetId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(RemoveFriendRequest other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasTargetId) {
if (!HasTargetId) {
TargetId = new global::Bgs.Protocol.EntityId();
}
TargetId.MergeFrom(other.TargetId);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AgentId);
break;
}
case 18: {
if (!HasTargetId) {
TargetId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(TargetId);
break;
}
}
}
}
}
public sealed partial class RevokeAllInvitationsRequest : pb::IMessage<RevokeAllInvitationsRequest> {
private static readonly pb::MessageParser<RevokeAllInvitationsRequest> _parser = new pb::MessageParser<RevokeAllInvitationsRequest>(() => new RevokeAllInvitationsRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<RevokeAllInvitationsRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[8]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RevokeAllInvitationsRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RevokeAllInvitationsRequest(RevokeAllInvitationsRequest other) : this() {
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public RevokeAllInvitationsRequest Clone() {
return new RevokeAllInvitationsRequest(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 2;
private global::Bgs.Protocol.EntityId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <summary>Gets whether the agent_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAgentId {
get { return agentId_ != null; }
}
/// <summary>Clears the value of the agent_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAgentId() {
agentId_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as RevokeAllInvitationsRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(RevokeAllInvitationsRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.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 (HasAgentId) {
output.WriteRawTag(18);
output.WriteMessage(AgentId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(RevokeAllInvitationsRequest other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
AgentId.MergeFrom(other.AgentId);
}
_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 18: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AgentId);
break;
}
}
}
}
}
public sealed partial class ViewFriendsRequest : pb::IMessage<ViewFriendsRequest> {
private static readonly pb::MessageParser<ViewFriendsRequest> _parser = new pb::MessageParser<ViewFriendsRequest>(() => new ViewFriendsRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ViewFriendsRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[9]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ViewFriendsRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ViewFriendsRequest(ViewFriendsRequest other) : this() {
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
targetId_ = other.HasTargetId ? other.targetId_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ViewFriendsRequest Clone() {
return new ViewFriendsRequest(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.EntityId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <summary>Gets whether the agent_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAgentId {
get { return agentId_ != null; }
}
/// <summary>Clears the value of the agent_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAgentId() {
agentId_ = null;
}
/// <summary>Field number for the "target_id" field.</summary>
public const int TargetIdFieldNumber = 2;
private global::Bgs.Protocol.EntityId targetId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId TargetId {
get { return targetId_; }
set {
targetId_ = value;
}
}
/// <summary>Gets whether the target_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasTargetId {
get { return targetId_ != null; }
}
/// <summary>Clears the value of the target_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearTargetId() {
targetId_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as ViewFriendsRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(ViewFriendsRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (!object.Equals(TargetId, other.TargetId)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasTargetId) hash ^= TargetId.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 (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasTargetId) {
output.WriteRawTag(18);
output.WriteMessage(TargetId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasTargetId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(ViewFriendsRequest other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasTargetId) {
if (!HasTargetId) {
TargetId = new global::Bgs.Protocol.EntityId();
}
TargetId.MergeFrom(other.TargetId);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AgentId);
break;
}
case 18: {
if (!HasTargetId) {
TargetId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(TargetId);
break;
}
}
}
}
}
public sealed partial class ViewFriendsResponse : pb::IMessage<ViewFriendsResponse> {
private static readonly pb::MessageParser<ViewFriendsResponse> _parser = new pb::MessageParser<ViewFriendsResponse>(() => new ViewFriendsResponse());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<ViewFriendsResponse> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[10]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ViewFriendsResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ViewFriendsResponse(ViewFriendsResponse other) : this() {
friends_ = other.friends_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ViewFriendsResponse Clone() {
return new ViewFriendsResponse(this);
}
/// <summary>Field number for the "friends" field.</summary>
public const int FriendsFieldNumber = 1;
private static readonly pb::FieldCodec<global::Bgs.Protocol.Friends.V1.FriendOfFriend> _repeated_friends_codec
= pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Friends.V1.FriendOfFriend.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.Friends.V1.FriendOfFriend> friends_ = new pbc::RepeatedField<global::Bgs.Protocol.Friends.V1.FriendOfFriend>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.Friends.V1.FriendOfFriend> Friends {
get { return friends_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as ViewFriendsResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(ViewFriendsResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!friends_.Equals(other.friends_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
hash ^= friends_.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) {
friends_.WriteTo(output, _repeated_friends_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
size += friends_.CalculateSize(_repeated_friends_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(ViewFriendsResponse other) {
if (other == null) {
return;
}
friends_.Add(other.friends_);
_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: {
friends_.AddEntriesFrom(input, _repeated_friends_codec);
break;
}
}
}
}
}
public sealed partial class UpdateFriendStateRequest : pb::IMessage<UpdateFriendStateRequest> {
private static readonly pb::MessageParser<UpdateFriendStateRequest> _parser = new pb::MessageParser<UpdateFriendStateRequest>(() => new UpdateFriendStateRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<UpdateFriendStateRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[11]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UpdateFriendStateRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UpdateFriendStateRequest(UpdateFriendStateRequest other) : this() {
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
targetId_ = other.HasTargetId ? other.targetId_.Clone() : null;
attribute_ = other.attribute_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UpdateFriendStateRequest Clone() {
return new UpdateFriendStateRequest(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.EntityId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <summary>Gets whether the agent_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAgentId {
get { return agentId_ != null; }
}
/// <summary>Clears the value of the agent_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAgentId() {
agentId_ = null;
}
/// <summary>Field number for the "target_id" field.</summary>
public const int TargetIdFieldNumber = 2;
private global::Bgs.Protocol.EntityId targetId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId TargetId {
get { return targetId_; }
set {
targetId_ = value;
}
}
/// <summary>Gets whether the target_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasTargetId {
get { return targetId_ != null; }
}
/// <summary>Clears the value of the target_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearTargetId() {
targetId_ = null;
}
/// <summary>Field number for the "attribute" field.</summary>
public const int AttributeFieldNumber = 3;
private static readonly pb::FieldCodec<global::Bgs.Protocol.Attribute> _repeated_attribute_codec
= pb::FieldCodec.ForMessage(26, global::Bgs.Protocol.Attribute.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.Attribute> attribute_ = new pbc::RepeatedField<global::Bgs.Protocol.Attribute>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.Attribute> Attribute {
get { return attribute_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as UpdateFriendStateRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(UpdateFriendStateRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (!object.Equals(TargetId, other.TargetId)) 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 (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasTargetId) hash ^= TargetId.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 (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasTargetId) {
output.WriteRawTag(18);
output.WriteMessage(TargetId);
}
attribute_.WriteTo(output, _repeated_attribute_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasTargetId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId);
}
size += attribute_.CalculateSize(_repeated_attribute_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(UpdateFriendStateRequest other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasTargetId) {
if (!HasTargetId) {
TargetId = new global::Bgs.Protocol.EntityId();
}
TargetId.MergeFrom(other.TargetId);
}
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 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AgentId);
break;
}
case 18: {
if (!HasTargetId) {
TargetId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(TargetId);
break;
}
case 26: {
attribute_.AddEntriesFrom(input, _repeated_attribute_codec);
break;
}
}
}
}
}
public sealed partial class GetFriendListRequest : pb::IMessage<GetFriendListRequest> {
private static readonly pb::MessageParser<GetFriendListRequest> _parser = new pb::MessageParser<GetFriendListRequest>(() => new GetFriendListRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<GetFriendListRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[12]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public GetFriendListRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public GetFriendListRequest(GetFriendListRequest other) : this() {
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public GetFriendListRequest Clone() {
return new GetFriendListRequest(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 2;
private global::Bgs.Protocol.EntityId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <summary>Gets whether the agent_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAgentId {
get { return agentId_ != null; }
}
/// <summary>Clears the value of the agent_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAgentId() {
agentId_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as GetFriendListRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(GetFriendListRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.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 (HasAgentId) {
output.WriteRawTag(18);
output.WriteMessage(AgentId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(GetFriendListRequest other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
AgentId.MergeFrom(other.AgentId);
}
_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 18: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AgentId);
break;
}
}
}
}
}
public sealed partial class GetFriendListResponse : pb::IMessage<GetFriendListResponse> {
private static readonly pb::MessageParser<GetFriendListResponse> _parser = new pb::MessageParser<GetFriendListResponse>(() => new GetFriendListResponse());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<GetFriendListResponse> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[13]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public GetFriendListResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public GetFriendListResponse(GetFriendListResponse other) : this() {
friends_ = other.friends_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public GetFriendListResponse Clone() {
return new GetFriendListResponse(this);
}
/// <summary>Field number for the "friends" field.</summary>
public const int FriendsFieldNumber = 1;
private static readonly pb::FieldCodec<global::Bgs.Protocol.Friends.V1.Friend> _repeated_friends_codec
= pb::FieldCodec.ForMessage(10, global::Bgs.Protocol.Friends.V1.Friend.Parser);
private readonly pbc::RepeatedField<global::Bgs.Protocol.Friends.V1.Friend> friends_ = new pbc::RepeatedField<global::Bgs.Protocol.Friends.V1.Friend>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<global::Bgs.Protocol.Friends.V1.Friend> Friends {
get { return friends_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as GetFriendListResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(GetFriendListResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!friends_.Equals(other.friends_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
hash ^= friends_.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) {
friends_.WriteTo(output, _repeated_friends_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
size += friends_.CalculateSize(_repeated_friends_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(GetFriendListResponse other) {
if (other == null) {
return;
}
friends_.Add(other.friends_);
_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: {
friends_.AddEntriesFrom(input, _repeated_friends_codec);
break;
}
}
}
}
}
public sealed partial class CreateFriendshipRequest : pb::IMessage<CreateFriendshipRequest> {
private static readonly pb::MessageParser<CreateFriendshipRequest> _parser = new pb::MessageParser<CreateFriendshipRequest>(() => new CreateFriendshipRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<CreateFriendshipRequest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[14]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public CreateFriendshipRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public CreateFriendshipRequest(CreateFriendshipRequest other) : this() {
agentId_ = other.HasAgentId ? other.agentId_.Clone() : null;
targetId_ = other.HasTargetId ? other.targetId_.Clone() : null;
role_ = other.role_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public CreateFriendshipRequest Clone() {
return new CreateFriendshipRequest(this);
}
/// <summary>Field number for the "agent_id" field.</summary>
public const int AgentIdFieldNumber = 1;
private global::Bgs.Protocol.EntityId agentId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AgentId {
get { return agentId_; }
set {
agentId_ = value;
}
}
/// <summary>Gets whether the agent_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAgentId {
get { return agentId_ != null; }
}
/// <summary>Clears the value of the agent_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAgentId() {
agentId_ = null;
}
/// <summary>Field number for the "target_id" field.</summary>
public const int TargetIdFieldNumber = 2;
private global::Bgs.Protocol.EntityId targetId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId TargetId {
get { return targetId_; }
set {
targetId_ = value;
}
}
/// <summary>Gets whether the target_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasTargetId {
get { return targetId_ != null; }
}
/// <summary>Clears the value of the target_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearTargetId() {
targetId_ = null;
}
/// <summary>Field number for the "role" field.</summary>
public const int RoleFieldNumber = 3;
private static readonly pb::FieldCodec<uint> _repeated_role_codec
= pb::FieldCodec.ForUInt32(26);
private readonly pbc::RepeatedField<uint> role_ = new pbc::RepeatedField<uint>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField<uint> Role {
get { return role_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as CreateFriendshipRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(CreateFriendshipRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AgentId, other.AgentId)) return false;
if (!object.Equals(TargetId, other.TargetId)) return false;
if(!role_.Equals(other.role_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAgentId) hash ^= AgentId.GetHashCode();
if (HasTargetId) hash ^= TargetId.GetHashCode();
hash ^= role_.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 (HasAgentId) {
output.WriteRawTag(10);
output.WriteMessage(AgentId);
}
if (HasTargetId) {
output.WriteRawTag(18);
output.WriteMessage(TargetId);
}
role_.WriteTo(output, _repeated_role_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAgentId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AgentId);
}
if (HasTargetId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TargetId);
}
size += role_.CalculateSize(_repeated_role_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(CreateFriendshipRequest other) {
if (other == null) {
return;
}
if (other.HasAgentId) {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
AgentId.MergeFrom(other.AgentId);
}
if (other.HasTargetId) {
if (!HasTargetId) {
TargetId = new global::Bgs.Protocol.EntityId();
}
TargetId.MergeFrom(other.TargetId);
}
role_.Add(other.role_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (!HasAgentId) {
AgentId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AgentId);
break;
}
case 18: {
if (!HasTargetId) {
TargetId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(TargetId);
break;
}
case 26:
case 24: {
role_.AddEntriesFrom(input, _repeated_role_codec);
break;
}
}
}
}
}
public sealed partial class FriendNotification : pb::IMessage<FriendNotification> {
private static readonly pb::MessageParser<FriendNotification> _parser = new pb::MessageParser<FriendNotification>(() => new FriendNotification());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<FriendNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[15]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public FriendNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public FriendNotification(FriendNotification other) : this() {
target_ = other.HasTarget ? other.target_.Clone() : null;
accountId_ = other.HasAccountId ? other.accountId_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public FriendNotification Clone() {
return new FriendNotification(this);
}
/// <summary>Field number for the "target" field.</summary>
public const int TargetFieldNumber = 1;
private global::Bgs.Protocol.Friends.V1.Friend target_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Friends.V1.Friend Target {
get { return target_; }
set {
target_ = value;
}
}
/// <summary>Gets whether the target field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasTarget {
get { return target_ != null; }
}
/// <summary>Clears the value of the target field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearTarget() {
target_ = null;
}
/// <summary>Field number for the "account_id" field.</summary>
public const int AccountIdFieldNumber = 5;
private global::Bgs.Protocol.EntityId accountId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AccountId {
get { return accountId_; }
set {
accountId_ = value;
}
}
/// <summary>Gets whether the account_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAccountId {
get { return accountId_ != null; }
}
/// <summary>Clears the value of the account_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAccountId() {
accountId_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as FriendNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(FriendNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Target, other.Target)) return false;
if (!object.Equals(AccountId, other.AccountId)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasTarget) hash ^= Target.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 (HasTarget) {
output.WriteRawTag(10);
output.WriteMessage(Target);
}
if (HasAccountId) {
output.WriteRawTag(42);
output.WriteMessage(AccountId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasTarget) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Target);
}
if (HasAccountId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(FriendNotification other) {
if (other == null) {
return;
}
if (other.HasTarget) {
if (!HasTarget) {
Target = new global::Bgs.Protocol.Friends.V1.Friend();
}
Target.MergeFrom(other.Target);
}
if (other.HasAccountId) {
if (!HasAccountId) {
AccountId = new global::Bgs.Protocol.EntityId();
}
AccountId.MergeFrom(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 (!HasTarget) {
Target = new global::Bgs.Protocol.Friends.V1.Friend();
}
input.ReadMessage(Target);
break;
}
case 42: {
if (!HasAccountId) {
AccountId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AccountId);
break;
}
}
}
}
}
public sealed partial class UpdateFriendStateNotification : pb::IMessage<UpdateFriendStateNotification> {
private static readonly pb::MessageParser<UpdateFriendStateNotification> _parser = new pb::MessageParser<UpdateFriendStateNotification>(() => new UpdateFriendStateNotification());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<UpdateFriendStateNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[16]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UpdateFriendStateNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UpdateFriendStateNotification(UpdateFriendStateNotification other) : this() {
changedFriend_ = other.HasChangedFriend ? other.changedFriend_.Clone() : null;
accountId_ = other.HasAccountId ? other.accountId_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public UpdateFriendStateNotification Clone() {
return new UpdateFriendStateNotification(this);
}
/// <summary>Field number for the "changed_friend" field.</summary>
public const int ChangedFriendFieldNumber = 1;
private global::Bgs.Protocol.Friends.V1.Friend changedFriend_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Friends.V1.Friend ChangedFriend {
get { return changedFriend_; }
set {
changedFriend_ = value;
}
}
/// <summary>Gets whether the changed_friend field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasChangedFriend {
get { return changedFriend_ != null; }
}
/// <summary>Clears the value of the changed_friend field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearChangedFriend() {
changedFriend_ = null;
}
/// <summary>Field number for the "account_id" field.</summary>
public const int AccountIdFieldNumber = 5;
private global::Bgs.Protocol.EntityId accountId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AccountId {
get { return accountId_; }
set {
accountId_ = value;
}
}
/// <summary>Gets whether the account_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAccountId {
get { return accountId_ != null; }
}
/// <summary>Clears the value of the account_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAccountId() {
accountId_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as UpdateFriendStateNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(UpdateFriendStateNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(ChangedFriend, other.ChangedFriend)) return false;
if (!object.Equals(AccountId, other.AccountId)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasChangedFriend) hash ^= ChangedFriend.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 (HasChangedFriend) {
output.WriteRawTag(10);
output.WriteMessage(ChangedFriend);
}
if (HasAccountId) {
output.WriteRawTag(42);
output.WriteMessage(AccountId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasChangedFriend) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChangedFriend);
}
if (HasAccountId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(UpdateFriendStateNotification other) {
if (other == null) {
return;
}
if (other.HasChangedFriend) {
if (!HasChangedFriend) {
ChangedFriend = new global::Bgs.Protocol.Friends.V1.Friend();
}
ChangedFriend.MergeFrom(other.ChangedFriend);
}
if (other.HasAccountId) {
if (!HasAccountId) {
AccountId = new global::Bgs.Protocol.EntityId();
}
AccountId.MergeFrom(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 (!HasChangedFriend) {
ChangedFriend = new global::Bgs.Protocol.Friends.V1.Friend();
}
input.ReadMessage(ChangedFriend);
break;
}
case 42: {
if (!HasAccountId) {
AccountId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AccountId);
break;
}
}
}
}
}
public sealed partial class InvitationNotification : pb::IMessage<InvitationNotification> {
private static readonly pb::MessageParser<InvitationNotification> _parser = new pb::MessageParser<InvitationNotification>(() => new InvitationNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<InvitationNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[17]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public InvitationNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public InvitationNotification(InvitationNotification other) : this() {
_hasBits0 = other._hasBits0;
invitation_ = other.HasInvitation ? other.invitation_.Clone() : null;
reason_ = other.reason_;
accountId_ = other.HasAccountId ? other.accountId_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public InvitationNotification Clone() {
return new InvitationNotification(this);
}
/// <summary>Field number for the "invitation" field.</summary>
public const int InvitationFieldNumber = 1;
private global::Bgs.Protocol.Friends.V1.ReceivedInvitation invitation_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Friends.V1.ReceivedInvitation Invitation {
get { return invitation_; }
set {
invitation_ = value;
}
}
/// <summary>Gets whether the invitation field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasInvitation {
get { return invitation_ != null; }
}
/// <summary>Clears the value of the invitation field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearInvitation() {
invitation_ = null;
}
/// <summary>Field number for the "reason" field.</summary>
public const int ReasonFieldNumber = 3;
private readonly static uint ReasonDefaultValue = 0;
private uint reason_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Reason {
get { if ((_hasBits0 & 1) != 0) { return reason_; } else { return ReasonDefaultValue; } }
set {
_hasBits0 |= 1;
reason_ = value;
}
}
/// <summary>Gets whether the "reason" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasReason {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "reason" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearReason() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "account_id" field.</summary>
public const int AccountIdFieldNumber = 5;
private global::Bgs.Protocol.EntityId accountId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AccountId {
get { return accountId_; }
set {
accountId_ = value;
}
}
/// <summary>Gets whether the account_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAccountId {
get { return accountId_ != null; }
}
/// <summary>Clears the value of the account_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAccountId() {
accountId_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as InvitationNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(InvitationNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Invitation, other.Invitation)) return false;
if (Reason != other.Reason) return false;
if (!object.Equals(AccountId, other.AccountId)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasInvitation) hash ^= Invitation.GetHashCode();
if (HasReason) hash ^= Reason.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 (HasInvitation) {
output.WriteRawTag(10);
output.WriteMessage(Invitation);
}
if (HasReason) {
output.WriteRawTag(24);
output.WriteUInt32(Reason);
}
if (HasAccountId) {
output.WriteRawTag(42);
output.WriteMessage(AccountId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasInvitation) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Invitation);
}
if (HasReason) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Reason);
}
if (HasAccountId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(InvitationNotification other) {
if (other == null) {
return;
}
if (other.HasInvitation) {
if (!HasInvitation) {
Invitation = new global::Bgs.Protocol.Friends.V1.ReceivedInvitation();
}
Invitation.MergeFrom(other.Invitation);
}
if (other.HasReason) {
Reason = other.Reason;
}
if (other.HasAccountId) {
if (!HasAccountId) {
AccountId = new global::Bgs.Protocol.EntityId();
}
AccountId.MergeFrom(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 (!HasInvitation) {
Invitation = new global::Bgs.Protocol.Friends.V1.ReceivedInvitation();
}
input.ReadMessage(Invitation);
break;
}
case 24: {
Reason = input.ReadUInt32();
break;
}
case 42: {
if (!HasAccountId) {
AccountId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AccountId);
break;
}
}
}
}
}
public sealed partial class SentInvitationAddedNotification : pb::IMessage<SentInvitationAddedNotification> {
private static readonly pb::MessageParser<SentInvitationAddedNotification> _parser = new pb::MessageParser<SentInvitationAddedNotification>(() => new SentInvitationAddedNotification());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SentInvitationAddedNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[18]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SentInvitationAddedNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SentInvitationAddedNotification(SentInvitationAddedNotification other) : this() {
accountId_ = other.HasAccountId ? other.accountId_.Clone() : null;
invitation_ = other.HasInvitation ? other.invitation_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SentInvitationAddedNotification Clone() {
return new SentInvitationAddedNotification(this);
}
/// <summary>Field number for the "account_id" field.</summary>
public const int AccountIdFieldNumber = 1;
private global::Bgs.Protocol.EntityId accountId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AccountId {
get { return accountId_; }
set {
accountId_ = value;
}
}
/// <summary>Gets whether the account_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAccountId {
get { return accountId_ != null; }
}
/// <summary>Clears the value of the account_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAccountId() {
accountId_ = null;
}
/// <summary>Field number for the "invitation" field.</summary>
public const int InvitationFieldNumber = 2;
private global::Bgs.Protocol.Friends.V1.SentInvitation invitation_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.Friends.V1.SentInvitation Invitation {
get { return invitation_; }
set {
invitation_ = value;
}
}
/// <summary>Gets whether the invitation field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasInvitation {
get { return invitation_ != null; }
}
/// <summary>Clears the value of the invitation field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearInvitation() {
invitation_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as SentInvitationAddedNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(SentInvitationAddedNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AccountId, other.AccountId)) return false;
if (!object.Equals(Invitation, other.Invitation)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAccountId) hash ^= AccountId.GetHashCode();
if (HasInvitation) hash ^= Invitation.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 (HasAccountId) {
output.WriteRawTag(10);
output.WriteMessage(AccountId);
}
if (HasInvitation) {
output.WriteRawTag(18);
output.WriteMessage(Invitation);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAccountId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId);
}
if (HasInvitation) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Invitation);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(SentInvitationAddedNotification other) {
if (other == null) {
return;
}
if (other.HasAccountId) {
if (!HasAccountId) {
AccountId = new global::Bgs.Protocol.EntityId();
}
AccountId.MergeFrom(other.AccountId);
}
if (other.HasInvitation) {
if (!HasInvitation) {
Invitation = new global::Bgs.Protocol.Friends.V1.SentInvitation();
}
Invitation.MergeFrom(other.Invitation);
}
_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 (!HasAccountId) {
AccountId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AccountId);
break;
}
case 18: {
if (!HasInvitation) {
Invitation = new global::Bgs.Protocol.Friends.V1.SentInvitation();
}
input.ReadMessage(Invitation);
break;
}
}
}
}
}
public sealed partial class SentInvitationRemovedNotification : pb::IMessage<SentInvitationRemovedNotification> {
private static readonly pb::MessageParser<SentInvitationRemovedNotification> _parser = new pb::MessageParser<SentInvitationRemovedNotification>(() => new SentInvitationRemovedNotification());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser<SentInvitationRemovedNotification> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Bgs.Protocol.Friends.V1.FriendsServiceReflection.Descriptor.MessageTypes[19]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SentInvitationRemovedNotification() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SentInvitationRemovedNotification(SentInvitationRemovedNotification other) : this() {
_hasBits0 = other._hasBits0;
accountId_ = other.HasAccountId ? other.accountId_.Clone() : null;
invitationId_ = other.invitationId_;
reason_ = other.reason_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public SentInvitationRemovedNotification Clone() {
return new SentInvitationRemovedNotification(this);
}
/// <summary>Field number for the "account_id" field.</summary>
public const int AccountIdFieldNumber = 1;
private global::Bgs.Protocol.EntityId accountId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.EntityId AccountId {
get { return accountId_; }
set {
accountId_ = value;
}
}
/// <summary>Gets whether the account_id field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasAccountId {
get { return accountId_ != null; }
}
/// <summary>Clears the value of the account_id field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearAccountId() {
accountId_ = null;
}
/// <summary>Field number for the "invitation_id" field.</summary>
public const int InvitationIdFieldNumber = 2;
private readonly static ulong InvitationIdDefaultValue = 0UL;
private ulong invitationId_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public ulong InvitationId {
get { if ((_hasBits0 & 1) != 0) { return invitationId_; } else { return InvitationIdDefaultValue; } }
set {
_hasBits0 |= 1;
invitationId_ = value;
}
}
/// <summary>Gets whether the "invitation_id" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasInvitationId {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "invitation_id" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearInvitationId() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "reason" field.</summary>
public const int ReasonFieldNumber = 3;
private readonly static uint ReasonDefaultValue = 0;
private uint reason_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Reason {
get { if ((_hasBits0 & 2) != 0) { return reason_; } else { return ReasonDefaultValue; } }
set {
_hasBits0 |= 2;
reason_ = value;
}
}
/// <summary>Gets whether the "reason" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasReason {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "reason" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearReason() {
_hasBits0 &= ~2;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as SentInvitationRemovedNotification);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(SentInvitationRemovedNotification other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(AccountId, other.AccountId)) return false;
if (InvitationId != other.InvitationId) return false;
if (Reason != other.Reason) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HasAccountId) hash ^= AccountId.GetHashCode();
if (HasInvitationId) hash ^= InvitationId.GetHashCode();
if (HasReason) hash ^= Reason.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 (HasAccountId) {
output.WriteRawTag(10);
output.WriteMessage(AccountId);
}
if (HasInvitationId) {
output.WriteRawTag(17);
output.WriteFixed64(InvitationId);
}
if (HasReason) {
output.WriteRawTag(24);
output.WriteUInt32(Reason);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HasAccountId) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountId);
}
if (HasInvitationId) {
size += 1 + 8;
}
if (HasReason) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Reason);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(SentInvitationRemovedNotification other) {
if (other == null) {
return;
}
if (other.HasAccountId) {
if (!HasAccountId) {
AccountId = new global::Bgs.Protocol.EntityId();
}
AccountId.MergeFrom(other.AccountId);
}
if (other.HasInvitationId) {
InvitationId = other.InvitationId;
}
if (other.HasReason) {
Reason = other.Reason;
}
_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 (!HasAccountId) {
AccountId = new global::Bgs.Protocol.EntityId();
}
input.ReadMessage(AccountId);
break;
}
case 17: {
InvitationId = input.ReadFixed64();
break;
}
case 24: {
Reason = input.ReadUInt32();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code