//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/identity_b2b/v1/keyapis_identity_b2b_authorization_v1.proto
//
#pragma warning disable 1591, 0612, 3021, 8981
#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 Keyapis.IdentityB2b.V1 {
/// Holder for reflection information generated from keyapis/identity_b2b/v1/keyapis_identity_b2b_authorization_v1.proto
public static partial class KeyapisIdentityB2BAuthorizationV1Reflection {
#region Descriptor
/// File descriptor for keyapis/identity_b2b/v1/keyapis_identity_b2b_authorization_v1.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static KeyapisIdentityB2BAuthorizationV1Reflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CkNrZXlhcGlzL2lkZW50aXR5X2IyYi92MS9rZXlhcGlzX2lkZW50aXR5X2Iy",
"Yl9hdXRob3JpemF0aW9uX3YxLnByb3RvEhdrZXlhcGlzLmlkZW50aXR5X2Iy",
"Yi52MRocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxofZ29vZ2xlL2Fw",
"aS9maWVsZF9iZWhhdmlvci5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVz",
"dGFtcC5wcm90byJbCglVc2VyVG9rZW4SGQoMYWNjZXNzX3Rva2VuGAEgASgJ",
"QgPgQQISMwoKZXhwaXJlZF9hdBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U",
"aW1lc3RhbXBCA+BBAiIsCgdDYXB0Y2hhEg8KAmlkGAEgASgJQgPgQQISEAoD",
"dXJsGAIgASgJQgPgQQIi2wEKDUNhcHRjaGFBbnN3ZXISDwoCaWQYASABKAlC",
"A+BBAhIRCgRjb2RlGAIgASgJQgPgQQIapQEKBUVycm9yEjEKB2NhcHRjaGEY",
"ASABKAsyIC5rZXlhcGlzLmlkZW50aXR5X2IyYi52MS5DYXB0Y2hhElAKDHdy",
"b25nX2Fuc3dlchgCIAEoCzI4LmtleWFwaXMuaWRlbnRpdHlfYjJiLnYxLkNh",
"cHRjaGFBbnN3ZXIuRXJyb3IuV3JvbmdBbnN3ZXJIABoNCgtXcm9uZ0Fuc3dl",
"ckIICgZyZWFzb24izAMKB090cENvZGUSFAoHY29kZV9pZBgBIAEoCUID4EEC",
"EhQKB3RpbWVvdXQYAiABKAVCA+BBAhqUAwoFRXJyb3ISUwoRbGlmZV90aW1l",
"X2V4cGlyZWQYASABKAsyNi5rZXlhcGlzLmlkZW50aXR5X2IyYi52MS5PdHBD",
"b2RlLkVycm9yLkxpZmVUaW1lRXhwaXJlZEgAEkgKC25vX2F0dGVtcHRzGAIg",
"ASgLMjEua2V5YXBpcy5pZGVudGl0eV9iMmIudjEuT3RwQ29kZS5FcnJvci5O",
"b0F0dGVtcHRzSAASUwoRYWRkcmVzc19ub3RfZm91bmQYAyABKAsyNi5rZXlh",
"cGlzLmlkZW50aXR5X2IyYi52MS5PdHBDb2RlLkVycm9yLkFkZHJlc3NOb3RG",
"b3VuZEgAEkoKDGludmFsaWRfY29kZRgEIAEoCzIyLmtleWFwaXMuaWRlbnRp",
"dHlfYjJiLnYxLk90cENvZGUuRXJyb3IuSW52YWxpZENvZGVIABoRCg9MaWZl",
"VGltZUV4cGlyZWQaDAoKTm9BdHRlbXB0cxoRCg9BZGRyZXNzTm90Rm91bmQa",
"DQoLSW52YWxpZENvZGVCCAoGcmVhc29uIsYECghTc29FcnJvchJdChl1c2Vy",
"X2lzX3RlbXBvcmFyeV9ibG9ja2VkGAEgASgLMjgua2V5YXBpcy5pZGVudGl0",
"eV9iMmIudjEuU3NvRXJyb3IuVXNlcklzVGVtcG9yYXJ5QmxvY2tlZEgAEkgK",
"DnVzZXJfbm90X2ZvdW5kGAIgASgLMi4ua2V5YXBpcy5pZGVudGl0eV9iMmIu",
"djEuU3NvRXJyb3IuVXNlck5vdEZvdW5kSAASTwoRd3JvbmdfY3JlZGVudGlh",
"bHMYAyABKAsyMi5rZXlhcGlzLmlkZW50aXR5X2IyYi52MS5Tc29FcnJvci5X",
"cm9uZ0NyZWRlbnRpYWxzSAASSgoPdXNlcl9pc19ibG9ja2VkGAQgASgLMi8u",
"a2V5YXBpcy5pZGVudGl0eV9iMmIudjEuU3NvRXJyb3IuVXNlcklzQmxvY2tl",
"ZEgAEk8KEWludGVydmFsX2V4Y2VlZGVkGAUgASgLMjIua2V5YXBpcy5pZGVu",
"dGl0eV9iMmIudjEuU3NvRXJyb3IuSW50ZXJ2YWxFeGNlZWRlZEgAGhgKFlVz",
"ZXJJc1RlbXBvcmFyeUJsb2NrZWQaDgoMVXNlck5vdEZvdW5kGkoKEFdyb25n",
"Q3JlZGVudGlhbHMSNgoHY2FwdGNoYRgBIAEoCzIgLmtleWFwaXMuaWRlbnRp",
"dHlfYjJiLnYxLkNhcHRjaGFCA+BBARoPCg1Vc2VySXNCbG9ja2VkGhIKEElu",
"dGVydmFsRXhjZWVkZWRCCAoGcmVhc29uIm0KCEtleUVycm9yEkcKDXVzZXJf",
"Y3JlYXRpb24YASABKAsyLi5rZXlhcGlzLmlkZW50aXR5X2IyYi52MS5LZXlF",
"cnJvci5Vc2VyQ3JlYXRpb25IABoOCgxVc2VyQ3JlYXRpb25CCAoGcmVhc29u",
"IpcBCiBQb3N0QXV0aG9yaXphdGlvblNlbmRDb2RlUmVxdWVzdBI+Cg5jYXB0",
"Y2hhX2Fuc3dlchgBIAEoCzImLmtleWFwaXMuaWRlbnRpdHlfYjJiLnYxLkNh",
"cHRjaGFBbnN3ZXISFgoMcGhvbmVfbnVtYmVyGAIgASgJSAASDwoFZW1haWwY",
"AyABKAlIAEIKCghvdHBfdGV4dCK+AgohUG9zdEF1dGhvcml6YXRpb25TZW5k",
"Q29kZVJlc3BvbnNlElEKBWVycm9yGAEgASgLMkAua2V5YXBpcy5pZGVudGl0",
"eV9iMmIudjEuUG9zdEF1dGhvcml6YXRpb25TZW5kQ29kZVJlc3BvbnNlLkVy",
"cm9ySAASMAoEZGF0YRgCIAEoCzIgLmtleWFwaXMuaWRlbnRpdHlfYjJiLnYx",
"Lk90cENvZGVIABqLAQoFRXJyb3ISRgoOY2FwdGNoYV9hbnN3ZXIYASABKAsy",
"LC5rZXlhcGlzLmlkZW50aXR5X2IyYi52MS5DYXB0Y2hhQW5zd2VyLkVycm9y",
"SAASMAoDc3NvGAIgASgLMiEua2V5YXBpcy5pZGVudGl0eV9iMmIudjEuU3Nv",
"RXJyb3JIAEIICgZyZWFzb25CBgoEdHlwZSJICh1Qb3N0QXV0aG9yaXphdGlv",
"bkxvZ2luUmVxdWVzdBIUCgdjb2RlX2lkGAEgASgJQgPgQQISEQoEY29kZRgC",
"IAEoCUID4EECIuACCh5Qb3N0QXV0aG9yaXphdGlvbkxvZ2luUmVzcG9uc2US",
"TgoFZXJyb3IYASABKAsyPS5rZXlhcGlzLmlkZW50aXR5X2IyYi52MS5Qb3N0",
"QXV0aG9yaXphdGlvbkxvZ2luUmVzcG9uc2UuRXJyb3JIABIyCgRkYXRhGAIg",
"ASgLMiIua2V5YXBpcy5pZGVudGl0eV9iMmIudjEuVXNlclRva2VuSAAasQEK",
"BUVycm9yEjoKCG90cF9jb2RlGAEgASgLMiYua2V5YXBpcy5pZGVudGl0eV9i",
"MmIudjEuT3RwQ29kZS5FcnJvckgAEjAKA3NzbxgCIAEoCzIhLmtleWFwaXMu",
"aWRlbnRpdHlfYjJiLnYxLlNzb0Vycm9ySAASMAoDa2V5GAMgASgLMiEua2V5",
"YXBpcy5pZGVudGl0eV9iMmIudjEuS2V5RXJyb3JIAEIICgZyZWFzb25CBgoE",
"dHlwZSLHAQonUG9zdEF1dGhvcml6YXRpb25Mb2dpbkJ5UGFzc3dvcmRSZXF1",
"ZXN0EhUKCHBhc3N3b3JkGAEgASgJQgPgQQISQwoOY2FwdGNoYV9hbnN3ZXIY",
"AiABKAsyJi5rZXlhcGlzLmlkZW50aXR5X2IyYi52MS5DYXB0Y2hhQW5zd2Vy",
"QgPgQQESFgoMcGhvbmVfbnVtYmVyGAMgASgJSAASDwoFZW1haWwYBCABKAlI",
"ABIPCgVsb2dpbhgFIAEoCUgAQgYKBHR5cGUi8QMKKFBvc3RBdXRob3JpemF0",
"aW9uTG9naW5CeVBhc3N3b3JkUmVzcG9uc2USWAoFZXJyb3IYASABKAsyRy5r",
"ZXlhcGlzLmlkZW50aXR5X2IyYi52MS5Qb3N0QXV0aG9yaXphdGlvbkxvZ2lu",
"QnlQYXNzd29yZFJlc3BvbnNlLkVycm9ySAASMgoEZGF0YRgCIAEoCzIiLmtl",
"eWFwaXMuaWRlbnRpdHlfYjJiLnYxLlVzZXJUb2tlbkgAEjMKB2RhdGEyZmEY",
"AyABKAsyIC5rZXlhcGlzLmlkZW50aXR5X2IyYi52MS5EYXRhMmZhSAAa+QEK",
"BUVycm9yEkYKDmNhcHRjaGFfYW5zd2VyGAEgASgLMiwua2V5YXBpcy5pZGVu",
"dGl0eV9iMmIudjEuQ2FwdGNoYUFuc3dlci5FcnJvckgAEjAKA3NzbxgCIAEo",
"CzIhLmtleWFwaXMuaWRlbnRpdHlfYjJiLnYxLlNzb0Vycm9ySAASMAoDa2V5",
"GAMgASgLMiEua2V5YXBpcy5pZGVudGl0eV9iMmIudjEuS2V5RXJyb3JIABI6",
"CghvdHBfY29kZRgEIAEoCzImLmtleWFwaXMuaWRlbnRpdHlfYjJiLnYxLk90",
"cENvZGUuRXJyb3JIAEIICgZyZWFzb25CBgoEdHlwZSJ9CiFQb3N0QXV0aG9y",
"aXphdGlvbkNoZWNrQ29kZVJlcXVlc3QSFwoKc2Vzc2lvbl9pZBgBIAEoCUID",
"4EECEhYKCWFjdGlvbl9pZBgCIAEoCUID4EECEhQKB2NvZGVfaWQYAyABKAlC",
"A+BBAhIRCgRjb2RlGAQgASgJQgPgQQIi6AIKIlBvc3RBdXRob3JpemF0aW9u",
"Q2hlY2tDb2RlUmVzcG9uc2USUgoFZXJyb3IYASABKAsyQS5rZXlhcGlzLmlk",
"ZW50aXR5X2IyYi52MS5Qb3N0QXV0aG9yaXphdGlvbkNoZWNrQ29kZVJlc3Bv",
"bnNlLkVycm9ySAASMgoEZGF0YRgCIAEoCzIiLmtleWFwaXMuaWRlbnRpdHlf",
"YjJiLnYxLlVzZXJUb2tlbkgAGrEBCgVFcnJvchIwCgNzc28YASABKAsyIS5r",
"ZXlhcGlzLmlkZW50aXR5X2IyYi52MS5Tc29FcnJvckgAEjAKA2tleRgCIAEo",
"CzIhLmtleWFwaXMuaWRlbnRpdHlfYjJiLnYxLktleUVycm9ySAASOgoIb3Rw",
"X2NvZGUYAyABKAsyJi5rZXlhcGlzLmlkZW50aXR5X2IyYi52MS5PdHBDb2Rl",
"LkVycm9ySABCCAoGcmVhc29uQgYKBHR5cGUiZgoHRGF0YTJmYRIXCgpzZXNz",
"aW9uX2lkGAEgASgJQgPgQQISFgoJYWN0aW9uX2lkGAIgASgJQgPgQQISFAoH",
"Y29kZV9pZBgDIAEoCUID4EECEhQKB3RpbWVvdXQYBCABKAVCA+BBAjLlBgoX",
"QXV0aG9yaXphdGlvbkIyYlNlcnZpY2USvgEKFlBvc3RBdXRob3JpemF0aW9u",
"TG9naW4SNi5rZXlhcGlzLmlkZW50aXR5X2IyYi52MS5Qb3N0QXV0aG9yaXph",
"dGlvbkxvZ2luUmVxdWVzdBo3LmtleWFwaXMuaWRlbnRpdHlfYjJiLnYxLlBv",
"c3RBdXRob3JpemF0aW9uTG9naW5SZXNwb25zZSIzgtPkkwItIigvaWRlbnRp",
"dHlfYjJiL2FwaS92MS9hdXRob3JpemF0aW9uL2xvZ2luOgEqEssBChlQb3N0",
"QXV0aG9yaXphdGlvblNlbmRDb2RlEjkua2V5YXBpcy5pZGVudGl0eV9iMmIu",
"djEuUG9zdEF1dGhvcml6YXRpb25TZW5kQ29kZVJlcXVlc3QaOi5rZXlhcGlz",
"LmlkZW50aXR5X2IyYi52MS5Qb3N0QXV0aG9yaXphdGlvblNlbmRDb2RlUmVz",
"cG9uc2UiN4LT5JMCMSIsL2lkZW50aXR5X2IyYi9hcGkvdjEvYXV0aG9yaXph",
"dGlvbi9zZW5kX2NvZGU6ASoS6AEKIFBvc3RBdXRob3JpemF0aW9uTG9naW5C",
"eVBhc3N3b3JkEkAua2V5YXBpcy5pZGVudGl0eV9iMmIudjEuUG9zdEF1dGhv",
"cml6YXRpb25Mb2dpbkJ5UGFzc3dvcmRSZXF1ZXN0GkEua2V5YXBpcy5pZGVu",
"dGl0eV9iMmIudjEuUG9zdEF1dGhvcml6YXRpb25Mb2dpbkJ5UGFzc3dvcmRS",
"ZXNwb25zZSI/gtPkkwI5IjQvaWRlbnRpdHlfYjJiL2FwaS92MS9hdXRob3Jp",
"emF0aW9uL2xvZ2luX2J5X3Bhc3N3b3JkOgEqEs8BChpQb3N0QXV0aG9yaXph",
"dGlvbkNoZWNrQ29kZRI6LmtleWFwaXMuaWRlbnRpdHlfYjJiLnYxLlBvc3RB",
"dXRob3JpemF0aW9uQ2hlY2tDb2RlUmVxdWVzdBo7LmtleWFwaXMuaWRlbnRp",
"dHlfYjJiLnYxLlBvc3RBdXRob3JpemF0aW9uQ2hlY2tDb2RlUmVzcG9uc2Ui",
"OILT5JMCMiItL2lkZW50aXR5X2IyYi9hcGkvdjEvYXV0aG9yaXphdGlvbi9j",
"aGVja19jb2RlOgEqQr8BChpydS5rZXlhcGlzLmlkZW50aXR5X2IyYi52MUIZ",
"S2V5YXBpc0lkZW50aXR5QjJiVjFQcm90b0gDUABaGC9rZXlhcGlzX2lkZW50",
"aXR5X2IyYl92MdgBAfgBAaICFEtFWUFQSVNJREVOVElUWUIyQlYxqgIWS2V5",
"YXBpcy5JZGVudGl0eUIyYi5WMcoCFktleWFwaXNcSWRlbnRpdHlCMmJcVjHq",
"AhhLZXlhcGlzOjpJZGVudGl0eUIyYjo6VjFiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.UserToken), global::Keyapis.IdentityB2b.V1.UserToken.Parser, new[]{ "AccessToken", "ExpiredAt" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.Captcha), global::Keyapis.IdentityB2b.V1.Captcha.Parser, new[]{ "Id", "Url" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.CaptchaAnswer), global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Parser, new[]{ "Id", "Code" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error), global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error.Parser, new[]{ "Captcha", "WrongAnswer" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error.Types.WrongAnswer), global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error.Types.WrongAnswer.Parser, null, null, null, null, null)})}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.OtpCode), global::Keyapis.IdentityB2b.V1.OtpCode.Parser, new[]{ "CodeId", "Timeout" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error), global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Parser, new[]{ "LifeTimeExpired", "NoAttempts", "AddressNotFound", "InvalidCode" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.LifeTimeExpired), global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.LifeTimeExpired.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.NoAttempts), global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.NoAttempts.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.AddressNotFound), global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.AddressNotFound.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.InvalidCode), global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.InvalidCode.Parser, null, null, null, null, null)})}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.SsoError), global::Keyapis.IdentityB2b.V1.SsoError.Parser, new[]{ "UserIsTemporaryBlocked", "UserNotFound", "WrongCredentials", "UserIsBlocked", "IntervalExceeded" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.SsoError.Types.UserIsTemporaryBlocked), global::Keyapis.IdentityB2b.V1.SsoError.Types.UserIsTemporaryBlocked.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.SsoError.Types.UserNotFound), global::Keyapis.IdentityB2b.V1.SsoError.Types.UserNotFound.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.SsoError.Types.WrongCredentials), global::Keyapis.IdentityB2b.V1.SsoError.Types.WrongCredentials.Parser, new[]{ "Captcha" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.SsoError.Types.UserIsBlocked), global::Keyapis.IdentityB2b.V1.SsoError.Types.UserIsBlocked.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.SsoError.Types.IntervalExceeded), global::Keyapis.IdentityB2b.V1.SsoError.Types.IntervalExceeded.Parser, null, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.KeyError), global::Keyapis.IdentityB2b.V1.KeyError.Parser, new[]{ "UserCreation" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.KeyError.Types.UserCreation), global::Keyapis.IdentityB2b.V1.KeyError.Types.UserCreation.Parser, null, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.PostAuthorizationSendCodeRequest), global::Keyapis.IdentityB2b.V1.PostAuthorizationSendCodeRequest.Parser, new[]{ "CaptchaAnswer", "PhoneNumber", "Email" }, new[]{ "OtpText" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.PostAuthorizationSendCodeResponse), global::Keyapis.IdentityB2b.V1.PostAuthorizationSendCodeResponse.Parser, new[]{ "Error", "Data" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.PostAuthorizationSendCodeResponse.Types.Error), global::Keyapis.IdentityB2b.V1.PostAuthorizationSendCodeResponse.Types.Error.Parser, new[]{ "CaptchaAnswer", "Sso" }, new[]{ "Reason" }, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginRequest), global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginRequest.Parser, new[]{ "CodeId", "Code" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginResponse), global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginResponse.Parser, new[]{ "Error", "Data" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginResponse.Types.Error), global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginResponse.Types.Error.Parser, new[]{ "OtpCode", "Sso", "Key" }, new[]{ "Reason" }, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginByPasswordRequest), global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginByPasswordRequest.Parser, new[]{ "Password", "CaptchaAnswer", "PhoneNumber", "Email", "Login" }, new[]{ "Type" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginByPasswordResponse), global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginByPasswordResponse.Parser, new[]{ "Error", "Data", "Data2Fa" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginByPasswordResponse.Types.Error), global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginByPasswordResponse.Types.Error.Parser, new[]{ "CaptchaAnswer", "Sso", "Key", "OtpCode" }, new[]{ "Reason" }, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.PostAuthorizationCheckCodeRequest), global::Keyapis.IdentityB2b.V1.PostAuthorizationCheckCodeRequest.Parser, new[]{ "SessionId", "ActionId", "CodeId", "Code" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.PostAuthorizationCheckCodeResponse), global::Keyapis.IdentityB2b.V1.PostAuthorizationCheckCodeResponse.Parser, new[]{ "Error", "Data" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.PostAuthorizationCheckCodeResponse.Types.Error), global::Keyapis.IdentityB2b.V1.PostAuthorizationCheckCodeResponse.Types.Error.Parser, new[]{ "Sso", "Key", "OtpCode" }, new[]{ "Reason" }, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IdentityB2b.V1.Data2fa), global::Keyapis.IdentityB2b.V1.Data2fa.Parser, new[]{ "SessionId", "ActionId", "CodeId", "Timeout" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
///
/// Информация о токене пользователя
///
public sealed partial class UserToken : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserToken());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.KeyapisIdentityB2BAuthorizationV1Reflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public UserToken() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public UserToken(UserToken other) : this() {
accessToken_ = other.accessToken_;
expiredAt_ = other.expiredAt_ != null ? other.expiredAt_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public UserToken Clone() {
return new UserToken(this);
}
/// Field number for the "access_token" field.
public const int AccessTokenFieldNumber = 1;
private string accessToken_ = "";
///
/// Токен
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string AccessToken {
get { return accessToken_; }
set {
accessToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "expired_at" field.
public const int ExpiredAtFieldNumber = 2;
private global::Google.Protobuf.WellKnownTypes.Timestamp expiredAt_;
///
/// Окончание действия токена
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp ExpiredAt {
get { return expiredAt_; }
set {
expiredAt_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as UserToken);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(UserToken other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (AccessToken != other.AccessToken) return false;
if (!object.Equals(ExpiredAt, other.ExpiredAt)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (AccessToken.Length != 0) hash ^= AccessToken.GetHashCode();
if (expiredAt_ != null) hash ^= ExpiredAt.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (AccessToken.Length != 0) {
output.WriteRawTag(10);
output.WriteString(AccessToken);
}
if (expiredAt_ != null) {
output.WriteRawTag(18);
output.WriteMessage(ExpiredAt);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (AccessToken.Length != 0) {
output.WriteRawTag(10);
output.WriteString(AccessToken);
}
if (expiredAt_ != null) {
output.WriteRawTag(18);
output.WriteMessage(ExpiredAt);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (AccessToken.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(AccessToken);
}
if (expiredAt_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpiredAt);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(UserToken other) {
if (other == null) {
return;
}
if (other.AccessToken.Length != 0) {
AccessToken = other.AccessToken;
}
if (other.expiredAt_ != null) {
if (expiredAt_ == null) {
ExpiredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
ExpiredAt.MergeFrom(other.ExpiredAt);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
AccessToken = input.ReadString();
break;
}
case 18: {
if (expiredAt_ == null) {
ExpiredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(ExpiredAt);
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
AccessToken = input.ReadString();
break;
}
case 18: {
if (expiredAt_ == null) {
ExpiredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(ExpiredAt);
break;
}
}
}
}
#endif
}
///
/// Капча
///
public sealed partial class Captcha : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Captcha());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.KeyapisIdentityB2BAuthorizationV1Reflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Captcha() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Captcha(Captcha other) : this() {
id_ = other.id_;
url_ = other.url_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Captcha Clone() {
return new Captcha(this);
}
/// Field number for the "id" field.
public const int IdFieldNumber = 1;
private string id_ = "";
///
/// Идентификатор капчи
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Id {
get { return id_; }
set {
id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "url" field.
public const int UrlFieldNumber = 2;
private string url_ = "";
///
/// Ссылка на капчу
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Url {
get { return url_; }
set {
url_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Captcha);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Captcha other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (Url != other.Url) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Id.Length != 0) hash ^= Id.GetHashCode();
if (Url.Length != 0) hash ^= Url.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Id.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Id);
}
if (Url.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Url);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (Id.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Id);
}
if (Url.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Url);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Id.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
}
if (Url.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Url);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Captcha other) {
if (other == null) {
return;
}
if (other.Id.Length != 0) {
Id = other.Id;
}
if (other.Url.Length != 0) {
Url = other.Url;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
Id = input.ReadString();
break;
}
case 18: {
Url = input.ReadString();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
Id = input.ReadString();
break;
}
case 18: {
Url = input.ReadString();
break;
}
}
}
}
#endif
}
///
/// Ответ на капчу
///
public sealed partial class CaptchaAnswer : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CaptchaAnswer());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.KeyapisIdentityB2BAuthorizationV1Reflection.Descriptor.MessageTypes[2]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public CaptchaAnswer() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public CaptchaAnswer(CaptchaAnswer other) : this() {
id_ = other.id_;
code_ = other.code_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public CaptchaAnswer Clone() {
return new CaptchaAnswer(this);
}
/// Field number for the "id" field.
public const int IdFieldNumber = 1;
private string id_ = "";
///
/// Идентификатор капчи
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Id {
get { return id_; }
set {
id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "code" field.
public const int CodeFieldNumber = 2;
private string code_ = "";
///
/// Ответ на капчу
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Code {
get { return code_; }
set {
code_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as CaptchaAnswer);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(CaptchaAnswer other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (Code != other.Code) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Id.Length != 0) hash ^= Id.GetHashCode();
if (Code.Length != 0) hash ^= Code.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Id.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Id);
}
if (Code.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Code);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (Id.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Id);
}
if (Code.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Code);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Id.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
}
if (Code.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Code);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(CaptchaAnswer other) {
if (other == null) {
return;
}
if (other.Id.Length != 0) {
Id = other.Id;
}
if (other.Code.Length != 0) {
Code = other.Code;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
Id = input.ReadString();
break;
}
case 18: {
Code = input.ReadString();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
Id = input.ReadString();
break;
}
case 18: {
Code = input.ReadString();
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the CaptchaAnswer message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Ошибка ответа на капчу
///
public sealed partial class Error : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Descriptor.NestedTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error(Error other) : this() {
captcha_ = other.captcha_ != null ? other.captcha_.Clone() : null;
switch (other.ReasonCase) {
case ReasonOneofCase.WrongAnswer:
WrongAnswer = other.WrongAnswer.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error Clone() {
return new Error(this);
}
/// Field number for the "captcha" field.
public const int CaptchaFieldNumber = 1;
private global::Keyapis.IdentityB2b.V1.Captcha captcha_;
///
/// Капча
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.Captcha Captcha {
get { return captcha_; }
set {
captcha_ = value;
}
}
/// Field number for the "wrong_answer" field.
public const int WrongAnswerFieldNumber = 2;
///
/// Некорректный ответ на капчу
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error.Types.WrongAnswer WrongAnswer {
get { return reasonCase_ == ReasonOneofCase.WrongAnswer ? (global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error.Types.WrongAnswer) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.WrongAnswer;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
WrongAnswer = 2,
}
private ReasonOneofCase reasonCase_ = ReasonOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ReasonOneofCase ReasonCase {
get { return reasonCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearReason() {
reasonCase_ = ReasonOneofCase.None;
reason_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Error);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Error other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Captcha, other.Captcha)) return false;
if (!object.Equals(WrongAnswer, other.WrongAnswer)) return false;
if (ReasonCase != other.ReasonCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (captcha_ != null) hash ^= Captcha.GetHashCode();
if (reasonCase_ == ReasonOneofCase.WrongAnswer) hash ^= WrongAnswer.GetHashCode();
hash ^= (int) reasonCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (captcha_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Captcha);
}
if (reasonCase_ == ReasonOneofCase.WrongAnswer) {
output.WriteRawTag(18);
output.WriteMessage(WrongAnswer);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (captcha_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Captcha);
}
if (reasonCase_ == ReasonOneofCase.WrongAnswer) {
output.WriteRawTag(18);
output.WriteMessage(WrongAnswer);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (captcha_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Captcha);
}
if (reasonCase_ == ReasonOneofCase.WrongAnswer) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(WrongAnswer);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Error other) {
if (other == null) {
return;
}
if (other.captcha_ != null) {
if (captcha_ == null) {
Captcha = new global::Keyapis.IdentityB2b.V1.Captcha();
}
Captcha.MergeFrom(other.Captcha);
}
switch (other.ReasonCase) {
case ReasonOneofCase.WrongAnswer:
if (WrongAnswer == null) {
WrongAnswer = new global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error.Types.WrongAnswer();
}
WrongAnswer.MergeFrom(other.WrongAnswer);
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (captcha_ == null) {
Captcha = new global::Keyapis.IdentityB2b.V1.Captcha();
}
input.ReadMessage(Captcha);
break;
}
case 18: {
global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error.Types.WrongAnswer subBuilder = new global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error.Types.WrongAnswer();
if (reasonCase_ == ReasonOneofCase.WrongAnswer) {
subBuilder.MergeFrom(WrongAnswer);
}
input.ReadMessage(subBuilder);
WrongAnswer = subBuilder;
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
if (captcha_ == null) {
Captcha = new global::Keyapis.IdentityB2b.V1.Captcha();
}
input.ReadMessage(Captcha);
break;
}
case 18: {
global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error.Types.WrongAnswer subBuilder = new global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error.Types.WrongAnswer();
if (reasonCase_ == ReasonOneofCase.WrongAnswer) {
subBuilder.MergeFrom(WrongAnswer);
}
input.ReadMessage(subBuilder);
WrongAnswer = subBuilder;
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the Error message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Некорректный ответ на капчу
///
public sealed partial class WrongAnswer : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WrongAnswer());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error.Descriptor.NestedTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public WrongAnswer() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public WrongAnswer(WrongAnswer other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public WrongAnswer Clone() {
return new WrongAnswer(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as WrongAnswer);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(WrongAnswer other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(WrongAnswer other) {
if (other == null) {
return;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
}
}
}
#endif
}
}
#endregion
}
}
#endregion
}
///
/// Информация о вводе ОТП-кода
///
public sealed partial class OtpCode : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OtpCode());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.KeyapisIdentityB2BAuthorizationV1Reflection.Descriptor.MessageTypes[3]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OtpCode() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OtpCode(OtpCode other) : this() {
codeId_ = other.codeId_;
timeout_ = other.timeout_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OtpCode Clone() {
return new OtpCode(this);
}
/// Field number for the "code_id" field.
public const int CodeIdFieldNumber = 1;
private string codeId_ = "";
///
/// Идентификатор ОТП-кода
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string CodeId {
get { return codeId_; }
set {
codeId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "timeout" field.
public const int TimeoutFieldNumber = 2;
private int timeout_;
///
/// Время в секундах, оставшееся до возможности отправки следующего кода
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Timeout {
get { return timeout_; }
set {
timeout_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as OtpCode);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(OtpCode other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (CodeId != other.CodeId) return false;
if (Timeout != other.Timeout) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (CodeId.Length != 0) hash ^= CodeId.GetHashCode();
if (Timeout != 0) hash ^= Timeout.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (CodeId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(CodeId);
}
if (Timeout != 0) {
output.WriteRawTag(16);
output.WriteInt32(Timeout);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (CodeId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(CodeId);
}
if (Timeout != 0) {
output.WriteRawTag(16);
output.WriteInt32(Timeout);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (CodeId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CodeId);
}
if (Timeout != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Timeout);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(OtpCode other) {
if (other == null) {
return;
}
if (other.CodeId.Length != 0) {
CodeId = other.CodeId;
}
if (other.Timeout != 0) {
Timeout = other.Timeout;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
CodeId = input.ReadString();
break;
}
case 16: {
Timeout = input.ReadInt32();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
CodeId = input.ReadString();
break;
}
case 16: {
Timeout = input.ReadInt32();
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the OtpCode message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Ошибка ответа на капчу
///
public sealed partial class Error : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.OtpCode.Descriptor.NestedTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error(Error other) : this() {
switch (other.ReasonCase) {
case ReasonOneofCase.LifeTimeExpired:
LifeTimeExpired = other.LifeTimeExpired.Clone();
break;
case ReasonOneofCase.NoAttempts:
NoAttempts = other.NoAttempts.Clone();
break;
case ReasonOneofCase.AddressNotFound:
AddressNotFound = other.AddressNotFound.Clone();
break;
case ReasonOneofCase.InvalidCode:
InvalidCode = other.InvalidCode.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error Clone() {
return new Error(this);
}
/// Field number for the "life_time_expired" field.
public const int LifeTimeExpiredFieldNumber = 1;
///
/// Код истек
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.LifeTimeExpired LifeTimeExpired {
get { return reasonCase_ == ReasonOneofCase.LifeTimeExpired ? (global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.LifeTimeExpired) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.LifeTimeExpired;
}
}
/// Field number for the "no_attempts" field.
public const int NoAttemptsFieldNumber = 2;
///
/// Попыток больше нет
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.NoAttempts NoAttempts {
get { return reasonCase_ == ReasonOneofCase.NoAttempts ? (global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.NoAttempts) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.NoAttempts;
}
}
/// Field number for the "address_not_found" field.
public const int AddressNotFoundFieldNumber = 3;
///
/// Адрес для отправки кода не найден.
/// В текущей реализации, эту ошибку невозможно получить
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.AddressNotFound AddressNotFound {
get { return reasonCase_ == ReasonOneofCase.AddressNotFound ? (global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.AddressNotFound) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.AddressNotFound;
}
}
/// Field number for the "invalid_code" field.
public const int InvalidCodeFieldNumber = 4;
///
/// Неправильный ОТП-код
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.InvalidCode InvalidCode {
get { return reasonCase_ == ReasonOneofCase.InvalidCode ? (global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.InvalidCode) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.InvalidCode;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
LifeTimeExpired = 1,
NoAttempts = 2,
AddressNotFound = 3,
InvalidCode = 4,
}
private ReasonOneofCase reasonCase_ = ReasonOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ReasonOneofCase ReasonCase {
get { return reasonCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearReason() {
reasonCase_ = ReasonOneofCase.None;
reason_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Error);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Error other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(LifeTimeExpired, other.LifeTimeExpired)) return false;
if (!object.Equals(NoAttempts, other.NoAttempts)) return false;
if (!object.Equals(AddressNotFound, other.AddressNotFound)) return false;
if (!object.Equals(InvalidCode, other.InvalidCode)) return false;
if (ReasonCase != other.ReasonCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (reasonCase_ == ReasonOneofCase.LifeTimeExpired) hash ^= LifeTimeExpired.GetHashCode();
if (reasonCase_ == ReasonOneofCase.NoAttempts) hash ^= NoAttempts.GetHashCode();
if (reasonCase_ == ReasonOneofCase.AddressNotFound) hash ^= AddressNotFound.GetHashCode();
if (reasonCase_ == ReasonOneofCase.InvalidCode) hash ^= InvalidCode.GetHashCode();
hash ^= (int) reasonCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (reasonCase_ == ReasonOneofCase.LifeTimeExpired) {
output.WriteRawTag(10);
output.WriteMessage(LifeTimeExpired);
}
if (reasonCase_ == ReasonOneofCase.NoAttempts) {
output.WriteRawTag(18);
output.WriteMessage(NoAttempts);
}
if (reasonCase_ == ReasonOneofCase.AddressNotFound) {
output.WriteRawTag(26);
output.WriteMessage(AddressNotFound);
}
if (reasonCase_ == ReasonOneofCase.InvalidCode) {
output.WriteRawTag(34);
output.WriteMessage(InvalidCode);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (reasonCase_ == ReasonOneofCase.LifeTimeExpired) {
output.WriteRawTag(10);
output.WriteMessage(LifeTimeExpired);
}
if (reasonCase_ == ReasonOneofCase.NoAttempts) {
output.WriteRawTag(18);
output.WriteMessage(NoAttempts);
}
if (reasonCase_ == ReasonOneofCase.AddressNotFound) {
output.WriteRawTag(26);
output.WriteMessage(AddressNotFound);
}
if (reasonCase_ == ReasonOneofCase.InvalidCode) {
output.WriteRawTag(34);
output.WriteMessage(InvalidCode);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (reasonCase_ == ReasonOneofCase.LifeTimeExpired) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(LifeTimeExpired);
}
if (reasonCase_ == ReasonOneofCase.NoAttempts) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(NoAttempts);
}
if (reasonCase_ == ReasonOneofCase.AddressNotFound) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AddressNotFound);
}
if (reasonCase_ == ReasonOneofCase.InvalidCode) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(InvalidCode);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Error other) {
if (other == null) {
return;
}
switch (other.ReasonCase) {
case ReasonOneofCase.LifeTimeExpired:
if (LifeTimeExpired == null) {
LifeTimeExpired = new global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.LifeTimeExpired();
}
LifeTimeExpired.MergeFrom(other.LifeTimeExpired);
break;
case ReasonOneofCase.NoAttempts:
if (NoAttempts == null) {
NoAttempts = new global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.NoAttempts();
}
NoAttempts.MergeFrom(other.NoAttempts);
break;
case ReasonOneofCase.AddressNotFound:
if (AddressNotFound == null) {
AddressNotFound = new global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.AddressNotFound();
}
AddressNotFound.MergeFrom(other.AddressNotFound);
break;
case ReasonOneofCase.InvalidCode:
if (InvalidCode == null) {
InvalidCode = new global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.InvalidCode();
}
InvalidCode.MergeFrom(other.InvalidCode);
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.LifeTimeExpired subBuilder = new global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.LifeTimeExpired();
if (reasonCase_ == ReasonOneofCase.LifeTimeExpired) {
subBuilder.MergeFrom(LifeTimeExpired);
}
input.ReadMessage(subBuilder);
LifeTimeExpired = subBuilder;
break;
}
case 18: {
global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.NoAttempts subBuilder = new global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.NoAttempts();
if (reasonCase_ == ReasonOneofCase.NoAttempts) {
subBuilder.MergeFrom(NoAttempts);
}
input.ReadMessage(subBuilder);
NoAttempts = subBuilder;
break;
}
case 26: {
global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.AddressNotFound subBuilder = new global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.AddressNotFound();
if (reasonCase_ == ReasonOneofCase.AddressNotFound) {
subBuilder.MergeFrom(AddressNotFound);
}
input.ReadMessage(subBuilder);
AddressNotFound = subBuilder;
break;
}
case 34: {
global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.InvalidCode subBuilder = new global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.InvalidCode();
if (reasonCase_ == ReasonOneofCase.InvalidCode) {
subBuilder.MergeFrom(InvalidCode);
}
input.ReadMessage(subBuilder);
InvalidCode = subBuilder;
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.LifeTimeExpired subBuilder = new global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.LifeTimeExpired();
if (reasonCase_ == ReasonOneofCase.LifeTimeExpired) {
subBuilder.MergeFrom(LifeTimeExpired);
}
input.ReadMessage(subBuilder);
LifeTimeExpired = subBuilder;
break;
}
case 18: {
global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.NoAttempts subBuilder = new global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.NoAttempts();
if (reasonCase_ == ReasonOneofCase.NoAttempts) {
subBuilder.MergeFrom(NoAttempts);
}
input.ReadMessage(subBuilder);
NoAttempts = subBuilder;
break;
}
case 26: {
global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.AddressNotFound subBuilder = new global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.AddressNotFound();
if (reasonCase_ == ReasonOneofCase.AddressNotFound) {
subBuilder.MergeFrom(AddressNotFound);
}
input.ReadMessage(subBuilder);
AddressNotFound = subBuilder;
break;
}
case 34: {
global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.InvalidCode subBuilder = new global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Types.InvalidCode();
if (reasonCase_ == ReasonOneofCase.InvalidCode) {
subBuilder.MergeFrom(InvalidCode);
}
input.ReadMessage(subBuilder);
InvalidCode = subBuilder;
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the Error message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Код истек
///
public sealed partial class LifeTimeExpired : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LifeTimeExpired());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Descriptor.NestedTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public LifeTimeExpired() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public LifeTimeExpired(LifeTimeExpired other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public LifeTimeExpired Clone() {
return new LifeTimeExpired(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as LifeTimeExpired);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(LifeTimeExpired other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(LifeTimeExpired other) {
if (other == null) {
return;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
}
}
}
#endif
}
///
/// Попыток больше нет
///
public sealed partial class NoAttempts : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NoAttempts());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Descriptor.NestedTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public NoAttempts() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public NoAttempts(NoAttempts other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public NoAttempts Clone() {
return new NoAttempts(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as NoAttempts);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(NoAttempts other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(NoAttempts other) {
if (other == null) {
return;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
}
}
}
#endif
}
///
/// Адрес для отправки кода не найден
///
public sealed partial class AddressNotFound : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddressNotFound());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Descriptor.NestedTypes[2]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AddressNotFound() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AddressNotFound(AddressNotFound other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AddressNotFound Clone() {
return new AddressNotFound(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as AddressNotFound);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(AddressNotFound other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(AddressNotFound other) {
if (other == null) {
return;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
}
}
}
#endif
}
///
/// Неправильный ОТП-код
///
public sealed partial class InvalidCode : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InvalidCode());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error.Descriptor.NestedTypes[3]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public InvalidCode() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public InvalidCode(InvalidCode other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public InvalidCode Clone() {
return new InvalidCode(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as InvalidCode);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(InvalidCode other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(InvalidCode other) {
if (other == null) {
return;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
}
}
}
#endif
}
}
#endregion
}
}
#endregion
}
///
/// Ошибки из ССО
///
public sealed partial class SsoError : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SsoError());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.KeyapisIdentityB2BAuthorizationV1Reflection.Descriptor.MessageTypes[4]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SsoError() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SsoError(SsoError other) : this() {
switch (other.ReasonCase) {
case ReasonOneofCase.UserIsTemporaryBlocked:
UserIsTemporaryBlocked = other.UserIsTemporaryBlocked.Clone();
break;
case ReasonOneofCase.UserNotFound:
UserNotFound = other.UserNotFound.Clone();
break;
case ReasonOneofCase.WrongCredentials:
WrongCredentials = other.WrongCredentials.Clone();
break;
case ReasonOneofCase.UserIsBlocked:
UserIsBlocked = other.UserIsBlocked.Clone();
break;
case ReasonOneofCase.IntervalExceeded:
IntervalExceeded = other.IntervalExceeded.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SsoError Clone() {
return new SsoError(this);
}
/// Field number for the "user_is_temporary_blocked" field.
public const int UserIsTemporaryBlockedFieldNumber = 1;
///
/// Пользователь временно заблокирован
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.SsoError.Types.UserIsTemporaryBlocked UserIsTemporaryBlocked {
get { return reasonCase_ == ReasonOneofCase.UserIsTemporaryBlocked ? (global::Keyapis.IdentityB2b.V1.SsoError.Types.UserIsTemporaryBlocked) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.UserIsTemporaryBlocked;
}
}
/// Field number for the "user_not_found" field.
public const int UserNotFoundFieldNumber = 2;
///
/// Пользователь не найден
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.SsoError.Types.UserNotFound UserNotFound {
get { return reasonCase_ == ReasonOneofCase.UserNotFound ? (global::Keyapis.IdentityB2b.V1.SsoError.Types.UserNotFound) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.UserNotFound;
}
}
/// Field number for the "wrong_credentials" field.
public const int WrongCredentialsFieldNumber = 3;
///
/// Неверный пароль
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.SsoError.Types.WrongCredentials WrongCredentials {
get { return reasonCase_ == ReasonOneofCase.WrongCredentials ? (global::Keyapis.IdentityB2b.V1.SsoError.Types.WrongCredentials) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.WrongCredentials;
}
}
/// Field number for the "user_is_blocked" field.
public const int UserIsBlockedFieldNumber = 4;
///
/// Пользователь заблокирован
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.SsoError.Types.UserIsBlocked UserIsBlocked {
get { return reasonCase_ == ReasonOneofCase.UserIsBlocked ? (global::Keyapis.IdentityB2b.V1.SsoError.Types.UserIsBlocked) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.UserIsBlocked;
}
}
/// Field number for the "interval_exceeded" field.
public const int IntervalExceededFieldNumber = 5;
///
/// Превышен интервал отправки кода подтверждения
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.SsoError.Types.IntervalExceeded IntervalExceeded {
get { return reasonCase_ == ReasonOneofCase.IntervalExceeded ? (global::Keyapis.IdentityB2b.V1.SsoError.Types.IntervalExceeded) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.IntervalExceeded;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
UserIsTemporaryBlocked = 1,
UserNotFound = 2,
WrongCredentials = 3,
UserIsBlocked = 4,
IntervalExceeded = 5,
}
private ReasonOneofCase reasonCase_ = ReasonOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ReasonOneofCase ReasonCase {
get { return reasonCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearReason() {
reasonCase_ = ReasonOneofCase.None;
reason_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as SsoError);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(SsoError other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(UserIsTemporaryBlocked, other.UserIsTemporaryBlocked)) return false;
if (!object.Equals(UserNotFound, other.UserNotFound)) return false;
if (!object.Equals(WrongCredentials, other.WrongCredentials)) return false;
if (!object.Equals(UserIsBlocked, other.UserIsBlocked)) return false;
if (!object.Equals(IntervalExceeded, other.IntervalExceeded)) return false;
if (ReasonCase != other.ReasonCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (reasonCase_ == ReasonOneofCase.UserIsTemporaryBlocked) hash ^= UserIsTemporaryBlocked.GetHashCode();
if (reasonCase_ == ReasonOneofCase.UserNotFound) hash ^= UserNotFound.GetHashCode();
if (reasonCase_ == ReasonOneofCase.WrongCredentials) hash ^= WrongCredentials.GetHashCode();
if (reasonCase_ == ReasonOneofCase.UserIsBlocked) hash ^= UserIsBlocked.GetHashCode();
if (reasonCase_ == ReasonOneofCase.IntervalExceeded) hash ^= IntervalExceeded.GetHashCode();
hash ^= (int) reasonCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (reasonCase_ == ReasonOneofCase.UserIsTemporaryBlocked) {
output.WriteRawTag(10);
output.WriteMessage(UserIsTemporaryBlocked);
}
if (reasonCase_ == ReasonOneofCase.UserNotFound) {
output.WriteRawTag(18);
output.WriteMessage(UserNotFound);
}
if (reasonCase_ == ReasonOneofCase.WrongCredentials) {
output.WriteRawTag(26);
output.WriteMessage(WrongCredentials);
}
if (reasonCase_ == ReasonOneofCase.UserIsBlocked) {
output.WriteRawTag(34);
output.WriteMessage(UserIsBlocked);
}
if (reasonCase_ == ReasonOneofCase.IntervalExceeded) {
output.WriteRawTag(42);
output.WriteMessage(IntervalExceeded);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (reasonCase_ == ReasonOneofCase.UserIsTemporaryBlocked) {
output.WriteRawTag(10);
output.WriteMessage(UserIsTemporaryBlocked);
}
if (reasonCase_ == ReasonOneofCase.UserNotFound) {
output.WriteRawTag(18);
output.WriteMessage(UserNotFound);
}
if (reasonCase_ == ReasonOneofCase.WrongCredentials) {
output.WriteRawTag(26);
output.WriteMessage(WrongCredentials);
}
if (reasonCase_ == ReasonOneofCase.UserIsBlocked) {
output.WriteRawTag(34);
output.WriteMessage(UserIsBlocked);
}
if (reasonCase_ == ReasonOneofCase.IntervalExceeded) {
output.WriteRawTag(42);
output.WriteMessage(IntervalExceeded);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (reasonCase_ == ReasonOneofCase.UserIsTemporaryBlocked) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserIsTemporaryBlocked);
}
if (reasonCase_ == ReasonOneofCase.UserNotFound) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserNotFound);
}
if (reasonCase_ == ReasonOneofCase.WrongCredentials) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(WrongCredentials);
}
if (reasonCase_ == ReasonOneofCase.UserIsBlocked) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserIsBlocked);
}
if (reasonCase_ == ReasonOneofCase.IntervalExceeded) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(IntervalExceeded);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(SsoError other) {
if (other == null) {
return;
}
switch (other.ReasonCase) {
case ReasonOneofCase.UserIsTemporaryBlocked:
if (UserIsTemporaryBlocked == null) {
UserIsTemporaryBlocked = new global::Keyapis.IdentityB2b.V1.SsoError.Types.UserIsTemporaryBlocked();
}
UserIsTemporaryBlocked.MergeFrom(other.UserIsTemporaryBlocked);
break;
case ReasonOneofCase.UserNotFound:
if (UserNotFound == null) {
UserNotFound = new global::Keyapis.IdentityB2b.V1.SsoError.Types.UserNotFound();
}
UserNotFound.MergeFrom(other.UserNotFound);
break;
case ReasonOneofCase.WrongCredentials:
if (WrongCredentials == null) {
WrongCredentials = new global::Keyapis.IdentityB2b.V1.SsoError.Types.WrongCredentials();
}
WrongCredentials.MergeFrom(other.WrongCredentials);
break;
case ReasonOneofCase.UserIsBlocked:
if (UserIsBlocked == null) {
UserIsBlocked = new global::Keyapis.IdentityB2b.V1.SsoError.Types.UserIsBlocked();
}
UserIsBlocked.MergeFrom(other.UserIsBlocked);
break;
case ReasonOneofCase.IntervalExceeded:
if (IntervalExceeded == null) {
IntervalExceeded = new global::Keyapis.IdentityB2b.V1.SsoError.Types.IntervalExceeded();
}
IntervalExceeded.MergeFrom(other.IntervalExceeded);
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
global::Keyapis.IdentityB2b.V1.SsoError.Types.UserIsTemporaryBlocked subBuilder = new global::Keyapis.IdentityB2b.V1.SsoError.Types.UserIsTemporaryBlocked();
if (reasonCase_ == ReasonOneofCase.UserIsTemporaryBlocked) {
subBuilder.MergeFrom(UserIsTemporaryBlocked);
}
input.ReadMessage(subBuilder);
UserIsTemporaryBlocked = subBuilder;
break;
}
case 18: {
global::Keyapis.IdentityB2b.V1.SsoError.Types.UserNotFound subBuilder = new global::Keyapis.IdentityB2b.V1.SsoError.Types.UserNotFound();
if (reasonCase_ == ReasonOneofCase.UserNotFound) {
subBuilder.MergeFrom(UserNotFound);
}
input.ReadMessage(subBuilder);
UserNotFound = subBuilder;
break;
}
case 26: {
global::Keyapis.IdentityB2b.V1.SsoError.Types.WrongCredentials subBuilder = new global::Keyapis.IdentityB2b.V1.SsoError.Types.WrongCredentials();
if (reasonCase_ == ReasonOneofCase.WrongCredentials) {
subBuilder.MergeFrom(WrongCredentials);
}
input.ReadMessage(subBuilder);
WrongCredentials = subBuilder;
break;
}
case 34: {
global::Keyapis.IdentityB2b.V1.SsoError.Types.UserIsBlocked subBuilder = new global::Keyapis.IdentityB2b.V1.SsoError.Types.UserIsBlocked();
if (reasonCase_ == ReasonOneofCase.UserIsBlocked) {
subBuilder.MergeFrom(UserIsBlocked);
}
input.ReadMessage(subBuilder);
UserIsBlocked = subBuilder;
break;
}
case 42: {
global::Keyapis.IdentityB2b.V1.SsoError.Types.IntervalExceeded subBuilder = new global::Keyapis.IdentityB2b.V1.SsoError.Types.IntervalExceeded();
if (reasonCase_ == ReasonOneofCase.IntervalExceeded) {
subBuilder.MergeFrom(IntervalExceeded);
}
input.ReadMessage(subBuilder);
IntervalExceeded = subBuilder;
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
global::Keyapis.IdentityB2b.V1.SsoError.Types.UserIsTemporaryBlocked subBuilder = new global::Keyapis.IdentityB2b.V1.SsoError.Types.UserIsTemporaryBlocked();
if (reasonCase_ == ReasonOneofCase.UserIsTemporaryBlocked) {
subBuilder.MergeFrom(UserIsTemporaryBlocked);
}
input.ReadMessage(subBuilder);
UserIsTemporaryBlocked = subBuilder;
break;
}
case 18: {
global::Keyapis.IdentityB2b.V1.SsoError.Types.UserNotFound subBuilder = new global::Keyapis.IdentityB2b.V1.SsoError.Types.UserNotFound();
if (reasonCase_ == ReasonOneofCase.UserNotFound) {
subBuilder.MergeFrom(UserNotFound);
}
input.ReadMessage(subBuilder);
UserNotFound = subBuilder;
break;
}
case 26: {
global::Keyapis.IdentityB2b.V1.SsoError.Types.WrongCredentials subBuilder = new global::Keyapis.IdentityB2b.V1.SsoError.Types.WrongCredentials();
if (reasonCase_ == ReasonOneofCase.WrongCredentials) {
subBuilder.MergeFrom(WrongCredentials);
}
input.ReadMessage(subBuilder);
WrongCredentials = subBuilder;
break;
}
case 34: {
global::Keyapis.IdentityB2b.V1.SsoError.Types.UserIsBlocked subBuilder = new global::Keyapis.IdentityB2b.V1.SsoError.Types.UserIsBlocked();
if (reasonCase_ == ReasonOneofCase.UserIsBlocked) {
subBuilder.MergeFrom(UserIsBlocked);
}
input.ReadMessage(subBuilder);
UserIsBlocked = subBuilder;
break;
}
case 42: {
global::Keyapis.IdentityB2b.V1.SsoError.Types.IntervalExceeded subBuilder = new global::Keyapis.IdentityB2b.V1.SsoError.Types.IntervalExceeded();
if (reasonCase_ == ReasonOneofCase.IntervalExceeded) {
subBuilder.MergeFrom(IntervalExceeded);
}
input.ReadMessage(subBuilder);
IntervalExceeded = subBuilder;
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the SsoError message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Пользователь временно заблокирован
///
public sealed partial class UserIsTemporaryBlocked : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserIsTemporaryBlocked());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.SsoError.Descriptor.NestedTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public UserIsTemporaryBlocked() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public UserIsTemporaryBlocked(UserIsTemporaryBlocked other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public UserIsTemporaryBlocked Clone() {
return new UserIsTemporaryBlocked(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as UserIsTemporaryBlocked);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(UserIsTemporaryBlocked other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(UserIsTemporaryBlocked other) {
if (other == null) {
return;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
}
}
}
#endif
}
///
/// Пользователь не найден
///
public sealed partial class UserNotFound : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserNotFound());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.SsoError.Descriptor.NestedTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public UserNotFound() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public UserNotFound(UserNotFound other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public UserNotFound Clone() {
return new UserNotFound(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as UserNotFound);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(UserNotFound other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(UserNotFound other) {
if (other == null) {
return;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
}
}
}
#endif
}
///
/// Неверный пароль
///
public sealed partial class WrongCredentials : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WrongCredentials());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.SsoError.Descriptor.NestedTypes[2]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public WrongCredentials() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public WrongCredentials(WrongCredentials other) : this() {
captcha_ = other.captcha_ != null ? other.captcha_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public WrongCredentials Clone() {
return new WrongCredentials(this);
}
/// Field number for the "captcha" field.
public const int CaptchaFieldNumber = 1;
private global::Keyapis.IdentityB2b.V1.Captcha captcha_;
///
/// Капча
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.Captcha Captcha {
get { return captcha_; }
set {
captcha_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as WrongCredentials);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(WrongCredentials other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Captcha, other.Captcha)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (captcha_ != null) hash ^= Captcha.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (captcha_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Captcha);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (captcha_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Captcha);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (captcha_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Captcha);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(WrongCredentials other) {
if (other == null) {
return;
}
if (other.captcha_ != null) {
if (captcha_ == null) {
Captcha = new global::Keyapis.IdentityB2b.V1.Captcha();
}
Captcha.MergeFrom(other.Captcha);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (captcha_ == null) {
Captcha = new global::Keyapis.IdentityB2b.V1.Captcha();
}
input.ReadMessage(Captcha);
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
if (captcha_ == null) {
Captcha = new global::Keyapis.IdentityB2b.V1.Captcha();
}
input.ReadMessage(Captcha);
break;
}
}
}
}
#endif
}
///
/// Пользователь заблокирован
///
public sealed partial class UserIsBlocked : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserIsBlocked());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.SsoError.Descriptor.NestedTypes[3]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public UserIsBlocked() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public UserIsBlocked(UserIsBlocked other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public UserIsBlocked Clone() {
return new UserIsBlocked(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as UserIsBlocked);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(UserIsBlocked other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(UserIsBlocked other) {
if (other == null) {
return;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
}
}
}
#endif
}
///
/// Превышен интервал отправки кода подтверждения
///
public sealed partial class IntervalExceeded : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IntervalExceeded());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.SsoError.Descriptor.NestedTypes[4]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public IntervalExceeded() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public IntervalExceeded(IntervalExceeded other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public IntervalExceeded Clone() {
return new IntervalExceeded(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as IntervalExceeded);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(IntervalExceeded other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(IntervalExceeded other) {
if (other == null) {
return;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
}
}
}
#endif
}
}
#endregion
}
///
/// Ошибки сервисов ключа
///
public sealed partial class KeyError : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeyError());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.KeyapisIdentityB2BAuthorizationV1Reflection.Descriptor.MessageTypes[5]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public KeyError() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public KeyError(KeyError other) : this() {
switch (other.ReasonCase) {
case ReasonOneofCase.UserCreation:
UserCreation = other.UserCreation.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public KeyError Clone() {
return new KeyError(this);
}
/// Field number for the "user_creation" field.
public const int UserCreationFieldNumber = 1;
///
/// Ошибка создания пользователя
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.KeyError.Types.UserCreation UserCreation {
get { return reasonCase_ == ReasonOneofCase.UserCreation ? (global::Keyapis.IdentityB2b.V1.KeyError.Types.UserCreation) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.UserCreation;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
UserCreation = 1,
}
private ReasonOneofCase reasonCase_ = ReasonOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ReasonOneofCase ReasonCase {
get { return reasonCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearReason() {
reasonCase_ = ReasonOneofCase.None;
reason_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as KeyError);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(KeyError other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(UserCreation, other.UserCreation)) return false;
if (ReasonCase != other.ReasonCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (reasonCase_ == ReasonOneofCase.UserCreation) hash ^= UserCreation.GetHashCode();
hash ^= (int) reasonCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (reasonCase_ == ReasonOneofCase.UserCreation) {
output.WriteRawTag(10);
output.WriteMessage(UserCreation);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (reasonCase_ == ReasonOneofCase.UserCreation) {
output.WriteRawTag(10);
output.WriteMessage(UserCreation);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (reasonCase_ == ReasonOneofCase.UserCreation) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserCreation);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(KeyError other) {
if (other == null) {
return;
}
switch (other.ReasonCase) {
case ReasonOneofCase.UserCreation:
if (UserCreation == null) {
UserCreation = new global::Keyapis.IdentityB2b.V1.KeyError.Types.UserCreation();
}
UserCreation.MergeFrom(other.UserCreation);
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
global::Keyapis.IdentityB2b.V1.KeyError.Types.UserCreation subBuilder = new global::Keyapis.IdentityB2b.V1.KeyError.Types.UserCreation();
if (reasonCase_ == ReasonOneofCase.UserCreation) {
subBuilder.MergeFrom(UserCreation);
}
input.ReadMessage(subBuilder);
UserCreation = subBuilder;
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
global::Keyapis.IdentityB2b.V1.KeyError.Types.UserCreation subBuilder = new global::Keyapis.IdentityB2b.V1.KeyError.Types.UserCreation();
if (reasonCase_ == ReasonOneofCase.UserCreation) {
subBuilder.MergeFrom(UserCreation);
}
input.ReadMessage(subBuilder);
UserCreation = subBuilder;
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the KeyError message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Ошибка создания пользователя
///
public sealed partial class UserCreation : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserCreation());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.KeyError.Descriptor.NestedTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public UserCreation() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public UserCreation(UserCreation other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public UserCreation Clone() {
return new UserCreation(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as UserCreation);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(UserCreation other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(UserCreation other) {
if (other == null) {
return;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
}
}
}
#endif
}
}
#endregion
}
///
/// Запрос на отправку ОТП-кода для B2B
///
public sealed partial class PostAuthorizationSendCodeRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostAuthorizationSendCodeRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.KeyapisIdentityB2BAuthorizationV1Reflection.Descriptor.MessageTypes[6]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationSendCodeRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationSendCodeRequest(PostAuthorizationSendCodeRequest other) : this() {
captchaAnswer_ = other.captchaAnswer_ != null ? other.captchaAnswer_.Clone() : null;
switch (other.OtpTextCase) {
case OtpTextOneofCase.PhoneNumber:
PhoneNumber = other.PhoneNumber;
break;
case OtpTextOneofCase.Email:
Email = other.Email;
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationSendCodeRequest Clone() {
return new PostAuthorizationSendCodeRequest(this);
}
/// Field number for the "captcha_answer" field.
public const int CaptchaAnswerFieldNumber = 1;
private global::Keyapis.IdentityB2b.V1.CaptchaAnswer captchaAnswer_;
///
/// Ответ на капчу
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.CaptchaAnswer CaptchaAnswer {
get { return captchaAnswer_; }
set {
captchaAnswer_ = value;
}
}
/// Field number for the "phone_number" field.
public const int PhoneNumberFieldNumber = 2;
///
/// Номер телефона
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string PhoneNumber {
get { return HasPhoneNumber ? (string) otpText_ : ""; }
set {
otpText_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
otpTextCase_ = OtpTextOneofCase.PhoneNumber;
}
}
/// Gets whether the "phone_number" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasPhoneNumber {
get { return otpTextCase_ == OtpTextOneofCase.PhoneNumber; }
}
/// Clears the value of the oneof if it's currently set to "phone_number"
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearPhoneNumber() {
if (HasPhoneNumber) {
ClearOtpText();
}
}
/// Field number for the "email" field.
public const int EmailFieldNumber = 3;
///
/// Электронная почта
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Email {
get { return HasEmail ? (string) otpText_ : ""; }
set {
otpText_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
otpTextCase_ = OtpTextOneofCase.Email;
}
}
/// Gets whether the "email" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasEmail {
get { return otpTextCase_ == OtpTextOneofCase.Email; }
}
/// Clears the value of the oneof if it's currently set to "email"
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearEmail() {
if (HasEmail) {
ClearOtpText();
}
}
private object otpText_;
/// Enum of possible cases for the "otp_text" oneof.
public enum OtpTextOneofCase {
None = 0,
PhoneNumber = 2,
Email = 3,
}
private OtpTextOneofCase otpTextCase_ = OtpTextOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OtpTextOneofCase OtpTextCase {
get { return otpTextCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearOtpText() {
otpTextCase_ = OtpTextOneofCase.None;
otpText_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostAuthorizationSendCodeRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostAuthorizationSendCodeRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(CaptchaAnswer, other.CaptchaAnswer)) return false;
if (PhoneNumber != other.PhoneNumber) return false;
if (Email != other.Email) return false;
if (OtpTextCase != other.OtpTextCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (captchaAnswer_ != null) hash ^= CaptchaAnswer.GetHashCode();
if (HasPhoneNumber) hash ^= PhoneNumber.GetHashCode();
if (HasEmail) hash ^= Email.GetHashCode();
hash ^= (int) otpTextCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (captchaAnswer_ != null) {
output.WriteRawTag(10);
output.WriteMessage(CaptchaAnswer);
}
if (HasPhoneNumber) {
output.WriteRawTag(18);
output.WriteString(PhoneNumber);
}
if (HasEmail) {
output.WriteRawTag(26);
output.WriteString(Email);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (captchaAnswer_ != null) {
output.WriteRawTag(10);
output.WriteMessage(CaptchaAnswer);
}
if (HasPhoneNumber) {
output.WriteRawTag(18);
output.WriteString(PhoneNumber);
}
if (HasEmail) {
output.WriteRawTag(26);
output.WriteString(Email);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (captchaAnswer_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CaptchaAnswer);
}
if (HasPhoneNumber) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(PhoneNumber);
}
if (HasEmail) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Email);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PostAuthorizationSendCodeRequest other) {
if (other == null) {
return;
}
if (other.captchaAnswer_ != null) {
if (captchaAnswer_ == null) {
CaptchaAnswer = new global::Keyapis.IdentityB2b.V1.CaptchaAnswer();
}
CaptchaAnswer.MergeFrom(other.CaptchaAnswer);
}
switch (other.OtpTextCase) {
case OtpTextOneofCase.PhoneNumber:
PhoneNumber = other.PhoneNumber;
break;
case OtpTextOneofCase.Email:
Email = other.Email;
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (captchaAnswer_ == null) {
CaptchaAnswer = new global::Keyapis.IdentityB2b.V1.CaptchaAnswer();
}
input.ReadMessage(CaptchaAnswer);
break;
}
case 18: {
PhoneNumber = input.ReadString();
break;
}
case 26: {
Email = input.ReadString();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
if (captchaAnswer_ == null) {
CaptchaAnswer = new global::Keyapis.IdentityB2b.V1.CaptchaAnswer();
}
input.ReadMessage(CaptchaAnswer);
break;
}
case 18: {
PhoneNumber = input.ReadString();
break;
}
case 26: {
Email = input.ReadString();
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос на отправку ОТП-кода для B2B
///
public sealed partial class PostAuthorizationSendCodeResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostAuthorizationSendCodeResponse());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.KeyapisIdentityB2BAuthorizationV1Reflection.Descriptor.MessageTypes[7]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationSendCodeResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationSendCodeResponse(PostAuthorizationSendCodeResponse other) : this() {
switch (other.TypeCase) {
case TypeOneofCase.Error:
Error = other.Error.Clone();
break;
case TypeOneofCase.Data:
Data = other.Data.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationSendCodeResponse Clone() {
return new PostAuthorizationSendCodeResponse(this);
}
/// Field number for the "error" field.
public const int ErrorFieldNumber = 1;
///
/// Ошибка
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.PostAuthorizationSendCodeResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.IdentityB2b.V1.PostAuthorizationSendCodeResponse.Types.Error) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error;
}
}
/// Field number for the "data" field.
public const int DataFieldNumber = 2;
///
/// Информация об ОТП-коде
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.OtpCode Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.IdentityB2b.V1.OtpCode) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data;
}
}
private object type_;
/// Enum of possible cases for the "type" oneof.
public enum TypeOneofCase {
None = 0,
Error = 1,
Data = 2,
}
private TypeOneofCase typeCase_ = TypeOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TypeOneofCase TypeCase {
get { return typeCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearType() {
typeCase_ = TypeOneofCase.None;
type_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostAuthorizationSendCodeResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostAuthorizationSendCodeResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Error, other.Error)) return false;
if (!object.Equals(Data, other.Data)) return false;
if (TypeCase != other.TypeCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode();
if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode();
hash ^= (int) typeCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(10);
output.WriteMessage(Error);
}
if (typeCase_ == TypeOneofCase.Data) {
output.WriteRawTag(18);
output.WriteMessage(Data);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(10);
output.WriteMessage(Error);
}
if (typeCase_ == TypeOneofCase.Data) {
output.WriteRawTag(18);
output.WriteMessage(Data);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (typeCase_ == TypeOneofCase.Error) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error);
}
if (typeCase_ == TypeOneofCase.Data) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PostAuthorizationSendCodeResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Keyapis.IdentityB2b.V1.PostAuthorizationSendCodeResponse.Types.Error();
}
Error.MergeFrom(other.Error);
break;
case TypeOneofCase.Data:
if (Data == null) {
Data = new global::Keyapis.IdentityB2b.V1.OtpCode();
}
Data.MergeFrom(other.Data);
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
global::Keyapis.IdentityB2b.V1.PostAuthorizationSendCodeResponse.Types.Error subBuilder = new global::Keyapis.IdentityB2b.V1.PostAuthorizationSendCodeResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
case 18: {
global::Keyapis.IdentityB2b.V1.OtpCode subBuilder = new global::Keyapis.IdentityB2b.V1.OtpCode();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
global::Keyapis.IdentityB2b.V1.PostAuthorizationSendCodeResponse.Types.Error subBuilder = new global::Keyapis.IdentityB2b.V1.PostAuthorizationSendCodeResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
case 18: {
global::Keyapis.IdentityB2b.V1.OtpCode subBuilder = new global::Keyapis.IdentityB2b.V1.OtpCode();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the PostAuthorizationSendCodeResponse message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Ошибка запроса на отправку ОТП-кода
///
public sealed partial class Error : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.PostAuthorizationSendCodeResponse.Descriptor.NestedTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error(Error other) : this() {
switch (other.ReasonCase) {
case ReasonOneofCase.CaptchaAnswer:
CaptchaAnswer = other.CaptchaAnswer.Clone();
break;
case ReasonOneofCase.Sso:
Sso = other.Sso.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error Clone() {
return new Error(this);
}
/// Field number for the "captcha_answer" field.
public const int CaptchaAnswerFieldNumber = 1;
///
/// Ошибка ответа с капчей
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error CaptchaAnswer {
get { return reasonCase_ == ReasonOneofCase.CaptchaAnswer ? (global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.CaptchaAnswer;
}
}
/// Field number for the "sso" field.
public const int SsoFieldNumber = 2;
///
/// Ошибка из ССО
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.SsoError Sso {
get { return reasonCase_ == ReasonOneofCase.Sso ? (global::Keyapis.IdentityB2b.V1.SsoError) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Sso;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
CaptchaAnswer = 1,
Sso = 2,
}
private ReasonOneofCase reasonCase_ = ReasonOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ReasonOneofCase ReasonCase {
get { return reasonCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearReason() {
reasonCase_ = ReasonOneofCase.None;
reason_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Error);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Error other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(CaptchaAnswer, other.CaptchaAnswer)) return false;
if (!object.Equals(Sso, other.Sso)) return false;
if (ReasonCase != other.ReasonCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (reasonCase_ == ReasonOneofCase.CaptchaAnswer) hash ^= CaptchaAnswer.GetHashCode();
if (reasonCase_ == ReasonOneofCase.Sso) hash ^= Sso.GetHashCode();
hash ^= (int) reasonCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (reasonCase_ == ReasonOneofCase.CaptchaAnswer) {
output.WriteRawTag(10);
output.WriteMessage(CaptchaAnswer);
}
if (reasonCase_ == ReasonOneofCase.Sso) {
output.WriteRawTag(18);
output.WriteMessage(Sso);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (reasonCase_ == ReasonOneofCase.CaptchaAnswer) {
output.WriteRawTag(10);
output.WriteMessage(CaptchaAnswer);
}
if (reasonCase_ == ReasonOneofCase.Sso) {
output.WriteRawTag(18);
output.WriteMessage(Sso);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (reasonCase_ == ReasonOneofCase.CaptchaAnswer) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CaptchaAnswer);
}
if (reasonCase_ == ReasonOneofCase.Sso) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sso);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Error other) {
if (other == null) {
return;
}
switch (other.ReasonCase) {
case ReasonOneofCase.CaptchaAnswer:
if (CaptchaAnswer == null) {
CaptchaAnswer = new global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error();
}
CaptchaAnswer.MergeFrom(other.CaptchaAnswer);
break;
case ReasonOneofCase.Sso:
if (Sso == null) {
Sso = new global::Keyapis.IdentityB2b.V1.SsoError();
}
Sso.MergeFrom(other.Sso);
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error subBuilder = new global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error();
if (reasonCase_ == ReasonOneofCase.CaptchaAnswer) {
subBuilder.MergeFrom(CaptchaAnswer);
}
input.ReadMessage(subBuilder);
CaptchaAnswer = subBuilder;
break;
}
case 18: {
global::Keyapis.IdentityB2b.V1.SsoError subBuilder = new global::Keyapis.IdentityB2b.V1.SsoError();
if (reasonCase_ == ReasonOneofCase.Sso) {
subBuilder.MergeFrom(Sso);
}
input.ReadMessage(subBuilder);
Sso = subBuilder;
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error subBuilder = new global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error();
if (reasonCase_ == ReasonOneofCase.CaptchaAnswer) {
subBuilder.MergeFrom(CaptchaAnswer);
}
input.ReadMessage(subBuilder);
CaptchaAnswer = subBuilder;
break;
}
case 18: {
global::Keyapis.IdentityB2b.V1.SsoError subBuilder = new global::Keyapis.IdentityB2b.V1.SsoError();
if (reasonCase_ == ReasonOneofCase.Sso) {
subBuilder.MergeFrom(Sso);
}
input.ReadMessage(subBuilder);
Sso = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Запрос на авторизацию по ОТП-коду для B2B
///
public sealed partial class PostAuthorizationLoginRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostAuthorizationLoginRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.KeyapisIdentityB2BAuthorizationV1Reflection.Descriptor.MessageTypes[8]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationLoginRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationLoginRequest(PostAuthorizationLoginRequest other) : this() {
codeId_ = other.codeId_;
code_ = other.code_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationLoginRequest Clone() {
return new PostAuthorizationLoginRequest(this);
}
/// Field number for the "code_id" field.
public const int CodeIdFieldNumber = 1;
private string codeId_ = "";
///
/// Идентификатор ОТП-кода
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string CodeId {
get { return codeId_; }
set {
codeId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "code" field.
public const int CodeFieldNumber = 2;
private string code_ = "";
///
/// Значение ОТП-кода
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Code {
get { return code_; }
set {
code_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostAuthorizationLoginRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostAuthorizationLoginRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (CodeId != other.CodeId) return false;
if (Code != other.Code) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (CodeId.Length != 0) hash ^= CodeId.GetHashCode();
if (Code.Length != 0) hash ^= Code.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (CodeId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(CodeId);
}
if (Code.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Code);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (CodeId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(CodeId);
}
if (Code.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Code);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (CodeId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CodeId);
}
if (Code.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Code);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PostAuthorizationLoginRequest other) {
if (other == null) {
return;
}
if (other.CodeId.Length != 0) {
CodeId = other.CodeId;
}
if (other.Code.Length != 0) {
Code = other.Code;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
CodeId = input.ReadString();
break;
}
case 18: {
Code = input.ReadString();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
CodeId = input.ReadString();
break;
}
case 18: {
Code = input.ReadString();
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос об авторизации пользователя B2B
///
public sealed partial class PostAuthorizationLoginResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostAuthorizationLoginResponse());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.KeyapisIdentityB2BAuthorizationV1Reflection.Descriptor.MessageTypes[9]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationLoginResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationLoginResponse(PostAuthorizationLoginResponse other) : this() {
switch (other.TypeCase) {
case TypeOneofCase.Error:
Error = other.Error.Clone();
break;
case TypeOneofCase.Data:
Data = other.Data.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationLoginResponse Clone() {
return new PostAuthorizationLoginResponse(this);
}
/// Field number for the "error" field.
public const int ErrorFieldNumber = 1;
///
/// Ошибка
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginResponse.Types.Error) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error;
}
}
/// Field number for the "data" field.
public const int DataFieldNumber = 2;
///
/// Токен пользователя
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.UserToken Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.IdentityB2b.V1.UserToken) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data;
}
}
private object type_;
/// Enum of possible cases for the "type" oneof.
public enum TypeOneofCase {
None = 0,
Error = 1,
Data = 2,
}
private TypeOneofCase typeCase_ = TypeOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TypeOneofCase TypeCase {
get { return typeCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearType() {
typeCase_ = TypeOneofCase.None;
type_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostAuthorizationLoginResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostAuthorizationLoginResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Error, other.Error)) return false;
if (!object.Equals(Data, other.Data)) return false;
if (TypeCase != other.TypeCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode();
if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode();
hash ^= (int) typeCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(10);
output.WriteMessage(Error);
}
if (typeCase_ == TypeOneofCase.Data) {
output.WriteRawTag(18);
output.WriteMessage(Data);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(10);
output.WriteMessage(Error);
}
if (typeCase_ == TypeOneofCase.Data) {
output.WriteRawTag(18);
output.WriteMessage(Data);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (typeCase_ == TypeOneofCase.Error) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error);
}
if (typeCase_ == TypeOneofCase.Data) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PostAuthorizationLoginResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginResponse.Types.Error();
}
Error.MergeFrom(other.Error);
break;
case TypeOneofCase.Data:
if (Data == null) {
Data = new global::Keyapis.IdentityB2b.V1.UserToken();
}
Data.MergeFrom(other.Data);
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginResponse.Types.Error subBuilder = new global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
case 18: {
global::Keyapis.IdentityB2b.V1.UserToken subBuilder = new global::Keyapis.IdentityB2b.V1.UserToken();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginResponse.Types.Error subBuilder = new global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
case 18: {
global::Keyapis.IdentityB2b.V1.UserToken subBuilder = new global::Keyapis.IdentityB2b.V1.UserToken();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the PostAuthorizationLoginResponse message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Ошибка запроса авторизации пользователя
///
public sealed partial class Error : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginResponse.Descriptor.NestedTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error(Error other) : this() {
switch (other.ReasonCase) {
case ReasonOneofCase.OtpCode:
OtpCode = other.OtpCode.Clone();
break;
case ReasonOneofCase.Sso:
Sso = other.Sso.Clone();
break;
case ReasonOneofCase.Key:
Key = other.Key.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error Clone() {
return new Error(this);
}
/// Field number for the "otp_code" field.
public const int OtpCodeFieldNumber = 1;
///
/// Ошибка отп-кода
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error OtpCode {
get { return reasonCase_ == ReasonOneofCase.OtpCode ? (global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.OtpCode;
}
}
/// Field number for the "sso" field.
public const int SsoFieldNumber = 2;
///
/// Ошибка из ССО
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.SsoError Sso {
get { return reasonCase_ == ReasonOneofCase.Sso ? (global::Keyapis.IdentityB2b.V1.SsoError) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Sso;
}
}
/// Field number for the "key" field.
public const int KeyFieldNumber = 3;
///
/// Ошибка из сервисов ключа
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.KeyError Key {
get { return reasonCase_ == ReasonOneofCase.Key ? (global::Keyapis.IdentityB2b.V1.KeyError) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Key;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
OtpCode = 1,
Sso = 2,
Key = 3,
}
private ReasonOneofCase reasonCase_ = ReasonOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ReasonOneofCase ReasonCase {
get { return reasonCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearReason() {
reasonCase_ = ReasonOneofCase.None;
reason_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Error);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Error other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(OtpCode, other.OtpCode)) return false;
if (!object.Equals(Sso, other.Sso)) return false;
if (!object.Equals(Key, other.Key)) return false;
if (ReasonCase != other.ReasonCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (reasonCase_ == ReasonOneofCase.OtpCode) hash ^= OtpCode.GetHashCode();
if (reasonCase_ == ReasonOneofCase.Sso) hash ^= Sso.GetHashCode();
if (reasonCase_ == ReasonOneofCase.Key) hash ^= Key.GetHashCode();
hash ^= (int) reasonCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (reasonCase_ == ReasonOneofCase.OtpCode) {
output.WriteRawTag(10);
output.WriteMessage(OtpCode);
}
if (reasonCase_ == ReasonOneofCase.Sso) {
output.WriteRawTag(18);
output.WriteMessage(Sso);
}
if (reasonCase_ == ReasonOneofCase.Key) {
output.WriteRawTag(26);
output.WriteMessage(Key);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (reasonCase_ == ReasonOneofCase.OtpCode) {
output.WriteRawTag(10);
output.WriteMessage(OtpCode);
}
if (reasonCase_ == ReasonOneofCase.Sso) {
output.WriteRawTag(18);
output.WriteMessage(Sso);
}
if (reasonCase_ == ReasonOneofCase.Key) {
output.WriteRawTag(26);
output.WriteMessage(Key);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (reasonCase_ == ReasonOneofCase.OtpCode) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(OtpCode);
}
if (reasonCase_ == ReasonOneofCase.Sso) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sso);
}
if (reasonCase_ == ReasonOneofCase.Key) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Key);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Error other) {
if (other == null) {
return;
}
switch (other.ReasonCase) {
case ReasonOneofCase.OtpCode:
if (OtpCode == null) {
OtpCode = new global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error();
}
OtpCode.MergeFrom(other.OtpCode);
break;
case ReasonOneofCase.Sso:
if (Sso == null) {
Sso = new global::Keyapis.IdentityB2b.V1.SsoError();
}
Sso.MergeFrom(other.Sso);
break;
case ReasonOneofCase.Key:
if (Key == null) {
Key = new global::Keyapis.IdentityB2b.V1.KeyError();
}
Key.MergeFrom(other.Key);
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error subBuilder = new global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error();
if (reasonCase_ == ReasonOneofCase.OtpCode) {
subBuilder.MergeFrom(OtpCode);
}
input.ReadMessage(subBuilder);
OtpCode = subBuilder;
break;
}
case 18: {
global::Keyapis.IdentityB2b.V1.SsoError subBuilder = new global::Keyapis.IdentityB2b.V1.SsoError();
if (reasonCase_ == ReasonOneofCase.Sso) {
subBuilder.MergeFrom(Sso);
}
input.ReadMessage(subBuilder);
Sso = subBuilder;
break;
}
case 26: {
global::Keyapis.IdentityB2b.V1.KeyError subBuilder = new global::Keyapis.IdentityB2b.V1.KeyError();
if (reasonCase_ == ReasonOneofCase.Key) {
subBuilder.MergeFrom(Key);
}
input.ReadMessage(subBuilder);
Key = subBuilder;
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error subBuilder = new global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error();
if (reasonCase_ == ReasonOneofCase.OtpCode) {
subBuilder.MergeFrom(OtpCode);
}
input.ReadMessage(subBuilder);
OtpCode = subBuilder;
break;
}
case 18: {
global::Keyapis.IdentityB2b.V1.SsoError subBuilder = new global::Keyapis.IdentityB2b.V1.SsoError();
if (reasonCase_ == ReasonOneofCase.Sso) {
subBuilder.MergeFrom(Sso);
}
input.ReadMessage(subBuilder);
Sso = subBuilder;
break;
}
case 26: {
global::Keyapis.IdentityB2b.V1.KeyError subBuilder = new global::Keyapis.IdentityB2b.V1.KeyError();
if (reasonCase_ == ReasonOneofCase.Key) {
subBuilder.MergeFrom(Key);
}
input.ReadMessage(subBuilder);
Key = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Запрос на авторизацию по паролю для B2B
///
public sealed partial class PostAuthorizationLoginByPasswordRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostAuthorizationLoginByPasswordRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.KeyapisIdentityB2BAuthorizationV1Reflection.Descriptor.MessageTypes[10]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationLoginByPasswordRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationLoginByPasswordRequest(PostAuthorizationLoginByPasswordRequest other) : this() {
password_ = other.password_;
captchaAnswer_ = other.captchaAnswer_ != null ? other.captchaAnswer_.Clone() : null;
switch (other.TypeCase) {
case TypeOneofCase.PhoneNumber:
PhoneNumber = other.PhoneNumber;
break;
case TypeOneofCase.Email:
Email = other.Email;
break;
case TypeOneofCase.Login:
Login = other.Login;
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationLoginByPasswordRequest Clone() {
return new PostAuthorizationLoginByPasswordRequest(this);
}
/// Field number for the "password" field.
public const int PasswordFieldNumber = 1;
private string password_ = "";
///
/// Пароль
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Password {
get { return password_; }
set {
password_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "captcha_answer" field.
public const int CaptchaAnswerFieldNumber = 2;
private global::Keyapis.IdentityB2b.V1.CaptchaAnswer captchaAnswer_;
///
/// Ответ на капчу
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.CaptchaAnswer CaptchaAnswer {
get { return captchaAnswer_; }
set {
captchaAnswer_ = value;
}
}
/// Field number for the "phone_number" field.
public const int PhoneNumberFieldNumber = 3;
///
/// Номер телефона
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string PhoneNumber {
get { return HasPhoneNumber ? (string) type_ : ""; }
set {
type_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
typeCase_ = TypeOneofCase.PhoneNumber;
}
}
/// Gets whether the "phone_number" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasPhoneNumber {
get { return typeCase_ == TypeOneofCase.PhoneNumber; }
}
/// Clears the value of the oneof if it's currently set to "phone_number"
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearPhoneNumber() {
if (HasPhoneNumber) {
ClearType();
}
}
/// Field number for the "email" field.
public const int EmailFieldNumber = 4;
///
/// Электронная почта
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Email {
get { return HasEmail ? (string) type_ : ""; }
set {
type_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
typeCase_ = TypeOneofCase.Email;
}
}
/// Gets whether the "email" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasEmail {
get { return typeCase_ == TypeOneofCase.Email; }
}
/// Clears the value of the oneof if it's currently set to "email"
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearEmail() {
if (HasEmail) {
ClearType();
}
}
/// Field number for the "login" field.
public const int LoginFieldNumber = 5;
///
/// Логин
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Login {
get { return HasLogin ? (string) type_ : ""; }
set {
type_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
typeCase_ = TypeOneofCase.Login;
}
}
/// Gets whether the "login" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasLogin {
get { return typeCase_ == TypeOneofCase.Login; }
}
/// Clears the value of the oneof if it's currently set to "login"
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearLogin() {
if (HasLogin) {
ClearType();
}
}
private object type_;
/// Enum of possible cases for the "type" oneof.
public enum TypeOneofCase {
None = 0,
PhoneNumber = 3,
Email = 4,
Login = 5,
}
private TypeOneofCase typeCase_ = TypeOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TypeOneofCase TypeCase {
get { return typeCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearType() {
typeCase_ = TypeOneofCase.None;
type_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostAuthorizationLoginByPasswordRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostAuthorizationLoginByPasswordRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Password != other.Password) return false;
if (!object.Equals(CaptchaAnswer, other.CaptchaAnswer)) return false;
if (PhoneNumber != other.PhoneNumber) return false;
if (Email != other.Email) return false;
if (Login != other.Login) return false;
if (TypeCase != other.TypeCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Password.Length != 0) hash ^= Password.GetHashCode();
if (captchaAnswer_ != null) hash ^= CaptchaAnswer.GetHashCode();
if (HasPhoneNumber) hash ^= PhoneNumber.GetHashCode();
if (HasEmail) hash ^= Email.GetHashCode();
if (HasLogin) hash ^= Login.GetHashCode();
hash ^= (int) typeCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Password.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Password);
}
if (captchaAnswer_ != null) {
output.WriteRawTag(18);
output.WriteMessage(CaptchaAnswer);
}
if (HasPhoneNumber) {
output.WriteRawTag(26);
output.WriteString(PhoneNumber);
}
if (HasEmail) {
output.WriteRawTag(34);
output.WriteString(Email);
}
if (HasLogin) {
output.WriteRawTag(42);
output.WriteString(Login);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (Password.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Password);
}
if (captchaAnswer_ != null) {
output.WriteRawTag(18);
output.WriteMessage(CaptchaAnswer);
}
if (HasPhoneNumber) {
output.WriteRawTag(26);
output.WriteString(PhoneNumber);
}
if (HasEmail) {
output.WriteRawTag(34);
output.WriteString(Email);
}
if (HasLogin) {
output.WriteRawTag(42);
output.WriteString(Login);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Password.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Password);
}
if (captchaAnswer_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CaptchaAnswer);
}
if (HasPhoneNumber) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(PhoneNumber);
}
if (HasEmail) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Email);
}
if (HasLogin) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Login);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PostAuthorizationLoginByPasswordRequest other) {
if (other == null) {
return;
}
if (other.Password.Length != 0) {
Password = other.Password;
}
if (other.captchaAnswer_ != null) {
if (captchaAnswer_ == null) {
CaptchaAnswer = new global::Keyapis.IdentityB2b.V1.CaptchaAnswer();
}
CaptchaAnswer.MergeFrom(other.CaptchaAnswer);
}
switch (other.TypeCase) {
case TypeOneofCase.PhoneNumber:
PhoneNumber = other.PhoneNumber;
break;
case TypeOneofCase.Email:
Email = other.Email;
break;
case TypeOneofCase.Login:
Login = other.Login;
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
Password = input.ReadString();
break;
}
case 18: {
if (captchaAnswer_ == null) {
CaptchaAnswer = new global::Keyapis.IdentityB2b.V1.CaptchaAnswer();
}
input.ReadMessage(CaptchaAnswer);
break;
}
case 26: {
PhoneNumber = input.ReadString();
break;
}
case 34: {
Email = input.ReadString();
break;
}
case 42: {
Login = input.ReadString();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
Password = input.ReadString();
break;
}
case 18: {
if (captchaAnswer_ == null) {
CaptchaAnswer = new global::Keyapis.IdentityB2b.V1.CaptchaAnswer();
}
input.ReadMessage(CaptchaAnswer);
break;
}
case 26: {
PhoneNumber = input.ReadString();
break;
}
case 34: {
Email = input.ReadString();
break;
}
case 42: {
Login = input.ReadString();
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос об авторизации по паролю пользователя B2B
///
public sealed partial class PostAuthorizationLoginByPasswordResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostAuthorizationLoginByPasswordResponse());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.KeyapisIdentityB2BAuthorizationV1Reflection.Descriptor.MessageTypes[11]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationLoginByPasswordResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationLoginByPasswordResponse(PostAuthorizationLoginByPasswordResponse other) : this() {
switch (other.TypeCase) {
case TypeOneofCase.Error:
Error = other.Error.Clone();
break;
case TypeOneofCase.Data:
Data = other.Data.Clone();
break;
case TypeOneofCase.Data2Fa:
Data2Fa = other.Data2Fa.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationLoginByPasswordResponse Clone() {
return new PostAuthorizationLoginByPasswordResponse(this);
}
/// Field number for the "error" field.
public const int ErrorFieldNumber = 1;
///
/// Ошибка
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginByPasswordResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginByPasswordResponse.Types.Error) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error;
}
}
/// Field number for the "data" field.
public const int DataFieldNumber = 2;
///
/// Токен пользователя
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.UserToken Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.IdentityB2b.V1.UserToken) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data;
}
}
/// Field number for the "data2fa" field.
public const int Data2FaFieldNumber = 3;
///
/// Данные для двухфакторной аутентификации
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.Data2fa Data2Fa {
get { return typeCase_ == TypeOneofCase.Data2Fa ? (global::Keyapis.IdentityB2b.V1.Data2fa) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data2Fa;
}
}
private object type_;
/// Enum of possible cases for the "type" oneof.
public enum TypeOneofCase {
None = 0,
Error = 1,
Data = 2,
Data2Fa = 3,
}
private TypeOneofCase typeCase_ = TypeOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TypeOneofCase TypeCase {
get { return typeCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearType() {
typeCase_ = TypeOneofCase.None;
type_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostAuthorizationLoginByPasswordResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostAuthorizationLoginByPasswordResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Error, other.Error)) return false;
if (!object.Equals(Data, other.Data)) return false;
if (!object.Equals(Data2Fa, other.Data2Fa)) return false;
if (TypeCase != other.TypeCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode();
if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode();
if (typeCase_ == TypeOneofCase.Data2Fa) hash ^= Data2Fa.GetHashCode();
hash ^= (int) typeCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(10);
output.WriteMessage(Error);
}
if (typeCase_ == TypeOneofCase.Data) {
output.WriteRawTag(18);
output.WriteMessage(Data);
}
if (typeCase_ == TypeOneofCase.Data2Fa) {
output.WriteRawTag(26);
output.WriteMessage(Data2Fa);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(10);
output.WriteMessage(Error);
}
if (typeCase_ == TypeOneofCase.Data) {
output.WriteRawTag(18);
output.WriteMessage(Data);
}
if (typeCase_ == TypeOneofCase.Data2Fa) {
output.WriteRawTag(26);
output.WriteMessage(Data2Fa);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (typeCase_ == TypeOneofCase.Error) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error);
}
if (typeCase_ == TypeOneofCase.Data) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data);
}
if (typeCase_ == TypeOneofCase.Data2Fa) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data2Fa);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PostAuthorizationLoginByPasswordResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginByPasswordResponse.Types.Error();
}
Error.MergeFrom(other.Error);
break;
case TypeOneofCase.Data:
if (Data == null) {
Data = new global::Keyapis.IdentityB2b.V1.UserToken();
}
Data.MergeFrom(other.Data);
break;
case TypeOneofCase.Data2Fa:
if (Data2Fa == null) {
Data2Fa = new global::Keyapis.IdentityB2b.V1.Data2fa();
}
Data2Fa.MergeFrom(other.Data2Fa);
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginByPasswordResponse.Types.Error subBuilder = new global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginByPasswordResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
case 18: {
global::Keyapis.IdentityB2b.V1.UserToken subBuilder = new global::Keyapis.IdentityB2b.V1.UserToken();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 26: {
global::Keyapis.IdentityB2b.V1.Data2fa subBuilder = new global::Keyapis.IdentityB2b.V1.Data2fa();
if (typeCase_ == TypeOneofCase.Data2Fa) {
subBuilder.MergeFrom(Data2Fa);
}
input.ReadMessage(subBuilder);
Data2Fa = subBuilder;
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginByPasswordResponse.Types.Error subBuilder = new global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginByPasswordResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
case 18: {
global::Keyapis.IdentityB2b.V1.UserToken subBuilder = new global::Keyapis.IdentityB2b.V1.UserToken();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 26: {
global::Keyapis.IdentityB2b.V1.Data2fa subBuilder = new global::Keyapis.IdentityB2b.V1.Data2fa();
if (typeCase_ == TypeOneofCase.Data2Fa) {
subBuilder.MergeFrom(Data2Fa);
}
input.ReadMessage(subBuilder);
Data2Fa = subBuilder;
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the PostAuthorizationLoginByPasswordResponse message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Ошибка запроса авторизации по паролю пользователя
///
public sealed partial class Error : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.PostAuthorizationLoginByPasswordResponse.Descriptor.NestedTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error(Error other) : this() {
switch (other.ReasonCase) {
case ReasonOneofCase.CaptchaAnswer:
CaptchaAnswer = other.CaptchaAnswer.Clone();
break;
case ReasonOneofCase.Sso:
Sso = other.Sso.Clone();
break;
case ReasonOneofCase.Key:
Key = other.Key.Clone();
break;
case ReasonOneofCase.OtpCode:
OtpCode = other.OtpCode.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error Clone() {
return new Error(this);
}
/// Field number for the "captcha_answer" field.
public const int CaptchaAnswerFieldNumber = 1;
///
/// Ошибка капчи
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error CaptchaAnswer {
get { return reasonCase_ == ReasonOneofCase.CaptchaAnswer ? (global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.CaptchaAnswer;
}
}
/// Field number for the "sso" field.
public const int SsoFieldNumber = 2;
///
/// Ошибка из ССО
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.SsoError Sso {
get { return reasonCase_ == ReasonOneofCase.Sso ? (global::Keyapis.IdentityB2b.V1.SsoError) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Sso;
}
}
/// Field number for the "key" field.
public const int KeyFieldNumber = 3;
///
/// Ошибка из сервисов ключа
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.KeyError Key {
get { return reasonCase_ == ReasonOneofCase.Key ? (global::Keyapis.IdentityB2b.V1.KeyError) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Key;
}
}
/// Field number for the "otp_code" field.
public const int OtpCodeFieldNumber = 4;
///
/// Ошибка отп-кода
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error OtpCode {
get { return reasonCase_ == ReasonOneofCase.OtpCode ? (global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.OtpCode;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
CaptchaAnswer = 1,
Sso = 2,
Key = 3,
OtpCode = 4,
}
private ReasonOneofCase reasonCase_ = ReasonOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ReasonOneofCase ReasonCase {
get { return reasonCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearReason() {
reasonCase_ = ReasonOneofCase.None;
reason_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Error);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Error other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(CaptchaAnswer, other.CaptchaAnswer)) return false;
if (!object.Equals(Sso, other.Sso)) return false;
if (!object.Equals(Key, other.Key)) return false;
if (!object.Equals(OtpCode, other.OtpCode)) return false;
if (ReasonCase != other.ReasonCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (reasonCase_ == ReasonOneofCase.CaptchaAnswer) hash ^= CaptchaAnswer.GetHashCode();
if (reasonCase_ == ReasonOneofCase.Sso) hash ^= Sso.GetHashCode();
if (reasonCase_ == ReasonOneofCase.Key) hash ^= Key.GetHashCode();
if (reasonCase_ == ReasonOneofCase.OtpCode) hash ^= OtpCode.GetHashCode();
hash ^= (int) reasonCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (reasonCase_ == ReasonOneofCase.CaptchaAnswer) {
output.WriteRawTag(10);
output.WriteMessage(CaptchaAnswer);
}
if (reasonCase_ == ReasonOneofCase.Sso) {
output.WriteRawTag(18);
output.WriteMessage(Sso);
}
if (reasonCase_ == ReasonOneofCase.Key) {
output.WriteRawTag(26);
output.WriteMessage(Key);
}
if (reasonCase_ == ReasonOneofCase.OtpCode) {
output.WriteRawTag(34);
output.WriteMessage(OtpCode);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (reasonCase_ == ReasonOneofCase.CaptchaAnswer) {
output.WriteRawTag(10);
output.WriteMessage(CaptchaAnswer);
}
if (reasonCase_ == ReasonOneofCase.Sso) {
output.WriteRawTag(18);
output.WriteMessage(Sso);
}
if (reasonCase_ == ReasonOneofCase.Key) {
output.WriteRawTag(26);
output.WriteMessage(Key);
}
if (reasonCase_ == ReasonOneofCase.OtpCode) {
output.WriteRawTag(34);
output.WriteMessage(OtpCode);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (reasonCase_ == ReasonOneofCase.CaptchaAnswer) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CaptchaAnswer);
}
if (reasonCase_ == ReasonOneofCase.Sso) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sso);
}
if (reasonCase_ == ReasonOneofCase.Key) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Key);
}
if (reasonCase_ == ReasonOneofCase.OtpCode) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(OtpCode);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Error other) {
if (other == null) {
return;
}
switch (other.ReasonCase) {
case ReasonOneofCase.CaptchaAnswer:
if (CaptchaAnswer == null) {
CaptchaAnswer = new global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error();
}
CaptchaAnswer.MergeFrom(other.CaptchaAnswer);
break;
case ReasonOneofCase.Sso:
if (Sso == null) {
Sso = new global::Keyapis.IdentityB2b.V1.SsoError();
}
Sso.MergeFrom(other.Sso);
break;
case ReasonOneofCase.Key:
if (Key == null) {
Key = new global::Keyapis.IdentityB2b.V1.KeyError();
}
Key.MergeFrom(other.Key);
break;
case ReasonOneofCase.OtpCode:
if (OtpCode == null) {
OtpCode = new global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error();
}
OtpCode.MergeFrom(other.OtpCode);
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error subBuilder = new global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error();
if (reasonCase_ == ReasonOneofCase.CaptchaAnswer) {
subBuilder.MergeFrom(CaptchaAnswer);
}
input.ReadMessage(subBuilder);
CaptchaAnswer = subBuilder;
break;
}
case 18: {
global::Keyapis.IdentityB2b.V1.SsoError subBuilder = new global::Keyapis.IdentityB2b.V1.SsoError();
if (reasonCase_ == ReasonOneofCase.Sso) {
subBuilder.MergeFrom(Sso);
}
input.ReadMessage(subBuilder);
Sso = subBuilder;
break;
}
case 26: {
global::Keyapis.IdentityB2b.V1.KeyError subBuilder = new global::Keyapis.IdentityB2b.V1.KeyError();
if (reasonCase_ == ReasonOneofCase.Key) {
subBuilder.MergeFrom(Key);
}
input.ReadMessage(subBuilder);
Key = subBuilder;
break;
}
case 34: {
global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error subBuilder = new global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error();
if (reasonCase_ == ReasonOneofCase.OtpCode) {
subBuilder.MergeFrom(OtpCode);
}
input.ReadMessage(subBuilder);
OtpCode = subBuilder;
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error subBuilder = new global::Keyapis.IdentityB2b.V1.CaptchaAnswer.Types.Error();
if (reasonCase_ == ReasonOneofCase.CaptchaAnswer) {
subBuilder.MergeFrom(CaptchaAnswer);
}
input.ReadMessage(subBuilder);
CaptchaAnswer = subBuilder;
break;
}
case 18: {
global::Keyapis.IdentityB2b.V1.SsoError subBuilder = new global::Keyapis.IdentityB2b.V1.SsoError();
if (reasonCase_ == ReasonOneofCase.Sso) {
subBuilder.MergeFrom(Sso);
}
input.ReadMessage(subBuilder);
Sso = subBuilder;
break;
}
case 26: {
global::Keyapis.IdentityB2b.V1.KeyError subBuilder = new global::Keyapis.IdentityB2b.V1.KeyError();
if (reasonCase_ == ReasonOneofCase.Key) {
subBuilder.MergeFrom(Key);
}
input.ReadMessage(subBuilder);
Key = subBuilder;
break;
}
case 34: {
global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error subBuilder = new global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error();
if (reasonCase_ == ReasonOneofCase.OtpCode) {
subBuilder.MergeFrom(OtpCode);
}
input.ReadMessage(subBuilder);
OtpCode = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Запрос проверки кода двухфакторной авторизации и активация сессии для B2B
///
public sealed partial class PostAuthorizationCheckCodeRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostAuthorizationCheckCodeRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.KeyapisIdentityB2BAuthorizationV1Reflection.Descriptor.MessageTypes[12]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationCheckCodeRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationCheckCodeRequest(PostAuthorizationCheckCodeRequest other) : this() {
sessionId_ = other.sessionId_;
actionId_ = other.actionId_;
codeId_ = other.codeId_;
code_ = other.code_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationCheckCodeRequest Clone() {
return new PostAuthorizationCheckCodeRequest(this);
}
/// Field number for the "session_id" field.
public const int SessionIdFieldNumber = 1;
private string sessionId_ = "";
///
/// Идентификатор сессии двухфакторной аутентификации
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string SessionId {
get { return sessionId_; }
set {
sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "action_id" field.
public const int ActionIdFieldNumber = 2;
private string actionId_ = "";
///
/// Идентификатор процесса двухфакторной аутентификации
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ActionId {
get { return actionId_; }
set {
actionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "code_id" field.
public const int CodeIdFieldNumber = 3;
private string codeId_ = "";
///
/// Идентификатор кода двухфакторной авторизации
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string CodeId {
get { return codeId_; }
set {
codeId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "code" field.
public const int CodeFieldNumber = 4;
private string code_ = "";
///
/// Код, введенный пользователем
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Code {
get { return code_; }
set {
code_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostAuthorizationCheckCodeRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostAuthorizationCheckCodeRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (SessionId != other.SessionId) return false;
if (ActionId != other.ActionId) return false;
if (CodeId != other.CodeId) return false;
if (Code != other.Code) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (SessionId.Length != 0) hash ^= SessionId.GetHashCode();
if (ActionId.Length != 0) hash ^= ActionId.GetHashCode();
if (CodeId.Length != 0) hash ^= CodeId.GetHashCode();
if (Code.Length != 0) hash ^= Code.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (SessionId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(SessionId);
}
if (ActionId.Length != 0) {
output.WriteRawTag(18);
output.WriteString(ActionId);
}
if (CodeId.Length != 0) {
output.WriteRawTag(26);
output.WriteString(CodeId);
}
if (Code.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Code);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (SessionId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(SessionId);
}
if (ActionId.Length != 0) {
output.WriteRawTag(18);
output.WriteString(ActionId);
}
if (CodeId.Length != 0) {
output.WriteRawTag(26);
output.WriteString(CodeId);
}
if (Code.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Code);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (SessionId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId);
}
if (ActionId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ActionId);
}
if (CodeId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CodeId);
}
if (Code.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Code);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PostAuthorizationCheckCodeRequest other) {
if (other == null) {
return;
}
if (other.SessionId.Length != 0) {
SessionId = other.SessionId;
}
if (other.ActionId.Length != 0) {
ActionId = other.ActionId;
}
if (other.CodeId.Length != 0) {
CodeId = other.CodeId;
}
if (other.Code.Length != 0) {
Code = other.Code;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
SessionId = input.ReadString();
break;
}
case 18: {
ActionId = input.ReadString();
break;
}
case 26: {
CodeId = input.ReadString();
break;
}
case 34: {
Code = input.ReadString();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
SessionId = input.ReadString();
break;
}
case 18: {
ActionId = input.ReadString();
break;
}
case 26: {
CodeId = input.ReadString();
break;
}
case 34: {
Code = input.ReadString();
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос проверки кода двухфакторной авторизации и активация сессии для B2B
///
public sealed partial class PostAuthorizationCheckCodeResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostAuthorizationCheckCodeResponse());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.KeyapisIdentityB2BAuthorizationV1Reflection.Descriptor.MessageTypes[13]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationCheckCodeResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationCheckCodeResponse(PostAuthorizationCheckCodeResponse other) : this() {
switch (other.TypeCase) {
case TypeOneofCase.Error:
Error = other.Error.Clone();
break;
case TypeOneofCase.Data:
Data = other.Data.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostAuthorizationCheckCodeResponse Clone() {
return new PostAuthorizationCheckCodeResponse(this);
}
/// Field number for the "error" field.
public const int ErrorFieldNumber = 1;
///
/// Ошибка
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.PostAuthorizationCheckCodeResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.IdentityB2b.V1.PostAuthorizationCheckCodeResponse.Types.Error) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error;
}
}
/// Field number for the "data" field.
public const int DataFieldNumber = 2;
///
/// Токен пользователя
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.UserToken Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.IdentityB2b.V1.UserToken) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data;
}
}
private object type_;
/// Enum of possible cases for the "type" oneof.
public enum TypeOneofCase {
None = 0,
Error = 1,
Data = 2,
}
private TypeOneofCase typeCase_ = TypeOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TypeOneofCase TypeCase {
get { return typeCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearType() {
typeCase_ = TypeOneofCase.None;
type_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostAuthorizationCheckCodeResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostAuthorizationCheckCodeResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Error, other.Error)) return false;
if (!object.Equals(Data, other.Data)) return false;
if (TypeCase != other.TypeCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode();
if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode();
hash ^= (int) typeCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(10);
output.WriteMessage(Error);
}
if (typeCase_ == TypeOneofCase.Data) {
output.WriteRawTag(18);
output.WriteMessage(Data);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(10);
output.WriteMessage(Error);
}
if (typeCase_ == TypeOneofCase.Data) {
output.WriteRawTag(18);
output.WriteMessage(Data);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (typeCase_ == TypeOneofCase.Error) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error);
}
if (typeCase_ == TypeOneofCase.Data) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PostAuthorizationCheckCodeResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Keyapis.IdentityB2b.V1.PostAuthorizationCheckCodeResponse.Types.Error();
}
Error.MergeFrom(other.Error);
break;
case TypeOneofCase.Data:
if (Data == null) {
Data = new global::Keyapis.IdentityB2b.V1.UserToken();
}
Data.MergeFrom(other.Data);
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
global::Keyapis.IdentityB2b.V1.PostAuthorizationCheckCodeResponse.Types.Error subBuilder = new global::Keyapis.IdentityB2b.V1.PostAuthorizationCheckCodeResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
case 18: {
global::Keyapis.IdentityB2b.V1.UserToken subBuilder = new global::Keyapis.IdentityB2b.V1.UserToken();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
global::Keyapis.IdentityB2b.V1.PostAuthorizationCheckCodeResponse.Types.Error subBuilder = new global::Keyapis.IdentityB2b.V1.PostAuthorizationCheckCodeResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
case 18: {
global::Keyapis.IdentityB2b.V1.UserToken subBuilder = new global::Keyapis.IdentityB2b.V1.UserToken();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the PostAuthorizationCheckCodeResponse message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Ошибка запроса авторизации по паролю пользователя
///
public sealed partial class Error : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.PostAuthorizationCheckCodeResponse.Descriptor.NestedTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error(Error other) : this() {
switch (other.ReasonCase) {
case ReasonOneofCase.Sso:
Sso = other.Sso.Clone();
break;
case ReasonOneofCase.Key:
Key = other.Key.Clone();
break;
case ReasonOneofCase.OtpCode:
OtpCode = other.OtpCode.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error Clone() {
return new Error(this);
}
/// Field number for the "sso" field.
public const int SsoFieldNumber = 1;
///
/// Ошибка из ССО
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.SsoError Sso {
get { return reasonCase_ == ReasonOneofCase.Sso ? (global::Keyapis.IdentityB2b.V1.SsoError) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Sso;
}
}
/// Field number for the "key" field.
public const int KeyFieldNumber = 2;
///
/// Ошибка из сервисов ключа
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.KeyError Key {
get { return reasonCase_ == ReasonOneofCase.Key ? (global::Keyapis.IdentityB2b.V1.KeyError) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Key;
}
}
/// Field number for the "otp_code" field.
public const int OtpCodeFieldNumber = 3;
///
/// Ошибка кода подтверждения
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error OtpCode {
get { return reasonCase_ == ReasonOneofCase.OtpCode ? (global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.OtpCode;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
Sso = 1,
Key = 2,
OtpCode = 3,
}
private ReasonOneofCase reasonCase_ = ReasonOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ReasonOneofCase ReasonCase {
get { return reasonCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearReason() {
reasonCase_ = ReasonOneofCase.None;
reason_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Error);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Error other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Sso, other.Sso)) return false;
if (!object.Equals(Key, other.Key)) return false;
if (!object.Equals(OtpCode, other.OtpCode)) return false;
if (ReasonCase != other.ReasonCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (reasonCase_ == ReasonOneofCase.Sso) hash ^= Sso.GetHashCode();
if (reasonCase_ == ReasonOneofCase.Key) hash ^= Key.GetHashCode();
if (reasonCase_ == ReasonOneofCase.OtpCode) hash ^= OtpCode.GetHashCode();
hash ^= (int) reasonCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (reasonCase_ == ReasonOneofCase.Sso) {
output.WriteRawTag(10);
output.WriteMessage(Sso);
}
if (reasonCase_ == ReasonOneofCase.Key) {
output.WriteRawTag(18);
output.WriteMessage(Key);
}
if (reasonCase_ == ReasonOneofCase.OtpCode) {
output.WriteRawTag(26);
output.WriteMessage(OtpCode);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (reasonCase_ == ReasonOneofCase.Sso) {
output.WriteRawTag(10);
output.WriteMessage(Sso);
}
if (reasonCase_ == ReasonOneofCase.Key) {
output.WriteRawTag(18);
output.WriteMessage(Key);
}
if (reasonCase_ == ReasonOneofCase.OtpCode) {
output.WriteRawTag(26);
output.WriteMessage(OtpCode);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (reasonCase_ == ReasonOneofCase.Sso) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sso);
}
if (reasonCase_ == ReasonOneofCase.Key) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Key);
}
if (reasonCase_ == ReasonOneofCase.OtpCode) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(OtpCode);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Error other) {
if (other == null) {
return;
}
switch (other.ReasonCase) {
case ReasonOneofCase.Sso:
if (Sso == null) {
Sso = new global::Keyapis.IdentityB2b.V1.SsoError();
}
Sso.MergeFrom(other.Sso);
break;
case ReasonOneofCase.Key:
if (Key == null) {
Key = new global::Keyapis.IdentityB2b.V1.KeyError();
}
Key.MergeFrom(other.Key);
break;
case ReasonOneofCase.OtpCode:
if (OtpCode == null) {
OtpCode = new global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error();
}
OtpCode.MergeFrom(other.OtpCode);
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
global::Keyapis.IdentityB2b.V1.SsoError subBuilder = new global::Keyapis.IdentityB2b.V1.SsoError();
if (reasonCase_ == ReasonOneofCase.Sso) {
subBuilder.MergeFrom(Sso);
}
input.ReadMessage(subBuilder);
Sso = subBuilder;
break;
}
case 18: {
global::Keyapis.IdentityB2b.V1.KeyError subBuilder = new global::Keyapis.IdentityB2b.V1.KeyError();
if (reasonCase_ == ReasonOneofCase.Key) {
subBuilder.MergeFrom(Key);
}
input.ReadMessage(subBuilder);
Key = subBuilder;
break;
}
case 26: {
global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error subBuilder = new global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error();
if (reasonCase_ == ReasonOneofCase.OtpCode) {
subBuilder.MergeFrom(OtpCode);
}
input.ReadMessage(subBuilder);
OtpCode = subBuilder;
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
global::Keyapis.IdentityB2b.V1.SsoError subBuilder = new global::Keyapis.IdentityB2b.V1.SsoError();
if (reasonCase_ == ReasonOneofCase.Sso) {
subBuilder.MergeFrom(Sso);
}
input.ReadMessage(subBuilder);
Sso = subBuilder;
break;
}
case 18: {
global::Keyapis.IdentityB2b.V1.KeyError subBuilder = new global::Keyapis.IdentityB2b.V1.KeyError();
if (reasonCase_ == ReasonOneofCase.Key) {
subBuilder.MergeFrom(Key);
}
input.ReadMessage(subBuilder);
Key = subBuilder;
break;
}
case 26: {
global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error subBuilder = new global::Keyapis.IdentityB2b.V1.OtpCode.Types.Error();
if (reasonCase_ == ReasonOneofCase.OtpCode) {
subBuilder.MergeFrom(OtpCode);
}
input.ReadMessage(subBuilder);
OtpCode = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Данные для двухфакторной аутентификации
///
public sealed partial class Data2fa : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Data2fa());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IdentityB2b.V1.KeyapisIdentityB2BAuthorizationV1Reflection.Descriptor.MessageTypes[14]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Data2fa() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Data2fa(Data2fa other) : this() {
sessionId_ = other.sessionId_;
actionId_ = other.actionId_;
codeId_ = other.codeId_;
timeout_ = other.timeout_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Data2fa Clone() {
return new Data2fa(this);
}
/// Field number for the "session_id" field.
public const int SessionIdFieldNumber = 1;
private string sessionId_ = "";
///
/// Идентификатор сессии двухфакторной аутентификации
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string SessionId {
get { return sessionId_; }
set {
sessionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "action_id" field.
public const int ActionIdFieldNumber = 2;
private string actionId_ = "";
///
/// Идентификатор процесса двухфакторной аутентификации
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ActionId {
get { return actionId_; }
set {
actionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "code_id" field.
public const int CodeIdFieldNumber = 3;
private string codeId_ = "";
///
/// Идентификатор кода двухфакторной авторизации
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string CodeId {
get { return codeId_; }
set {
codeId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "timeout" field.
public const int TimeoutFieldNumber = 4;
private int timeout_;
///
/// Время в секундах, оставшееся до возможности отправки следующего кода
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Timeout {
get { return timeout_; }
set {
timeout_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Data2fa);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Data2fa other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (SessionId != other.SessionId) return false;
if (ActionId != other.ActionId) return false;
if (CodeId != other.CodeId) return false;
if (Timeout != other.Timeout) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (SessionId.Length != 0) hash ^= SessionId.GetHashCode();
if (ActionId.Length != 0) hash ^= ActionId.GetHashCode();
if (CodeId.Length != 0) hash ^= CodeId.GetHashCode();
if (Timeout != 0) hash ^= Timeout.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (SessionId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(SessionId);
}
if (ActionId.Length != 0) {
output.WriteRawTag(18);
output.WriteString(ActionId);
}
if (CodeId.Length != 0) {
output.WriteRawTag(26);
output.WriteString(CodeId);
}
if (Timeout != 0) {
output.WriteRawTag(32);
output.WriteInt32(Timeout);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (SessionId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(SessionId);
}
if (ActionId.Length != 0) {
output.WriteRawTag(18);
output.WriteString(ActionId);
}
if (CodeId.Length != 0) {
output.WriteRawTag(26);
output.WriteString(CodeId);
}
if (Timeout != 0) {
output.WriteRawTag(32);
output.WriteInt32(Timeout);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (SessionId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(SessionId);
}
if (ActionId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ActionId);
}
if (CodeId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CodeId);
}
if (Timeout != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Timeout);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Data2fa other) {
if (other == null) {
return;
}
if (other.SessionId.Length != 0) {
SessionId = other.SessionId;
}
if (other.ActionId.Length != 0) {
ActionId = other.ActionId;
}
if (other.CodeId.Length != 0) {
CodeId = other.CodeId;
}
if (other.Timeout != 0) {
Timeout = other.Timeout;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
SessionId = input.ReadString();
break;
}
case 18: {
ActionId = input.ReadString();
break;
}
case 26: {
CodeId = input.ReadString();
break;
}
case 32: {
Timeout = input.ReadInt32();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
SessionId = input.ReadString();
break;
}
case 18: {
ActionId = input.ReadString();
break;
}
case 26: {
CodeId = input.ReadString();
break;
}
case 32: {
Timeout = input.ReadInt32();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code