// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/invoice/v1/keyapis_invoice_paymethod_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.Invoice.V1 { /// Holder for reflection information generated from keyapis/invoice/v1/keyapis_invoice_paymethod_v1.proto public static partial class KeyapisInvoicePaymethodV1Reflection { #region Descriptor /// File descriptor for keyapis/invoice/v1/keyapis_invoice_paymethod_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisInvoicePaymethodV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjVrZXlhcGlzL2ludm9pY2UvdjEva2V5YXBpc19pbnZvaWNlX3BheW1ldGhv", "ZF92MS5wcm90bxISa2V5YXBpcy5pbnZvaWNlLnYxGh9nb29nbGUvcHJvdG9i", "dWYvdGltZXN0YW1wLnByb3RvGhxnb29nbGUvYXBpL2Fubm90YXRpb25zLnBy", "b3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGiBnb29nbGUv", "cHJvdG9idWYvZmllbGRfbWFzay5wcm90byLmBQoJUGF5TWV0aG9kEhoKDXBh", "eV9tZXRob2RfaWQYASABKAlCA+BBAhIUCgd1c2VyX2lkGAIgASgFQgPgQQIS", "NQoEdHlwZRgDIAEoDjIiLmtleWFwaXMuaW52b2ljZS52MS5QYXlNZXRob2Qu", "VHlwZUID4EECEhYKCWlzX2FjdGl2ZRgEIAEoCEID4EECEhcKCmlzX2RlZmF1", "bHQYBSABKAhCA+BBAhIaChJwYXlfbWV0aG9kX2NvbnRhY3QYBiABKAkSHgoW", "cGF5X21ldGhvZF9kZXNjcmlwdGlvbhgHIAEoCRIYChBwYXlfbWV0aG9kX2Fs", "aWFzGAggASgJEj4KCWNhcmRfdHlwZRgJIAEoDjImLmtleWFwaXMuaW52b2lj", "ZS52MS5QYXlNZXRob2QuQ2FyZFR5cGVCA+BBAxIXCgptYXNrZWRfbnVtGAog", "ASgJQgPgQQMSFgoJYmFua19uYW1lGAsgASgJQgPgQQMSFAoHaXNfYXV0aBgM", "IAEoCEID4EEDEkIKC3N0YXR1c190eXBlGA0gASgOMigua2V5YXBpcy5pbnZv", "aWNlLnYxLlBheU1ldGhvZC5TdGF0dXNUeXBlQgPgQQMSNAoLcmVnaXN0ZXJf", "YXQYDiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQMiPwoE", "VHlwZRIQCgxUWVBFX1VOS05PV04QABINCglCQU5LX0NBUkQQARIHCgNTQlAQ", "AhINCglTQkVSX0JJTkQQAyJbCghDYXJkVHlwZRIVChFDQVJEX1RZUEVfVU5L", "Tk9XThAAEggKBFZJU0EQARIJCgVFQ19NQxACEgcKA0RDTBADEgcKA0pDQhAE", "EggKBEFNRVgQBRIHCgNNSVIQBiJKCgpTdGF0dXNUeXBlEhcKE1NUQVRVU19U", "WVBFX1VOS05PV04QABIJCgVWQUxJRBABEgsKB0VYUElSRUQQAhILCgdCTE9D", "S0VEEAMiKgoXR2V0UGF5TWV0aG9kTGlzdFJlcXVlc3QSDwoHdXNlcl9pZBgB", "IAEoBSJHChhHZXRQYXlNZXRob2RMaXN0UmVzcG9uc2USKwoEZGF0YRgBIAMo", "CzIdLmtleWFwaXMuaW52b2ljZS52MS5QYXlNZXRob2QiNAoWRGVsZXRlUGF5", "TWV0aG9kUmVxdWVzdBIaCg1wYXlfbWV0aG9kX2lkGAEgASgJQgPgQQIiGQoX", "RGVsZXRlUGF5TWV0aG9kUmVzcG9uc2UiOQobUG9zdFBheU1ldGhvZERlZmF1", "bHRSZXF1ZXN0EhoKDXBheV9tZXRob2RfaWQYASABKAlCA+BBAiK9AQocUG9z", "dFBheU1ldGhvZERlZmF1bHRSZXNwb25zZRJHCgVlcnJvchgBIAEoCzI2Lmtl", "eWFwaXMuaW52b2ljZS52MS5Qb3N0UGF5TWV0aG9kRGVmYXVsdFJlc3BvbnNl", "LkVycm9ySAAaTAoFRXJyb3ISOQoKdmFsaWRhdGlvbhgBIAEoCzIjLmtleWFw", "aXMuaW52b2ljZS52MS5WYWxpZGF0aW9uRXJyb3JIAEIICgZyZWFzb25CBgoE", "dHlwZSJRChxQb3N0UGF5TWV0aG9kQmFua2NhcmRSZXF1ZXN0EhoKDXVybF9y", "ZXR1cm5fb2sYASABKAlCA+BBAhIVCg11cmxfcmV0dXJuX25vGAIgASgJIskC", "Ch1Qb3N0UGF5TWV0aG9kQmFua2NhcmRSZXNwb25zZRJICgVlcnJvchgBIAEo", "CzI3LmtleWFwaXMuaW52b2ljZS52MS5Qb3N0UGF5TWV0aG9kQmFua2NhcmRS", "ZXNwb25zZS5FcnJvckgAEk4KBGRhdGEYAiABKAsyPi5rZXlhcGlzLmludm9p", "Y2UudjEuUG9zdFBheU1ldGhvZEJhbmtjYXJkUmVzcG9uc2UuUmVnaXN0ZXJE", "YXRhSAAaTAoFRXJyb3ISOQoKdmFsaWRhdGlvbhgBIAEoCzIjLmtleWFwaXMu", "aW52b2ljZS52MS5WYWxpZGF0aW9uRXJyb3JIAEIICgZyZWFzb24aOAoMUmVn", "aXN0ZXJEYXRhEg4KBnJlcV9pZBgBIAEoCRIYChB1cmxfcmVnaXN0cmF0aW9u", "GAIgASgJQgYKBHR5cGUiTAoXUG9zdFBheU1ldGhvZFNicFJlcXVlc3QSGgoN", "dXJsX3JldHVybl9vaxgBIAEoCUID4EECEhUKDXVybF9yZXR1cm5fbm8YAiAB", "KAkizwIKGFBvc3RQYXlNZXRob2RTYnBSZXNwb25zZRJDCgVlcnJvchgBIAEo", "CzIyLmtleWFwaXMuaW52b2ljZS52MS5Qb3N0UGF5TWV0aG9kU2JwUmVzcG9u", "c2UuRXJyb3JIABJJCgRkYXRhGAIgASgLMjkua2V5YXBpcy5pbnZvaWNlLnYx", "LlBvc3RQYXlNZXRob2RTYnBSZXNwb25zZS5SZWdpc3RlckRhdGFIABpMCgVF", "cnJvchI5Cgp2YWxpZGF0aW9uGAEgASgLMiMua2V5YXBpcy5pbnZvaWNlLnYx", "LlZhbGlkYXRpb25FcnJvckgAQggKBnJlYXNvbhpNCgxSZWdpc3RlckRhdGES", "DgoGcmVxX2lkGAEgASgJEhgKEHVybF9yZWdpc3RyYXRpb24YAiABKAkSEwoL", "c2JwX3BheWxvYWQYAyABKAlCBgoEdHlwZSI6Cg9WYWxpZGF0aW9uRXJyb3IS", "EQoEcGF0aBgBIAEoCUID4EECEhQKB21lc3NhZ2UYAiABKAlCA+BBAjLRBgoQ", "UGF5TWV0aG9kU2VydmljZRKWAQoQR2V0UGF5TWV0aG9kTGlzdBIrLmtleWFw", "aXMuaW52b2ljZS52MS5HZXRQYXlNZXRob2RMaXN0UmVxdWVzdBosLmtleWFw", "aXMuaW52b2ljZS52MS5HZXRQYXlNZXRob2RMaXN0UmVzcG9uc2UiJ4LT5JMC", "IRIfL2ludm9pY2UvYXBpL3YxL3BheV9tZXRob2QvbGlzdBKeAQoPRGVsZXRl", "UGF5TWV0aG9kEioua2V5YXBpcy5pbnZvaWNlLnYxLkRlbGV0ZVBheU1ldGhv", "ZFJlcXVlc3QaKy5rZXlhcGlzLmludm9pY2UudjEuRGVsZXRlUGF5TWV0aG9k", "UmVzcG9uc2UiMoLT5JMCLCoqL2ludm9pY2UvYXBpL3YxL3BheV9tZXRob2Qv", "e3BheV9tZXRob2RfaWR9ErgBChRQb3N0UGF5TWV0aG9kRGVmYXVsdBIvLmtl", "eWFwaXMuaW52b2ljZS52MS5Qb3N0UGF5TWV0aG9kRGVmYXVsdFJlcXVlc3Qa", "MC5rZXlhcGlzLmludm9pY2UudjEuUG9zdFBheU1ldGhvZERlZmF1bHRSZXNw", "b25zZSI9gtPkkwI3IjIvaW52b2ljZS9hcGkvdjEvcGF5X21ldGhvZC97cGF5", "X21ldGhvZF9pZH0vZGVmYXVsdDoBKhKsAQoVUG9zdFBheU1ldGhvZEJhbmtj", "YXJkEjAua2V5YXBpcy5pbnZvaWNlLnYxLlBvc3RQYXlNZXRob2RCYW5rY2Fy", "ZFJlcXVlc3QaMS5rZXlhcGlzLmludm9pY2UudjEuUG9zdFBheU1ldGhvZEJh", "bmtjYXJkUmVzcG9uc2UiLoLT5JMCKCIjL2ludm9pY2UvYXBpL3YxL3BheV9t", "ZXRob2QvYmFua2NhcmQ6ASoSmAEKEFBvc3RQYXlNZXRob2RTYnASKy5rZXlh", "cGlzLmludm9pY2UudjEuUG9zdFBheU1ldGhvZFNicFJlcXVlc3QaLC5rZXlh", "cGlzLmludm9pY2UudjEuUG9zdFBheU1ldGhvZFNicFJlc3BvbnNlIimC0+ST", "AiMiHi9pbnZvaWNlL2FwaS92MS9wYXlfbWV0aG9kL3NicDoBKkKhAQoVcnUu", "a2V5YXBpcy5pbnZvaWNlLnYxQhVLZXlhcGlzSW52b2ljZVYxUHJvdG9IA1AA", "WhMva2V5YXBpc19pbnZvaWNlX3Yx2AEB+AEBogIQS0VZQVBJU0lOVk9JQ0VW", "MaoCEktleWFwaXMuSW52b2ljZS5WMcoCEktleWFwaXNcSW52b2ljZVxWMeoC", "FEtleWFwaXM6Okludm9pY2U6OlYxYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.PayMethod), global::Keyapis.Invoice.V1.PayMethod.Parser, new[]{ "PayMethodId", "UserId", "Type", "IsActive", "IsDefault", "PayMethodContact", "PayMethodDescription", "PayMethodAlias", "CardType", "MaskedNum", "BankName", "IsAuth", "StatusType", "RegisterAt" }, null, new[]{ typeof(global::Keyapis.Invoice.V1.PayMethod.Types.Type), typeof(global::Keyapis.Invoice.V1.PayMethod.Types.CardType), typeof(global::Keyapis.Invoice.V1.PayMethod.Types.StatusType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.GetPayMethodListRequest), global::Keyapis.Invoice.V1.GetPayMethodListRequest.Parser, new[]{ "UserId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.GetPayMethodListResponse), global::Keyapis.Invoice.V1.GetPayMethodListResponse.Parser, new[]{ "Data" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.DeletePayMethodRequest), global::Keyapis.Invoice.V1.DeletePayMethodRequest.Parser, new[]{ "PayMethodId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.DeletePayMethodResponse), global::Keyapis.Invoice.V1.DeletePayMethodResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.PostPayMethodDefaultRequest), global::Keyapis.Invoice.V1.PostPayMethodDefaultRequest.Parser, new[]{ "PayMethodId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.PostPayMethodDefaultResponse), global::Keyapis.Invoice.V1.PostPayMethodDefaultResponse.Parser, new[]{ "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.PostPayMethodDefaultResponse.Types.Error), global::Keyapis.Invoice.V1.PostPayMethodDefaultResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.PostPayMethodBankcardRequest), global::Keyapis.Invoice.V1.PostPayMethodBankcardRequest.Parser, new[]{ "UrlReturnOk", "UrlReturnNo" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.PostPayMethodBankcardResponse), global::Keyapis.Invoice.V1.PostPayMethodBankcardResponse.Parser, new[]{ "Error", "Data" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.PostPayMethodBankcardResponse.Types.Error), global::Keyapis.Invoice.V1.PostPayMethodBankcardResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.PostPayMethodBankcardResponse.Types.RegisterData), global::Keyapis.Invoice.V1.PostPayMethodBankcardResponse.Types.RegisterData.Parser, new[]{ "ReqId", "UrlRegistration" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.PostPayMethodSbpRequest), global::Keyapis.Invoice.V1.PostPayMethodSbpRequest.Parser, new[]{ "UrlReturnOk", "UrlReturnNo" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.PostPayMethodSbpResponse), global::Keyapis.Invoice.V1.PostPayMethodSbpResponse.Parser, new[]{ "Error", "Data" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.PostPayMethodSbpResponse.Types.Error), global::Keyapis.Invoice.V1.PostPayMethodSbpResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.PostPayMethodSbpResponse.Types.RegisterData), global::Keyapis.Invoice.V1.PostPayMethodSbpResponse.Types.RegisterData.Parser, new[]{ "ReqId", "UrlRegistration", "SbpPayload" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.ValidationError), global::Keyapis.Invoice.V1.ValidationError.Parser, new[]{ "Path", "Message" }, null, null, null, null) })); } #endregion } #region Messages /// /// Способ оплаты /// public sealed partial class PayMethod : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PayMethod()); 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.Invoice.V1.KeyapisInvoicePaymethodV1Reflection.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 PayMethod() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PayMethod(PayMethod other) : this() { payMethodId_ = other.payMethodId_; userId_ = other.userId_; type_ = other.type_; isActive_ = other.isActive_; isDefault_ = other.isDefault_; payMethodContact_ = other.payMethodContact_; payMethodDescription_ = other.payMethodDescription_; payMethodAlias_ = other.payMethodAlias_; cardType_ = other.cardType_; maskedNum_ = other.maskedNum_; bankName_ = other.bankName_; isAuth_ = other.isAuth_; statusType_ = other.statusType_; registerAt_ = other.registerAt_ != null ? other.registerAt_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PayMethod Clone() { return new PayMethod(this); } /// Field number for the "pay_method_id" field. public const int PayMethodIdFieldNumber = 1; private string payMethodId_ = ""; /// /// Идентификатор способа оплаты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PayMethodId { get { return payMethodId_; } set { payMethodId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "user_id" field. public const int UserIdFieldNumber = 2; private int userId_; /// /// Идентификатор пользователя /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int UserId { get { return userId_; } set { userId_ = value; } } /// Field number for the "type" field. public const int TypeFieldNumber = 3; private global::Keyapis.Invoice.V1.PayMethod.Types.Type type_ = global::Keyapis.Invoice.V1.PayMethod.Types.Type.Unknown; /// /// Тип способа оплаты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.PayMethod.Types.Type Type { get { return type_; } set { type_ = value; } } /// Field number for the "is_active" field. public const int IsActiveFieldNumber = 4; private bool isActive_; /// /// Признак активной записи /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsActive { get { return isActive_; } set { isActive_ = value; } } /// Field number for the "is_default" field. public const int IsDefaultFieldNumber = 5; private bool isDefault_; /// /// Способ оплаты по умолчанию /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsDefault { get { return isDefault_; } set { isDefault_ = value; } } /// Field number for the "pay_method_contact" field. public const int PayMethodContactFieldNumber = 6; private string payMethodContact_ = ""; /// /// Мобильный телефон, на который будут отправляться уведомления /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PayMethodContact { get { return payMethodContact_; } set { payMethodContact_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "pay_method_description" field. public const int PayMethodDescriptionFieldNumber = 7; private string payMethodDescription_ = ""; /// /// Описание способа оплаты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PayMethodDescription { get { return payMethodDescription_; } set { payMethodDescription_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "pay_method_alias" field. public const int PayMethodAliasFieldNumber = 8; private string payMethodAlias_ = ""; /// /// Псевдоним способа оплаты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PayMethodAlias { get { return payMethodAlias_; } set { payMethodAlias_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "card_type" field. public const int CardTypeFieldNumber = 9; private global::Keyapis.Invoice.V1.PayMethod.Types.CardType cardType_ = global::Keyapis.Invoice.V1.PayMethod.Types.CardType.Unknown; /// /// Тип банковской карты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.PayMethod.Types.CardType CardType { get { return cardType_; } set { cardType_ = value; } } /// Field number for the "masked_num" field. public const int MaskedNumFieldNumber = 10; private string maskedNum_ = ""; /// /// Маскированный номер карты или идентификатора привязки счета СБП /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string MaskedNum { get { return maskedNum_; } set { maskedNum_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "bank_name" field. public const int BankNameFieldNumber = 11; private string bankName_ = ""; /// /// Наименование банка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string BankName { get { return bankName_; } set { bankName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "is_auth" field. public const int IsAuthFieldNumber = 12; private bool isAuth_; /// /// Признак авторизации БК /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsAuth { get { return isAuth_; } set { isAuth_ = value; } } /// Field number for the "status_type" field. public const int StatusTypeFieldNumber = 13; private global::Keyapis.Invoice.V1.PayMethod.Types.StatusType statusType_ = global::Keyapis.Invoice.V1.PayMethod.Types.StatusType.Unknown; /// /// Статус способа оплаты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.PayMethod.Types.StatusType StatusType { get { return statusType_; } set { statusType_ = value; } } /// Field number for the "register_at" field. public const int RegisterAtFieldNumber = 14; private global::Google.Protobuf.WellKnownTypes.Timestamp registerAt_; /// /// Дата регистрации способа оплаты. /// # Тип: DateTime /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp RegisterAt { get { return registerAt_; } set { registerAt_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PayMethod); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PayMethod other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (PayMethodId != other.PayMethodId) return false; if (UserId != other.UserId) return false; if (Type != other.Type) return false; if (IsActive != other.IsActive) return false; if (IsDefault != other.IsDefault) return false; if (PayMethodContact != other.PayMethodContact) return false; if (PayMethodDescription != other.PayMethodDescription) return false; if (PayMethodAlias != other.PayMethodAlias) return false; if (CardType != other.CardType) return false; if (MaskedNum != other.MaskedNum) return false; if (BankName != other.BankName) return false; if (IsAuth != other.IsAuth) return false; if (StatusType != other.StatusType) return false; if (!object.Equals(RegisterAt, other.RegisterAt)) 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 (PayMethodId.Length != 0) hash ^= PayMethodId.GetHashCode(); if (UserId != 0) hash ^= UserId.GetHashCode(); if (Type != global::Keyapis.Invoice.V1.PayMethod.Types.Type.Unknown) hash ^= Type.GetHashCode(); if (IsActive != false) hash ^= IsActive.GetHashCode(); if (IsDefault != false) hash ^= IsDefault.GetHashCode(); if (PayMethodContact.Length != 0) hash ^= PayMethodContact.GetHashCode(); if (PayMethodDescription.Length != 0) hash ^= PayMethodDescription.GetHashCode(); if (PayMethodAlias.Length != 0) hash ^= PayMethodAlias.GetHashCode(); if (CardType != global::Keyapis.Invoice.V1.PayMethod.Types.CardType.Unknown) hash ^= CardType.GetHashCode(); if (MaskedNum.Length != 0) hash ^= MaskedNum.GetHashCode(); if (BankName.Length != 0) hash ^= BankName.GetHashCode(); if (IsAuth != false) hash ^= IsAuth.GetHashCode(); if (StatusType != global::Keyapis.Invoice.V1.PayMethod.Types.StatusType.Unknown) hash ^= StatusType.GetHashCode(); if (registerAt_ != null) hash ^= RegisterAt.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 (PayMethodId.Length != 0) { output.WriteRawTag(10); output.WriteString(PayMethodId); } if (UserId != 0) { output.WriteRawTag(16); output.WriteInt32(UserId); } if (Type != global::Keyapis.Invoice.V1.PayMethod.Types.Type.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) Type); } if (IsActive != false) { output.WriteRawTag(32); output.WriteBool(IsActive); } if (IsDefault != false) { output.WriteRawTag(40); output.WriteBool(IsDefault); } if (PayMethodContact.Length != 0) { output.WriteRawTag(50); output.WriteString(PayMethodContact); } if (PayMethodDescription.Length != 0) { output.WriteRawTag(58); output.WriteString(PayMethodDescription); } if (PayMethodAlias.Length != 0) { output.WriteRawTag(66); output.WriteString(PayMethodAlias); } if (CardType != global::Keyapis.Invoice.V1.PayMethod.Types.CardType.Unknown) { output.WriteRawTag(72); output.WriteEnum((int) CardType); } if (MaskedNum.Length != 0) { output.WriteRawTag(82); output.WriteString(MaskedNum); } if (BankName.Length != 0) { output.WriteRawTag(90); output.WriteString(BankName); } if (IsAuth != false) { output.WriteRawTag(96); output.WriteBool(IsAuth); } if (StatusType != global::Keyapis.Invoice.V1.PayMethod.Types.StatusType.Unknown) { output.WriteRawTag(104); output.WriteEnum((int) StatusType); } if (registerAt_ != null) { output.WriteRawTag(114); output.WriteMessage(RegisterAt); } 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 (PayMethodId.Length != 0) { output.WriteRawTag(10); output.WriteString(PayMethodId); } if (UserId != 0) { output.WriteRawTag(16); output.WriteInt32(UserId); } if (Type != global::Keyapis.Invoice.V1.PayMethod.Types.Type.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) Type); } if (IsActive != false) { output.WriteRawTag(32); output.WriteBool(IsActive); } if (IsDefault != false) { output.WriteRawTag(40); output.WriteBool(IsDefault); } if (PayMethodContact.Length != 0) { output.WriteRawTag(50); output.WriteString(PayMethodContact); } if (PayMethodDescription.Length != 0) { output.WriteRawTag(58); output.WriteString(PayMethodDescription); } if (PayMethodAlias.Length != 0) { output.WriteRawTag(66); output.WriteString(PayMethodAlias); } if (CardType != global::Keyapis.Invoice.V1.PayMethod.Types.CardType.Unknown) { output.WriteRawTag(72); output.WriteEnum((int) CardType); } if (MaskedNum.Length != 0) { output.WriteRawTag(82); output.WriteString(MaskedNum); } if (BankName.Length != 0) { output.WriteRawTag(90); output.WriteString(BankName); } if (IsAuth != false) { output.WriteRawTag(96); output.WriteBool(IsAuth); } if (StatusType != global::Keyapis.Invoice.V1.PayMethod.Types.StatusType.Unknown) { output.WriteRawTag(104); output.WriteEnum((int) StatusType); } if (registerAt_ != null) { output.WriteRawTag(114); output.WriteMessage(RegisterAt); } 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 (PayMethodId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(PayMethodId); } if (UserId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(UserId); } if (Type != global::Keyapis.Invoice.V1.PayMethod.Types.Type.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (IsActive != false) { size += 1 + 1; } if (IsDefault != false) { size += 1 + 1; } if (PayMethodContact.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(PayMethodContact); } if (PayMethodDescription.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(PayMethodDescription); } if (PayMethodAlias.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(PayMethodAlias); } if (CardType != global::Keyapis.Invoice.V1.PayMethod.Types.CardType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CardType); } if (MaskedNum.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(MaskedNum); } if (BankName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(BankName); } if (IsAuth != false) { size += 1 + 1; } if (StatusType != global::Keyapis.Invoice.V1.PayMethod.Types.StatusType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StatusType); } if (registerAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(RegisterAt); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PayMethod other) { if (other == null) { return; } if (other.PayMethodId.Length != 0) { PayMethodId = other.PayMethodId; } if (other.UserId != 0) { UserId = other.UserId; } if (other.Type != global::Keyapis.Invoice.V1.PayMethod.Types.Type.Unknown) { Type = other.Type; } if (other.IsActive != false) { IsActive = other.IsActive; } if (other.IsDefault != false) { IsDefault = other.IsDefault; } if (other.PayMethodContact.Length != 0) { PayMethodContact = other.PayMethodContact; } if (other.PayMethodDescription.Length != 0) { PayMethodDescription = other.PayMethodDescription; } if (other.PayMethodAlias.Length != 0) { PayMethodAlias = other.PayMethodAlias; } if (other.CardType != global::Keyapis.Invoice.V1.PayMethod.Types.CardType.Unknown) { CardType = other.CardType; } if (other.MaskedNum.Length != 0) { MaskedNum = other.MaskedNum; } if (other.BankName.Length != 0) { BankName = other.BankName; } if (other.IsAuth != false) { IsAuth = other.IsAuth; } if (other.StatusType != global::Keyapis.Invoice.V1.PayMethod.Types.StatusType.Unknown) { StatusType = other.StatusType; } if (other.registerAt_ != null) { if (registerAt_ == null) { RegisterAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } RegisterAt.MergeFrom(other.RegisterAt); } _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: { PayMethodId = input.ReadString(); break; } case 16: { UserId = input.ReadInt32(); break; } case 24: { Type = (global::Keyapis.Invoice.V1.PayMethod.Types.Type) input.ReadEnum(); break; } case 32: { IsActive = input.ReadBool(); break; } case 40: { IsDefault = input.ReadBool(); break; } case 50: { PayMethodContact = input.ReadString(); break; } case 58: { PayMethodDescription = input.ReadString(); break; } case 66: { PayMethodAlias = input.ReadString(); break; } case 72: { CardType = (global::Keyapis.Invoice.V1.PayMethod.Types.CardType) input.ReadEnum(); break; } case 82: { MaskedNum = input.ReadString(); break; } case 90: { BankName = input.ReadString(); break; } case 96: { IsAuth = input.ReadBool(); break; } case 104: { StatusType = (global::Keyapis.Invoice.V1.PayMethod.Types.StatusType) input.ReadEnum(); break; } case 114: { if (registerAt_ == null) { RegisterAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(RegisterAt); 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: { PayMethodId = input.ReadString(); break; } case 16: { UserId = input.ReadInt32(); break; } case 24: { Type = (global::Keyapis.Invoice.V1.PayMethod.Types.Type) input.ReadEnum(); break; } case 32: { IsActive = input.ReadBool(); break; } case 40: { IsDefault = input.ReadBool(); break; } case 50: { PayMethodContact = input.ReadString(); break; } case 58: { PayMethodDescription = input.ReadString(); break; } case 66: { PayMethodAlias = input.ReadString(); break; } case 72: { CardType = (global::Keyapis.Invoice.V1.PayMethod.Types.CardType) input.ReadEnum(); break; } case 82: { MaskedNum = input.ReadString(); break; } case 90: { BankName = input.ReadString(); break; } case 96: { IsAuth = input.ReadBool(); break; } case 104: { StatusType = (global::Keyapis.Invoice.V1.PayMethod.Types.StatusType) input.ReadEnum(); break; } case 114: { if (registerAt_ == null) { RegisterAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(RegisterAt); break; } } } } #endif #region Nested types /// Container for nested types declared in the PayMethod message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочник типов способов оплаты /// public enum Type { /// /// Значение не указано /// [pbr::OriginalName("TYPE_UNKNOWN")] Unknown = 0, /// /// Банковская карта /// [pbr::OriginalName("BANK_CARD")] BankCard = 1, /// /// Сервис быстрых платежей /// [pbr::OriginalName("SBP")] Sbp = 2, /// /// Связка Сбербанка /// [pbr::OriginalName("SBER_BIND")] SberBind = 3, } /// /// Справочник типов банковских карт /// public enum CardType { /// /// Значение не указано /// [pbr::OriginalName("CARD_TYPE_UNKNOWN")] Unknown = 0, /// /// Карта VISA /// [pbr::OriginalName("VISA")] Visa = 1, /// /// Карта EuroCard/MasterCard /// [pbr::OriginalName("EC_MC")] EcMc = 2, /// /// Карта DinersClub /// [pbr::OriginalName("DCL")] Dcl = 3, /// /// Карта JCB /// [pbr::OriginalName("JCB")] Jcb = 4, /// /// Карта American Express /// [pbr::OriginalName("AMEX")] Amex = 5, /// /// Платежная система "Мир" /// [pbr::OriginalName("MIR")] Mir = 6, } /// /// Статус способа оплаты /// public enum StatusType { /// /// Значение не указано /// [pbr::OriginalName("STATUS_TYPE_UNKNOWN")] Unknown = 0, /// /// Исправный /// [pbr::OriginalName("VALID")] Valid = 1, /// /// Истекший /// [pbr::OriginalName("EXPIRED")] Expired = 2, /// /// Заблокированный /// [pbr::OriginalName("BLOCKED")] Blocked = 3, } } #endregion } /// /// Запрос на получение списка способов оплаты /// public sealed partial class GetPayMethodListRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPayMethodListRequest()); 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.Invoice.V1.KeyapisInvoicePaymethodV1Reflection.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 GetPayMethodListRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetPayMethodListRequest(GetPayMethodListRequest other) : this() { userId_ = other.userId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetPayMethodListRequest Clone() { return new GetPayMethodListRequest(this); } /// Field number for the "user_id" field. public const int UserIdFieldNumber = 1; private int userId_; /// /// Идентификатор пользователя /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int UserId { get { return userId_; } set { userId_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetPayMethodListRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetPayMethodListRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (UserId != other.UserId) 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 (UserId != 0) hash ^= UserId.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 (UserId != 0) { output.WriteRawTag(8); output.WriteInt32(UserId); } 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 (UserId != 0) { output.WriteRawTag(8); output.WriteInt32(UserId); } 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 (UserId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(UserId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetPayMethodListRequest other) { if (other == null) { return; } if (other.UserId != 0) { UserId = other.UserId; } _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 8: { UserId = input.ReadInt32(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { UserId = input.ReadInt32(); break; } } } } #endif } /// /// Ответ на запрос получения списка способов оплаты /// public sealed partial class GetPayMethodListResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetPayMethodListResponse()); 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.Invoice.V1.KeyapisInvoicePaymethodV1Reflection.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 GetPayMethodListResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetPayMethodListResponse(GetPayMethodListResponse other) : this() { data_ = other.data_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetPayMethodListResponse Clone() { return new GetPayMethodListResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; private static readonly pb::FieldCodec _repeated_data_codec = pb::FieldCodec.ForMessage(10, global::Keyapis.Invoice.V1.PayMethod.Parser); private readonly pbc::RepeatedField data_ = new pbc::RepeatedField(); /// /// Способы оплаты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Data { get { return data_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetPayMethodListResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetPayMethodListResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!data_.Equals(other.data_)) 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; hash ^= data_.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 data_.WriteTo(output, _repeated_data_codec); 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) { data_.WriteTo(ref output, _repeated_data_codec); 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; size += data_.CalculateSize(_repeated_data_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetPayMethodListResponse other) { if (other == null) { return; } data_.Add(other.data_); _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: { data_.AddEntriesFrom(input, _repeated_data_codec); 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: { data_.AddEntriesFrom(ref input, _repeated_data_codec); break; } } } } #endif } /// /// Запрос на удаление способа оплаты /// public sealed partial class DeletePayMethodRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeletePayMethodRequest()); 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.Invoice.V1.KeyapisInvoicePaymethodV1Reflection.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 DeletePayMethodRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeletePayMethodRequest(DeletePayMethodRequest other) : this() { payMethodId_ = other.payMethodId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeletePayMethodRequest Clone() { return new DeletePayMethodRequest(this); } /// Field number for the "pay_method_id" field. public const int PayMethodIdFieldNumber = 1; private string payMethodId_ = ""; /// /// Идентификатор способа оплаты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PayMethodId { get { return payMethodId_; } set { payMethodId_ = 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 DeletePayMethodRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeletePayMethodRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (PayMethodId != other.PayMethodId) 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 (PayMethodId.Length != 0) hash ^= PayMethodId.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 (PayMethodId.Length != 0) { output.WriteRawTag(10); output.WriteString(PayMethodId); } 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 (PayMethodId.Length != 0) { output.WriteRawTag(10); output.WriteString(PayMethodId); } 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 (PayMethodId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(PayMethodId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeletePayMethodRequest other) { if (other == null) { return; } if (other.PayMethodId.Length != 0) { PayMethodId = other.PayMethodId; } _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: { PayMethodId = 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: { PayMethodId = input.ReadString(); break; } } } } #endif } /// /// Ответ на запрос удаления способа оплаты /// public sealed partial class DeletePayMethodResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeletePayMethodResponse()); 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.Invoice.V1.KeyapisInvoicePaymethodV1Reflection.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 DeletePayMethodResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeletePayMethodResponse(DeletePayMethodResponse other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeletePayMethodResponse Clone() { return new DeletePayMethodResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeletePayMethodResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeletePayMethodResponse 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(DeletePayMethodResponse other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } /// /// Запрос установки способа оплаты по умолчанию /// public sealed partial class PostPayMethodDefaultRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostPayMethodDefaultRequest()); 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.Invoice.V1.KeyapisInvoicePaymethodV1Reflection.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 PostPayMethodDefaultRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostPayMethodDefaultRequest(PostPayMethodDefaultRequest other) : this() { payMethodId_ = other.payMethodId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostPayMethodDefaultRequest Clone() { return new PostPayMethodDefaultRequest(this); } /// Field number for the "pay_method_id" field. public const int PayMethodIdFieldNumber = 1; private string payMethodId_ = ""; /// /// Идентификатор способа оплаты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PayMethodId { get { return payMethodId_; } set { payMethodId_ = 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 PostPayMethodDefaultRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostPayMethodDefaultRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (PayMethodId != other.PayMethodId) 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 (PayMethodId.Length != 0) hash ^= PayMethodId.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 (PayMethodId.Length != 0) { output.WriteRawTag(10); output.WriteString(PayMethodId); } 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 (PayMethodId.Length != 0) { output.WriteRawTag(10); output.WriteString(PayMethodId); } 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 (PayMethodId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(PayMethodId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostPayMethodDefaultRequest other) { if (other == null) { return; } if (other.PayMethodId.Length != 0) { PayMethodId = other.PayMethodId; } _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: { PayMethodId = 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: { PayMethodId = input.ReadString(); break; } } } } #endif } /// /// Ответ на запрос установки способа оплаты по умолчанию /// public sealed partial class PostPayMethodDefaultResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostPayMethodDefaultResponse()); 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.Invoice.V1.KeyapisInvoicePaymethodV1Reflection.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 PostPayMethodDefaultResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostPayMethodDefaultResponse(PostPayMethodDefaultResponse 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 PostPayMethodDefaultResponse Clone() { return new PostPayMethodDefaultResponse(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.Invoice.V1.PostPayMethodDefaultResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Invoice.V1.PostPayMethodDefaultResponse.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 PostPayMethodDefaultResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostPayMethodDefaultResponse 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(PostPayMethodDefaultResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Invoice.V1.PostPayMethodDefaultResponse.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.Invoice.V1.PostPayMethodDefaultResponse.Types.Error subBuilder = new global::Keyapis.Invoice.V1.PostPayMethodDefaultResponse.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.Invoice.V1.PostPayMethodDefaultResponse.Types.Error subBuilder = new global::Keyapis.Invoice.V1.PostPayMethodDefaultResponse.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 PostPayMethodDefaultResponse 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.Invoice.V1.PostPayMethodDefaultResponse.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.Validation: Validation = other.Validation.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 "validation" field. public const int ValidationFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Invoice.V1.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 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(Validation, other.Validation)) 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.Validation) hash ^= Validation.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.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } 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.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } 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.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } 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.Validation: if (Validation == null) { Validation = new global::Keyapis.Invoice.V1.ValidationError(); } Validation.MergeFrom(other.Validation); 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.Invoice.V1.ValidationError subBuilder = new global::Keyapis.Invoice.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = 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.Invoice.V1.ValidationError subBuilder = new global::Keyapis.Invoice.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } } #endregion } /// /// Запрос на добавления способа оплаты с типом "Банковская карта" /// public sealed partial class PostPayMethodBankcardRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostPayMethodBankcardRequest()); 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.Invoice.V1.KeyapisInvoicePaymethodV1Reflection.Descriptor.MessageTypes[7]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostPayMethodBankcardRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostPayMethodBankcardRequest(PostPayMethodBankcardRequest other) : this() { urlReturnOk_ = other.urlReturnOk_; urlReturnNo_ = other.urlReturnNo_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostPayMethodBankcardRequest Clone() { return new PostPayMethodBankcardRequest(this); } /// Field number for the "url_return_ok" field. public const int UrlReturnOkFieldNumber = 1; private string urlReturnOk_ = ""; /// /// URL для переадресации абонента в случае успешной регистрации карты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string UrlReturnOk { get { return urlReturnOk_; } set { urlReturnOk_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "url_return_no" field. public const int UrlReturnNoFieldNumber = 2; private string urlReturnNo_ = ""; /// /// URL для переадресации абонента в случае неуспешной регистрации карты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string UrlReturnNo { get { return urlReturnNo_; } set { urlReturnNo_ = 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 PostPayMethodBankcardRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostPayMethodBankcardRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (UrlReturnOk != other.UrlReturnOk) return false; if (UrlReturnNo != other.UrlReturnNo) 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 (UrlReturnOk.Length != 0) hash ^= UrlReturnOk.GetHashCode(); if (UrlReturnNo.Length != 0) hash ^= UrlReturnNo.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 (UrlReturnOk.Length != 0) { output.WriteRawTag(10); output.WriteString(UrlReturnOk); } if (UrlReturnNo.Length != 0) { output.WriteRawTag(18); output.WriteString(UrlReturnNo); } 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 (UrlReturnOk.Length != 0) { output.WriteRawTag(10); output.WriteString(UrlReturnOk); } if (UrlReturnNo.Length != 0) { output.WriteRawTag(18); output.WriteString(UrlReturnNo); } 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 (UrlReturnOk.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(UrlReturnOk); } if (UrlReturnNo.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(UrlReturnNo); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostPayMethodBankcardRequest other) { if (other == null) { return; } if (other.UrlReturnOk.Length != 0) { UrlReturnOk = other.UrlReturnOk; } if (other.UrlReturnNo.Length != 0) { UrlReturnNo = other.UrlReturnNo; } _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: { UrlReturnOk = input.ReadString(); break; } case 18: { UrlReturnNo = 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: { UrlReturnOk = input.ReadString(); break; } case 18: { UrlReturnNo = input.ReadString(); break; } } } } #endif } /// /// Ответ на запрос добавления способа оплаты с типом "Банковская карта" /// public sealed partial class PostPayMethodBankcardResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostPayMethodBankcardResponse()); 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.Invoice.V1.KeyapisInvoicePaymethodV1Reflection.Descriptor.MessageTypes[8]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostPayMethodBankcardResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostPayMethodBankcardResponse(PostPayMethodBankcardResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Error: Error = other.Error.Clone(); break; case TypeOneofCase.Data: Data = other.Data.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostPayMethodBankcardResponse Clone() { return new PostPayMethodBankcardResponse(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.Invoice.V1.PostPayMethodBankcardResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Invoice.V1.PostPayMethodBankcardResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } /// Field number for the "data" field. public const int DataFieldNumber = 2; /// /// Данные регистрации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.PostPayMethodBankcardResponse.Types.RegisterData Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Invoice.V1.PostPayMethodBankcardResponse.Types.RegisterData) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Error = 1, Data = 2, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostPayMethodBankcardResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostPayMethodBankcardResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Error, other.Error)) return false; if (!object.Equals(Data, other.Data)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode(); if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(10); output.WriteMessage(Error); } if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(18); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(10); output.WriteMessage(Error); } if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(18); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostPayMethodBankcardResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Invoice.V1.PostPayMethodBankcardResponse.Types.Error(); } Error.MergeFrom(other.Error); break; case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Invoice.V1.PostPayMethodBankcardResponse.Types.RegisterData(); } Data.MergeFrom(other.Data); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Invoice.V1.PostPayMethodBankcardResponse.Types.Error subBuilder = new global::Keyapis.Invoice.V1.PostPayMethodBankcardResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } case 18: { global::Keyapis.Invoice.V1.PostPayMethodBankcardResponse.Types.RegisterData subBuilder = new global::Keyapis.Invoice.V1.PostPayMethodBankcardResponse.Types.RegisterData(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Invoice.V1.PostPayMethodBankcardResponse.Types.Error subBuilder = new global::Keyapis.Invoice.V1.PostPayMethodBankcardResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } case 18: { global::Keyapis.Invoice.V1.PostPayMethodBankcardResponse.Types.RegisterData subBuilder = new global::Keyapis.Invoice.V1.PostPayMethodBankcardResponse.Types.RegisterData(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the PostPayMethodBankcardResponse 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.Invoice.V1.PostPayMethodBankcardResponse.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.Validation: Validation = other.Validation.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 "validation" field. public const int ValidationFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Invoice.V1.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 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(Validation, other.Validation)) 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.Validation) hash ^= Validation.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.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } 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.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } 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.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } 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.Validation: if (Validation == null) { Validation = new global::Keyapis.Invoice.V1.ValidationError(); } Validation.MergeFrom(other.Validation); 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.Invoice.V1.ValidationError subBuilder = new global::Keyapis.Invoice.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = 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.Invoice.V1.ValidationError subBuilder = new global::Keyapis.Invoice.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } /// /// Данные регистрации /// public sealed partial class RegisterData : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RegisterData()); 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.Invoice.V1.PostPayMethodBankcardResponse.Descriptor.NestedTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RegisterData() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RegisterData(RegisterData other) : this() { reqId_ = other.reqId_; urlRegistration_ = other.urlRegistration_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RegisterData Clone() { return new RegisterData(this); } /// Field number for the "req_id" field. public const int ReqIdFieldNumber = 1; private string reqId_ = ""; /// /// Идентификатор запроса на регистрацию /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ReqId { get { return reqId_; } set { reqId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "url_registration" field. public const int UrlRegistrationFieldNumber = 2; private string urlRegistration_ = ""; /// /// Ссылка для переадресации клиента для продолжения регистрации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string UrlRegistration { get { return urlRegistration_; } set { urlRegistration_ = 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 RegisterData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(RegisterData other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (ReqId != other.ReqId) return false; if (UrlRegistration != other.UrlRegistration) 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 (ReqId.Length != 0) hash ^= ReqId.GetHashCode(); if (UrlRegistration.Length != 0) hash ^= UrlRegistration.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 (ReqId.Length != 0) { output.WriteRawTag(10); output.WriteString(ReqId); } if (UrlRegistration.Length != 0) { output.WriteRawTag(18); output.WriteString(UrlRegistration); } 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 (ReqId.Length != 0) { output.WriteRawTag(10); output.WriteString(ReqId); } if (UrlRegistration.Length != 0) { output.WriteRawTag(18); output.WriteString(UrlRegistration); } 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 (ReqId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ReqId); } if (UrlRegistration.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(UrlRegistration); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(RegisterData other) { if (other == null) { return; } if (other.ReqId.Length != 0) { ReqId = other.ReqId; } if (other.UrlRegistration.Length != 0) { UrlRegistration = other.UrlRegistration; } _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: { ReqId = input.ReadString(); break; } case 18: { UrlRegistration = 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: { ReqId = input.ReadString(); break; } case 18: { UrlRegistration = input.ReadString(); break; } } } } #endif } } #endregion } /// /// Запрос на добавления способа оплаты с типом "СБП" /// public sealed partial class PostPayMethodSbpRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostPayMethodSbpRequest()); 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.Invoice.V1.KeyapisInvoicePaymethodV1Reflection.Descriptor.MessageTypes[9]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostPayMethodSbpRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostPayMethodSbpRequest(PostPayMethodSbpRequest other) : this() { urlReturnOk_ = other.urlReturnOk_; urlReturnNo_ = other.urlReturnNo_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostPayMethodSbpRequest Clone() { return new PostPayMethodSbpRequest(this); } /// Field number for the "url_return_ok" field. public const int UrlReturnOkFieldNumber = 1; private string urlReturnOk_ = ""; /// /// URL для переадресации абонента в случае успешной регистрации карты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string UrlReturnOk { get { return urlReturnOk_; } set { urlReturnOk_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "url_return_no" field. public const int UrlReturnNoFieldNumber = 2; private string urlReturnNo_ = ""; /// /// URL для переадресации абонента в случае неуспешной регистрации карты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string UrlReturnNo { get { return urlReturnNo_; } set { urlReturnNo_ = 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 PostPayMethodSbpRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostPayMethodSbpRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (UrlReturnOk != other.UrlReturnOk) return false; if (UrlReturnNo != other.UrlReturnNo) 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 (UrlReturnOk.Length != 0) hash ^= UrlReturnOk.GetHashCode(); if (UrlReturnNo.Length != 0) hash ^= UrlReturnNo.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 (UrlReturnOk.Length != 0) { output.WriteRawTag(10); output.WriteString(UrlReturnOk); } if (UrlReturnNo.Length != 0) { output.WriteRawTag(18); output.WriteString(UrlReturnNo); } 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 (UrlReturnOk.Length != 0) { output.WriteRawTag(10); output.WriteString(UrlReturnOk); } if (UrlReturnNo.Length != 0) { output.WriteRawTag(18); output.WriteString(UrlReturnNo); } 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 (UrlReturnOk.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(UrlReturnOk); } if (UrlReturnNo.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(UrlReturnNo); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostPayMethodSbpRequest other) { if (other == null) { return; } if (other.UrlReturnOk.Length != 0) { UrlReturnOk = other.UrlReturnOk; } if (other.UrlReturnNo.Length != 0) { UrlReturnNo = other.UrlReturnNo; } _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: { UrlReturnOk = input.ReadString(); break; } case 18: { UrlReturnNo = 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: { UrlReturnOk = input.ReadString(); break; } case 18: { UrlReturnNo = input.ReadString(); break; } } } } #endif } /// /// Ответ на запрос добавления способа оплаты с типом "СБП" /// public sealed partial class PostPayMethodSbpResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostPayMethodSbpResponse()); 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.Invoice.V1.KeyapisInvoicePaymethodV1Reflection.Descriptor.MessageTypes[10]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostPayMethodSbpResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostPayMethodSbpResponse(PostPayMethodSbpResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Error: Error = other.Error.Clone(); break; case TypeOneofCase.Data: Data = other.Data.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostPayMethodSbpResponse Clone() { return new PostPayMethodSbpResponse(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.Invoice.V1.PostPayMethodSbpResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Invoice.V1.PostPayMethodSbpResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } /// Field number for the "data" field. public const int DataFieldNumber = 2; /// /// Данные регистрации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.PostPayMethodSbpResponse.Types.RegisterData Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Invoice.V1.PostPayMethodSbpResponse.Types.RegisterData) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Error = 1, Data = 2, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostPayMethodSbpResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostPayMethodSbpResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Error, other.Error)) return false; if (!object.Equals(Data, other.Data)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode(); if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(10); output.WriteMessage(Error); } if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(18); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(10); output.WriteMessage(Error); } if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(18); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostPayMethodSbpResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Invoice.V1.PostPayMethodSbpResponse.Types.Error(); } Error.MergeFrom(other.Error); break; case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Invoice.V1.PostPayMethodSbpResponse.Types.RegisterData(); } Data.MergeFrom(other.Data); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Invoice.V1.PostPayMethodSbpResponse.Types.Error subBuilder = new global::Keyapis.Invoice.V1.PostPayMethodSbpResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } case 18: { global::Keyapis.Invoice.V1.PostPayMethodSbpResponse.Types.RegisterData subBuilder = new global::Keyapis.Invoice.V1.PostPayMethodSbpResponse.Types.RegisterData(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Invoice.V1.PostPayMethodSbpResponse.Types.Error subBuilder = new global::Keyapis.Invoice.V1.PostPayMethodSbpResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } case 18: { global::Keyapis.Invoice.V1.PostPayMethodSbpResponse.Types.RegisterData subBuilder = new global::Keyapis.Invoice.V1.PostPayMethodSbpResponse.Types.RegisterData(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the PostPayMethodSbpResponse 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.Invoice.V1.PostPayMethodSbpResponse.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.Validation: Validation = other.Validation.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 "validation" field. public const int ValidationFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Invoice.V1.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 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(Validation, other.Validation)) 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.Validation) hash ^= Validation.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.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } 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.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } 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.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } 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.Validation: if (Validation == null) { Validation = new global::Keyapis.Invoice.V1.ValidationError(); } Validation.MergeFrom(other.Validation); 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.Invoice.V1.ValidationError subBuilder = new global::Keyapis.Invoice.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = 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.Invoice.V1.ValidationError subBuilder = new global::Keyapis.Invoice.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } /// /// Данные регистрации /// public sealed partial class RegisterData : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RegisterData()); 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.Invoice.V1.PostPayMethodSbpResponse.Descriptor.NestedTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RegisterData() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RegisterData(RegisterData other) : this() { reqId_ = other.reqId_; urlRegistration_ = other.urlRegistration_; sbpPayload_ = other.sbpPayload_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RegisterData Clone() { return new RegisterData(this); } /// Field number for the "req_id" field. public const int ReqIdFieldNumber = 1; private string reqId_ = ""; /// /// Идентификатор запроса на регистрацию /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ReqId { get { return reqId_; } set { reqId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "url_registration" field. public const int UrlRegistrationFieldNumber = 2; private string urlRegistration_ = ""; /// /// Ссылка для переадресации клиента для продолжения регистрации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string UrlRegistration { get { return urlRegistration_; } set { urlRegistration_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "sbp_payload" field. public const int SbpPayloadFieldNumber = 3; private string sbpPayload_ = ""; /// /// Содержимое QR кода для регистрации платежного СБП-токена /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SbpPayload { get { return sbpPayload_; } set { sbpPayload_ = 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 RegisterData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(RegisterData other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (ReqId != other.ReqId) return false; if (UrlRegistration != other.UrlRegistration) return false; if (SbpPayload != other.SbpPayload) 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 (ReqId.Length != 0) hash ^= ReqId.GetHashCode(); if (UrlRegistration.Length != 0) hash ^= UrlRegistration.GetHashCode(); if (SbpPayload.Length != 0) hash ^= SbpPayload.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 (ReqId.Length != 0) { output.WriteRawTag(10); output.WriteString(ReqId); } if (UrlRegistration.Length != 0) { output.WriteRawTag(18); output.WriteString(UrlRegistration); } if (SbpPayload.Length != 0) { output.WriteRawTag(26); output.WriteString(SbpPayload); } 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 (ReqId.Length != 0) { output.WriteRawTag(10); output.WriteString(ReqId); } if (UrlRegistration.Length != 0) { output.WriteRawTag(18); output.WriteString(UrlRegistration); } if (SbpPayload.Length != 0) { output.WriteRawTag(26); output.WriteString(SbpPayload); } 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 (ReqId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ReqId); } if (UrlRegistration.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(UrlRegistration); } if (SbpPayload.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SbpPayload); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(RegisterData other) { if (other == null) { return; } if (other.ReqId.Length != 0) { ReqId = other.ReqId; } if (other.UrlRegistration.Length != 0) { UrlRegistration = other.UrlRegistration; } if (other.SbpPayload.Length != 0) { SbpPayload = other.SbpPayload; } _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: { ReqId = input.ReadString(); break; } case 18: { UrlRegistration = input.ReadString(); break; } case 26: { SbpPayload = 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: { ReqId = input.ReadString(); break; } case 18: { UrlRegistration = input.ReadString(); break; } case 26: { SbpPayload = input.ReadString(); break; } } } } #endif } } #endregion } /// /// Ошибка валидации /// public sealed partial class ValidationError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValidationError()); 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.Invoice.V1.KeyapisInvoicePaymethodV1Reflection.Descriptor.MessageTypes[11]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError(ValidationError other) : this() { path_ = other.path_; message_ = other.message_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError Clone() { return new ValidationError(this); } /// Field number for the "path" field. public const int PathFieldNumber = 1; private string path_ = ""; /// /// Путь к полю в формате наименования прото /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Path { get { return path_; } set { path_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "message" field. public const int MessageFieldNumber = 2; private string message_ = ""; /// /// Валидационное сообщение /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Message { get { return message_; } set { message_ = 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 ValidationError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ValidationError other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Path != other.Path) return false; if (Message != other.Message) 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 (Path.Length != 0) hash ^= Path.GetHashCode(); if (Message.Length != 0) hash ^= Message.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 (Path.Length != 0) { output.WriteRawTag(10); output.WriteString(Path); } if (Message.Length != 0) { output.WriteRawTag(18); output.WriteString(Message); } 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 (Path.Length != 0) { output.WriteRawTag(10); output.WriteString(Path); } if (Message.Length != 0) { output.WriteRawTag(18); output.WriteString(Message); } 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 (Path.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Path); } if (Message.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ValidationError other) { if (other == null) { return; } if (other.Path.Length != 0) { Path = other.Path; } if (other.Message.Length != 0) { Message = other.Message; } _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: { Path = input.ReadString(); break; } case 18: { Message = 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: { Path = input.ReadString(); break; } case 18: { Message = input.ReadString(); break; } } } } #endif } #endregion } #endregion Designer generated code