//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/rfidregistry/v1/keyapis_rfidregistry_record_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.Rfidregistry.V1 {
/// Holder for reflection information generated from keyapis/rfidregistry/v1/keyapis_rfidregistry_record_v1.proto
public static partial class KeyapisRfidregistryRecordV1Reflection {
#region Descriptor
/// File descriptor for keyapis/rfidregistry/v1/keyapis_rfidregistry_record_v1.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static KeyapisRfidregistryRecordV1Reflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjxrZXlhcGlzL3JmaWRyZWdpc3RyeS92MS9rZXlhcGlzX3JmaWRyZWdpc3Ry",
"eV9yZWNvcmRfdjEucHJvdG8SF2tleWFwaXMucmZpZHJlZ2lzdHJ5LnYxGhxn",
"b29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvGh9nb29nbGUvYXBpL2ZpZWxk",
"X2JlaGF2aW9yLnByb3RvGiBnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvci5w",
"cm90bxoeZ29vZ2xlL3Byb3RvYnVmL3dyYXBwZXJzLnByb3RvGh9nb29nbGUv",
"cHJvdG9idWYvdGltZXN0YW1wLnByb3RvIsMSCgZSZWNvcmQSCgoCaWQYASAB",
"KAkSQAoJcmZpZF90eXBlGAIgASgOMigua2V5YXBpcy5yZmlkcmVnaXN0cnku",
"djEuUmVjb3JkLlJmaWRUeXBlQgPgQQISTAoPZW5jcnlwdGlvbl90eXBlGAMg",
"ASgOMi4ua2V5YXBpcy5yZmlkcmVnaXN0cnkudjEuUmVjb3JkLkVuY3J5cHRp",
"b25UeXBlQgPgQQISEAoDdWlkGAQgASgJQgPgQQISRAoLc3RhdHVzX3R5cGUY",
"BSABKA4yKi5rZXlhcGlzLnJmaWRyZWdpc3RyeS52MS5SZWNvcmQuU3RhdHVz",
"VHlwZUID4EECEi8KBm5ld19hdBgGIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U",
"aW1lc3RhbXBCA+BBAxIzCgpzaGlwcGVkX2F0GAcgASgLMhouZ29vZ2xlLnBy",
"b3RvYnVmLlRpbWVzdGFtcEID4EEDEjIKCWRlZmVjdF9hdBgIIAEoCzIaLmdv",
"b2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAxIyCglpbl91c2VfYXQYCSAB",
"KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQMSNAoOaW5fdXNl",
"X3JmaWRfaWQYCiABKAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUS",
"PAoKZGF0YV9jZWxscxgLIAMoCzIoLmtleWFwaXMucmZpZHJlZ2lzdHJ5LnYx",
"LlJlY29yZC5EYXRhQ2VsbBIeChFyZXNvdXJjZV9vd25lcl9pZBgMIAEoCUID",
"4EEDEhgKEHBhY2thZ2VfaW5mb19ib3gYDSABKAUSGgoScGFja2FnZV9pbmZv",
"X3BsYWNlGA4gASgFEjMKCmNoYW5nZWRfYXQYDyABKAsyGi5nb29nbGUucHJv",
"dG9idWYuVGltZXN0YW1wQgPgQQMSUwoWYWVzX2tleV9jb25maWd1cmF0aW9u",
"cxgQIAMoCzIzLmtleWFwaXMucmZpZHJlZ2lzdHJ5LnYxLlJlY29yZC5BZXNL",
"ZXlDb25maWd1cmF0aW9uEjkKCHRyYWlsZXJzGBEgAygLMicua2V5YXBpcy5y",
"ZmlkcmVnaXN0cnkudjEuUmVjb3JkLlRyYWlsZXISGQoMb3JkZXJfbnVtYmVy",
"GBIgASgJQgPgQQISMQoIb3JkZXJfYXQYEyABKAsyGi5nb29nbGUucHJvdG9i",
"dWYuVGltZXN0YW1wQgPgQQISQwoYaW5fdXNlX3Jlc291cmNlX293bmVyX2lk",
"GBQgASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlQgPgQQMSFwoK",
"aXNfZGVsZXRlZBgVIAEoCEID4EEDEjMKCmRlbGV0ZWRfYXQYFiABKAsyGi5n",
"b29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQMSMQoLdmVuZG9yX25hbWUY",
"FyABKAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUSXAoaaWRlbnRp",
"ZmljYXRpb25fbWV0aG9kX3R5cGUYGCABKA4yOC5rZXlhcGlzLnJmaWRyZWdp",
"c3RyeS52MS5SZWNvcmQuSWRlbnRpZmljYXRpb25NZXRob2RUeXBlGkcKCERh",
"dGFDZWxsEhQKB3NlY3Rpb24YASABKAVCA+BBAhISCgVibG9jaxgCIAEoBUID",
"4EECEhEKBGRhdGEYAyABKAlCA+BBAho+ChNBZXNLZXlDb25maWd1cmF0aW9u",
"EhQKB2FkZHJlc3MYASABKAlCA+BBAhIRCgRkYXRhGAIgASgJQgPgQQIaYAoH",
"VHJhaWxlchITCgZzZWN0b3IYASABKAVCA+BBAhISCgVrZXlfYRgCIAEoCUID",
"4EECEhIKBWtleV9iGAMgASgJQgPgQQISGAoLYWNjZXNzX21hc2sYBCABKAlC",
"A+BBAhqdBAoLU2F2aW5nRXJyb3ISYgoWc3RhdHVzX3R5cGVfcmVzdHJpY3Rl",
"ZBgBIAEoCzJALmtleWFwaXMucmZpZHJlZ2lzdHJ5LnYxLlJlY29yZC5TYXZp",
"bmdFcnJvci5TdGF0dXNUeXBlUmVzdHJpY3RlZEgAEkkKCXVpZF9leGlzdBgC",
"IAEoCzI0LmtleWFwaXMucmZpZHJlZ2lzdHJ5LnYxLlJlY29yZC5TYXZpbmdF",
"cnJvci5VaWRFeGlzdEgAEl8KFW93bmVkX2J5X2Fub3RoZXJfdXNlchgDIAEo",
"CzI+LmtleWFwaXMucmZpZHJlZ2lzdHJ5LnYxLlJlY29yZC5TYXZpbmdFcnJv",
"ci5Pd25lZEJ5QW5vdGhlclVzZXJIABJTCg5hbHJlYWR5X2xpbmtlZBgEIAEo",
"CzI5LmtleWFwaXMucmZpZHJlZ2lzdHJ5LnYxLlJlY29yZC5TYXZpbmdFcnJv",
"ci5BbHJlYWR5TGlua2VkSAASSAoIY29uZmxpY3QYBSABKAsyNC5rZXlhcGlz",
"LnJmaWRyZWdpc3RyeS52MS5SZWNvcmQuU2F2aW5nRXJyb3IuQ29uZmxpY3RI",
"ABoWChRTdGF0dXNUeXBlUmVzdHJpY3RlZBoKCghVaWRFeGlzdBoUChJPd25l",
"ZEJ5QW5vdGhlclVzZXIaDwoNQWxyZWFkeUxpbmtlZBoKCghDb25mbGljdEII",
"CgZyZWFzb24iWwoIUmZpZFR5cGUSFQoRUkZJRF9UWVBFX1VOS05PV04QABIH",
"CgNGT0IQARIICgRDQVJEEAISCAoEQkFORBADEgsKB1NUSUNLRVIQBBIOCgpB",
"Q1RJVkVfVEFHEAUiSAoORW5jcnlwdGlvblR5cGUSGwoXRU5DUllQVElPTl9U",
"WVBFX1VOS05PV04QABIHCgNTTDAQARIHCgNTTDEQAhIHCgNTTDMQAyJTCgpT",
"dGF0dXNUeXBlEhcKE1NUQVRVU19UWVBFX1VOS05PV04QABIHCgNORVcQARIL",
"CgdTSElQUEVEEAISCgoGREVGRUNUEAMSCgoGSU5fVVNFEAQibwoYSWRlbnRp",
"ZmljYXRpb25NZXRob2RUeXBlEiYKIklERU5USUZJQ0FUSU9OX01FVEhPRF9U",
"WVBFX1VOS05PV04QABIKCgZNSUZBUkUQARIHCgNCTEUQAhIHCgNVSEYQAxIN",
"CglFTV9NQVJJTkUQBCKzBQoMUmVjb3JkRmlsdGVyEjwKCnJmaWRfdHlwZXMY",
"ASADKA4yKC5rZXlhcGlzLnJmaWRyZWdpc3RyeS52MS5SZWNvcmQuUmZpZFR5",
"cGUSSAoQZW5jcnlwdGlvbl90eXBlcxgCIAMoDjIuLmtleWFwaXMucmZpZHJl",
"Z2lzdHJ5LnYxLlJlY29yZC5FbmNyeXB0aW9uVHlwZRIMCgR1aWRzGAMgAygJ",
"EkAKDHN0YXR1c190eXBlcxgEIAMoDjIqLmtleWFwaXMucmZpZHJlZ2lzdHJ5",
"LnYxLlJlY29yZC5TdGF0dXNUeXBlEhcKD2luX3VzZV9yZmlkX2lkcxgFIAMo",
"CRIaChJyZXNvdXJjZV9vd25lcl9pZHMYBiADKAkSFQoNb3JkZXJfbnVtYmVy",
"cxgHIAMoCRIhChlpbl91c2VfcmVzb3VyY2Vfb3duZXJfaWRzGAggAygJEi4K",
"CmlzX2RlbGV0ZWQYCSABKAsyGi5nb29nbGUucHJvdG9idWYuQm9vbFZhbHVl",
"EioKBHRleHQYCiABKAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUS",
"NAoQc3RhcnRfc2hpcHBlZF9hdBgLIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U",
"aW1lc3RhbXASMgoOZW5kX3NoaXBwZWRfYXQYDCABKAsyGi5nb29nbGUucHJv",
"dG9idWYuVGltZXN0YW1wEhoKEnBhY2thZ2VfaW5mb19ib3hlcxgNIAMoBRIb",
"ChNwYWNrYWdlX2luZm9fcGxhY2VzGA4gAygFEl0KG2lkZW50aWZpY2F0aW9u",
"X21ldGhvZF90eXBlcxgPIAMoDjI4LmtleWFwaXMucmZpZHJlZ2lzdHJ5LnYx",
"LlJlY29yZC5JZGVudGlmaWNhdGlvbk1ldGhvZFR5cGUi9AIKDFJlY29yZFBh",
"Z2luZxJICg1vcmRlcl9ieV90eXBlGAEgASgOMjEua2V5YXBpcy5yZmlkcmVn",
"aXN0cnkudjEuUmVjb3JkUGFnaW5nLk9yZGVyQnlUeXBlEksKDmRpcmVjdGlv",
"bl90eXBlGAIgASgOMjMua2V5YXBpcy5yZmlkcmVnaXN0cnkudjEuUmVjb3Jk",
"UGFnaW5nLkRpcmVjdGlvblR5cGUSDQoFbGltaXQYAyABKAUSDgoGb2Zmc2V0",
"GAQgASgFIm4KC09yZGVyQnlUeXBlEhkKFU9SREVSX0JZX1RZUEVfVU5LTk9X",
"ThAAEgoKBk5FV19BVBABEg4KCkNIQU5HRURfQVQQAhIMCghPUkRFUl9BVBAD",
"EhAKDE9SREVSX05VTUJFUhAEEggKBFJBTksQBSI+Cg1EaXJlY3Rpb25UeXBl",
"EhoKFkRJUkVDVElPTl9UWVBFX1VOS05PV04QABIICgRERVNDEAESBwoDQVND",
"EAIiRwoRUG9zdFJlY29yZFJlcXVlc3QSMgoEZGF0YRgBIAEoCzIfLmtleWFw",
"aXMucmZpZHJlZ2lzdHJ5LnYxLlJlY29yZEID4EECIqQCChJQb3N0UmVjb3Jk",
"UmVzcG9uc2USLwoEZGF0YRgBIAEoCzIfLmtleWFwaXMucmZpZHJlZ2lzdHJ5",
"LnYxLlJlY29yZEgAEkIKBWVycm9yGAIgASgLMjEua2V5YXBpcy5yZmlkcmVn",
"aXN0cnkudjEuUG9zdFJlY29yZFJlc3BvbnNlLkVycm9ySAAakAEKBUVycm9y",
"Ej4KCnZhbGlkYXRpb24YASABKAsyKC5rZXlhcGlzLnJmaWRyZWdpc3RyeS52",
"MS5WYWxpZGF0aW9uRXJyb3JIABI9CgZzYXZpbmcYAiABKAsyKy5rZXlhcGlz",
"LnJmaWRyZWdpc3RyeS52MS5SZWNvcmQuU2F2aW5nRXJyb3JIAEIICgZyZWFz",
"b25CBgoEdHlwZSIjChBHZXRSZWNvcmRSZXF1ZXN0Eg8KAmlkGAEgASgJQgPg",
"QQIiTAoRR2V0UmVjb3JkUmVzcG9uc2USLwoEZGF0YRgBIAEoCzIfLmtleWFw",
"aXMucmZpZHJlZ2lzdHJ5LnYxLlJlY29yZEgAQgYKBHR5cGUiTgoVR2V0UmVj",
"b3JkQ291bnRSZXF1ZXN0EjUKBmZpbHRlchgBIAEoCzIlLmtleWFwaXMucmZp",
"ZHJlZ2lzdHJ5LnYxLlJlY29yZEZpbHRlciLLAQoWR2V0UmVjb3JkQ291bnRS",
"ZXNwb25zZRIOCgRkYXRhGAEgASgFSAASRgoFZXJyb3IYAiABKAsyNS5rZXlh",
"cGlzLnJmaWRyZWdpc3RyeS52MS5HZXRSZWNvcmRDb3VudFJlc3BvbnNlLkVy",
"cm9ySAAaUQoFRXJyb3ISPgoKdmFsaWRhdGlvbhgBIAEoCzIoLmtleWFwaXMu",
"cmZpZHJlZ2lzdHJ5LnYxLlZhbGlkYXRpb25FcnJvckgAQggKBnJlYXNvbkIG",
"CgR0eXBlIpQBChRHZXRSZWNvcmRMaXN0UmVxdWVzdBI1CgZmaWx0ZXIYASAB",
"KAsyJS5rZXlhcGlzLnJmaWRyZWdpc3RyeS52MS5SZWNvcmRGaWx0ZXISNwoG",
"cGFnaW5nGAIgASgLMiUua2V5YXBpcy5yZmlkcmVnaXN0cnkudjEuUmVjb3Jk",
"UGFnaW5nSABCDAoKcGFnaW5hdGlvbiLqAQoVR2V0UmVjb3JkTGlzdFJlc3Bv",
"bnNlEi8KBGRhdGEYASABKAsyHy5rZXlhcGlzLnJmaWRyZWdpc3RyeS52MS5S",
"ZWNvcmRIABJFCgVlcnJvchgCIAEoCzI0LmtleWFwaXMucmZpZHJlZ2lzdHJ5",
"LnYxLkdldFJlY29yZExpc3RSZXNwb25zZS5FcnJvckgAGlEKBUVycm9yEj4K",
"CnZhbGlkYXRpb24YASABKAsyKC5rZXlhcGlzLnJmaWRyZWdpc3RyeS52MS5W",
"YWxpZGF0aW9uRXJyb3JIAEIICgZyZWFzb25CBgoEdHlwZSImChNEZWxldGVS",
"ZWNvcmRSZXF1ZXN0Eg8KAmlkGAEgASgJQgPgQQIitwEKFERlbGV0ZVJlY29y",
"ZFJlc3BvbnNlEkQKBWVycm9yGAEgASgLMjMua2V5YXBpcy5yZmlkcmVnaXN0",
"cnkudjEuRGVsZXRlUmVjb3JkUmVzcG9uc2UuRXJyb3JIABpRCgVFcnJvchI+",
"Cgp2YWxpZGF0aW9uGAEgASgLMigua2V5YXBpcy5yZmlkcmVnaXN0cnkudjEu",
"VmFsaWRhdGlvbkVycm9ySABCCAoGcmVhc29uQgYKBHR5cGUiOgoPVmFsaWRh",
"dGlvbkVycm9yEhEKBHBhdGgYASABKAlCA+BBAhIUCgdtZXNzYWdlGAIgASgJ",
"QgPgQQIyggYKDVJlY29yZFNlcnZpY2USjQEKClBvc3RSZWNvcmQSKi5rZXlh",
"cGlzLnJmaWRyZWdpc3RyeS52MS5Qb3N0UmVjb3JkUmVxdWVzdBorLmtleWFw",
"aXMucmZpZHJlZ2lzdHJ5LnYxLlBvc3RSZWNvcmRSZXNwb25zZSImgtPkkwIg",
"IhsvcmZpZHJlZ2lzdHJ5L2FwaS92MS9yZWNvcmQ6ASoSjAEKCUdldFJlY29y",
"ZBIpLmtleWFwaXMucmZpZHJlZ2lzdHJ5LnYxLkdldFJlY29yZFJlcXVlc3Qa",
"Ki5rZXlhcGlzLnJmaWRyZWdpc3RyeS52MS5HZXRSZWNvcmRSZXNwb25zZSIo",
"gtPkkwIiEiAvcmZpZHJlZ2lzdHJ5L2FwaS92MS9yZWNvcmQve2lkfRKaAQoN",
"R2V0UmVjb3JkTGlzdBItLmtleWFwaXMucmZpZHJlZ2lzdHJ5LnYxLkdldFJl",
"Y29yZExpc3RSZXF1ZXN0Gi4ua2V5YXBpcy5yZmlkcmVnaXN0cnkudjEuR2V0",
"UmVjb3JkTGlzdFJlc3BvbnNlIiiC0+STAiISIC9yZmlkcmVnaXN0cnkvYXBp",
"L3YxL3JlY29yZC9saXN0MAESnAEKDkdldFJlY29yZENvdW50Ei4ua2V5YXBp",
"cy5yZmlkcmVnaXN0cnkudjEuR2V0UmVjb3JkQ291bnRSZXF1ZXN0Gi8ua2V5",
"YXBpcy5yZmlkcmVnaXN0cnkudjEuR2V0UmVjb3JkQ291bnRSZXNwb25zZSIp",
"gtPkkwIjEiEvcmZpZHJlZ2lzdHJ5L2FwaS92MS9yZWNvcmQvY291bnQSlQEK",
"DERlbGV0ZVJlY29yZBIsLmtleWFwaXMucmZpZHJlZ2lzdHJ5LnYxLkRlbGV0",
"ZVJlY29yZFJlcXVlc3QaLS5rZXlhcGlzLnJmaWRyZWdpc3RyeS52MS5EZWxl",
"dGVSZWNvcmRSZXNwb25zZSIogtPkkwIiKiAvcmZpZHJlZ2lzdHJ5L2FwaS92",
"MS9yZWNvcmQve2lkfULCAQoacnUua2V5YXBpcy5yZmlkcmVnaXN0cnkudjFC",
"GktleWFwaXNSZmlkcmVnaXN0cnlWMVByb3RvSANQAFoYL2tleWFwaXNfcmZp",
"ZHJlZ2lzdHJ5X3Yx2AEB+AEBogIVS0VZQVBJU1JGSURSRUdJU1RSWVYxqgIX",
"S2V5YXBpcy5SZmlkcmVnaXN0cnkuVjHKAhdLZXlhcGlzXFJmaWRyZWdpc3Ry",
"eVxWMeoCF0tleWFwaXM6UmZpZHJlZ2lzdHJ5OlYxYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.Record), global::Keyapis.Rfidregistry.V1.Record.Parser, new[]{ "Id", "RfidType", "EncryptionType", "Uid", "StatusType", "NewAt", "ShippedAt", "DefectAt", "InUseAt", "InUseRfidId", "DataCells", "ResourceOwnerId", "PackageInfoBox", "PackageInfoPlace", "ChangedAt", "AesKeyConfigurations", "Trailers", "OrderNumber", "OrderAt", "InUseResourceOwnerId", "IsDeleted", "DeletedAt", "VendorName", "IdentificationMethodType" }, null, new[]{ typeof(global::Keyapis.Rfidregistry.V1.Record.Types.RfidType), typeof(global::Keyapis.Rfidregistry.V1.Record.Types.EncryptionType), typeof(global::Keyapis.Rfidregistry.V1.Record.Types.StatusType), typeof(global::Keyapis.Rfidregistry.V1.Record.Types.IdentificationMethodType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.Record.Types.DataCell), global::Keyapis.Rfidregistry.V1.Record.Types.DataCell.Parser, new[]{ "Section", "Block", "Data" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.Record.Types.AesKeyConfiguration), global::Keyapis.Rfidregistry.V1.Record.Types.AesKeyConfiguration.Parser, new[]{ "Address", "Data" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.Record.Types.Trailer), global::Keyapis.Rfidregistry.V1.Record.Types.Trailer.Parser, new[]{ "Sector", "KeyA", "KeyB", "AccessMask" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.Record.Types.SavingError), global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Parser, new[]{ "StatusTypeRestricted", "UidExist", "OwnedByAnotherUser", "AlreadyLinked", "Conflict" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.StatusTypeRestricted), global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.StatusTypeRestricted.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.UidExist), global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.UidExist.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.OwnedByAnotherUser), global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.OwnedByAnotherUser.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.AlreadyLinked), global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.AlreadyLinked.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.Conflict), global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.Conflict.Parser, null, null, null, null, null)})}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.RecordFilter), global::Keyapis.Rfidregistry.V1.RecordFilter.Parser, new[]{ "RfidTypes", "EncryptionTypes", "Uids", "StatusTypes", "InUseRfidIds", "ResourceOwnerIds", "OrderNumbers", "InUseResourceOwnerIds", "IsDeleted", "Text", "StartShippedAt", "EndShippedAt", "PackageInfoBoxes", "PackageInfoPlaces", "IdentificationMethodTypes" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.RecordPaging), global::Keyapis.Rfidregistry.V1.RecordPaging.Parser, new[]{ "OrderByType", "DirectionType", "Limit", "Offset" }, null, new[]{ typeof(global::Keyapis.Rfidregistry.V1.RecordPaging.Types.OrderByType), typeof(global::Keyapis.Rfidregistry.V1.RecordPaging.Types.DirectionType) }, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.PostRecordRequest), global::Keyapis.Rfidregistry.V1.PostRecordRequest.Parser, new[]{ "Data" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.PostRecordResponse), global::Keyapis.Rfidregistry.V1.PostRecordResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.PostRecordResponse.Types.Error), global::Keyapis.Rfidregistry.V1.PostRecordResponse.Types.Error.Parser, new[]{ "Validation", "Saving" }, new[]{ "Reason" }, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.GetRecordRequest), global::Keyapis.Rfidregistry.V1.GetRecordRequest.Parser, new[]{ "Id" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.GetRecordResponse), global::Keyapis.Rfidregistry.V1.GetRecordResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.GetRecordCountRequest), global::Keyapis.Rfidregistry.V1.GetRecordCountRequest.Parser, new[]{ "Filter" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.GetRecordCountResponse), global::Keyapis.Rfidregistry.V1.GetRecordCountResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.GetRecordCountResponse.Types.Error), global::Keyapis.Rfidregistry.V1.GetRecordCountResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.GetRecordListRequest), global::Keyapis.Rfidregistry.V1.GetRecordListRequest.Parser, new[]{ "Filter", "Paging" }, new[]{ "Pagination" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.GetRecordListResponse), global::Keyapis.Rfidregistry.V1.GetRecordListResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.GetRecordListResponse.Types.Error), global::Keyapis.Rfidregistry.V1.GetRecordListResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.DeleteRecordRequest), global::Keyapis.Rfidregistry.V1.DeleteRecordRequest.Parser, new[]{ "Id" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.DeleteRecordResponse), global::Keyapis.Rfidregistry.V1.DeleteRecordResponse.Parser, new[]{ "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.DeleteRecordResponse.Types.Error), global::Keyapis.Rfidregistry.V1.DeleteRecordResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Rfidregistry.V1.ValidationError), global::Keyapis.Rfidregistry.V1.ValidationError.Parser, new[]{ "Path", "Message" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
///
/// Запись.
/// # Описание модели
///
public sealed partial class Record : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Record());
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.Rfidregistry.V1.KeyapisRfidregistryRecordV1Reflection.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 Record() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Record(Record other) : this() {
id_ = other.id_;
rfidType_ = other.rfidType_;
encryptionType_ = other.encryptionType_;
uid_ = other.uid_;
statusType_ = other.statusType_;
newAt_ = other.newAt_ != null ? other.newAt_.Clone() : null;
shippedAt_ = other.shippedAt_ != null ? other.shippedAt_.Clone() : null;
defectAt_ = other.defectAt_ != null ? other.defectAt_.Clone() : null;
inUseAt_ = other.inUseAt_ != null ? other.inUseAt_.Clone() : null;
InUseRfidId = other.InUseRfidId;
dataCells_ = other.dataCells_.Clone();
resourceOwnerId_ = other.resourceOwnerId_;
packageInfoBox_ = other.packageInfoBox_;
packageInfoPlace_ = other.packageInfoPlace_;
changedAt_ = other.changedAt_ != null ? other.changedAt_.Clone() : null;
aesKeyConfigurations_ = other.aesKeyConfigurations_.Clone();
trailers_ = other.trailers_.Clone();
orderNumber_ = other.orderNumber_;
orderAt_ = other.orderAt_ != null ? other.orderAt_.Clone() : null;
InUseResourceOwnerId = other.InUseResourceOwnerId;
isDeleted_ = other.isDeleted_;
deletedAt_ = other.deletedAt_ != null ? other.deletedAt_.Clone() : null;
VendorName = other.VendorName;
identificationMethodType_ = other.identificationMethodType_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Record Clone() {
return new Record(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 "rfid_type" field.
public const int RfidTypeFieldNumber = 2;
private global::Keyapis.Rfidregistry.V1.Record.Types.RfidType rfidType_ = global::Keyapis.Rfidregistry.V1.Record.Types.RfidType.Unknown;
///
/// Тип ключа
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Rfidregistry.V1.Record.Types.RfidType RfidType {
get { return rfidType_; }
set {
rfidType_ = value;
}
}
/// Field number for the "encryption_type" field.
public const int EncryptionTypeFieldNumber = 3;
private global::Keyapis.Rfidregistry.V1.Record.Types.EncryptionType encryptionType_ = global::Keyapis.Rfidregistry.V1.Record.Types.EncryptionType.Unknown;
///
/// Тип шифрования ключа.
/// Максимально поддерживаемый ключом тип шифрования
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Rfidregistry.V1.Record.Types.EncryptionType EncryptionType {
get { return encryptionType_; }
set {
encryptionType_ = value;
}
}
/// Field number for the "uid" field.
public const int UidFieldNumber = 4;
private string uid_ = "";
///
/// Номер ключа.
/// Указывается при создании.
/// # Диапазон: 1..14
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Uid {
get { return uid_; }
set {
uid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "status_type" field.
public const int StatusTypeFieldNumber = 5;
private global::Keyapis.Rfidregistry.V1.Record.Types.StatusType statusType_ = global::Keyapis.Rfidregistry.V1.Record.Types.StatusType.Unknown;
///
/// Тип статуса ключа
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Rfidregistry.V1.Record.Types.StatusType StatusType {
get { return statusType_; }
set {
statusType_ = value;
}
}
/// Field number for the "new_at" field.
public const int NewAtFieldNumber = 6;
private global::Google.Protobuf.WellKnownTypes.Timestamp newAt_;
///
/// Дата перевода в статус "Новый".
/// # Тип: DateTime
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp NewAt {
get { return newAt_; }
set {
newAt_ = value;
}
}
/// Field number for the "shipped_at" field.
public const int ShippedAtFieldNumber = 7;
private global::Google.Protobuf.WellKnownTypes.Timestamp shippedAt_;
///
/// Дата перевода в статус "Отгружен".
/// # Тип: DateTime
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp ShippedAt {
get { return shippedAt_; }
set {
shippedAt_ = value;
}
}
/// Field number for the "defect_at" field.
public const int DefectAtFieldNumber = 8;
private global::Google.Protobuf.WellKnownTypes.Timestamp defectAt_;
///
/// Дата перевода в статус "Брак".
/// # Тип: DateTime
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp DefectAt {
get { return defectAt_; }
set {
defectAt_ = value;
}
}
/// Field number for the "in_use_at" field.
public const int InUseAtFieldNumber = 9;
private global::Google.Protobuf.WellKnownTypes.Timestamp inUseAt_;
///
/// Дата перевода в статус "Использован".
/// # Тип: DateTime
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp InUseAt {
get { return inUseAt_; }
set {
inUseAt_ = value;
}
}
/// Field number for the "in_use_rfid_id" field.
public const int InUseRfidIdFieldNumber = 10;
private static readonly pb::FieldCodec _single_inUseRfidId_codec = pb::FieldCodec.ForClassWrapper(82);
private string inUseRfidId_;
///
/// Идентификатор привязанного ключа.
/// Заполняется при переводе в статус "Использован".
/// # Диапазон: 0..16
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string InUseRfidId {
get { return inUseRfidId_; }
set {
inUseRfidId_ = value;
}
}
/// Field number for the "data_cells" field.
public const int DataCellsFieldNumber = 11;
private static readonly pb::FieldCodec _repeated_dataCells_codec
= pb::FieldCodec.ForMessage(90, global::Keyapis.Rfidregistry.V1.Record.Types.DataCell.Parser);
private readonly pbc::RepeatedField dataCells_ = new pbc::RepeatedField();
///
/// Содержимое ячеек ключа
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField DataCells {
get { return dataCells_; }
}
/// Field number for the "resource_owner_id" field.
public const int ResourceOwnerIdFieldNumber = 12;
private string resourceOwnerId_ = "";
///
/// Идентификатор владельца.
/// Заполняется сервером.
/// # Диапазон: 0..255
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ResourceOwnerId {
get { return resourceOwnerId_; }
set {
resourceOwnerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "package_info_box" field.
public const int PackageInfoBoxFieldNumber = 13;
private int packageInfoBox_;
///
/// Номер коробки.
/// # Диапазон: 1..2147483647
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int PackageInfoBox {
get { return packageInfoBox_; }
set {
packageInfoBox_ = value;
}
}
/// Field number for the "package_info_place" field.
public const int PackageInfoPlaceFieldNumber = 14;
private int packageInfoPlace_;
///
/// Номер места в коробке.
/// # Диапазон: 1..2147483647
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int PackageInfoPlace {
get { return packageInfoPlace_; }
set {
packageInfoPlace_ = value;
}
}
/// Field number for the "changed_at" field.
public const int ChangedAtFieldNumber = 15;
private global::Google.Protobuf.WellKnownTypes.Timestamp changedAt_;
///
/// Дата последнего изменения.
/// Заполняется и обновляется сервером.
/// Заполняется при создании и изменении.
/// Является версией объекта.
/// # Тип: DateTime
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp ChangedAt {
get { return changedAt_; }
set {
changedAt_ = value;
}
}
/// Field number for the "aes_key_configurations" field.
public const int AesKeyConfigurationsFieldNumber = 16;
private static readonly pb::FieldCodec _repeated_aesKeyConfigurations_codec
= pb::FieldCodec.ForMessage(130, global::Keyapis.Rfidregistry.V1.Record.Types.AesKeyConfiguration.Parser);
private readonly pbc::RepeatedField aesKeyConfigurations_ = new pbc::RepeatedField();
///
/// Конфигурации шифрования ключа
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField AesKeyConfigurations {
get { return aesKeyConfigurations_; }
}
/// Field number for the "trailers" field.
public const int TrailersFieldNumber = 17;
private static readonly pb::FieldCodec _repeated_trailers_codec
= pb::FieldCodec.ForMessage(138, global::Keyapis.Rfidregistry.V1.Record.Types.Trailer.Parser);
private readonly pbc::RepeatedField trailers_ = new pbc::RepeatedField();
///
/// Контрольные суммы.
/// Нужны для ключей SL1 и SL3
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField Trailers {
get { return trailers_; }
}
/// Field number for the "order_number" field.
public const int OrderNumberFieldNumber = 18;
private string orderNumber_ = "";
///
/// Номер заказа.
/// # Диапазон: 0..256
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string OrderNumber {
get { return orderNumber_; }
set {
orderNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "order_at" field.
public const int OrderAtFieldNumber = 19;
private global::Google.Protobuf.WellKnownTypes.Timestamp orderAt_;
///
/// Дата заказа.
/// # Тип: DateTime
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp OrderAt {
get { return orderAt_; }
set {
orderAt_ = value;
}
}
/// Field number for the "in_use_resource_owner_id" field.
public const int InUseResourceOwnerIdFieldNumber = 20;
private static readonly pb::FieldCodec _single_inUseResourceOwnerId_codec = pb::FieldCodec.ForClassWrapper(162);
private string inUseResourceOwnerId_;
///
/// Владелец привязанного ключа.
/// Заполняется сервером, значение берётся из токена при использовании ключа.
/// # Диапазон: 0..255
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string InUseResourceOwnerId {
get { return inUseResourceOwnerId_; }
set {
inUseResourceOwnerId_ = value;
}
}
/// Field number for the "is_deleted" field.
public const int IsDeletedFieldNumber = 21;
private bool isDeleted_;
///
/// Признак, удалена ли запись
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool IsDeleted {
get { return isDeleted_; }
set {
isDeleted_ = value;
}
}
/// Field number for the "deleted_at" field.
public const int DeletedAtFieldNumber = 22;
private global::Google.Protobuf.WellKnownTypes.Timestamp deletedAt_;
///
/// Дата удаления.
/// # Тип: DateTime
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp DeletedAt {
get { return deletedAt_; }
set {
deletedAt_ = value;
}
}
/// Field number for the "vendor_name" field.
public const int VendorNameFieldNumber = 23;
private static readonly pb::FieldCodec _single_vendorName_codec = pb::FieldCodec.ForClassWrapper(186);
private string vendorName_;
///
/// Производитель.
/// # Диапазон: 3..100
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string VendorName {
get { return vendorName_; }
set {
vendorName_ = value;
}
}
/// Field number for the "identification_method_type" field.
public const int IdentificationMethodTypeFieldNumber = 24;
private global::Keyapis.Rfidregistry.V1.Record.Types.IdentificationMethodType identificationMethodType_ = global::Keyapis.Rfidregistry.V1.Record.Types.IdentificationMethodType.Unknown;
///
/// Метод идентификации
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Rfidregistry.V1.Record.Types.IdentificationMethodType IdentificationMethodType {
get { return identificationMethodType_; }
set {
identificationMethodType_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Record);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Record other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (RfidType != other.RfidType) return false;
if (EncryptionType != other.EncryptionType) return false;
if (Uid != other.Uid) return false;
if (StatusType != other.StatusType) return false;
if (!object.Equals(NewAt, other.NewAt)) return false;
if (!object.Equals(ShippedAt, other.ShippedAt)) return false;
if (!object.Equals(DefectAt, other.DefectAt)) return false;
if (!object.Equals(InUseAt, other.InUseAt)) return false;
if (InUseRfidId != other.InUseRfidId) return false;
if(!dataCells_.Equals(other.dataCells_)) return false;
if (ResourceOwnerId != other.ResourceOwnerId) return false;
if (PackageInfoBox != other.PackageInfoBox) return false;
if (PackageInfoPlace != other.PackageInfoPlace) return false;
if (!object.Equals(ChangedAt, other.ChangedAt)) return false;
if(!aesKeyConfigurations_.Equals(other.aesKeyConfigurations_)) return false;
if(!trailers_.Equals(other.trailers_)) return false;
if (OrderNumber != other.OrderNumber) return false;
if (!object.Equals(OrderAt, other.OrderAt)) return false;
if (InUseResourceOwnerId != other.InUseResourceOwnerId) return false;
if (IsDeleted != other.IsDeleted) return false;
if (!object.Equals(DeletedAt, other.DeletedAt)) return false;
if (VendorName != other.VendorName) return false;
if (IdentificationMethodType != other.IdentificationMethodType) 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 (RfidType != global::Keyapis.Rfidregistry.V1.Record.Types.RfidType.Unknown) hash ^= RfidType.GetHashCode();
if (EncryptionType != global::Keyapis.Rfidregistry.V1.Record.Types.EncryptionType.Unknown) hash ^= EncryptionType.GetHashCode();
if (Uid.Length != 0) hash ^= Uid.GetHashCode();
if (StatusType != global::Keyapis.Rfidregistry.V1.Record.Types.StatusType.Unknown) hash ^= StatusType.GetHashCode();
if (newAt_ != null) hash ^= NewAt.GetHashCode();
if (shippedAt_ != null) hash ^= ShippedAt.GetHashCode();
if (defectAt_ != null) hash ^= DefectAt.GetHashCode();
if (inUseAt_ != null) hash ^= InUseAt.GetHashCode();
if (inUseRfidId_ != null) hash ^= InUseRfidId.GetHashCode();
hash ^= dataCells_.GetHashCode();
if (ResourceOwnerId.Length != 0) hash ^= ResourceOwnerId.GetHashCode();
if (PackageInfoBox != 0) hash ^= PackageInfoBox.GetHashCode();
if (PackageInfoPlace != 0) hash ^= PackageInfoPlace.GetHashCode();
if (changedAt_ != null) hash ^= ChangedAt.GetHashCode();
hash ^= aesKeyConfigurations_.GetHashCode();
hash ^= trailers_.GetHashCode();
if (OrderNumber.Length != 0) hash ^= OrderNumber.GetHashCode();
if (orderAt_ != null) hash ^= OrderAt.GetHashCode();
if (inUseResourceOwnerId_ != null) hash ^= InUseResourceOwnerId.GetHashCode();
if (IsDeleted != false) hash ^= IsDeleted.GetHashCode();
if (deletedAt_ != null) hash ^= DeletedAt.GetHashCode();
if (vendorName_ != null) hash ^= VendorName.GetHashCode();
if (IdentificationMethodType != global::Keyapis.Rfidregistry.V1.Record.Types.IdentificationMethodType.Unknown) hash ^= IdentificationMethodType.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 (RfidType != global::Keyapis.Rfidregistry.V1.Record.Types.RfidType.Unknown) {
output.WriteRawTag(16);
output.WriteEnum((int) RfidType);
}
if (EncryptionType != global::Keyapis.Rfidregistry.V1.Record.Types.EncryptionType.Unknown) {
output.WriteRawTag(24);
output.WriteEnum((int) EncryptionType);
}
if (Uid.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Uid);
}
if (StatusType != global::Keyapis.Rfidregistry.V1.Record.Types.StatusType.Unknown) {
output.WriteRawTag(40);
output.WriteEnum((int) StatusType);
}
if (newAt_ != null) {
output.WriteRawTag(50);
output.WriteMessage(NewAt);
}
if (shippedAt_ != null) {
output.WriteRawTag(58);
output.WriteMessage(ShippedAt);
}
if (defectAt_ != null) {
output.WriteRawTag(66);
output.WriteMessage(DefectAt);
}
if (inUseAt_ != null) {
output.WriteRawTag(74);
output.WriteMessage(InUseAt);
}
if (inUseRfidId_ != null) {
_single_inUseRfidId_codec.WriteTagAndValue(output, InUseRfidId);
}
dataCells_.WriteTo(output, _repeated_dataCells_codec);
if (ResourceOwnerId.Length != 0) {
output.WriteRawTag(98);
output.WriteString(ResourceOwnerId);
}
if (PackageInfoBox != 0) {
output.WriteRawTag(104);
output.WriteInt32(PackageInfoBox);
}
if (PackageInfoPlace != 0) {
output.WriteRawTag(112);
output.WriteInt32(PackageInfoPlace);
}
if (changedAt_ != null) {
output.WriteRawTag(122);
output.WriteMessage(ChangedAt);
}
aesKeyConfigurations_.WriteTo(output, _repeated_aesKeyConfigurations_codec);
trailers_.WriteTo(output, _repeated_trailers_codec);
if (OrderNumber.Length != 0) {
output.WriteRawTag(146, 1);
output.WriteString(OrderNumber);
}
if (orderAt_ != null) {
output.WriteRawTag(154, 1);
output.WriteMessage(OrderAt);
}
if (inUseResourceOwnerId_ != null) {
_single_inUseResourceOwnerId_codec.WriteTagAndValue(output, InUseResourceOwnerId);
}
if (IsDeleted != false) {
output.WriteRawTag(168, 1);
output.WriteBool(IsDeleted);
}
if (deletedAt_ != null) {
output.WriteRawTag(178, 1);
output.WriteMessage(DeletedAt);
}
if (vendorName_ != null) {
_single_vendorName_codec.WriteTagAndValue(output, VendorName);
}
if (IdentificationMethodType != global::Keyapis.Rfidregistry.V1.Record.Types.IdentificationMethodType.Unknown) {
output.WriteRawTag(192, 1);
output.WriteEnum((int) IdentificationMethodType);
}
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 (RfidType != global::Keyapis.Rfidregistry.V1.Record.Types.RfidType.Unknown) {
output.WriteRawTag(16);
output.WriteEnum((int) RfidType);
}
if (EncryptionType != global::Keyapis.Rfidregistry.V1.Record.Types.EncryptionType.Unknown) {
output.WriteRawTag(24);
output.WriteEnum((int) EncryptionType);
}
if (Uid.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Uid);
}
if (StatusType != global::Keyapis.Rfidregistry.V1.Record.Types.StatusType.Unknown) {
output.WriteRawTag(40);
output.WriteEnum((int) StatusType);
}
if (newAt_ != null) {
output.WriteRawTag(50);
output.WriteMessage(NewAt);
}
if (shippedAt_ != null) {
output.WriteRawTag(58);
output.WriteMessage(ShippedAt);
}
if (defectAt_ != null) {
output.WriteRawTag(66);
output.WriteMessage(DefectAt);
}
if (inUseAt_ != null) {
output.WriteRawTag(74);
output.WriteMessage(InUseAt);
}
if (inUseRfidId_ != null) {
_single_inUseRfidId_codec.WriteTagAndValue(ref output, InUseRfidId);
}
dataCells_.WriteTo(ref output, _repeated_dataCells_codec);
if (ResourceOwnerId.Length != 0) {
output.WriteRawTag(98);
output.WriteString(ResourceOwnerId);
}
if (PackageInfoBox != 0) {
output.WriteRawTag(104);
output.WriteInt32(PackageInfoBox);
}
if (PackageInfoPlace != 0) {
output.WriteRawTag(112);
output.WriteInt32(PackageInfoPlace);
}
if (changedAt_ != null) {
output.WriteRawTag(122);
output.WriteMessage(ChangedAt);
}
aesKeyConfigurations_.WriteTo(ref output, _repeated_aesKeyConfigurations_codec);
trailers_.WriteTo(ref output, _repeated_trailers_codec);
if (OrderNumber.Length != 0) {
output.WriteRawTag(146, 1);
output.WriteString(OrderNumber);
}
if (orderAt_ != null) {
output.WriteRawTag(154, 1);
output.WriteMessage(OrderAt);
}
if (inUseResourceOwnerId_ != null) {
_single_inUseResourceOwnerId_codec.WriteTagAndValue(ref output, InUseResourceOwnerId);
}
if (IsDeleted != false) {
output.WriteRawTag(168, 1);
output.WriteBool(IsDeleted);
}
if (deletedAt_ != null) {
output.WriteRawTag(178, 1);
output.WriteMessage(DeletedAt);
}
if (vendorName_ != null) {
_single_vendorName_codec.WriteTagAndValue(ref output, VendorName);
}
if (IdentificationMethodType != global::Keyapis.Rfidregistry.V1.Record.Types.IdentificationMethodType.Unknown) {
output.WriteRawTag(192, 1);
output.WriteEnum((int) IdentificationMethodType);
}
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 (RfidType != global::Keyapis.Rfidregistry.V1.Record.Types.RfidType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RfidType);
}
if (EncryptionType != global::Keyapis.Rfidregistry.V1.Record.Types.EncryptionType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EncryptionType);
}
if (Uid.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid);
}
if (StatusType != global::Keyapis.Rfidregistry.V1.Record.Types.StatusType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StatusType);
}
if (newAt_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(NewAt);
}
if (shippedAt_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ShippedAt);
}
if (defectAt_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(DefectAt);
}
if (inUseAt_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(InUseAt);
}
if (inUseRfidId_ != null) {
size += _single_inUseRfidId_codec.CalculateSizeWithTag(InUseRfidId);
}
size += dataCells_.CalculateSize(_repeated_dataCells_codec);
if (ResourceOwnerId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceOwnerId);
}
if (PackageInfoBox != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(PackageInfoBox);
}
if (PackageInfoPlace != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(PackageInfoPlace);
}
if (changedAt_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChangedAt);
}
size += aesKeyConfigurations_.CalculateSize(_repeated_aesKeyConfigurations_codec);
size += trailers_.CalculateSize(_repeated_trailers_codec);
if (OrderNumber.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(OrderNumber);
}
if (orderAt_ != null) {
size += 2 + pb::CodedOutputStream.ComputeMessageSize(OrderAt);
}
if (inUseResourceOwnerId_ != null) {
size += _single_inUseResourceOwnerId_codec.CalculateSizeWithTag(InUseResourceOwnerId);
}
if (IsDeleted != false) {
size += 2 + 1;
}
if (deletedAt_ != null) {
size += 2 + pb::CodedOutputStream.ComputeMessageSize(DeletedAt);
}
if (vendorName_ != null) {
size += _single_vendorName_codec.CalculateSizeWithTag(VendorName);
}
if (IdentificationMethodType != global::Keyapis.Rfidregistry.V1.Record.Types.IdentificationMethodType.Unknown) {
size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) IdentificationMethodType);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Record other) {
if (other == null) {
return;
}
if (other.Id.Length != 0) {
Id = other.Id;
}
if (other.RfidType != global::Keyapis.Rfidregistry.V1.Record.Types.RfidType.Unknown) {
RfidType = other.RfidType;
}
if (other.EncryptionType != global::Keyapis.Rfidregistry.V1.Record.Types.EncryptionType.Unknown) {
EncryptionType = other.EncryptionType;
}
if (other.Uid.Length != 0) {
Uid = other.Uid;
}
if (other.StatusType != global::Keyapis.Rfidregistry.V1.Record.Types.StatusType.Unknown) {
StatusType = other.StatusType;
}
if (other.newAt_ != null) {
if (newAt_ == null) {
NewAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
NewAt.MergeFrom(other.NewAt);
}
if (other.shippedAt_ != null) {
if (shippedAt_ == null) {
ShippedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
ShippedAt.MergeFrom(other.ShippedAt);
}
if (other.defectAt_ != null) {
if (defectAt_ == null) {
DefectAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
DefectAt.MergeFrom(other.DefectAt);
}
if (other.inUseAt_ != null) {
if (inUseAt_ == null) {
InUseAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
InUseAt.MergeFrom(other.InUseAt);
}
if (other.inUseRfidId_ != null) {
if (inUseRfidId_ == null || other.InUseRfidId != "") {
InUseRfidId = other.InUseRfidId;
}
}
dataCells_.Add(other.dataCells_);
if (other.ResourceOwnerId.Length != 0) {
ResourceOwnerId = other.ResourceOwnerId;
}
if (other.PackageInfoBox != 0) {
PackageInfoBox = other.PackageInfoBox;
}
if (other.PackageInfoPlace != 0) {
PackageInfoPlace = other.PackageInfoPlace;
}
if (other.changedAt_ != null) {
if (changedAt_ == null) {
ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
ChangedAt.MergeFrom(other.ChangedAt);
}
aesKeyConfigurations_.Add(other.aesKeyConfigurations_);
trailers_.Add(other.trailers_);
if (other.OrderNumber.Length != 0) {
OrderNumber = other.OrderNumber;
}
if (other.orderAt_ != null) {
if (orderAt_ == null) {
OrderAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
OrderAt.MergeFrom(other.OrderAt);
}
if (other.inUseResourceOwnerId_ != null) {
if (inUseResourceOwnerId_ == null || other.InUseResourceOwnerId != "") {
InUseResourceOwnerId = other.InUseResourceOwnerId;
}
}
if (other.IsDeleted != false) {
IsDeleted = other.IsDeleted;
}
if (other.deletedAt_ != null) {
if (deletedAt_ == null) {
DeletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
DeletedAt.MergeFrom(other.DeletedAt);
}
if (other.vendorName_ != null) {
if (vendorName_ == null || other.VendorName != "") {
VendorName = other.VendorName;
}
}
if (other.IdentificationMethodType != global::Keyapis.Rfidregistry.V1.Record.Types.IdentificationMethodType.Unknown) {
IdentificationMethodType = other.IdentificationMethodType;
}
_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 16: {
RfidType = (global::Keyapis.Rfidregistry.V1.Record.Types.RfidType) input.ReadEnum();
break;
}
case 24: {
EncryptionType = (global::Keyapis.Rfidregistry.V1.Record.Types.EncryptionType) input.ReadEnum();
break;
}
case 34: {
Uid = input.ReadString();
break;
}
case 40: {
StatusType = (global::Keyapis.Rfidregistry.V1.Record.Types.StatusType) input.ReadEnum();
break;
}
case 50: {
if (newAt_ == null) {
NewAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(NewAt);
break;
}
case 58: {
if (shippedAt_ == null) {
ShippedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(ShippedAt);
break;
}
case 66: {
if (defectAt_ == null) {
DefectAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(DefectAt);
break;
}
case 74: {
if (inUseAt_ == null) {
InUseAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(InUseAt);
break;
}
case 82: {
string value = _single_inUseRfidId_codec.Read(input);
if (inUseRfidId_ == null || value != "") {
InUseRfidId = value;
}
break;
}
case 90: {
dataCells_.AddEntriesFrom(input, _repeated_dataCells_codec);
break;
}
case 98: {
ResourceOwnerId = input.ReadString();
break;
}
case 104: {
PackageInfoBox = input.ReadInt32();
break;
}
case 112: {
PackageInfoPlace = input.ReadInt32();
break;
}
case 122: {
if (changedAt_ == null) {
ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(ChangedAt);
break;
}
case 130: {
aesKeyConfigurations_.AddEntriesFrom(input, _repeated_aesKeyConfigurations_codec);
break;
}
case 138: {
trailers_.AddEntriesFrom(input, _repeated_trailers_codec);
break;
}
case 146: {
OrderNumber = input.ReadString();
break;
}
case 154: {
if (orderAt_ == null) {
OrderAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(OrderAt);
break;
}
case 162: {
string value = _single_inUseResourceOwnerId_codec.Read(input);
if (inUseResourceOwnerId_ == null || value != "") {
InUseResourceOwnerId = value;
}
break;
}
case 168: {
IsDeleted = input.ReadBool();
break;
}
case 178: {
if (deletedAt_ == null) {
DeletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(DeletedAt);
break;
}
case 186: {
string value = _single_vendorName_codec.Read(input);
if (vendorName_ == null || value != "") {
VendorName = value;
}
break;
}
case 192: {
IdentificationMethodType = (global::Keyapis.Rfidregistry.V1.Record.Types.IdentificationMethodType) 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 10: {
Id = input.ReadString();
break;
}
case 16: {
RfidType = (global::Keyapis.Rfidregistry.V1.Record.Types.RfidType) input.ReadEnum();
break;
}
case 24: {
EncryptionType = (global::Keyapis.Rfidregistry.V1.Record.Types.EncryptionType) input.ReadEnum();
break;
}
case 34: {
Uid = input.ReadString();
break;
}
case 40: {
StatusType = (global::Keyapis.Rfidregistry.V1.Record.Types.StatusType) input.ReadEnum();
break;
}
case 50: {
if (newAt_ == null) {
NewAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(NewAt);
break;
}
case 58: {
if (shippedAt_ == null) {
ShippedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(ShippedAt);
break;
}
case 66: {
if (defectAt_ == null) {
DefectAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(DefectAt);
break;
}
case 74: {
if (inUseAt_ == null) {
InUseAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(InUseAt);
break;
}
case 82: {
string value = _single_inUseRfidId_codec.Read(ref input);
if (inUseRfidId_ == null || value != "") {
InUseRfidId = value;
}
break;
}
case 90: {
dataCells_.AddEntriesFrom(ref input, _repeated_dataCells_codec);
break;
}
case 98: {
ResourceOwnerId = input.ReadString();
break;
}
case 104: {
PackageInfoBox = input.ReadInt32();
break;
}
case 112: {
PackageInfoPlace = input.ReadInt32();
break;
}
case 122: {
if (changedAt_ == null) {
ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(ChangedAt);
break;
}
case 130: {
aesKeyConfigurations_.AddEntriesFrom(ref input, _repeated_aesKeyConfigurations_codec);
break;
}
case 138: {
trailers_.AddEntriesFrom(ref input, _repeated_trailers_codec);
break;
}
case 146: {
OrderNumber = input.ReadString();
break;
}
case 154: {
if (orderAt_ == null) {
OrderAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(OrderAt);
break;
}
case 162: {
string value = _single_inUseResourceOwnerId_codec.Read(ref input);
if (inUseResourceOwnerId_ == null || value != "") {
InUseResourceOwnerId = value;
}
break;
}
case 168: {
IsDeleted = input.ReadBool();
break;
}
case 178: {
if (deletedAt_ == null) {
DeletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(DeletedAt);
break;
}
case 186: {
string value = _single_vendorName_codec.Read(ref input);
if (vendorName_ == null || value != "") {
VendorName = value;
}
break;
}
case 192: {
IdentificationMethodType = (global::Keyapis.Rfidregistry.V1.Record.Types.IdentificationMethodType) input.ReadEnum();
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the Record message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Справочник типов ключей.
/// # Тип: byte
///
public enum RfidType {
///
/// Значение не указано
///
[pbr::OriginalName("RFID_TYPE_UNKNOWN")] Unknown = 0,
///
/// Брелок
///
[pbr::OriginalName("FOB")] Fob = 1,
///
/// Карта
///
[pbr::OriginalName("CARD")] Card = 2,
///
/// Браслет
///
[pbr::OriginalName("BAND")] Band = 3,
///
/// Стикер
///
[pbr::OriginalName("STICKER")] Sticker = 4,
///
/// Активная метка
///
[pbr::OriginalName("ACTIVE_TAG")] ActiveTag = 5,
}
///
/// Справочник типов шифрования ключа.
/// # Тип: byte
///
public enum EncryptionType {
///
/// Значение не указано
///
[pbr::OriginalName("ENCRYPTION_TYPE_UNKNOWN")] Unknown = 0,
///
/// Без шифрования
///
[pbr::OriginalName("SL0")] Sl0 = 1,
///
/// С шифрованием, копируемый
///
[pbr::OriginalName("SL1")] Sl1 = 2,
///
/// С шифрованием, не копируемый
///
[pbr::OriginalName("SL3")] Sl3 = 3,
}
///
/// Справочник типов статусов ключа.
/// # Тип: byte
///
public enum StatusType {
///
/// Значение не указано
///
[pbr::OriginalName("STATUS_TYPE_UNKNOWN")] Unknown = 0,
///
/// Новый
///
[pbr::OriginalName("NEW")] New = 1,
///
/// Отгружен
///
[pbr::OriginalName("SHIPPED")] Shipped = 2,
///
/// Брак
///
[pbr::OriginalName("DEFECT")] Defect = 3,
///
/// Использован
///
[pbr::OriginalName("IN_USE")] InUse = 4,
}
///
/// Справочник методов идентификации.
/// # Тип: byte
///
public enum IdentificationMethodType {
///
/// Значение не указано
///
[pbr::OriginalName("IDENTIFICATION_METHOD_TYPE_UNKNOWN")] Unknown = 0,
///
/// Значение Mifare
///
[pbr::OriginalName("MIFARE")] Mifare = 1,
///
/// Значение Bluetooth low energy
///
[pbr::OriginalName("BLE")] Ble = 2,
///
/// Значение Ultra high frequency
///
[pbr::OriginalName("UHF")] Uhf = 3,
///
/// Значение em-marine
///
[pbr::OriginalName("EM_MARINE")] EmMarine = 4,
}
///
/// Содержимое ячейки ключа
///
public sealed partial class DataCell : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DataCell());
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.Rfidregistry.V1.Record.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 DataCell() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DataCell(DataCell other) : this() {
section_ = other.section_;
block_ = other.block_;
data_ = other.data_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DataCell Clone() {
return new DataCell(this);
}
/// Field number for the "section" field.
public const int SectionFieldNumber = 1;
private int section_;
///
/// Сектор.
/// # Диапазон: 0..127
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Section {
get { return section_; }
set {
section_ = value;
}
}
/// Field number for the "block" field.
public const int BlockFieldNumber = 2;
private int block_;
///
/// Блок.
/// # Диапазон: 0..127
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Block {
get { return block_; }
set {
block_ = value;
}
}
/// Field number for the "data" field.
public const int DataFieldNumber = 3;
private string data_ = "";
///
/// Данные.
/// # Паттерн: /^[A-Za-z0-9=]+$/
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Data {
get { return data_; }
set {
data_ = 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 DataCell);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(DataCell other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Section != other.Section) return false;
if (Block != other.Block) return false;
if (Data != other.Data) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Section != 0) hash ^= Section.GetHashCode();
if (Block != 0) hash ^= Block.GetHashCode();
if (Data.Length != 0) hash ^= Data.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Section != 0) {
output.WriteRawTag(8);
output.WriteInt32(Section);
}
if (Block != 0) {
output.WriteRawTag(16);
output.WriteInt32(Block);
}
if (Data.Length != 0) {
output.WriteRawTag(26);
output.WriteString(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 (Section != 0) {
output.WriteRawTag(8);
output.WriteInt32(Section);
}
if (Block != 0) {
output.WriteRawTag(16);
output.WriteInt32(Block);
}
if (Data.Length != 0) {
output.WriteRawTag(26);
output.WriteString(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 (Section != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Section);
}
if (Block != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Block);
}
if (Data.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Data);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(DataCell other) {
if (other == null) {
return;
}
if (other.Section != 0) {
Section = other.Section;
}
if (other.Block != 0) {
Block = other.Block;
}
if (other.Data.Length != 0) {
Data = other.Data;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
Section = input.ReadInt32();
break;
}
case 16: {
Block = input.ReadInt32();
break;
}
case 26: {
Data = 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: {
Section = input.ReadInt32();
break;
}
case 16: {
Block = input.ReadInt32();
break;
}
case 26: {
Data = input.ReadString();
break;
}
}
}
}
#endif
}
///
/// Конфигурация шифрования ключа
///
public sealed partial class AesKeyConfiguration : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AesKeyConfiguration());
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.Rfidregistry.V1.Record.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 AesKeyConfiguration() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AesKeyConfiguration(AesKeyConfiguration other) : this() {
address_ = other.address_;
data_ = other.data_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AesKeyConfiguration Clone() {
return new AesKeyConfiguration(this);
}
/// Field number for the "address" field.
public const int AddressFieldNumber = 1;
private string address_ = "";
///
/// Адрес.
/// # Паттерн: /^[A-Za-z0-9=]+$/
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Address {
get { return address_; }
set {
address_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "data" field.
public const int DataFieldNumber = 2;
private string data_ = "";
///
/// Данные.
/// # Паттерн: /^[A-Za-z0-9=]+$/
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Data {
get { return data_; }
set {
data_ = 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 AesKeyConfiguration);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(AesKeyConfiguration other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Address != other.Address) return false;
if (Data != other.Data) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Address.Length != 0) hash ^= Address.GetHashCode();
if (Data.Length != 0) hash ^= Data.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Address.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Address);
}
if (Data.Length != 0) {
output.WriteRawTag(18);
output.WriteString(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 (Address.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Address);
}
if (Data.Length != 0) {
output.WriteRawTag(18);
output.WriteString(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 (Address.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Address);
}
if (Data.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Data);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(AesKeyConfiguration other) {
if (other == null) {
return;
}
if (other.Address.Length != 0) {
Address = other.Address;
}
if (other.Data.Length != 0) {
Data = other.Data;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
Address = input.ReadString();
break;
}
case 18: {
Data = 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: {
Address = input.ReadString();
break;
}
case 18: {
Data = input.ReadString();
break;
}
}
}
}
#endif
}
///
/// Контрольная сумма
///
public sealed partial class Trailer : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Trailer());
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.Rfidregistry.V1.Record.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 Trailer() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Trailer(Trailer other) : this() {
sector_ = other.sector_;
keyA_ = other.keyA_;
keyB_ = other.keyB_;
accessMask_ = other.accessMask_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Trailer Clone() {
return new Trailer(this);
}
/// Field number for the "sector" field.
public const int SectorFieldNumber = 1;
private int sector_;
///
/// Сектор.
/// # Диапазон: 0..15
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Sector {
get { return sector_; }
set {
sector_ = value;
}
}
/// Field number for the "key_a" field.
public const int KeyAFieldNumber = 2;
private string keyA_ = "";
///
/// Ключ А.
/// # Диапазон: 1..256
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string KeyA {
get { return keyA_; }
set {
keyA_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "key_b" field.
public const int KeyBFieldNumber = 3;
private string keyB_ = "";
///
/// Ключ Б.
/// # Диапазон: 1..256
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string KeyB {
get { return keyB_; }
set {
keyB_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "access_mask" field.
public const int AccessMaskFieldNumber = 4;
private string accessMask_ = "";
///
/// Маска доступа.
/// # Диапазон: 1..512
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string AccessMask {
get { return accessMask_; }
set {
accessMask_ = 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 Trailer);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Trailer other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Sector != other.Sector) return false;
if (KeyA != other.KeyA) return false;
if (KeyB != other.KeyB) return false;
if (AccessMask != other.AccessMask) 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 (Sector != 0) hash ^= Sector.GetHashCode();
if (KeyA.Length != 0) hash ^= KeyA.GetHashCode();
if (KeyB.Length != 0) hash ^= KeyB.GetHashCode();
if (AccessMask.Length != 0) hash ^= AccessMask.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 (Sector != 0) {
output.WriteRawTag(8);
output.WriteInt32(Sector);
}
if (KeyA.Length != 0) {
output.WriteRawTag(18);
output.WriteString(KeyA);
}
if (KeyB.Length != 0) {
output.WriteRawTag(26);
output.WriteString(KeyB);
}
if (AccessMask.Length != 0) {
output.WriteRawTag(34);
output.WriteString(AccessMask);
}
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 (Sector != 0) {
output.WriteRawTag(8);
output.WriteInt32(Sector);
}
if (KeyA.Length != 0) {
output.WriteRawTag(18);
output.WriteString(KeyA);
}
if (KeyB.Length != 0) {
output.WriteRawTag(26);
output.WriteString(KeyB);
}
if (AccessMask.Length != 0) {
output.WriteRawTag(34);
output.WriteString(AccessMask);
}
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 (Sector != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sector);
}
if (KeyA.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyA);
}
if (KeyB.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyB);
}
if (AccessMask.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(AccessMask);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Trailer other) {
if (other == null) {
return;
}
if (other.Sector != 0) {
Sector = other.Sector;
}
if (other.KeyA.Length != 0) {
KeyA = other.KeyA;
}
if (other.KeyB.Length != 0) {
KeyB = other.KeyB;
}
if (other.AccessMask.Length != 0) {
AccessMask = other.AccessMask;
}
_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: {
Sector = input.ReadInt32();
break;
}
case 18: {
KeyA = input.ReadString();
break;
}
case 26: {
KeyB = input.ReadString();
break;
}
case 34: {
AccessMask = 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: {
Sector = input.ReadInt32();
break;
}
case 18: {
KeyA = input.ReadString();
break;
}
case 26: {
KeyB = input.ReadString();
break;
}
case 34: {
AccessMask = input.ReadString();
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.Rfidregistry.V1.Record.Descriptor.NestedTypes[3]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public 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.StatusTypeRestricted:
StatusTypeRestricted = other.StatusTypeRestricted.Clone();
break;
case ReasonOneofCase.UidExist:
UidExist = other.UidExist.Clone();
break;
case ReasonOneofCase.OwnedByAnotherUser:
OwnedByAnotherUser = other.OwnedByAnotherUser.Clone();
break;
case ReasonOneofCase.AlreadyLinked:
AlreadyLinked = other.AlreadyLinked.Clone();
break;
case ReasonOneofCase.Conflict:
Conflict = other.Conflict.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 "status_type_restricted" field.
public const int StatusTypeRestrictedFieldNumber = 1;
///
/// Перевод статуса запрещён
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.StatusTypeRestricted StatusTypeRestricted {
get { return reasonCase_ == ReasonOneofCase.StatusTypeRestricted ? (global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.StatusTypeRestricted) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.StatusTypeRestricted;
}
}
/// Field number for the "uid_exist" field.
public const int UidExistFieldNumber = 2;
///
/// Запись уже существует
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.UidExist UidExist {
get { return reasonCase_ == ReasonOneofCase.UidExist ? (global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.UidExist) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.UidExist;
}
}
/// Field number for the "owned_by_another_user" field.
public const int OwnedByAnotherUserFieldNumber = 3;
///
/// Вы не владелец
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.OwnedByAnotherUser OwnedByAnotherUser {
get { return reasonCase_ == ReasonOneofCase.OwnedByAnotherUser ? (global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.OwnedByAnotherUser) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.OwnedByAnotherUser;
}
}
/// Field number for the "already_linked" field.
public const int AlreadyLinkedFieldNumber = 4;
///
/// Ключ уже использован
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.AlreadyLinked AlreadyLinked {
get { return reasonCase_ == ReasonOneofCase.AlreadyLinked ? (global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.AlreadyLinked) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.AlreadyLinked;
}
}
/// Field number for the "conflict" field.
public const int ConflictFieldNumber = 5;
///
/// Конфликт версий
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.Conflict Conflict {
get { return reasonCase_ == ReasonOneofCase.Conflict ? (global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.Conflict) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Conflict;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
StatusTypeRestricted = 1,
UidExist = 2,
OwnedByAnotherUser = 3,
AlreadyLinked = 4,
Conflict = 5,
}
private ReasonOneofCase reasonCase_ = ReasonOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ReasonOneofCase ReasonCase {
get { return reasonCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearReason() {
reasonCase_ = ReasonOneofCase.None;
reason_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as 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(StatusTypeRestricted, other.StatusTypeRestricted)) return false;
if (!object.Equals(UidExist, other.UidExist)) return false;
if (!object.Equals(OwnedByAnotherUser, other.OwnedByAnotherUser)) return false;
if (!object.Equals(AlreadyLinked, other.AlreadyLinked)) return false;
if (!object.Equals(Conflict, other.Conflict)) 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.StatusTypeRestricted) hash ^= StatusTypeRestricted.GetHashCode();
if (reasonCase_ == ReasonOneofCase.UidExist) hash ^= UidExist.GetHashCode();
if (reasonCase_ == ReasonOneofCase.OwnedByAnotherUser) hash ^= OwnedByAnotherUser.GetHashCode();
if (reasonCase_ == ReasonOneofCase.AlreadyLinked) hash ^= AlreadyLinked.GetHashCode();
if (reasonCase_ == ReasonOneofCase.Conflict) hash ^= Conflict.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.StatusTypeRestricted) {
output.WriteRawTag(10);
output.WriteMessage(StatusTypeRestricted);
}
if (reasonCase_ == ReasonOneofCase.UidExist) {
output.WriteRawTag(18);
output.WriteMessage(UidExist);
}
if (reasonCase_ == ReasonOneofCase.OwnedByAnotherUser) {
output.WriteRawTag(26);
output.WriteMessage(OwnedByAnotherUser);
}
if (reasonCase_ == ReasonOneofCase.AlreadyLinked) {
output.WriteRawTag(34);
output.WriteMessage(AlreadyLinked);
}
if (reasonCase_ == ReasonOneofCase.Conflict) {
output.WriteRawTag(42);
output.WriteMessage(Conflict);
}
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.StatusTypeRestricted) {
output.WriteRawTag(10);
output.WriteMessage(StatusTypeRestricted);
}
if (reasonCase_ == ReasonOneofCase.UidExist) {
output.WriteRawTag(18);
output.WriteMessage(UidExist);
}
if (reasonCase_ == ReasonOneofCase.OwnedByAnotherUser) {
output.WriteRawTag(26);
output.WriteMessage(OwnedByAnotherUser);
}
if (reasonCase_ == ReasonOneofCase.AlreadyLinked) {
output.WriteRawTag(34);
output.WriteMessage(AlreadyLinked);
}
if (reasonCase_ == ReasonOneofCase.Conflict) {
output.WriteRawTag(42);
output.WriteMessage(Conflict);
}
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.StatusTypeRestricted) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(StatusTypeRestricted);
}
if (reasonCase_ == ReasonOneofCase.UidExist) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(UidExist);
}
if (reasonCase_ == ReasonOneofCase.OwnedByAnotherUser) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(OwnedByAnotherUser);
}
if (reasonCase_ == ReasonOneofCase.AlreadyLinked) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AlreadyLinked);
}
if (reasonCase_ == ReasonOneofCase.Conflict) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Conflict);
}
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.StatusTypeRestricted:
if (StatusTypeRestricted == null) {
StatusTypeRestricted = new global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.StatusTypeRestricted();
}
StatusTypeRestricted.MergeFrom(other.StatusTypeRestricted);
break;
case ReasonOneofCase.UidExist:
if (UidExist == null) {
UidExist = new global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.UidExist();
}
UidExist.MergeFrom(other.UidExist);
break;
case ReasonOneofCase.OwnedByAnotherUser:
if (OwnedByAnotherUser == null) {
OwnedByAnotherUser = new global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.OwnedByAnotherUser();
}
OwnedByAnotherUser.MergeFrom(other.OwnedByAnotherUser);
break;
case ReasonOneofCase.AlreadyLinked:
if (AlreadyLinked == null) {
AlreadyLinked = new global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.AlreadyLinked();
}
AlreadyLinked.MergeFrom(other.AlreadyLinked);
break;
case ReasonOneofCase.Conflict:
if (Conflict == null) {
Conflict = new global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.Conflict();
}
Conflict.MergeFrom(other.Conflict);
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.Rfidregistry.V1.Record.Types.SavingError.Types.StatusTypeRestricted subBuilder = new global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.StatusTypeRestricted();
if (reasonCase_ == ReasonOneofCase.StatusTypeRestricted) {
subBuilder.MergeFrom(StatusTypeRestricted);
}
input.ReadMessage(subBuilder);
StatusTypeRestricted = subBuilder;
break;
}
case 18: {
global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.UidExist subBuilder = new global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.UidExist();
if (reasonCase_ == ReasonOneofCase.UidExist) {
subBuilder.MergeFrom(UidExist);
}
input.ReadMessage(subBuilder);
UidExist = subBuilder;
break;
}
case 26: {
global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.OwnedByAnotherUser subBuilder = new global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.OwnedByAnotherUser();
if (reasonCase_ == ReasonOneofCase.OwnedByAnotherUser) {
subBuilder.MergeFrom(OwnedByAnotherUser);
}
input.ReadMessage(subBuilder);
OwnedByAnotherUser = subBuilder;
break;
}
case 34: {
global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.AlreadyLinked subBuilder = new global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.AlreadyLinked();
if (reasonCase_ == ReasonOneofCase.AlreadyLinked) {
subBuilder.MergeFrom(AlreadyLinked);
}
input.ReadMessage(subBuilder);
AlreadyLinked = subBuilder;
break;
}
case 42: {
global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.Conflict subBuilder = new global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.Conflict();
if (reasonCase_ == ReasonOneofCase.Conflict) {
subBuilder.MergeFrom(Conflict);
}
input.ReadMessage(subBuilder);
Conflict = 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.Rfidregistry.V1.Record.Types.SavingError.Types.StatusTypeRestricted subBuilder = new global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.StatusTypeRestricted();
if (reasonCase_ == ReasonOneofCase.StatusTypeRestricted) {
subBuilder.MergeFrom(StatusTypeRestricted);
}
input.ReadMessage(subBuilder);
StatusTypeRestricted = subBuilder;
break;
}
case 18: {
global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.UidExist subBuilder = new global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.UidExist();
if (reasonCase_ == ReasonOneofCase.UidExist) {
subBuilder.MergeFrom(UidExist);
}
input.ReadMessage(subBuilder);
UidExist = subBuilder;
break;
}
case 26: {
global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.OwnedByAnotherUser subBuilder = new global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.OwnedByAnotherUser();
if (reasonCase_ == ReasonOneofCase.OwnedByAnotherUser) {
subBuilder.MergeFrom(OwnedByAnotherUser);
}
input.ReadMessage(subBuilder);
OwnedByAnotherUser = subBuilder;
break;
}
case 34: {
global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.AlreadyLinked subBuilder = new global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.AlreadyLinked();
if (reasonCase_ == ReasonOneofCase.AlreadyLinked) {
subBuilder.MergeFrom(AlreadyLinked);
}
input.ReadMessage(subBuilder);
AlreadyLinked = subBuilder;
break;
}
case 42: {
global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.Conflict subBuilder = new global::Keyapis.Rfidregistry.V1.Record.Types.SavingError.Types.Conflict();
if (reasonCase_ == ReasonOneofCase.Conflict) {
subBuilder.MergeFrom(Conflict);
}
input.ReadMessage(subBuilder);
Conflict = 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 {
///
/// Причины:
/// - Недопустимый перевод статуса.
/// - Не переданы обязательные поля https://openapi-key.deploy.rtkit.dev/keyapis_rfidregistry_v1/#таблица-обязательности-передачи-полей-в-request
///
public sealed partial class StatusTypeRestricted : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StatusTypeRestricted());
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.Rfidregistry.V1.Record.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 StatusTypeRestricted() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public StatusTypeRestricted(StatusTypeRestricted other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public StatusTypeRestricted Clone() {
return new StatusTypeRestricted(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as StatusTypeRestricted);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(StatusTypeRestricted 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(StatusTypeRestricted 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 UidExist : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UidExist());
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.Rfidregistry.V1.Record.Types.SavingError.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 UidExist() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public UidExist(UidExist other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public UidExist Clone() {
return new UidExist(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as UidExist);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(UidExist 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(UidExist 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 OwnedByAnotherUser : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedByAnotherUser());
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.Rfidregistry.V1.Record.Types.SavingError.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 OwnedByAnotherUser() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OwnedByAnotherUser(OwnedByAnotherUser other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OwnedByAnotherUser Clone() {
return new OwnedByAnotherUser(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as OwnedByAnotherUser);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(OwnedByAnotherUser 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(OwnedByAnotherUser 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 AlreadyLinked : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AlreadyLinked());
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.Rfidregistry.V1.Record.Types.SavingError.Descriptor.NestedTypes[3]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AlreadyLinked() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AlreadyLinked(AlreadyLinked other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AlreadyLinked Clone() {
return new AlreadyLinked(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as AlreadyLinked);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(AlreadyLinked 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(AlreadyLinked 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
}
///
/// Причины:
/// - В базе хранится более новая версия записи, значения changed_at отличаются
///
public sealed partial class Conflict : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Conflict());
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.Rfidregistry.V1.Record.Types.SavingError.Descriptor.NestedTypes[4]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Conflict() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Conflict(Conflict other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Conflict Clone() {
return new Conflict(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Conflict);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Conflict 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(Conflict 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 RecordFilter : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RecordFilter());
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.Rfidregistry.V1.KeyapisRfidregistryRecordV1Reflection.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 RecordFilter() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public RecordFilter(RecordFilter other) : this() {
rfidTypes_ = other.rfidTypes_.Clone();
encryptionTypes_ = other.encryptionTypes_.Clone();
uids_ = other.uids_.Clone();
statusTypes_ = other.statusTypes_.Clone();
inUseRfidIds_ = other.inUseRfidIds_.Clone();
resourceOwnerIds_ = other.resourceOwnerIds_.Clone();
orderNumbers_ = other.orderNumbers_.Clone();
inUseResourceOwnerIds_ = other.inUseResourceOwnerIds_.Clone();
IsDeleted = other.IsDeleted;
Text = other.Text;
startShippedAt_ = other.startShippedAt_ != null ? other.startShippedAt_.Clone() : null;
endShippedAt_ = other.endShippedAt_ != null ? other.endShippedAt_.Clone() : null;
packageInfoBoxes_ = other.packageInfoBoxes_.Clone();
packageInfoPlaces_ = other.packageInfoPlaces_.Clone();
identificationMethodTypes_ = other.identificationMethodTypes_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public RecordFilter Clone() {
return new RecordFilter(this);
}
/// Field number for the "rfid_types" field.
public const int RfidTypesFieldNumber = 1;
private static readonly pb::FieldCodec _repeated_rfidTypes_codec
= pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Keyapis.Rfidregistry.V1.Record.Types.RfidType) x);
private readonly pbc::RepeatedField rfidTypes_ = new pbc::RepeatedField();
///
/// По типам ключей
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField RfidTypes {
get { return rfidTypes_; }
}
/// Field number for the "encryption_types" field.
public const int EncryptionTypesFieldNumber = 2;
private static readonly pb::FieldCodec _repeated_encryptionTypes_codec
= pb::FieldCodec.ForEnum(18, x => (int) x, x => (global::Keyapis.Rfidregistry.V1.Record.Types.EncryptionType) x);
private readonly pbc::RepeatedField encryptionTypes_ = new pbc::RepeatedField();
///
/// По типам шифрования
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField EncryptionTypes {
get { return encryptionTypes_; }
}
/// Field number for the "uids" field.
public const int UidsFieldNumber = 3;
private static readonly pb::FieldCodec _repeated_uids_codec
= pb::FieldCodec.ForString(26);
private readonly pbc::RepeatedField uids_ = new pbc::RepeatedField();
///
/// По номерам ключей
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField Uids {
get { return uids_; }
}
/// Field number for the "status_types" field.
public const int StatusTypesFieldNumber = 4;
private static readonly pb::FieldCodec _repeated_statusTypes_codec
= pb::FieldCodec.ForEnum(34, x => (int) x, x => (global::Keyapis.Rfidregistry.V1.Record.Types.StatusType) x);
private readonly pbc::RepeatedField statusTypes_ = new pbc::RepeatedField();
///
/// По типам статуса
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField StatusTypes {
get { return statusTypes_; }
}
/// Field number for the "in_use_rfid_ids" field.
public const int InUseRfidIdsFieldNumber = 5;
private static readonly pb::FieldCodec _repeated_inUseRfidIds_codec
= pb::FieldCodec.ForString(42);
private readonly pbc::RepeatedField inUseRfidIds_ = new pbc::RepeatedField();
///
/// По номерам привязанных ключей
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField InUseRfidIds {
get { return inUseRfidIds_; }
}
/// Field number for the "resource_owner_ids" field.
public const int ResourceOwnerIdsFieldNumber = 6;
private static readonly pb::FieldCodec _repeated_resourceOwnerIds_codec
= pb::FieldCodec.ForString(50);
private readonly pbc::RepeatedField resourceOwnerIds_ = new pbc::RepeatedField();
///
/// По владельцам
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField ResourceOwnerIds {
get { return resourceOwnerIds_; }
}
/// Field number for the "order_numbers" field.
public const int OrderNumbersFieldNumber = 7;
private static readonly pb::FieldCodec _repeated_orderNumbers_codec
= pb::FieldCodec.ForString(58);
private readonly pbc::RepeatedField orderNumbers_ = new pbc::RepeatedField();
///
/// По номерам заказа
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField OrderNumbers {
get { return orderNumbers_; }
}
/// Field number for the "in_use_resource_owner_ids" field.
public const int InUseResourceOwnerIdsFieldNumber = 8;
private static readonly pb::FieldCodec _repeated_inUseResourceOwnerIds_codec
= pb::FieldCodec.ForString(66);
private readonly pbc::RepeatedField inUseResourceOwnerIds_ = new pbc::RepeatedField();
///
/// По владельцам привязанных ключей
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField InUseResourceOwnerIds {
get { return inUseResourceOwnerIds_; }
}
/// Field number for the "is_deleted" field.
public const int IsDeletedFieldNumber = 9;
private static readonly pb::FieldCodec _single_isDeleted_codec = pb::FieldCodec.ForStructWrapper(74);
private bool? isDeleted_;
///
/// По удалённым записям.
/// По умолчанию: false
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool? IsDeleted {
get { return isDeleted_; }
set {
isDeleted_ = value;
}
}
/// Field number for the "text" field.
public const int TextFieldNumber = 10;
private static readonly pb::FieldCodec _single_text_codec = pb::FieldCodec.ForClassWrapper(82);
private string text_;
///
/// По тексту.
/// Если значение не передано то поиск по нему не производится.
/// # Диапазон: 3..64.
/// # Поиск производится по полям:
/// # - Номер заказа;
/// # - Производитель
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Text {
get { return text_; }
set {
text_ = value;
}
}
/// Field number for the "start_shipped_at" field.
public const int StartShippedAtFieldNumber = 11;
private global::Google.Protobuf.WellKnownTypes.Timestamp startShippedAt_;
///
/// Дата отгрузки от
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp StartShippedAt {
get { return startShippedAt_; }
set {
startShippedAt_ = value;
}
}
/// Field number for the "end_shipped_at" field.
public const int EndShippedAtFieldNumber = 12;
private global::Google.Protobuf.WellKnownTypes.Timestamp endShippedAt_;
///
/// Дата отгрузки до
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp EndShippedAt {
get { return endShippedAt_; }
set {
endShippedAt_ = value;
}
}
/// Field number for the "package_info_boxes" field.
public const int PackageInfoBoxesFieldNumber = 13;
private static readonly pb::FieldCodec _repeated_packageInfoBoxes_codec
= pb::FieldCodec.ForInt32(106);
private readonly pbc::RepeatedField packageInfoBoxes_ = new pbc::RepeatedField();
///
/// По номеру коробки
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField PackageInfoBoxes {
get { return packageInfoBoxes_; }
}
/// Field number for the "package_info_places" field.
public const int PackageInfoPlacesFieldNumber = 14;
private static readonly pb::FieldCodec _repeated_packageInfoPlaces_codec
= pb::FieldCodec.ForInt32(114);
private readonly pbc::RepeatedField packageInfoPlaces_ = new pbc::RepeatedField();
///
/// По номеру места в коробке
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField PackageInfoPlaces {
get { return packageInfoPlaces_; }
}
/// Field number for the "identification_method_types" field.
public const int IdentificationMethodTypesFieldNumber = 15;
private static readonly pb::FieldCodec _repeated_identificationMethodTypes_codec
= pb::FieldCodec.ForEnum(122, x => (int) x, x => (global::Keyapis.Rfidregistry.V1.Record.Types.IdentificationMethodType) x);
private readonly pbc::RepeatedField identificationMethodTypes_ = new pbc::RepeatedField();
///
/// По методу идентификации
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField IdentificationMethodTypes {
get { return identificationMethodTypes_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as RecordFilter);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(RecordFilter other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!rfidTypes_.Equals(other.rfidTypes_)) return false;
if(!encryptionTypes_.Equals(other.encryptionTypes_)) return false;
if(!uids_.Equals(other.uids_)) return false;
if(!statusTypes_.Equals(other.statusTypes_)) return false;
if(!inUseRfidIds_.Equals(other.inUseRfidIds_)) return false;
if(!resourceOwnerIds_.Equals(other.resourceOwnerIds_)) return false;
if(!orderNumbers_.Equals(other.orderNumbers_)) return false;
if(!inUseResourceOwnerIds_.Equals(other.inUseResourceOwnerIds_)) return false;
if (IsDeleted != other.IsDeleted) return false;
if (Text != other.Text) return false;
if (!object.Equals(StartShippedAt, other.StartShippedAt)) return false;
if (!object.Equals(EndShippedAt, other.EndShippedAt)) return false;
if(!packageInfoBoxes_.Equals(other.packageInfoBoxes_)) return false;
if(!packageInfoPlaces_.Equals(other.packageInfoPlaces_)) return false;
if(!identificationMethodTypes_.Equals(other.identificationMethodTypes_)) 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 ^= rfidTypes_.GetHashCode();
hash ^= encryptionTypes_.GetHashCode();
hash ^= uids_.GetHashCode();
hash ^= statusTypes_.GetHashCode();
hash ^= inUseRfidIds_.GetHashCode();
hash ^= resourceOwnerIds_.GetHashCode();
hash ^= orderNumbers_.GetHashCode();
hash ^= inUseResourceOwnerIds_.GetHashCode();
if (isDeleted_ != null) hash ^= IsDeleted.GetHashCode();
if (text_ != null) hash ^= Text.GetHashCode();
if (startShippedAt_ != null) hash ^= StartShippedAt.GetHashCode();
if (endShippedAt_ != null) hash ^= EndShippedAt.GetHashCode();
hash ^= packageInfoBoxes_.GetHashCode();
hash ^= packageInfoPlaces_.GetHashCode();
hash ^= identificationMethodTypes_.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
rfidTypes_.WriteTo(output, _repeated_rfidTypes_codec);
encryptionTypes_.WriteTo(output, _repeated_encryptionTypes_codec);
uids_.WriteTo(output, _repeated_uids_codec);
statusTypes_.WriteTo(output, _repeated_statusTypes_codec);
inUseRfidIds_.WriteTo(output, _repeated_inUseRfidIds_codec);
resourceOwnerIds_.WriteTo(output, _repeated_resourceOwnerIds_codec);
orderNumbers_.WriteTo(output, _repeated_orderNumbers_codec);
inUseResourceOwnerIds_.WriteTo(output, _repeated_inUseResourceOwnerIds_codec);
if (isDeleted_ != null) {
_single_isDeleted_codec.WriteTagAndValue(output, IsDeleted);
}
if (text_ != null) {
_single_text_codec.WriteTagAndValue(output, Text);
}
if (startShippedAt_ != null) {
output.WriteRawTag(90);
output.WriteMessage(StartShippedAt);
}
if (endShippedAt_ != null) {
output.WriteRawTag(98);
output.WriteMessage(EndShippedAt);
}
packageInfoBoxes_.WriteTo(output, _repeated_packageInfoBoxes_codec);
packageInfoPlaces_.WriteTo(output, _repeated_packageInfoPlaces_codec);
identificationMethodTypes_.WriteTo(output, _repeated_identificationMethodTypes_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
rfidTypes_.WriteTo(ref output, _repeated_rfidTypes_codec);
encryptionTypes_.WriteTo(ref output, _repeated_encryptionTypes_codec);
uids_.WriteTo(ref output, _repeated_uids_codec);
statusTypes_.WriteTo(ref output, _repeated_statusTypes_codec);
inUseRfidIds_.WriteTo(ref output, _repeated_inUseRfidIds_codec);
resourceOwnerIds_.WriteTo(ref output, _repeated_resourceOwnerIds_codec);
orderNumbers_.WriteTo(ref output, _repeated_orderNumbers_codec);
inUseResourceOwnerIds_.WriteTo(ref output, _repeated_inUseResourceOwnerIds_codec);
if (isDeleted_ != null) {
_single_isDeleted_codec.WriteTagAndValue(ref output, IsDeleted);
}
if (text_ != null) {
_single_text_codec.WriteTagAndValue(ref output, Text);
}
if (startShippedAt_ != null) {
output.WriteRawTag(90);
output.WriteMessage(StartShippedAt);
}
if (endShippedAt_ != null) {
output.WriteRawTag(98);
output.WriteMessage(EndShippedAt);
}
packageInfoBoxes_.WriteTo(ref output, _repeated_packageInfoBoxes_codec);
packageInfoPlaces_.WriteTo(ref output, _repeated_packageInfoPlaces_codec);
identificationMethodTypes_.WriteTo(ref output, _repeated_identificationMethodTypes_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
size += rfidTypes_.CalculateSize(_repeated_rfidTypes_codec);
size += encryptionTypes_.CalculateSize(_repeated_encryptionTypes_codec);
size += uids_.CalculateSize(_repeated_uids_codec);
size += statusTypes_.CalculateSize(_repeated_statusTypes_codec);
size += inUseRfidIds_.CalculateSize(_repeated_inUseRfidIds_codec);
size += resourceOwnerIds_.CalculateSize(_repeated_resourceOwnerIds_codec);
size += orderNumbers_.CalculateSize(_repeated_orderNumbers_codec);
size += inUseResourceOwnerIds_.CalculateSize(_repeated_inUseResourceOwnerIds_codec);
if (isDeleted_ != null) {
size += _single_isDeleted_codec.CalculateSizeWithTag(IsDeleted);
}
if (text_ != null) {
size += _single_text_codec.CalculateSizeWithTag(Text);
}
if (startShippedAt_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartShippedAt);
}
if (endShippedAt_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(EndShippedAt);
}
size += packageInfoBoxes_.CalculateSize(_repeated_packageInfoBoxes_codec);
size += packageInfoPlaces_.CalculateSize(_repeated_packageInfoPlaces_codec);
size += identificationMethodTypes_.CalculateSize(_repeated_identificationMethodTypes_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(RecordFilter other) {
if (other == null) {
return;
}
rfidTypes_.Add(other.rfidTypes_);
encryptionTypes_.Add(other.encryptionTypes_);
uids_.Add(other.uids_);
statusTypes_.Add(other.statusTypes_);
inUseRfidIds_.Add(other.inUseRfidIds_);
resourceOwnerIds_.Add(other.resourceOwnerIds_);
orderNumbers_.Add(other.orderNumbers_);
inUseResourceOwnerIds_.Add(other.inUseResourceOwnerIds_);
if (other.isDeleted_ != null) {
if (isDeleted_ == null || other.IsDeleted != false) {
IsDeleted = other.IsDeleted;
}
}
if (other.text_ != null) {
if (text_ == null || other.Text != "") {
Text = other.Text;
}
}
if (other.startShippedAt_ != null) {
if (startShippedAt_ == null) {
StartShippedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
StartShippedAt.MergeFrom(other.StartShippedAt);
}
if (other.endShippedAt_ != null) {
if (endShippedAt_ == null) {
EndShippedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
EndShippedAt.MergeFrom(other.EndShippedAt);
}
packageInfoBoxes_.Add(other.packageInfoBoxes_);
packageInfoPlaces_.Add(other.packageInfoPlaces_);
identificationMethodTypes_.Add(other.identificationMethodTypes_);
_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:
case 8: {
rfidTypes_.AddEntriesFrom(input, _repeated_rfidTypes_codec);
break;
}
case 18:
case 16: {
encryptionTypes_.AddEntriesFrom(input, _repeated_encryptionTypes_codec);
break;
}
case 26: {
uids_.AddEntriesFrom(input, _repeated_uids_codec);
break;
}
case 34:
case 32: {
statusTypes_.AddEntriesFrom(input, _repeated_statusTypes_codec);
break;
}
case 42: {
inUseRfidIds_.AddEntriesFrom(input, _repeated_inUseRfidIds_codec);
break;
}
case 50: {
resourceOwnerIds_.AddEntriesFrom(input, _repeated_resourceOwnerIds_codec);
break;
}
case 58: {
orderNumbers_.AddEntriesFrom(input, _repeated_orderNumbers_codec);
break;
}
case 66: {
inUseResourceOwnerIds_.AddEntriesFrom(input, _repeated_inUseResourceOwnerIds_codec);
break;
}
case 74: {
bool? value = _single_isDeleted_codec.Read(input);
if (isDeleted_ == null || value != false) {
IsDeleted = value;
}
break;
}
case 82: {
string value = _single_text_codec.Read(input);
if (text_ == null || value != "") {
Text = value;
}
break;
}
case 90: {
if (startShippedAt_ == null) {
StartShippedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(StartShippedAt);
break;
}
case 98: {
if (endShippedAt_ == null) {
EndShippedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(EndShippedAt);
break;
}
case 106:
case 104: {
packageInfoBoxes_.AddEntriesFrom(input, _repeated_packageInfoBoxes_codec);
break;
}
case 114:
case 112: {
packageInfoPlaces_.AddEntriesFrom(input, _repeated_packageInfoPlaces_codec);
break;
}
case 122:
case 120: {
identificationMethodTypes_.AddEntriesFrom(input, _repeated_identificationMethodTypes_codec);
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10:
case 8: {
rfidTypes_.AddEntriesFrom(ref input, _repeated_rfidTypes_codec);
break;
}
case 18:
case 16: {
encryptionTypes_.AddEntriesFrom(ref input, _repeated_encryptionTypes_codec);
break;
}
case 26: {
uids_.AddEntriesFrom(ref input, _repeated_uids_codec);
break;
}
case 34:
case 32: {
statusTypes_.AddEntriesFrom(ref input, _repeated_statusTypes_codec);
break;
}
case 42: {
inUseRfidIds_.AddEntriesFrom(ref input, _repeated_inUseRfidIds_codec);
break;
}
case 50: {
resourceOwnerIds_.AddEntriesFrom(ref input, _repeated_resourceOwnerIds_codec);
break;
}
case 58: {
orderNumbers_.AddEntriesFrom(ref input, _repeated_orderNumbers_codec);
break;
}
case 66: {
inUseResourceOwnerIds_.AddEntriesFrom(ref input, _repeated_inUseResourceOwnerIds_codec);
break;
}
case 74: {
bool? value = _single_isDeleted_codec.Read(ref input);
if (isDeleted_ == null || value != false) {
IsDeleted = value;
}
break;
}
case 82: {
string value = _single_text_codec.Read(ref input);
if (text_ == null || value != "") {
Text = value;
}
break;
}
case 90: {
if (startShippedAt_ == null) {
StartShippedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(StartShippedAt);
break;
}
case 98: {
if (endShippedAt_ == null) {
EndShippedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(EndShippedAt);
break;
}
case 106:
case 104: {
packageInfoBoxes_.AddEntriesFrom(ref input, _repeated_packageInfoBoxes_codec);
break;
}
case 114:
case 112: {
packageInfoPlaces_.AddEntriesFrom(ref input, _repeated_packageInfoPlaces_codec);
break;
}
case 122:
case 120: {
identificationMethodTypes_.AddEntriesFrom(ref input, _repeated_identificationMethodTypes_codec);
break;
}
}
}
}
#endif
}
///
/// Пагинация записей
///
public sealed partial class RecordPaging : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RecordPaging());
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.Rfidregistry.V1.KeyapisRfidregistryRecordV1Reflection.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 RecordPaging() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public RecordPaging(RecordPaging 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 RecordPaging Clone() {
return new RecordPaging(this);
}
/// Field number for the "order_by_type" field.
public const int OrderByTypeFieldNumber = 1;
private global::Keyapis.Rfidregistry.V1.RecordPaging.Types.OrderByType orderByType_ = global::Keyapis.Rfidregistry.V1.RecordPaging.Types.OrderByType.Unknown;
///
/// Тип значения сортировки.
/// Если значение не передано, то будет взято значение по умолчанию.
/// # По умолчанию: NEW_AT
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Rfidregistry.V1.RecordPaging.Types.OrderByType OrderByType {
get { return orderByType_; }
set {
orderByType_ = value;
}
}
/// Field number for the "direction_type" field.
public const int DirectionTypeFieldNumber = 2;
private global::Keyapis.Rfidregistry.V1.RecordPaging.Types.DirectionType directionType_ = global::Keyapis.Rfidregistry.V1.RecordPaging.Types.DirectionType.Unknown;
///
/// Тип направления сортировки.
/// # По умолчанию: DESC
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Rfidregistry.V1.RecordPaging.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 RecordPaging);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(RecordPaging 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.Rfidregistry.V1.RecordPaging.Types.OrderByType.Unknown) hash ^= OrderByType.GetHashCode();
if (DirectionType != global::Keyapis.Rfidregistry.V1.RecordPaging.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.Rfidregistry.V1.RecordPaging.Types.OrderByType.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) OrderByType);
}
if (DirectionType != global::Keyapis.Rfidregistry.V1.RecordPaging.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.Rfidregistry.V1.RecordPaging.Types.OrderByType.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) OrderByType);
}
if (DirectionType != global::Keyapis.Rfidregistry.V1.RecordPaging.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.Rfidregistry.V1.RecordPaging.Types.OrderByType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OrderByType);
}
if (DirectionType != global::Keyapis.Rfidregistry.V1.RecordPaging.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(RecordPaging other) {
if (other == null) {
return;
}
if (other.OrderByType != global::Keyapis.Rfidregistry.V1.RecordPaging.Types.OrderByType.Unknown) {
OrderByType = other.OrderByType;
}
if (other.DirectionType != global::Keyapis.Rfidregistry.V1.RecordPaging.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.Rfidregistry.V1.RecordPaging.Types.OrderByType) input.ReadEnum();
break;
}
case 16: {
DirectionType = (global::Keyapis.Rfidregistry.V1.RecordPaging.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.Rfidregistry.V1.RecordPaging.Types.OrderByType) input.ReadEnum();
break;
}
case 16: {
DirectionType = (global::Keyapis.Rfidregistry.V1.RecordPaging.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 RecordPaging 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,
///
/// По дате перевода в статус new (дате создания)
///
[pbr::OriginalName("NEW_AT")] NewAt = 1,
///
/// По времени изменения
///
[pbr::OriginalName("CHANGED_AT")] ChangedAt = 2,
///
/// По времени заказа
///
[pbr::OriginalName("ORDER_AT")] OrderAt = 3,
///
/// По номеру заказа
///
[pbr::OriginalName("ORDER_NUMBER")] OrderNumber = 4,
///
/// По рангу для поиска по тексту.
/// Применяется когда передано поле для поиска по тексту.
/// В случае если текстовое поле не передано, применяется значение по умолчанию
///
[pbr::OriginalName("RANK")] Rank = 5,
}
///
/// Справочник типов направлений сортировки.
/// # Тип: 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 PostRecordRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostRecordRequest());
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.Rfidregistry.V1.KeyapisRfidregistryRecordV1Reflection.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 PostRecordRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostRecordRequest(PostRecordRequest other) : this() {
data_ = other.data_ != null ? other.data_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostRecordRequest Clone() {
return new PostRecordRequest(this);
}
/// Field number for the "data" field.
public const int DataFieldNumber = 1;
private global::Keyapis.Rfidregistry.V1.Record data_;
///
/// Запись
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Rfidregistry.V1.Record Data {
get { return data_; }
set {
data_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostRecordRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostRecordRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Data, other.Data)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (data_ != null) hash ^= Data.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (data_ != null) {
output.WriteRawTag(10);
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 (data_ != null) {
output.WriteRawTag(10);
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 (data_ != null) {
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(PostRecordRequest other) {
if (other == null) {
return;
}
if (other.data_ != null) {
if (data_ == null) {
Data = new global::Keyapis.Rfidregistry.V1.Record();
}
Data.MergeFrom(other.Data);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
if (data_ == null) {
Data = new global::Keyapis.Rfidregistry.V1.Record();
}
input.ReadMessage(Data);
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 (data_ == null) {
Data = new global::Keyapis.Rfidregistry.V1.Record();
}
input.ReadMessage(Data);
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос сохранения записи
///
public sealed partial class PostRecordResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostRecordResponse());
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.Rfidregistry.V1.KeyapisRfidregistryRecordV1Reflection.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 PostRecordResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostRecordResponse(PostRecordResponse other) : this() {
switch (other.TypeCase) {
case TypeOneofCase.Data:
Data = other.Data.Clone();
break;
case TypeOneofCase.Error:
Error = other.Error.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostRecordResponse Clone() {
return new PostRecordResponse(this);
}
/// Field number for the "data" field.
public const int DataFieldNumber = 1;
///
/// Запись
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Rfidregistry.V1.Record Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Rfidregistry.V1.Record) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data;
}
}
/// Field number for the "error" field.
public const int ErrorFieldNumber = 2;
///
/// Ошибка
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Rfidregistry.V1.PostRecordResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Rfidregistry.V1.PostRecordResponse.Types.Error) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error;
}
}
private object type_;
/// Enum of possible cases for the "type" oneof.
public enum TypeOneofCase {
None = 0,
Data = 1,
Error = 2,
}
private TypeOneofCase typeCase_ = TypeOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TypeOneofCase TypeCase {
get { return typeCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearType() {
typeCase_ = TypeOneofCase.None;
type_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostRecordResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostRecordResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Data, other.Data)) return false;
if (!object.Equals(Error, other.Error)) return false;
if (TypeCase != other.TypeCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode();
if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode();
hash ^= (int) typeCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (typeCase_ == TypeOneofCase.Data) {
output.WriteRawTag(10);
output.WriteMessage(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (typeCase_ == TypeOneofCase.Data) {
output.WriteRawTag(10);
output.WriteMessage(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (typeCase_ == TypeOneofCase.Data) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PostRecordResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Data:
if (Data == null) {
Data = new global::Keyapis.Rfidregistry.V1.Record();
}
Data.MergeFrom(other.Data);
break;
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Keyapis.Rfidregistry.V1.PostRecordResponse.Types.Error();
}
Error.MergeFrom(other.Error);
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
global::Keyapis.Rfidregistry.V1.Record subBuilder = new global::Keyapis.Rfidregistry.V1.Record();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Keyapis.Rfidregistry.V1.PostRecordResponse.Types.Error subBuilder = new global::Keyapis.Rfidregistry.V1.PostRecordResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
global::Keyapis.Rfidregistry.V1.Record subBuilder = new global::Keyapis.Rfidregistry.V1.Record();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Keyapis.Rfidregistry.V1.PostRecordResponse.Types.Error subBuilder = new global::Keyapis.Rfidregistry.V1.PostRecordResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the PostRecordResponse 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.Rfidregistry.V1.PostRecordResponse.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.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.Rfidregistry.V1.ValidationError Validation {
get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Rfidregistry.V1.ValidationError) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation;
}
}
/// Field number for the "saving" field.
public const int SavingFieldNumber = 2;
///
/// Ошибка сохранения записи
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Rfidregistry.V1.Record.Types.SavingError Saving {
get { return reasonCase_ == ReasonOneofCase.Saving ? (global::Keyapis.Rfidregistry.V1.Record.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,
Saving = 2,
}
private ReasonOneofCase reasonCase_ = ReasonOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ReasonOneofCase ReasonCase {
get { return reasonCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearReason() {
reasonCase_ = ReasonOneofCase.None;
reason_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Error);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Error other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Validation, other.Validation)) 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.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.Saving) {
output.WriteRawTag(18);
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.Saving) {
output.WriteRawTag(18);
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.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.Rfidregistry.V1.ValidationError();
}
Validation.MergeFrom(other.Validation);
break;
case ReasonOneofCase.Saving:
if (Saving == null) {
Saving = new global::Keyapis.Rfidregistry.V1.Record.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.Rfidregistry.V1.ValidationError subBuilder = new global::Keyapis.Rfidregistry.V1.ValidationError();
if (reasonCase_ == ReasonOneofCase.Validation) {
subBuilder.MergeFrom(Validation);
}
input.ReadMessage(subBuilder);
Validation = subBuilder;
break;
}
case 18: {
global::Keyapis.Rfidregistry.V1.Record.Types.SavingError subBuilder = new global::Keyapis.Rfidregistry.V1.Record.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.Rfidregistry.V1.ValidationError subBuilder = new global::Keyapis.Rfidregistry.V1.ValidationError();
if (reasonCase_ == ReasonOneofCase.Validation) {
subBuilder.MergeFrom(Validation);
}
input.ReadMessage(subBuilder);
Validation = subBuilder;
break;
}
case 18: {
global::Keyapis.Rfidregistry.V1.Record.Types.SavingError subBuilder = new global::Keyapis.Rfidregistry.V1.Record.Types.SavingError();
if (reasonCase_ == ReasonOneofCase.Saving) {
subBuilder.MergeFrom(Saving);
}
input.ReadMessage(subBuilder);
Saving = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Запрос получения записи
///
public sealed partial class GetRecordRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRecordRequest());
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.Rfidregistry.V1.KeyapisRfidregistryRecordV1Reflection.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 GetRecordRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetRecordRequest(GetRecordRequest other) : this() {
id_ = other.id_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetRecordRequest Clone() {
return new GetRecordRequest(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");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetRecordRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetRecordRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetRecordRequest other) {
if (other == null) {
return;
}
if (other.Id.Length != 0) {
Id = other.Id;
}
_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;
}
}
}
#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;
}
}
}
}
#endif
}
///
/// Ответ на запрос получения записи
///
public sealed partial class GetRecordResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRecordResponse());
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.Rfidregistry.V1.KeyapisRfidregistryRecordV1Reflection.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 GetRecordResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetRecordResponse(GetRecordResponse other) : this() {
switch (other.TypeCase) {
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 GetRecordResponse Clone() {
return new GetRecordResponse(this);
}
/// Field number for the "data" field.
public const int DataFieldNumber = 1;
///
/// Запись
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Rfidregistry.V1.Record Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Rfidregistry.V1.Record) 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,
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 GetRecordResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetRecordResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
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.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.Data) {
output.WriteRawTag(10);
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.Data) {
output.WriteRawTag(10);
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.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(GetRecordResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Data:
if (Data == null) {
Data = new global::Keyapis.Rfidregistry.V1.Record();
}
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.Rfidregistry.V1.Record subBuilder = new global::Keyapis.Rfidregistry.V1.Record();
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.Rfidregistry.V1.Record subBuilder = new global::Keyapis.Rfidregistry.V1.Record();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
}
}
}
#endif
}
///
/// Запрос получения количества записей
///
public sealed partial class GetRecordCountRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRecordCountRequest());
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.Rfidregistry.V1.KeyapisRfidregistryRecordV1Reflection.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 GetRecordCountRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetRecordCountRequest(GetRecordCountRequest 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 GetRecordCountRequest Clone() {
return new GetRecordCountRequest(this);
}
/// Field number for the "filter" field.
public const int FilterFieldNumber = 1;
private global::Keyapis.Rfidregistry.V1.RecordFilter filter_;
///
/// Фильтр
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Rfidregistry.V1.RecordFilter 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 GetRecordCountRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetRecordCountRequest 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(GetRecordCountRequest other) {
if (other == null) {
return;
}
if (other.filter_ != null) {
if (filter_ == null) {
Filter = new global::Keyapis.Rfidregistry.V1.RecordFilter();
}
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.Rfidregistry.V1.RecordFilter();
}
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.Rfidregistry.V1.RecordFilter();
}
input.ReadMessage(Filter);
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос получения количества записей
///
public sealed partial class GetRecordCountResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRecordCountResponse());
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.Rfidregistry.V1.KeyapisRfidregistryRecordV1Reflection.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 GetRecordCountResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetRecordCountResponse(GetRecordCountResponse other) : this() {
switch (other.TypeCase) {
case TypeOneofCase.Data:
Data = other.Data;
break;
case TypeOneofCase.Error:
Error = other.Error.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetRecordCountResponse Clone() {
return new GetRecordCountResponse(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();
}
}
/// Field number for the "error" field.
public const int ErrorFieldNumber = 2;
///
/// Ошибка
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Rfidregistry.V1.GetRecordCountResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Rfidregistry.V1.GetRecordCountResponse.Types.Error) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error;
}
}
private object type_;
/// Enum of possible cases for the "type" oneof.
public enum TypeOneofCase {
None = 0,
Data = 1,
Error = 2,
}
private TypeOneofCase typeCase_ = TypeOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TypeOneofCase TypeCase {
get { return typeCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearType() {
typeCase_ = TypeOneofCase.None;
type_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetRecordCountResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetRecordCountResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Data != other.Data) return false;
if (!object.Equals(Error, other.Error)) return false;
if (TypeCase != other.TypeCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (HasData) hash ^= Data.GetHashCode();
if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode();
hash ^= (int) typeCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (HasData) {
output.WriteRawTag(8);
output.WriteInt32(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (HasData) {
output.WriteRawTag(8);
output.WriteInt32(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (HasData) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetRecordCountResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Data:
Data = other.Data;
break;
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Keyapis.Rfidregistry.V1.GetRecordCountResponse.Types.Error();
}
Error.MergeFrom(other.Error);
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
Data = input.ReadInt32();
break;
}
case 18: {
global::Keyapis.Rfidregistry.V1.GetRecordCountResponse.Types.Error subBuilder = new global::Keyapis.Rfidregistry.V1.GetRecordCountResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
Data = input.ReadInt32();
break;
}
case 18: {
global::Keyapis.Rfidregistry.V1.GetRecordCountResponse.Types.Error subBuilder = new global::Keyapis.Rfidregistry.V1.GetRecordCountResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the GetRecordCountResponse 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.Rfidregistry.V1.GetRecordCountResponse.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.Rfidregistry.V1.ValidationError Validation {
get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Rfidregistry.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.Rfidregistry.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.Rfidregistry.V1.ValidationError subBuilder = new global::Keyapis.Rfidregistry.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.Rfidregistry.V1.ValidationError subBuilder = new global::Keyapis.Rfidregistry.V1.ValidationError();
if (reasonCase_ == ReasonOneofCase.Validation) {
subBuilder.MergeFrom(Validation);
}
input.ReadMessage(subBuilder);
Validation = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Запрос получения списка
///
public sealed partial class GetRecordListRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRecordListRequest());
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.Rfidregistry.V1.KeyapisRfidregistryRecordV1Reflection.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 GetRecordListRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetRecordListRequest(GetRecordListRequest 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 GetRecordListRequest Clone() {
return new GetRecordListRequest(this);
}
/// Field number for the "filter" field.
public const int FilterFieldNumber = 1;
private global::Keyapis.Rfidregistry.V1.RecordFilter filter_;
///
/// Фильтр
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Rfidregistry.V1.RecordFilter 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.Rfidregistry.V1.RecordPaging Paging {
get { return paginationCase_ == PaginationOneofCase.Paging ? (global::Keyapis.Rfidregistry.V1.RecordPaging) 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 GetRecordListRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetRecordListRequest 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(GetRecordListRequest other) {
if (other == null) {
return;
}
if (other.filter_ != null) {
if (filter_ == null) {
Filter = new global::Keyapis.Rfidregistry.V1.RecordFilter();
}
Filter.MergeFrom(other.Filter);
}
switch (other.PaginationCase) {
case PaginationOneofCase.Paging:
if (Paging == null) {
Paging = new global::Keyapis.Rfidregistry.V1.RecordPaging();
}
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.Rfidregistry.V1.RecordFilter();
}
input.ReadMessage(Filter);
break;
}
case 18: {
global::Keyapis.Rfidregistry.V1.RecordPaging subBuilder = new global::Keyapis.Rfidregistry.V1.RecordPaging();
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.Rfidregistry.V1.RecordFilter();
}
input.ReadMessage(Filter);
break;
}
case 18: {
global::Keyapis.Rfidregistry.V1.RecordPaging subBuilder = new global::Keyapis.Rfidregistry.V1.RecordPaging();
if (paginationCase_ == PaginationOneofCase.Paging) {
subBuilder.MergeFrom(Paging);
}
input.ReadMessage(subBuilder);
Paging = subBuilder;
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос получения списка записей
///
public sealed partial class GetRecordListResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRecordListResponse());
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.Rfidregistry.V1.KeyapisRfidregistryRecordV1Reflection.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 GetRecordListResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetRecordListResponse(GetRecordListResponse other) : this() {
switch (other.TypeCase) {
case TypeOneofCase.Data:
Data = other.Data.Clone();
break;
case TypeOneofCase.Error:
Error = other.Error.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetRecordListResponse Clone() {
return new GetRecordListResponse(this);
}
/// Field number for the "data" field.
public const int DataFieldNumber = 1;
///
/// Запись
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Rfidregistry.V1.Record Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Rfidregistry.V1.Record) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data;
}
}
/// Field number for the "error" field.
public const int ErrorFieldNumber = 2;
///
/// Ошибка
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Rfidregistry.V1.GetRecordListResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Rfidregistry.V1.GetRecordListResponse.Types.Error) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error;
}
}
private object type_;
/// Enum of possible cases for the "type" oneof.
public enum TypeOneofCase {
None = 0,
Data = 1,
Error = 2,
}
private TypeOneofCase typeCase_ = TypeOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TypeOneofCase TypeCase {
get { return typeCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearType() {
typeCase_ = TypeOneofCase.None;
type_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetRecordListResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetRecordListResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Data, other.Data)) return false;
if (!object.Equals(Error, other.Error)) return false;
if (TypeCase != other.TypeCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode();
if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode();
hash ^= (int) typeCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (typeCase_ == TypeOneofCase.Data) {
output.WriteRawTag(10);
output.WriteMessage(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (typeCase_ == TypeOneofCase.Data) {
output.WriteRawTag(10);
output.WriteMessage(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (typeCase_ == TypeOneofCase.Data) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetRecordListResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Data:
if (Data == null) {
Data = new global::Keyapis.Rfidregistry.V1.Record();
}
Data.MergeFrom(other.Data);
break;
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Keyapis.Rfidregistry.V1.GetRecordListResponse.Types.Error();
}
Error.MergeFrom(other.Error);
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
global::Keyapis.Rfidregistry.V1.Record subBuilder = new global::Keyapis.Rfidregistry.V1.Record();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Keyapis.Rfidregistry.V1.GetRecordListResponse.Types.Error subBuilder = new global::Keyapis.Rfidregistry.V1.GetRecordListResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
global::Keyapis.Rfidregistry.V1.Record subBuilder = new global::Keyapis.Rfidregistry.V1.Record();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Keyapis.Rfidregistry.V1.GetRecordListResponse.Types.Error subBuilder = new global::Keyapis.Rfidregistry.V1.GetRecordListResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the GetRecordListResponse 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.Rfidregistry.V1.GetRecordListResponse.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.Rfidregistry.V1.ValidationError Validation {
get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Rfidregistry.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.Rfidregistry.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.Rfidregistry.V1.ValidationError subBuilder = new global::Keyapis.Rfidregistry.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.Rfidregistry.V1.ValidationError subBuilder = new global::Keyapis.Rfidregistry.V1.ValidationError();
if (reasonCase_ == ReasonOneofCase.Validation) {
subBuilder.MergeFrom(Validation);
}
input.ReadMessage(subBuilder);
Validation = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Запрос удаления записи из реестра.
/// Можно удалить только свои записи
///
public sealed partial class DeleteRecordRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteRecordRequest());
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.Rfidregistry.V1.KeyapisRfidregistryRecordV1Reflection.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 DeleteRecordRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeleteRecordRequest(DeleteRecordRequest other) : this() {
id_ = other.id_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeleteRecordRequest Clone() {
return new DeleteRecordRequest(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");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as DeleteRecordRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(DeleteRecordRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) 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 (_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 (_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 (_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 (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(DeleteRecordRequest other) {
if (other == null) {
return;
}
if (other.Id.Length != 0) {
Id = other.Id;
}
_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;
}
}
}
#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;
}
}
}
}
#endif
}
///
/// Ответ на запрос удаления записи из реестра
///
public sealed partial class DeleteRecordResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteRecordResponse());
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.Rfidregistry.V1.KeyapisRfidregistryRecordV1Reflection.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 DeleteRecordResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeleteRecordResponse(DeleteRecordResponse other) : this() {
switch (other.TypeCase) {
case TypeOneofCase.Error:
Error = other.Error.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeleteRecordResponse Clone() {
return new DeleteRecordResponse(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.Rfidregistry.V1.DeleteRecordResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Rfidregistry.V1.DeleteRecordResponse.Types.Error) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error;
}
}
private object type_;
/// Enum of possible cases for the "type" oneof.
public enum TypeOneofCase {
None = 0,
Error = 1,
}
private TypeOneofCase typeCase_ = TypeOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TypeOneofCase TypeCase {
get { return typeCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearType() {
typeCase_ = TypeOneofCase.None;
type_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as DeleteRecordResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(DeleteRecordResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Error, other.Error)) return false;
if (TypeCase != other.TypeCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode();
hash ^= (int) typeCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(10);
output.WriteMessage(Error);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(10);
output.WriteMessage(Error);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (typeCase_ == TypeOneofCase.Error) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(DeleteRecordResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Keyapis.Rfidregistry.V1.DeleteRecordResponse.Types.Error();
}
Error.MergeFrom(other.Error);
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
global::Keyapis.Rfidregistry.V1.DeleteRecordResponse.Types.Error subBuilder = new global::Keyapis.Rfidregistry.V1.DeleteRecordResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
global::Keyapis.Rfidregistry.V1.DeleteRecordResponse.Types.Error subBuilder = new global::Keyapis.Rfidregistry.V1.DeleteRecordResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the DeleteRecordResponse 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.Rfidregistry.V1.DeleteRecordResponse.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.Rfidregistry.V1.ValidationError Validation {
get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Rfidregistry.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.Rfidregistry.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.Rfidregistry.V1.ValidationError subBuilder = new global::Keyapis.Rfidregistry.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.Rfidregistry.V1.ValidationError subBuilder = new global::Keyapis.Rfidregistry.V1.ValidationError();
if (reasonCase_ == ReasonOneofCase.Validation) {
subBuilder.MergeFrom(Validation);
}
input.ReadMessage(subBuilder);
Validation = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Ошибки валидации.
/// Эти проверки выполняются до обращения в базу данных
///
public sealed partial class ValidationError : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValidationError());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.Rfidregistry.V1.KeyapisRfidregistryRecordV1Reflection.Descriptor.MessageTypes[13]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ValidationError() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ValidationError(ValidationError other) : this() {
path_ = other.path_;
message_ = other.message_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ValidationError Clone() {
return new ValidationError(this);
}
/// Field number for the "path" field.
public const int PathFieldNumber = 1;
private string path_ = "";
///
/// Путь к полю в формате наименования прото
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Path {
get { return path_; }
set {
path_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "message" field.
public const int MessageFieldNumber = 2;
private string message_ = "";
///
/// Валидационное сообщение
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Message {
get { return message_; }
set {
message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as ValidationError);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ValidationError other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Path != other.Path) return false;
if (Message != other.Message) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Path.Length != 0) hash ^= Path.GetHashCode();
if (Message.Length != 0) hash ^= Message.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Path.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Path);
}
if (Message.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Message);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (Path.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Path);
}
if (Message.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Message);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Path.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Path);
}
if (Message.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ValidationError other) {
if (other == null) {
return;
}
if (other.Path.Length != 0) {
Path = other.Path;
}
if (other.Message.Length != 0) {
Message = other.Message;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
Path = input.ReadString();
break;
}
case 18: {
Message = input.ReadString();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
Path = input.ReadString();
break;
}
case 18: {
Message = input.ReadString();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code