// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/invoice/v1/keyapis_invoice_invoice_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_invoice_v1.proto public static partial class KeyapisInvoiceInvoiceV1Reflection { #region Descriptor /// File descriptor for keyapis/invoice/v1/keyapis_invoice_invoice_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisInvoiceInvoiceV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjNrZXlhcGlzL2ludm9pY2UvdjEva2V5YXBpc19pbnZvaWNlX2ludm9pY2Vf", "djEucHJvdG8SEmtleWFwaXMuaW52b2ljZS52MRofZ29vZ2xlL3Byb3RvYnVm", "L3RpbWVzdGFtcC5wcm90bxocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90", "bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxo1a2V5YXBpcy9p", "bnZvaWNlL3YxL2tleWFwaXNfaW52b2ljZV9wYXltZXRob2RfdjEucHJvdG8a", "Hmdvb2dsZS9wcm90b2J1Zi93cmFwcGVycy5wcm90byK8DgoHSW52b2ljZRIP", "CgJpZBgBIAEoCUID4EECEhIKBXRpdGxlGAIgASgJQgPgQQISFAoHdXNlcl9p", "ZBgDIAEoBUID4EECEk8KE2ludm9pY2Vfc3RhdHVzX3R5cGUYBCABKA4yLS5r", "ZXlhcGlzLmludm9pY2UudjEuSW52b2ljZS5JbnZvaWNlU3RhdHVzVHlwZUID", "4EECEjMKCmNyZWF0ZWRfYXQYBSABKAsyGi5nb29nbGUucHJvdG9idWYuVGlt", "ZXN0YW1wQgPgQQISMwoKdXBkYXRlZF9hdBgGIAEoCzIaLmdvb2dsZS5wcm90", "b2J1Zi5UaW1lc3RhbXBCA+BBAhI8Cglwb3NpdGlvbnMYByADKAsyJC5rZXlh", "cGlzLmludm9pY2UudjEuSW52b2ljZS5Qb3NpdGlvbkID4EECEkgKEnBheV9p", "bnRlcmZhY2VfdHlwZRgIIAEoDjIsLmtleWFwaXMuaW52b2ljZS52MS5JbnZv", "aWNlLlBheUludGVyZmFjZVR5cGUSOwoLcGF5d2F5X3R5cGUYCSABKA4yJi5r", "ZXlhcGlzLmludm9pY2UudjEuSW52b2ljZS5QYXl3YXlUeXBlEjUKEXN0YXR1", "c19jaGFuZ2VkX2F0GAogASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt", "cBIrCgdwYWlkX2F0GAsgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt", "cBIPCgdwYXlfdXJsGAwgASgJEhsKE3BhaWRfYnlfY2FyZF9tYXNrZWQYDSAB", "KAkSHAoUcGFpZF9ieV9jYXJkX2VzcHBfaWQYDiABKAkSNwoJY2FyZF90eXBl", "GA8gASgOMiQua2V5YXBpcy5pbnZvaWNlLnYxLkludm9pY2UuQ2FyZFR5cGUS", "FwoPZXNwcF9yZXFfc3RhdHVzGBAgASgFEhkKEWVzcHBfcmVxX3VzZXJfbXNn", "GBEgASgJEhcKD2VzcHBfaW52b2ljZV9pZBgSIAEoCRIUCgxwaG9uZV9udW1i", "ZXIYEyABKAkSDQoFZW1haWwYFCABKAkakAEKDUV4dGVybmFsRXJyb3ISXgoV", "ZXh0ZXJuYWxfc3lzdGVtX2Vycm9yGAEgASgLMj0ua2V5YXBpcy5pbnZvaWNl", "LnYxLkludm9pY2UuRXh0ZXJuYWxFcnJvci5FeHRlcm5hbFN5c3RlbUVycm9y", "SAAaFQoTRXh0ZXJuYWxTeXN0ZW1FcnJvckIICgZyZWFzb24akQMKCFBvc2l0", "aW9uEgoKAmlkGAEgASgJEhcKCmludm9pY2VfaWQYAiABKAlCA+BBAhISCgV0", "aXRsZRgDIAEoCUID4EECEhUKCGNhdGVnb3J5GAQgASgJQgPgQQISEwoGYW1v", "dW50GAUgASgCQgPgQQISMwoKY3JlYXRlZF9hdBgGIAEoCzIaLmdvb2dsZS5w", "cm90b2J1Zi5UaW1lc3RhbXBCA+BBAxIzCgp1cGRhdGVkX2F0GAcgASgLMhou", "Z29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDEhMKBm1yZl9pZBgIIAEo", "BUID4EECEhIKBXJmX2lkGAkgASgFQgPgQQISGAoLaW5zdGFuY2VfaWQYCiAB", "KAlCA+BBAhIYCgtvZmZlcmluZ19pZBgLIAEoBUID4EECEi8KC2R1ZV9kYXRl", "X2F0GAwgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBITCgtzdmNf", "dHlwZV9pZBgNIAEoCRITCgtpc19kaXNjb3VudBgOIAEoCBqPAQoLU2F2aW5n", "RXJyb3ISXgoWaW52b2ljZV9hbHJlYWR5X2V4aXN0cxgBIAEoCzI8LmtleWFw", "aXMuaW52b2ljZS52MS5JbnZvaWNlLlNhdmluZ0Vycm9yLkludm9pY2VBbHJl", "YWR5RXhpc3RzSAAaFgoUSW52b2ljZUFscmVhZHlFeGlzdHNCCAoGcmVhc29u", "InIKEUludm9pY2VTdGF0dXNUeXBlEh8KG0lOVk9JQ0VfU1RBVFVTX1RZUEVf", "VU5LTk9XThAAEgsKB1BMQU5ORUQQARILCgdQRU5ESU5HEAISCQoFRVJST1IQ", "AxIICgRQQUlEEAQSDQoJQ0FOQ0VMTEVEEAUiWwoIQ2FyZFR5cGUSFQoRQ0FS", "RF9UWVBFX1VOS05PV04QABIICgRWSVNBEAESCQoFRUNfTUMQAhIHCgNEQ0wQ", "AxIHCgNKQ0IQBBIICgRBTUVYEAUSBwoDTUlSEAYiRAoQUGF5SW50ZXJmYWNl", "VHlwZRIeChpQQVlfSU5URVJGQUNFX1RZUEVfVU5LTk9XThAAEgcKA0dVSRAB", "EgcKA00yTRACIksKClBheXdheVR5cGUSFwoTUEFZV0FZX1RZUEVfVU5LTk9X", "ThAAEg0KCUJBTktfQ0FSRBABEgcKA1NCUBACEgwKCFNCRVJfUEFZEAMibAoN", "SW52b2ljZUZpbHRlchIPCgd1c2VyX2lkGAEgASgFEkoKE2ludm9pY2Vfc3Rh", "dHVzX3R5cGUYAiABKA4yLS5rZXlhcGlzLmludm9pY2UudjEuSW52b2ljZS5J", "bnZvaWNlU3RhdHVzVHlwZSLMAgoNSW52b2ljZVBhZ2luZxJECg1vcmRlcl9i", "eV90eXBlGAEgASgOMi0ua2V5YXBpcy5pbnZvaWNlLnYxLkludm9pY2VQYWdp", "bmcuT3JkZXJCeVR5cGUSRwoOZGlyZWN0aW9uX3R5cGUYAiABKA4yLy5rZXlh", "cGlzLmludm9pY2UudjEuSW52b2ljZVBhZ2luZy5EaXJlY3Rpb25UeXBlEg0K", "BWxpbWl0GAMgASgFEg4KBm9mZnNldBgEIAEoBSJNCgtPcmRlckJ5VHlwZRIZ", "ChVPUkRFUl9CWV9UWVBFX1VOS05PV04QABIGCgJJRBABEgsKB1BBSURfQVQQ", "AhIOCgpDUkVBVEVEX0FUEAMiPgoNRGlyZWN0aW9uVHlwZRIaChZESVJFQ1RJ", "T05fVFlQRV9VTktOT1dOEAASCAoEREVTQxABEgcKA0FTQxACIr4CChRDcmVh", "dGVJbnZvaWNlUmVxdWVzdBIUCgd1c2VyX2lkGAEgASgFQgPgQQISPAoJcG9z", "aXRpb25zGAIgAygLMiQua2V5YXBpcy5pbnZvaWNlLnYxLkludm9pY2UuUG9z", "aXRpb25CA+BBAhJNChJwYXlfaW50ZXJmYWNlX3R5cGUYAyABKA4yLC5rZXlh", "cGlzLmludm9pY2UudjEuSW52b2ljZS5QYXlJbnRlcmZhY2VUeXBlQgPgQQIS", "OwoLcGF5d2F5X3R5cGUYBCABKA4yJi5rZXlhcGlzLmludm9pY2UudjEuSW52", "b2ljZS5QYXl3YXlUeXBlEhIKCnJldHVybl91cmwYBSABKAkSFAoMcGhvbmVf", "bnVtYmVyGAYgASgJEg0KBWVtYWlsGAcgASgJEg0KBXRpdGxlGAggASgJItQD", "ChVDcmVhdGVJbnZvaWNlUmVzcG9uc2USQAoFZXJyb3IYASABKAsyLy5rZXlh", "cGlzLmludm9pY2UudjEuQ3JlYXRlSW52b2ljZVJlc3BvbnNlLkVycm9ySAAS", "KwoEZGF0YRgCIAEoCzIbLmtleWFwaXMuaW52b2ljZS52MS5JbnZvaWNlSAAa", "wwIKBUVycm9yEjkKCnZhbGlkYXRpb24YASABKAsyIy5rZXlhcGlzLmludm9p", "Y2UudjEuVmFsaWRhdGlvbkVycm9ySAASZAoVbWlzc2luZ191c2VyX2NvbnRh", "Y3RzGAIgASgLMkMua2V5YXBpcy5pbnZvaWNlLnYxLkNyZWF0ZUludm9pY2VS", "ZXNwb25zZS5FcnJvci5NaXNzaW5nVXNlckNvbnRhY3RzSAASPQoIZXh0ZXJu", "YWwYAyABKAsyKS5rZXlhcGlzLmludm9pY2UudjEuSW52b2ljZS5FeHRlcm5h", "bEVycm9ySAASOQoGc2F2aW5nGAQgASgLMicua2V5YXBpcy5pbnZvaWNlLnYx", "Lkludm9pY2UuU2F2aW5nRXJyb3JIABoVChNNaXNzaW5nVXNlckNvbnRhY3Rz", "QggKBnJlYXNvbkIGCgR0eXBlIiwKEUdldEludm9pY2VSZXF1ZXN0EhcKCmlu", "dm9pY2VfaWQYASABKAlCA+BBAiLWAQoSR2V0SW52b2ljZVJlc3BvbnNlEj0K", "BWVycm9yGAEgASgLMiwua2V5YXBpcy5pbnZvaWNlLnYxLkdldEludm9pY2VS", "ZXNwb25zZS5FcnJvckgAEisKBGRhdGEYAiABKAsyGy5rZXlhcGlzLmludm9p", "Y2UudjEuSW52b2ljZUgAGkwKBUVycm9yEjkKCnZhbGlkYXRpb24YASABKAsy", "Iy5rZXlhcGlzLmludm9pY2UudjEuVmFsaWRhdGlvbkVycm9ySABCCAoGcmVh", "c29uQgYKBHR5cGUiugQKGVBvc3RJbnZvaWNlQ29uZmlybVJlcXVlc3QSFwoK", "c3JjX3BheV9pZBgBIAEoCUID4EECEhgKC2VzcHBfcGF5X2lkGAIgASgJQgPg", "QQISFwoKcGF5X3N0YXR1cxgDIAEoBUID4EECEhUKCHJlcV90eXBlGAQgASgJ", "QgPgQQISDgoGYW1vdW50GAUgASgCEhAKCGN1cnJlbmN5GAYgASgJEhIKCnBh", "eV9tZXRob2QYByABKAkSPgoOY3JlYXRlX3RpbWVfYXQYCCABKAsyGi5nb29n", "bGUucHJvdG9idWYuVGltZXN0YW1wUgpjcmVhdGVUaW1lEhAKCHJlcV9ub3Rl", "GAkgASgJEhQKDHJlcV91c2VyX21zZxgKIAEoCRI4CgtwYXlfdGltZV9hdBgL", "IAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSB3BheVRpbWUSQAoP", "YWJhbmRvbl90aW1lX2F0GAwgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVz", "dGFtcFILYWJhbmRvblRpbWUSQAoEY2FyZBgNIAEoCzIyLmtleWFwaXMuaW52", "b2ljZS52MS5Qb3N0SW52b2ljZUNvbmZpcm1SZXF1ZXN0LkNhcmQaXgoEQ2Fy", "ZBIUCgxlc3BwX2NhcmRfaWQYASABKAUSEAoIY2FyZF9udW0YAiABKAkSGwoJ", "Y2FyZF9raW5kGAMgASgJUghjYXJkVHlwZRIRCgliYW5rX25hbWUYBCABKAki", "HAoaUG9zdEludm9pY2VDb25maXJtUmVzcG9uc2UijQEKFUdldEludm9pY2VM", "aXN0UmVxdWVzdBIxCgZmaWx0ZXIYASABKAsyIS5rZXlhcGlzLmludm9pY2Uu", "djEuSW52b2ljZUZpbHRlchIzCgZwYWdpbmcYAiABKAsyIS5rZXlhcGlzLmlu", "dm9pY2UudjEuSW52b2ljZVBhZ2luZ0gAQgwKCnBhZ2luYXRpb24i0gEKFkdl", "dEludm9pY2VMaXN0UmVzcG9uc2USKQoEZGF0YRgBIAMoCzIbLmtleWFwaXMu", "aW52b2ljZS52MS5JbnZvaWNlEj8KBWVycm9yGAIgASgLMjAua2V5YXBpcy5p", "bnZvaWNlLnYxLkdldEludm9pY2VMaXN0UmVzcG9uc2UuRXJyb3IaTAoFRXJy", "b3ISOQoKdmFsaWRhdGlvbhgBIAEoCzIjLmtleWFwaXMuaW52b2ljZS52MS5W", "YWxpZGF0aW9uRXJyb3JIAEIICgZyZWFzb24iUAoWR2V0SW52b2ljZUNvdW50", "UmVxdWVzdBI2CgZmaWx0ZXIYASABKAsyIS5rZXlhcGlzLmludm9pY2UudjEu", "SW52b2ljZUZpbHRlckID4EECIjEKF0dldEludm9pY2VDb3VudFJlc3BvbnNl", "Eg4KBGRhdGEYASABKAVIAEIGCgR0eXBlMvYFCg5JbnZvaWNlU2VydmljZRKI", "AQoNQ3JlYXRlSW52b2ljZRIoLmtleWFwaXMuaW52b2ljZS52MS5DcmVhdGVJ", "bnZvaWNlUmVxdWVzdBopLmtleWFwaXMuaW52b2ljZS52MS5DcmVhdGVJbnZv", "aWNlUmVzcG9uc2UiIoLT5JMCHCIXL2ludm9pY2UvYXBpL3YxL2ludm9pY2U6", "ASoSiQEKCkdldEludm9pY2USJS5rZXlhcGlzLmludm9pY2UudjEuR2V0SW52", "b2ljZVJlcXVlc3QaJi5rZXlhcGlzLmludm9pY2UudjEuR2V0SW52b2ljZVJl", "c3BvbnNlIiyC0+STAiYSJC9pbnZvaWNlL2FwaS92MS9pbnZvaWNlL3tpbnZv", "aWNlX2lkfRKoAQoSUG9zdEludm9pY2VDb25maXJtEi0ua2V5YXBpcy5pbnZv", "aWNlLnYxLlBvc3RJbnZvaWNlQ29uZmlybVJlcXVlc3QaLi5rZXlhcGlzLmlu", "dm9pY2UudjEuUG9zdEludm9pY2VDb25maXJtUmVzcG9uc2UiM4LT5JMCLSIo", "L2ludm9pY2UvaW50ZXJuYWwvYXBpL3YxL2ludm9pY2UvY29uZmlybToBKhKN", "AQoOR2V0SW52b2ljZUxpc3QSKS5rZXlhcGlzLmludm9pY2UudjEuR2V0SW52", "b2ljZUxpc3RSZXF1ZXN0Gioua2V5YXBpcy5pbnZvaWNlLnYxLkdldEludm9p", "Y2VMaXN0UmVzcG9uc2UiJILT5JMCHhIcL2ludm9pY2UvYXBpL3YxL2ludm9p", "Y2UvbGlzdBKRAQoPR2V0SW52b2ljZUNvdW50Eioua2V5YXBpcy5pbnZvaWNl", "LnYxLkdldEludm9pY2VDb3VudFJlcXVlc3QaKy5rZXlhcGlzLmludm9pY2Uu", "djEuR2V0SW52b2ljZUNvdW50UmVzcG9uc2UiJYLT5JMCHxIdL2ludm9pY2Uv", "YXBpL3YxL2ludm9pY2UvY291bnRCoQEKFXJ1LmtleWFwaXMuaW52b2ljZS52", "MUIVS2V5YXBpc0ludm9pY2VWMVByb3RvSANQAFoTL2tleWFwaXNfaW52b2lj", "ZV92MdgBAfgBAaICEEtFWUFQSVNJTlZPSUNFVjGqAhJLZXlhcGlzLkludm9p", "Y2UuVjHKAhJLZXlhcGlzXEludm9pY2VcVjHqAhRLZXlhcGlzOjpJbnZvaWNl", "OjpWMWIGcHJvdG8z")); 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::Keyapis.Invoice.V1.KeyapisInvoicePaymethodV1Reflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.Invoice), global::Keyapis.Invoice.V1.Invoice.Parser, new[]{ "Id", "Title", "UserId", "InvoiceStatusType", "CreatedAt", "UpdatedAt", "Positions", "PayInterfaceType", "PaywayType", "StatusChangedAt", "PaidAt", "PayUrl", "PaidByCardMasked", "PaidByCardEsppId", "CardType", "EsppReqStatus", "EsppReqUserMsg", "EsppInvoiceId", "PhoneNumber", "Email" }, null, new[]{ typeof(global::Keyapis.Invoice.V1.Invoice.Types.InvoiceStatusType), typeof(global::Keyapis.Invoice.V1.Invoice.Types.CardType), typeof(global::Keyapis.Invoice.V1.Invoice.Types.PayInterfaceType), typeof(global::Keyapis.Invoice.V1.Invoice.Types.PaywayType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.Invoice.Types.ExternalError), global::Keyapis.Invoice.V1.Invoice.Types.ExternalError.Parser, new[]{ "ExternalSystemError" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.Invoice.Types.ExternalError.Types.ExternalSystemError), global::Keyapis.Invoice.V1.Invoice.Types.ExternalError.Types.ExternalSystemError.Parser, null, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.Invoice.Types.Position), global::Keyapis.Invoice.V1.Invoice.Types.Position.Parser, new[]{ "Id", "InvoiceId", "Title", "Category", "Amount", "CreatedAt", "UpdatedAt", "MrfId", "RfId", "InstanceId", "OfferingId", "DueDateAt", "SvcTypeId", "IsDiscount" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.Invoice.Types.SavingError), global::Keyapis.Invoice.V1.Invoice.Types.SavingError.Parser, new[]{ "InvoiceAlreadyExists" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.Invoice.Types.SavingError.Types.InvoiceAlreadyExists), global::Keyapis.Invoice.V1.Invoice.Types.SavingError.Types.InvoiceAlreadyExists.Parser, null, null, null, null, null)})}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.InvoiceFilter), global::Keyapis.Invoice.V1.InvoiceFilter.Parser, new[]{ "UserId", "InvoiceStatusType" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.InvoicePaging), global::Keyapis.Invoice.V1.InvoicePaging.Parser, new[]{ "OrderByType", "DirectionType", "Limit", "Offset" }, null, new[]{ typeof(global::Keyapis.Invoice.V1.InvoicePaging.Types.OrderByType), typeof(global::Keyapis.Invoice.V1.InvoicePaging.Types.DirectionType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.CreateInvoiceRequest), global::Keyapis.Invoice.V1.CreateInvoiceRequest.Parser, new[]{ "UserId", "Positions", "PayInterfaceType", "PaywayType", "ReturnUrl", "PhoneNumber", "Email", "Title" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.CreateInvoiceResponse), global::Keyapis.Invoice.V1.CreateInvoiceResponse.Parser, new[]{ "Error", "Data" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.CreateInvoiceResponse.Types.Error), global::Keyapis.Invoice.V1.CreateInvoiceResponse.Types.Error.Parser, new[]{ "Validation", "MissingUserContacts", "External", "Saving" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.CreateInvoiceResponse.Types.Error.Types.MissingUserContacts), global::Keyapis.Invoice.V1.CreateInvoiceResponse.Types.Error.Types.MissingUserContacts.Parser, null, null, null, null, null)})}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.GetInvoiceRequest), global::Keyapis.Invoice.V1.GetInvoiceRequest.Parser, new[]{ "InvoiceId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.GetInvoiceResponse), global::Keyapis.Invoice.V1.GetInvoiceResponse.Parser, new[]{ "Error", "Data" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.GetInvoiceResponse.Types.Error), global::Keyapis.Invoice.V1.GetInvoiceResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.PostInvoiceConfirmRequest), global::Keyapis.Invoice.V1.PostInvoiceConfirmRequest.Parser, new[]{ "SrcPayId", "EsppPayId", "PayStatus", "ReqType", "Amount", "Currency", "PayMethod", "CreateTimeAt", "ReqNote", "ReqUserMsg", "PayTimeAt", "AbandonTimeAt", "Card" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.PostInvoiceConfirmRequest.Types.Card), global::Keyapis.Invoice.V1.PostInvoiceConfirmRequest.Types.Card.Parser, new[]{ "EsppCardId", "CardNum", "CardKind", "BankName" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.PostInvoiceConfirmResponse), global::Keyapis.Invoice.V1.PostInvoiceConfirmResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.GetInvoiceListRequest), global::Keyapis.Invoice.V1.GetInvoiceListRequest.Parser, new[]{ "Filter", "Paging" }, new[]{ "Pagination" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.GetInvoiceListResponse), global::Keyapis.Invoice.V1.GetInvoiceListResponse.Parser, new[]{ "Data", "Error" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.GetInvoiceListResponse.Types.Error), global::Keyapis.Invoice.V1.GetInvoiceListResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.GetInvoiceCountRequest), global::Keyapis.Invoice.V1.GetInvoiceCountRequest.Parser, new[]{ "Filter" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Invoice.V1.GetInvoiceCountResponse), global::Keyapis.Invoice.V1.GetInvoiceCountResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null) })); } #endregion } #region Messages /// /// Выставленный счёт /// public sealed partial class Invoice : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Invoice()); 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.KeyapisInvoiceInvoiceV1Reflection.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 Invoice() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Invoice(Invoice other) : this() { id_ = other.id_; title_ = other.title_; userId_ = other.userId_; invoiceStatusType_ = other.invoiceStatusType_; createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; positions_ = other.positions_.Clone(); payInterfaceType_ = other.payInterfaceType_; paywayType_ = other.paywayType_; statusChangedAt_ = other.statusChangedAt_ != null ? other.statusChangedAt_.Clone() : null; paidAt_ = other.paidAt_ != null ? other.paidAt_.Clone() : null; payUrl_ = other.payUrl_; paidByCardMasked_ = other.paidByCardMasked_; paidByCardEsppId_ = other.paidByCardEsppId_; cardType_ = other.cardType_; esppReqStatus_ = other.esppReqStatus_; esppReqUserMsg_ = other.esppReqUserMsg_; esppInvoiceId_ = other.esppInvoiceId_; phoneNumber_ = other.phoneNumber_; email_ = other.email_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Invoice Clone() { return new Invoice(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private string id_ = ""; /// /// Идентификатор платежа. /// # Тип: Guid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Id { get { return id_; } set { id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "title" field. public const int TitleFieldNumber = 2; private string title_ = ""; /// /// Описание платежа /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Title { get { return title_; } set { title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "user_id" field. public const int UserIdFieldNumber = 3; 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 "invoice_status_type" field. public const int InvoiceStatusTypeFieldNumber = 4; private global::Keyapis.Invoice.V1.Invoice.Types.InvoiceStatusType invoiceStatusType_ = global::Keyapis.Invoice.V1.Invoice.Types.InvoiceStatusType.Unknown; /// /// Статус платежа /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.Invoice.Types.InvoiceStatusType InvoiceStatusType { get { return invoiceStatusType_; } set { invoiceStatusType_ = value; } } /// Field number for the "created_at" field. public const int CreatedAtFieldNumber = 5; private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; /// /// Дата создания платежа. /// # Тип: DateTime /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { get { return createdAt_; } set { createdAt_ = value; } } /// Field number for the "updated_at" field. public const int UpdatedAtFieldNumber = 6; private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; /// /// Дата обновления платежа. /// # Тип: DateTime /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { get { return updatedAt_; } set { updatedAt_ = value; } } /// Field number for the "positions" field. public const int PositionsFieldNumber = 7; private static readonly pb::FieldCodec _repeated_positions_codec = pb::FieldCodec.ForMessage(58, global::Keyapis.Invoice.V1.Invoice.Types.Position.Parser); private readonly pbc::RepeatedField positions_ = new pbc::RepeatedField(); /// /// Позиция счета /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Positions { get { return positions_; } } /// Field number for the "pay_interface_type" field. public const int PayInterfaceTypeFieldNumber = 8; private global::Keyapis.Invoice.V1.Invoice.Types.PayInterfaceType payInterfaceType_ = global::Keyapis.Invoice.V1.Invoice.Types.PayInterfaceType.Unknown; /// /// Метод платежа /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.Invoice.Types.PayInterfaceType PayInterfaceType { get { return payInterfaceType_; } set { payInterfaceType_ = value; } } /// Field number for the "payway_type" field. public const int PaywayTypeFieldNumber = 9; private global::Keyapis.Invoice.V1.Invoice.Types.PaywayType paywayType_ = global::Keyapis.Invoice.V1.Invoice.Types.PaywayType.Unknown; /// /// Способ оплаты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.Invoice.Types.PaywayType PaywayType { get { return paywayType_; } set { paywayType_ = value; } } /// Field number for the "status_changed_at" field. public const int StatusChangedAtFieldNumber = 10; private global::Google.Protobuf.WellKnownTypes.Timestamp statusChangedAt_; /// /// Дата изменения статуса платежа. /// # Тип: DateTime /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp StatusChangedAt { get { return statusChangedAt_; } set { statusChangedAt_ = value; } } /// Field number for the "paid_at" field. public const int PaidAtFieldNumber = 11; private global::Google.Protobuf.WellKnownTypes.Timestamp paidAt_; /// /// Дата платежа. /// # Тип: DateTime /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp PaidAt { get { return paidAt_; } set { paidAt_ = value; } } /// Field number for the "pay_url" field. public const int PayUrlFieldNumber = 12; private string payUrl_ = ""; /// /// Платежная ссылка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PayUrl { get { return payUrl_; } set { payUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "paid_by_card_masked" field. public const int PaidByCardMaskedFieldNumber = 13; private string paidByCardMasked_ = ""; /// /// Маскированный номер карты при платеже /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PaidByCardMasked { get { return paidByCardMasked_; } set { paidByCardMasked_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "paid_by_card_espp_id" field. public const int PaidByCardEsppIdFieldNumber = 14; private string paidByCardEsppId_ = ""; /// /// Идентификатор платежного средства в внешней системы /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PaidByCardEsppId { get { return paidByCardEsppId_; } set { paidByCardEsppId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "card_type" field. public const int CardTypeFieldNumber = 15; private global::Keyapis.Invoice.V1.Invoice.Types.CardType cardType_ = global::Keyapis.Invoice.V1.Invoice.Types.CardType.Unknown; /// /// Тип банковской карты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.Invoice.Types.CardType CardType { get { return cardType_; } set { cardType_ = value; } } /// Field number for the "espp_req_status" field. public const int EsppReqStatusFieldNumber = 16; private int esppReqStatus_; /// /// Код ошибки внешней системы /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int EsppReqStatus { get { return esppReqStatus_; } set { esppReqStatus_ = value; } } /// Field number for the "espp_req_user_msg" field. public const int EsppReqUserMsgFieldNumber = 17; private string esppReqUserMsg_ = ""; /// /// Комментарий к статусу платежа из внешней системы /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string EsppReqUserMsg { get { return esppReqUserMsg_; } set { esppReqUserMsg_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "espp_invoice_id" field. public const int EsppInvoiceIdFieldNumber = 18; private string esppInvoiceId_ = ""; /// /// Уникальный номер транзакции в внешней системы /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string EsppInvoiceId { get { return esppInvoiceId_; } set { esppInvoiceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "phone_number" field. public const int PhoneNumberFieldNumber = 19; private string phoneNumber_ = ""; /// /// Номер телефона /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PhoneNumber { get { return phoneNumber_; } set { phoneNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "email" field. public const int EmailFieldNumber = 20; private string email_ = ""; /// /// Электронная почта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Email { get { return email_; } set { email_ = 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 Invoice); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Invoice other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (Title != other.Title) return false; if (UserId != other.UserId) return false; if (InvoiceStatusType != other.InvoiceStatusType) return false; if (!object.Equals(CreatedAt, other.CreatedAt)) return false; if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; if(!positions_.Equals(other.positions_)) return false; if (PayInterfaceType != other.PayInterfaceType) return false; if (PaywayType != other.PaywayType) return false; if (!object.Equals(StatusChangedAt, other.StatusChangedAt)) return false; if (!object.Equals(PaidAt, other.PaidAt)) return false; if (PayUrl != other.PayUrl) return false; if (PaidByCardMasked != other.PaidByCardMasked) return false; if (PaidByCardEsppId != other.PaidByCardEsppId) return false; if (CardType != other.CardType) return false; if (EsppReqStatus != other.EsppReqStatus) return false; if (EsppReqUserMsg != other.EsppReqUserMsg) return false; if (EsppInvoiceId != other.EsppInvoiceId) return false; if (PhoneNumber != other.PhoneNumber) return false; if (Email != other.Email) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id.Length != 0) hash ^= Id.GetHashCode(); if (Title.Length != 0) hash ^= Title.GetHashCode(); if (UserId != 0) hash ^= UserId.GetHashCode(); if (InvoiceStatusType != global::Keyapis.Invoice.V1.Invoice.Types.InvoiceStatusType.Unknown) hash ^= InvoiceStatusType.GetHashCode(); if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); hash ^= positions_.GetHashCode(); if (PayInterfaceType != global::Keyapis.Invoice.V1.Invoice.Types.PayInterfaceType.Unknown) hash ^= PayInterfaceType.GetHashCode(); if (PaywayType != global::Keyapis.Invoice.V1.Invoice.Types.PaywayType.Unknown) hash ^= PaywayType.GetHashCode(); if (statusChangedAt_ != null) hash ^= StatusChangedAt.GetHashCode(); if (paidAt_ != null) hash ^= PaidAt.GetHashCode(); if (PayUrl.Length != 0) hash ^= PayUrl.GetHashCode(); if (PaidByCardMasked.Length != 0) hash ^= PaidByCardMasked.GetHashCode(); if (PaidByCardEsppId.Length != 0) hash ^= PaidByCardEsppId.GetHashCode(); if (CardType != global::Keyapis.Invoice.V1.Invoice.Types.CardType.Unknown) hash ^= CardType.GetHashCode(); if (EsppReqStatus != 0) hash ^= EsppReqStatus.GetHashCode(); if (EsppReqUserMsg.Length != 0) hash ^= EsppReqUserMsg.GetHashCode(); if (EsppInvoiceId.Length != 0) hash ^= EsppInvoiceId.GetHashCode(); if (PhoneNumber.Length != 0) hash ^= PhoneNumber.GetHashCode(); if (Email.Length != 0) hash ^= Email.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); } if (Title.Length != 0) { output.WriteRawTag(18); output.WriteString(Title); } if (UserId != 0) { output.WriteRawTag(24); output.WriteInt32(UserId); } if (InvoiceStatusType != global::Keyapis.Invoice.V1.Invoice.Types.InvoiceStatusType.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) InvoiceStatusType); } if (createdAt_ != null) { output.WriteRawTag(42); output.WriteMessage(CreatedAt); } if (updatedAt_ != null) { output.WriteRawTag(50); output.WriteMessage(UpdatedAt); } positions_.WriteTo(output, _repeated_positions_codec); if (PayInterfaceType != global::Keyapis.Invoice.V1.Invoice.Types.PayInterfaceType.Unknown) { output.WriteRawTag(64); output.WriteEnum((int) PayInterfaceType); } if (PaywayType != global::Keyapis.Invoice.V1.Invoice.Types.PaywayType.Unknown) { output.WriteRawTag(72); output.WriteEnum((int) PaywayType); } if (statusChangedAt_ != null) { output.WriteRawTag(82); output.WriteMessage(StatusChangedAt); } if (paidAt_ != null) { output.WriteRawTag(90); output.WriteMessage(PaidAt); } if (PayUrl.Length != 0) { output.WriteRawTag(98); output.WriteString(PayUrl); } if (PaidByCardMasked.Length != 0) { output.WriteRawTag(106); output.WriteString(PaidByCardMasked); } if (PaidByCardEsppId.Length != 0) { output.WriteRawTag(114); output.WriteString(PaidByCardEsppId); } if (CardType != global::Keyapis.Invoice.V1.Invoice.Types.CardType.Unknown) { output.WriteRawTag(120); output.WriteEnum((int) CardType); } if (EsppReqStatus != 0) { output.WriteRawTag(128, 1); output.WriteInt32(EsppReqStatus); } if (EsppReqUserMsg.Length != 0) { output.WriteRawTag(138, 1); output.WriteString(EsppReqUserMsg); } if (EsppInvoiceId.Length != 0) { output.WriteRawTag(146, 1); output.WriteString(EsppInvoiceId); } if (PhoneNumber.Length != 0) { output.WriteRawTag(154, 1); output.WriteString(PhoneNumber); } if (Email.Length != 0) { output.WriteRawTag(162, 1); output.WriteString(Email); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); } if (Title.Length != 0) { output.WriteRawTag(18); output.WriteString(Title); } if (UserId != 0) { output.WriteRawTag(24); output.WriteInt32(UserId); } if (InvoiceStatusType != global::Keyapis.Invoice.V1.Invoice.Types.InvoiceStatusType.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) InvoiceStatusType); } if (createdAt_ != null) { output.WriteRawTag(42); output.WriteMessage(CreatedAt); } if (updatedAt_ != null) { output.WriteRawTag(50); output.WriteMessage(UpdatedAt); } positions_.WriteTo(ref output, _repeated_positions_codec); if (PayInterfaceType != global::Keyapis.Invoice.V1.Invoice.Types.PayInterfaceType.Unknown) { output.WriteRawTag(64); output.WriteEnum((int) PayInterfaceType); } if (PaywayType != global::Keyapis.Invoice.V1.Invoice.Types.PaywayType.Unknown) { output.WriteRawTag(72); output.WriteEnum((int) PaywayType); } if (statusChangedAt_ != null) { output.WriteRawTag(82); output.WriteMessage(StatusChangedAt); } if (paidAt_ != null) { output.WriteRawTag(90); output.WriteMessage(PaidAt); } if (PayUrl.Length != 0) { output.WriteRawTag(98); output.WriteString(PayUrl); } if (PaidByCardMasked.Length != 0) { output.WriteRawTag(106); output.WriteString(PaidByCardMasked); } if (PaidByCardEsppId.Length != 0) { output.WriteRawTag(114); output.WriteString(PaidByCardEsppId); } if (CardType != global::Keyapis.Invoice.V1.Invoice.Types.CardType.Unknown) { output.WriteRawTag(120); output.WriteEnum((int) CardType); } if (EsppReqStatus != 0) { output.WriteRawTag(128, 1); output.WriteInt32(EsppReqStatus); } if (EsppReqUserMsg.Length != 0) { output.WriteRawTag(138, 1); output.WriteString(EsppReqUserMsg); } if (EsppInvoiceId.Length != 0) { output.WriteRawTag(146, 1); output.WriteString(EsppInvoiceId); } if (PhoneNumber.Length != 0) { output.WriteRawTag(154, 1); output.WriteString(PhoneNumber); } if (Email.Length != 0) { output.WriteRawTag(162, 1); output.WriteString(Email); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } if (Title.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); } if (UserId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(UserId); } if (InvoiceStatusType != global::Keyapis.Invoice.V1.Invoice.Types.InvoiceStatusType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) InvoiceStatusType); } if (createdAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); } if (updatedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); } size += positions_.CalculateSize(_repeated_positions_codec); if (PayInterfaceType != global::Keyapis.Invoice.V1.Invoice.Types.PayInterfaceType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PayInterfaceType); } if (PaywayType != global::Keyapis.Invoice.V1.Invoice.Types.PaywayType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PaywayType); } if (statusChangedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(StatusChangedAt); } if (paidAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PaidAt); } if (PayUrl.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(PayUrl); } if (PaidByCardMasked.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(PaidByCardMasked); } if (PaidByCardEsppId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(PaidByCardEsppId); } if (CardType != global::Keyapis.Invoice.V1.Invoice.Types.CardType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CardType); } if (EsppReqStatus != 0) { size += 2 + pb::CodedOutputStream.ComputeInt32Size(EsppReqStatus); } if (EsppReqUserMsg.Length != 0) { size += 2 + pb::CodedOutputStream.ComputeStringSize(EsppReqUserMsg); } if (EsppInvoiceId.Length != 0) { size += 2 + pb::CodedOutputStream.ComputeStringSize(EsppInvoiceId); } if (PhoneNumber.Length != 0) { size += 2 + pb::CodedOutputStream.ComputeStringSize(PhoneNumber); } if (Email.Length != 0) { size += 2 + pb::CodedOutputStream.ComputeStringSize(Email); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Invoice other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } if (other.Title.Length != 0) { Title = other.Title; } if (other.UserId != 0) { UserId = other.UserId; } if (other.InvoiceStatusType != global::Keyapis.Invoice.V1.Invoice.Types.InvoiceStatusType.Unknown) { InvoiceStatusType = other.InvoiceStatusType; } if (other.createdAt_ != null) { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreatedAt.MergeFrom(other.CreatedAt); } if (other.updatedAt_ != null) { if (updatedAt_ == null) { UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } UpdatedAt.MergeFrom(other.UpdatedAt); } positions_.Add(other.positions_); if (other.PayInterfaceType != global::Keyapis.Invoice.V1.Invoice.Types.PayInterfaceType.Unknown) { PayInterfaceType = other.PayInterfaceType; } if (other.PaywayType != global::Keyapis.Invoice.V1.Invoice.Types.PaywayType.Unknown) { PaywayType = other.PaywayType; } if (other.statusChangedAt_ != null) { if (statusChangedAt_ == null) { StatusChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } StatusChangedAt.MergeFrom(other.StatusChangedAt); } if (other.paidAt_ != null) { if (paidAt_ == null) { PaidAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } PaidAt.MergeFrom(other.PaidAt); } if (other.PayUrl.Length != 0) { PayUrl = other.PayUrl; } if (other.PaidByCardMasked.Length != 0) { PaidByCardMasked = other.PaidByCardMasked; } if (other.PaidByCardEsppId.Length != 0) { PaidByCardEsppId = other.PaidByCardEsppId; } if (other.CardType != global::Keyapis.Invoice.V1.Invoice.Types.CardType.Unknown) { CardType = other.CardType; } if (other.EsppReqStatus != 0) { EsppReqStatus = other.EsppReqStatus; } if (other.EsppReqUserMsg.Length != 0) { EsppReqUserMsg = other.EsppReqUserMsg; } if (other.EsppInvoiceId.Length != 0) { EsppInvoiceId = other.EsppInvoiceId; } if (other.PhoneNumber.Length != 0) { PhoneNumber = other.PhoneNumber; } if (other.Email.Length != 0) { Email = other.Email; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Id = input.ReadString(); break; } case 18: { Title = input.ReadString(); break; } case 24: { UserId = input.ReadInt32(); break; } case 32: { InvoiceStatusType = (global::Keyapis.Invoice.V1.Invoice.Types.InvoiceStatusType) input.ReadEnum(); break; } case 42: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 50: { if (updatedAt_ == null) { UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(UpdatedAt); break; } case 58: { positions_.AddEntriesFrom(input, _repeated_positions_codec); break; } case 64: { PayInterfaceType = (global::Keyapis.Invoice.V1.Invoice.Types.PayInterfaceType) input.ReadEnum(); break; } case 72: { PaywayType = (global::Keyapis.Invoice.V1.Invoice.Types.PaywayType) input.ReadEnum(); break; } case 82: { if (statusChangedAt_ == null) { StatusChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(StatusChangedAt); break; } case 90: { if (paidAt_ == null) { PaidAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(PaidAt); break; } case 98: { PayUrl = input.ReadString(); break; } case 106: { PaidByCardMasked = input.ReadString(); break; } case 114: { PaidByCardEsppId = input.ReadString(); break; } case 120: { CardType = (global::Keyapis.Invoice.V1.Invoice.Types.CardType) input.ReadEnum(); break; } case 128: { EsppReqStatus = input.ReadInt32(); break; } case 138: { EsppReqUserMsg = input.ReadString(); break; } case 146: { EsppInvoiceId = input.ReadString(); break; } case 154: { PhoneNumber = input.ReadString(); break; } case 162: { Email = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Id = input.ReadString(); break; } case 18: { Title = input.ReadString(); break; } case 24: { UserId = input.ReadInt32(); break; } case 32: { InvoiceStatusType = (global::Keyapis.Invoice.V1.Invoice.Types.InvoiceStatusType) input.ReadEnum(); break; } case 42: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 50: { if (updatedAt_ == null) { UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(UpdatedAt); break; } case 58: { positions_.AddEntriesFrom(ref input, _repeated_positions_codec); break; } case 64: { PayInterfaceType = (global::Keyapis.Invoice.V1.Invoice.Types.PayInterfaceType) input.ReadEnum(); break; } case 72: { PaywayType = (global::Keyapis.Invoice.V1.Invoice.Types.PaywayType) input.ReadEnum(); break; } case 82: { if (statusChangedAt_ == null) { StatusChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(StatusChangedAt); break; } case 90: { if (paidAt_ == null) { PaidAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(PaidAt); break; } case 98: { PayUrl = input.ReadString(); break; } case 106: { PaidByCardMasked = input.ReadString(); break; } case 114: { PaidByCardEsppId = input.ReadString(); break; } case 120: { CardType = (global::Keyapis.Invoice.V1.Invoice.Types.CardType) input.ReadEnum(); break; } case 128: { EsppReqStatus = input.ReadInt32(); break; } case 138: { EsppReqUserMsg = input.ReadString(); break; } case 146: { EsppInvoiceId = input.ReadString(); break; } case 154: { PhoneNumber = input.ReadString(); break; } case 162: { Email = input.ReadString(); break; } } } } #endif #region Nested types /// Container for nested types declared in the Invoice message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочник типов статусов оплаты счёта /// public enum InvoiceStatusType { /// /// Значение не указано /// [pbr::OriginalName("INVOICE_STATUS_TYPE_UNKNOWN")] Unknown = 0, /// /// Создан, ожидает подтверждения /// [pbr::OriginalName("PLANNED")] Planned = 1, /// /// Ожидает оплаты /// [pbr::OriginalName("PENDING")] Pending = 2, /// /// Ошибка оплаты /// [pbr::OriginalName("ERROR")] Error = 3, /// /// Оплачен /// [pbr::OriginalName("PAID")] Paid = 4, /// /// Отменен /// [pbr::OriginalName("CANCELLED")] Cancelled = 5, } /// /// Справочник банковских карт /// 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 PayInterfaceType { /// /// Значение не указано /// [pbr::OriginalName("PAY_INTERFACE_TYPE_UNKNOWN")] Unknown = 0, /// /// Оплата через интерфейс предпроцессинга /// [pbr::OriginalName("GUI")] Gui = 1, /// /// Оплата с использованием ранее созданного способа платежа, настроенного по умолчанию /// [pbr::OriginalName("M2M")] M2M = 2, } /// /// Справочник типов платежных средств /// public enum PaywayType { /// /// Значение не указано /// [pbr::OriginalName("PAYWAY_TYPE_UNKNOWN")] Unknown = 0, /// /// Банковская карта /// [pbr::OriginalName("BANK_CARD")] BankCard = 1, /// /// Сервис быстрых платежей /// [pbr::OriginalName("SBP")] Sbp = 2, /// /// Связка Сбербанка /// [pbr::OriginalName("SBER_PAY")] SberPay = 3, } /// /// Ошибки внешней системы /// public sealed partial class ExternalError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExternalError()); 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.Invoice.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 ExternalError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ExternalError(ExternalError other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.ExternalSystemError: ExternalSystemError = other.ExternalSystemError.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ExternalError Clone() { return new ExternalError(this); } /// Field number for the "external_system_error" field. public const int ExternalSystemErrorFieldNumber = 1; /// /// Запрос к внешней системе вернул ошибку или прекращен по таймауту /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.Invoice.Types.ExternalError.Types.ExternalSystemError ExternalSystemError { get { return reasonCase_ == ReasonOneofCase.ExternalSystemError ? (global::Keyapis.Invoice.V1.Invoice.Types.ExternalError.Types.ExternalSystemError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.ExternalSystemError; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, ExternalSystemError = 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 ExternalError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ExternalError other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(ExternalSystemError, other.ExternalSystemError)) 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.ExternalSystemError) hash ^= ExternalSystemError.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.ExternalSystemError) { output.WriteRawTag(10); output.WriteMessage(ExternalSystemError); } 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.ExternalSystemError) { output.WriteRawTag(10); output.WriteMessage(ExternalSystemError); } 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.ExternalSystemError) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExternalSystemError); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ExternalError other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.ExternalSystemError: if (ExternalSystemError == null) { ExternalSystemError = new global::Keyapis.Invoice.V1.Invoice.Types.ExternalError.Types.ExternalSystemError(); } ExternalSystemError.MergeFrom(other.ExternalSystemError); 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.Invoice.Types.ExternalError.Types.ExternalSystemError subBuilder = new global::Keyapis.Invoice.V1.Invoice.Types.ExternalError.Types.ExternalSystemError(); if (reasonCase_ == ReasonOneofCase.ExternalSystemError) { subBuilder.MergeFrom(ExternalSystemError); } input.ReadMessage(subBuilder); ExternalSystemError = 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.Invoice.Types.ExternalError.Types.ExternalSystemError subBuilder = new global::Keyapis.Invoice.V1.Invoice.Types.ExternalError.Types.ExternalSystemError(); if (reasonCase_ == ReasonOneofCase.ExternalSystemError) { subBuilder.MergeFrom(ExternalSystemError); } input.ReadMessage(subBuilder); ExternalSystemError = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the ExternalError message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Запрос к внешней системе вернул ошибку или прекращен по таймауту /// public sealed partial class ExternalSystemError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExternalSystemError()); 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.Invoice.Types.ExternalError.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 ExternalSystemError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ExternalSystemError(ExternalSystemError other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ExternalSystemError Clone() { return new ExternalSystemError(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ExternalSystemError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ExternalSystemError 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(ExternalSystemError other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } } #endregion } /// /// Позиция счета /// public sealed partial class Position : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Position()); 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.Invoice.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 Position() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Position(Position other) : this() { id_ = other.id_; invoiceId_ = other.invoiceId_; title_ = other.title_; category_ = other.category_; amount_ = other.amount_; createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; updatedAt_ = other.updatedAt_ != null ? other.updatedAt_.Clone() : null; mrfId_ = other.mrfId_; rfId_ = other.rfId_; instanceId_ = other.instanceId_; offeringId_ = other.offeringId_; dueDateAt_ = other.dueDateAt_ != null ? other.dueDateAt_.Clone() : null; svcTypeId_ = other.svcTypeId_; isDiscount_ = other.isDiscount_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Position Clone() { return new Position(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private string id_ = ""; /// /// Идентификатор позиции. /// # Тип: Guid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Id { get { return id_; } set { id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "invoice_id" field. public const int InvoiceIdFieldNumber = 2; private string invoiceId_ = ""; /// /// Идентификатор платежа. /// # Тип: Guid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string InvoiceId { get { return invoiceId_; } set { invoiceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "title" field. public const int TitleFieldNumber = 3; private string title_ = ""; /// /// Название позиции /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Title { get { return title_; } set { title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "category" field. public const int CategoryFieldNumber = 4; private string category_ = ""; /// /// Категория позиции (='subscription') /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Category { get { return category_; } set { category_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "amount" field. public const int AmountFieldNumber = 5; private float amount_; /// /// Цена в рублях. /// Число должно быть больше 0 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Amount { get { return amount_; } set { amount_ = value; } } /// Field number for the "created_at" field. public const int CreatedAtFieldNumber = 6; private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; /// /// Дата создания позиции платежа. /// # Тип: DateTime /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { get { return createdAt_; } set { createdAt_ = value; } } /// Field number for the "updated_at" field. public const int UpdatedAtFieldNumber = 7; private global::Google.Protobuf.WellKnownTypes.Timestamp updatedAt_; /// /// Дата обновления позиции платежа. /// # Тип: DateTime /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp UpdatedAt { get { return updatedAt_; } set { updatedAt_ = value; } } /// Field number for the "mrf_id" field. public const int MrfIdFieldNumber = 8; private int mrfId_; /// /// Идентификатор МРФ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int MrfId { get { return mrfId_; } set { mrfId_ = value; } } /// Field number for the "rf_id" field. public const int RfIdFieldNumber = 9; private int rfId_; /// /// Идентификатор РФ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int RfId { get { return rfId_; } set { rfId_ = value; } } /// Field number for the "instance_id" field. public const int InstanceIdFieldNumber = 10; private string instanceId_ = ""; /// /// Идентификатор экземпляра оплачиваемой подписки. /// # Тип: Guid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string InstanceId { get { return instanceId_; } set { instanceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "offering_id" field. public const int OfferingIdFieldNumber = 11; private int offeringId_; /// /// Идентификатор предложения оплачиваемой подписки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int OfferingId { get { return offeringId_; } set { offeringId_ = value; } } /// Field number for the "due_date_at" field. public const int DueDateAtFieldNumber = 12; private global::Google.Protobuf.WellKnownTypes.Timestamp dueDateAt_; /// /// Срок окончания оплачиваемого периода /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp DueDateAt { get { return dueDateAt_; } set { dueDateAt_ = value; } } /// Field number for the "svc_type_id" field. public const int SvcTypeIdFieldNumber = 13; private string svcTypeId_ = ""; /// /// Идентификатор получателя платежа /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SvcTypeId { get { return svcTypeId_; } set { svcTypeId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "is_discount" field. public const int IsDiscountFieldNumber = 14; private bool isDiscount_; /// /// Признак скидки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsDiscount { get { return isDiscount_; } set { isDiscount_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Position); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Position other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (InvoiceId != other.InvoiceId) return false; if (Title != other.Title) return false; if (Category != other.Category) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Amount, other.Amount)) return false; if (!object.Equals(CreatedAt, other.CreatedAt)) return false; if (!object.Equals(UpdatedAt, other.UpdatedAt)) return false; if (MrfId != other.MrfId) return false; if (RfId != other.RfId) return false; if (InstanceId != other.InstanceId) return false; if (OfferingId != other.OfferingId) return false; if (!object.Equals(DueDateAt, other.DueDateAt)) return false; if (SvcTypeId != other.SvcTypeId) return false; if (IsDiscount != other.IsDiscount) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id.Length != 0) hash ^= Id.GetHashCode(); if (InvoiceId.Length != 0) hash ^= InvoiceId.GetHashCode(); if (Title.Length != 0) hash ^= Title.GetHashCode(); if (Category.Length != 0) hash ^= Category.GetHashCode(); if (Amount != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Amount); if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); if (updatedAt_ != null) hash ^= UpdatedAt.GetHashCode(); if (MrfId != 0) hash ^= MrfId.GetHashCode(); if (RfId != 0) hash ^= RfId.GetHashCode(); if (InstanceId.Length != 0) hash ^= InstanceId.GetHashCode(); if (OfferingId != 0) hash ^= OfferingId.GetHashCode(); if (dueDateAt_ != null) hash ^= DueDateAt.GetHashCode(); if (SvcTypeId.Length != 0) hash ^= SvcTypeId.GetHashCode(); if (IsDiscount != false) hash ^= IsDiscount.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); } if (InvoiceId.Length != 0) { output.WriteRawTag(18); output.WriteString(InvoiceId); } if (Title.Length != 0) { output.WriteRawTag(26); output.WriteString(Title); } if (Category.Length != 0) { output.WriteRawTag(34); output.WriteString(Category); } if (Amount != 0F) { output.WriteRawTag(45); output.WriteFloat(Amount); } if (createdAt_ != null) { output.WriteRawTag(50); output.WriteMessage(CreatedAt); } if (updatedAt_ != null) { output.WriteRawTag(58); output.WriteMessage(UpdatedAt); } if (MrfId != 0) { output.WriteRawTag(64); output.WriteInt32(MrfId); } if (RfId != 0) { output.WriteRawTag(72); output.WriteInt32(RfId); } if (InstanceId.Length != 0) { output.WriteRawTag(82); output.WriteString(InstanceId); } if (OfferingId != 0) { output.WriteRawTag(88); output.WriteInt32(OfferingId); } if (dueDateAt_ != null) { output.WriteRawTag(98); output.WriteMessage(DueDateAt); } if (SvcTypeId.Length != 0) { output.WriteRawTag(106); output.WriteString(SvcTypeId); } if (IsDiscount != false) { output.WriteRawTag(112); output.WriteBool(IsDiscount); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); } if (InvoiceId.Length != 0) { output.WriteRawTag(18); output.WriteString(InvoiceId); } if (Title.Length != 0) { output.WriteRawTag(26); output.WriteString(Title); } if (Category.Length != 0) { output.WriteRawTag(34); output.WriteString(Category); } if (Amount != 0F) { output.WriteRawTag(45); output.WriteFloat(Amount); } if (createdAt_ != null) { output.WriteRawTag(50); output.WriteMessage(CreatedAt); } if (updatedAt_ != null) { output.WriteRawTag(58); output.WriteMessage(UpdatedAt); } if (MrfId != 0) { output.WriteRawTag(64); output.WriteInt32(MrfId); } if (RfId != 0) { output.WriteRawTag(72); output.WriteInt32(RfId); } if (InstanceId.Length != 0) { output.WriteRawTag(82); output.WriteString(InstanceId); } if (OfferingId != 0) { output.WriteRawTag(88); output.WriteInt32(OfferingId); } if (dueDateAt_ != null) { output.WriteRawTag(98); output.WriteMessage(DueDateAt); } if (SvcTypeId.Length != 0) { output.WriteRawTag(106); output.WriteString(SvcTypeId); } if (IsDiscount != false) { output.WriteRawTag(112); output.WriteBool(IsDiscount); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } if (InvoiceId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(InvoiceId); } if (Title.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); } if (Category.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Category); } if (Amount != 0F) { size += 1 + 4; } if (createdAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); } if (updatedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdatedAt); } if (MrfId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(MrfId); } if (RfId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(RfId); } if (InstanceId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(InstanceId); } if (OfferingId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(OfferingId); } if (dueDateAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DueDateAt); } if (SvcTypeId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SvcTypeId); } if (IsDiscount != false) { size += 1 + 1; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Position other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } if (other.InvoiceId.Length != 0) { InvoiceId = other.InvoiceId; } if (other.Title.Length != 0) { Title = other.Title; } if (other.Category.Length != 0) { Category = other.Category; } if (other.Amount != 0F) { Amount = other.Amount; } if (other.createdAt_ != null) { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreatedAt.MergeFrom(other.CreatedAt); } if (other.updatedAt_ != null) { if (updatedAt_ == null) { UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } UpdatedAt.MergeFrom(other.UpdatedAt); } if (other.MrfId != 0) { MrfId = other.MrfId; } if (other.RfId != 0) { RfId = other.RfId; } if (other.InstanceId.Length != 0) { InstanceId = other.InstanceId; } if (other.OfferingId != 0) { OfferingId = other.OfferingId; } if (other.dueDateAt_ != null) { if (dueDateAt_ == null) { DueDateAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } DueDateAt.MergeFrom(other.DueDateAt); } if (other.SvcTypeId.Length != 0) { SvcTypeId = other.SvcTypeId; } if (other.IsDiscount != false) { IsDiscount = other.IsDiscount; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Id = input.ReadString(); break; } case 18: { InvoiceId = input.ReadString(); break; } case 26: { Title = input.ReadString(); break; } case 34: { Category = input.ReadString(); break; } case 45: { Amount = input.ReadFloat(); break; } case 50: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 58: { if (updatedAt_ == null) { UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(UpdatedAt); break; } case 64: { MrfId = input.ReadInt32(); break; } case 72: { RfId = input.ReadInt32(); break; } case 82: { InstanceId = input.ReadString(); break; } case 88: { OfferingId = input.ReadInt32(); break; } case 98: { if (dueDateAt_ == null) { DueDateAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(DueDateAt); break; } case 106: { SvcTypeId = input.ReadString(); break; } case 112: { IsDiscount = input.ReadBool(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Id = input.ReadString(); break; } case 18: { InvoiceId = input.ReadString(); break; } case 26: { Title = input.ReadString(); break; } case 34: { Category = input.ReadString(); break; } case 45: { Amount = input.ReadFloat(); break; } case 50: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 58: { if (updatedAt_ == null) { UpdatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(UpdatedAt); break; } case 64: { MrfId = input.ReadInt32(); break; } case 72: { RfId = input.ReadInt32(); break; } case 82: { InstanceId = input.ReadString(); break; } case 88: { OfferingId = input.ReadInt32(); break; } case 98: { if (dueDateAt_ == null) { DueDateAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(DueDateAt); break; } case 106: { SvcTypeId = input.ReadString(); break; } case 112: { IsDiscount = input.ReadBool(); break; } } } } #endif } /// /// Ошибка сохранения. /// Эти проверки выполняются при работе с базой данных и сторонними сервисами /// public sealed partial class SavingError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SavingError()); 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.Invoice.Descriptor.NestedTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SavingError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SavingError(SavingError other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.InvoiceAlreadyExists: InvoiceAlreadyExists = other.InvoiceAlreadyExists.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SavingError Clone() { return new SavingError(this); } /// Field number for the "invoice_already_exists" field. public const int InvoiceAlreadyExistsFieldNumber = 1; /// /// У пользователя уже есть платеж со статусом PENDING /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.Invoice.Types.SavingError.Types.InvoiceAlreadyExists InvoiceAlreadyExists { get { return reasonCase_ == ReasonOneofCase.InvoiceAlreadyExists ? (global::Keyapis.Invoice.V1.Invoice.Types.SavingError.Types.InvoiceAlreadyExists) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.InvoiceAlreadyExists; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, InvoiceAlreadyExists = 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 SavingError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SavingError other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(InvoiceAlreadyExists, other.InvoiceAlreadyExists)) 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.InvoiceAlreadyExists) hash ^= InvoiceAlreadyExists.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.InvoiceAlreadyExists) { output.WriteRawTag(10); output.WriteMessage(InvoiceAlreadyExists); } 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.InvoiceAlreadyExists) { output.WriteRawTag(10); output.WriteMessage(InvoiceAlreadyExists); } 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.InvoiceAlreadyExists) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(InvoiceAlreadyExists); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SavingError other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.InvoiceAlreadyExists: if (InvoiceAlreadyExists == null) { InvoiceAlreadyExists = new global::Keyapis.Invoice.V1.Invoice.Types.SavingError.Types.InvoiceAlreadyExists(); } InvoiceAlreadyExists.MergeFrom(other.InvoiceAlreadyExists); 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.Invoice.Types.SavingError.Types.InvoiceAlreadyExists subBuilder = new global::Keyapis.Invoice.V1.Invoice.Types.SavingError.Types.InvoiceAlreadyExists(); if (reasonCase_ == ReasonOneofCase.InvoiceAlreadyExists) { subBuilder.MergeFrom(InvoiceAlreadyExists); } input.ReadMessage(subBuilder); InvoiceAlreadyExists = 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.Invoice.Types.SavingError.Types.InvoiceAlreadyExists subBuilder = new global::Keyapis.Invoice.V1.Invoice.Types.SavingError.Types.InvoiceAlreadyExists(); if (reasonCase_ == ReasonOneofCase.InvoiceAlreadyExists) { subBuilder.MergeFrom(InvoiceAlreadyExists); } input.ReadMessage(subBuilder); InvoiceAlreadyExists = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the SavingError message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// У пользователя уже есть платеж со статусом PENDING /// public sealed partial class InvoiceAlreadyExists : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InvoiceAlreadyExists()); 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.Invoice.Types.SavingError.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 InvoiceAlreadyExists() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public InvoiceAlreadyExists(InvoiceAlreadyExists other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public InvoiceAlreadyExists Clone() { return new InvoiceAlreadyExists(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as InvoiceAlreadyExists); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(InvoiceAlreadyExists 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(InvoiceAlreadyExists other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } } #endregion } } #endregion } /// /// Фильтр инвойсов /// public sealed partial class InvoiceFilter : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InvoiceFilter()); 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.KeyapisInvoiceInvoiceV1Reflection.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 InvoiceFilter() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public InvoiceFilter(InvoiceFilter other) : this() { userId_ = other.userId_; invoiceStatusType_ = other.invoiceStatusType_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public InvoiceFilter Clone() { return new InvoiceFilter(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; } } /// Field number for the "invoice_status_type" field. public const int InvoiceStatusTypeFieldNumber = 2; private global::Keyapis.Invoice.V1.Invoice.Types.InvoiceStatusType invoiceStatusType_ = global::Keyapis.Invoice.V1.Invoice.Types.InvoiceStatusType.Unknown; /// /// Статус платежа /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.Invoice.Types.InvoiceStatusType InvoiceStatusType { get { return invoiceStatusType_; } set { invoiceStatusType_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as InvoiceFilter); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(InvoiceFilter other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (UserId != other.UserId) return false; if (InvoiceStatusType != other.InvoiceStatusType) 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 (InvoiceStatusType != global::Keyapis.Invoice.V1.Invoice.Types.InvoiceStatusType.Unknown) hash ^= InvoiceStatusType.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 (InvoiceStatusType != global::Keyapis.Invoice.V1.Invoice.Types.InvoiceStatusType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) InvoiceStatusType); } 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 (InvoiceStatusType != global::Keyapis.Invoice.V1.Invoice.Types.InvoiceStatusType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) InvoiceStatusType); } 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 (InvoiceStatusType != global::Keyapis.Invoice.V1.Invoice.Types.InvoiceStatusType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) InvoiceStatusType); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(InvoiceFilter other) { if (other == null) { return; } if (other.UserId != 0) { UserId = other.UserId; } if (other.InvoiceStatusType != global::Keyapis.Invoice.V1.Invoice.Types.InvoiceStatusType.Unknown) { InvoiceStatusType = other.InvoiceStatusType; } _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; } case 16: { InvoiceStatusType = (global::Keyapis.Invoice.V1.Invoice.Types.InvoiceStatusType) input.ReadEnum(); 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; } case 16: { InvoiceStatusType = (global::Keyapis.Invoice.V1.Invoice.Types.InvoiceStatusType) input.ReadEnum(); break; } } } } #endif } /// /// Постраничный вывод /// public sealed partial class InvoicePaging : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InvoicePaging()); 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.KeyapisInvoiceInvoiceV1Reflection.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 InvoicePaging() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public InvoicePaging(InvoicePaging other) : this() { orderByType_ = other.orderByType_; directionType_ = other.directionType_; limit_ = other.limit_; offset_ = other.offset_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public InvoicePaging Clone() { return new InvoicePaging(this); } /// Field number for the "order_by_type" field. public const int OrderByTypeFieldNumber = 1; private global::Keyapis.Invoice.V1.InvoicePaging.Types.OrderByType orderByType_ = global::Keyapis.Invoice.V1.InvoicePaging.Types.OrderByType.Unknown; /// /// Тип значения сортировки. /// Если значение не передано, то будет взято значение по умолчанию. /// # По умолчанию: PAID_AT /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.InvoicePaging.Types.OrderByType OrderByType { get { return orderByType_; } set { orderByType_ = value; } } /// Field number for the "direction_type" field. public const int DirectionTypeFieldNumber = 2; private global::Keyapis.Invoice.V1.InvoicePaging.Types.DirectionType directionType_ = global::Keyapis.Invoice.V1.InvoicePaging.Types.DirectionType.Unknown; /// /// Тип направления сортировки. /// # По умолчанию: DESC /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.InvoicePaging.Types.DirectionType DirectionType { get { return directionType_; } set { directionType_ = value; } } /// Field number for the "limit" field. public const int LimitFieldNumber = 3; private int limit_; /// /// Количество записей на страницу. /// Если значение 0 (не передано), то будет взято значение по умолчанию. /// # Диапазон: 0..100. /// # По умолчанию: 20 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Limit { get { return limit_; } set { limit_ = value; } } /// Field number for the "offset" field. public const int OffsetFieldNumber = 4; private int offset_; /// /// Сдвиг. /// # Диапазон: 0..2147483647 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Offset { get { return offset_; } set { offset_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as InvoicePaging); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(InvoicePaging other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (OrderByType != other.OrderByType) return false; if (DirectionType != other.DirectionType) return false; if (Limit != other.Limit) return false; if (Offset != other.Offset) 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 (OrderByType != global::Keyapis.Invoice.V1.InvoicePaging.Types.OrderByType.Unknown) hash ^= OrderByType.GetHashCode(); if (DirectionType != global::Keyapis.Invoice.V1.InvoicePaging.Types.DirectionType.Unknown) hash ^= DirectionType.GetHashCode(); if (Limit != 0) hash ^= Limit.GetHashCode(); if (Offset != 0) hash ^= Offset.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 (OrderByType != global::Keyapis.Invoice.V1.InvoicePaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.Invoice.V1.InvoicePaging.Types.DirectionType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) DirectionType); } if (Limit != 0) { output.WriteRawTag(24); output.WriteInt32(Limit); } if (Offset != 0) { output.WriteRawTag(32); output.WriteInt32(Offset); } 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 (OrderByType != global::Keyapis.Invoice.V1.InvoicePaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.Invoice.V1.InvoicePaging.Types.DirectionType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) DirectionType); } if (Limit != 0) { output.WriteRawTag(24); output.WriteInt32(Limit); } if (Offset != 0) { output.WriteRawTag(32); output.WriteInt32(Offset); } 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 (OrderByType != global::Keyapis.Invoice.V1.InvoicePaging.Types.OrderByType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OrderByType); } if (DirectionType != global::Keyapis.Invoice.V1.InvoicePaging.Types.DirectionType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DirectionType); } if (Limit != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Limit); } if (Offset != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Offset); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(InvoicePaging other) { if (other == null) { return; } if (other.OrderByType != global::Keyapis.Invoice.V1.InvoicePaging.Types.OrderByType.Unknown) { OrderByType = other.OrderByType; } if (other.DirectionType != global::Keyapis.Invoice.V1.InvoicePaging.Types.DirectionType.Unknown) { DirectionType = other.DirectionType; } if (other.Limit != 0) { Limit = other.Limit; } if (other.Offset != 0) { Offset = other.Offset; } _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: { OrderByType = (global::Keyapis.Invoice.V1.InvoicePaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.Invoice.V1.InvoicePaging.Types.DirectionType) input.ReadEnum(); break; } case 24: { Limit = input.ReadInt32(); break; } case 32: { Offset = 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: { OrderByType = (global::Keyapis.Invoice.V1.InvoicePaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.Invoice.V1.InvoicePaging.Types.DirectionType) input.ReadEnum(); break; } case 24: { Limit = input.ReadInt32(); break; } case 32: { Offset = input.ReadInt32(); break; } } } } #endif #region Nested types /// Container for nested types declared in the InvoicePaging message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочник типов значений сортировки. /// # Тип: byte /// public enum OrderByType { /// /// Значение не указано /// [pbr::OriginalName("ORDER_BY_TYPE_UNKNOWN")] Unknown = 0, /// /// По идентификатору /// [pbr::OriginalName("ID")] Id = 1, /// /// По дате оплаты /// [pbr::OriginalName("PAID_AT")] PaidAt = 2, /// /// По дате создания /// [pbr::OriginalName("CREATED_AT")] CreatedAt = 3, } /// /// Справочник типов направлений сортировки. /// # Тип: byte /// public enum DirectionType { /// /// Значение не указано /// [pbr::OriginalName("DIRECTION_TYPE_UNKNOWN")] Unknown = 0, /// /// От большего к меньшему /// [pbr::OriginalName("DESC")] Desc = 1, /// /// От меньшего к большему /// [pbr::OriginalName("ASC")] Asc = 2, } } #endregion } /// /// Запрос на создание платежа /// public sealed partial class CreateInvoiceRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateInvoiceRequest()); 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.KeyapisInvoiceInvoiceV1Reflection.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 CreateInvoiceRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CreateInvoiceRequest(CreateInvoiceRequest other) : this() { userId_ = other.userId_; positions_ = other.positions_.Clone(); payInterfaceType_ = other.payInterfaceType_; paywayType_ = other.paywayType_; returnUrl_ = other.returnUrl_; phoneNumber_ = other.phoneNumber_; email_ = other.email_; title_ = other.title_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CreateInvoiceRequest Clone() { return new CreateInvoiceRequest(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; } } /// Field number for the "positions" field. public const int PositionsFieldNumber = 2; private static readonly pb::FieldCodec _repeated_positions_codec = pb::FieldCodec.ForMessage(18, global::Keyapis.Invoice.V1.Invoice.Types.Position.Parser); private readonly pbc::RepeatedField positions_ = new pbc::RepeatedField(); /// /// Позиция счета /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Positions { get { return positions_; } } /// Field number for the "pay_interface_type" field. public const int PayInterfaceTypeFieldNumber = 3; private global::Keyapis.Invoice.V1.Invoice.Types.PayInterfaceType payInterfaceType_ = global::Keyapis.Invoice.V1.Invoice.Types.PayInterfaceType.Unknown; /// /// Метод платежа /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.Invoice.Types.PayInterfaceType PayInterfaceType { get { return payInterfaceType_; } set { payInterfaceType_ = value; } } /// Field number for the "payway_type" field. public const int PaywayTypeFieldNumber = 4; private global::Keyapis.Invoice.V1.Invoice.Types.PaywayType paywayType_ = global::Keyapis.Invoice.V1.Invoice.Types.PaywayType.Unknown; /// /// Способ оплаты. /// По умолчанию: BANK_CARD /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.Invoice.Types.PaywayType PaywayType { get { return paywayType_; } set { paywayType_ = value; } } /// Field number for the "return_url" field. public const int ReturnUrlFieldNumber = 5; private string returnUrl_ = ""; /// /// Ссылка для перехода после оплаты. /// Если не передан подставится значение по умолчанию /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ReturnUrl { get { return returnUrl_; } set { returnUrl_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "phone_number" field. public const int PhoneNumberFieldNumber = 6; private string phoneNumber_ = ""; /// /// Номер телефона. /// Должно быть означено поле phone_number, либо поле email /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PhoneNumber { get { return phoneNumber_; } set { phoneNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "email" field. public const int EmailFieldNumber = 7; private string email_ = ""; /// /// Электронная почта. /// Должно быть означено поле phone_number, либо поле email /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Email { get { return email_; } set { email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "title" field. public const int TitleFieldNumber = 8; private string title_ = ""; /// /// Описание платежа. /// По умолчанию подставляется "Счёт от {DD.MM.YYYY}г." /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Title { get { return title_; } set { title_ = 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 CreateInvoiceRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CreateInvoiceRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (UserId != other.UserId) return false; if(!positions_.Equals(other.positions_)) return false; if (PayInterfaceType != other.PayInterfaceType) return false; if (PaywayType != other.PaywayType) return false; if (ReturnUrl != other.ReturnUrl) return false; if (PhoneNumber != other.PhoneNumber) return false; if (Email != other.Email) return false; if (Title != other.Title) 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(); hash ^= positions_.GetHashCode(); if (PayInterfaceType != global::Keyapis.Invoice.V1.Invoice.Types.PayInterfaceType.Unknown) hash ^= PayInterfaceType.GetHashCode(); if (PaywayType != global::Keyapis.Invoice.V1.Invoice.Types.PaywayType.Unknown) hash ^= PaywayType.GetHashCode(); if (ReturnUrl.Length != 0) hash ^= ReturnUrl.GetHashCode(); if (PhoneNumber.Length != 0) hash ^= PhoneNumber.GetHashCode(); if (Email.Length != 0) hash ^= Email.GetHashCode(); if (Title.Length != 0) hash ^= Title.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); } positions_.WriteTo(output, _repeated_positions_codec); if (PayInterfaceType != global::Keyapis.Invoice.V1.Invoice.Types.PayInterfaceType.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) PayInterfaceType); } if (PaywayType != global::Keyapis.Invoice.V1.Invoice.Types.PaywayType.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) PaywayType); } if (ReturnUrl.Length != 0) { output.WriteRawTag(42); output.WriteString(ReturnUrl); } if (PhoneNumber.Length != 0) { output.WriteRawTag(50); output.WriteString(PhoneNumber); } if (Email.Length != 0) { output.WriteRawTag(58); output.WriteString(Email); } if (Title.Length != 0) { output.WriteRawTag(66); output.WriteString(Title); } 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); } positions_.WriteTo(ref output, _repeated_positions_codec); if (PayInterfaceType != global::Keyapis.Invoice.V1.Invoice.Types.PayInterfaceType.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) PayInterfaceType); } if (PaywayType != global::Keyapis.Invoice.V1.Invoice.Types.PaywayType.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) PaywayType); } if (ReturnUrl.Length != 0) { output.WriteRawTag(42); output.WriteString(ReturnUrl); } if (PhoneNumber.Length != 0) { output.WriteRawTag(50); output.WriteString(PhoneNumber); } if (Email.Length != 0) { output.WriteRawTag(58); output.WriteString(Email); } if (Title.Length != 0) { output.WriteRawTag(66); output.WriteString(Title); } 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); } size += positions_.CalculateSize(_repeated_positions_codec); if (PayInterfaceType != global::Keyapis.Invoice.V1.Invoice.Types.PayInterfaceType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PayInterfaceType); } if (PaywayType != global::Keyapis.Invoice.V1.Invoice.Types.PaywayType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PaywayType); } if (ReturnUrl.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ReturnUrl); } if (PhoneNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(PhoneNumber); } if (Email.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); } if (Title.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CreateInvoiceRequest other) { if (other == null) { return; } if (other.UserId != 0) { UserId = other.UserId; } positions_.Add(other.positions_); if (other.PayInterfaceType != global::Keyapis.Invoice.V1.Invoice.Types.PayInterfaceType.Unknown) { PayInterfaceType = other.PayInterfaceType; } if (other.PaywayType != global::Keyapis.Invoice.V1.Invoice.Types.PaywayType.Unknown) { PaywayType = other.PaywayType; } if (other.ReturnUrl.Length != 0) { ReturnUrl = other.ReturnUrl; } if (other.PhoneNumber.Length != 0) { PhoneNumber = other.PhoneNumber; } if (other.Email.Length != 0) { Email = other.Email; } if (other.Title.Length != 0) { Title = other.Title; } _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; } case 18: { positions_.AddEntriesFrom(input, _repeated_positions_codec); break; } case 24: { PayInterfaceType = (global::Keyapis.Invoice.V1.Invoice.Types.PayInterfaceType) input.ReadEnum(); break; } case 32: { PaywayType = (global::Keyapis.Invoice.V1.Invoice.Types.PaywayType) input.ReadEnum(); break; } case 42: { ReturnUrl = input.ReadString(); break; } case 50: { PhoneNumber = input.ReadString(); break; } case 58: { Email = input.ReadString(); break; } case 66: { Title = 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 8: { UserId = input.ReadInt32(); break; } case 18: { positions_.AddEntriesFrom(ref input, _repeated_positions_codec); break; } case 24: { PayInterfaceType = (global::Keyapis.Invoice.V1.Invoice.Types.PayInterfaceType) input.ReadEnum(); break; } case 32: { PaywayType = (global::Keyapis.Invoice.V1.Invoice.Types.PaywayType) input.ReadEnum(); break; } case 42: { ReturnUrl = input.ReadString(); break; } case 50: { PhoneNumber = input.ReadString(); break; } case 58: { Email = input.ReadString(); break; } case 66: { Title = input.ReadString(); break; } } } } #endif } /// /// Ответ на запрос создание платежа /// public sealed partial class CreateInvoiceResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateInvoiceResponse()); 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.KeyapisInvoiceInvoiceV1Reflection.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 CreateInvoiceResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CreateInvoiceResponse(CreateInvoiceResponse 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 CreateInvoiceResponse Clone() { return new CreateInvoiceResponse(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.CreateInvoiceResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Invoice.V1.CreateInvoiceResponse.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.Invoice Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Invoice.V1.Invoice) 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 CreateInvoiceResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CreateInvoiceResponse 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(CreateInvoiceResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Invoice.V1.CreateInvoiceResponse.Types.Error(); } Error.MergeFrom(other.Error); break; case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Invoice.V1.Invoice(); } 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.CreateInvoiceResponse.Types.Error subBuilder = new global::Keyapis.Invoice.V1.CreateInvoiceResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } case 18: { global::Keyapis.Invoice.V1.Invoice subBuilder = new global::Keyapis.Invoice.V1.Invoice(); 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.CreateInvoiceResponse.Types.Error subBuilder = new global::Keyapis.Invoice.V1.CreateInvoiceResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } case 18: { global::Keyapis.Invoice.V1.Invoice subBuilder = new global::Keyapis.Invoice.V1.Invoice(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the CreateInvoiceResponse 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.CreateInvoiceResponse.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; case ReasonOneofCase.MissingUserContacts: MissingUserContacts = other.MissingUserContacts.Clone(); break; case ReasonOneofCase.External: External = other.External.Clone(); break; case ReasonOneofCase.Saving: Saving = other.Saving.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; } } /// Field number for the "missing_user_contacts" field. public const int MissingUserContactsFieldNumber = 2; /// /// Должно быть означено поле phone_number, либо поле email /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.CreateInvoiceResponse.Types.Error.Types.MissingUserContacts MissingUserContacts { get { return reasonCase_ == ReasonOneofCase.MissingUserContacts ? (global::Keyapis.Invoice.V1.CreateInvoiceResponse.Types.Error.Types.MissingUserContacts) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.MissingUserContacts; } } /// Field number for the "external" field. public const int ExternalFieldNumber = 3; /// /// Ошибки внешней системы /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.Invoice.Types.ExternalError External { get { return reasonCase_ == ReasonOneofCase.External ? (global::Keyapis.Invoice.V1.Invoice.Types.ExternalError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.External; } } /// Field number for the "saving" field. public const int SavingFieldNumber = 4; /// /// Ошибка сохранения /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.Invoice.Types.SavingError Saving { get { return reasonCase_ == ReasonOneofCase.Saving ? (global::Keyapis.Invoice.V1.Invoice.Types.SavingError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Saving; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 1, MissingUserContacts = 2, External = 3, Saving = 4, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Validation, other.Validation)) return false; if (!object.Equals(MissingUserContacts, other.MissingUserContacts)) return false; if (!object.Equals(External, other.External)) return false; if (!object.Equals(Saving, other.Saving)) 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(); if (reasonCase_ == ReasonOneofCase.MissingUserContacts) hash ^= MissingUserContacts.GetHashCode(); if (reasonCase_ == ReasonOneofCase.External) hash ^= External.GetHashCode(); if (reasonCase_ == ReasonOneofCase.Saving) hash ^= Saving.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 (reasonCase_ == ReasonOneofCase.MissingUserContacts) { output.WriteRawTag(18); output.WriteMessage(MissingUserContacts); } if (reasonCase_ == ReasonOneofCase.External) { output.WriteRawTag(26); output.WriteMessage(External); } if (reasonCase_ == ReasonOneofCase.Saving) { output.WriteRawTag(34); output.WriteMessage(Saving); } 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 (reasonCase_ == ReasonOneofCase.MissingUserContacts) { output.WriteRawTag(18); output.WriteMessage(MissingUserContacts); } if (reasonCase_ == ReasonOneofCase.External) { output.WriteRawTag(26); output.WriteMessage(External); } if (reasonCase_ == ReasonOneofCase.Saving) { output.WriteRawTag(34); output.WriteMessage(Saving); } 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 (reasonCase_ == ReasonOneofCase.MissingUserContacts) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(MissingUserContacts); } if (reasonCase_ == ReasonOneofCase.External) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(External); } if (reasonCase_ == ReasonOneofCase.Saving) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Saving); } 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; case ReasonOneofCase.MissingUserContacts: if (MissingUserContacts == null) { MissingUserContacts = new global::Keyapis.Invoice.V1.CreateInvoiceResponse.Types.Error.Types.MissingUserContacts(); } MissingUserContacts.MergeFrom(other.MissingUserContacts); break; case ReasonOneofCase.External: if (External == null) { External = new global::Keyapis.Invoice.V1.Invoice.Types.ExternalError(); } External.MergeFrom(other.External); break; case ReasonOneofCase.Saving: if (Saving == null) { Saving = new global::Keyapis.Invoice.V1.Invoice.Types.SavingError(); } Saving.MergeFrom(other.Saving); 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; } case 18: { global::Keyapis.Invoice.V1.CreateInvoiceResponse.Types.Error.Types.MissingUserContacts subBuilder = new global::Keyapis.Invoice.V1.CreateInvoiceResponse.Types.Error.Types.MissingUserContacts(); if (reasonCase_ == ReasonOneofCase.MissingUserContacts) { subBuilder.MergeFrom(MissingUserContacts); } input.ReadMessage(subBuilder); MissingUserContacts = subBuilder; break; } case 26: { global::Keyapis.Invoice.V1.Invoice.Types.ExternalError subBuilder = new global::Keyapis.Invoice.V1.Invoice.Types.ExternalError(); if (reasonCase_ == ReasonOneofCase.External) { subBuilder.MergeFrom(External); } input.ReadMessage(subBuilder); External = subBuilder; break; } case 34: { global::Keyapis.Invoice.V1.Invoice.Types.SavingError subBuilder = new global::Keyapis.Invoice.V1.Invoice.Types.SavingError(); if (reasonCase_ == ReasonOneofCase.Saving) { subBuilder.MergeFrom(Saving); } input.ReadMessage(subBuilder); Saving = 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; } case 18: { global::Keyapis.Invoice.V1.CreateInvoiceResponse.Types.Error.Types.MissingUserContacts subBuilder = new global::Keyapis.Invoice.V1.CreateInvoiceResponse.Types.Error.Types.MissingUserContacts(); if (reasonCase_ == ReasonOneofCase.MissingUserContacts) { subBuilder.MergeFrom(MissingUserContacts); } input.ReadMessage(subBuilder); MissingUserContacts = subBuilder; break; } case 26: { global::Keyapis.Invoice.V1.Invoice.Types.ExternalError subBuilder = new global::Keyapis.Invoice.V1.Invoice.Types.ExternalError(); if (reasonCase_ == ReasonOneofCase.External) { subBuilder.MergeFrom(External); } input.ReadMessage(subBuilder); External = subBuilder; break; } case 34: { global::Keyapis.Invoice.V1.Invoice.Types.SavingError subBuilder = new global::Keyapis.Invoice.V1.Invoice.Types.SavingError(); if (reasonCase_ == ReasonOneofCase.Saving) { subBuilder.MergeFrom(Saving); } input.ReadMessage(subBuilder); Saving = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the Error message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Должно быть означено поле phone_number, либо поле email /// public sealed partial class MissingUserContacts : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MissingUserContacts()); 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.CreateInvoiceResponse.Types.Error.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MissingUserContacts() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MissingUserContacts(MissingUserContacts other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MissingUserContacts Clone() { return new MissingUserContacts(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as MissingUserContacts); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(MissingUserContacts 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(MissingUserContacts other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } } #endregion } } #endregion } /// /// Запрос на получение статуса платежа /// public sealed partial class GetInvoiceRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetInvoiceRequest()); 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.KeyapisInvoiceInvoiceV1Reflection.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 GetInvoiceRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetInvoiceRequest(GetInvoiceRequest other) : this() { invoiceId_ = other.invoiceId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetInvoiceRequest Clone() { return new GetInvoiceRequest(this); } /// Field number for the "invoice_id" field. public const int InvoiceIdFieldNumber = 1; private string invoiceId_ = ""; /// /// Идентификатор платежа в Ключе. /// # Тип: Guid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string InvoiceId { get { return invoiceId_; } set { invoiceId_ = 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 GetInvoiceRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetInvoiceRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (InvoiceId != other.InvoiceId) 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 (InvoiceId.Length != 0) hash ^= InvoiceId.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 (InvoiceId.Length != 0) { output.WriteRawTag(10); output.WriteString(InvoiceId); } 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 (InvoiceId.Length != 0) { output.WriteRawTag(10); output.WriteString(InvoiceId); } 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 (InvoiceId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(InvoiceId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetInvoiceRequest other) { if (other == null) { return; } if (other.InvoiceId.Length != 0) { InvoiceId = other.InvoiceId; } _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: { InvoiceId = 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: { InvoiceId = input.ReadString(); break; } } } } #endif } /// /// Ответ на запрос получения платежа /// public sealed partial class GetInvoiceResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetInvoiceResponse()); 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.KeyapisInvoiceInvoiceV1Reflection.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 GetInvoiceResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetInvoiceResponse(GetInvoiceResponse 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 GetInvoiceResponse Clone() { return new GetInvoiceResponse(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.GetInvoiceResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Invoice.V1.GetInvoiceResponse.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.Invoice Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Invoice.V1.Invoice) 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 GetInvoiceResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetInvoiceResponse 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(GetInvoiceResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Invoice.V1.GetInvoiceResponse.Types.Error(); } Error.MergeFrom(other.Error); break; case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Invoice.V1.Invoice(); } 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.GetInvoiceResponse.Types.Error subBuilder = new global::Keyapis.Invoice.V1.GetInvoiceResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } case 18: { global::Keyapis.Invoice.V1.Invoice subBuilder = new global::Keyapis.Invoice.V1.Invoice(); 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.GetInvoiceResponse.Types.Error subBuilder = new global::Keyapis.Invoice.V1.GetInvoiceResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } case 18: { global::Keyapis.Invoice.V1.Invoice subBuilder = new global::Keyapis.Invoice.V1.Invoice(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the GetInvoiceResponse 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.GetInvoiceResponse.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 PostInvoiceConfirmRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostInvoiceConfirmRequest()); 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.KeyapisInvoiceInvoiceV1Reflection.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 PostInvoiceConfirmRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostInvoiceConfirmRequest(PostInvoiceConfirmRequest other) : this() { srcPayId_ = other.srcPayId_; esppPayId_ = other.esppPayId_; payStatus_ = other.payStatus_; reqType_ = other.reqType_; amount_ = other.amount_; currency_ = other.currency_; payMethod_ = other.payMethod_; createTimeAt_ = other.createTimeAt_ != null ? other.createTimeAt_.Clone() : null; reqNote_ = other.reqNote_; reqUserMsg_ = other.reqUserMsg_; payTimeAt_ = other.payTimeAt_ != null ? other.payTimeAt_.Clone() : null; abandonTimeAt_ = other.abandonTimeAt_ != null ? other.abandonTimeAt_.Clone() : null; card_ = other.card_ != null ? other.card_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostInvoiceConfirmRequest Clone() { return new PostInvoiceConfirmRequest(this); } /// Field number for the "src_pay_id" field. public const int SrcPayIdFieldNumber = 1; private string srcPayId_ = ""; /// /// Идентификатор платежа в Ключе /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SrcPayId { get { return srcPayId_; } set { srcPayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "espp_pay_id" field. public const int EsppPayIdFieldNumber = 2; private string esppPayId_ = ""; /// /// Идентификатор платежа во внешней системе /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string EsppPayId { get { return esppPayId_; } set { esppPayId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "pay_status" field. public const int PayStatusFieldNumber = 3; private int payStatus_; /// /// Статус платежа из внешней системы /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int PayStatus { get { return payStatus_; } set { payStatus_ = value; } } /// Field number for the "req_type" field. public const int ReqTypeFieldNumber = 4; private string reqType_ = ""; /// /// Тип запроса. /// Должно иметь значение "confirmPayment" /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ReqType { get { return reqType_; } set { reqType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "amount" field. public const int AmountFieldNumber = 5; private float amount_; /// /// Сумма платежа в минимальных единицах валюты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Amount { get { return amount_; } set { amount_ = value; } } /// Field number for the "currency" field. public const int CurrencyFieldNumber = 6; private string currency_ = ""; /// /// Код валюты платежа /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Currency { get { return currency_; } set { currency_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "pay_method" field. public const int PayMethodFieldNumber = 7; private string payMethod_ = ""; /// /// Код способа оплаты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PayMethod { get { return payMethod_; } set { payMethod_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "create_time_at" field. public const int CreateTimeAtFieldNumber = 8; private global::Google.Protobuf.WellKnownTypes.Timestamp createTimeAt_; /// /// Дата регистрации платежа. /// # Тип: DateTime /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTimeAt { get { return createTimeAt_; } set { createTimeAt_ = value; } } /// Field number for the "req_note" field. public const int ReqNoteFieldNumber = 9; private string reqNote_ = ""; /// /// Комментарий или сообщение об ошибке /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ReqNote { get { return reqNote_; } set { reqNote_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "req_user_msg" field. public const int ReqUserMsgFieldNumber = 10; private string reqUserMsg_ = ""; /// /// Сообщение, отображаемое пользователю /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ReqUserMsg { get { return reqUserMsg_; } set { reqUserMsg_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "pay_time_at" field. public const int PayTimeAtFieldNumber = 11; private global::Google.Protobuf.WellKnownTypes.Timestamp payTimeAt_; /// /// Время фактической оплаты. Время фактической оплаты на стороне Процессинга. Возвращается, если оплата состоялась /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp PayTimeAt { get { return payTimeAt_; } set { payTimeAt_ = value; } } /// Field number for the "abandon_time_at" field. public const int AbandonTimeAtFieldNumber = 12; private global::Google.Protobuf.WellKnownTypes.Timestamp abandonTimeAt_; /// /// Время фактической отмены оплаты. /// Время фактической отмены оплаты на стороне Процессинга. /// Возвращается, если отмена оплаты состоялась /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp AbandonTimeAt { get { return abandonTimeAt_; } set { abandonTimeAt_ = value; } } /// Field number for the "card" field. public const int CardFieldNumber = 13; private global::Keyapis.Invoice.V1.PostInvoiceConfirmRequest.Types.Card card_; /// /// Структура с информацией о карте плательщика. /// Передаётся только при успешном платеже и если указаны способы оплаты payMethod = StoredBankCard либо BankCard /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.PostInvoiceConfirmRequest.Types.Card Card { get { return card_; } set { card_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostInvoiceConfirmRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostInvoiceConfirmRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (SrcPayId != other.SrcPayId) return false; if (EsppPayId != other.EsppPayId) return false; if (PayStatus != other.PayStatus) return false; if (ReqType != other.ReqType) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Amount, other.Amount)) return false; if (Currency != other.Currency) return false; if (PayMethod != other.PayMethod) return false; if (!object.Equals(CreateTimeAt, other.CreateTimeAt)) return false; if (ReqNote != other.ReqNote) return false; if (ReqUserMsg != other.ReqUserMsg) return false; if (!object.Equals(PayTimeAt, other.PayTimeAt)) return false; if (!object.Equals(AbandonTimeAt, other.AbandonTimeAt)) return false; if (!object.Equals(Card, other.Card)) 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 (SrcPayId.Length != 0) hash ^= SrcPayId.GetHashCode(); if (EsppPayId.Length != 0) hash ^= EsppPayId.GetHashCode(); if (PayStatus != 0) hash ^= PayStatus.GetHashCode(); if (ReqType.Length != 0) hash ^= ReqType.GetHashCode(); if (Amount != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Amount); if (Currency.Length != 0) hash ^= Currency.GetHashCode(); if (PayMethod.Length != 0) hash ^= PayMethod.GetHashCode(); if (createTimeAt_ != null) hash ^= CreateTimeAt.GetHashCode(); if (ReqNote.Length != 0) hash ^= ReqNote.GetHashCode(); if (ReqUserMsg.Length != 0) hash ^= ReqUserMsg.GetHashCode(); if (payTimeAt_ != null) hash ^= PayTimeAt.GetHashCode(); if (abandonTimeAt_ != null) hash ^= AbandonTimeAt.GetHashCode(); if (card_ != null) hash ^= Card.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 (SrcPayId.Length != 0) { output.WriteRawTag(10); output.WriteString(SrcPayId); } if (EsppPayId.Length != 0) { output.WriteRawTag(18); output.WriteString(EsppPayId); } if (PayStatus != 0) { output.WriteRawTag(24); output.WriteInt32(PayStatus); } if (ReqType.Length != 0) { output.WriteRawTag(34); output.WriteString(ReqType); } if (Amount != 0F) { output.WriteRawTag(45); output.WriteFloat(Amount); } if (Currency.Length != 0) { output.WriteRawTag(50); output.WriteString(Currency); } if (PayMethod.Length != 0) { output.WriteRawTag(58); output.WriteString(PayMethod); } if (createTimeAt_ != null) { output.WriteRawTag(66); output.WriteMessage(CreateTimeAt); } if (ReqNote.Length != 0) { output.WriteRawTag(74); output.WriteString(ReqNote); } if (ReqUserMsg.Length != 0) { output.WriteRawTag(82); output.WriteString(ReqUserMsg); } if (payTimeAt_ != null) { output.WriteRawTag(90); output.WriteMessage(PayTimeAt); } if (abandonTimeAt_ != null) { output.WriteRawTag(98); output.WriteMessage(AbandonTimeAt); } if (card_ != null) { output.WriteRawTag(106); output.WriteMessage(Card); } 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 (SrcPayId.Length != 0) { output.WriteRawTag(10); output.WriteString(SrcPayId); } if (EsppPayId.Length != 0) { output.WriteRawTag(18); output.WriteString(EsppPayId); } if (PayStatus != 0) { output.WriteRawTag(24); output.WriteInt32(PayStatus); } if (ReqType.Length != 0) { output.WriteRawTag(34); output.WriteString(ReqType); } if (Amount != 0F) { output.WriteRawTag(45); output.WriteFloat(Amount); } if (Currency.Length != 0) { output.WriteRawTag(50); output.WriteString(Currency); } if (PayMethod.Length != 0) { output.WriteRawTag(58); output.WriteString(PayMethod); } if (createTimeAt_ != null) { output.WriteRawTag(66); output.WriteMessage(CreateTimeAt); } if (ReqNote.Length != 0) { output.WriteRawTag(74); output.WriteString(ReqNote); } if (ReqUserMsg.Length != 0) { output.WriteRawTag(82); output.WriteString(ReqUserMsg); } if (payTimeAt_ != null) { output.WriteRawTag(90); output.WriteMessage(PayTimeAt); } if (abandonTimeAt_ != null) { output.WriteRawTag(98); output.WriteMessage(AbandonTimeAt); } if (card_ != null) { output.WriteRawTag(106); output.WriteMessage(Card); } 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 (SrcPayId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SrcPayId); } if (EsppPayId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(EsppPayId); } if (PayStatus != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(PayStatus); } if (ReqType.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ReqType); } if (Amount != 0F) { size += 1 + 4; } if (Currency.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Currency); } if (PayMethod.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(PayMethod); } if (createTimeAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTimeAt); } if (ReqNote.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ReqNote); } if (ReqUserMsg.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ReqUserMsg); } if (payTimeAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PayTimeAt); } if (abandonTimeAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AbandonTimeAt); } if (card_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Card); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostInvoiceConfirmRequest other) { if (other == null) { return; } if (other.SrcPayId.Length != 0) { SrcPayId = other.SrcPayId; } if (other.EsppPayId.Length != 0) { EsppPayId = other.EsppPayId; } if (other.PayStatus != 0) { PayStatus = other.PayStatus; } if (other.ReqType.Length != 0) { ReqType = other.ReqType; } if (other.Amount != 0F) { Amount = other.Amount; } if (other.Currency.Length != 0) { Currency = other.Currency; } if (other.PayMethod.Length != 0) { PayMethod = other.PayMethod; } if (other.createTimeAt_ != null) { if (createTimeAt_ == null) { CreateTimeAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreateTimeAt.MergeFrom(other.CreateTimeAt); } if (other.ReqNote.Length != 0) { ReqNote = other.ReqNote; } if (other.ReqUserMsg.Length != 0) { ReqUserMsg = other.ReqUserMsg; } if (other.payTimeAt_ != null) { if (payTimeAt_ == null) { PayTimeAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } PayTimeAt.MergeFrom(other.PayTimeAt); } if (other.abandonTimeAt_ != null) { if (abandonTimeAt_ == null) { AbandonTimeAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } AbandonTimeAt.MergeFrom(other.AbandonTimeAt); } if (other.card_ != null) { if (card_ == null) { Card = new global::Keyapis.Invoice.V1.PostInvoiceConfirmRequest.Types.Card(); } Card.MergeFrom(other.Card); } _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: { SrcPayId = input.ReadString(); break; } case 18: { EsppPayId = input.ReadString(); break; } case 24: { PayStatus = input.ReadInt32(); break; } case 34: { ReqType = input.ReadString(); break; } case 45: { Amount = input.ReadFloat(); break; } case 50: { Currency = input.ReadString(); break; } case 58: { PayMethod = input.ReadString(); break; } case 66: { if (createTimeAt_ == null) { CreateTimeAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreateTimeAt); break; } case 74: { ReqNote = input.ReadString(); break; } case 82: { ReqUserMsg = input.ReadString(); break; } case 90: { if (payTimeAt_ == null) { PayTimeAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(PayTimeAt); break; } case 98: { if (abandonTimeAt_ == null) { AbandonTimeAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(AbandonTimeAt); break; } case 106: { if (card_ == null) { Card = new global::Keyapis.Invoice.V1.PostInvoiceConfirmRequest.Types.Card(); } input.ReadMessage(Card); 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: { SrcPayId = input.ReadString(); break; } case 18: { EsppPayId = input.ReadString(); break; } case 24: { PayStatus = input.ReadInt32(); break; } case 34: { ReqType = input.ReadString(); break; } case 45: { Amount = input.ReadFloat(); break; } case 50: { Currency = input.ReadString(); break; } case 58: { PayMethod = input.ReadString(); break; } case 66: { if (createTimeAt_ == null) { CreateTimeAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreateTimeAt); break; } case 74: { ReqNote = input.ReadString(); break; } case 82: { ReqUserMsg = input.ReadString(); break; } case 90: { if (payTimeAt_ == null) { PayTimeAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(PayTimeAt); break; } case 98: { if (abandonTimeAt_ == null) { AbandonTimeAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(AbandonTimeAt); break; } case 106: { if (card_ == null) { Card = new global::Keyapis.Invoice.V1.PostInvoiceConfirmRequest.Types.Card(); } input.ReadMessage(Card); break; } } } } #endif #region Nested types /// Container for nested types declared in the PostInvoiceConfirmRequest message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Структура с информацией о карте плательщика /// public sealed partial class Card : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Card()); 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.PostInvoiceConfirmRequest.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 Card() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Card(Card other) : this() { esppCardId_ = other.esppCardId_; cardNum_ = other.cardNum_; cardKind_ = other.cardKind_; bankName_ = other.bankName_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Card Clone() { return new Card(this); } /// Field number for the "espp_card_id" field. public const int EsppCardIdFieldNumber = 1; private int esppCardId_; /// /// Идентификатор платежного средства во внешней системы. /// Возвращается в случае успешной привязки БК к УЗ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int EsppCardId { get { return esppCardId_; } set { esppCardId_ = value; } } /// Field number for the "card_num" field. public const int CardNumFieldNumber = 2; private string cardNum_ = ""; /// /// Номер платежного средства. /// Маскированный номер карты. Например: 123456******7890 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string CardNum { get { return cardNum_; } set { cardNum_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "card_kind" field. public const int CardKindFieldNumber = 3; private string cardKind_ = ""; /// /// Тип банковской карты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string CardKind { get { return cardKind_; } set { cardKind_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "bank_name" field. public const int BankNameFieldNumber = 4; 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"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Card); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Card other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (EsppCardId != other.EsppCardId) return false; if (CardNum != other.CardNum) return false; if (CardKind != other.CardKind) return false; if (BankName != other.BankName) 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 (EsppCardId != 0) hash ^= EsppCardId.GetHashCode(); if (CardNum.Length != 0) hash ^= CardNum.GetHashCode(); if (CardKind.Length != 0) hash ^= CardKind.GetHashCode(); if (BankName.Length != 0) hash ^= BankName.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 (EsppCardId != 0) { output.WriteRawTag(8); output.WriteInt32(EsppCardId); } if (CardNum.Length != 0) { output.WriteRawTag(18); output.WriteString(CardNum); } if (CardKind.Length != 0) { output.WriteRawTag(26); output.WriteString(CardKind); } if (BankName.Length != 0) { output.WriteRawTag(34); output.WriteString(BankName); } 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 (EsppCardId != 0) { output.WriteRawTag(8); output.WriteInt32(EsppCardId); } if (CardNum.Length != 0) { output.WriteRawTag(18); output.WriteString(CardNum); } if (CardKind.Length != 0) { output.WriteRawTag(26); output.WriteString(CardKind); } if (BankName.Length != 0) { output.WriteRawTag(34); output.WriteString(BankName); } 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 (EsppCardId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(EsppCardId); } if (CardNum.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(CardNum); } if (CardKind.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(CardKind); } if (BankName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(BankName); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Card other) { if (other == null) { return; } if (other.EsppCardId != 0) { EsppCardId = other.EsppCardId; } if (other.CardNum.Length != 0) { CardNum = other.CardNum; } if (other.CardKind.Length != 0) { CardKind = other.CardKind; } if (other.BankName.Length != 0) { BankName = other.BankName; } _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: { EsppCardId = input.ReadInt32(); break; } case 18: { CardNum = input.ReadString(); break; } case 26: { CardKind = input.ReadString(); break; } case 34: { BankName = 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 8: { EsppCardId = input.ReadInt32(); break; } case 18: { CardNum = input.ReadString(); break; } case 26: { CardKind = input.ReadString(); break; } case 34: { BankName = input.ReadString(); break; } } } } #endif } } #endregion } /// /// Ответ на запрос подтверждения платежа /// public sealed partial class PostInvoiceConfirmResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostInvoiceConfirmResponse()); 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.KeyapisInvoiceInvoiceV1Reflection.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 PostInvoiceConfirmResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostInvoiceConfirmResponse(PostInvoiceConfirmResponse other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostInvoiceConfirmResponse Clone() { return new PostInvoiceConfirmResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostInvoiceConfirmResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostInvoiceConfirmResponse 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(PostInvoiceConfirmResponse 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 GetInvoiceListRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetInvoiceListRequest()); 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.KeyapisInvoiceInvoiceV1Reflection.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 GetInvoiceListRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetInvoiceListRequest(GetInvoiceListRequest other) : this() { filter_ = other.filter_ != null ? other.filter_.Clone() : null; switch (other.PaginationCase) { case PaginationOneofCase.Paging: Paging = other.Paging.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetInvoiceListRequest Clone() { return new GetInvoiceListRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.Invoice.V1.InvoiceFilter filter_; /// /// Фильтр /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.InvoiceFilter Filter { get { return filter_; } set { filter_ = value; } } /// Field number for the "paging" field. public const int PagingFieldNumber = 2; /// /// Пагинация /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.InvoicePaging Paging { get { return paginationCase_ == PaginationOneofCase.Paging ? (global::Keyapis.Invoice.V1.InvoicePaging) pagination_ : null; } set { pagination_ = value; paginationCase_ = value == null ? PaginationOneofCase.None : PaginationOneofCase.Paging; } } private object pagination_; /// Enum of possible cases for the "pagination" oneof. public enum PaginationOneofCase { None = 0, Paging = 2, } private PaginationOneofCase paginationCase_ = PaginationOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PaginationOneofCase PaginationCase { get { return paginationCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearPagination() { paginationCase_ = PaginationOneofCase.None; pagination_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetInvoiceListRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetInvoiceListRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Filter, other.Filter)) return false; if (!object.Equals(Paging, other.Paging)) return false; if (PaginationCase != other.PaginationCase) 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 (filter_ != null) hash ^= Filter.GetHashCode(); if (paginationCase_ == PaginationOneofCase.Paging) hash ^= Paging.GetHashCode(); hash ^= (int) paginationCase_; 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 (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } if (paginationCase_ == PaginationOneofCase.Paging) { output.WriteRawTag(18); output.WriteMessage(Paging); } 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 (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } if (paginationCase_ == PaginationOneofCase.Paging) { output.WriteRawTag(18); output.WriteMessage(Paging); } 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 (filter_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Filter); } if (paginationCase_ == PaginationOneofCase.Paging) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Paging); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetInvoiceListRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.Invoice.V1.InvoiceFilter(); } Filter.MergeFrom(other.Filter); } switch (other.PaginationCase) { case PaginationOneofCase.Paging: if (Paging == null) { Paging = new global::Keyapis.Invoice.V1.InvoicePaging(); } Paging.MergeFrom(other.Paging); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.Invoice.V1.InvoiceFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.Invoice.V1.InvoicePaging subBuilder = new global::Keyapis.Invoice.V1.InvoicePaging(); if (paginationCase_ == PaginationOneofCase.Paging) { subBuilder.MergeFrom(Paging); } input.ReadMessage(subBuilder); Paging = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.Invoice.V1.InvoiceFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.Invoice.V1.InvoicePaging subBuilder = new global::Keyapis.Invoice.V1.InvoicePaging(); if (paginationCase_ == PaginationOneofCase.Paging) { subBuilder.MergeFrom(Paging); } input.ReadMessage(subBuilder); Paging = subBuilder; break; } } } } #endif } /// /// Ответ на запрос получения списка платежей /// public sealed partial class GetInvoiceListResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetInvoiceListResponse()); 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.KeyapisInvoiceInvoiceV1Reflection.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 GetInvoiceListResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetInvoiceListResponse(GetInvoiceListResponse other) : this() { data_ = other.data_.Clone(); error_ = other.error_ != null ? other.error_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetInvoiceListResponse Clone() { return new GetInvoiceListResponse(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.Invoice.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_; } } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; private global::Keyapis.Invoice.V1.GetInvoiceListResponse.Types.Error error_; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.GetInvoiceListResponse.Types.Error Error { get { return error_; } set { error_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetInvoiceListResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetInvoiceListResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!data_.Equals(other.data_)) return false; if (!object.Equals(Error, other.Error)) 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 (error_ != null) hash ^= Error.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 (error_ != null) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { data_.WriteTo(ref output, _repeated_data_codec); if (error_ != null) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += data_.CalculateSize(_repeated_data_codec); if (error_ != null) { 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(GetInvoiceListResponse other) { if (other == null) { return; } data_.Add(other.data_); if (other.error_ != null) { if (error_ == null) { Error = new global::Keyapis.Invoice.V1.GetInvoiceListResponse.Types.Error(); } Error.MergeFrom(other.Error); } _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; } case 18: { if (error_ == null) { Error = new global::Keyapis.Invoice.V1.GetInvoiceListResponse.Types.Error(); } input.ReadMessage(Error); 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; } case 18: { if (error_ == null) { Error = new global::Keyapis.Invoice.V1.GetInvoiceListResponse.Types.Error(); } input.ReadMessage(Error); break; } } } } #endif #region Nested types /// Container for nested types declared in the GetInvoiceListResponse 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.GetInvoiceListResponse.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 GetInvoiceCountRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetInvoiceCountRequest()); 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.KeyapisInvoiceInvoiceV1Reflection.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 GetInvoiceCountRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetInvoiceCountRequest(GetInvoiceCountRequest other) : this() { filter_ = other.filter_ != null ? other.filter_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetInvoiceCountRequest Clone() { return new GetInvoiceCountRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.Invoice.V1.InvoiceFilter filter_; /// /// Фильтр /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Invoice.V1.InvoiceFilter Filter { get { return filter_; } set { filter_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetInvoiceCountRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetInvoiceCountRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Filter, other.Filter)) 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 (filter_ != null) hash ^= Filter.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 (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } 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 (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } 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 (filter_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Filter); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetInvoiceCountRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.Invoice.V1.InvoiceFilter(); } Filter.MergeFrom(other.Filter); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.Invoice.V1.InvoiceFilter(); } input.ReadMessage(Filter); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.Invoice.V1.InvoiceFilter(); } input.ReadMessage(Filter); break; } } } } #endif } /// /// Ответ на запрос получения количества платежей /// public sealed partial class GetInvoiceCountResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetInvoiceCountResponse()); 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.KeyapisInvoiceInvoiceV1Reflection.Descriptor.MessageTypes[12]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetInvoiceCountResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetInvoiceCountResponse(GetInvoiceCountResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data; break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetInvoiceCountResponse Clone() { return new GetInvoiceCountResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Количество /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Data { get { return HasData ? (int) type_ : 0; } set { type_ = value; typeCase_ = TypeOneofCase.Data; } } /// Gets whether the "data" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasData { get { return typeCase_ == TypeOneofCase.Data; } } /// Clears the value of the oneof if it's currently set to "data" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearData() { if (HasData) { ClearType(); } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 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 GetInvoiceCountResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetInvoiceCountResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (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 (HasData) 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 (HasData) { output.WriteRawTag(8); output.WriteInt32(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 (HasData) { output.WriteRawTag(8); output.WriteInt32(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 (HasData) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetInvoiceCountResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: Data = 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 8: { Data = 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: { Data = input.ReadInt32(); break; } } } } #endif } #endregion } #endregion Designer generated code