//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/identity/v1/keyapis_identity_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.Identity.V1 {
/// Holder for reflection information generated from keyapis/identity/v1/keyapis_identity_authorization_v1.proto
public static partial class KeyapisIdentityAuthorizationV1Reflection {
#region Descriptor
/// File descriptor for keyapis/identity/v1/keyapis_identity_authorization_v1.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static KeyapisIdentityAuthorizationV1Reflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjtrZXlhcGlzL2lkZW50aXR5L3YxL2tleWFwaXNfaWRlbnRpdHlfYXV0aG9y",
"aXphdGlvbl92MS5wcm90bxITa2V5YXBpcy5pZGVudGl0eS52MRocZ29vZ2xl",
"L2FwaS9hbm5vdGF0aW9ucy5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhh",
"dmlvci5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFtcC5wcm90byJb",
"CglVc2VyVG9rZW4SGQoMYWNjZXNzX3Rva2VuGAEgASgJQgPgQQISMwoKZXhw",
"aXJlZF9hdBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BB",
"AiIsCgdDYXB0Y2hhEg8KAmlkGAEgASgJQgPgQQISEAoDdXJsGAIgASgJQgPg",
"QQIi0wEKDUNhcHRjaGFBbnN3ZXISDwoCaWQYASABKAlCA+BBAhIRCgRjb2Rl",
"GAIgASgJQgPgQQIanQEKBUVycm9yEkwKDHdyb25nX2Fuc3dlchgBIAEoCzI0",
"LmtleWFwaXMuaWRlbnRpdHkudjEuQ2FwdGNoYUFuc3dlci5FcnJvci5Xcm9u",
"Z0Fuc3dlckgAEi0KB2NhcHRjaGEYAiABKAsyHC5rZXlhcGlzLmlkZW50aXR5",
"LnYxLkNhcHRjaGEaDQoLV3JvbmdBbnN3ZXJCCAoGcmVhc29uIrwDCgdPdHBD",
"b2RlEhQKB2NvZGVfaWQYASABKAlCA+BBAhIUCgd0aW1lb3V0GAIgASgFQgPg",
"QQIahAMKBUVycm9yEk8KEWxpZmVfdGltZV9leHBpcmVkGAEgASgLMjIua2V5",
"YXBpcy5pZGVudGl0eS52MS5PdHBDb2RlLkVycm9yLkxpZmVUaW1lRXhwaXJl",
"ZEgAEkQKC25vX2F0dGVtcHRzGAIgASgLMi0ua2V5YXBpcy5pZGVudGl0eS52",
"MS5PdHBDb2RlLkVycm9yLk5vQXR0ZW1wdHNIABJPChFhZGRyZXNzX25vdF9m",
"b3VuZBgDIAEoCzIyLmtleWFwaXMuaWRlbnRpdHkudjEuT3RwQ29kZS5FcnJv",
"ci5BZGRyZXNzTm90Rm91bmRIABJGCgxpbnZhbGlkX2NvZGUYBCABKAsyLi5r",
"ZXlhcGlzLmlkZW50aXR5LnYxLk90cENvZGUuRXJyb3IuSW52YWxpZENvZGVI",
"ABoRCg9MaWZlVGltZUV4cGlyZWQaDAoKTm9BdHRlbXB0cxoRCg9BZGRyZXNz",
"Tm90Rm91bmQaDQoLSW52YWxpZENvZGVCCAoGcmVhc29uIq4ECghTc29FcnJv",
"chJZChl1c2VyX2lzX3RlbXBvcmFyeV9ibG9ja2VkGAEgASgLMjQua2V5YXBp",
"cy5pZGVudGl0eS52MS5Tc29FcnJvci5Vc2VySXNUZW1wb3JhcnlCbG9ja2Vk",
"SAASRAoOdXNlcl9ub3RfZm91bmQYAiABKAsyKi5rZXlhcGlzLmlkZW50aXR5",
"LnYxLlNzb0Vycm9yLlVzZXJOb3RGb3VuZEgAEksKEXdyb25nX2NyZWRlbnRp",
"YWxzGAMgASgLMi4ua2V5YXBpcy5pZGVudGl0eS52MS5Tc29FcnJvci5Xcm9u",
"Z0NyZWRlbnRpYWxzSAASRgoPdXNlcl9pc19ibG9ja2VkGAQgASgLMisua2V5",
"YXBpcy5pZGVudGl0eS52MS5Tc29FcnJvci5Vc2VySXNCbG9ja2VkSAASSwoR",
"aW50ZXJ2YWxfZXhjZWVkZWQYBSABKAsyLi5rZXlhcGlzLmlkZW50aXR5LnYx",
"LlNzb0Vycm9yLkludGVydmFsRXhjZWVkZWRIABoYChZVc2VySXNUZW1wb3Jh",
"cnlCbG9ja2VkGg4KDFVzZXJOb3RGb3VuZBpGChBXcm9uZ0NyZWRlbnRpYWxz",
"EjIKB2NhcHRjaGEYASABKAsyHC5rZXlhcGlzLmlkZW50aXR5LnYxLkNhcHRj",
"aGFCA+BBARoPCg1Vc2VySXNCbG9ja2VkGhIKEEludGVydmFsRXhjZWVkZWRC",
"CAoGcmVhc29uImkKCEtleUVycm9yEkMKDXVzZXJfY3JlYXRpb24YASABKAsy",
"Ki5rZXlhcGlzLmlkZW50aXR5LnYxLktleUVycm9yLlVzZXJDcmVhdGlvbkgA",
"Gg4KDFVzZXJDcmVhdGlvbkIICgZyZWFzb24ihwEKIFBvc3RBdXRob3JpemF0",
"aW9uU2VuZENvZGVSZXF1ZXN0EhYKDHBob25lX251bWJlchgBIAEoCUgAEj8K",
"DmNhcHRjaGFfYW5zd2VyGAIgASgLMiIua2V5YXBpcy5pZGVudGl0eS52MS5D",
"YXB0Y2hhQW5zd2VyQgPgQQFCCgoIb3RwX3RleHQirgIKIVBvc3RBdXRob3Jp",
"emF0aW9uU2VuZENvZGVSZXNwb25zZRIsCgRkYXRhGAEgASgLMhwua2V5YXBp",
"cy5pZGVudGl0eS52MS5PdHBDb2RlSAASTQoFZXJyb3IYAiABKAsyPC5rZXlh",
"cGlzLmlkZW50aXR5LnYxLlBvc3RBdXRob3JpemF0aW9uU2VuZENvZGVSZXNw",
"b25zZS5FcnJvckgAGoMBCgVFcnJvchJCCg5jYXB0Y2hhX2Fuc3dlchgBIAEo",
"CzIoLmtleWFwaXMuaWRlbnRpdHkudjEuQ2FwdGNoYUFuc3dlci5FcnJvckgA",
"EiwKA3NzbxgCIAEoCzIdLmtleWFwaXMuaWRlbnRpdHkudjEuU3NvRXJyb3JI",
"AEIICgZyZWFzb25CBgoEdHlwZSJICh1Qb3N0QXV0aG9yaXphdGlvbkxvZ2lu",
"UmVxdWVzdBIUCgdjb2RlX2lkGAEgASgJQgPgQQISEQoEY29kZRgCIAEoCUID",
"4EECIswCCh5Qb3N0QXV0aG9yaXphdGlvbkxvZ2luUmVzcG9uc2USLgoEZGF0",
"YRgBIAEoCzIeLmtleWFwaXMuaWRlbnRpdHkudjEuVXNlclRva2VuSAASSgoF",
"ZXJyb3IYAiABKAsyOS5rZXlhcGlzLmlkZW50aXR5LnYxLlBvc3RBdXRob3Jp",
"emF0aW9uTG9naW5SZXNwb25zZS5FcnJvckgAGqUBCgVFcnJvchI2CghvdHBf",
"Y29kZRgBIAEoCzIiLmtleWFwaXMuaWRlbnRpdHkudjEuT3RwQ29kZS5FcnJv",
"ckgAEiwKA3NzbxgCIAEoCzIdLmtleWFwaXMuaWRlbnRpdHkudjEuU3NvRXJy",
"b3JIABIsCgNrZXkYAyABKAsyHS5rZXlhcGlzLmlkZW50aXR5LnYxLktleUVy",
"cm9ySABCCAoGcmVhc29uQgYKBHR5cGUiwwEKJ1Bvc3RBdXRob3JpemF0aW9u",
"TG9naW5CeVBhc3N3b3JkUmVxdWVzdBIWCgxwaG9uZV9udW1iZXIYASABKAlI",
"ABIPCgVlbWFpbBgCIAEoCUgAEg8KBWxvZ2luGAMgASgJSAASFQoIcGFzc3dv",
"cmQYBCABKAlCA+BBAhI/Cg5jYXB0Y2hhX2Fuc3dlchgFIAEoCzIiLmtleWFw",
"aXMuaWRlbnRpdHkudjEuQ2FwdGNoYUFuc3dlckID4EEBQgYKBHR5cGUi7AIK",
"KFBvc3RBdXRob3JpemF0aW9uTG9naW5CeVBhc3N3b3JkUmVzcG9uc2USLgoE",
"ZGF0YRgBIAEoCzIeLmtleWFwaXMuaWRlbnRpdHkudjEuVXNlclRva2VuSAAS",
"VAoFZXJyb3IYAiABKAsyQy5rZXlhcGlzLmlkZW50aXR5LnYxLlBvc3RBdXRo",
"b3JpemF0aW9uTG9naW5CeVBhc3N3b3JkUmVzcG9uc2UuRXJyb3JIABqxAQoF",
"RXJyb3ISQgoOY2FwdGNoYV9hbnN3ZXIYASABKAsyKC5rZXlhcGlzLmlkZW50",
"aXR5LnYxLkNhcHRjaGFBbnN3ZXIuRXJyb3JIABIsCgNzc28YAiABKAsyHS5r",
"ZXlhcGlzLmlkZW50aXR5LnYxLlNzb0Vycm9ySAASLAoDa2V5GAMgASgLMh0u",
"a2V5YXBpcy5pZGVudGl0eS52MS5LZXlFcnJvckgAQggKBnJlYXNvbkIGCgR0",
"eXBlMuwEChRBdXRob3JpemF0aW9uU2VydmljZRKyAQoWUG9zdEF1dGhvcml6",
"YXRpb25Mb2dpbhIyLmtleWFwaXMuaWRlbnRpdHkudjEuUG9zdEF1dGhvcml6",
"YXRpb25Mb2dpblJlcXVlc3QaMy5rZXlhcGlzLmlkZW50aXR5LnYxLlBvc3RB",
"dXRob3JpemF0aW9uTG9naW5SZXNwb25zZSIvgtPkkwIpIiQvaWRlbnRpdHkv",
"YXBpL3YxL2F1dGhvcml6YXRpb24vbG9naW46ASoSvwEKGVBvc3RBdXRob3Jp",
"emF0aW9uU2VuZENvZGUSNS5rZXlhcGlzLmlkZW50aXR5LnYxLlBvc3RBdXRo",
"b3JpemF0aW9uU2VuZENvZGVSZXF1ZXN0GjYua2V5YXBpcy5pZGVudGl0eS52",
"MS5Qb3N0QXV0aG9yaXphdGlvblNlbmRDb2RlUmVzcG9uc2UiM4LT5JMCLSIo",
"L2lkZW50aXR5L2FwaS92MS9hdXRob3JpemF0aW9uL3NlbmRfY29kZToBKhLc",
"AQogUG9zdEF1dGhvcml6YXRpb25Mb2dpbkJ5UGFzc3dvcmQSPC5rZXlhcGlz",
"LmlkZW50aXR5LnYxLlBvc3RBdXRob3JpemF0aW9uTG9naW5CeVBhc3N3b3Jk",
"UmVxdWVzdBo9LmtleWFwaXMuaWRlbnRpdHkudjEuUG9zdEF1dGhvcml6YXRp",
"b25Mb2dpbkJ5UGFzc3dvcmRSZXNwb25zZSI7gtPkkwI1IjAvaWRlbnRpdHkv",
"YXBpL3YxL2F1dGhvcml6YXRpb24vbG9naW5fYnlfcGFzc3dvcmQ6ASpCqAEK",
"FnJ1LmtleWFwaXMuaWRlbnRpdHkudjFCFktleWFwaXNJZGVudGl0eVYxUHJv",
"dG9IA1AAWhQva2V5YXBpc19pZGVudGl0eV92MdgBAfgBAaICEUtFWUFQSVNJ",
"REVOVElUWVYxqgITS2V5YXBpcy5JZGVudGl0eS5WMcoCE0tleWFwaXNcSWRl",
"bnRpdHlcVjHqAhVLZXlhcGlzOjpJZGVudGl0eTo6VjFiBnByb3RvMw=="));
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.Identity.V1.UserToken), global::Keyapis.Identity.V1.UserToken.Parser, new[]{ "AccessToken", "ExpiredAt" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.Captcha), global::Keyapis.Identity.V1.Captcha.Parser, new[]{ "Id", "Url" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.CaptchaAnswer), global::Keyapis.Identity.V1.CaptchaAnswer.Parser, new[]{ "Id", "Code" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.CaptchaAnswer.Types.Error), global::Keyapis.Identity.V1.CaptchaAnswer.Types.Error.Parser, new[]{ "WrongAnswer", "Captcha" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.CaptchaAnswer.Types.Error.Types.WrongAnswer), global::Keyapis.Identity.V1.CaptchaAnswer.Types.Error.Types.WrongAnswer.Parser, null, null, null, null, null)})}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.OtpCode), global::Keyapis.Identity.V1.OtpCode.Parser, new[]{ "CodeId", "Timeout" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.OtpCode.Types.Error), global::Keyapis.Identity.V1.OtpCode.Types.Error.Parser, new[]{ "LifeTimeExpired", "NoAttempts", "AddressNotFound", "InvalidCode" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.OtpCode.Types.Error.Types.LifeTimeExpired), global::Keyapis.Identity.V1.OtpCode.Types.Error.Types.LifeTimeExpired.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.OtpCode.Types.Error.Types.NoAttempts), global::Keyapis.Identity.V1.OtpCode.Types.Error.Types.NoAttempts.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.OtpCode.Types.Error.Types.AddressNotFound), global::Keyapis.Identity.V1.OtpCode.Types.Error.Types.AddressNotFound.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.OtpCode.Types.Error.Types.InvalidCode), global::Keyapis.Identity.V1.OtpCode.Types.Error.Types.InvalidCode.Parser, null, null, null, null, null)})}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.SsoError), global::Keyapis.Identity.V1.SsoError.Parser, new[]{ "UserIsTemporaryBlocked", "UserNotFound", "WrongCredentials", "UserIsBlocked", "IntervalExceeded" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.SsoError.Types.UserIsTemporaryBlocked), global::Keyapis.Identity.V1.SsoError.Types.UserIsTemporaryBlocked.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.SsoError.Types.UserNotFound), global::Keyapis.Identity.V1.SsoError.Types.UserNotFound.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.SsoError.Types.WrongCredentials), global::Keyapis.Identity.V1.SsoError.Types.WrongCredentials.Parser, new[]{ "Captcha" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.SsoError.Types.UserIsBlocked), global::Keyapis.Identity.V1.SsoError.Types.UserIsBlocked.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.SsoError.Types.IntervalExceeded), global::Keyapis.Identity.V1.SsoError.Types.IntervalExceeded.Parser, null, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.KeyError), global::Keyapis.Identity.V1.KeyError.Parser, new[]{ "UserCreation" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.KeyError.Types.UserCreation), global::Keyapis.Identity.V1.KeyError.Types.UserCreation.Parser, null, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.PostAuthorizationSendCodeRequest), global::Keyapis.Identity.V1.PostAuthorizationSendCodeRequest.Parser, new[]{ "PhoneNumber", "CaptchaAnswer" }, new[]{ "OtpText" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.PostAuthorizationSendCodeResponse), global::Keyapis.Identity.V1.PostAuthorizationSendCodeResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.PostAuthorizationSendCodeResponse.Types.Error), global::Keyapis.Identity.V1.PostAuthorizationSendCodeResponse.Types.Error.Parser, new[]{ "CaptchaAnswer", "Sso" }, new[]{ "Reason" }, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.PostAuthorizationLoginRequest), global::Keyapis.Identity.V1.PostAuthorizationLoginRequest.Parser, new[]{ "CodeId", "Code" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.PostAuthorizationLoginResponse), global::Keyapis.Identity.V1.PostAuthorizationLoginResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.PostAuthorizationLoginResponse.Types.Error), global::Keyapis.Identity.V1.PostAuthorizationLoginResponse.Types.Error.Parser, new[]{ "OtpCode", "Sso", "Key" }, new[]{ "Reason" }, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.PostAuthorizationLoginByPasswordRequest), global::Keyapis.Identity.V1.PostAuthorizationLoginByPasswordRequest.Parser, new[]{ "PhoneNumber", "Email", "Login", "Password", "CaptchaAnswer" }, new[]{ "Type" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.PostAuthorizationLoginByPasswordResponse), global::Keyapis.Identity.V1.PostAuthorizationLoginByPasswordResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.PostAuthorizationLoginByPasswordResponse.Types.Error), global::Keyapis.Identity.V1.PostAuthorizationLoginByPasswordResponse.Types.Error.Parser, new[]{ "CaptchaAnswer", "Sso", "Key" }, new[]{ "Reason" }, 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.Identity.V1.KeyapisIdentityAuthorizationV1Reflection.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.Identity.V1.KeyapisIdentityAuthorizationV1Reflection.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.Identity.V1.KeyapisIdentityAuthorizationV1Reflection.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.Identity.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 "wrong_answer" field.
public const int WrongAnswerFieldNumber = 1;
///
/// Некорректный ответ на капчу
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Identity.V1.CaptchaAnswer.Types.Error.Types.WrongAnswer WrongAnswer {
get { return reasonCase_ == ReasonOneofCase.WrongAnswer ? (global::Keyapis.Identity.V1.CaptchaAnswer.Types.Error.Types.WrongAnswer) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.WrongAnswer;
}
}
/// Field number for the "captcha" field.
public const int CaptchaFieldNumber = 2;
private global::Keyapis.Identity.V1.Captcha captcha_;
///
/// Капча
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Identity.V1.Captcha Captcha {
get { return captcha_; }
set {
captcha_ = value;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
WrongAnswer = 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 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(WrongAnswer, other.WrongAnswer)) return false;
if (!object.Equals(Captcha, other.Captcha)) 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.WrongAnswer) hash ^= WrongAnswer.GetHashCode();
if (captcha_ != null) hash ^= Captcha.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.WrongAnswer) {
output.WriteRawTag(10);
output.WriteMessage(WrongAnswer);
}
if (captcha_ != null) {
output.WriteRawTag(18);
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 (reasonCase_ == ReasonOneofCase.WrongAnswer) {
output.WriteRawTag(10);
output.WriteMessage(WrongAnswer);
}
if (captcha_ != null) {
output.WriteRawTag(18);
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 (reasonCase_ == ReasonOneofCase.WrongAnswer) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(WrongAnswer);
}
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(Error other) {
if (other == null) {
return;
}
if (other.captcha_ != null) {
if (captcha_ == null) {
Captcha = new global::Keyapis.Identity.V1.Captcha();
}
Captcha.MergeFrom(other.Captcha);
}
switch (other.ReasonCase) {
case ReasonOneofCase.WrongAnswer:
if (WrongAnswer == null) {
WrongAnswer = new global::Keyapis.Identity.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: {
global::Keyapis.Identity.V1.CaptchaAnswer.Types.Error.Types.WrongAnswer subBuilder = new global::Keyapis.Identity.V1.CaptchaAnswer.Types.Error.Types.WrongAnswer();
if (reasonCase_ == ReasonOneofCase.WrongAnswer) {
subBuilder.MergeFrom(WrongAnswer);
}
input.ReadMessage(subBuilder);
WrongAnswer = subBuilder;
break;
}
case 18: {
if (captcha_ == null) {
Captcha = new global::Keyapis.Identity.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: {
global::Keyapis.Identity.V1.CaptchaAnswer.Types.Error.Types.WrongAnswer subBuilder = new global::Keyapis.Identity.V1.CaptchaAnswer.Types.Error.Types.WrongAnswer();
if (reasonCase_ == ReasonOneofCase.WrongAnswer) {
subBuilder.MergeFrom(WrongAnswer);
}
input.ReadMessage(subBuilder);
WrongAnswer = subBuilder;
break;
}
case 18: {
if (captcha_ == null) {
Captcha = new global::Keyapis.Identity.V1.Captcha();
}
input.ReadMessage(Captcha);
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.Identity.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.Identity.V1.KeyapisIdentityAuthorizationV1Reflection.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.Identity.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.Identity.V1.OtpCode.Types.Error.Types.LifeTimeExpired LifeTimeExpired {
get { return reasonCase_ == ReasonOneofCase.LifeTimeExpired ? (global::Keyapis.Identity.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.Identity.V1.OtpCode.Types.Error.Types.NoAttempts NoAttempts {
get { return reasonCase_ == ReasonOneofCase.NoAttempts ? (global::Keyapis.Identity.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.Identity.V1.OtpCode.Types.Error.Types.AddressNotFound AddressNotFound {
get { return reasonCase_ == ReasonOneofCase.AddressNotFound ? (global::Keyapis.Identity.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.Identity.V1.OtpCode.Types.Error.Types.InvalidCode InvalidCode {
get { return reasonCase_ == ReasonOneofCase.InvalidCode ? (global::Keyapis.Identity.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.Identity.V1.OtpCode.Types.Error.Types.LifeTimeExpired();
}
LifeTimeExpired.MergeFrom(other.LifeTimeExpired);
break;
case ReasonOneofCase.NoAttempts:
if (NoAttempts == null) {
NoAttempts = new global::Keyapis.Identity.V1.OtpCode.Types.Error.Types.NoAttempts();
}
NoAttempts.MergeFrom(other.NoAttempts);
break;
case ReasonOneofCase.AddressNotFound:
if (AddressNotFound == null) {
AddressNotFound = new global::Keyapis.Identity.V1.OtpCode.Types.Error.Types.AddressNotFound();
}
AddressNotFound.MergeFrom(other.AddressNotFound);
break;
case ReasonOneofCase.InvalidCode:
if (InvalidCode == null) {
InvalidCode = new global::Keyapis.Identity.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.Identity.V1.OtpCode.Types.Error.Types.LifeTimeExpired subBuilder = new global::Keyapis.Identity.V1.OtpCode.Types.Error.Types.LifeTimeExpired();
if (reasonCase_ == ReasonOneofCase.LifeTimeExpired) {
subBuilder.MergeFrom(LifeTimeExpired);
}
input.ReadMessage(subBuilder);
LifeTimeExpired = subBuilder;
break;
}
case 18: {
global::Keyapis.Identity.V1.OtpCode.Types.Error.Types.NoAttempts subBuilder = new global::Keyapis.Identity.V1.OtpCode.Types.Error.Types.NoAttempts();
if (reasonCase_ == ReasonOneofCase.NoAttempts) {
subBuilder.MergeFrom(NoAttempts);
}
input.ReadMessage(subBuilder);
NoAttempts = subBuilder;
break;
}
case 26: {
global::Keyapis.Identity.V1.OtpCode.Types.Error.Types.AddressNotFound subBuilder = new global::Keyapis.Identity.V1.OtpCode.Types.Error.Types.AddressNotFound();
if (reasonCase_ == ReasonOneofCase.AddressNotFound) {
subBuilder.MergeFrom(AddressNotFound);
}
input.ReadMessage(subBuilder);
AddressNotFound = subBuilder;
break;
}
case 34: {
global::Keyapis.Identity.V1.OtpCode.Types.Error.Types.InvalidCode subBuilder = new global::Keyapis.Identity.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.Identity.V1.OtpCode.Types.Error.Types.LifeTimeExpired subBuilder = new global::Keyapis.Identity.V1.OtpCode.Types.Error.Types.LifeTimeExpired();
if (reasonCase_ == ReasonOneofCase.LifeTimeExpired) {
subBuilder.MergeFrom(LifeTimeExpired);
}
input.ReadMessage(subBuilder);
LifeTimeExpired = subBuilder;
break;
}
case 18: {
global::Keyapis.Identity.V1.OtpCode.Types.Error.Types.NoAttempts subBuilder = new global::Keyapis.Identity.V1.OtpCode.Types.Error.Types.NoAttempts();
if (reasonCase_ == ReasonOneofCase.NoAttempts) {
subBuilder.MergeFrom(NoAttempts);
}
input.ReadMessage(subBuilder);
NoAttempts = subBuilder;
break;
}
case 26: {
global::Keyapis.Identity.V1.OtpCode.Types.Error.Types.AddressNotFound subBuilder = new global::Keyapis.Identity.V1.OtpCode.Types.Error.Types.AddressNotFound();
if (reasonCase_ == ReasonOneofCase.AddressNotFound) {
subBuilder.MergeFrom(AddressNotFound);
}
input.ReadMessage(subBuilder);
AddressNotFound = subBuilder;
break;
}
case 34: {
global::Keyapis.Identity.V1.OtpCode.Types.Error.Types.InvalidCode subBuilder = new global::Keyapis.Identity.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.Identity.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.Identity.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.Identity.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.Identity.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.Identity.V1.KeyapisIdentityAuthorizationV1Reflection.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.Identity.V1.SsoError.Types.UserIsTemporaryBlocked UserIsTemporaryBlocked {
get { return reasonCase_ == ReasonOneofCase.UserIsTemporaryBlocked ? (global::Keyapis.Identity.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.Identity.V1.SsoError.Types.UserNotFound UserNotFound {
get { return reasonCase_ == ReasonOneofCase.UserNotFound ? (global::Keyapis.Identity.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.Identity.V1.SsoError.Types.WrongCredentials WrongCredentials {
get { return reasonCase_ == ReasonOneofCase.WrongCredentials ? (global::Keyapis.Identity.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.Identity.V1.SsoError.Types.UserIsBlocked UserIsBlocked {
get { return reasonCase_ == ReasonOneofCase.UserIsBlocked ? (global::Keyapis.Identity.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.Identity.V1.SsoError.Types.IntervalExceeded IntervalExceeded {
get { return reasonCase_ == ReasonOneofCase.IntervalExceeded ? (global::Keyapis.Identity.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.Identity.V1.SsoError.Types.UserIsTemporaryBlocked();
}
UserIsTemporaryBlocked.MergeFrom(other.UserIsTemporaryBlocked);
break;
case ReasonOneofCase.UserNotFound:
if (UserNotFound == null) {
UserNotFound = new global::Keyapis.Identity.V1.SsoError.Types.UserNotFound();
}
UserNotFound.MergeFrom(other.UserNotFound);
break;
case ReasonOneofCase.WrongCredentials:
if (WrongCredentials == null) {
WrongCredentials = new global::Keyapis.Identity.V1.SsoError.Types.WrongCredentials();
}
WrongCredentials.MergeFrom(other.WrongCredentials);
break;
case ReasonOneofCase.UserIsBlocked:
if (UserIsBlocked == null) {
UserIsBlocked = new global::Keyapis.Identity.V1.SsoError.Types.UserIsBlocked();
}
UserIsBlocked.MergeFrom(other.UserIsBlocked);
break;
case ReasonOneofCase.IntervalExceeded:
if (IntervalExceeded == null) {
IntervalExceeded = new global::Keyapis.Identity.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.Identity.V1.SsoError.Types.UserIsTemporaryBlocked subBuilder = new global::Keyapis.Identity.V1.SsoError.Types.UserIsTemporaryBlocked();
if (reasonCase_ == ReasonOneofCase.UserIsTemporaryBlocked) {
subBuilder.MergeFrom(UserIsTemporaryBlocked);
}
input.ReadMessage(subBuilder);
UserIsTemporaryBlocked = subBuilder;
break;
}
case 18: {
global::Keyapis.Identity.V1.SsoError.Types.UserNotFound subBuilder = new global::Keyapis.Identity.V1.SsoError.Types.UserNotFound();
if (reasonCase_ == ReasonOneofCase.UserNotFound) {
subBuilder.MergeFrom(UserNotFound);
}
input.ReadMessage(subBuilder);
UserNotFound = subBuilder;
break;
}
case 26: {
global::Keyapis.Identity.V1.SsoError.Types.WrongCredentials subBuilder = new global::Keyapis.Identity.V1.SsoError.Types.WrongCredentials();
if (reasonCase_ == ReasonOneofCase.WrongCredentials) {
subBuilder.MergeFrom(WrongCredentials);
}
input.ReadMessage(subBuilder);
WrongCredentials = subBuilder;
break;
}
case 34: {
global::Keyapis.Identity.V1.SsoError.Types.UserIsBlocked subBuilder = new global::Keyapis.Identity.V1.SsoError.Types.UserIsBlocked();
if (reasonCase_ == ReasonOneofCase.UserIsBlocked) {
subBuilder.MergeFrom(UserIsBlocked);
}
input.ReadMessage(subBuilder);
UserIsBlocked = subBuilder;
break;
}
case 42: {
global::Keyapis.Identity.V1.SsoError.Types.IntervalExceeded subBuilder = new global::Keyapis.Identity.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.Identity.V1.SsoError.Types.UserIsTemporaryBlocked subBuilder = new global::Keyapis.Identity.V1.SsoError.Types.UserIsTemporaryBlocked();
if (reasonCase_ == ReasonOneofCase.UserIsTemporaryBlocked) {
subBuilder.MergeFrom(UserIsTemporaryBlocked);
}
input.ReadMessage(subBuilder);
UserIsTemporaryBlocked = subBuilder;
break;
}
case 18: {
global::Keyapis.Identity.V1.SsoError.Types.UserNotFound subBuilder = new global::Keyapis.Identity.V1.SsoError.Types.UserNotFound();
if (reasonCase_ == ReasonOneofCase.UserNotFound) {
subBuilder.MergeFrom(UserNotFound);
}
input.ReadMessage(subBuilder);
UserNotFound = subBuilder;
break;
}
case 26: {
global::Keyapis.Identity.V1.SsoError.Types.WrongCredentials subBuilder = new global::Keyapis.Identity.V1.SsoError.Types.WrongCredentials();
if (reasonCase_ == ReasonOneofCase.WrongCredentials) {
subBuilder.MergeFrom(WrongCredentials);
}
input.ReadMessage(subBuilder);
WrongCredentials = subBuilder;
break;
}
case 34: {
global::Keyapis.Identity.V1.SsoError.Types.UserIsBlocked subBuilder = new global::Keyapis.Identity.V1.SsoError.Types.UserIsBlocked();
if (reasonCase_ == ReasonOneofCase.UserIsBlocked) {
subBuilder.MergeFrom(UserIsBlocked);
}
input.ReadMessage(subBuilder);
UserIsBlocked = subBuilder;
break;
}
case 42: {
global::Keyapis.Identity.V1.SsoError.Types.IntervalExceeded subBuilder = new global::Keyapis.Identity.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.Identity.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.Identity.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.Identity.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.Identity.V1.Captcha captcha_;
///
/// Капча
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Identity.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.Identity.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.Identity.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.Identity.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.Identity.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.Identity.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.Identity.V1.KeyapisIdentityAuthorizationV1Reflection.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.Identity.V1.KeyError.Types.UserCreation UserCreation {
get { return reasonCase_ == ReasonOneofCase.UserCreation ? (global::Keyapis.Identity.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.Identity.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.Identity.V1.KeyError.Types.UserCreation subBuilder = new global::Keyapis.Identity.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.Identity.V1.KeyError.Types.UserCreation subBuilder = new global::Keyapis.Identity.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.Identity.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
}
///
/// Запрос на отправку ОТП-кода
///
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.Identity.V1.KeyapisIdentityAuthorizationV1Reflection.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;
}
_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 "phone_number" field.
public const int PhoneNumberFieldNumber = 1;
///
/// Номер телефона
///
[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 "captcha_answer" field.
public const int CaptchaAnswerFieldNumber = 2;
private global::Keyapis.Identity.V1.CaptchaAnswer captchaAnswer_;
///
/// Ответ на капчу
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Identity.V1.CaptchaAnswer CaptchaAnswer {
get { return captchaAnswer_; }
set {
captchaAnswer_ = value;
}
}
private object otpText_;
/// Enum of possible cases for the "otp_text" oneof.
public enum OtpTextOneofCase {
None = 0,
PhoneNumber = 1,
}
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 (PhoneNumber != other.PhoneNumber) return false;
if (!object.Equals(CaptchaAnswer, other.CaptchaAnswer)) 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 (HasPhoneNumber) hash ^= PhoneNumber.GetHashCode();
if (captchaAnswer_ != null) hash ^= CaptchaAnswer.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 (HasPhoneNumber) {
output.WriteRawTag(10);
output.WriteString(PhoneNumber);
}
if (captchaAnswer_ != null) {
output.WriteRawTag(18);
output.WriteMessage(CaptchaAnswer);
}
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 (HasPhoneNumber) {
output.WriteRawTag(10);
output.WriteString(PhoneNumber);
}
if (captchaAnswer_ != null) {
output.WriteRawTag(18);
output.WriteMessage(CaptchaAnswer);
}
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 (HasPhoneNumber) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(PhoneNumber);
}
if (captchaAnswer_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CaptchaAnswer);
}
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.Identity.V1.CaptchaAnswer();
}
CaptchaAnswer.MergeFrom(other.CaptchaAnswer);
}
switch (other.OtpTextCase) {
case OtpTextOneofCase.PhoneNumber:
PhoneNumber = other.PhoneNumber;
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: {
PhoneNumber = input.ReadString();
break;
}
case 18: {
if (captchaAnswer_ == null) {
CaptchaAnswer = new global::Keyapis.Identity.V1.CaptchaAnswer();
}
input.ReadMessage(CaptchaAnswer);
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: {
PhoneNumber = input.ReadString();
break;
}
case 18: {
if (captchaAnswer_ == null) {
CaptchaAnswer = new global::Keyapis.Identity.V1.CaptchaAnswer();
}
input.ReadMessage(CaptchaAnswer);
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос на отправку ОТП-кода
///
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.Identity.V1.KeyapisIdentityAuthorizationV1Reflection.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.Data:
Data = other.Data.Clone();
break;
case TypeOneofCase.Error:
Error = other.Error.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 "data" field.
public const int DataFieldNumber = 1;
///
/// Информация об ОТП-коде
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Identity.V1.OtpCode Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Identity.V1.OtpCode) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data;
}
}
/// Field number for the "error" field.
public const int ErrorFieldNumber = 2;
///
/// Ошибка
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Identity.V1.PostAuthorizationSendCodeResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Identity.V1.PostAuthorizationSendCodeResponse.Types.Error) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error;
}
}
private object type_;
/// Enum of possible cases for the "type" oneof.
public enum TypeOneofCase {
None = 0,
Data = 1,
Error = 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(Data, other.Data)) return false;
if (!object.Equals(Error, other.Error)) 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.Data) hash ^= Data.GetHashCode();
if (typeCase_ == TypeOneofCase.Error) hash ^= Error.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.Data) {
output.WriteRawTag(10);
output.WriteMessage(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
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.Data) {
output.WriteRawTag(10);
output.WriteMessage(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
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.Data) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error);
}
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.Data:
if (Data == null) {
Data = new global::Keyapis.Identity.V1.OtpCode();
}
Data.MergeFrom(other.Data);
break;
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Keyapis.Identity.V1.PostAuthorizationSendCodeResponse.Types.Error();
}
Error.MergeFrom(other.Error);
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.Identity.V1.OtpCode subBuilder = new global::Keyapis.Identity.V1.OtpCode();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Keyapis.Identity.V1.PostAuthorizationSendCodeResponse.Types.Error subBuilder = new global::Keyapis.Identity.V1.PostAuthorizationSendCodeResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = 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.Identity.V1.OtpCode subBuilder = new global::Keyapis.Identity.V1.OtpCode();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Keyapis.Identity.V1.PostAuthorizationSendCodeResponse.Types.Error subBuilder = new global::Keyapis.Identity.V1.PostAuthorizationSendCodeResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = 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.Identity.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.Identity.V1.CaptchaAnswer.Types.Error CaptchaAnswer {
get { return reasonCase_ == ReasonOneofCase.CaptchaAnswer ? (global::Keyapis.Identity.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.Identity.V1.SsoError Sso {
get { return reasonCase_ == ReasonOneofCase.Sso ? (global::Keyapis.Identity.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.Identity.V1.CaptchaAnswer.Types.Error();
}
CaptchaAnswer.MergeFrom(other.CaptchaAnswer);
break;
case ReasonOneofCase.Sso:
if (Sso == null) {
Sso = new global::Keyapis.Identity.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.Identity.V1.CaptchaAnswer.Types.Error subBuilder = new global::Keyapis.Identity.V1.CaptchaAnswer.Types.Error();
if (reasonCase_ == ReasonOneofCase.CaptchaAnswer) {
subBuilder.MergeFrom(CaptchaAnswer);
}
input.ReadMessage(subBuilder);
CaptchaAnswer = subBuilder;
break;
}
case 18: {
global::Keyapis.Identity.V1.SsoError subBuilder = new global::Keyapis.Identity.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.Identity.V1.CaptchaAnswer.Types.Error subBuilder = new global::Keyapis.Identity.V1.CaptchaAnswer.Types.Error();
if (reasonCase_ == ReasonOneofCase.CaptchaAnswer) {
subBuilder.MergeFrom(CaptchaAnswer);
}
input.ReadMessage(subBuilder);
CaptchaAnswer = subBuilder;
break;
}
case 18: {
global::Keyapis.Identity.V1.SsoError subBuilder = new global::Keyapis.Identity.V1.SsoError();
if (reasonCase_ == ReasonOneofCase.Sso) {
subBuilder.MergeFrom(Sso);
}
input.ReadMessage(subBuilder);
Sso = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Запрос на авторизацию по ОТП-коду
///
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.Identity.V1.KeyapisIdentityAuthorizationV1Reflection.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
}
///
/// Ответ на запрос об авторизации пользователя
///
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.Identity.V1.KeyapisIdentityAuthorizationV1Reflection.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.Data:
Data = other.Data.Clone();
break;
case TypeOneofCase.Error:
Error = other.Error.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 "data" field.
public const int DataFieldNumber = 1;
///
/// Токен пользователя
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Identity.V1.UserToken Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Identity.V1.UserToken) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data;
}
}
/// Field number for the "error" field.
public const int ErrorFieldNumber = 2;
///
/// Ошибка
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Identity.V1.PostAuthorizationLoginResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Identity.V1.PostAuthorizationLoginResponse.Types.Error) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error;
}
}
private object type_;
/// Enum of possible cases for the "type" oneof.
public enum TypeOneofCase {
None = 0,
Data = 1,
Error = 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(Data, other.Data)) return false;
if (!object.Equals(Error, other.Error)) 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.Data) hash ^= Data.GetHashCode();
if (typeCase_ == TypeOneofCase.Error) hash ^= Error.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.Data) {
output.WriteRawTag(10);
output.WriteMessage(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
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.Data) {
output.WriteRawTag(10);
output.WriteMessage(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
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.Data) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error);
}
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.Data:
if (Data == null) {
Data = new global::Keyapis.Identity.V1.UserToken();
}
Data.MergeFrom(other.Data);
break;
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Keyapis.Identity.V1.PostAuthorizationLoginResponse.Types.Error();
}
Error.MergeFrom(other.Error);
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.Identity.V1.UserToken subBuilder = new global::Keyapis.Identity.V1.UserToken();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Keyapis.Identity.V1.PostAuthorizationLoginResponse.Types.Error subBuilder = new global::Keyapis.Identity.V1.PostAuthorizationLoginResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = 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.Identity.V1.UserToken subBuilder = new global::Keyapis.Identity.V1.UserToken();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Keyapis.Identity.V1.PostAuthorizationLoginResponse.Types.Error subBuilder = new global::Keyapis.Identity.V1.PostAuthorizationLoginResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = 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.Identity.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.Identity.V1.OtpCode.Types.Error OtpCode {
get { return reasonCase_ == ReasonOneofCase.OtpCode ? (global::Keyapis.Identity.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.Identity.V1.SsoError Sso {
get { return reasonCase_ == ReasonOneofCase.Sso ? (global::Keyapis.Identity.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.Identity.V1.KeyError Key {
get { return reasonCase_ == ReasonOneofCase.Key ? (global::Keyapis.Identity.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.Identity.V1.OtpCode.Types.Error();
}
OtpCode.MergeFrom(other.OtpCode);
break;
case ReasonOneofCase.Sso:
if (Sso == null) {
Sso = new global::Keyapis.Identity.V1.SsoError();
}
Sso.MergeFrom(other.Sso);
break;
case ReasonOneofCase.Key:
if (Key == null) {
Key = new global::Keyapis.Identity.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.Identity.V1.OtpCode.Types.Error subBuilder = new global::Keyapis.Identity.V1.OtpCode.Types.Error();
if (reasonCase_ == ReasonOneofCase.OtpCode) {
subBuilder.MergeFrom(OtpCode);
}
input.ReadMessage(subBuilder);
OtpCode = subBuilder;
break;
}
case 18: {
global::Keyapis.Identity.V1.SsoError subBuilder = new global::Keyapis.Identity.V1.SsoError();
if (reasonCase_ == ReasonOneofCase.Sso) {
subBuilder.MergeFrom(Sso);
}
input.ReadMessage(subBuilder);
Sso = subBuilder;
break;
}
case 26: {
global::Keyapis.Identity.V1.KeyError subBuilder = new global::Keyapis.Identity.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.Identity.V1.OtpCode.Types.Error subBuilder = new global::Keyapis.Identity.V1.OtpCode.Types.Error();
if (reasonCase_ == ReasonOneofCase.OtpCode) {
subBuilder.MergeFrom(OtpCode);
}
input.ReadMessage(subBuilder);
OtpCode = subBuilder;
break;
}
case 18: {
global::Keyapis.Identity.V1.SsoError subBuilder = new global::Keyapis.Identity.V1.SsoError();
if (reasonCase_ == ReasonOneofCase.Sso) {
subBuilder.MergeFrom(Sso);
}
input.ReadMessage(subBuilder);
Sso = subBuilder;
break;
}
case 26: {
global::Keyapis.Identity.V1.KeyError subBuilder = new global::Keyapis.Identity.V1.KeyError();
if (reasonCase_ == ReasonOneofCase.Key) {
subBuilder.MergeFrom(Key);
}
input.ReadMessage(subBuilder);
Key = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Запрос на авторизацию по паролю
///
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.Identity.V1.KeyapisIdentityAuthorizationV1Reflection.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 "phone_number" field.
public const int PhoneNumberFieldNumber = 1;
///
/// Номер телефона
///
[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 = 2;
///
/// Электронная почта
///
[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 = 3;
///
/// Логин
///
[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();
}
}
/// Field number for the "password" field.
public const int PasswordFieldNumber = 4;
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 = 5;
private global::Keyapis.Identity.V1.CaptchaAnswer captchaAnswer_;
///
/// Ответ на капчу
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Identity.V1.CaptchaAnswer CaptchaAnswer {
get { return captchaAnswer_; }
set {
captchaAnswer_ = value;
}
}
private object type_;
/// Enum of possible cases for the "type" oneof.
public enum TypeOneofCase {
None = 0,
PhoneNumber = 1,
Email = 2,
Login = 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 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 (PhoneNumber != other.PhoneNumber) return false;
if (Email != other.Email) return false;
if (Login != other.Login) return false;
if (Password != other.Password) return false;
if (!object.Equals(CaptchaAnswer, other.CaptchaAnswer)) 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 (HasPhoneNumber) hash ^= PhoneNumber.GetHashCode();
if (HasEmail) hash ^= Email.GetHashCode();
if (HasLogin) hash ^= Login.GetHashCode();
if (Password.Length != 0) hash ^= Password.GetHashCode();
if (captchaAnswer_ != null) hash ^= CaptchaAnswer.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 (HasPhoneNumber) {
output.WriteRawTag(10);
output.WriteString(PhoneNumber);
}
if (HasEmail) {
output.WriteRawTag(18);
output.WriteString(Email);
}
if (HasLogin) {
output.WriteRawTag(26);
output.WriteString(Login);
}
if (Password.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Password);
}
if (captchaAnswer_ != null) {
output.WriteRawTag(42);
output.WriteMessage(CaptchaAnswer);
}
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 (HasPhoneNumber) {
output.WriteRawTag(10);
output.WriteString(PhoneNumber);
}
if (HasEmail) {
output.WriteRawTag(18);
output.WriteString(Email);
}
if (HasLogin) {
output.WriteRawTag(26);
output.WriteString(Login);
}
if (Password.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Password);
}
if (captchaAnswer_ != null) {
output.WriteRawTag(42);
output.WriteMessage(CaptchaAnswer);
}
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 (HasPhoneNumber) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(PhoneNumber);
}
if (HasEmail) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Email);
}
if (HasLogin) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Login);
}
if (Password.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Password);
}
if (captchaAnswer_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CaptchaAnswer);
}
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.Identity.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: {
PhoneNumber = input.ReadString();
break;
}
case 18: {
Email = input.ReadString();
break;
}
case 26: {
Login = input.ReadString();
break;
}
case 34: {
Password = input.ReadString();
break;
}
case 42: {
if (captchaAnswer_ == null) {
CaptchaAnswer = new global::Keyapis.Identity.V1.CaptchaAnswer();
}
input.ReadMessage(CaptchaAnswer);
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: {
PhoneNumber = input.ReadString();
break;
}
case 18: {
Email = input.ReadString();
break;
}
case 26: {
Login = input.ReadString();
break;
}
case 34: {
Password = input.ReadString();
break;
}
case 42: {
if (captchaAnswer_ == null) {
CaptchaAnswer = new global::Keyapis.Identity.V1.CaptchaAnswer();
}
input.ReadMessage(CaptchaAnswer);
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос об авторизации по паролю пользователя
///
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.Identity.V1.KeyapisIdentityAuthorizationV1Reflection.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.Data:
Data = other.Data.Clone();
break;
case TypeOneofCase.Error:
Error = other.Error.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 "data" field.
public const int DataFieldNumber = 1;
///
/// Токен пользователя
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Identity.V1.UserToken Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Identity.V1.UserToken) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data;
}
}
/// Field number for the "error" field.
public const int ErrorFieldNumber = 2;
///
/// Ошибка
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Identity.V1.PostAuthorizationLoginByPasswordResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Identity.V1.PostAuthorizationLoginByPasswordResponse.Types.Error) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error;
}
}
private object type_;
/// Enum of possible cases for the "type" oneof.
public enum TypeOneofCase {
None = 0,
Data = 1,
Error = 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 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(Data, other.Data)) return false;
if (!object.Equals(Error, other.Error)) 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.Data) hash ^= Data.GetHashCode();
if (typeCase_ == TypeOneofCase.Error) hash ^= Error.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.Data) {
output.WriteRawTag(10);
output.WriteMessage(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
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.Data) {
output.WriteRawTag(10);
output.WriteMessage(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
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.Data) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error);
}
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.Data:
if (Data == null) {
Data = new global::Keyapis.Identity.V1.UserToken();
}
Data.MergeFrom(other.Data);
break;
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Keyapis.Identity.V1.PostAuthorizationLoginByPasswordResponse.Types.Error();
}
Error.MergeFrom(other.Error);
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.Identity.V1.UserToken subBuilder = new global::Keyapis.Identity.V1.UserToken();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Keyapis.Identity.V1.PostAuthorizationLoginByPasswordResponse.Types.Error subBuilder = new global::Keyapis.Identity.V1.PostAuthorizationLoginByPasswordResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = 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.Identity.V1.UserToken subBuilder = new global::Keyapis.Identity.V1.UserToken();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Keyapis.Identity.V1.PostAuthorizationLoginByPasswordResponse.Types.Error subBuilder = new global::Keyapis.Identity.V1.PostAuthorizationLoginByPasswordResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = 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.Identity.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;
}
_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.Identity.V1.CaptchaAnswer.Types.Error CaptchaAnswer {
get { return reasonCase_ == ReasonOneofCase.CaptchaAnswer ? (global::Keyapis.Identity.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.Identity.V1.SsoError Sso {
get { return reasonCase_ == ReasonOneofCase.Sso ? (global::Keyapis.Identity.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.Identity.V1.KeyError Key {
get { return reasonCase_ == ReasonOneofCase.Key ? (global::Keyapis.Identity.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,
CaptchaAnswer = 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(CaptchaAnswer, other.CaptchaAnswer)) 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.CaptchaAnswer) hash ^= CaptchaAnswer.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.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 (_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 (_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 (_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.Identity.V1.CaptchaAnswer.Types.Error();
}
CaptchaAnswer.MergeFrom(other.CaptchaAnswer);
break;
case ReasonOneofCase.Sso:
if (Sso == null) {
Sso = new global::Keyapis.Identity.V1.SsoError();
}
Sso.MergeFrom(other.Sso);
break;
case ReasonOneofCase.Key:
if (Key == null) {
Key = new global::Keyapis.Identity.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.Identity.V1.CaptchaAnswer.Types.Error subBuilder = new global::Keyapis.Identity.V1.CaptchaAnswer.Types.Error();
if (reasonCase_ == ReasonOneofCase.CaptchaAnswer) {
subBuilder.MergeFrom(CaptchaAnswer);
}
input.ReadMessage(subBuilder);
CaptchaAnswer = subBuilder;
break;
}
case 18: {
global::Keyapis.Identity.V1.SsoError subBuilder = new global::Keyapis.Identity.V1.SsoError();
if (reasonCase_ == ReasonOneofCase.Sso) {
subBuilder.MergeFrom(Sso);
}
input.ReadMessage(subBuilder);
Sso = subBuilder;
break;
}
case 26: {
global::Keyapis.Identity.V1.KeyError subBuilder = new global::Keyapis.Identity.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.Identity.V1.CaptchaAnswer.Types.Error subBuilder = new global::Keyapis.Identity.V1.CaptchaAnswer.Types.Error();
if (reasonCase_ == ReasonOneofCase.CaptchaAnswer) {
subBuilder.MergeFrom(CaptchaAnswer);
}
input.ReadMessage(subBuilder);
CaptchaAnswer = subBuilder;
break;
}
case 18: {
global::Keyapis.Identity.V1.SsoError subBuilder = new global::Keyapis.Identity.V1.SsoError();
if (reasonCase_ == ReasonOneofCase.Sso) {
subBuilder.MergeFrom(Sso);
}
input.ReadMessage(subBuilder);
Sso = subBuilder;
break;
}
case 26: {
global::Keyapis.Identity.V1.KeyError subBuilder = new global::Keyapis.Identity.V1.KeyError();
if (reasonCase_ == ReasonOneofCase.Key) {
subBuilder.MergeFrom(Key);
}
input.ReadMessage(subBuilder);
Key = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
#endregion
}
#endregion Designer generated code