Files
CypherCore/Source/Framework/Proto/FriendsService.cs
T
2020-04-25 00:12:46 -04:00

4314 lines
155 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",
"gQEKEFN1YnNjcmliZVJlcXVlc3QSKAoIYWdlbnRfaWQYASABKAsyFi5iZ3Mu",
"cHJvdG9jb2wuRW50aXR5SWQSEQoJb2JqZWN0X2lkGAIgAigEEjAKB2Zvcndh",
"cmQYAyABKAsyGy5iZ3MucHJvdG9jb2wuT2JqZWN0QWRkcmVzc0ICGAEigwEK",
"ElVuc3Vic2NyaWJlUmVxdWVzdBIoCghhZ2VudF9pZBgBIAEoCzIWLmJncy5w",
"cm90b2NvbC5FbnRpdHlJZBIRCglvYmplY3RfaWQYAiABKAQSMAoHZm9yd2Fy",
"ZBgDIAEoCzIbLmJncy5wcm90b2NvbC5PYmplY3RBZGRyZXNzQgIYASKiAQoV",
"U2VuZEludml0YXRpb25SZXF1ZXN0Ei4KDmFnZW50X2lkZW50aXR5GAEgASgL",
"MhYuYmdzLnByb3RvY29sLklkZW50aXR5EikKCXRhcmdldF9pZBgCIAIoCzIW",
"LmJncy5wcm90b2NvbC5FbnRpdHlJZBIuCgZwYXJhbXMYAyACKAsyHi5iZ3Mu",
"cHJvdG9jb2wuSW52aXRhdGlvblBhcmFtcyJaChdSZXZva2VJbnZpdGF0aW9u",
"UmVxdWVzdBIoCghhZ2VudF9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRp",
"dHlJZBIVCg1pbnZpdGF0aW9uX2lkGAIgASgGIp0BChdBY2NlcHRJbnZpdGF0",
"aW9uUmVxdWVzdBIoCghhZ2VudF9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5F",
"bnRpdHlJZBIVCg1pbnZpdGF0aW9uX2lkGAMgAigGEkEKB29wdGlvbnMYBCAB",
"KAsyMC5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5BY2NlcHRJbnZpdGF0aW9u",
"T3B0aW9ucyJbChhEZWNsaW5lSW52aXRhdGlvblJlcXVlc3QSKAoIYWdlbnRf",
"aWQYASABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSFQoNaW52aXRhdGlv",
"bl9pZBgDIAIoBiJrChdJZ25vcmVJbnZpdGF0aW9uUmVxdWVzdBIoCghhZ2Vu",
"dF9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIVCg1pbnZpdGF0",
"aW9uX2lkGAMgAigGEg8KB3Byb2dyYW0YBCABKAciagoTUmVtb3ZlRnJpZW5k",
"UmVxdWVzdBIoCghhZ2VudF9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRp",
"dHlJZBIpCgl0YXJnZXRfaWQYAiACKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5",
"SWQiRwobUmV2b2tlQWxsSW52aXRhdGlvbnNSZXF1ZXN0EigKCGFnZW50X2lk",
"GAIgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlkImkKElZpZXdGcmllbmRz",
"UmVxdWVzdBIoCghhZ2VudF9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRp",
"dHlJZBIpCgl0YXJnZXRfaWQYAiACKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5",
"SWQiTwoTVmlld0ZyaWVuZHNSZXNwb25zZRI4CgdmcmllbmRzGAEgAygLMicu",
"YmdzLnByb3RvY29sLmZyaWVuZHMudjEuRnJpZW5kT2ZGcmllbmQimwEKGFVw",
"ZGF0ZUZyaWVuZFN0YXRlUmVxdWVzdBIoCghhZ2VudF9pZBgBIAEoCzIWLmJn",
"cy5wcm90b2NvbC5FbnRpdHlJZBIpCgl0YXJnZXRfaWQYAiACKAsyFi5iZ3Mu",
"cHJvdG9jb2wuRW50aXR5SWQSKgoJYXR0cmlidXRlGAMgAygLMhcuYmdzLnBy",
"b3RvY29sLkF0dHJpYnV0ZSJAChRHZXRGcmllbmRMaXN0UmVxdWVzdBIoCghh",
"Z2VudF9pZBgCIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZCJJChVHZXRG",
"cmllbmRMaXN0UmVzcG9uc2USMAoHZnJpZW5kcxgBIAMoCzIfLmJncy5wcm90",
"b2NvbC5mcmllbmRzLnYxLkZyaWVuZCKAAQoXQ3JlYXRlRnJpZW5kc2hpcFJl",
"cXVlc3QSKAoIYWdlbnRfaWQYASABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5",
"SWQSKQoJdGFyZ2V0X2lkGAIgASgLMhYuYmdzLnByb3RvY29sLkVudGl0eUlk",
"EhAKBHJvbGUYAyADKA1CAhABIqMBChJGcmllbmROb3RpZmljYXRpb24SLwoG",
"dGFyZ2V0GAEgAigLMh8uYmdzLnByb3RvY29sLmZyaWVuZHMudjEuRnJpZW5k",
"EioKCmFjY291bnRfaWQYBSABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQS",
"MAoHZm9yd2FyZBgGIAEoCzIbLmJncy5wcm90b2NvbC5PYmplY3RBZGRyZXNz",
"QgIYASK2AQodVXBkYXRlRnJpZW5kU3RhdGVOb3RpZmljYXRpb24SNwoOY2hh",
"bmdlZF9mcmllbmQYASACKAsyHy5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5G",
"cmllbmQSKgoKYWNjb3VudF9pZBgFIAEoCzIWLmJncy5wcm90b2NvbC5FbnRp",
"dHlJZBIwCgdmb3J3YXJkGAYgASgLMhsuYmdzLnByb3RvY29sLk9iamVjdEFk",
"ZHJlc3NCAhgBIsoBChZJbnZpdGF0aW9uTm90aWZpY2F0aW9uEj8KCmludml0",
"YXRpb24YASACKAsyKy5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5SZWNlaXZl",
"ZEludml0YXRpb24SEQoGcmVhc29uGAMgASgNOgEwEioKCmFjY291bnRfaWQY",
"BSABKAsyFi5iZ3MucHJvdG9jb2wuRW50aXR5SWQSMAoHZm9yd2FyZBgGIAEo",
"CzIbLmJncy5wcm90b2NvbC5PYmplY3RBZGRyZXNzQgIYASK8AQofU2VudElu",
"dml0YXRpb25BZGRlZE5vdGlmaWNhdGlvbhIqCgphY2NvdW50X2lkGAEgASgL",
"MhYuYmdzLnByb3RvY29sLkVudGl0eUlkEjsKCmludml0YXRpb24YAiABKAsy",
"Jy5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5TZW50SW52aXRhdGlvbhIwCgdm",
"b3J3YXJkGAMgASgLMhsuYmdzLnByb3RvY29sLk9iamVjdEFkZHJlc3NCAhgB",
"IqgBCiFTZW50SW52aXRhdGlvblJlbW92ZWROb3RpZmljYXRpb24SKgoKYWNj",
"b3VudF9pZBgBIAEoCzIWLmJncy5wcm90b2NvbC5FbnRpdHlJZBIVCg1pbnZp",
"dGF0aW9uX2lkGAIgASgGEg4KBnJlYXNvbhgDIAEoDRIwCgdmb3J3YXJkGAQg",
"ASgLMhsuYmdzLnByb3RvY29sLk9iamVjdEFkZHJlc3NCAhgBMoYLCg5Gcmll",
"bmRzU2VydmljZRJqCglTdWJzY3JpYmUSKS5iZ3MucHJvdG9jb2wuZnJpZW5k",
"cy52MS5TdWJzY3JpYmVSZXF1ZXN0GiouYmdzLnByb3RvY29sLmZyaWVuZHMu",
"djEuU3Vic2NyaWJlUmVzcG9uc2UiBoL5KwIIARJeCg5TZW5kSW52aXRhdGlv",
"bhIuLmJncy5wcm90b2NvbC5mcmllbmRzLnYxLlNlbmRJbnZpdGF0aW9uUmVx",
"dWVzdBoULmJncy5wcm90b2NvbC5Ob0RhdGEiBoL5KwIIAhJiChBBY2NlcHRJ",
"bnZpdGF0aW9uEjAuYmdzLnByb3RvY29sLmZyaWVuZHMudjEuQWNjZXB0SW52",
"aXRhdGlvblJlcXVlc3QaFC5iZ3MucHJvdG9jb2wuTm9EYXRhIgaC+SsCCAMS",
"YgoQUmV2b2tlSW52aXRhdGlvbhIwLmJncy5wcm90b2NvbC5mcmllbmRzLnYx",
"LlJldm9rZUludml0YXRpb25SZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5vRGF0",
"YSIGgvkrAggEEmcKEURlY2xpbmVJbnZpdGF0aW9uEjEuYmdzLnByb3RvY29s",
"LmZyaWVuZHMudjEuRGVjbGluZUludml0YXRpb25SZXF1ZXN0GhQuYmdzLnBy",
"b3RvY29sLk5vRGF0YSIJiAIBgvkrAggFEmIKEElnbm9yZUludml0YXRpb24S",
"MC5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5JZ25vcmVJbnZpdGF0aW9uUmVx",
"dWVzdBoULmJncy5wcm90b2NvbC5Ob0RhdGEiBoL5KwIIBhJaCgxSZW1vdmVG",
"cmllbmQSLC5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5SZW1vdmVGcmllbmRS",
"ZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5vRGF0YSIGgvkrAggIEnAKC1ZpZXdG",
"cmllbmRzEisuYmdzLnByb3RvY29sLmZyaWVuZHMudjEuVmlld0ZyaWVuZHNS",
"ZXF1ZXN0GiwuYmdzLnByb3RvY29sLmZyaWVuZHMudjEuVmlld0ZyaWVuZHNS",
"ZXNwb25zZSIGgvkrAggJEmQKEVVwZGF0ZUZyaWVuZFN0YXRlEjEuYmdzLnBy",
"b3RvY29sLmZyaWVuZHMudjEuVXBkYXRlRnJpZW5kU3RhdGVSZXF1ZXN0GhQu",
"YmdzLnByb3RvY29sLk5vRGF0YSIGgvkrAggKElgKC1Vuc3Vic2NyaWJlEisu",
"YmdzLnByb3RvY29sLmZyaWVuZHMudjEuVW5zdWJzY3JpYmVSZXF1ZXN0GhQu",
"YmdzLnByb3RvY29sLk5vRGF0YSIGgvkrAggLEmoKFFJldm9rZUFsbEludml0",
"YXRpb25zEjQuYmdzLnByb3RvY29sLmZyaWVuZHMudjEuUmV2b2tlQWxsSW52",
"aXRhdGlvbnNSZXF1ZXN0GhQuYmdzLnByb3RvY29sLk5vRGF0YSIGgvkrAggM",
"EnYKDUdldEZyaWVuZExpc3QSLS5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5H",
"ZXRGcmllbmRMaXN0UmVxdWVzdBouLmJncy5wcm90b2NvbC5mcmllbmRzLnYx",
"LkdldEZyaWVuZExpc3RSZXNwb25zZSIGgvkrAggNEmIKEENyZWF0ZUZyaWVu",
"ZHNoaXASMC5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5DcmVhdGVGcmllbmRz",
"aGlwUmVxdWVzdBoULmJncy5wcm90b2NvbC5Ob0RhdGEiBoL5KwIIDho9gvkr",
"JgokYm5ldC5wcm90b2NvbC5mcmllbmRzLkZyaWVuZHNTZXJ2aWNlgvkrCSoH",
"ZnJpZW5kc4r5KwIQATLMBgoPRnJpZW5kc0xpc3RlbmVyEl8KDU9uRnJpZW5k",
"QWRkZWQSKy5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5GcmllbmROb3RpZmlj",
"YXRpb24aGS5iZ3MucHJvdG9jb2wuTk9fUkVTUE9OU0UiBoL5KwIIARJhCg9P",
"bkZyaWVuZFJlbW92ZWQSKy5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5Gcmll",
"bmROb3RpZmljYXRpb24aGS5iZ3MucHJvdG9jb2wuTk9fUkVTUE9OU0UiBoL5",
"KwIIAhJvChlPblJlY2VpdmVkSW52aXRhdGlvbkFkZGVkEi8uYmdzLnByb3Rv",
"Y29sLmZyaWVuZHMudjEuSW52aXRhdGlvbk5vdGlmaWNhdGlvbhoZLmJncy5w",
"cm90b2NvbC5OT19SRVNQT05TRSIGgvkrAggDEnEKG09uUmVjZWl2ZWRJbnZp",
"dGF0aW9uUmVtb3ZlZBIvLmJncy5wcm90b2NvbC5mcmllbmRzLnYxLkludml0",
"YXRpb25Ob3RpZmljYXRpb24aGS5iZ3MucHJvdG9jb2wuTk9fUkVTUE9OU0Ui",
"BoL5KwIIBBJ0ChVPblNlbnRJbnZpdGF0aW9uQWRkZWQSOC5iZ3MucHJvdG9j",
"b2wuZnJpZW5kcy52MS5TZW50SW52aXRhdGlvbkFkZGVkTm90aWZpY2F0aW9u",
"GhkuYmdzLnByb3RvY29sLk5PX1JFU1BPTlNFIgaC+SsCCAUSeAoXT25TZW50",
"SW52aXRhdGlvblJlbW92ZWQSOi5iZ3MucHJvdG9jb2wuZnJpZW5kcy52MS5T",
"ZW50SW52aXRhdGlvblJlbW92ZWROb3RpZmljYXRpb24aGS5iZ3MucHJvdG9j",
"b2wuTk9fUkVTUE9OU0UiBoL5KwIIBhJwChNPblVwZGF0ZUZyaWVuZFN0YXRl",
"EjYuYmdzLnByb3RvY29sLmZyaWVuZHMudjEuVXBkYXRlRnJpZW5kU3RhdGVO",
"b3RpZmljYXRpb24aGS5iZ3MucHJvdG9jb2wuTk9fUkVTUE9OU0UiBoL5KwII",
"BxovgvkrJQojYm5ldC5wcm90b2NvbC5mcmllbmRzLkZyaWVuZHNOb3RpZnmK",
"+SsCCAFCNQoYYm5ldC5wcm90b2NvbC5mcmllbmRzLnYxQhNGcmllbmRzU2Vy",
"dmljZVByb3RvgAEAiAEB"));
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", "Forward" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.UnsubscribeRequest), global::Bgs.Protocol.Friends.V1.UnsubscribeRequest.Parser, new[]{ "AgentId", "ObjectId", "Forward" }, 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", "Program" }, 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", "Forward" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.UpdateFriendStateNotification), global::Bgs.Protocol.Friends.V1.UpdateFriendStateNotification.Parser, new[]{ "ChangedFriend", "AccountId", "Forward" }, 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", "Forward" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Bgs.Protocol.Friends.V1.SentInvitationAddedNotification), global::Bgs.Protocol.Friends.V1.SentInvitationAddedNotification.Parser, new[]{ "AccountId", "Invitation", "Forward" }, 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", "Forward" }, 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_;
forward_ = other.HasForward ? other.forward_.Clone() : null;
_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;
}
/// <summary>Field number for the "forward" field.</summary>
public const int ForwardFieldNumber = 3;
private global::Bgs.Protocol.ObjectAddress forward_;
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.ObjectAddress Forward {
get { return forward_; }
set {
forward_ = value;
}
}
/// <summary>Gets whether the forward field is set</summary>
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasForward {
get { return forward_ != null; }
}
/// <summary>Clears the value of the forward field</summary>
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearForward() {
forward_ = null;
}
[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;
if (!object.Equals(Forward, other.Forward)) 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 (HasForward) hash ^= Forward.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 (HasForward) {
output.WriteRawTag(26);
output.WriteMessage(Forward);
}
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 (HasForward) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Forward);
}
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;
}
if (other.HasForward) {
if (!HasForward) {
Forward = new global::Bgs.Protocol.ObjectAddress();
}
Forward.MergeFrom(other.Forward);
}
_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;
}
case 26: {
if (!HasForward) {
Forward = new global::Bgs.Protocol.ObjectAddress();
}
input.ReadMessage(Forward);
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_;
forward_ = other.HasForward ? other.forward_.Clone() : null;
_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;
}
/// <summary>Field number for the "forward" field.</summary>
public const int ForwardFieldNumber = 3;
private global::Bgs.Protocol.ObjectAddress forward_;
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.ObjectAddress Forward {
get { return forward_; }
set {
forward_ = value;
}
}
/// <summary>Gets whether the forward field is set</summary>
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasForward {
get { return forward_ != null; }
}
/// <summary>Clears the value of the forward field</summary>
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearForward() {
forward_ = null;
}
[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;
if (!object.Equals(Forward, other.Forward)) 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 (HasForward) hash ^= Forward.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 (HasForward) {
output.WriteRawTag(26);
output.WriteMessage(Forward);
}
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 (HasForward) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Forward);
}
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;
}
if (other.HasForward) {
if (!HasForward) {
Forward = new global::Bgs.Protocol.ObjectAddress();
}
Forward.MergeFrom(other.Forward);
}
_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;
}
case 26: {
if (!HasForward) {
Forward = new global::Bgs.Protocol.ObjectAddress();
}
input.ReadMessage(Forward);
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_;
program_ = other.program_;
_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;
}
/// <summary>Field number for the "program" field.</summary>
public const int ProgramFieldNumber = 4;
private readonly static uint ProgramDefaultValue = 0;
private uint program_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public uint Program {
get { if ((_hasBits0 & 2) != 0) { return program_; } else { return ProgramDefaultValue; } }
set {
_hasBits0 |= 2;
program_ = value;
}
}
/// <summary>Gets whether the "program" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasProgram {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "program" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearProgram() {
_hasBits0 &= ~2;
}
[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;
if (Program != other.Program) 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 (HasProgram) hash ^= Program.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 (HasProgram) {
output.WriteRawTag(37);
output.WriteFixed32(Program);
}
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 (HasProgram) {
size += 1 + 4;
}
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;
}
if (other.HasProgram) {
Program = other.Program;
}
_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 37: {
Program = input.ReadFixed32();
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;
forward_ = other.HasForward ? other.forward_.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;
}
/// <summary>Field number for the "forward" field.</summary>
public const int ForwardFieldNumber = 6;
private global::Bgs.Protocol.ObjectAddress forward_;
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.ObjectAddress Forward {
get { return forward_; }
set {
forward_ = value;
}
}
/// <summary>Gets whether the forward field is set</summary>
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasForward {
get { return forward_ != null; }
}
/// <summary>Clears the value of the forward field</summary>
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearForward() {
forward_ = 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;
if (!object.Equals(Forward, other.Forward)) 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 (HasForward) hash ^= Forward.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 (HasForward) {
output.WriteRawTag(50);
output.WriteMessage(Forward);
}
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 (HasForward) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Forward);
}
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);
}
if (other.HasForward) {
if (!HasForward) {
Forward = new global::Bgs.Protocol.ObjectAddress();
}
Forward.MergeFrom(other.Forward);
}
_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;
}
case 50: {
if (!HasForward) {
Forward = new global::Bgs.Protocol.ObjectAddress();
}
input.ReadMessage(Forward);
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;
forward_ = other.HasForward ? other.forward_.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;
}
/// <summary>Field number for the "forward" field.</summary>
public const int ForwardFieldNumber = 6;
private global::Bgs.Protocol.ObjectAddress forward_;
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.ObjectAddress Forward {
get { return forward_; }
set {
forward_ = value;
}
}
/// <summary>Gets whether the forward field is set</summary>
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasForward {
get { return forward_ != null; }
}
/// <summary>Clears the value of the forward field</summary>
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearForward() {
forward_ = 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;
if (!object.Equals(Forward, other.Forward)) 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 (HasForward) hash ^= Forward.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 (HasForward) {
output.WriteRawTag(50);
output.WriteMessage(Forward);
}
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 (HasForward) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Forward);
}
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);
}
if (other.HasForward) {
if (!HasForward) {
Forward = new global::Bgs.Protocol.ObjectAddress();
}
Forward.MergeFrom(other.Forward);
}
_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;
}
case 50: {
if (!HasForward) {
Forward = new global::Bgs.Protocol.ObjectAddress();
}
input.ReadMessage(Forward);
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;
forward_ = other.HasForward ? other.forward_.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;
}
/// <summary>Field number for the "forward" field.</summary>
public const int ForwardFieldNumber = 6;
private global::Bgs.Protocol.ObjectAddress forward_;
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.ObjectAddress Forward {
get { return forward_; }
set {
forward_ = value;
}
}
/// <summary>Gets whether the forward field is set</summary>
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasForward {
get { return forward_ != null; }
}
/// <summary>Clears the value of the forward field</summary>
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearForward() {
forward_ = 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;
if (!object.Equals(Forward, other.Forward)) 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 (HasForward) hash ^= Forward.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 (HasForward) {
output.WriteRawTag(50);
output.WriteMessage(Forward);
}
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 (HasForward) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Forward);
}
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);
}
if (other.HasForward) {
if (!HasForward) {
Forward = new global::Bgs.Protocol.ObjectAddress();
}
Forward.MergeFrom(other.Forward);
}
_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;
}
case 50: {
if (!HasForward) {
Forward = new global::Bgs.Protocol.ObjectAddress();
}
input.ReadMessage(Forward);
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;
forward_ = other.HasForward ? other.forward_.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;
}
/// <summary>Field number for the "forward" field.</summary>
public const int ForwardFieldNumber = 3;
private global::Bgs.Protocol.ObjectAddress forward_;
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.ObjectAddress Forward {
get { return forward_; }
set {
forward_ = value;
}
}
/// <summary>Gets whether the forward field is set</summary>
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasForward {
get { return forward_ != null; }
}
/// <summary>Clears the value of the forward field</summary>
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearForward() {
forward_ = 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;
if (!object.Equals(Forward, other.Forward)) 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 (HasForward) hash ^= Forward.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 (HasForward) {
output.WriteRawTag(26);
output.WriteMessage(Forward);
}
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 (HasForward) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Forward);
}
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);
}
if (other.HasForward) {
if (!HasForward) {
Forward = new global::Bgs.Protocol.ObjectAddress();
}
Forward.MergeFrom(other.Forward);
}
_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;
}
case 26: {
if (!HasForward) {
Forward = new global::Bgs.Protocol.ObjectAddress();
}
input.ReadMessage(Forward);
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_;
forward_ = other.HasForward ? other.forward_.Clone() : null;
_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;
}
/// <summary>Field number for the "forward" field.</summary>
public const int ForwardFieldNumber = 4;
private global::Bgs.Protocol.ObjectAddress forward_;
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Bgs.Protocol.ObjectAddress Forward {
get { return forward_; }
set {
forward_ = value;
}
}
/// <summary>Gets whether the forward field is set</summary>
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool HasForward {
get { return forward_ != null; }
}
/// <summary>Clears the value of the forward field</summary>
[global::System.ObsoleteAttribute]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void ClearForward() {
forward_ = null;
}
[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;
if (!object.Equals(Forward, other.Forward)) 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 (HasForward) hash ^= Forward.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 (HasForward) {
output.WriteRawTag(34);
output.WriteMessage(Forward);
}
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 (HasForward) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Forward);
}
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;
}
if (other.HasForward) {
if (!HasForward) {
Forward = new global::Bgs.Protocol.ObjectAddress();
}
Forward.MergeFrom(other.Forward);
}
_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;
}
case 34: {
if (!HasForward) {
Forward = new global::Bgs.Protocol.ObjectAddress();
}
input.ReadMessage(Forward);
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code