//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/identity/v1/keyapis_identity_oauth2_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_oauth2_v1.proto
public static partial class KeyapisIdentityOauth2V1Reflection {
#region Descriptor
/// File descriptor for keyapis/identity/v1/keyapis_identity_oauth2_v1.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static KeyapisIdentityOauth2V1Reflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjRrZXlhcGlzL2lkZW50aXR5L3YxL2tleWFwaXNfaWRlbnRpdHlfb2F1dGgy",
"X3YxLnByb3RvEhNrZXlhcGlzLmlkZW50aXR5LnYxGhxnb29nbGUvYXBpL2Fu",
"bm90YXRpb25zLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnBy",
"b3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvGjtrZXlhcGlz",
"L2lkZW50aXR5L3YxL2tleWFwaXNfaWRlbnRpdHlfYXV0aG9yaXphdGlvbl92",
"MS5wcm90byJqChBBdXRoU2VydmljZUVycm9yEj8KBGF1dGgYASABKAsyLy5r",
"ZXlhcGlzLmlkZW50aXR5LnYxLkF1dGhTZXJ2aWNlRXJyb3IuQXV0aEVycm9y",
"SAAaCwoJQXV0aEVycm9yQggKBnJlYXNvbiJlChxQb3N0T2F1dGgyTG9naW5C",
"eUNvZGVSZXF1ZXN0EhQKB2NvZGVfaWQYASABKAlCA+BBAhIRCgRjb2RlGAIg",
"ASgJQgPgQQISHAoPbG9naW5fY2hhbGxlbmdlGAMgASgJQgPgQQIi2QIKHVBv",
"c3RPYXV0aDJMb2dpbkJ5Q29kZVJlc3BvbnNlEkkKBWVycm9yGAEgASgLMjgu",
"a2V5YXBpcy5pZGVudGl0eS52MS5Qb3N0T2F1dGgyTG9naW5CeUNvZGVSZXNw",
"b25zZS5FcnJvckgAGuQBCgVFcnJvchI2CghvdHBfY29kZRgBIAEoCzIiLmtl",
"eWFwaXMuaWRlbnRpdHkudjEuT3RwQ29kZS5FcnJvckgAEiwKA3NzbxgCIAEo",
"CzIdLmtleWFwaXMuaWRlbnRpdHkudjEuU3NvRXJyb3JIABIsCgNrZXkYAyAB",
"KAsyHS5rZXlhcGlzLmlkZW50aXR5LnYxLktleUVycm9ySAASPQoMYXV0aF9z",
"ZXJ2aWNlGAQgASgLMiUua2V5YXBpcy5pZGVudGl0eS52MS5BdXRoU2Vydmlj",
"ZUVycm9ySABCCAoGcmVhc29uQgYKBHR5cGUi2gEKIFBvc3RPYXV0aDJMb2dp",
"bkJ5UGFzc3dvcmRSZXF1ZXN0EhYKDHBob25lX251bWJlchgBIAEoCUgAEg8K",
"BWVtYWlsGAIgASgJSAASDwoFbG9naW4YAyABKAlIABIVCghwYXNzd29yZBgE",
"IAEoCUID4EECEj8KDmNhcHRjaGFfYW5zd2VyGAUgASgLMiIua2V5YXBpcy5p",
"ZGVudGl0eS52MS5DYXB0Y2hhQW5zd2VyQgPgQQESHAoPbG9naW5fY2hhbGxl",
"bmdlGAYgASgJQgPgQQJCBgoEdHlwZSLtAgohUG9zdE9hdXRoMkxvZ2luQnlQ",
"YXNzd29yZFJlc3BvbnNlEk0KBWVycm9yGAEgASgLMjwua2V5YXBpcy5pZGVu",
"dGl0eS52MS5Qb3N0T2F1dGgyTG9naW5CeVBhc3N3b3JkUmVzcG9uc2UuRXJy",
"b3JIABrwAQoFRXJyb3ISQgoOY2FwdGNoYV9hbnN3ZXIYASABKAsyKC5rZXlh",
"cGlzLmlkZW50aXR5LnYxLkNhcHRjaGFBbnN3ZXIuRXJyb3JIABIsCgNzc28Y",
"AiABKAsyHS5rZXlhcGlzLmlkZW50aXR5LnYxLlNzb0Vycm9ySAASLAoDa2V5",
"GAMgASgLMh0ua2V5YXBpcy5pZGVudGl0eS52MS5LZXlFcnJvckgAEj0KDGF1",
"dGhfc2VydmljZRgEIAEoCzIlLmtleWFwaXMuaWRlbnRpdHkudjEuQXV0aFNl",
"cnZpY2VFcnJvckgAQggKBnJlYXNvbkIGCgR0eXBlIjkKF0dldE9hdXRoMkNv",
"bnNlbnRSZXF1ZXN0Eh4KEWNvbnNlbnRfY2hhbGxlbmdlGAEgASgJQgPgQQIi",
"ugEKGEdldE9hdXRoMkNvbnNlbnRSZXNwb25zZRJECgVlcnJvchgBIAEoCzIz",
"LmtleWFwaXMuaWRlbnRpdHkudjEuR2V0T2F1dGgyQ29uc2VudFJlc3BvbnNl",
"LkVycm9ySAAaUAoFRXJyb3ISPQoMYXV0aF9zZXJ2aWNlGAEgASgLMiUua2V5",
"YXBpcy5pZGVudGl0eS52MS5BdXRoU2VydmljZUVycm9ySABCCAoGcmVhc29u",
"QgYKBHR5cGUyoAQKDU9hdXRoMlNlcnZpY2USsAEKFVBvc3RPYXV0aDJMb2dp",
"bkJ5Q29kZRIxLmtleWFwaXMuaWRlbnRpdHkudjEuUG9zdE9hdXRoMkxvZ2lu",
"QnlDb2RlUmVxdWVzdBoyLmtleWFwaXMuaWRlbnRpdHkudjEuUG9zdE9hdXRo",
"MkxvZ2luQnlDb2RlUmVzcG9uc2UiMILT5JMCKiIlL2lkZW50aXR5L2FwaS92",
"MS9vYXV0aDIvbG9naW5fYnlfY29kZToBKhLAAQoZUG9zdE9hdXRoMkxvZ2lu",
"QnlQYXNzd29yZBI1LmtleWFwaXMuaWRlbnRpdHkudjEuUG9zdE9hdXRoMkxv",
"Z2luQnlQYXNzd29yZFJlcXVlc3QaNi5rZXlhcGlzLmlkZW50aXR5LnYxLlBv",
"c3RPYXV0aDJMb2dpbkJ5UGFzc3dvcmRSZXNwb25zZSI0gtPkkwIuIikvaWRl",
"bnRpdHkvYXBpL3YxL29hdXRoMi9sb2dpbl9ieV9wYXNzd29yZDoBKhKYAQoQ",
"R2V0T2F1dGgyQ29uc2VudBIsLmtleWFwaXMuaWRlbnRpdHkudjEuR2V0T2F1",
"dGgyQ29uc2VudFJlcXVlc3QaLS5rZXlhcGlzLmlkZW50aXR5LnYxLkdldE9h",
"dXRoMkNvbnNlbnRSZXNwb25zZSIngtPkkwIhEh8vaWRlbnRpdHkvYXBpL3Yx",
"L29hdXRoMi9jb25zZW50QqgBChZydS5rZXlhcGlzLmlkZW50aXR5LnYxQhZL",
"ZXlhcGlzSWRlbnRpdHlWMVByb3RvSANQAFoUL2tleWFwaXNfaWRlbnRpdHlf",
"djHYAQH4AQGiAhFLRVlBUElTSURFTlRJVFlWMaoCE0tleWFwaXMuSWRlbnRp",
"dHkuVjHKAhNLZXlhcGlzXElkZW50aXR5XFYx6gIVS2V5YXBpczo6SWRlbnRp",
"dHk6OlYxYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Keyapis.Identity.V1.KeyapisIdentityAuthorizationV1Reflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.AuthServiceError), global::Keyapis.Identity.V1.AuthServiceError.Parser, new[]{ "Auth" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.AuthServiceError.Types.AuthError), global::Keyapis.Identity.V1.AuthServiceError.Types.AuthError.Parser, null, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.PostOauth2LoginByCodeRequest), global::Keyapis.Identity.V1.PostOauth2LoginByCodeRequest.Parser, new[]{ "CodeId", "Code", "LoginChallenge" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.PostOauth2LoginByCodeResponse), global::Keyapis.Identity.V1.PostOauth2LoginByCodeResponse.Parser, new[]{ "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.PostOauth2LoginByCodeResponse.Types.Error), global::Keyapis.Identity.V1.PostOauth2LoginByCodeResponse.Types.Error.Parser, new[]{ "OtpCode", "Sso", "Key", "AuthService" }, new[]{ "Reason" }, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.PostOauth2LoginByPasswordRequest), global::Keyapis.Identity.V1.PostOauth2LoginByPasswordRequest.Parser, new[]{ "PhoneNumber", "Email", "Login", "Password", "CaptchaAnswer", "LoginChallenge" }, new[]{ "Type" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.PostOauth2LoginByPasswordResponse), global::Keyapis.Identity.V1.PostOauth2LoginByPasswordResponse.Parser, new[]{ "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.PostOauth2LoginByPasswordResponse.Types.Error), global::Keyapis.Identity.V1.PostOauth2LoginByPasswordResponse.Types.Error.Parser, new[]{ "CaptchaAnswer", "Sso", "Key", "AuthService" }, new[]{ "Reason" }, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.GetOauth2ConsentRequest), global::Keyapis.Identity.V1.GetOauth2ConsentRequest.Parser, new[]{ "ConsentChallenge" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.GetOauth2ConsentResponse), global::Keyapis.Identity.V1.GetOauth2ConsentResponse.Parser, new[]{ "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Identity.V1.GetOauth2ConsentResponse.Types.Error), global::Keyapis.Identity.V1.GetOauth2ConsentResponse.Types.Error.Parser, new[]{ "AuthService" }, new[]{ "Reason" }, null, null, null)})
}));
}
#endregion
}
#region Messages
///
/// Ошибки авторизационного сервиса
///
public sealed partial class AuthServiceError : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AuthServiceError());
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.KeyapisIdentityOauth2V1Reflection.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 AuthServiceError() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AuthServiceError(AuthServiceError other) : this() {
switch (other.ReasonCase) {
case ReasonOneofCase.Auth:
Auth = other.Auth.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AuthServiceError Clone() {
return new AuthServiceError(this);
}
/// Field number for the "auth" field.
public const int AuthFieldNumber = 1;
///
/// Ошибки авторизационного сервиса
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Identity.V1.AuthServiceError.Types.AuthError Auth {
get { return reasonCase_ == ReasonOneofCase.Auth ? (global::Keyapis.Identity.V1.AuthServiceError.Types.AuthError) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Auth;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
Auth = 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 AuthServiceError);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(AuthServiceError other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Auth, other.Auth)) 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.Auth) hash ^= Auth.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.Auth) {
output.WriteRawTag(10);
output.WriteMessage(Auth);
}
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.Auth) {
output.WriteRawTag(10);
output.WriteMessage(Auth);
}
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.Auth) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Auth);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(AuthServiceError other) {
if (other == null) {
return;
}
switch (other.ReasonCase) {
case ReasonOneofCase.Auth:
if (Auth == null) {
Auth = new global::Keyapis.Identity.V1.AuthServiceError.Types.AuthError();
}
Auth.MergeFrom(other.Auth);
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.AuthServiceError.Types.AuthError subBuilder = new global::Keyapis.Identity.V1.AuthServiceError.Types.AuthError();
if (reasonCase_ == ReasonOneofCase.Auth) {
subBuilder.MergeFrom(Auth);
}
input.ReadMessage(subBuilder);
Auth = 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.AuthServiceError.Types.AuthError subBuilder = new global::Keyapis.Identity.V1.AuthServiceError.Types.AuthError();
if (reasonCase_ == ReasonOneofCase.Auth) {
subBuilder.MergeFrom(Auth);
}
input.ReadMessage(subBuilder);
Auth = subBuilder;
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the AuthServiceError message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Ошибки авторизационного сервиса
///
public sealed partial class AuthError : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AuthError());
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.AuthServiceError.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 AuthError() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AuthError(AuthError other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AuthError Clone() {
return new AuthError(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as AuthError);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(AuthError 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(AuthError 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 PostOauth2LoginByCodeRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostOauth2LoginByCodeRequest());
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.KeyapisIdentityOauth2V1Reflection.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 PostOauth2LoginByCodeRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostOauth2LoginByCodeRequest(PostOauth2LoginByCodeRequest other) : this() {
codeId_ = other.codeId_;
code_ = other.code_;
loginChallenge_ = other.loginChallenge_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostOauth2LoginByCodeRequest Clone() {
return new PostOauth2LoginByCodeRequest(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");
}
}
/// Field number for the "login_challenge" field.
public const int LoginChallengeFieldNumber = 3;
private string loginChallenge_ = "";
///
/// Идентификатор текущей попытки логина пользователя
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string LoginChallenge {
get { return loginChallenge_; }
set {
loginChallenge_ = 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 PostOauth2LoginByCodeRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostOauth2LoginByCodeRequest 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;
if (LoginChallenge != other.LoginChallenge) 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 (LoginChallenge.Length != 0) hash ^= LoginChallenge.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 (LoginChallenge.Length != 0) {
output.WriteRawTag(26);
output.WriteString(LoginChallenge);
}
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 (LoginChallenge.Length != 0) {
output.WriteRawTag(26);
output.WriteString(LoginChallenge);
}
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 (LoginChallenge.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(LoginChallenge);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PostOauth2LoginByCodeRequest other) {
if (other == null) {
return;
}
if (other.CodeId.Length != 0) {
CodeId = other.CodeId;
}
if (other.Code.Length != 0) {
Code = other.Code;
}
if (other.LoginChallenge.Length != 0) {
LoginChallenge = other.LoginChallenge;
}
_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;
}
case 26: {
LoginChallenge = 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;
}
case 26: {
LoginChallenge = input.ReadString();
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос об авторизации пользователя
///
public sealed partial class PostOauth2LoginByCodeResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostOauth2LoginByCodeResponse());
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.KeyapisIdentityOauth2V1Reflection.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 PostOauth2LoginByCodeResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostOauth2LoginByCodeResponse(PostOauth2LoginByCodeResponse other) : this() {
switch (other.TypeCase) {
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 PostOauth2LoginByCodeResponse Clone() {
return new PostOauth2LoginByCodeResponse(this);
}
/// Field number for the "error" field.
public const int ErrorFieldNumber = 1;
///
/// Ошибка
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Identity.V1.PostOauth2LoginByCodeResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Identity.V1.PostOauth2LoginByCodeResponse.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,
Error = 1,
}
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 PostOauth2LoginByCodeResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostOauth2LoginByCodeResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
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.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.Error) {
output.WriteRawTag(10);
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.Error) {
output.WriteRawTag(10);
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.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(PostOauth2LoginByCodeResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Keyapis.Identity.V1.PostOauth2LoginByCodeResponse.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.PostOauth2LoginByCodeResponse.Types.Error subBuilder = new global::Keyapis.Identity.V1.PostOauth2LoginByCodeResponse.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.PostOauth2LoginByCodeResponse.Types.Error subBuilder = new global::Keyapis.Identity.V1.PostOauth2LoginByCodeResponse.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 PostOauth2LoginByCodeResponse 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.PostOauth2LoginByCodeResponse.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;
case ReasonOneofCase.AuthService:
AuthService = other.AuthService.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;
}
}
/// Field number for the "auth_service" field.
public const int AuthServiceFieldNumber = 4;
///
/// Ошибки авторизационного сервиса
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Identity.V1.AuthServiceError AuthService {
get { return reasonCase_ == ReasonOneofCase.AuthService ? (global::Keyapis.Identity.V1.AuthServiceError) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.AuthService;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
OtpCode = 1,
Sso = 2,
Key = 3,
AuthService = 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(OtpCode, other.OtpCode)) return false;
if (!object.Equals(Sso, other.Sso)) return false;
if (!object.Equals(Key, other.Key)) return false;
if (!object.Equals(AuthService, other.AuthService)) 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();
if (reasonCase_ == ReasonOneofCase.AuthService) hash ^= AuthService.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 (reasonCase_ == ReasonOneofCase.AuthService) {
output.WriteRawTag(34);
output.WriteMessage(AuthService);
}
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 (reasonCase_ == ReasonOneofCase.AuthService) {
output.WriteRawTag(34);
output.WriteMessage(AuthService);
}
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 (reasonCase_ == ReasonOneofCase.AuthService) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AuthService);
}
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;
case ReasonOneofCase.AuthService:
if (AuthService == null) {
AuthService = new global::Keyapis.Identity.V1.AuthServiceError();
}
AuthService.MergeFrom(other.AuthService);
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;
}
case 34: {
global::Keyapis.Identity.V1.AuthServiceError subBuilder = new global::Keyapis.Identity.V1.AuthServiceError();
if (reasonCase_ == ReasonOneofCase.AuthService) {
subBuilder.MergeFrom(AuthService);
}
input.ReadMessage(subBuilder);
AuthService = 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;
}
case 34: {
global::Keyapis.Identity.V1.AuthServiceError subBuilder = new global::Keyapis.Identity.V1.AuthServiceError();
if (reasonCase_ == ReasonOneofCase.AuthService) {
subBuilder.MergeFrom(AuthService);
}
input.ReadMessage(subBuilder);
AuthService = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Запрос на авторизацию по паролю
///
public sealed partial class PostOauth2LoginByPasswordRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostOauth2LoginByPasswordRequest());
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.KeyapisIdentityOauth2V1Reflection.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 PostOauth2LoginByPasswordRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostOauth2LoginByPasswordRequest(PostOauth2LoginByPasswordRequest other) : this() {
password_ = other.password_;
captchaAnswer_ = other.captchaAnswer_ != null ? other.captchaAnswer_.Clone() : null;
loginChallenge_ = other.loginChallenge_;
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 PostOauth2LoginByPasswordRequest Clone() {
return new PostOauth2LoginByPasswordRequest(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;
}
}
/// Field number for the "login_challenge" field.
public const int LoginChallengeFieldNumber = 6;
private string loginChallenge_ = "";
///
/// Идентификатор текущей попытки логина пользователя
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string LoginChallenge {
get { return loginChallenge_; }
set {
loginChallenge_ = pb::ProtoPreconditions.CheckNotNull(value, "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 PostOauth2LoginByPasswordRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostOauth2LoginByPasswordRequest 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 (LoginChallenge != other.LoginChallenge) 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();
if (LoginChallenge.Length != 0) hash ^= LoginChallenge.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 (LoginChallenge.Length != 0) {
output.WriteRawTag(50);
output.WriteString(LoginChallenge);
}
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 (LoginChallenge.Length != 0) {
output.WriteRawTag(50);
output.WriteString(LoginChallenge);
}
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 (LoginChallenge.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(LoginChallenge);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PostOauth2LoginByPasswordRequest 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);
}
if (other.LoginChallenge.Length != 0) {
LoginChallenge = other.LoginChallenge;
}
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;
}
case 50: {
LoginChallenge = 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: {
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;
}
case 50: {
LoginChallenge = input.ReadString();
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос об авторизации по паролю пользователя
///
public sealed partial class PostOauth2LoginByPasswordResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostOauth2LoginByPasswordResponse());
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.KeyapisIdentityOauth2V1Reflection.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 PostOauth2LoginByPasswordResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostOauth2LoginByPasswordResponse(PostOauth2LoginByPasswordResponse other) : this() {
switch (other.TypeCase) {
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 PostOauth2LoginByPasswordResponse Clone() {
return new PostOauth2LoginByPasswordResponse(this);
}
/// Field number for the "error" field.
public const int ErrorFieldNumber = 1;
///
/// Ошибка
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Identity.V1.PostOauth2LoginByPasswordResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Identity.V1.PostOauth2LoginByPasswordResponse.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,
Error = 1,
}
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 PostOauth2LoginByPasswordResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostOauth2LoginByPasswordResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
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.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.Error) {
output.WriteRawTag(10);
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.Error) {
output.WriteRawTag(10);
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.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(PostOauth2LoginByPasswordResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Keyapis.Identity.V1.PostOauth2LoginByPasswordResponse.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.PostOauth2LoginByPasswordResponse.Types.Error subBuilder = new global::Keyapis.Identity.V1.PostOauth2LoginByPasswordResponse.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.PostOauth2LoginByPasswordResponse.Types.Error subBuilder = new global::Keyapis.Identity.V1.PostOauth2LoginByPasswordResponse.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 PostOauth2LoginByPasswordResponse 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.PostOauth2LoginByPasswordResponse.Descriptor.NestedTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error(Error other) : this() {
switch (other.ReasonCase) {
case ReasonOneofCase.CaptchaAnswer:
CaptchaAnswer = other.CaptchaAnswer.Clone();
break;
case ReasonOneofCase.Sso:
Sso = other.Sso.Clone();
break;
case ReasonOneofCase.Key:
Key = other.Key.Clone();
break;
case ReasonOneofCase.AuthService:
AuthService = other.AuthService.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;
}
}
/// Field number for the "auth_service" field.
public const int AuthServiceFieldNumber = 4;
///
/// Ошибки авторизационного сервиса
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Identity.V1.AuthServiceError AuthService {
get { return reasonCase_ == ReasonOneofCase.AuthService ? (global::Keyapis.Identity.V1.AuthServiceError) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.AuthService;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
CaptchaAnswer = 1,
Sso = 2,
Key = 3,
AuthService = 4,
}
private ReasonOneofCase reasonCase_ = ReasonOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ReasonOneofCase ReasonCase {
get { return reasonCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearReason() {
reasonCase_ = ReasonOneofCase.None;
reason_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Error);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Error other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(CaptchaAnswer, other.CaptchaAnswer)) return false;
if (!object.Equals(Sso, other.Sso)) return false;
if (!object.Equals(Key, other.Key)) return false;
if (!object.Equals(AuthService, other.AuthService)) return false;
if (ReasonCase != other.ReasonCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (reasonCase_ == ReasonOneofCase.CaptchaAnswer) hash ^= CaptchaAnswer.GetHashCode();
if (reasonCase_ == ReasonOneofCase.Sso) hash ^= Sso.GetHashCode();
if (reasonCase_ == ReasonOneofCase.Key) hash ^= Key.GetHashCode();
if (reasonCase_ == ReasonOneofCase.AuthService) hash ^= AuthService.GetHashCode();
hash ^= (int) reasonCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (reasonCase_ == ReasonOneofCase.CaptchaAnswer) {
output.WriteRawTag(10);
output.WriteMessage(CaptchaAnswer);
}
if (reasonCase_ == ReasonOneofCase.Sso) {
output.WriteRawTag(18);
output.WriteMessage(Sso);
}
if (reasonCase_ == ReasonOneofCase.Key) {
output.WriteRawTag(26);
output.WriteMessage(Key);
}
if (reasonCase_ == ReasonOneofCase.AuthService) {
output.WriteRawTag(34);
output.WriteMessage(AuthService);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (reasonCase_ == ReasonOneofCase.CaptchaAnswer) {
output.WriteRawTag(10);
output.WriteMessage(CaptchaAnswer);
}
if (reasonCase_ == ReasonOneofCase.Sso) {
output.WriteRawTag(18);
output.WriteMessage(Sso);
}
if (reasonCase_ == ReasonOneofCase.Key) {
output.WriteRawTag(26);
output.WriteMessage(Key);
}
if (reasonCase_ == ReasonOneofCase.AuthService) {
output.WriteRawTag(34);
output.WriteMessage(AuthService);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (reasonCase_ == ReasonOneofCase.CaptchaAnswer) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CaptchaAnswer);
}
if (reasonCase_ == ReasonOneofCase.Sso) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sso);
}
if (reasonCase_ == ReasonOneofCase.Key) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Key);
}
if (reasonCase_ == ReasonOneofCase.AuthService) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AuthService);
}
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;
case ReasonOneofCase.AuthService:
if (AuthService == null) {
AuthService = new global::Keyapis.Identity.V1.AuthServiceError();
}
AuthService.MergeFrom(other.AuthService);
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;
}
case 34: {
global::Keyapis.Identity.V1.AuthServiceError subBuilder = new global::Keyapis.Identity.V1.AuthServiceError();
if (reasonCase_ == ReasonOneofCase.AuthService) {
subBuilder.MergeFrom(AuthService);
}
input.ReadMessage(subBuilder);
AuthService = 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;
}
case 34: {
global::Keyapis.Identity.V1.AuthServiceError subBuilder = new global::Keyapis.Identity.V1.AuthServiceError();
if (reasonCase_ == ReasonOneofCase.AuthService) {
subBuilder.MergeFrom(AuthService);
}
input.ReadMessage(subBuilder);
AuthService = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Запрос соглашения пользователя по процедуре OAuth2
///
public sealed partial class GetOauth2ConsentRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetOauth2ConsentRequest());
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.KeyapisIdentityOauth2V1Reflection.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 GetOauth2ConsentRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetOauth2ConsentRequest(GetOauth2ConsentRequest other) : this() {
consentChallenge_ = other.consentChallenge_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetOauth2ConsentRequest Clone() {
return new GetOauth2ConsentRequest(this);
}
/// Field number for the "consent_challenge" field.
public const int ConsentChallengeFieldNumber = 1;
private string consentChallenge_ = "";
///
/// Идентификатор текущей попытки запроса соглашения пользователя
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ConsentChallenge {
get { return consentChallenge_; }
set {
consentChallenge_ = 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 GetOauth2ConsentRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetOauth2ConsentRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (ConsentChallenge != other.ConsentChallenge) 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 (ConsentChallenge.Length != 0) hash ^= ConsentChallenge.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 (ConsentChallenge.Length != 0) {
output.WriteRawTag(10);
output.WriteString(ConsentChallenge);
}
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 (ConsentChallenge.Length != 0) {
output.WriteRawTag(10);
output.WriteString(ConsentChallenge);
}
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 (ConsentChallenge.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ConsentChallenge);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetOauth2ConsentRequest other) {
if (other == null) {
return;
}
if (other.ConsentChallenge.Length != 0) {
ConsentChallenge = other.ConsentChallenge;
}
_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: {
ConsentChallenge = 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: {
ConsentChallenge = input.ReadString();
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос соглашения пользователя по процедуре OAuth2
///
public sealed partial class GetOauth2ConsentResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetOauth2ConsentResponse());
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.KeyapisIdentityOauth2V1Reflection.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 GetOauth2ConsentResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetOauth2ConsentResponse(GetOauth2ConsentResponse other) : this() {
switch (other.TypeCase) {
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 GetOauth2ConsentResponse Clone() {
return new GetOauth2ConsentResponse(this);
}
/// Field number for the "error" field.
public const int ErrorFieldNumber = 1;
///
/// Ошибка
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Identity.V1.GetOauth2ConsentResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Identity.V1.GetOauth2ConsentResponse.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,
Error = 1,
}
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 GetOauth2ConsentResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetOauth2ConsentResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
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.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.Error) {
output.WriteRawTag(10);
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.Error) {
output.WriteRawTag(10);
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.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(GetOauth2ConsentResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Keyapis.Identity.V1.GetOauth2ConsentResponse.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.GetOauth2ConsentResponse.Types.Error subBuilder = new global::Keyapis.Identity.V1.GetOauth2ConsentResponse.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.GetOauth2ConsentResponse.Types.Error subBuilder = new global::Keyapis.Identity.V1.GetOauth2ConsentResponse.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 GetOauth2ConsentResponse 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.GetOauth2ConsentResponse.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.AuthService:
AuthService = other.AuthService.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 "auth_service" field.
public const int AuthServiceFieldNumber = 1;
///
/// Ошибки авторизационного сервиса
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Identity.V1.AuthServiceError AuthService {
get { return reasonCase_ == ReasonOneofCase.AuthService ? (global::Keyapis.Identity.V1.AuthServiceError) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.AuthService;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
AuthService = 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(AuthService, other.AuthService)) 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.AuthService) hash ^= AuthService.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.AuthService) {
output.WriteRawTag(10);
output.WriteMessage(AuthService);
}
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.AuthService) {
output.WriteRawTag(10);
output.WriteMessage(AuthService);
}
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.AuthService) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AuthService);
}
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.AuthService:
if (AuthService == null) {
AuthService = new global::Keyapis.Identity.V1.AuthServiceError();
}
AuthService.MergeFrom(other.AuthService);
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.AuthServiceError subBuilder = new global::Keyapis.Identity.V1.AuthServiceError();
if (reasonCase_ == ReasonOneofCase.AuthService) {
subBuilder.MergeFrom(AuthService);
}
input.ReadMessage(subBuilder);
AuthService = 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.AuthServiceError subBuilder = new global::Keyapis.Identity.V1.AuthServiceError();
if (reasonCase_ == ReasonOneofCase.AuthService) {
subBuilder.MergeFrom(AuthService);
}
input.ReadMessage(subBuilder);
AuthService = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
#endregion
}
#endregion Designer generated code