1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: google/protobuf/descriptor.proto 3 #pragma warning disable 1591, 0612, 3021 4 #region Designer generated code 5 6 using pb = global::Google.Protobuf; 7 using pbc = global::Google.Protobuf.Collections; 8 using pbr = global::Google.Protobuf.Reflection; 9 using scg = global::System.Collections.Generic; 10 namespace Google.Protobuf.Reflection { 11 12 /// <summary>Holder for reflection information generated from google/protobuf/descriptor.proto</summary> 13 internal static partial class DescriptorReflection { 14 15 #region Descriptor 16 /// <summary>File descriptor for google/protobuf/descriptor.proto</summary> 17 public static pbr::FileDescriptor Descriptor { 18 get { return descriptor; } 19 } 20 private static pbr::FileDescriptor descriptor; 21 DescriptorReflection()22 static DescriptorReflection() { 23 byte[] descriptorData = global::System.Convert.FromBase64String( 24 string.Concat( 25 "CiBnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvci5wcm90bxIPZ29vZ2xlLnBy", 26 "b3RvYnVmIkcKEUZpbGVEZXNjcmlwdG9yU2V0EjIKBGZpbGUYASADKAsyJC5n", 27 "b29nbGUucHJvdG9idWYuRmlsZURlc2NyaXB0b3JQcm90byLbAwoTRmlsZURl", 28 "c2NyaXB0b3JQcm90bxIMCgRuYW1lGAEgASgJEg8KB3BhY2thZ2UYAiABKAkS", 29 "EgoKZGVwZW5kZW5jeRgDIAMoCRIZChFwdWJsaWNfZGVwZW5kZW5jeRgKIAMo", 30 "BRIXCg93ZWFrX2RlcGVuZGVuY3kYCyADKAUSNgoMbWVzc2FnZV90eXBlGAQg", 31 "AygLMiAuZ29vZ2xlLnByb3RvYnVmLkRlc2NyaXB0b3JQcm90bxI3CgllbnVt", 32 "X3R5cGUYBSADKAsyJC5nb29nbGUucHJvdG9idWYuRW51bURlc2NyaXB0b3JQ", 33 "cm90bxI4CgdzZXJ2aWNlGAYgAygLMicuZ29vZ2xlLnByb3RvYnVmLlNlcnZp", 34 "Y2VEZXNjcmlwdG9yUHJvdG8SOAoJZXh0ZW5zaW9uGAcgAygLMiUuZ29vZ2xl", 35 "LnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvEi0KB29wdGlvbnMYCCAB", 36 "KAsyHC5nb29nbGUucHJvdG9idWYuRmlsZU9wdGlvbnMSOQoQc291cmNlX2Nv", 37 "ZGVfaW5mbxgJIAEoCzIfLmdvb2dsZS5wcm90b2J1Zi5Tb3VyY2VDb2RlSW5m", 38 "bxIOCgZzeW50YXgYDCABKAki8AQKD0Rlc2NyaXB0b3JQcm90bxIMCgRuYW1l", 39 "GAEgASgJEjQKBWZpZWxkGAIgAygLMiUuZ29vZ2xlLnByb3RvYnVmLkZpZWxk", 40 "RGVzY3JpcHRvclByb3RvEjgKCWV4dGVuc2lvbhgGIAMoCzIlLmdvb2dsZS5w", 41 "cm90b2J1Zi5GaWVsZERlc2NyaXB0b3JQcm90bxI1CgtuZXN0ZWRfdHlwZRgD", 42 "IAMoCzIgLmdvb2dsZS5wcm90b2J1Zi5EZXNjcmlwdG9yUHJvdG8SNwoJZW51", 43 "bV90eXBlGAQgAygLMiQuZ29vZ2xlLnByb3RvYnVmLkVudW1EZXNjcmlwdG9y", 44 "UHJvdG8SSAoPZXh0ZW5zaW9uX3JhbmdlGAUgAygLMi8uZ29vZ2xlLnByb3Rv", 45 "YnVmLkRlc2NyaXB0b3JQcm90by5FeHRlbnNpb25SYW5nZRI5CgpvbmVvZl9k", 46 "ZWNsGAggAygLMiUuZ29vZ2xlLnByb3RvYnVmLk9uZW9mRGVzY3JpcHRvclBy", 47 "b3RvEjAKB29wdGlvbnMYByABKAsyHy5nb29nbGUucHJvdG9idWYuTWVzc2Fn", 48 "ZU9wdGlvbnMSRgoOcmVzZXJ2ZWRfcmFuZ2UYCSADKAsyLi5nb29nbGUucHJv", 49 "dG9idWYuRGVzY3JpcHRvclByb3RvLlJlc2VydmVkUmFuZ2USFQoNcmVzZXJ2", 50 "ZWRfbmFtZRgKIAMoCRosCg5FeHRlbnNpb25SYW5nZRINCgVzdGFydBgBIAEo", 51 "BRILCgNlbmQYAiABKAUaKwoNUmVzZXJ2ZWRSYW5nZRINCgVzdGFydBgBIAEo", 52 "BRILCgNlbmQYAiABKAUivAUKFEZpZWxkRGVzY3JpcHRvclByb3RvEgwKBG5h", 53 "bWUYASABKAkSDgoGbnVtYmVyGAMgASgFEjoKBWxhYmVsGAQgASgOMisuZ29v", 54 "Z2xlLnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvLkxhYmVsEjgKBHR5", 55 "cGUYBSABKA4yKi5nb29nbGUucHJvdG9idWYuRmllbGREZXNjcmlwdG9yUHJv", 56 "dG8uVHlwZRIRCgl0eXBlX25hbWUYBiABKAkSEAoIZXh0ZW5kZWUYAiABKAkS", 57 "FQoNZGVmYXVsdF92YWx1ZRgHIAEoCRITCgtvbmVvZl9pbmRleBgJIAEoBRIR", 58 "Cglqc29uX25hbWUYCiABKAkSLgoHb3B0aW9ucxgIIAEoCzIdLmdvb2dsZS5w", 59 "cm90b2J1Zi5GaWVsZE9wdGlvbnMitgIKBFR5cGUSDwoLVFlQRV9ET1VCTEUQ", 60 "ARIOCgpUWVBFX0ZMT0FUEAISDgoKVFlQRV9JTlQ2NBADEg8KC1RZUEVfVUlO", 61 "VDY0EAQSDgoKVFlQRV9JTlQzMhAFEhAKDFRZUEVfRklYRUQ2NBAGEhAKDFRZ", 62 "UEVfRklYRUQzMhAHEg0KCVRZUEVfQk9PTBAIEg8KC1RZUEVfU1RSSU5HEAkS", 63 "DgoKVFlQRV9HUk9VUBAKEhAKDFRZUEVfTUVTU0FHRRALEg4KClRZUEVfQllU", 64 "RVMQDBIPCgtUWVBFX1VJTlQzMhANEg0KCVRZUEVfRU5VTRAOEhEKDVRZUEVf", 65 "U0ZJWEVEMzIQDxIRCg1UWVBFX1NGSVhFRDY0EBASDwoLVFlQRV9TSU5UMzIQ", 66 "ERIPCgtUWVBFX1NJTlQ2NBASIkMKBUxhYmVsEhIKDkxBQkVMX09QVElPTkFM", 67 "EAESEgoOTEFCRUxfUkVRVUlSRUQQAhISCg5MQUJFTF9SRVBFQVRFRBADIlQK", 68 "FE9uZW9mRGVzY3JpcHRvclByb3RvEgwKBG5hbWUYASABKAkSLgoHb3B0aW9u", 69 "cxgCIAEoCzIdLmdvb2dsZS5wcm90b2J1Zi5PbmVvZk9wdGlvbnMijAEKE0Vu", 70 "dW1EZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRI4CgV2YWx1ZRgCIAMo", 71 "CzIpLmdvb2dsZS5wcm90b2J1Zi5FbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8S", 72 "LQoHb3B0aW9ucxgDIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5FbnVtT3B0aW9u", 73 "cyJsChhFbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRIO", 74 "CgZudW1iZXIYAiABKAUSMgoHb3B0aW9ucxgDIAEoCzIhLmdvb2dsZS5wcm90", 75 "b2J1Zi5FbnVtVmFsdWVPcHRpb25zIpABChZTZXJ2aWNlRGVzY3JpcHRvclBy", 76 "b3RvEgwKBG5hbWUYASABKAkSNgoGbWV0aG9kGAIgAygLMiYuZ29vZ2xlLnBy", 77 "b3RvYnVmLk1ldGhvZERlc2NyaXB0b3JQcm90bxIwCgdvcHRpb25zGAMgASgL", 78 "Mh8uZ29vZ2xlLnByb3RvYnVmLlNlcnZpY2VPcHRpb25zIsEBChVNZXRob2RE", 79 "ZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRISCgppbnB1dF90eXBlGAIg", 80 "ASgJEhMKC291dHB1dF90eXBlGAMgASgJEi8KB29wdGlvbnMYBCABKAsyHi5n", 81 "b29nbGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxIfChBjbGllbnRfc3RyZWFt", 82 "aW5nGAUgASgIOgVmYWxzZRIfChBzZXJ2ZXJfc3RyZWFtaW5nGAYgASgIOgVm", 83 "YWxzZSKHBQoLRmlsZU9wdGlvbnMSFAoMamF2YV9wYWNrYWdlGAEgASgJEhwK", 84 "FGphdmFfb3V0ZXJfY2xhc3NuYW1lGAggASgJEiIKE2phdmFfbXVsdGlwbGVf", 85 "ZmlsZXMYCiABKAg6BWZhbHNlEiwKHWphdmFfZ2VuZXJhdGVfZXF1YWxzX2Fu", 86 "ZF9oYXNoGBQgASgIOgVmYWxzZRIlChZqYXZhX3N0cmluZ19jaGVja191dGY4", 87 "GBsgASgIOgVmYWxzZRJGCgxvcHRpbWl6ZV9mb3IYCSABKA4yKS5nb29nbGUu", 88 "cHJvdG9idWYuRmlsZU9wdGlvbnMuT3B0aW1pemVNb2RlOgVTUEVFRBISCgpn", 89 "b19wYWNrYWdlGAsgASgJEiIKE2NjX2dlbmVyaWNfc2VydmljZXMYECABKAg6", 90 "BWZhbHNlEiQKFWphdmFfZ2VuZXJpY19zZXJ2aWNlcxgRIAEoCDoFZmFsc2US", 91 "IgoTcHlfZ2VuZXJpY19zZXJ2aWNlcxgSIAEoCDoFZmFsc2USGQoKZGVwcmVj", 92 "YXRlZBgXIAEoCDoFZmFsc2USHwoQY2NfZW5hYmxlX2FyZW5hcxgfIAEoCDoF", 93 "ZmFsc2USGQoRb2JqY19jbGFzc19wcmVmaXgYJCABKAkSGAoQY3NoYXJwX25h", 94 "bWVzcGFjZRglIAEoCRJDChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsy", 95 "JC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbiI6CgxPcHRp", 96 "bWl6ZU1vZGUSCQoFU1BFRUQQARINCglDT0RFX1NJWkUQAhIQCgxMSVRFX1JV", 97 "TlRJTUUQAyoJCOgHEICAgIACSgQIJhAnIuYBCg5NZXNzYWdlT3B0aW9ucxIm", 98 "ChdtZXNzYWdlX3NldF93aXJlX2Zvcm1hdBgBIAEoCDoFZmFsc2USLgofbm9f", 99 "c3RhbmRhcmRfZGVzY3JpcHRvcl9hY2Nlc3NvchgCIAEoCDoFZmFsc2USGQoK", 100 "ZGVwcmVjYXRlZBgDIAEoCDoFZmFsc2USEQoJbWFwX2VudHJ5GAcgASgIEkMK", 101 "FHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1", 102 "Zi5VbmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIimAMKDEZpZWxkT3B0", 103 "aW9ucxI6CgVjdHlwZRgBIAEoDjIjLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9w", 104 "dGlvbnMuQ1R5cGU6BlNUUklORxIOCgZwYWNrZWQYAiABKAgSPwoGanN0eXBl", 105 "GAYgASgOMiQuZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucy5KU1R5cGU6", 106 "CUpTX05PUk1BTBITCgRsYXp5GAUgASgIOgVmYWxzZRIZCgpkZXByZWNhdGVk", 107 "GAMgASgIOgVmYWxzZRITCgR3ZWFrGAogASgIOgVmYWxzZRJDChR1bmludGVy", 108 "cHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRl", 109 "cnByZXRlZE9wdGlvbiIvCgVDVHlwZRIKCgZTVFJJTkcQABIICgRDT1JEEAES", 110 "EAoMU1RSSU5HX1BJRUNFEAIiNQoGSlNUeXBlEg0KCUpTX05PUk1BTBAAEg0K", 111 "CUpTX1NUUklORxABEg0KCUpTX05VTUJFUhACKgkI6AcQgICAgAIiXgoMT25l", 112 "b2ZPcHRpb25zEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdv", 113 "b2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIi", 114 "jQEKC0VudW1PcHRpb25zEhMKC2FsbG93X2FsaWFzGAIgASgIEhkKCmRlcHJl", 115 "Y2F0ZWQYAyABKAg6BWZhbHNlEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcH", 116 "IAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI", 117 "6AcQgICAgAIifQoQRW51bVZhbHVlT3B0aW9ucxIZCgpkZXByZWNhdGVkGAEg", 118 "ASgIOgVmYWxzZRJDChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5n", 119 "b29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbioJCOgHEICAgIAC", 120 "InsKDlNlcnZpY2VPcHRpb25zEhkKCmRlcHJlY2F0ZWQYISABKAg6BWZhbHNl", 121 "EkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90", 122 "b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIiegoNTWV0aG9k", 123 "T3B0aW9ucxIZCgpkZXByZWNhdGVkGCEgASgIOgVmYWxzZRJDChR1bmludGVy", 124 "cHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRl", 125 "cnByZXRlZE9wdGlvbioJCOgHEICAgIACIp4CChNVbmludGVycHJldGVkT3B0", 126 "aW9uEjsKBG5hbWUYAiADKAsyLS5nb29nbGUucHJvdG9idWYuVW5pbnRlcnBy", 127 "ZXRlZE9wdGlvbi5OYW1lUGFydBIYChBpZGVudGlmaWVyX3ZhbHVlGAMgASgJ", 128 "EhoKEnBvc2l0aXZlX2ludF92YWx1ZRgEIAEoBBIaChJuZWdhdGl2ZV9pbnRf", 129 "dmFsdWUYBSABKAMSFAoMZG91YmxlX3ZhbHVlGAYgASgBEhQKDHN0cmluZ192", 130 "YWx1ZRgHIAEoDBIXCg9hZ2dyZWdhdGVfdmFsdWUYCCABKAkaMwoITmFtZVBh", 131 "cnQSEQoJbmFtZV9wYXJ0GAEgAigJEhQKDGlzX2V4dGVuc2lvbhgCIAIoCCLV", 132 "AQoOU291cmNlQ29kZUluZm8SOgoIbG9jYXRpb24YASADKAsyKC5nb29nbGUu", 133 "cHJvdG9idWYuU291cmNlQ29kZUluZm8uTG9jYXRpb24ahgEKCExvY2F0aW9u", 134 "EhAKBHBhdGgYASADKAVCAhABEhAKBHNwYW4YAiADKAVCAhABEhgKEGxlYWRp", 135 "bmdfY29tbWVudHMYAyABKAkSGQoRdHJhaWxpbmdfY29tbWVudHMYBCABKAkS", 136 "IQoZbGVhZGluZ19kZXRhY2hlZF9jb21tZW50cxgGIAMoCSKnAQoRR2VuZXJh", 137 "dGVkQ29kZUluZm8SQQoKYW5ub3RhdGlvbhgBIAMoCzItLmdvb2dsZS5wcm90", 138 "b2J1Zi5HZW5lcmF0ZWRDb2RlSW5mby5Bbm5vdGF0aW9uGk8KCkFubm90YXRp", 139 "b24SEAoEcGF0aBgBIAMoBUICEAESEwoLc291cmNlX2ZpbGUYAiABKAkSDQoF", 140 "YmVnaW4YAyABKAUSCwoDZW5kGAQgASgFQlsKE2NvbS5nb29nbGUucHJvdG9i", 141 "dWZCEERlc2NyaXB0b3JQcm90b3NIAVoKZGVzY3JpcHRvcqABAaICA0dQQqoC", 142 "Gkdvb2dsZS5Qcm90b2J1Zi5SZWZsZWN0aW9u")); 143 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, 144 new pbr::FileDescriptor[] { }, 145 new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { 146 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FileDescriptorSet), global::Google.Protobuf.Reflection.FileDescriptorSet.Parser, new[]{ "File" }, null, null, null), 147 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FileDescriptorProto), global::Google.Protobuf.Reflection.FileDescriptorProto.Parser, new[]{ "Name", "Package", "Dependency", "PublicDependency", "WeakDependency", "MessageType", "EnumType", "Service", "Extension", "Options", "SourceCodeInfo", "Syntax" }, null, null, null), 148 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.DescriptorProto), global::Google.Protobuf.Reflection.DescriptorProto.Parser, new[]{ "Name", "Field", "Extension", "NestedType", "EnumType", "ExtensionRange", "OneofDecl", "Options", "ReservedRange", "ReservedName" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange), global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange.Parser, new[]{ "Start", "End" }, null, null, null), 149 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange), global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange.Parser, new[]{ "Start", "End" }, null, null, null)}), 150 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto), global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser, new[]{ "Name", "Number", "Label", "Type", "TypeName", "Extendee", "DefaultValue", "OneofIndex", "JsonName", "Options" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type), typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label) }, null), 151 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.OneofDescriptorProto), global::Google.Protobuf.Reflection.OneofDescriptorProto.Parser, new[]{ "Name", "Options" }, null, null, null), 152 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumDescriptorProto), global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser, new[]{ "Name", "Value", "Options" }, null, null, null), 153 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumValueDescriptorProto), global::Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser, new[]{ "Name", "Number", "Options" }, null, null, null), 154 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.ServiceDescriptorProto), global::Google.Protobuf.Reflection.ServiceDescriptorProto.Parser, new[]{ "Name", "Method", "Options" }, null, null, null), 155 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.MethodDescriptorProto), global::Google.Protobuf.Reflection.MethodDescriptorProto.Parser, new[]{ "Name", "InputType", "OutputType", "Options", "ClientStreaming", "ServerStreaming" }, null, null, null), 156 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FileOptions), global::Google.Protobuf.Reflection.FileOptions.Parser, new[]{ "JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAndHash", "JavaStringCheckUtf8", "OptimizeFor", "GoPackage", "CcGenericServices", "JavaGenericServices", "PyGenericServices", "Deprecated", "CcEnableArenas", "ObjcClassPrefix", "CsharpNamespace", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) }, null), 157 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.MessageOptions), global::Google.Protobuf.Reflection.MessageOptions.Parser, new[]{ "MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", "MapEntry", "UninterpretedOption" }, null, null, null), 158 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FieldOptions), global::Google.Protobuf.Reflection.FieldOptions.Parser, new[]{ "Ctype", "Packed", "Jstype", "Lazy", "Deprecated", "Weak", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.CType), typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) }, null), 159 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.OneofOptions), global::Google.Protobuf.Reflection.OneofOptions.Parser, new[]{ "UninterpretedOption" }, null, null, null), 160 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumOptions), global::Google.Protobuf.Reflection.EnumOptions.Parser, new[]{ "AllowAlias", "Deprecated", "UninterpretedOption" }, null, null, null), 161 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumValueOptions), global::Google.Protobuf.Reflection.EnumValueOptions.Parser, new[]{ "Deprecated", "UninterpretedOption" }, null, null, null), 162 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.ServiceOptions), global::Google.Protobuf.Reflection.ServiceOptions.Parser, new[]{ "Deprecated", "UninterpretedOption" }, null, null, null), 163 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.MethodOptions), global::Google.Protobuf.Reflection.MethodOptions.Parser, new[]{ "Deprecated", "UninterpretedOption" }, null, null, null), 164 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.UninterpretedOption), global::Google.Protobuf.Reflection.UninterpretedOption.Parser, new[]{ "Name", "IdentifierValue", "PositiveIntValue", "NegativeIntValue", "DoubleValue", "StringValue", "AggregateValue" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart), global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart.Parser, new[]{ "NamePart_", "IsExtension" }, null, null, null)}), 165 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.SourceCodeInfo), global::Google.Protobuf.Reflection.SourceCodeInfo.Parser, new[]{ "Location" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location), global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location.Parser, new[]{ "Path", "Span", "LeadingComments", "TrailingComments", "LeadingDetachedComments" }, null, null, null)}), 166 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.GeneratedCodeInfo), global::Google.Protobuf.Reflection.GeneratedCodeInfo.Parser, new[]{ "Annotation" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation), global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation.Parser, new[]{ "Path", "SourceFile", "Begin", "End" }, null, null, null)}) 167 })); 168 } 169 #endregion 170 171 } 172 #region Messages 173 /// <summary> 174 /// The protocol compiler can output a FileDescriptorSet containing the .proto 175 /// files it parses. 176 /// </summary> 177 internal sealed partial class FileDescriptorSet : pb::IMessage<FileDescriptorSet> { 178 private static readonly pb::MessageParser<FileDescriptorSet> _parser = new pb::MessageParser<FileDescriptorSet>(() => new FileDescriptorSet()); 179 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 180 public static pb::MessageParser<FileDescriptorSet> Parser { get { return _parser; } } 181 182 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 183 public static pbr::MessageDescriptor Descriptor { 184 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[0]; } 185 } 186 187 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 188 pbr::MessageDescriptor pb::IMessage.Descriptor { 189 get { return Descriptor; } 190 } 191 192 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] FileDescriptorSet()193 public FileDescriptorSet() { 194 OnConstruction(); 195 } 196 OnConstruction()197 partial void OnConstruction(); 198 199 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] FileDescriptorSet(FileDescriptorSet other)200 public FileDescriptorSet(FileDescriptorSet other) : this() { 201 file_ = other.file_.Clone(); 202 } 203 204 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()205 public FileDescriptorSet Clone() { 206 return new FileDescriptorSet(this); 207 } 208 209 /// <summary>Field number for the "file" field.</summary> 210 public const int FileFieldNumber = 1; 211 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FileDescriptorProto> _repeated_file_codec 212 = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.FileDescriptorProto.Parser); 213 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> file_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto>(); 214 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 215 public pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> File { 216 get { return file_; } 217 } 218 219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)220 public override bool Equals(object other) { 221 return Equals(other as FileDescriptorSet); 222 } 223 224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(FileDescriptorSet other)225 public bool Equals(FileDescriptorSet other) { 226 if (ReferenceEquals(other, null)) { 227 return false; 228 } 229 if (ReferenceEquals(other, this)) { 230 return true; 231 } 232 if(!file_.Equals(other.file_)) return false; 233 return true; 234 } 235 236 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()237 public override int GetHashCode() { 238 int hash = 1; 239 hash ^= file_.GetHashCode(); 240 return hash; 241 } 242 243 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()244 public override string ToString() { 245 return pb::JsonFormatter.ToDiagnosticString(this); 246 } 247 248 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)249 public void WriteTo(pb::CodedOutputStream output) { 250 file_.WriteTo(output, _repeated_file_codec); 251 } 252 253 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()254 public int CalculateSize() { 255 int size = 0; 256 size += file_.CalculateSize(_repeated_file_codec); 257 return size; 258 } 259 260 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(FileDescriptorSet other)261 public void MergeFrom(FileDescriptorSet other) { 262 if (other == null) { 263 return; 264 } 265 file_.Add(other.file_); 266 } 267 268 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)269 public void MergeFrom(pb::CodedInputStream input) { 270 uint tag; 271 while ((tag = input.ReadTag()) != 0) { 272 switch(tag) { 273 default: 274 input.SkipLastField(); 275 break; 276 case 10: { 277 file_.AddEntriesFrom(input, _repeated_file_codec); 278 break; 279 } 280 } 281 } 282 } 283 284 } 285 286 /// <summary> 287 /// Describes a complete .proto file. 288 /// </summary> 289 internal sealed partial class FileDescriptorProto : pb::IMessage<FileDescriptorProto> { 290 private static readonly pb::MessageParser<FileDescriptorProto> _parser = new pb::MessageParser<FileDescriptorProto>(() => new FileDescriptorProto()); 291 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 292 public static pb::MessageParser<FileDescriptorProto> Parser { get { return _parser; } } 293 294 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 295 public static pbr::MessageDescriptor Descriptor { 296 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[1]; } 297 } 298 299 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 300 pbr::MessageDescriptor pb::IMessage.Descriptor { 301 get { return Descriptor; } 302 } 303 304 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] FileDescriptorProto()305 public FileDescriptorProto() { 306 OnConstruction(); 307 } 308 OnConstruction()309 partial void OnConstruction(); 310 311 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] FileDescriptorProto(FileDescriptorProto other)312 public FileDescriptorProto(FileDescriptorProto other) : this() { 313 name_ = other.name_; 314 package_ = other.package_; 315 dependency_ = other.dependency_.Clone(); 316 publicDependency_ = other.publicDependency_.Clone(); 317 weakDependency_ = other.weakDependency_.Clone(); 318 messageType_ = other.messageType_.Clone(); 319 enumType_ = other.enumType_.Clone(); 320 service_ = other.service_.Clone(); 321 extension_ = other.extension_.Clone(); 322 Options = other.options_ != null ? other.Options.Clone() : null; 323 SourceCodeInfo = other.sourceCodeInfo_ != null ? other.SourceCodeInfo.Clone() : null; 324 syntax_ = other.syntax_; 325 } 326 327 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()328 public FileDescriptorProto Clone() { 329 return new FileDescriptorProto(this); 330 } 331 332 /// <summary>Field number for the "name" field.</summary> 333 public const int NameFieldNumber = 1; 334 private string name_ = ""; 335 /// <summary> 336 /// file name, relative to root of source tree 337 /// </summary> 338 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 339 public string Name { 340 get { return name_; } 341 set { 342 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 343 } 344 } 345 346 /// <summary>Field number for the "package" field.</summary> 347 public const int PackageFieldNumber = 2; 348 private string package_ = ""; 349 /// <summary> 350 /// e.g. "foo", "foo.bar", etc. 351 /// </summary> 352 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 353 public string Package { 354 get { return package_; } 355 set { 356 package_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 357 } 358 } 359 360 /// <summary>Field number for the "dependency" field.</summary> 361 public const int DependencyFieldNumber = 3; 362 private static readonly pb::FieldCodec<string> _repeated_dependency_codec 363 = pb::FieldCodec.ForString(26); 364 private readonly pbc::RepeatedField<string> dependency_ = new pbc::RepeatedField<string>(); 365 /// <summary> 366 /// Names of files imported by this file. 367 /// </summary> 368 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 369 public pbc::RepeatedField<string> Dependency { 370 get { return dependency_; } 371 } 372 373 /// <summary>Field number for the "public_dependency" field.</summary> 374 public const int PublicDependencyFieldNumber = 10; 375 private static readonly pb::FieldCodec<int> _repeated_publicDependency_codec 376 = pb::FieldCodec.ForInt32(80); 377 private readonly pbc::RepeatedField<int> publicDependency_ = new pbc::RepeatedField<int>(); 378 /// <summary> 379 /// Indexes of the public imported files in the dependency list above. 380 /// </summary> 381 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 382 public pbc::RepeatedField<int> PublicDependency { 383 get { return publicDependency_; } 384 } 385 386 /// <summary>Field number for the "weak_dependency" field.</summary> 387 public const int WeakDependencyFieldNumber = 11; 388 private static readonly pb::FieldCodec<int> _repeated_weakDependency_codec 389 = pb::FieldCodec.ForInt32(88); 390 private readonly pbc::RepeatedField<int> weakDependency_ = new pbc::RepeatedField<int>(); 391 /// <summary> 392 /// Indexes of the weak imported files in the dependency list. 393 /// For Google-internal migration only. Do not use. 394 /// </summary> 395 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 396 public pbc::RepeatedField<int> WeakDependency { 397 get { return weakDependency_; } 398 } 399 400 /// <summary>Field number for the "message_type" field.</summary> 401 public const int MessageTypeFieldNumber = 4; 402 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_messageType_codec 403 = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.DescriptorProto.Parser); 404 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> messageType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>(); 405 /// <summary> 406 /// All top-level definitions in this file. 407 /// </summary> 408 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 409 public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> MessageType { 410 get { return messageType_; } 411 } 412 413 /// <summary>Field number for the "enum_type" field.</summary> 414 public const int EnumTypeFieldNumber = 5; 415 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec 416 = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser); 417 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>(); 418 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 419 public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType { 420 get { return enumType_; } 421 } 422 423 /// <summary>Field number for the "service" field.</summary> 424 public const int ServiceFieldNumber = 6; 425 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.ServiceDescriptorProto> _repeated_service_codec 426 = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.ServiceDescriptorProto.Parser); 427 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> service_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto>(); 428 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 429 public pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> Service { 430 get { return service_; } 431 } 432 433 /// <summary>Field number for the "extension" field.</summary> 434 public const int ExtensionFieldNumber = 7; 435 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec 436 = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser); 437 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>(); 438 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 439 public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension { 440 get { return extension_; } 441 } 442 443 /// <summary>Field number for the "options" field.</summary> 444 public const int OptionsFieldNumber = 8; 445 private global::Google.Protobuf.Reflection.FileOptions options_; 446 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 447 public global::Google.Protobuf.Reflection.FileOptions Options { 448 get { return options_; } 449 set { 450 options_ = value; 451 } 452 } 453 454 /// <summary>Field number for the "source_code_info" field.</summary> 455 public const int SourceCodeInfoFieldNumber = 9; 456 private global::Google.Protobuf.Reflection.SourceCodeInfo sourceCodeInfo_; 457 /// <summary> 458 /// This field contains optional information about the original source code. 459 /// You may safely remove this entire field without harming runtime 460 /// functionality of the descriptors -- the information is needed only by 461 /// development tools. 462 /// </summary> 463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 464 public global::Google.Protobuf.Reflection.SourceCodeInfo SourceCodeInfo { 465 get { return sourceCodeInfo_; } 466 set { 467 sourceCodeInfo_ = value; 468 } 469 } 470 471 /// <summary>Field number for the "syntax" field.</summary> 472 public const int SyntaxFieldNumber = 12; 473 private string syntax_ = ""; 474 /// <summary> 475 /// The syntax of the proto file. 476 /// The supported values are "proto2" and "proto3". 477 /// </summary> 478 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 479 public string Syntax { 480 get { return syntax_; } 481 set { 482 syntax_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 483 } 484 } 485 486 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)487 public override bool Equals(object other) { 488 return Equals(other as FileDescriptorProto); 489 } 490 491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(FileDescriptorProto other)492 public bool Equals(FileDescriptorProto other) { 493 if (ReferenceEquals(other, null)) { 494 return false; 495 } 496 if (ReferenceEquals(other, this)) { 497 return true; 498 } 499 if (Name != other.Name) return false; 500 if (Package != other.Package) return false; 501 if(!dependency_.Equals(other.dependency_)) return false; 502 if(!publicDependency_.Equals(other.publicDependency_)) return false; 503 if(!weakDependency_.Equals(other.weakDependency_)) return false; 504 if(!messageType_.Equals(other.messageType_)) return false; 505 if(!enumType_.Equals(other.enumType_)) return false; 506 if(!service_.Equals(other.service_)) return false; 507 if(!extension_.Equals(other.extension_)) return false; 508 if (!object.Equals(Options, other.Options)) return false; 509 if (!object.Equals(SourceCodeInfo, other.SourceCodeInfo)) return false; 510 if (Syntax != other.Syntax) return false; 511 return true; 512 } 513 514 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()515 public override int GetHashCode() { 516 int hash = 1; 517 if (Name.Length != 0) hash ^= Name.GetHashCode(); 518 if (Package.Length != 0) hash ^= Package.GetHashCode(); 519 hash ^= dependency_.GetHashCode(); 520 hash ^= publicDependency_.GetHashCode(); 521 hash ^= weakDependency_.GetHashCode(); 522 hash ^= messageType_.GetHashCode(); 523 hash ^= enumType_.GetHashCode(); 524 hash ^= service_.GetHashCode(); 525 hash ^= extension_.GetHashCode(); 526 if (options_ != null) hash ^= Options.GetHashCode(); 527 if (sourceCodeInfo_ != null) hash ^= SourceCodeInfo.GetHashCode(); 528 if (Syntax.Length != 0) hash ^= Syntax.GetHashCode(); 529 return hash; 530 } 531 532 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()533 public override string ToString() { 534 return pb::JsonFormatter.ToDiagnosticString(this); 535 } 536 537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)538 public void WriteTo(pb::CodedOutputStream output) { 539 if (Name.Length != 0) { 540 output.WriteRawTag(10); 541 output.WriteString(Name); 542 } 543 if (Package.Length != 0) { 544 output.WriteRawTag(18); 545 output.WriteString(Package); 546 } 547 dependency_.WriteTo(output, _repeated_dependency_codec); 548 messageType_.WriteTo(output, _repeated_messageType_codec); 549 enumType_.WriteTo(output, _repeated_enumType_codec); 550 service_.WriteTo(output, _repeated_service_codec); 551 extension_.WriteTo(output, _repeated_extension_codec); 552 if (options_ != null) { 553 output.WriteRawTag(66); 554 output.WriteMessage(Options); 555 } 556 if (sourceCodeInfo_ != null) { 557 output.WriteRawTag(74); 558 output.WriteMessage(SourceCodeInfo); 559 } 560 publicDependency_.WriteTo(output, _repeated_publicDependency_codec); 561 weakDependency_.WriteTo(output, _repeated_weakDependency_codec); 562 if (Syntax.Length != 0) { 563 output.WriteRawTag(98); 564 output.WriteString(Syntax); 565 } 566 } 567 568 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()569 public int CalculateSize() { 570 int size = 0; 571 if (Name.Length != 0) { 572 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); 573 } 574 if (Package.Length != 0) { 575 size += 1 + pb::CodedOutputStream.ComputeStringSize(Package); 576 } 577 size += dependency_.CalculateSize(_repeated_dependency_codec); 578 size += publicDependency_.CalculateSize(_repeated_publicDependency_codec); 579 size += weakDependency_.CalculateSize(_repeated_weakDependency_codec); 580 size += messageType_.CalculateSize(_repeated_messageType_codec); 581 size += enumType_.CalculateSize(_repeated_enumType_codec); 582 size += service_.CalculateSize(_repeated_service_codec); 583 size += extension_.CalculateSize(_repeated_extension_codec); 584 if (options_ != null) { 585 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); 586 } 587 if (sourceCodeInfo_ != null) { 588 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceCodeInfo); 589 } 590 if (Syntax.Length != 0) { 591 size += 1 + pb::CodedOutputStream.ComputeStringSize(Syntax); 592 } 593 return size; 594 } 595 596 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(FileDescriptorProto other)597 public void MergeFrom(FileDescriptorProto other) { 598 if (other == null) { 599 return; 600 } 601 if (other.Name.Length != 0) { 602 Name = other.Name; 603 } 604 if (other.Package.Length != 0) { 605 Package = other.Package; 606 } 607 dependency_.Add(other.dependency_); 608 publicDependency_.Add(other.publicDependency_); 609 weakDependency_.Add(other.weakDependency_); 610 messageType_.Add(other.messageType_); 611 enumType_.Add(other.enumType_); 612 service_.Add(other.service_); 613 extension_.Add(other.extension_); 614 if (other.options_ != null) { 615 if (options_ == null) { 616 options_ = new global::Google.Protobuf.Reflection.FileOptions(); 617 } 618 Options.MergeFrom(other.Options); 619 } 620 if (other.sourceCodeInfo_ != null) { 621 if (sourceCodeInfo_ == null) { 622 sourceCodeInfo_ = new global::Google.Protobuf.Reflection.SourceCodeInfo(); 623 } 624 SourceCodeInfo.MergeFrom(other.SourceCodeInfo); 625 } 626 if (other.Syntax.Length != 0) { 627 Syntax = other.Syntax; 628 } 629 } 630 631 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)632 public void MergeFrom(pb::CodedInputStream input) { 633 uint tag; 634 while ((tag = input.ReadTag()) != 0) { 635 switch(tag) { 636 default: 637 input.SkipLastField(); 638 break; 639 case 10: { 640 Name = input.ReadString(); 641 break; 642 } 643 case 18: { 644 Package = input.ReadString(); 645 break; 646 } 647 case 26: { 648 dependency_.AddEntriesFrom(input, _repeated_dependency_codec); 649 break; 650 } 651 case 34: { 652 messageType_.AddEntriesFrom(input, _repeated_messageType_codec); 653 break; 654 } 655 case 42: { 656 enumType_.AddEntriesFrom(input, _repeated_enumType_codec); 657 break; 658 } 659 case 50: { 660 service_.AddEntriesFrom(input, _repeated_service_codec); 661 break; 662 } 663 case 58: { 664 extension_.AddEntriesFrom(input, _repeated_extension_codec); 665 break; 666 } 667 case 66: { 668 if (options_ == null) { 669 options_ = new global::Google.Protobuf.Reflection.FileOptions(); 670 } 671 input.ReadMessage(options_); 672 break; 673 } 674 case 74: { 675 if (sourceCodeInfo_ == null) { 676 sourceCodeInfo_ = new global::Google.Protobuf.Reflection.SourceCodeInfo(); 677 } 678 input.ReadMessage(sourceCodeInfo_); 679 break; 680 } 681 case 82: 682 case 80: { 683 publicDependency_.AddEntriesFrom(input, _repeated_publicDependency_codec); 684 break; 685 } 686 case 90: 687 case 88: { 688 weakDependency_.AddEntriesFrom(input, _repeated_weakDependency_codec); 689 break; 690 } 691 case 98: { 692 Syntax = input.ReadString(); 693 break; 694 } 695 } 696 } 697 } 698 699 } 700 701 /// <summary> 702 /// Describes a message type. 703 /// </summary> 704 internal sealed partial class DescriptorProto : pb::IMessage<DescriptorProto> { 705 private static readonly pb::MessageParser<DescriptorProto> _parser = new pb::MessageParser<DescriptorProto>(() => new DescriptorProto()); 706 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 707 public static pb::MessageParser<DescriptorProto> Parser { get { return _parser; } } 708 709 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 710 public static pbr::MessageDescriptor Descriptor { 711 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[2]; } 712 } 713 714 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 715 pbr::MessageDescriptor pb::IMessage.Descriptor { 716 get { return Descriptor; } 717 } 718 719 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] DescriptorProto()720 public DescriptorProto() { 721 OnConstruction(); 722 } 723 OnConstruction()724 partial void OnConstruction(); 725 726 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] DescriptorProto(DescriptorProto other)727 public DescriptorProto(DescriptorProto other) : this() { 728 name_ = other.name_; 729 field_ = other.field_.Clone(); 730 extension_ = other.extension_.Clone(); 731 nestedType_ = other.nestedType_.Clone(); 732 enumType_ = other.enumType_.Clone(); 733 extensionRange_ = other.extensionRange_.Clone(); 734 oneofDecl_ = other.oneofDecl_.Clone(); 735 Options = other.options_ != null ? other.Options.Clone() : null; 736 reservedRange_ = other.reservedRange_.Clone(); 737 reservedName_ = other.reservedName_.Clone(); 738 } 739 740 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()741 public DescriptorProto Clone() { 742 return new DescriptorProto(this); 743 } 744 745 /// <summary>Field number for the "name" field.</summary> 746 public const int NameFieldNumber = 1; 747 private string name_ = ""; 748 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 749 public string Name { 750 get { return name_; } 751 set { 752 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 753 } 754 } 755 756 /// <summary>Field number for the "field" field.</summary> 757 public const int FieldFieldNumber = 2; 758 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_field_codec 759 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser); 760 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> field_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>(); 761 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 762 public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Field { 763 get { return field_; } 764 } 765 766 /// <summary>Field number for the "extension" field.</summary> 767 public const int ExtensionFieldNumber = 6; 768 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec 769 = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser); 770 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>(); 771 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 772 public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension { 773 get { return extension_; } 774 } 775 776 /// <summary>Field number for the "nested_type" field.</summary> 777 public const int NestedTypeFieldNumber = 3; 778 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_nestedType_codec 779 = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.Reflection.DescriptorProto.Parser); 780 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> nestedType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>(); 781 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 782 public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> NestedType { 783 get { return nestedType_; } 784 } 785 786 /// <summary>Field number for the "enum_type" field.</summary> 787 public const int EnumTypeFieldNumber = 4; 788 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec 789 = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser); 790 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>(); 791 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 792 public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType { 793 get { return enumType_; } 794 } 795 796 /// <summary>Field number for the "extension_range" field.</summary> 797 public const int ExtensionRangeFieldNumber = 5; 798 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> _repeated_extensionRange_codec 799 = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange.Parser); 800 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> extensionRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange>(); 801 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 802 public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> ExtensionRange { 803 get { return extensionRange_; } 804 } 805 806 /// <summary>Field number for the "oneof_decl" field.</summary> 807 public const int OneofDeclFieldNumber = 8; 808 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.OneofDescriptorProto> _repeated_oneofDecl_codec 809 = pb::FieldCodec.ForMessage(66, global::Google.Protobuf.Reflection.OneofDescriptorProto.Parser); 810 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> oneofDecl_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto>(); 811 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 812 public pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> OneofDecl { 813 get { return oneofDecl_; } 814 } 815 816 /// <summary>Field number for the "options" field.</summary> 817 public const int OptionsFieldNumber = 7; 818 private global::Google.Protobuf.Reflection.MessageOptions options_; 819 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 820 public global::Google.Protobuf.Reflection.MessageOptions Options { 821 get { return options_; } 822 set { 823 options_ = value; 824 } 825 } 826 827 /// <summary>Field number for the "reserved_range" field.</summary> 828 public const int ReservedRangeFieldNumber = 9; 829 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> _repeated_reservedRange_codec 830 = pb::FieldCodec.ForMessage(74, global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange.Parser); 831 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> reservedRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange>(); 832 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 833 public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> ReservedRange { 834 get { return reservedRange_; } 835 } 836 837 /// <summary>Field number for the "reserved_name" field.</summary> 838 public const int ReservedNameFieldNumber = 10; 839 private static readonly pb::FieldCodec<string> _repeated_reservedName_codec 840 = pb::FieldCodec.ForString(82); 841 private readonly pbc::RepeatedField<string> reservedName_ = new pbc::RepeatedField<string>(); 842 /// <summary> 843 /// Reserved field names, which may not be used by fields in the same message. 844 /// A given name may only be reserved once. 845 /// </summary> 846 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 847 public pbc::RepeatedField<string> ReservedName { 848 get { return reservedName_; } 849 } 850 851 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)852 public override bool Equals(object other) { 853 return Equals(other as DescriptorProto); 854 } 855 856 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(DescriptorProto other)857 public bool Equals(DescriptorProto other) { 858 if (ReferenceEquals(other, null)) { 859 return false; 860 } 861 if (ReferenceEquals(other, this)) { 862 return true; 863 } 864 if (Name != other.Name) return false; 865 if(!field_.Equals(other.field_)) return false; 866 if(!extension_.Equals(other.extension_)) return false; 867 if(!nestedType_.Equals(other.nestedType_)) return false; 868 if(!enumType_.Equals(other.enumType_)) return false; 869 if(!extensionRange_.Equals(other.extensionRange_)) return false; 870 if(!oneofDecl_.Equals(other.oneofDecl_)) return false; 871 if (!object.Equals(Options, other.Options)) return false; 872 if(!reservedRange_.Equals(other.reservedRange_)) return false; 873 if(!reservedName_.Equals(other.reservedName_)) return false; 874 return true; 875 } 876 877 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()878 public override int GetHashCode() { 879 int hash = 1; 880 if (Name.Length != 0) hash ^= Name.GetHashCode(); 881 hash ^= field_.GetHashCode(); 882 hash ^= extension_.GetHashCode(); 883 hash ^= nestedType_.GetHashCode(); 884 hash ^= enumType_.GetHashCode(); 885 hash ^= extensionRange_.GetHashCode(); 886 hash ^= oneofDecl_.GetHashCode(); 887 if (options_ != null) hash ^= Options.GetHashCode(); 888 hash ^= reservedRange_.GetHashCode(); 889 hash ^= reservedName_.GetHashCode(); 890 return hash; 891 } 892 893 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()894 public override string ToString() { 895 return pb::JsonFormatter.ToDiagnosticString(this); 896 } 897 898 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)899 public void WriteTo(pb::CodedOutputStream output) { 900 if (Name.Length != 0) { 901 output.WriteRawTag(10); 902 output.WriteString(Name); 903 } 904 field_.WriteTo(output, _repeated_field_codec); 905 nestedType_.WriteTo(output, _repeated_nestedType_codec); 906 enumType_.WriteTo(output, _repeated_enumType_codec); 907 extensionRange_.WriteTo(output, _repeated_extensionRange_codec); 908 extension_.WriteTo(output, _repeated_extension_codec); 909 if (options_ != null) { 910 output.WriteRawTag(58); 911 output.WriteMessage(Options); 912 } 913 oneofDecl_.WriteTo(output, _repeated_oneofDecl_codec); 914 reservedRange_.WriteTo(output, _repeated_reservedRange_codec); 915 reservedName_.WriteTo(output, _repeated_reservedName_codec); 916 } 917 918 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()919 public int CalculateSize() { 920 int size = 0; 921 if (Name.Length != 0) { 922 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); 923 } 924 size += field_.CalculateSize(_repeated_field_codec); 925 size += extension_.CalculateSize(_repeated_extension_codec); 926 size += nestedType_.CalculateSize(_repeated_nestedType_codec); 927 size += enumType_.CalculateSize(_repeated_enumType_codec); 928 size += extensionRange_.CalculateSize(_repeated_extensionRange_codec); 929 size += oneofDecl_.CalculateSize(_repeated_oneofDecl_codec); 930 if (options_ != null) { 931 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); 932 } 933 size += reservedRange_.CalculateSize(_repeated_reservedRange_codec); 934 size += reservedName_.CalculateSize(_repeated_reservedName_codec); 935 return size; 936 } 937 938 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(DescriptorProto other)939 public void MergeFrom(DescriptorProto other) { 940 if (other == null) { 941 return; 942 } 943 if (other.Name.Length != 0) { 944 Name = other.Name; 945 } 946 field_.Add(other.field_); 947 extension_.Add(other.extension_); 948 nestedType_.Add(other.nestedType_); 949 enumType_.Add(other.enumType_); 950 extensionRange_.Add(other.extensionRange_); 951 oneofDecl_.Add(other.oneofDecl_); 952 if (other.options_ != null) { 953 if (options_ == null) { 954 options_ = new global::Google.Protobuf.Reflection.MessageOptions(); 955 } 956 Options.MergeFrom(other.Options); 957 } 958 reservedRange_.Add(other.reservedRange_); 959 reservedName_.Add(other.reservedName_); 960 } 961 962 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)963 public void MergeFrom(pb::CodedInputStream input) { 964 uint tag; 965 while ((tag = input.ReadTag()) != 0) { 966 switch(tag) { 967 default: 968 input.SkipLastField(); 969 break; 970 case 10: { 971 Name = input.ReadString(); 972 break; 973 } 974 case 18: { 975 field_.AddEntriesFrom(input, _repeated_field_codec); 976 break; 977 } 978 case 26: { 979 nestedType_.AddEntriesFrom(input, _repeated_nestedType_codec); 980 break; 981 } 982 case 34: { 983 enumType_.AddEntriesFrom(input, _repeated_enumType_codec); 984 break; 985 } 986 case 42: { 987 extensionRange_.AddEntriesFrom(input, _repeated_extensionRange_codec); 988 break; 989 } 990 case 50: { 991 extension_.AddEntriesFrom(input, _repeated_extension_codec); 992 break; 993 } 994 case 58: { 995 if (options_ == null) { 996 options_ = new global::Google.Protobuf.Reflection.MessageOptions(); 997 } 998 input.ReadMessage(options_); 999 break; 1000 } 1001 case 66: { 1002 oneofDecl_.AddEntriesFrom(input, _repeated_oneofDecl_codec); 1003 break; 1004 } 1005 case 74: { 1006 reservedRange_.AddEntriesFrom(input, _repeated_reservedRange_codec); 1007 break; 1008 } 1009 case 82: { 1010 reservedName_.AddEntriesFrom(input, _repeated_reservedName_codec); 1011 break; 1012 } 1013 } 1014 } 1015 } 1016 1017 #region Nested types 1018 /// <summary>Container for nested types declared in the DescriptorProto message type.</summary> 1019 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1020 public static partial class Types { 1021 internal sealed partial class ExtensionRange : pb::IMessage<ExtensionRange> { 1022 private static readonly pb::MessageParser<ExtensionRange> _parser = new pb::MessageParser<ExtensionRange>(() => new ExtensionRange()); 1023 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1024 public static pb::MessageParser<ExtensionRange> Parser { get { return _parser; } } 1025 1026 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1027 public static pbr::MessageDescriptor Descriptor { 1028 get { return global::Google.Protobuf.Reflection.DescriptorProto.Descriptor.NestedTypes[0]; } 1029 } 1030 1031 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1032 pbr::MessageDescriptor pb::IMessage.Descriptor { 1033 get { return Descriptor; } 1034 } 1035 1036 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ExtensionRange()1037 public ExtensionRange() { 1038 OnConstruction(); 1039 } 1040 OnConstruction()1041 partial void OnConstruction(); 1042 1043 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ExtensionRange(ExtensionRange other)1044 public ExtensionRange(ExtensionRange other) : this() { 1045 start_ = other.start_; 1046 end_ = other.end_; 1047 } 1048 1049 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()1050 public ExtensionRange Clone() { 1051 return new ExtensionRange(this); 1052 } 1053 1054 /// <summary>Field number for the "start" field.</summary> 1055 public const int StartFieldNumber = 1; 1056 private int start_; 1057 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1058 public int Start { 1059 get { return start_; } 1060 set { 1061 start_ = value; 1062 } 1063 } 1064 1065 /// <summary>Field number for the "end" field.</summary> 1066 public const int EndFieldNumber = 2; 1067 private int end_; 1068 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1069 public int End { 1070 get { return end_; } 1071 set { 1072 end_ = value; 1073 } 1074 } 1075 1076 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)1077 public override bool Equals(object other) { 1078 return Equals(other as ExtensionRange); 1079 } 1080 1081 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(ExtensionRange other)1082 public bool Equals(ExtensionRange other) { 1083 if (ReferenceEquals(other, null)) { 1084 return false; 1085 } 1086 if (ReferenceEquals(other, this)) { 1087 return true; 1088 } 1089 if (Start != other.Start) return false; 1090 if (End != other.End) return false; 1091 return true; 1092 } 1093 1094 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()1095 public override int GetHashCode() { 1096 int hash = 1; 1097 if (Start != 0) hash ^= Start.GetHashCode(); 1098 if (End != 0) hash ^= End.GetHashCode(); 1099 return hash; 1100 } 1101 1102 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()1103 public override string ToString() { 1104 return pb::JsonFormatter.ToDiagnosticString(this); 1105 } 1106 1107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)1108 public void WriteTo(pb::CodedOutputStream output) { 1109 if (Start != 0) { 1110 output.WriteRawTag(8); 1111 output.WriteInt32(Start); 1112 } 1113 if (End != 0) { 1114 output.WriteRawTag(16); 1115 output.WriteInt32(End); 1116 } 1117 } 1118 1119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()1120 public int CalculateSize() { 1121 int size = 0; 1122 if (Start != 0) { 1123 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start); 1124 } 1125 if (End != 0) { 1126 size += 1 + pb::CodedOutputStream.ComputeInt32Size(End); 1127 } 1128 return size; 1129 } 1130 1131 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(ExtensionRange other)1132 public void MergeFrom(ExtensionRange other) { 1133 if (other == null) { 1134 return; 1135 } 1136 if (other.Start != 0) { 1137 Start = other.Start; 1138 } 1139 if (other.End != 0) { 1140 End = other.End; 1141 } 1142 } 1143 1144 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)1145 public void MergeFrom(pb::CodedInputStream input) { 1146 uint tag; 1147 while ((tag = input.ReadTag()) != 0) { 1148 switch(tag) { 1149 default: 1150 input.SkipLastField(); 1151 break; 1152 case 8: { 1153 Start = input.ReadInt32(); 1154 break; 1155 } 1156 case 16: { 1157 End = input.ReadInt32(); 1158 break; 1159 } 1160 } 1161 } 1162 } 1163 1164 } 1165 1166 /// <summary> 1167 /// Range of reserved tag numbers. Reserved tag numbers may not be used by 1168 /// fields or extension ranges in the same message. Reserved ranges may 1169 /// not overlap. 1170 /// </summary> 1171 internal sealed partial class ReservedRange : pb::IMessage<ReservedRange> { 1172 private static readonly pb::MessageParser<ReservedRange> _parser = new pb::MessageParser<ReservedRange>(() => new ReservedRange()); 1173 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1174 public static pb::MessageParser<ReservedRange> Parser { get { return _parser; } } 1175 1176 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1177 public static pbr::MessageDescriptor Descriptor { 1178 get { return global::Google.Protobuf.Reflection.DescriptorProto.Descriptor.NestedTypes[1]; } 1179 } 1180 1181 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1182 pbr::MessageDescriptor pb::IMessage.Descriptor { 1183 get { return Descriptor; } 1184 } 1185 1186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ReservedRange()1187 public ReservedRange() { 1188 OnConstruction(); 1189 } 1190 OnConstruction()1191 partial void OnConstruction(); 1192 1193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ReservedRange(ReservedRange other)1194 public ReservedRange(ReservedRange other) : this() { 1195 start_ = other.start_; 1196 end_ = other.end_; 1197 } 1198 1199 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()1200 public ReservedRange Clone() { 1201 return new ReservedRange(this); 1202 } 1203 1204 /// <summary>Field number for the "start" field.</summary> 1205 public const int StartFieldNumber = 1; 1206 private int start_; 1207 /// <summary> 1208 /// Inclusive. 1209 /// </summary> 1210 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1211 public int Start { 1212 get { return start_; } 1213 set { 1214 start_ = value; 1215 } 1216 } 1217 1218 /// <summary>Field number for the "end" field.</summary> 1219 public const int EndFieldNumber = 2; 1220 private int end_; 1221 /// <summary> 1222 /// Exclusive. 1223 /// </summary> 1224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1225 public int End { 1226 get { return end_; } 1227 set { 1228 end_ = value; 1229 } 1230 } 1231 1232 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)1233 public override bool Equals(object other) { 1234 return Equals(other as ReservedRange); 1235 } 1236 1237 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(ReservedRange other)1238 public bool Equals(ReservedRange other) { 1239 if (ReferenceEquals(other, null)) { 1240 return false; 1241 } 1242 if (ReferenceEquals(other, this)) { 1243 return true; 1244 } 1245 if (Start != other.Start) return false; 1246 if (End != other.End) return false; 1247 return true; 1248 } 1249 1250 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()1251 public override int GetHashCode() { 1252 int hash = 1; 1253 if (Start != 0) hash ^= Start.GetHashCode(); 1254 if (End != 0) hash ^= End.GetHashCode(); 1255 return hash; 1256 } 1257 1258 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()1259 public override string ToString() { 1260 return pb::JsonFormatter.ToDiagnosticString(this); 1261 } 1262 1263 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)1264 public void WriteTo(pb::CodedOutputStream output) { 1265 if (Start != 0) { 1266 output.WriteRawTag(8); 1267 output.WriteInt32(Start); 1268 } 1269 if (End != 0) { 1270 output.WriteRawTag(16); 1271 output.WriteInt32(End); 1272 } 1273 } 1274 1275 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()1276 public int CalculateSize() { 1277 int size = 0; 1278 if (Start != 0) { 1279 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start); 1280 } 1281 if (End != 0) { 1282 size += 1 + pb::CodedOutputStream.ComputeInt32Size(End); 1283 } 1284 return size; 1285 } 1286 1287 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(ReservedRange other)1288 public void MergeFrom(ReservedRange other) { 1289 if (other == null) { 1290 return; 1291 } 1292 if (other.Start != 0) { 1293 Start = other.Start; 1294 } 1295 if (other.End != 0) { 1296 End = other.End; 1297 } 1298 } 1299 1300 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)1301 public void MergeFrom(pb::CodedInputStream input) { 1302 uint tag; 1303 while ((tag = input.ReadTag()) != 0) { 1304 switch(tag) { 1305 default: 1306 input.SkipLastField(); 1307 break; 1308 case 8: { 1309 Start = input.ReadInt32(); 1310 break; 1311 } 1312 case 16: { 1313 End = input.ReadInt32(); 1314 break; 1315 } 1316 } 1317 } 1318 } 1319 1320 } 1321 1322 } 1323 #endregion 1324 1325 } 1326 1327 /// <summary> 1328 /// Describes a field within a message. 1329 /// </summary> 1330 internal sealed partial class FieldDescriptorProto : pb::IMessage<FieldDescriptorProto> { 1331 private static readonly pb::MessageParser<FieldDescriptorProto> _parser = new pb::MessageParser<FieldDescriptorProto>(() => new FieldDescriptorProto()); 1332 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1333 public static pb::MessageParser<FieldDescriptorProto> Parser { get { return _parser; } } 1334 1335 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1336 public static pbr::MessageDescriptor Descriptor { 1337 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[3]; } 1338 } 1339 1340 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1341 pbr::MessageDescriptor pb::IMessage.Descriptor { 1342 get { return Descriptor; } 1343 } 1344 1345 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] FieldDescriptorProto()1346 public FieldDescriptorProto() { 1347 OnConstruction(); 1348 } 1349 OnConstruction()1350 partial void OnConstruction(); 1351 1352 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] FieldDescriptorProto(FieldDescriptorProto other)1353 public FieldDescriptorProto(FieldDescriptorProto other) : this() { 1354 name_ = other.name_; 1355 number_ = other.number_; 1356 label_ = other.label_; 1357 type_ = other.type_; 1358 typeName_ = other.typeName_; 1359 extendee_ = other.extendee_; 1360 defaultValue_ = other.defaultValue_; 1361 oneofIndex_ = other.oneofIndex_; 1362 jsonName_ = other.jsonName_; 1363 Options = other.options_ != null ? other.Options.Clone() : null; 1364 } 1365 1366 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()1367 public FieldDescriptorProto Clone() { 1368 return new FieldDescriptorProto(this); 1369 } 1370 1371 /// <summary>Field number for the "name" field.</summary> 1372 public const int NameFieldNumber = 1; 1373 private string name_ = ""; 1374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1375 public string Name { 1376 get { return name_; } 1377 set { 1378 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1379 } 1380 } 1381 1382 /// <summary>Field number for the "number" field.</summary> 1383 public const int NumberFieldNumber = 3; 1384 private int number_; 1385 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1386 public int Number { 1387 get { return number_; } 1388 set { 1389 number_ = value; 1390 } 1391 } 1392 1393 /// <summary>Field number for the "label" field.</summary> 1394 public const int LabelFieldNumber = 4; 1395 private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label label_ = 0; 1396 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1397 public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label Label { 1398 get { return label_; } 1399 set { 1400 label_ = value; 1401 } 1402 } 1403 1404 /// <summary>Field number for the "type" field.</summary> 1405 public const int TypeFieldNumber = 5; 1406 private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type type_ = 0; 1407 /// <summary> 1408 /// If type_name is set, this need not be set. If both this and type_name 1409 /// are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. 1410 /// </summary> 1411 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1412 public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type Type { 1413 get { return type_; } 1414 set { 1415 type_ = value; 1416 } 1417 } 1418 1419 /// <summary>Field number for the "type_name" field.</summary> 1420 public const int TypeNameFieldNumber = 6; 1421 private string typeName_ = ""; 1422 /// <summary> 1423 /// For message and enum types, this is the name of the type. If the name 1424 /// starts with a '.', it is fully-qualified. Otherwise, C++-like scoping 1425 /// rules are used to find the type (i.e. first the nested types within this 1426 /// message are searched, then within the parent, on up to the root 1427 /// namespace). 1428 /// </summary> 1429 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1430 public string TypeName { 1431 get { return typeName_; } 1432 set { 1433 typeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1434 } 1435 } 1436 1437 /// <summary>Field number for the "extendee" field.</summary> 1438 public const int ExtendeeFieldNumber = 2; 1439 private string extendee_ = ""; 1440 /// <summary> 1441 /// For extensions, this is the name of the type being extended. It is 1442 /// resolved in the same manner as type_name. 1443 /// </summary> 1444 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1445 public string Extendee { 1446 get { return extendee_; } 1447 set { 1448 extendee_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1449 } 1450 } 1451 1452 /// <summary>Field number for the "default_value" field.</summary> 1453 public const int DefaultValueFieldNumber = 7; 1454 private string defaultValue_ = ""; 1455 /// <summary> 1456 /// For numeric types, contains the original text representation of the value. 1457 /// For booleans, "true" or "false". 1458 /// For strings, contains the default text contents (not escaped in any way). 1459 /// For bytes, contains the C escaped value. All bytes >= 128 are escaped. 1460 /// TODO(kenton): Base-64 encode? 1461 /// </summary> 1462 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1463 public string DefaultValue { 1464 get { return defaultValue_; } 1465 set { 1466 defaultValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1467 } 1468 } 1469 1470 /// <summary>Field number for the "oneof_index" field.</summary> 1471 public const int OneofIndexFieldNumber = 9; 1472 private int oneofIndex_; 1473 /// <summary> 1474 /// If set, gives the index of a oneof in the containing type's oneof_decl 1475 /// list. This field is a member of that oneof. 1476 /// </summary> 1477 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1478 public int OneofIndex { 1479 get { return oneofIndex_; } 1480 set { 1481 oneofIndex_ = value; 1482 } 1483 } 1484 1485 /// <summary>Field number for the "json_name" field.</summary> 1486 public const int JsonNameFieldNumber = 10; 1487 private string jsonName_ = ""; 1488 /// <summary> 1489 /// JSON name of this field. The value is set by protocol compiler. If the 1490 /// user has set a "json_name" option on this field, that option's value 1491 /// will be used. Otherwise, it's deduced from the field's name by converting 1492 /// it to camelCase. 1493 /// </summary> 1494 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1495 public string JsonName { 1496 get { return jsonName_; } 1497 set { 1498 jsonName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1499 } 1500 } 1501 1502 /// <summary>Field number for the "options" field.</summary> 1503 public const int OptionsFieldNumber = 8; 1504 private global::Google.Protobuf.Reflection.FieldOptions options_; 1505 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1506 public global::Google.Protobuf.Reflection.FieldOptions Options { 1507 get { return options_; } 1508 set { 1509 options_ = value; 1510 } 1511 } 1512 1513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)1514 public override bool Equals(object other) { 1515 return Equals(other as FieldDescriptorProto); 1516 } 1517 1518 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(FieldDescriptorProto other)1519 public bool Equals(FieldDescriptorProto other) { 1520 if (ReferenceEquals(other, null)) { 1521 return false; 1522 } 1523 if (ReferenceEquals(other, this)) { 1524 return true; 1525 } 1526 if (Name != other.Name) return false; 1527 if (Number != other.Number) return false; 1528 if (Label != other.Label) return false; 1529 if (Type != other.Type) return false; 1530 if (TypeName != other.TypeName) return false; 1531 if (Extendee != other.Extendee) return false; 1532 if (DefaultValue != other.DefaultValue) return false; 1533 if (OneofIndex != other.OneofIndex) return false; 1534 if (JsonName != other.JsonName) return false; 1535 if (!object.Equals(Options, other.Options)) return false; 1536 return true; 1537 } 1538 1539 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()1540 public override int GetHashCode() { 1541 int hash = 1; 1542 if (Name.Length != 0) hash ^= Name.GetHashCode(); 1543 if (Number != 0) hash ^= Number.GetHashCode(); 1544 if (Label != 0) hash ^= Label.GetHashCode(); 1545 if (Type != 0) hash ^= Type.GetHashCode(); 1546 if (TypeName.Length != 0) hash ^= TypeName.GetHashCode(); 1547 if (Extendee.Length != 0) hash ^= Extendee.GetHashCode(); 1548 if (DefaultValue.Length != 0) hash ^= DefaultValue.GetHashCode(); 1549 if (OneofIndex != 0) hash ^= OneofIndex.GetHashCode(); 1550 if (JsonName.Length != 0) hash ^= JsonName.GetHashCode(); 1551 if (options_ != null) hash ^= Options.GetHashCode(); 1552 return hash; 1553 } 1554 1555 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()1556 public override string ToString() { 1557 return pb::JsonFormatter.ToDiagnosticString(this); 1558 } 1559 1560 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)1561 public void WriteTo(pb::CodedOutputStream output) { 1562 if (Name.Length != 0) { 1563 output.WriteRawTag(10); 1564 output.WriteString(Name); 1565 } 1566 if (Extendee.Length != 0) { 1567 output.WriteRawTag(18); 1568 output.WriteString(Extendee); 1569 } 1570 if (Number != 0) { 1571 output.WriteRawTag(24); 1572 output.WriteInt32(Number); 1573 } 1574 if (Label != 0) { 1575 output.WriteRawTag(32); 1576 output.WriteEnum((int) Label); 1577 } 1578 if (Type != 0) { 1579 output.WriteRawTag(40); 1580 output.WriteEnum((int) Type); 1581 } 1582 if (TypeName.Length != 0) { 1583 output.WriteRawTag(50); 1584 output.WriteString(TypeName); 1585 } 1586 if (DefaultValue.Length != 0) { 1587 output.WriteRawTag(58); 1588 output.WriteString(DefaultValue); 1589 } 1590 if (options_ != null) { 1591 output.WriteRawTag(66); 1592 output.WriteMessage(Options); 1593 } 1594 if (OneofIndex != 0) { 1595 output.WriteRawTag(72); 1596 output.WriteInt32(OneofIndex); 1597 } 1598 if (JsonName.Length != 0) { 1599 output.WriteRawTag(82); 1600 output.WriteString(JsonName); 1601 } 1602 } 1603 1604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()1605 public int CalculateSize() { 1606 int size = 0; 1607 if (Name.Length != 0) { 1608 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); 1609 } 1610 if (Number != 0) { 1611 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number); 1612 } 1613 if (Label != 0) { 1614 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Label); 1615 } 1616 if (Type != 0) { 1617 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); 1618 } 1619 if (TypeName.Length != 0) { 1620 size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeName); 1621 } 1622 if (Extendee.Length != 0) { 1623 size += 1 + pb::CodedOutputStream.ComputeStringSize(Extendee); 1624 } 1625 if (DefaultValue.Length != 0) { 1626 size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultValue); 1627 } 1628 if (OneofIndex != 0) { 1629 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OneofIndex); 1630 } 1631 if (JsonName.Length != 0) { 1632 size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonName); 1633 } 1634 if (options_ != null) { 1635 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); 1636 } 1637 return size; 1638 } 1639 1640 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(FieldDescriptorProto other)1641 public void MergeFrom(FieldDescriptorProto other) { 1642 if (other == null) { 1643 return; 1644 } 1645 if (other.Name.Length != 0) { 1646 Name = other.Name; 1647 } 1648 if (other.Number != 0) { 1649 Number = other.Number; 1650 } 1651 if (other.Label != 0) { 1652 Label = other.Label; 1653 } 1654 if (other.Type != 0) { 1655 Type = other.Type; 1656 } 1657 if (other.TypeName.Length != 0) { 1658 TypeName = other.TypeName; 1659 } 1660 if (other.Extendee.Length != 0) { 1661 Extendee = other.Extendee; 1662 } 1663 if (other.DefaultValue.Length != 0) { 1664 DefaultValue = other.DefaultValue; 1665 } 1666 if (other.OneofIndex != 0) { 1667 OneofIndex = other.OneofIndex; 1668 } 1669 if (other.JsonName.Length != 0) { 1670 JsonName = other.JsonName; 1671 } 1672 if (other.options_ != null) { 1673 if (options_ == null) { 1674 options_ = new global::Google.Protobuf.Reflection.FieldOptions(); 1675 } 1676 Options.MergeFrom(other.Options); 1677 } 1678 } 1679 1680 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)1681 public void MergeFrom(pb::CodedInputStream input) { 1682 uint tag; 1683 while ((tag = input.ReadTag()) != 0) { 1684 switch(tag) { 1685 default: 1686 input.SkipLastField(); 1687 break; 1688 case 10: { 1689 Name = input.ReadString(); 1690 break; 1691 } 1692 case 18: { 1693 Extendee = input.ReadString(); 1694 break; 1695 } 1696 case 24: { 1697 Number = input.ReadInt32(); 1698 break; 1699 } 1700 case 32: { 1701 label_ = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label) input.ReadEnum(); 1702 break; 1703 } 1704 case 40: { 1705 type_ = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type) input.ReadEnum(); 1706 break; 1707 } 1708 case 50: { 1709 TypeName = input.ReadString(); 1710 break; 1711 } 1712 case 58: { 1713 DefaultValue = input.ReadString(); 1714 break; 1715 } 1716 case 66: { 1717 if (options_ == null) { 1718 options_ = new global::Google.Protobuf.Reflection.FieldOptions(); 1719 } 1720 input.ReadMessage(options_); 1721 break; 1722 } 1723 case 72: { 1724 OneofIndex = input.ReadInt32(); 1725 break; 1726 } 1727 case 82: { 1728 JsonName = input.ReadString(); 1729 break; 1730 } 1731 } 1732 } 1733 } 1734 1735 #region Nested types 1736 /// <summary>Container for nested types declared in the FieldDescriptorProto message type.</summary> 1737 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1738 public static partial class Types { 1739 internal enum Type { 1740 /// <summary> 1741 /// 0 is reserved for errors. 1742 /// Order is weird for historical reasons. 1743 /// </summary> 1744 [pbr::OriginalName("TYPE_DOUBLE")] Double = 1, 1745 [pbr::OriginalName("TYPE_FLOAT")] Float = 2, 1746 /// <summary> 1747 /// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if 1748 /// negative values are likely. 1749 /// </summary> 1750 [pbr::OriginalName("TYPE_INT64")] Int64 = 3, 1751 [pbr::OriginalName("TYPE_UINT64")] Uint64 = 4, 1752 /// <summary> 1753 /// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if 1754 /// negative values are likely. 1755 /// </summary> 1756 [pbr::OriginalName("TYPE_INT32")] Int32 = 5, 1757 [pbr::OriginalName("TYPE_FIXED64")] Fixed64 = 6, 1758 [pbr::OriginalName("TYPE_FIXED32")] Fixed32 = 7, 1759 [pbr::OriginalName("TYPE_BOOL")] Bool = 8, 1760 [pbr::OriginalName("TYPE_STRING")] String = 9, 1761 /// <summary> 1762 /// Tag-delimited aggregate. 1763 /// </summary> 1764 [pbr::OriginalName("TYPE_GROUP")] Group = 10, 1765 /// <summary> 1766 /// Length-delimited aggregate. 1767 /// </summary> 1768 [pbr::OriginalName("TYPE_MESSAGE")] Message = 11, 1769 /// <summary> 1770 /// New in version 2. 1771 /// </summary> 1772 [pbr::OriginalName("TYPE_BYTES")] Bytes = 12, 1773 [pbr::OriginalName("TYPE_UINT32")] Uint32 = 13, 1774 [pbr::OriginalName("TYPE_ENUM")] Enum = 14, 1775 [pbr::OriginalName("TYPE_SFIXED32")] Sfixed32 = 15, 1776 [pbr::OriginalName("TYPE_SFIXED64")] Sfixed64 = 16, 1777 /// <summary> 1778 /// Uses ZigZag encoding. 1779 /// </summary> 1780 [pbr::OriginalName("TYPE_SINT32")] Sint32 = 17, 1781 /// <summary> 1782 /// Uses ZigZag encoding. 1783 /// </summary> 1784 [pbr::OriginalName("TYPE_SINT64")] Sint64 = 18, 1785 } 1786 1787 internal enum Label { 1788 /// <summary> 1789 /// 0 is reserved for errors 1790 /// </summary> 1791 [pbr::OriginalName("LABEL_OPTIONAL")] Optional = 1, 1792 [pbr::OriginalName("LABEL_REQUIRED")] Required = 2, 1793 /// <summary> 1794 /// TODO(sanjay): Should we add LABEL_MAP? 1795 /// </summary> 1796 [pbr::OriginalName("LABEL_REPEATED")] Repeated = 3, 1797 } 1798 1799 } 1800 #endregion 1801 1802 } 1803 1804 /// <summary> 1805 /// Describes a oneof. 1806 /// </summary> 1807 internal sealed partial class OneofDescriptorProto : pb::IMessage<OneofDescriptorProto> { 1808 private static readonly pb::MessageParser<OneofDescriptorProto> _parser = new pb::MessageParser<OneofDescriptorProto>(() => new OneofDescriptorProto()); 1809 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1810 public static pb::MessageParser<OneofDescriptorProto> Parser { get { return _parser; } } 1811 1812 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1813 public static pbr::MessageDescriptor Descriptor { 1814 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[4]; } 1815 } 1816 1817 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1818 pbr::MessageDescriptor pb::IMessage.Descriptor { 1819 get { return Descriptor; } 1820 } 1821 1822 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] OneofDescriptorProto()1823 public OneofDescriptorProto() { 1824 OnConstruction(); 1825 } 1826 OnConstruction()1827 partial void OnConstruction(); 1828 1829 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] OneofDescriptorProto(OneofDescriptorProto other)1830 public OneofDescriptorProto(OneofDescriptorProto other) : this() { 1831 name_ = other.name_; 1832 Options = other.options_ != null ? other.Options.Clone() : null; 1833 } 1834 1835 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()1836 public OneofDescriptorProto Clone() { 1837 return new OneofDescriptorProto(this); 1838 } 1839 1840 /// <summary>Field number for the "name" field.</summary> 1841 public const int NameFieldNumber = 1; 1842 private string name_ = ""; 1843 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1844 public string Name { 1845 get { return name_; } 1846 set { 1847 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1848 } 1849 } 1850 1851 /// <summary>Field number for the "options" field.</summary> 1852 public const int OptionsFieldNumber = 2; 1853 private global::Google.Protobuf.Reflection.OneofOptions options_; 1854 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1855 public global::Google.Protobuf.Reflection.OneofOptions Options { 1856 get { return options_; } 1857 set { 1858 options_ = value; 1859 } 1860 } 1861 1862 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)1863 public override bool Equals(object other) { 1864 return Equals(other as OneofDescriptorProto); 1865 } 1866 1867 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(OneofDescriptorProto other)1868 public bool Equals(OneofDescriptorProto other) { 1869 if (ReferenceEquals(other, null)) { 1870 return false; 1871 } 1872 if (ReferenceEquals(other, this)) { 1873 return true; 1874 } 1875 if (Name != other.Name) return false; 1876 if (!object.Equals(Options, other.Options)) return false; 1877 return true; 1878 } 1879 1880 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()1881 public override int GetHashCode() { 1882 int hash = 1; 1883 if (Name.Length != 0) hash ^= Name.GetHashCode(); 1884 if (options_ != null) hash ^= Options.GetHashCode(); 1885 return hash; 1886 } 1887 1888 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()1889 public override string ToString() { 1890 return pb::JsonFormatter.ToDiagnosticString(this); 1891 } 1892 1893 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)1894 public void WriteTo(pb::CodedOutputStream output) { 1895 if (Name.Length != 0) { 1896 output.WriteRawTag(10); 1897 output.WriteString(Name); 1898 } 1899 if (options_ != null) { 1900 output.WriteRawTag(18); 1901 output.WriteMessage(Options); 1902 } 1903 } 1904 1905 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()1906 public int CalculateSize() { 1907 int size = 0; 1908 if (Name.Length != 0) { 1909 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); 1910 } 1911 if (options_ != null) { 1912 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); 1913 } 1914 return size; 1915 } 1916 1917 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(OneofDescriptorProto other)1918 public void MergeFrom(OneofDescriptorProto other) { 1919 if (other == null) { 1920 return; 1921 } 1922 if (other.Name.Length != 0) { 1923 Name = other.Name; 1924 } 1925 if (other.options_ != null) { 1926 if (options_ == null) { 1927 options_ = new global::Google.Protobuf.Reflection.OneofOptions(); 1928 } 1929 Options.MergeFrom(other.Options); 1930 } 1931 } 1932 1933 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)1934 public void MergeFrom(pb::CodedInputStream input) { 1935 uint tag; 1936 while ((tag = input.ReadTag()) != 0) { 1937 switch(tag) { 1938 default: 1939 input.SkipLastField(); 1940 break; 1941 case 10: { 1942 Name = input.ReadString(); 1943 break; 1944 } 1945 case 18: { 1946 if (options_ == null) { 1947 options_ = new global::Google.Protobuf.Reflection.OneofOptions(); 1948 } 1949 input.ReadMessage(options_); 1950 break; 1951 } 1952 } 1953 } 1954 } 1955 1956 } 1957 1958 /// <summary> 1959 /// Describes an enum type. 1960 /// </summary> 1961 internal sealed partial class EnumDescriptorProto : pb::IMessage<EnumDescriptorProto> { 1962 private static readonly pb::MessageParser<EnumDescriptorProto> _parser = new pb::MessageParser<EnumDescriptorProto>(() => new EnumDescriptorProto()); 1963 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1964 public static pb::MessageParser<EnumDescriptorProto> Parser { get { return _parser; } } 1965 1966 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1967 public static pbr::MessageDescriptor Descriptor { 1968 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[5]; } 1969 } 1970 1971 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1972 pbr::MessageDescriptor pb::IMessage.Descriptor { 1973 get { return Descriptor; } 1974 } 1975 1976 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] EnumDescriptorProto()1977 public EnumDescriptorProto() { 1978 OnConstruction(); 1979 } 1980 OnConstruction()1981 partial void OnConstruction(); 1982 1983 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] EnumDescriptorProto(EnumDescriptorProto other)1984 public EnumDescriptorProto(EnumDescriptorProto other) : this() { 1985 name_ = other.name_; 1986 value_ = other.value_.Clone(); 1987 Options = other.options_ != null ? other.Options.Clone() : null; 1988 } 1989 1990 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()1991 public EnumDescriptorProto Clone() { 1992 return new EnumDescriptorProto(this); 1993 } 1994 1995 /// <summary>Field number for the "name" field.</summary> 1996 public const int NameFieldNumber = 1; 1997 private string name_ = ""; 1998 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1999 public string Name { 2000 get { return name_; } 2001 set { 2002 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2003 } 2004 } 2005 2006 /// <summary>Field number for the "value" field.</summary> 2007 public const int ValueFieldNumber = 2; 2008 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> _repeated_value_codec 2009 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser); 2010 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> value_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto>(); 2011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2012 public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> Value { 2013 get { return value_; } 2014 } 2015 2016 /// <summary>Field number for the "options" field.</summary> 2017 public const int OptionsFieldNumber = 3; 2018 private global::Google.Protobuf.Reflection.EnumOptions options_; 2019 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2020 public global::Google.Protobuf.Reflection.EnumOptions Options { 2021 get { return options_; } 2022 set { 2023 options_ = value; 2024 } 2025 } 2026 2027 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)2028 public override bool Equals(object other) { 2029 return Equals(other as EnumDescriptorProto); 2030 } 2031 2032 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(EnumDescriptorProto other)2033 public bool Equals(EnumDescriptorProto other) { 2034 if (ReferenceEquals(other, null)) { 2035 return false; 2036 } 2037 if (ReferenceEquals(other, this)) { 2038 return true; 2039 } 2040 if (Name != other.Name) return false; 2041 if(!value_.Equals(other.value_)) return false; 2042 if (!object.Equals(Options, other.Options)) return false; 2043 return true; 2044 } 2045 2046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()2047 public override int GetHashCode() { 2048 int hash = 1; 2049 if (Name.Length != 0) hash ^= Name.GetHashCode(); 2050 hash ^= value_.GetHashCode(); 2051 if (options_ != null) hash ^= Options.GetHashCode(); 2052 return hash; 2053 } 2054 2055 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()2056 public override string ToString() { 2057 return pb::JsonFormatter.ToDiagnosticString(this); 2058 } 2059 2060 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)2061 public void WriteTo(pb::CodedOutputStream output) { 2062 if (Name.Length != 0) { 2063 output.WriteRawTag(10); 2064 output.WriteString(Name); 2065 } 2066 value_.WriteTo(output, _repeated_value_codec); 2067 if (options_ != null) { 2068 output.WriteRawTag(26); 2069 output.WriteMessage(Options); 2070 } 2071 } 2072 2073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()2074 public int CalculateSize() { 2075 int size = 0; 2076 if (Name.Length != 0) { 2077 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); 2078 } 2079 size += value_.CalculateSize(_repeated_value_codec); 2080 if (options_ != null) { 2081 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); 2082 } 2083 return size; 2084 } 2085 2086 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(EnumDescriptorProto other)2087 public void MergeFrom(EnumDescriptorProto other) { 2088 if (other == null) { 2089 return; 2090 } 2091 if (other.Name.Length != 0) { 2092 Name = other.Name; 2093 } 2094 value_.Add(other.value_); 2095 if (other.options_ != null) { 2096 if (options_ == null) { 2097 options_ = new global::Google.Protobuf.Reflection.EnumOptions(); 2098 } 2099 Options.MergeFrom(other.Options); 2100 } 2101 } 2102 2103 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)2104 public void MergeFrom(pb::CodedInputStream input) { 2105 uint tag; 2106 while ((tag = input.ReadTag()) != 0) { 2107 switch(tag) { 2108 default: 2109 input.SkipLastField(); 2110 break; 2111 case 10: { 2112 Name = input.ReadString(); 2113 break; 2114 } 2115 case 18: { 2116 value_.AddEntriesFrom(input, _repeated_value_codec); 2117 break; 2118 } 2119 case 26: { 2120 if (options_ == null) { 2121 options_ = new global::Google.Protobuf.Reflection.EnumOptions(); 2122 } 2123 input.ReadMessage(options_); 2124 break; 2125 } 2126 } 2127 } 2128 } 2129 2130 } 2131 2132 /// <summary> 2133 /// Describes a value within an enum. 2134 /// </summary> 2135 internal sealed partial class EnumValueDescriptorProto : pb::IMessage<EnumValueDescriptorProto> { 2136 private static readonly pb::MessageParser<EnumValueDescriptorProto> _parser = new pb::MessageParser<EnumValueDescriptorProto>(() => new EnumValueDescriptorProto()); 2137 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2138 public static pb::MessageParser<EnumValueDescriptorProto> Parser { get { return _parser; } } 2139 2140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2141 public static pbr::MessageDescriptor Descriptor { 2142 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[6]; } 2143 } 2144 2145 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2146 pbr::MessageDescriptor pb::IMessage.Descriptor { 2147 get { return Descriptor; } 2148 } 2149 2150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] EnumValueDescriptorProto()2151 public EnumValueDescriptorProto() { 2152 OnConstruction(); 2153 } 2154 OnConstruction()2155 partial void OnConstruction(); 2156 2157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] EnumValueDescriptorProto(EnumValueDescriptorProto other)2158 public EnumValueDescriptorProto(EnumValueDescriptorProto other) : this() { 2159 name_ = other.name_; 2160 number_ = other.number_; 2161 Options = other.options_ != null ? other.Options.Clone() : null; 2162 } 2163 2164 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()2165 public EnumValueDescriptorProto Clone() { 2166 return new EnumValueDescriptorProto(this); 2167 } 2168 2169 /// <summary>Field number for the "name" field.</summary> 2170 public const int NameFieldNumber = 1; 2171 private string name_ = ""; 2172 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2173 public string Name { 2174 get { return name_; } 2175 set { 2176 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2177 } 2178 } 2179 2180 /// <summary>Field number for the "number" field.</summary> 2181 public const int NumberFieldNumber = 2; 2182 private int number_; 2183 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2184 public int Number { 2185 get { return number_; } 2186 set { 2187 number_ = value; 2188 } 2189 } 2190 2191 /// <summary>Field number for the "options" field.</summary> 2192 public const int OptionsFieldNumber = 3; 2193 private global::Google.Protobuf.Reflection.EnumValueOptions options_; 2194 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2195 public global::Google.Protobuf.Reflection.EnumValueOptions Options { 2196 get { return options_; } 2197 set { 2198 options_ = value; 2199 } 2200 } 2201 2202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)2203 public override bool Equals(object other) { 2204 return Equals(other as EnumValueDescriptorProto); 2205 } 2206 2207 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(EnumValueDescriptorProto other)2208 public bool Equals(EnumValueDescriptorProto other) { 2209 if (ReferenceEquals(other, null)) { 2210 return false; 2211 } 2212 if (ReferenceEquals(other, this)) { 2213 return true; 2214 } 2215 if (Name != other.Name) return false; 2216 if (Number != other.Number) return false; 2217 if (!object.Equals(Options, other.Options)) return false; 2218 return true; 2219 } 2220 2221 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()2222 public override int GetHashCode() { 2223 int hash = 1; 2224 if (Name.Length != 0) hash ^= Name.GetHashCode(); 2225 if (Number != 0) hash ^= Number.GetHashCode(); 2226 if (options_ != null) hash ^= Options.GetHashCode(); 2227 return hash; 2228 } 2229 2230 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()2231 public override string ToString() { 2232 return pb::JsonFormatter.ToDiagnosticString(this); 2233 } 2234 2235 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)2236 public void WriteTo(pb::CodedOutputStream output) { 2237 if (Name.Length != 0) { 2238 output.WriteRawTag(10); 2239 output.WriteString(Name); 2240 } 2241 if (Number != 0) { 2242 output.WriteRawTag(16); 2243 output.WriteInt32(Number); 2244 } 2245 if (options_ != null) { 2246 output.WriteRawTag(26); 2247 output.WriteMessage(Options); 2248 } 2249 } 2250 2251 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()2252 public int CalculateSize() { 2253 int size = 0; 2254 if (Name.Length != 0) { 2255 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); 2256 } 2257 if (Number != 0) { 2258 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number); 2259 } 2260 if (options_ != null) { 2261 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); 2262 } 2263 return size; 2264 } 2265 2266 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(EnumValueDescriptorProto other)2267 public void MergeFrom(EnumValueDescriptorProto other) { 2268 if (other == null) { 2269 return; 2270 } 2271 if (other.Name.Length != 0) { 2272 Name = other.Name; 2273 } 2274 if (other.Number != 0) { 2275 Number = other.Number; 2276 } 2277 if (other.options_ != null) { 2278 if (options_ == null) { 2279 options_ = new global::Google.Protobuf.Reflection.EnumValueOptions(); 2280 } 2281 Options.MergeFrom(other.Options); 2282 } 2283 } 2284 2285 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)2286 public void MergeFrom(pb::CodedInputStream input) { 2287 uint tag; 2288 while ((tag = input.ReadTag()) != 0) { 2289 switch(tag) { 2290 default: 2291 input.SkipLastField(); 2292 break; 2293 case 10: { 2294 Name = input.ReadString(); 2295 break; 2296 } 2297 case 16: { 2298 Number = input.ReadInt32(); 2299 break; 2300 } 2301 case 26: { 2302 if (options_ == null) { 2303 options_ = new global::Google.Protobuf.Reflection.EnumValueOptions(); 2304 } 2305 input.ReadMessage(options_); 2306 break; 2307 } 2308 } 2309 } 2310 } 2311 2312 } 2313 2314 /// <summary> 2315 /// Describes a service. 2316 /// </summary> 2317 internal sealed partial class ServiceDescriptorProto : pb::IMessage<ServiceDescriptorProto> { 2318 private static readonly pb::MessageParser<ServiceDescriptorProto> _parser = new pb::MessageParser<ServiceDescriptorProto>(() => new ServiceDescriptorProto()); 2319 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2320 public static pb::MessageParser<ServiceDescriptorProto> Parser { get { return _parser; } } 2321 2322 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2323 public static pbr::MessageDescriptor Descriptor { 2324 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[7]; } 2325 } 2326 2327 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2328 pbr::MessageDescriptor pb::IMessage.Descriptor { 2329 get { return Descriptor; } 2330 } 2331 2332 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ServiceDescriptorProto()2333 public ServiceDescriptorProto() { 2334 OnConstruction(); 2335 } 2336 OnConstruction()2337 partial void OnConstruction(); 2338 2339 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ServiceDescriptorProto(ServiceDescriptorProto other)2340 public ServiceDescriptorProto(ServiceDescriptorProto other) : this() { 2341 name_ = other.name_; 2342 method_ = other.method_.Clone(); 2343 Options = other.options_ != null ? other.Options.Clone() : null; 2344 } 2345 2346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()2347 public ServiceDescriptorProto Clone() { 2348 return new ServiceDescriptorProto(this); 2349 } 2350 2351 /// <summary>Field number for the "name" field.</summary> 2352 public const int NameFieldNumber = 1; 2353 private string name_ = ""; 2354 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2355 public string Name { 2356 get { return name_; } 2357 set { 2358 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2359 } 2360 } 2361 2362 /// <summary>Field number for the "method" field.</summary> 2363 public const int MethodFieldNumber = 2; 2364 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.MethodDescriptorProto> _repeated_method_codec 2365 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.MethodDescriptorProto.Parser); 2366 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> method_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto>(); 2367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2368 public pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> Method { 2369 get { return method_; } 2370 } 2371 2372 /// <summary>Field number for the "options" field.</summary> 2373 public const int OptionsFieldNumber = 3; 2374 private global::Google.Protobuf.Reflection.ServiceOptions options_; 2375 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2376 public global::Google.Protobuf.Reflection.ServiceOptions Options { 2377 get { return options_; } 2378 set { 2379 options_ = value; 2380 } 2381 } 2382 2383 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)2384 public override bool Equals(object other) { 2385 return Equals(other as ServiceDescriptorProto); 2386 } 2387 2388 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(ServiceDescriptorProto other)2389 public bool Equals(ServiceDescriptorProto other) { 2390 if (ReferenceEquals(other, null)) { 2391 return false; 2392 } 2393 if (ReferenceEquals(other, this)) { 2394 return true; 2395 } 2396 if (Name != other.Name) return false; 2397 if(!method_.Equals(other.method_)) return false; 2398 if (!object.Equals(Options, other.Options)) return false; 2399 return true; 2400 } 2401 2402 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()2403 public override int GetHashCode() { 2404 int hash = 1; 2405 if (Name.Length != 0) hash ^= Name.GetHashCode(); 2406 hash ^= method_.GetHashCode(); 2407 if (options_ != null) hash ^= Options.GetHashCode(); 2408 return hash; 2409 } 2410 2411 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()2412 public override string ToString() { 2413 return pb::JsonFormatter.ToDiagnosticString(this); 2414 } 2415 2416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)2417 public void WriteTo(pb::CodedOutputStream output) { 2418 if (Name.Length != 0) { 2419 output.WriteRawTag(10); 2420 output.WriteString(Name); 2421 } 2422 method_.WriteTo(output, _repeated_method_codec); 2423 if (options_ != null) { 2424 output.WriteRawTag(26); 2425 output.WriteMessage(Options); 2426 } 2427 } 2428 2429 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()2430 public int CalculateSize() { 2431 int size = 0; 2432 if (Name.Length != 0) { 2433 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); 2434 } 2435 size += method_.CalculateSize(_repeated_method_codec); 2436 if (options_ != null) { 2437 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); 2438 } 2439 return size; 2440 } 2441 2442 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(ServiceDescriptorProto other)2443 public void MergeFrom(ServiceDescriptorProto other) { 2444 if (other == null) { 2445 return; 2446 } 2447 if (other.Name.Length != 0) { 2448 Name = other.Name; 2449 } 2450 method_.Add(other.method_); 2451 if (other.options_ != null) { 2452 if (options_ == null) { 2453 options_ = new global::Google.Protobuf.Reflection.ServiceOptions(); 2454 } 2455 Options.MergeFrom(other.Options); 2456 } 2457 } 2458 2459 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)2460 public void MergeFrom(pb::CodedInputStream input) { 2461 uint tag; 2462 while ((tag = input.ReadTag()) != 0) { 2463 switch(tag) { 2464 default: 2465 input.SkipLastField(); 2466 break; 2467 case 10: { 2468 Name = input.ReadString(); 2469 break; 2470 } 2471 case 18: { 2472 method_.AddEntriesFrom(input, _repeated_method_codec); 2473 break; 2474 } 2475 case 26: { 2476 if (options_ == null) { 2477 options_ = new global::Google.Protobuf.Reflection.ServiceOptions(); 2478 } 2479 input.ReadMessage(options_); 2480 break; 2481 } 2482 } 2483 } 2484 } 2485 2486 } 2487 2488 /// <summary> 2489 /// Describes a method of a service. 2490 /// </summary> 2491 internal sealed partial class MethodDescriptorProto : pb::IMessage<MethodDescriptorProto> { 2492 private static readonly pb::MessageParser<MethodDescriptorProto> _parser = new pb::MessageParser<MethodDescriptorProto>(() => new MethodDescriptorProto()); 2493 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2494 public static pb::MessageParser<MethodDescriptorProto> Parser { get { return _parser; } } 2495 2496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2497 public static pbr::MessageDescriptor Descriptor { 2498 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[8]; } 2499 } 2500 2501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2502 pbr::MessageDescriptor pb::IMessage.Descriptor { 2503 get { return Descriptor; } 2504 } 2505 2506 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MethodDescriptorProto()2507 public MethodDescriptorProto() { 2508 OnConstruction(); 2509 } 2510 OnConstruction()2511 partial void OnConstruction(); 2512 2513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MethodDescriptorProto(MethodDescriptorProto other)2514 public MethodDescriptorProto(MethodDescriptorProto other) : this() { 2515 name_ = other.name_; 2516 inputType_ = other.inputType_; 2517 outputType_ = other.outputType_; 2518 Options = other.options_ != null ? other.Options.Clone() : null; 2519 clientStreaming_ = other.clientStreaming_; 2520 serverStreaming_ = other.serverStreaming_; 2521 } 2522 2523 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()2524 public MethodDescriptorProto Clone() { 2525 return new MethodDescriptorProto(this); 2526 } 2527 2528 /// <summary>Field number for the "name" field.</summary> 2529 public const int NameFieldNumber = 1; 2530 private string name_ = ""; 2531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2532 public string Name { 2533 get { return name_; } 2534 set { 2535 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2536 } 2537 } 2538 2539 /// <summary>Field number for the "input_type" field.</summary> 2540 public const int InputTypeFieldNumber = 2; 2541 private string inputType_ = ""; 2542 /// <summary> 2543 /// Input and output type names. These are resolved in the same way as 2544 /// FieldDescriptorProto.type_name, but must refer to a message type. 2545 /// </summary> 2546 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2547 public string InputType { 2548 get { return inputType_; } 2549 set { 2550 inputType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2551 } 2552 } 2553 2554 /// <summary>Field number for the "output_type" field.</summary> 2555 public const int OutputTypeFieldNumber = 3; 2556 private string outputType_ = ""; 2557 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2558 public string OutputType { 2559 get { return outputType_; } 2560 set { 2561 outputType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2562 } 2563 } 2564 2565 /// <summary>Field number for the "options" field.</summary> 2566 public const int OptionsFieldNumber = 4; 2567 private global::Google.Protobuf.Reflection.MethodOptions options_; 2568 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2569 public global::Google.Protobuf.Reflection.MethodOptions Options { 2570 get { return options_; } 2571 set { 2572 options_ = value; 2573 } 2574 } 2575 2576 /// <summary>Field number for the "client_streaming" field.</summary> 2577 public const int ClientStreamingFieldNumber = 5; 2578 private bool clientStreaming_; 2579 /// <summary> 2580 /// Identifies if client streams multiple client messages 2581 /// </summary> 2582 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2583 public bool ClientStreaming { 2584 get { return clientStreaming_; } 2585 set { 2586 clientStreaming_ = value; 2587 } 2588 } 2589 2590 /// <summary>Field number for the "server_streaming" field.</summary> 2591 public const int ServerStreamingFieldNumber = 6; 2592 private bool serverStreaming_; 2593 /// <summary> 2594 /// Identifies if server streams multiple server messages 2595 /// </summary> 2596 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2597 public bool ServerStreaming { 2598 get { return serverStreaming_; } 2599 set { 2600 serverStreaming_ = value; 2601 } 2602 } 2603 2604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)2605 public override bool Equals(object other) { 2606 return Equals(other as MethodDescriptorProto); 2607 } 2608 2609 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(MethodDescriptorProto other)2610 public bool Equals(MethodDescriptorProto other) { 2611 if (ReferenceEquals(other, null)) { 2612 return false; 2613 } 2614 if (ReferenceEquals(other, this)) { 2615 return true; 2616 } 2617 if (Name != other.Name) return false; 2618 if (InputType != other.InputType) return false; 2619 if (OutputType != other.OutputType) return false; 2620 if (!object.Equals(Options, other.Options)) return false; 2621 if (ClientStreaming != other.ClientStreaming) return false; 2622 if (ServerStreaming != other.ServerStreaming) return false; 2623 return true; 2624 } 2625 2626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()2627 public override int GetHashCode() { 2628 int hash = 1; 2629 if (Name.Length != 0) hash ^= Name.GetHashCode(); 2630 if (InputType.Length != 0) hash ^= InputType.GetHashCode(); 2631 if (OutputType.Length != 0) hash ^= OutputType.GetHashCode(); 2632 if (options_ != null) hash ^= Options.GetHashCode(); 2633 if (ClientStreaming != false) hash ^= ClientStreaming.GetHashCode(); 2634 if (ServerStreaming != false) hash ^= ServerStreaming.GetHashCode(); 2635 return hash; 2636 } 2637 2638 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()2639 public override string ToString() { 2640 return pb::JsonFormatter.ToDiagnosticString(this); 2641 } 2642 2643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)2644 public void WriteTo(pb::CodedOutputStream output) { 2645 if (Name.Length != 0) { 2646 output.WriteRawTag(10); 2647 output.WriteString(Name); 2648 } 2649 if (InputType.Length != 0) { 2650 output.WriteRawTag(18); 2651 output.WriteString(InputType); 2652 } 2653 if (OutputType.Length != 0) { 2654 output.WriteRawTag(26); 2655 output.WriteString(OutputType); 2656 } 2657 if (options_ != null) { 2658 output.WriteRawTag(34); 2659 output.WriteMessage(Options); 2660 } 2661 if (ClientStreaming != false) { 2662 output.WriteRawTag(40); 2663 output.WriteBool(ClientStreaming); 2664 } 2665 if (ServerStreaming != false) { 2666 output.WriteRawTag(48); 2667 output.WriteBool(ServerStreaming); 2668 } 2669 } 2670 2671 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()2672 public int CalculateSize() { 2673 int size = 0; 2674 if (Name.Length != 0) { 2675 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); 2676 } 2677 if (InputType.Length != 0) { 2678 size += 1 + pb::CodedOutputStream.ComputeStringSize(InputType); 2679 } 2680 if (OutputType.Length != 0) { 2681 size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputType); 2682 } 2683 if (options_ != null) { 2684 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); 2685 } 2686 if (ClientStreaming != false) { 2687 size += 1 + 1; 2688 } 2689 if (ServerStreaming != false) { 2690 size += 1 + 1; 2691 } 2692 return size; 2693 } 2694 2695 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(MethodDescriptorProto other)2696 public void MergeFrom(MethodDescriptorProto other) { 2697 if (other == null) { 2698 return; 2699 } 2700 if (other.Name.Length != 0) { 2701 Name = other.Name; 2702 } 2703 if (other.InputType.Length != 0) { 2704 InputType = other.InputType; 2705 } 2706 if (other.OutputType.Length != 0) { 2707 OutputType = other.OutputType; 2708 } 2709 if (other.options_ != null) { 2710 if (options_ == null) { 2711 options_ = new global::Google.Protobuf.Reflection.MethodOptions(); 2712 } 2713 Options.MergeFrom(other.Options); 2714 } 2715 if (other.ClientStreaming != false) { 2716 ClientStreaming = other.ClientStreaming; 2717 } 2718 if (other.ServerStreaming != false) { 2719 ServerStreaming = other.ServerStreaming; 2720 } 2721 } 2722 2723 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)2724 public void MergeFrom(pb::CodedInputStream input) { 2725 uint tag; 2726 while ((tag = input.ReadTag()) != 0) { 2727 switch(tag) { 2728 default: 2729 input.SkipLastField(); 2730 break; 2731 case 10: { 2732 Name = input.ReadString(); 2733 break; 2734 } 2735 case 18: { 2736 InputType = input.ReadString(); 2737 break; 2738 } 2739 case 26: { 2740 OutputType = input.ReadString(); 2741 break; 2742 } 2743 case 34: { 2744 if (options_ == null) { 2745 options_ = new global::Google.Protobuf.Reflection.MethodOptions(); 2746 } 2747 input.ReadMessage(options_); 2748 break; 2749 } 2750 case 40: { 2751 ClientStreaming = input.ReadBool(); 2752 break; 2753 } 2754 case 48: { 2755 ServerStreaming = input.ReadBool(); 2756 break; 2757 } 2758 } 2759 } 2760 } 2761 2762 } 2763 2764 internal sealed partial class FileOptions : pb::IMessage<FileOptions> { 2765 private static readonly pb::MessageParser<FileOptions> _parser = new pb::MessageParser<FileOptions>(() => new FileOptions()); 2766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2767 public static pb::MessageParser<FileOptions> Parser { get { return _parser; } } 2768 2769 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2770 public static pbr::MessageDescriptor Descriptor { 2771 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[9]; } 2772 } 2773 2774 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2775 pbr::MessageDescriptor pb::IMessage.Descriptor { 2776 get { return Descriptor; } 2777 } 2778 2779 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] FileOptions()2780 public FileOptions() { 2781 OnConstruction(); 2782 } 2783 OnConstruction()2784 partial void OnConstruction(); 2785 2786 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] FileOptions(FileOptions other)2787 public FileOptions(FileOptions other) : this() { 2788 javaPackage_ = other.javaPackage_; 2789 javaOuterClassname_ = other.javaOuterClassname_; 2790 javaMultipleFiles_ = other.javaMultipleFiles_; 2791 javaGenerateEqualsAndHash_ = other.javaGenerateEqualsAndHash_; 2792 javaStringCheckUtf8_ = other.javaStringCheckUtf8_; 2793 optimizeFor_ = other.optimizeFor_; 2794 goPackage_ = other.goPackage_; 2795 ccGenericServices_ = other.ccGenericServices_; 2796 javaGenericServices_ = other.javaGenericServices_; 2797 pyGenericServices_ = other.pyGenericServices_; 2798 deprecated_ = other.deprecated_; 2799 ccEnableArenas_ = other.ccEnableArenas_; 2800 objcClassPrefix_ = other.objcClassPrefix_; 2801 csharpNamespace_ = other.csharpNamespace_; 2802 uninterpretedOption_ = other.uninterpretedOption_.Clone(); 2803 } 2804 2805 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()2806 public FileOptions Clone() { 2807 return new FileOptions(this); 2808 } 2809 2810 /// <summary>Field number for the "java_package" field.</summary> 2811 public const int JavaPackageFieldNumber = 1; 2812 private string javaPackage_ = ""; 2813 /// <summary> 2814 /// Sets the Java package where classes generated from this .proto will be 2815 /// placed. By default, the proto package is used, but this is often 2816 /// inappropriate because proto packages do not normally start with backwards 2817 /// domain names. 2818 /// </summary> 2819 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2820 public string JavaPackage { 2821 get { return javaPackage_; } 2822 set { 2823 javaPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2824 } 2825 } 2826 2827 /// <summary>Field number for the "java_outer_classname" field.</summary> 2828 public const int JavaOuterClassnameFieldNumber = 8; 2829 private string javaOuterClassname_ = ""; 2830 /// <summary> 2831 /// If set, all the classes from the .proto file are wrapped in a single 2832 /// outer class with the given name. This applies to both Proto1 2833 /// (equivalent to the old "--one_java_file" option) and Proto2 (where 2834 /// a .proto always translates to a single class, but you may want to 2835 /// explicitly choose the class name). 2836 /// </summary> 2837 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2838 public string JavaOuterClassname { 2839 get { return javaOuterClassname_; } 2840 set { 2841 javaOuterClassname_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2842 } 2843 } 2844 2845 /// <summary>Field number for the "java_multiple_files" field.</summary> 2846 public const int JavaMultipleFilesFieldNumber = 10; 2847 private bool javaMultipleFiles_; 2848 /// <summary> 2849 /// If set true, then the Java code generator will generate a separate .java 2850 /// file for each top-level message, enum, and service defined in the .proto 2851 /// file. Thus, these types will *not* be nested inside the outer class 2852 /// named by java_outer_classname. However, the outer class will still be 2853 /// generated to contain the file's getDescriptor() method as well as any 2854 /// top-level extensions defined in the file. 2855 /// </summary> 2856 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2857 public bool JavaMultipleFiles { 2858 get { return javaMultipleFiles_; } 2859 set { 2860 javaMultipleFiles_ = value; 2861 } 2862 } 2863 2864 /// <summary>Field number for the "java_generate_equals_and_hash" field.</summary> 2865 public const int JavaGenerateEqualsAndHashFieldNumber = 20; 2866 private bool javaGenerateEqualsAndHash_; 2867 /// <summary> 2868 /// If set true, then the Java code generator will generate equals() and 2869 /// hashCode() methods for all messages defined in the .proto file. 2870 /// This increases generated code size, potentially substantially for large 2871 /// protos, which may harm a memory-constrained application. 2872 /// - In the full runtime this is a speed optimization, as the 2873 /// AbstractMessage base class includes reflection-based implementations of 2874 /// these methods. 2875 /// - In the lite runtime, setting this option changes the semantics of 2876 /// equals() and hashCode() to more closely match those of the full runtime; 2877 /// the generated methods compute their results based on field values rather 2878 /// than object identity. (Implementations should not assume that hashcodes 2879 /// will be consistent across runtimes or versions of the protocol compiler.) 2880 /// </summary> 2881 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2882 public bool JavaGenerateEqualsAndHash { 2883 get { return javaGenerateEqualsAndHash_; } 2884 set { 2885 javaGenerateEqualsAndHash_ = value; 2886 } 2887 } 2888 2889 /// <summary>Field number for the "java_string_check_utf8" field.</summary> 2890 public const int JavaStringCheckUtf8FieldNumber = 27; 2891 private bool javaStringCheckUtf8_; 2892 /// <summary> 2893 /// If set true, then the Java2 code generator will generate code that 2894 /// throws an exception whenever an attempt is made to assign a non-UTF-8 2895 /// byte sequence to a string field. 2896 /// Message reflection will do the same. 2897 /// However, an extension field still accepts non-UTF-8 byte sequences. 2898 /// This option has no effect on when used with the lite runtime. 2899 /// </summary> 2900 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2901 public bool JavaStringCheckUtf8 { 2902 get { return javaStringCheckUtf8_; } 2903 set { 2904 javaStringCheckUtf8_ = value; 2905 } 2906 } 2907 2908 /// <summary>Field number for the "optimize_for" field.</summary> 2909 public const int OptimizeForFieldNumber = 9; 2910 private global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode optimizeFor_ = 0; 2911 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2912 public global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode OptimizeFor { 2913 get { return optimizeFor_; } 2914 set { 2915 optimizeFor_ = value; 2916 } 2917 } 2918 2919 /// <summary>Field number for the "go_package" field.</summary> 2920 public const int GoPackageFieldNumber = 11; 2921 private string goPackage_ = ""; 2922 /// <summary> 2923 /// Sets the Go package where structs generated from this .proto will be 2924 /// placed. If omitted, the Go package will be derived from the following: 2925 /// - The basename of the package import path, if provided. 2926 /// - Otherwise, the package statement in the .proto file, if present. 2927 /// - Otherwise, the basename of the .proto file, without extension. 2928 /// </summary> 2929 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2930 public string GoPackage { 2931 get { return goPackage_; } 2932 set { 2933 goPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2934 } 2935 } 2936 2937 /// <summary>Field number for the "cc_generic_services" field.</summary> 2938 public const int CcGenericServicesFieldNumber = 16; 2939 private bool ccGenericServices_; 2940 /// <summary> 2941 /// Should generic services be generated in each language? "Generic" services 2942 /// are not specific to any particular RPC system. They are generated by the 2943 /// main code generators in each language (without additional plugins). 2944 /// Generic services were the only kind of service generation supported by 2945 /// early versions of google.protobuf. 2946 /// 2947 /// Generic services are now considered deprecated in favor of using plugins 2948 /// that generate code specific to your particular RPC system. Therefore, 2949 /// these default to false. Old code which depends on generic services should 2950 /// explicitly set them to true. 2951 /// </summary> 2952 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2953 public bool CcGenericServices { 2954 get { return ccGenericServices_; } 2955 set { 2956 ccGenericServices_ = value; 2957 } 2958 } 2959 2960 /// <summary>Field number for the "java_generic_services" field.</summary> 2961 public const int JavaGenericServicesFieldNumber = 17; 2962 private bool javaGenericServices_; 2963 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2964 public bool JavaGenericServices { 2965 get { return javaGenericServices_; } 2966 set { 2967 javaGenericServices_ = value; 2968 } 2969 } 2970 2971 /// <summary>Field number for the "py_generic_services" field.</summary> 2972 public const int PyGenericServicesFieldNumber = 18; 2973 private bool pyGenericServices_; 2974 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2975 public bool PyGenericServices { 2976 get { return pyGenericServices_; } 2977 set { 2978 pyGenericServices_ = value; 2979 } 2980 } 2981 2982 /// <summary>Field number for the "deprecated" field.</summary> 2983 public const int DeprecatedFieldNumber = 23; 2984 private bool deprecated_; 2985 /// <summary> 2986 /// Is this file deprecated? 2987 /// Depending on the target platform, this can emit Deprecated annotations 2988 /// for everything in the file, or it will be completely ignored; in the very 2989 /// least, this is a formalization for deprecating files. 2990 /// </summary> 2991 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 2992 public bool Deprecated { 2993 get { return deprecated_; } 2994 set { 2995 deprecated_ = value; 2996 } 2997 } 2998 2999 /// <summary>Field number for the "cc_enable_arenas" field.</summary> 3000 public const int CcEnableArenasFieldNumber = 31; 3001 private bool ccEnableArenas_; 3002 /// <summary> 3003 /// Enables the use of arenas for the proto messages in this file. This applies 3004 /// only to generated classes for C++. 3005 /// </summary> 3006 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3007 public bool CcEnableArenas { 3008 get { return ccEnableArenas_; } 3009 set { 3010 ccEnableArenas_ = value; 3011 } 3012 } 3013 3014 /// <summary>Field number for the "objc_class_prefix" field.</summary> 3015 public const int ObjcClassPrefixFieldNumber = 36; 3016 private string objcClassPrefix_ = ""; 3017 /// <summary> 3018 /// Sets the objective c class prefix which is prepended to all objective c 3019 /// generated classes from this .proto. There is no default. 3020 /// </summary> 3021 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3022 public string ObjcClassPrefix { 3023 get { return objcClassPrefix_; } 3024 set { 3025 objcClassPrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 3026 } 3027 } 3028 3029 /// <summary>Field number for the "csharp_namespace" field.</summary> 3030 public const int CsharpNamespaceFieldNumber = 37; 3031 private string csharpNamespace_ = ""; 3032 /// <summary> 3033 /// Namespace for generated classes; defaults to the package. 3034 /// </summary> 3035 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3036 public string CsharpNamespace { 3037 get { return csharpNamespace_; } 3038 set { 3039 csharpNamespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 3040 } 3041 } 3042 3043 /// <summary>Field number for the "uninterpreted_option" field.</summary> 3044 public const int UninterpretedOptionFieldNumber = 999; 3045 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec 3046 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser); 3047 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>(); 3048 /// <summary> 3049 /// The parser stores options it doesn't recognize here. See above. 3050 /// </summary> 3051 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3052 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption { 3053 get { return uninterpretedOption_; } 3054 } 3055 3056 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)3057 public override bool Equals(object other) { 3058 return Equals(other as FileOptions); 3059 } 3060 3061 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(FileOptions other)3062 public bool Equals(FileOptions other) { 3063 if (ReferenceEquals(other, null)) { 3064 return false; 3065 } 3066 if (ReferenceEquals(other, this)) { 3067 return true; 3068 } 3069 if (JavaPackage != other.JavaPackage) return false; 3070 if (JavaOuterClassname != other.JavaOuterClassname) return false; 3071 if (JavaMultipleFiles != other.JavaMultipleFiles) return false; 3072 if (JavaGenerateEqualsAndHash != other.JavaGenerateEqualsAndHash) return false; 3073 if (JavaStringCheckUtf8 != other.JavaStringCheckUtf8) return false; 3074 if (OptimizeFor != other.OptimizeFor) return false; 3075 if (GoPackage != other.GoPackage) return false; 3076 if (CcGenericServices != other.CcGenericServices) return false; 3077 if (JavaGenericServices != other.JavaGenericServices) return false; 3078 if (PyGenericServices != other.PyGenericServices) return false; 3079 if (Deprecated != other.Deprecated) return false; 3080 if (CcEnableArenas != other.CcEnableArenas) return false; 3081 if (ObjcClassPrefix != other.ObjcClassPrefix) return false; 3082 if (CsharpNamespace != other.CsharpNamespace) return false; 3083 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; 3084 return true; 3085 } 3086 3087 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()3088 public override int GetHashCode() { 3089 int hash = 1; 3090 if (JavaPackage.Length != 0) hash ^= JavaPackage.GetHashCode(); 3091 if (JavaOuterClassname.Length != 0) hash ^= JavaOuterClassname.GetHashCode(); 3092 if (JavaMultipleFiles != false) hash ^= JavaMultipleFiles.GetHashCode(); 3093 if (JavaGenerateEqualsAndHash != false) hash ^= JavaGenerateEqualsAndHash.GetHashCode(); 3094 if (JavaStringCheckUtf8 != false) hash ^= JavaStringCheckUtf8.GetHashCode(); 3095 if (OptimizeFor != 0) hash ^= OptimizeFor.GetHashCode(); 3096 if (GoPackage.Length != 0) hash ^= GoPackage.GetHashCode(); 3097 if (CcGenericServices != false) hash ^= CcGenericServices.GetHashCode(); 3098 if (JavaGenericServices != false) hash ^= JavaGenericServices.GetHashCode(); 3099 if (PyGenericServices != false) hash ^= PyGenericServices.GetHashCode(); 3100 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); 3101 if (CcEnableArenas != false) hash ^= CcEnableArenas.GetHashCode(); 3102 if (ObjcClassPrefix.Length != 0) hash ^= ObjcClassPrefix.GetHashCode(); 3103 if (CsharpNamespace.Length != 0) hash ^= CsharpNamespace.GetHashCode(); 3104 hash ^= uninterpretedOption_.GetHashCode(); 3105 return hash; 3106 } 3107 3108 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()3109 public override string ToString() { 3110 return pb::JsonFormatter.ToDiagnosticString(this); 3111 } 3112 3113 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)3114 public void WriteTo(pb::CodedOutputStream output) { 3115 if (JavaPackage.Length != 0) { 3116 output.WriteRawTag(10); 3117 output.WriteString(JavaPackage); 3118 } 3119 if (JavaOuterClassname.Length != 0) { 3120 output.WriteRawTag(66); 3121 output.WriteString(JavaOuterClassname); 3122 } 3123 if (OptimizeFor != 0) { 3124 output.WriteRawTag(72); 3125 output.WriteEnum((int) OptimizeFor); 3126 } 3127 if (JavaMultipleFiles != false) { 3128 output.WriteRawTag(80); 3129 output.WriteBool(JavaMultipleFiles); 3130 } 3131 if (GoPackage.Length != 0) { 3132 output.WriteRawTag(90); 3133 output.WriteString(GoPackage); 3134 } 3135 if (CcGenericServices != false) { 3136 output.WriteRawTag(128, 1); 3137 output.WriteBool(CcGenericServices); 3138 } 3139 if (JavaGenericServices != false) { 3140 output.WriteRawTag(136, 1); 3141 output.WriteBool(JavaGenericServices); 3142 } 3143 if (PyGenericServices != false) { 3144 output.WriteRawTag(144, 1); 3145 output.WriteBool(PyGenericServices); 3146 } 3147 if (JavaGenerateEqualsAndHash != false) { 3148 output.WriteRawTag(160, 1); 3149 output.WriteBool(JavaGenerateEqualsAndHash); 3150 } 3151 if (Deprecated != false) { 3152 output.WriteRawTag(184, 1); 3153 output.WriteBool(Deprecated); 3154 } 3155 if (JavaStringCheckUtf8 != false) { 3156 output.WriteRawTag(216, 1); 3157 output.WriteBool(JavaStringCheckUtf8); 3158 } 3159 if (CcEnableArenas != false) { 3160 output.WriteRawTag(248, 1); 3161 output.WriteBool(CcEnableArenas); 3162 } 3163 if (ObjcClassPrefix.Length != 0) { 3164 output.WriteRawTag(162, 2); 3165 output.WriteString(ObjcClassPrefix); 3166 } 3167 if (CsharpNamespace.Length != 0) { 3168 output.WriteRawTag(170, 2); 3169 output.WriteString(CsharpNamespace); 3170 } 3171 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); 3172 } 3173 3174 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()3175 public int CalculateSize() { 3176 int size = 0; 3177 if (JavaPackage.Length != 0) { 3178 size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaPackage); 3179 } 3180 if (JavaOuterClassname.Length != 0) { 3181 size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaOuterClassname); 3182 } 3183 if (JavaMultipleFiles != false) { 3184 size += 1 + 1; 3185 } 3186 if (JavaGenerateEqualsAndHash != false) { 3187 size += 2 + 1; 3188 } 3189 if (JavaStringCheckUtf8 != false) { 3190 size += 2 + 1; 3191 } 3192 if (OptimizeFor != 0) { 3193 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OptimizeFor); 3194 } 3195 if (GoPackage.Length != 0) { 3196 size += 1 + pb::CodedOutputStream.ComputeStringSize(GoPackage); 3197 } 3198 if (CcGenericServices != false) { 3199 size += 2 + 1; 3200 } 3201 if (JavaGenericServices != false) { 3202 size += 2 + 1; 3203 } 3204 if (PyGenericServices != false) { 3205 size += 2 + 1; 3206 } 3207 if (Deprecated != false) { 3208 size += 2 + 1; 3209 } 3210 if (CcEnableArenas != false) { 3211 size += 2 + 1; 3212 } 3213 if (ObjcClassPrefix.Length != 0) { 3214 size += 2 + pb::CodedOutputStream.ComputeStringSize(ObjcClassPrefix); 3215 } 3216 if (CsharpNamespace.Length != 0) { 3217 size += 2 + pb::CodedOutputStream.ComputeStringSize(CsharpNamespace); 3218 } 3219 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec); 3220 return size; 3221 } 3222 3223 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(FileOptions other)3224 public void MergeFrom(FileOptions other) { 3225 if (other == null) { 3226 return; 3227 } 3228 if (other.JavaPackage.Length != 0) { 3229 JavaPackage = other.JavaPackage; 3230 } 3231 if (other.JavaOuterClassname.Length != 0) { 3232 JavaOuterClassname = other.JavaOuterClassname; 3233 } 3234 if (other.JavaMultipleFiles != false) { 3235 JavaMultipleFiles = other.JavaMultipleFiles; 3236 } 3237 if (other.JavaGenerateEqualsAndHash != false) { 3238 JavaGenerateEqualsAndHash = other.JavaGenerateEqualsAndHash; 3239 } 3240 if (other.JavaStringCheckUtf8 != false) { 3241 JavaStringCheckUtf8 = other.JavaStringCheckUtf8; 3242 } 3243 if (other.OptimizeFor != 0) { 3244 OptimizeFor = other.OptimizeFor; 3245 } 3246 if (other.GoPackage.Length != 0) { 3247 GoPackage = other.GoPackage; 3248 } 3249 if (other.CcGenericServices != false) { 3250 CcGenericServices = other.CcGenericServices; 3251 } 3252 if (other.JavaGenericServices != false) { 3253 JavaGenericServices = other.JavaGenericServices; 3254 } 3255 if (other.PyGenericServices != false) { 3256 PyGenericServices = other.PyGenericServices; 3257 } 3258 if (other.Deprecated != false) { 3259 Deprecated = other.Deprecated; 3260 } 3261 if (other.CcEnableArenas != false) { 3262 CcEnableArenas = other.CcEnableArenas; 3263 } 3264 if (other.ObjcClassPrefix.Length != 0) { 3265 ObjcClassPrefix = other.ObjcClassPrefix; 3266 } 3267 if (other.CsharpNamespace.Length != 0) { 3268 CsharpNamespace = other.CsharpNamespace; 3269 } 3270 uninterpretedOption_.Add(other.uninterpretedOption_); 3271 } 3272 3273 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)3274 public void MergeFrom(pb::CodedInputStream input) { 3275 uint tag; 3276 while ((tag = input.ReadTag()) != 0) { 3277 switch(tag) { 3278 default: 3279 input.SkipLastField(); 3280 break; 3281 case 10: { 3282 JavaPackage = input.ReadString(); 3283 break; 3284 } 3285 case 66: { 3286 JavaOuterClassname = input.ReadString(); 3287 break; 3288 } 3289 case 72: { 3290 optimizeFor_ = (global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) input.ReadEnum(); 3291 break; 3292 } 3293 case 80: { 3294 JavaMultipleFiles = input.ReadBool(); 3295 break; 3296 } 3297 case 90: { 3298 GoPackage = input.ReadString(); 3299 break; 3300 } 3301 case 128: { 3302 CcGenericServices = input.ReadBool(); 3303 break; 3304 } 3305 case 136: { 3306 JavaGenericServices = input.ReadBool(); 3307 break; 3308 } 3309 case 144: { 3310 PyGenericServices = input.ReadBool(); 3311 break; 3312 } 3313 case 160: { 3314 JavaGenerateEqualsAndHash = input.ReadBool(); 3315 break; 3316 } 3317 case 184: { 3318 Deprecated = input.ReadBool(); 3319 break; 3320 } 3321 case 216: { 3322 JavaStringCheckUtf8 = input.ReadBool(); 3323 break; 3324 } 3325 case 248: { 3326 CcEnableArenas = input.ReadBool(); 3327 break; 3328 } 3329 case 290: { 3330 ObjcClassPrefix = input.ReadString(); 3331 break; 3332 } 3333 case 298: { 3334 CsharpNamespace = input.ReadString(); 3335 break; 3336 } 3337 case 7994: { 3338 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec); 3339 break; 3340 } 3341 } 3342 } 3343 } 3344 3345 #region Nested types 3346 /// <summary>Container for nested types declared in the FileOptions message type.</summary> 3347 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3348 public static partial class Types { 3349 /// <summary> 3350 /// Generated classes can be optimized for speed or code size. 3351 /// </summary> 3352 internal enum OptimizeMode { 3353 /// <summary> 3354 /// Generate complete code for parsing, serialization, 3355 /// </summary> 3356 [pbr::OriginalName("SPEED")] Speed = 1, 3357 /// <summary> 3358 /// etc. 3359 /// </summary> 3360 [pbr::OriginalName("CODE_SIZE")] CodeSize = 2, 3361 /// <summary> 3362 /// Generate code using MessageLite and the lite runtime. 3363 /// </summary> 3364 [pbr::OriginalName("LITE_RUNTIME")] LiteRuntime = 3, 3365 } 3366 3367 } 3368 #endregion 3369 3370 } 3371 3372 internal sealed partial class MessageOptions : pb::IMessage<MessageOptions> { 3373 private static readonly pb::MessageParser<MessageOptions> _parser = new pb::MessageParser<MessageOptions>(() => new MessageOptions()); 3374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3375 public static pb::MessageParser<MessageOptions> Parser { get { return _parser; } } 3376 3377 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3378 public static pbr::MessageDescriptor Descriptor { 3379 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[10]; } 3380 } 3381 3382 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3383 pbr::MessageDescriptor pb::IMessage.Descriptor { 3384 get { return Descriptor; } 3385 } 3386 3387 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MessageOptions()3388 public MessageOptions() { 3389 OnConstruction(); 3390 } 3391 OnConstruction()3392 partial void OnConstruction(); 3393 3394 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MessageOptions(MessageOptions other)3395 public MessageOptions(MessageOptions other) : this() { 3396 messageSetWireFormat_ = other.messageSetWireFormat_; 3397 noStandardDescriptorAccessor_ = other.noStandardDescriptorAccessor_; 3398 deprecated_ = other.deprecated_; 3399 mapEntry_ = other.mapEntry_; 3400 uninterpretedOption_ = other.uninterpretedOption_.Clone(); 3401 } 3402 3403 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()3404 public MessageOptions Clone() { 3405 return new MessageOptions(this); 3406 } 3407 3408 /// <summary>Field number for the "message_set_wire_format" field.</summary> 3409 public const int MessageSetWireFormatFieldNumber = 1; 3410 private bool messageSetWireFormat_; 3411 /// <summary> 3412 /// Set true to use the old proto1 MessageSet wire format for extensions. 3413 /// This is provided for backwards-compatibility with the MessageSet wire 3414 /// format. You should not use this for any other reason: It's less 3415 /// efficient, has fewer features, and is more complicated. 3416 /// 3417 /// The message must be defined exactly as follows: 3418 /// message Foo { 3419 /// option message_set_wire_format = true; 3420 /// extensions 4 to max; 3421 /// } 3422 /// Note that the message cannot have any defined fields; MessageSets only 3423 /// have extensions. 3424 /// 3425 /// All extensions of your type must be singular messages; e.g. they cannot 3426 /// be int32s, enums, or repeated messages. 3427 /// 3428 /// Because this is an option, the above two restrictions are not enforced by 3429 /// the protocol compiler. 3430 /// </summary> 3431 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3432 public bool MessageSetWireFormat { 3433 get { return messageSetWireFormat_; } 3434 set { 3435 messageSetWireFormat_ = value; 3436 } 3437 } 3438 3439 /// <summary>Field number for the "no_standard_descriptor_accessor" field.</summary> 3440 public const int NoStandardDescriptorAccessorFieldNumber = 2; 3441 private bool noStandardDescriptorAccessor_; 3442 /// <summary> 3443 /// Disables the generation of the standard "descriptor()" accessor, which can 3444 /// conflict with a field of the same name. This is meant to make migration 3445 /// from proto1 easier; new code should avoid fields named "descriptor". 3446 /// </summary> 3447 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3448 public bool NoStandardDescriptorAccessor { 3449 get { return noStandardDescriptorAccessor_; } 3450 set { 3451 noStandardDescriptorAccessor_ = value; 3452 } 3453 } 3454 3455 /// <summary>Field number for the "deprecated" field.</summary> 3456 public const int DeprecatedFieldNumber = 3; 3457 private bool deprecated_; 3458 /// <summary> 3459 /// Is this message deprecated? 3460 /// Depending on the target platform, this can emit Deprecated annotations 3461 /// for the message, or it will be completely ignored; in the very least, 3462 /// this is a formalization for deprecating messages. 3463 /// </summary> 3464 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3465 public bool Deprecated { 3466 get { return deprecated_; } 3467 set { 3468 deprecated_ = value; 3469 } 3470 } 3471 3472 /// <summary>Field number for the "map_entry" field.</summary> 3473 public const int MapEntryFieldNumber = 7; 3474 private bool mapEntry_; 3475 /// <summary> 3476 /// Whether the message is an automatically generated map entry type for the 3477 /// maps field. 3478 /// 3479 /// For maps fields: 3480 /// map<KeyType, ValueType> map_field = 1; 3481 /// The parsed descriptor looks like: 3482 /// message MapFieldEntry { 3483 /// option map_entry = true; 3484 /// optional KeyType key = 1; 3485 /// optional ValueType value = 2; 3486 /// } 3487 /// repeated MapFieldEntry map_field = 1; 3488 /// 3489 /// Implementations may choose not to generate the map_entry=true message, but 3490 /// use a native map in the target language to hold the keys and values. 3491 /// The reflection APIs in such implementions still need to work as 3492 /// if the field is a repeated message field. 3493 /// 3494 /// NOTE: Do not set the option in .proto files. Always use the maps syntax 3495 /// instead. The option should only be implicitly set by the proto compiler 3496 /// parser. 3497 /// </summary> 3498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3499 public bool MapEntry { 3500 get { return mapEntry_; } 3501 set { 3502 mapEntry_ = value; 3503 } 3504 } 3505 3506 /// <summary>Field number for the "uninterpreted_option" field.</summary> 3507 public const int UninterpretedOptionFieldNumber = 999; 3508 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec 3509 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser); 3510 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>(); 3511 /// <summary> 3512 /// The parser stores options it doesn't recognize here. See above. 3513 /// </summary> 3514 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3515 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption { 3516 get { return uninterpretedOption_; } 3517 } 3518 3519 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)3520 public override bool Equals(object other) { 3521 return Equals(other as MessageOptions); 3522 } 3523 3524 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(MessageOptions other)3525 public bool Equals(MessageOptions other) { 3526 if (ReferenceEquals(other, null)) { 3527 return false; 3528 } 3529 if (ReferenceEquals(other, this)) { 3530 return true; 3531 } 3532 if (MessageSetWireFormat != other.MessageSetWireFormat) return false; 3533 if (NoStandardDescriptorAccessor != other.NoStandardDescriptorAccessor) return false; 3534 if (Deprecated != other.Deprecated) return false; 3535 if (MapEntry != other.MapEntry) return false; 3536 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; 3537 return true; 3538 } 3539 3540 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()3541 public override int GetHashCode() { 3542 int hash = 1; 3543 if (MessageSetWireFormat != false) hash ^= MessageSetWireFormat.GetHashCode(); 3544 if (NoStandardDescriptorAccessor != false) hash ^= NoStandardDescriptorAccessor.GetHashCode(); 3545 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); 3546 if (MapEntry != false) hash ^= MapEntry.GetHashCode(); 3547 hash ^= uninterpretedOption_.GetHashCode(); 3548 return hash; 3549 } 3550 3551 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()3552 public override string ToString() { 3553 return pb::JsonFormatter.ToDiagnosticString(this); 3554 } 3555 3556 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)3557 public void WriteTo(pb::CodedOutputStream output) { 3558 if (MessageSetWireFormat != false) { 3559 output.WriteRawTag(8); 3560 output.WriteBool(MessageSetWireFormat); 3561 } 3562 if (NoStandardDescriptorAccessor != false) { 3563 output.WriteRawTag(16); 3564 output.WriteBool(NoStandardDescriptorAccessor); 3565 } 3566 if (Deprecated != false) { 3567 output.WriteRawTag(24); 3568 output.WriteBool(Deprecated); 3569 } 3570 if (MapEntry != false) { 3571 output.WriteRawTag(56); 3572 output.WriteBool(MapEntry); 3573 } 3574 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); 3575 } 3576 3577 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()3578 public int CalculateSize() { 3579 int size = 0; 3580 if (MessageSetWireFormat != false) { 3581 size += 1 + 1; 3582 } 3583 if (NoStandardDescriptorAccessor != false) { 3584 size += 1 + 1; 3585 } 3586 if (Deprecated != false) { 3587 size += 1 + 1; 3588 } 3589 if (MapEntry != false) { 3590 size += 1 + 1; 3591 } 3592 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec); 3593 return size; 3594 } 3595 3596 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(MessageOptions other)3597 public void MergeFrom(MessageOptions other) { 3598 if (other == null) { 3599 return; 3600 } 3601 if (other.MessageSetWireFormat != false) { 3602 MessageSetWireFormat = other.MessageSetWireFormat; 3603 } 3604 if (other.NoStandardDescriptorAccessor != false) { 3605 NoStandardDescriptorAccessor = other.NoStandardDescriptorAccessor; 3606 } 3607 if (other.Deprecated != false) { 3608 Deprecated = other.Deprecated; 3609 } 3610 if (other.MapEntry != false) { 3611 MapEntry = other.MapEntry; 3612 } 3613 uninterpretedOption_.Add(other.uninterpretedOption_); 3614 } 3615 3616 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)3617 public void MergeFrom(pb::CodedInputStream input) { 3618 uint tag; 3619 while ((tag = input.ReadTag()) != 0) { 3620 switch(tag) { 3621 default: 3622 input.SkipLastField(); 3623 break; 3624 case 8: { 3625 MessageSetWireFormat = input.ReadBool(); 3626 break; 3627 } 3628 case 16: { 3629 NoStandardDescriptorAccessor = input.ReadBool(); 3630 break; 3631 } 3632 case 24: { 3633 Deprecated = input.ReadBool(); 3634 break; 3635 } 3636 case 56: { 3637 MapEntry = input.ReadBool(); 3638 break; 3639 } 3640 case 7994: { 3641 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec); 3642 break; 3643 } 3644 } 3645 } 3646 } 3647 3648 } 3649 3650 internal sealed partial class FieldOptions : pb::IMessage<FieldOptions> { 3651 private static readonly pb::MessageParser<FieldOptions> _parser = new pb::MessageParser<FieldOptions>(() => new FieldOptions()); 3652 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3653 public static pb::MessageParser<FieldOptions> Parser { get { return _parser; } } 3654 3655 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3656 public static pbr::MessageDescriptor Descriptor { 3657 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[11]; } 3658 } 3659 3660 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3661 pbr::MessageDescriptor pb::IMessage.Descriptor { 3662 get { return Descriptor; } 3663 } 3664 3665 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] FieldOptions()3666 public FieldOptions() { 3667 OnConstruction(); 3668 } 3669 OnConstruction()3670 partial void OnConstruction(); 3671 3672 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] FieldOptions(FieldOptions other)3673 public FieldOptions(FieldOptions other) : this() { 3674 ctype_ = other.ctype_; 3675 packed_ = other.packed_; 3676 jstype_ = other.jstype_; 3677 lazy_ = other.lazy_; 3678 deprecated_ = other.deprecated_; 3679 weak_ = other.weak_; 3680 uninterpretedOption_ = other.uninterpretedOption_.Clone(); 3681 } 3682 3683 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()3684 public FieldOptions Clone() { 3685 return new FieldOptions(this); 3686 } 3687 3688 /// <summary>Field number for the "ctype" field.</summary> 3689 public const int CtypeFieldNumber = 1; 3690 private global::Google.Protobuf.Reflection.FieldOptions.Types.CType ctype_ = 0; 3691 /// <summary> 3692 /// The ctype option instructs the C++ code generator to use a different 3693 /// representation of the field than it normally would. See the specific 3694 /// options below. This option is not yet implemented in the open source 3695 /// release -- sorry, we'll try to include it in a future version! 3696 /// </summary> 3697 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3698 public global::Google.Protobuf.Reflection.FieldOptions.Types.CType Ctype { 3699 get { return ctype_; } 3700 set { 3701 ctype_ = value; 3702 } 3703 } 3704 3705 /// <summary>Field number for the "packed" field.</summary> 3706 public const int PackedFieldNumber = 2; 3707 private bool packed_; 3708 /// <summary> 3709 /// The packed option can be enabled for repeated primitive fields to enable 3710 /// a more efficient representation on the wire. Rather than repeatedly 3711 /// writing the tag and type for each element, the entire array is encoded as 3712 /// a single length-delimited blob. In proto3, only explicit setting it to 3713 /// false will avoid using packed encoding. 3714 /// </summary> 3715 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3716 public bool Packed { 3717 get { return packed_; } 3718 set { 3719 packed_ = value; 3720 } 3721 } 3722 3723 /// <summary>Field number for the "jstype" field.</summary> 3724 public const int JstypeFieldNumber = 6; 3725 private global::Google.Protobuf.Reflection.FieldOptions.Types.JSType jstype_ = 0; 3726 /// <summary> 3727 /// The jstype option determines the JavaScript type used for values of the 3728 /// field. The option is permitted only for 64 bit integral and fixed types 3729 /// (int64, uint64, sint64, fixed64, sfixed64). By default these types are 3730 /// represented as JavaScript strings. This avoids loss of precision that can 3731 /// happen when a large value is converted to a floating point JavaScript 3732 /// numbers. Specifying JS_NUMBER for the jstype causes the generated 3733 /// JavaScript code to use the JavaScript "number" type instead of strings. 3734 /// This option is an enum to permit additional types to be added, 3735 /// e.g. goog.math.Integer. 3736 /// </summary> 3737 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3738 public global::Google.Protobuf.Reflection.FieldOptions.Types.JSType Jstype { 3739 get { return jstype_; } 3740 set { 3741 jstype_ = value; 3742 } 3743 } 3744 3745 /// <summary>Field number for the "lazy" field.</summary> 3746 public const int LazyFieldNumber = 5; 3747 private bool lazy_; 3748 /// <summary> 3749 /// Should this field be parsed lazily? Lazy applies only to message-type 3750 /// fields. It means that when the outer message is initially parsed, the 3751 /// inner message's contents will not be parsed but instead stored in encoded 3752 /// form. The inner message will actually be parsed when it is first accessed. 3753 /// 3754 /// This is only a hint. Implementations are free to choose whether to use 3755 /// eager or lazy parsing regardless of the value of this option. However, 3756 /// setting this option true suggests that the protocol author believes that 3757 /// using lazy parsing on this field is worth the additional bookkeeping 3758 /// overhead typically needed to implement it. 3759 /// 3760 /// This option does not affect the public interface of any generated code; 3761 /// all method signatures remain the same. Furthermore, thread-safety of the 3762 /// interface is not affected by this option; const methods remain safe to 3763 /// call from multiple threads concurrently, while non-const methods continue 3764 /// to require exclusive access. 3765 /// 3766 /// Note that implementations may choose not to check required fields within 3767 /// a lazy sub-message. That is, calling IsInitialized() on the outher message 3768 /// may return true even if the inner message has missing required fields. 3769 /// This is necessary because otherwise the inner message would have to be 3770 /// parsed in order to perform the check, defeating the purpose of lazy 3771 /// parsing. An implementation which chooses not to check required fields 3772 /// must be consistent about it. That is, for any particular sub-message, the 3773 /// implementation must either *always* check its required fields, or *never* 3774 /// check its required fields, regardless of whether or not the message has 3775 /// been parsed. 3776 /// </summary> 3777 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3778 public bool Lazy { 3779 get { return lazy_; } 3780 set { 3781 lazy_ = value; 3782 } 3783 } 3784 3785 /// <summary>Field number for the "deprecated" field.</summary> 3786 public const int DeprecatedFieldNumber = 3; 3787 private bool deprecated_; 3788 /// <summary> 3789 /// Is this field deprecated? 3790 /// Depending on the target platform, this can emit Deprecated annotations 3791 /// for accessors, or it will be completely ignored; in the very least, this 3792 /// is a formalization for deprecating fields. 3793 /// </summary> 3794 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3795 public bool Deprecated { 3796 get { return deprecated_; } 3797 set { 3798 deprecated_ = value; 3799 } 3800 } 3801 3802 /// <summary>Field number for the "weak" field.</summary> 3803 public const int WeakFieldNumber = 10; 3804 private bool weak_; 3805 /// <summary> 3806 /// For Google-internal migration only. Do not use. 3807 /// </summary> 3808 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3809 public bool Weak { 3810 get { return weak_; } 3811 set { 3812 weak_ = value; 3813 } 3814 } 3815 3816 /// <summary>Field number for the "uninterpreted_option" field.</summary> 3817 public const int UninterpretedOptionFieldNumber = 999; 3818 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec 3819 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser); 3820 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>(); 3821 /// <summary> 3822 /// The parser stores options it doesn't recognize here. See above. 3823 /// </summary> 3824 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3825 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption { 3826 get { return uninterpretedOption_; } 3827 } 3828 3829 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)3830 public override bool Equals(object other) { 3831 return Equals(other as FieldOptions); 3832 } 3833 3834 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(FieldOptions other)3835 public bool Equals(FieldOptions other) { 3836 if (ReferenceEquals(other, null)) { 3837 return false; 3838 } 3839 if (ReferenceEquals(other, this)) { 3840 return true; 3841 } 3842 if (Ctype != other.Ctype) return false; 3843 if (Packed != other.Packed) return false; 3844 if (Jstype != other.Jstype) return false; 3845 if (Lazy != other.Lazy) return false; 3846 if (Deprecated != other.Deprecated) return false; 3847 if (Weak != other.Weak) return false; 3848 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; 3849 return true; 3850 } 3851 3852 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()3853 public override int GetHashCode() { 3854 int hash = 1; 3855 if (Ctype != 0) hash ^= Ctype.GetHashCode(); 3856 if (Packed != false) hash ^= Packed.GetHashCode(); 3857 if (Jstype != 0) hash ^= Jstype.GetHashCode(); 3858 if (Lazy != false) hash ^= Lazy.GetHashCode(); 3859 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); 3860 if (Weak != false) hash ^= Weak.GetHashCode(); 3861 hash ^= uninterpretedOption_.GetHashCode(); 3862 return hash; 3863 } 3864 3865 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()3866 public override string ToString() { 3867 return pb::JsonFormatter.ToDiagnosticString(this); 3868 } 3869 3870 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)3871 public void WriteTo(pb::CodedOutputStream output) { 3872 if (Ctype != 0) { 3873 output.WriteRawTag(8); 3874 output.WriteEnum((int) Ctype); 3875 } 3876 if (Packed != false) { 3877 output.WriteRawTag(16); 3878 output.WriteBool(Packed); 3879 } 3880 if (Deprecated != false) { 3881 output.WriteRawTag(24); 3882 output.WriteBool(Deprecated); 3883 } 3884 if (Lazy != false) { 3885 output.WriteRawTag(40); 3886 output.WriteBool(Lazy); 3887 } 3888 if (Jstype != 0) { 3889 output.WriteRawTag(48); 3890 output.WriteEnum((int) Jstype); 3891 } 3892 if (Weak != false) { 3893 output.WriteRawTag(80); 3894 output.WriteBool(Weak); 3895 } 3896 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); 3897 } 3898 3899 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()3900 public int CalculateSize() { 3901 int size = 0; 3902 if (Ctype != 0) { 3903 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Ctype); 3904 } 3905 if (Packed != false) { 3906 size += 1 + 1; 3907 } 3908 if (Jstype != 0) { 3909 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Jstype); 3910 } 3911 if (Lazy != false) { 3912 size += 1 + 1; 3913 } 3914 if (Deprecated != false) { 3915 size += 1 + 1; 3916 } 3917 if (Weak != false) { 3918 size += 1 + 1; 3919 } 3920 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec); 3921 return size; 3922 } 3923 3924 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(FieldOptions other)3925 public void MergeFrom(FieldOptions other) { 3926 if (other == null) { 3927 return; 3928 } 3929 if (other.Ctype != 0) { 3930 Ctype = other.Ctype; 3931 } 3932 if (other.Packed != false) { 3933 Packed = other.Packed; 3934 } 3935 if (other.Jstype != 0) { 3936 Jstype = other.Jstype; 3937 } 3938 if (other.Lazy != false) { 3939 Lazy = other.Lazy; 3940 } 3941 if (other.Deprecated != false) { 3942 Deprecated = other.Deprecated; 3943 } 3944 if (other.Weak != false) { 3945 Weak = other.Weak; 3946 } 3947 uninterpretedOption_.Add(other.uninterpretedOption_); 3948 } 3949 3950 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)3951 public void MergeFrom(pb::CodedInputStream input) { 3952 uint tag; 3953 while ((tag = input.ReadTag()) != 0) { 3954 switch(tag) { 3955 default: 3956 input.SkipLastField(); 3957 break; 3958 case 8: { 3959 ctype_ = (global::Google.Protobuf.Reflection.FieldOptions.Types.CType) input.ReadEnum(); 3960 break; 3961 } 3962 case 16: { 3963 Packed = input.ReadBool(); 3964 break; 3965 } 3966 case 24: { 3967 Deprecated = input.ReadBool(); 3968 break; 3969 } 3970 case 40: { 3971 Lazy = input.ReadBool(); 3972 break; 3973 } 3974 case 48: { 3975 jstype_ = (global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) input.ReadEnum(); 3976 break; 3977 } 3978 case 80: { 3979 Weak = input.ReadBool(); 3980 break; 3981 } 3982 case 7994: { 3983 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec); 3984 break; 3985 } 3986 } 3987 } 3988 } 3989 3990 #region Nested types 3991 /// <summary>Container for nested types declared in the FieldOptions message type.</summary> 3992 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3993 public static partial class Types { 3994 internal enum CType { 3995 /// <summary> 3996 /// Default mode. 3997 /// </summary> 3998 [pbr::OriginalName("STRING")] String = 0, 3999 [pbr::OriginalName("CORD")] Cord = 1, 4000 [pbr::OriginalName("STRING_PIECE")] StringPiece = 2, 4001 } 4002 4003 internal enum JSType { 4004 /// <summary> 4005 /// Use the default type. 4006 /// </summary> 4007 [pbr::OriginalName("JS_NORMAL")] JsNormal = 0, 4008 /// <summary> 4009 /// Use JavaScript strings. 4010 /// </summary> 4011 [pbr::OriginalName("JS_STRING")] JsString = 1, 4012 /// <summary> 4013 /// Use JavaScript numbers. 4014 /// </summary> 4015 [pbr::OriginalName("JS_NUMBER")] JsNumber = 2, 4016 } 4017 4018 } 4019 #endregion 4020 4021 } 4022 4023 internal sealed partial class OneofOptions : pb::IMessage<OneofOptions> { 4024 private static readonly pb::MessageParser<OneofOptions> _parser = new pb::MessageParser<OneofOptions>(() => new OneofOptions()); 4025 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4026 public static pb::MessageParser<OneofOptions> Parser { get { return _parser; } } 4027 4028 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4029 public static pbr::MessageDescriptor Descriptor { 4030 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[12]; } 4031 } 4032 4033 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4034 pbr::MessageDescriptor pb::IMessage.Descriptor { 4035 get { return Descriptor; } 4036 } 4037 4038 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] OneofOptions()4039 public OneofOptions() { 4040 OnConstruction(); 4041 } 4042 OnConstruction()4043 partial void OnConstruction(); 4044 4045 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] OneofOptions(OneofOptions other)4046 public OneofOptions(OneofOptions other) : this() { 4047 uninterpretedOption_ = other.uninterpretedOption_.Clone(); 4048 } 4049 4050 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()4051 public OneofOptions Clone() { 4052 return new OneofOptions(this); 4053 } 4054 4055 /// <summary>Field number for the "uninterpreted_option" field.</summary> 4056 public const int UninterpretedOptionFieldNumber = 999; 4057 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec 4058 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser); 4059 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>(); 4060 /// <summary> 4061 /// The parser stores options it doesn't recognize here. See above. 4062 /// </summary> 4063 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4064 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption { 4065 get { return uninterpretedOption_; } 4066 } 4067 4068 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)4069 public override bool Equals(object other) { 4070 return Equals(other as OneofOptions); 4071 } 4072 4073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(OneofOptions other)4074 public bool Equals(OneofOptions other) { 4075 if (ReferenceEquals(other, null)) { 4076 return false; 4077 } 4078 if (ReferenceEquals(other, this)) { 4079 return true; 4080 } 4081 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; 4082 return true; 4083 } 4084 4085 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()4086 public override int GetHashCode() { 4087 int hash = 1; 4088 hash ^= uninterpretedOption_.GetHashCode(); 4089 return hash; 4090 } 4091 4092 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()4093 public override string ToString() { 4094 return pb::JsonFormatter.ToDiagnosticString(this); 4095 } 4096 4097 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)4098 public void WriteTo(pb::CodedOutputStream output) { 4099 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); 4100 } 4101 4102 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()4103 public int CalculateSize() { 4104 int size = 0; 4105 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec); 4106 return size; 4107 } 4108 4109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(OneofOptions other)4110 public void MergeFrom(OneofOptions other) { 4111 if (other == null) { 4112 return; 4113 } 4114 uninterpretedOption_.Add(other.uninterpretedOption_); 4115 } 4116 4117 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)4118 public void MergeFrom(pb::CodedInputStream input) { 4119 uint tag; 4120 while ((tag = input.ReadTag()) != 0) { 4121 switch(tag) { 4122 default: 4123 input.SkipLastField(); 4124 break; 4125 case 7994: { 4126 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec); 4127 break; 4128 } 4129 } 4130 } 4131 } 4132 4133 } 4134 4135 internal sealed partial class EnumOptions : pb::IMessage<EnumOptions> { 4136 private static readonly pb::MessageParser<EnumOptions> _parser = new pb::MessageParser<EnumOptions>(() => new EnumOptions()); 4137 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4138 public static pb::MessageParser<EnumOptions> Parser { get { return _parser; } } 4139 4140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4141 public static pbr::MessageDescriptor Descriptor { 4142 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[13]; } 4143 } 4144 4145 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4146 pbr::MessageDescriptor pb::IMessage.Descriptor { 4147 get { return Descriptor; } 4148 } 4149 4150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] EnumOptions()4151 public EnumOptions() { 4152 OnConstruction(); 4153 } 4154 OnConstruction()4155 partial void OnConstruction(); 4156 4157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] EnumOptions(EnumOptions other)4158 public EnumOptions(EnumOptions other) : this() { 4159 allowAlias_ = other.allowAlias_; 4160 deprecated_ = other.deprecated_; 4161 uninterpretedOption_ = other.uninterpretedOption_.Clone(); 4162 } 4163 4164 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()4165 public EnumOptions Clone() { 4166 return new EnumOptions(this); 4167 } 4168 4169 /// <summary>Field number for the "allow_alias" field.</summary> 4170 public const int AllowAliasFieldNumber = 2; 4171 private bool allowAlias_; 4172 /// <summary> 4173 /// Set this option to true to allow mapping different tag names to the same 4174 /// value. 4175 /// </summary> 4176 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4177 public bool AllowAlias { 4178 get { return allowAlias_; } 4179 set { 4180 allowAlias_ = value; 4181 } 4182 } 4183 4184 /// <summary>Field number for the "deprecated" field.</summary> 4185 public const int DeprecatedFieldNumber = 3; 4186 private bool deprecated_; 4187 /// <summary> 4188 /// Is this enum deprecated? 4189 /// Depending on the target platform, this can emit Deprecated annotations 4190 /// for the enum, or it will be completely ignored; in the very least, this 4191 /// is a formalization for deprecating enums. 4192 /// </summary> 4193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4194 public bool Deprecated { 4195 get { return deprecated_; } 4196 set { 4197 deprecated_ = value; 4198 } 4199 } 4200 4201 /// <summary>Field number for the "uninterpreted_option" field.</summary> 4202 public const int UninterpretedOptionFieldNumber = 999; 4203 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec 4204 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser); 4205 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>(); 4206 /// <summary> 4207 /// The parser stores options it doesn't recognize here. See above. 4208 /// </summary> 4209 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4210 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption { 4211 get { return uninterpretedOption_; } 4212 } 4213 4214 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)4215 public override bool Equals(object other) { 4216 return Equals(other as EnumOptions); 4217 } 4218 4219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(EnumOptions other)4220 public bool Equals(EnumOptions other) { 4221 if (ReferenceEquals(other, null)) { 4222 return false; 4223 } 4224 if (ReferenceEquals(other, this)) { 4225 return true; 4226 } 4227 if (AllowAlias != other.AllowAlias) return false; 4228 if (Deprecated != other.Deprecated) return false; 4229 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; 4230 return true; 4231 } 4232 4233 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()4234 public override int GetHashCode() { 4235 int hash = 1; 4236 if (AllowAlias != false) hash ^= AllowAlias.GetHashCode(); 4237 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); 4238 hash ^= uninterpretedOption_.GetHashCode(); 4239 return hash; 4240 } 4241 4242 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()4243 public override string ToString() { 4244 return pb::JsonFormatter.ToDiagnosticString(this); 4245 } 4246 4247 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)4248 public void WriteTo(pb::CodedOutputStream output) { 4249 if (AllowAlias != false) { 4250 output.WriteRawTag(16); 4251 output.WriteBool(AllowAlias); 4252 } 4253 if (Deprecated != false) { 4254 output.WriteRawTag(24); 4255 output.WriteBool(Deprecated); 4256 } 4257 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); 4258 } 4259 4260 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()4261 public int CalculateSize() { 4262 int size = 0; 4263 if (AllowAlias != false) { 4264 size += 1 + 1; 4265 } 4266 if (Deprecated != false) { 4267 size += 1 + 1; 4268 } 4269 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec); 4270 return size; 4271 } 4272 4273 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(EnumOptions other)4274 public void MergeFrom(EnumOptions other) { 4275 if (other == null) { 4276 return; 4277 } 4278 if (other.AllowAlias != false) { 4279 AllowAlias = other.AllowAlias; 4280 } 4281 if (other.Deprecated != false) { 4282 Deprecated = other.Deprecated; 4283 } 4284 uninterpretedOption_.Add(other.uninterpretedOption_); 4285 } 4286 4287 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)4288 public void MergeFrom(pb::CodedInputStream input) { 4289 uint tag; 4290 while ((tag = input.ReadTag()) != 0) { 4291 switch(tag) { 4292 default: 4293 input.SkipLastField(); 4294 break; 4295 case 16: { 4296 AllowAlias = input.ReadBool(); 4297 break; 4298 } 4299 case 24: { 4300 Deprecated = input.ReadBool(); 4301 break; 4302 } 4303 case 7994: { 4304 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec); 4305 break; 4306 } 4307 } 4308 } 4309 } 4310 4311 } 4312 4313 internal sealed partial class EnumValueOptions : pb::IMessage<EnumValueOptions> { 4314 private static readonly pb::MessageParser<EnumValueOptions> _parser = new pb::MessageParser<EnumValueOptions>(() => new EnumValueOptions()); 4315 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4316 public static pb::MessageParser<EnumValueOptions> Parser { get { return _parser; } } 4317 4318 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4319 public static pbr::MessageDescriptor Descriptor { 4320 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[14]; } 4321 } 4322 4323 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4324 pbr::MessageDescriptor pb::IMessage.Descriptor { 4325 get { return Descriptor; } 4326 } 4327 4328 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] EnumValueOptions()4329 public EnumValueOptions() { 4330 OnConstruction(); 4331 } 4332 OnConstruction()4333 partial void OnConstruction(); 4334 4335 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] EnumValueOptions(EnumValueOptions other)4336 public EnumValueOptions(EnumValueOptions other) : this() { 4337 deprecated_ = other.deprecated_; 4338 uninterpretedOption_ = other.uninterpretedOption_.Clone(); 4339 } 4340 4341 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()4342 public EnumValueOptions Clone() { 4343 return new EnumValueOptions(this); 4344 } 4345 4346 /// <summary>Field number for the "deprecated" field.</summary> 4347 public const int DeprecatedFieldNumber = 1; 4348 private bool deprecated_; 4349 /// <summary> 4350 /// Is this enum value deprecated? 4351 /// Depending on the target platform, this can emit Deprecated annotations 4352 /// for the enum value, or it will be completely ignored; in the very least, 4353 /// this is a formalization for deprecating enum values. 4354 /// </summary> 4355 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4356 public bool Deprecated { 4357 get { return deprecated_; } 4358 set { 4359 deprecated_ = value; 4360 } 4361 } 4362 4363 /// <summary>Field number for the "uninterpreted_option" field.</summary> 4364 public const int UninterpretedOptionFieldNumber = 999; 4365 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec 4366 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser); 4367 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>(); 4368 /// <summary> 4369 /// The parser stores options it doesn't recognize here. See above. 4370 /// </summary> 4371 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4372 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption { 4373 get { return uninterpretedOption_; } 4374 } 4375 4376 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)4377 public override bool Equals(object other) { 4378 return Equals(other as EnumValueOptions); 4379 } 4380 4381 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(EnumValueOptions other)4382 public bool Equals(EnumValueOptions other) { 4383 if (ReferenceEquals(other, null)) { 4384 return false; 4385 } 4386 if (ReferenceEquals(other, this)) { 4387 return true; 4388 } 4389 if (Deprecated != other.Deprecated) return false; 4390 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; 4391 return true; 4392 } 4393 4394 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()4395 public override int GetHashCode() { 4396 int hash = 1; 4397 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); 4398 hash ^= uninterpretedOption_.GetHashCode(); 4399 return hash; 4400 } 4401 4402 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()4403 public override string ToString() { 4404 return pb::JsonFormatter.ToDiagnosticString(this); 4405 } 4406 4407 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)4408 public void WriteTo(pb::CodedOutputStream output) { 4409 if (Deprecated != false) { 4410 output.WriteRawTag(8); 4411 output.WriteBool(Deprecated); 4412 } 4413 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); 4414 } 4415 4416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()4417 public int CalculateSize() { 4418 int size = 0; 4419 if (Deprecated != false) { 4420 size += 1 + 1; 4421 } 4422 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec); 4423 return size; 4424 } 4425 4426 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(EnumValueOptions other)4427 public void MergeFrom(EnumValueOptions other) { 4428 if (other == null) { 4429 return; 4430 } 4431 if (other.Deprecated != false) { 4432 Deprecated = other.Deprecated; 4433 } 4434 uninterpretedOption_.Add(other.uninterpretedOption_); 4435 } 4436 4437 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)4438 public void MergeFrom(pb::CodedInputStream input) { 4439 uint tag; 4440 while ((tag = input.ReadTag()) != 0) { 4441 switch(tag) { 4442 default: 4443 input.SkipLastField(); 4444 break; 4445 case 8: { 4446 Deprecated = input.ReadBool(); 4447 break; 4448 } 4449 case 7994: { 4450 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec); 4451 break; 4452 } 4453 } 4454 } 4455 } 4456 4457 } 4458 4459 internal sealed partial class ServiceOptions : pb::IMessage<ServiceOptions> { 4460 private static readonly pb::MessageParser<ServiceOptions> _parser = new pb::MessageParser<ServiceOptions>(() => new ServiceOptions()); 4461 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4462 public static pb::MessageParser<ServiceOptions> Parser { get { return _parser; } } 4463 4464 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4465 public static pbr::MessageDescriptor Descriptor { 4466 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[15]; } 4467 } 4468 4469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4470 pbr::MessageDescriptor pb::IMessage.Descriptor { 4471 get { return Descriptor; } 4472 } 4473 4474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ServiceOptions()4475 public ServiceOptions() { 4476 OnConstruction(); 4477 } 4478 OnConstruction()4479 partial void OnConstruction(); 4480 4481 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ServiceOptions(ServiceOptions other)4482 public ServiceOptions(ServiceOptions other) : this() { 4483 deprecated_ = other.deprecated_; 4484 uninterpretedOption_ = other.uninterpretedOption_.Clone(); 4485 } 4486 4487 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()4488 public ServiceOptions Clone() { 4489 return new ServiceOptions(this); 4490 } 4491 4492 /// <summary>Field number for the "deprecated" field.</summary> 4493 public const int DeprecatedFieldNumber = 33; 4494 private bool deprecated_; 4495 /// <summary> 4496 /// Is this service deprecated? 4497 /// Depending on the target platform, this can emit Deprecated annotations 4498 /// for the service, or it will be completely ignored; in the very least, 4499 /// this is a formalization for deprecating services. 4500 /// </summary> 4501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4502 public bool Deprecated { 4503 get { return deprecated_; } 4504 set { 4505 deprecated_ = value; 4506 } 4507 } 4508 4509 /// <summary>Field number for the "uninterpreted_option" field.</summary> 4510 public const int UninterpretedOptionFieldNumber = 999; 4511 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec 4512 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser); 4513 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>(); 4514 /// <summary> 4515 /// The parser stores options it doesn't recognize here. See above. 4516 /// </summary> 4517 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4518 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption { 4519 get { return uninterpretedOption_; } 4520 } 4521 4522 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)4523 public override bool Equals(object other) { 4524 return Equals(other as ServiceOptions); 4525 } 4526 4527 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(ServiceOptions other)4528 public bool Equals(ServiceOptions other) { 4529 if (ReferenceEquals(other, null)) { 4530 return false; 4531 } 4532 if (ReferenceEquals(other, this)) { 4533 return true; 4534 } 4535 if (Deprecated != other.Deprecated) return false; 4536 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; 4537 return true; 4538 } 4539 4540 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()4541 public override int GetHashCode() { 4542 int hash = 1; 4543 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); 4544 hash ^= uninterpretedOption_.GetHashCode(); 4545 return hash; 4546 } 4547 4548 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()4549 public override string ToString() { 4550 return pb::JsonFormatter.ToDiagnosticString(this); 4551 } 4552 4553 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)4554 public void WriteTo(pb::CodedOutputStream output) { 4555 if (Deprecated != false) { 4556 output.WriteRawTag(136, 2); 4557 output.WriteBool(Deprecated); 4558 } 4559 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); 4560 } 4561 4562 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()4563 public int CalculateSize() { 4564 int size = 0; 4565 if (Deprecated != false) { 4566 size += 2 + 1; 4567 } 4568 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec); 4569 return size; 4570 } 4571 4572 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(ServiceOptions other)4573 public void MergeFrom(ServiceOptions other) { 4574 if (other == null) { 4575 return; 4576 } 4577 if (other.Deprecated != false) { 4578 Deprecated = other.Deprecated; 4579 } 4580 uninterpretedOption_.Add(other.uninterpretedOption_); 4581 } 4582 4583 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)4584 public void MergeFrom(pb::CodedInputStream input) { 4585 uint tag; 4586 while ((tag = input.ReadTag()) != 0) { 4587 switch(tag) { 4588 default: 4589 input.SkipLastField(); 4590 break; 4591 case 264: { 4592 Deprecated = input.ReadBool(); 4593 break; 4594 } 4595 case 7994: { 4596 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec); 4597 break; 4598 } 4599 } 4600 } 4601 } 4602 4603 } 4604 4605 internal sealed partial class MethodOptions : pb::IMessage<MethodOptions> { 4606 private static readonly pb::MessageParser<MethodOptions> _parser = new pb::MessageParser<MethodOptions>(() => new MethodOptions()); 4607 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4608 public static pb::MessageParser<MethodOptions> Parser { get { return _parser; } } 4609 4610 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4611 public static pbr::MessageDescriptor Descriptor { 4612 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[16]; } 4613 } 4614 4615 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4616 pbr::MessageDescriptor pb::IMessage.Descriptor { 4617 get { return Descriptor; } 4618 } 4619 4620 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MethodOptions()4621 public MethodOptions() { 4622 OnConstruction(); 4623 } 4624 OnConstruction()4625 partial void OnConstruction(); 4626 4627 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MethodOptions(MethodOptions other)4628 public MethodOptions(MethodOptions other) : this() { 4629 deprecated_ = other.deprecated_; 4630 uninterpretedOption_ = other.uninterpretedOption_.Clone(); 4631 } 4632 4633 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()4634 public MethodOptions Clone() { 4635 return new MethodOptions(this); 4636 } 4637 4638 /// <summary>Field number for the "deprecated" field.</summary> 4639 public const int DeprecatedFieldNumber = 33; 4640 private bool deprecated_; 4641 /// <summary> 4642 /// Is this method deprecated? 4643 /// Depending on the target platform, this can emit Deprecated annotations 4644 /// for the method, or it will be completely ignored; in the very least, 4645 /// this is a formalization for deprecating methods. 4646 /// </summary> 4647 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4648 public bool Deprecated { 4649 get { return deprecated_; } 4650 set { 4651 deprecated_ = value; 4652 } 4653 } 4654 4655 /// <summary>Field number for the "uninterpreted_option" field.</summary> 4656 public const int UninterpretedOptionFieldNumber = 999; 4657 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec 4658 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser); 4659 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>(); 4660 /// <summary> 4661 /// The parser stores options it doesn't recognize here. See above. 4662 /// </summary> 4663 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4664 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption { 4665 get { return uninterpretedOption_; } 4666 } 4667 4668 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)4669 public override bool Equals(object other) { 4670 return Equals(other as MethodOptions); 4671 } 4672 4673 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(MethodOptions other)4674 public bool Equals(MethodOptions other) { 4675 if (ReferenceEquals(other, null)) { 4676 return false; 4677 } 4678 if (ReferenceEquals(other, this)) { 4679 return true; 4680 } 4681 if (Deprecated != other.Deprecated) return false; 4682 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; 4683 return true; 4684 } 4685 4686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()4687 public override int GetHashCode() { 4688 int hash = 1; 4689 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); 4690 hash ^= uninterpretedOption_.GetHashCode(); 4691 return hash; 4692 } 4693 4694 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()4695 public override string ToString() { 4696 return pb::JsonFormatter.ToDiagnosticString(this); 4697 } 4698 4699 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)4700 public void WriteTo(pb::CodedOutputStream output) { 4701 if (Deprecated != false) { 4702 output.WriteRawTag(136, 2); 4703 output.WriteBool(Deprecated); 4704 } 4705 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); 4706 } 4707 4708 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()4709 public int CalculateSize() { 4710 int size = 0; 4711 if (Deprecated != false) { 4712 size += 2 + 1; 4713 } 4714 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec); 4715 return size; 4716 } 4717 4718 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(MethodOptions other)4719 public void MergeFrom(MethodOptions other) { 4720 if (other == null) { 4721 return; 4722 } 4723 if (other.Deprecated != false) { 4724 Deprecated = other.Deprecated; 4725 } 4726 uninterpretedOption_.Add(other.uninterpretedOption_); 4727 } 4728 4729 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)4730 public void MergeFrom(pb::CodedInputStream input) { 4731 uint tag; 4732 while ((tag = input.ReadTag()) != 0) { 4733 switch(tag) { 4734 default: 4735 input.SkipLastField(); 4736 break; 4737 case 264: { 4738 Deprecated = input.ReadBool(); 4739 break; 4740 } 4741 case 7994: { 4742 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec); 4743 break; 4744 } 4745 } 4746 } 4747 } 4748 4749 } 4750 4751 /// <summary> 4752 /// A message representing a option the parser does not recognize. This only 4753 /// appears in options protos created by the compiler::Parser class. 4754 /// DescriptorPool resolves these when building Descriptor objects. Therefore, 4755 /// options protos in descriptor objects (e.g. returned by Descriptor::options(), 4756 /// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions 4757 /// in them. 4758 /// </summary> 4759 internal sealed partial class UninterpretedOption : pb::IMessage<UninterpretedOption> { 4760 private static readonly pb::MessageParser<UninterpretedOption> _parser = new pb::MessageParser<UninterpretedOption>(() => new UninterpretedOption()); 4761 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4762 public static pb::MessageParser<UninterpretedOption> Parser { get { return _parser; } } 4763 4764 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4765 public static pbr::MessageDescriptor Descriptor { 4766 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[17]; } 4767 } 4768 4769 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4770 pbr::MessageDescriptor pb::IMessage.Descriptor { 4771 get { return Descriptor; } 4772 } 4773 4774 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] UninterpretedOption()4775 public UninterpretedOption() { 4776 OnConstruction(); 4777 } 4778 OnConstruction()4779 partial void OnConstruction(); 4780 4781 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] UninterpretedOption(UninterpretedOption other)4782 public UninterpretedOption(UninterpretedOption other) : this() { 4783 name_ = other.name_.Clone(); 4784 identifierValue_ = other.identifierValue_; 4785 positiveIntValue_ = other.positiveIntValue_; 4786 negativeIntValue_ = other.negativeIntValue_; 4787 doubleValue_ = other.doubleValue_; 4788 stringValue_ = other.stringValue_; 4789 aggregateValue_ = other.aggregateValue_; 4790 } 4791 4792 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()4793 public UninterpretedOption Clone() { 4794 return new UninterpretedOption(this); 4795 } 4796 4797 /// <summary>Field number for the "name" field.</summary> 4798 public const int NameFieldNumber = 2; 4799 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> _repeated_name_codec 4800 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart.Parser); 4801 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> name_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart>(); 4802 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4803 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> Name { 4804 get { return name_; } 4805 } 4806 4807 /// <summary>Field number for the "identifier_value" field.</summary> 4808 public const int IdentifierValueFieldNumber = 3; 4809 private string identifierValue_ = ""; 4810 /// <summary> 4811 /// The value of the uninterpreted option, in whatever type the tokenizer 4812 /// identified it as during parsing. Exactly one of these should be set. 4813 /// </summary> 4814 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4815 public string IdentifierValue { 4816 get { return identifierValue_; } 4817 set { 4818 identifierValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 4819 } 4820 } 4821 4822 /// <summary>Field number for the "positive_int_value" field.</summary> 4823 public const int PositiveIntValueFieldNumber = 4; 4824 private ulong positiveIntValue_; 4825 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4826 public ulong PositiveIntValue { 4827 get { return positiveIntValue_; } 4828 set { 4829 positiveIntValue_ = value; 4830 } 4831 } 4832 4833 /// <summary>Field number for the "negative_int_value" field.</summary> 4834 public const int NegativeIntValueFieldNumber = 5; 4835 private long negativeIntValue_; 4836 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4837 public long NegativeIntValue { 4838 get { return negativeIntValue_; } 4839 set { 4840 negativeIntValue_ = value; 4841 } 4842 } 4843 4844 /// <summary>Field number for the "double_value" field.</summary> 4845 public const int DoubleValueFieldNumber = 6; 4846 private double doubleValue_; 4847 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4848 public double DoubleValue { 4849 get { return doubleValue_; } 4850 set { 4851 doubleValue_ = value; 4852 } 4853 } 4854 4855 /// <summary>Field number for the "string_value" field.</summary> 4856 public const int StringValueFieldNumber = 7; 4857 private pb::ByteString stringValue_ = pb::ByteString.Empty; 4858 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4859 public pb::ByteString StringValue { 4860 get { return stringValue_; } 4861 set { 4862 stringValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 4863 } 4864 } 4865 4866 /// <summary>Field number for the "aggregate_value" field.</summary> 4867 public const int AggregateValueFieldNumber = 8; 4868 private string aggregateValue_ = ""; 4869 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4870 public string AggregateValue { 4871 get { return aggregateValue_; } 4872 set { 4873 aggregateValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 4874 } 4875 } 4876 4877 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)4878 public override bool Equals(object other) { 4879 return Equals(other as UninterpretedOption); 4880 } 4881 4882 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(UninterpretedOption other)4883 public bool Equals(UninterpretedOption other) { 4884 if (ReferenceEquals(other, null)) { 4885 return false; 4886 } 4887 if (ReferenceEquals(other, this)) { 4888 return true; 4889 } 4890 if(!name_.Equals(other.name_)) return false; 4891 if (IdentifierValue != other.IdentifierValue) return false; 4892 if (PositiveIntValue != other.PositiveIntValue) return false; 4893 if (NegativeIntValue != other.NegativeIntValue) return false; 4894 if (DoubleValue != other.DoubleValue) return false; 4895 if (StringValue != other.StringValue) return false; 4896 if (AggregateValue != other.AggregateValue) return false; 4897 return true; 4898 } 4899 4900 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()4901 public override int GetHashCode() { 4902 int hash = 1; 4903 hash ^= name_.GetHashCode(); 4904 if (IdentifierValue.Length != 0) hash ^= IdentifierValue.GetHashCode(); 4905 if (PositiveIntValue != 0UL) hash ^= PositiveIntValue.GetHashCode(); 4906 if (NegativeIntValue != 0L) hash ^= NegativeIntValue.GetHashCode(); 4907 if (DoubleValue != 0D) hash ^= DoubleValue.GetHashCode(); 4908 if (StringValue.Length != 0) hash ^= StringValue.GetHashCode(); 4909 if (AggregateValue.Length != 0) hash ^= AggregateValue.GetHashCode(); 4910 return hash; 4911 } 4912 4913 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()4914 public override string ToString() { 4915 return pb::JsonFormatter.ToDiagnosticString(this); 4916 } 4917 4918 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)4919 public void WriteTo(pb::CodedOutputStream output) { 4920 name_.WriteTo(output, _repeated_name_codec); 4921 if (IdentifierValue.Length != 0) { 4922 output.WriteRawTag(26); 4923 output.WriteString(IdentifierValue); 4924 } 4925 if (PositiveIntValue != 0UL) { 4926 output.WriteRawTag(32); 4927 output.WriteUInt64(PositiveIntValue); 4928 } 4929 if (NegativeIntValue != 0L) { 4930 output.WriteRawTag(40); 4931 output.WriteInt64(NegativeIntValue); 4932 } 4933 if (DoubleValue != 0D) { 4934 output.WriteRawTag(49); 4935 output.WriteDouble(DoubleValue); 4936 } 4937 if (StringValue.Length != 0) { 4938 output.WriteRawTag(58); 4939 output.WriteBytes(StringValue); 4940 } 4941 if (AggregateValue.Length != 0) { 4942 output.WriteRawTag(66); 4943 output.WriteString(AggregateValue); 4944 } 4945 } 4946 4947 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()4948 public int CalculateSize() { 4949 int size = 0; 4950 size += name_.CalculateSize(_repeated_name_codec); 4951 if (IdentifierValue.Length != 0) { 4952 size += 1 + pb::CodedOutputStream.ComputeStringSize(IdentifierValue); 4953 } 4954 if (PositiveIntValue != 0UL) { 4955 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PositiveIntValue); 4956 } 4957 if (NegativeIntValue != 0L) { 4958 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NegativeIntValue); 4959 } 4960 if (DoubleValue != 0D) { 4961 size += 1 + 8; 4962 } 4963 if (StringValue.Length != 0) { 4964 size += 1 + pb::CodedOutputStream.ComputeBytesSize(StringValue); 4965 } 4966 if (AggregateValue.Length != 0) { 4967 size += 1 + pb::CodedOutputStream.ComputeStringSize(AggregateValue); 4968 } 4969 return size; 4970 } 4971 4972 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(UninterpretedOption other)4973 public void MergeFrom(UninterpretedOption other) { 4974 if (other == null) { 4975 return; 4976 } 4977 name_.Add(other.name_); 4978 if (other.IdentifierValue.Length != 0) { 4979 IdentifierValue = other.IdentifierValue; 4980 } 4981 if (other.PositiveIntValue != 0UL) { 4982 PositiveIntValue = other.PositiveIntValue; 4983 } 4984 if (other.NegativeIntValue != 0L) { 4985 NegativeIntValue = other.NegativeIntValue; 4986 } 4987 if (other.DoubleValue != 0D) { 4988 DoubleValue = other.DoubleValue; 4989 } 4990 if (other.StringValue.Length != 0) { 4991 StringValue = other.StringValue; 4992 } 4993 if (other.AggregateValue.Length != 0) { 4994 AggregateValue = other.AggregateValue; 4995 } 4996 } 4997 4998 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)4999 public void MergeFrom(pb::CodedInputStream input) { 5000 uint tag; 5001 while ((tag = input.ReadTag()) != 0) { 5002 switch(tag) { 5003 default: 5004 input.SkipLastField(); 5005 break; 5006 case 18: { 5007 name_.AddEntriesFrom(input, _repeated_name_codec); 5008 break; 5009 } 5010 case 26: { 5011 IdentifierValue = input.ReadString(); 5012 break; 5013 } 5014 case 32: { 5015 PositiveIntValue = input.ReadUInt64(); 5016 break; 5017 } 5018 case 40: { 5019 NegativeIntValue = input.ReadInt64(); 5020 break; 5021 } 5022 case 49: { 5023 DoubleValue = input.ReadDouble(); 5024 break; 5025 } 5026 case 58: { 5027 StringValue = input.ReadBytes(); 5028 break; 5029 } 5030 case 66: { 5031 AggregateValue = input.ReadString(); 5032 break; 5033 } 5034 } 5035 } 5036 } 5037 5038 #region Nested types 5039 /// <summary>Container for nested types declared in the UninterpretedOption message type.</summary> 5040 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5041 public static partial class Types { 5042 /// <summary> 5043 /// The name of the uninterpreted option. Each string represents a segment in 5044 /// a dot-separated name. is_extension is true iff a segment represents an 5045 /// extension (denoted with parentheses in options specs in .proto files). 5046 /// E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents 5047 /// "foo.(bar.baz).qux". 5048 /// </summary> 5049 internal sealed partial class NamePart : pb::IMessage<NamePart> { 5050 private static readonly pb::MessageParser<NamePart> _parser = new pb::MessageParser<NamePart>(() => new NamePart()); 5051 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5052 public static pb::MessageParser<NamePart> Parser { get { return _parser; } } 5053 5054 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5055 public static pbr::MessageDescriptor Descriptor { 5056 get { return global::Google.Protobuf.Reflection.UninterpretedOption.Descriptor.NestedTypes[0]; } 5057 } 5058 5059 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5060 pbr::MessageDescriptor pb::IMessage.Descriptor { 5061 get { return Descriptor; } 5062 } 5063 5064 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] NamePart()5065 public NamePart() { 5066 OnConstruction(); 5067 } 5068 OnConstruction()5069 partial void OnConstruction(); 5070 5071 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] NamePart(NamePart other)5072 public NamePart(NamePart other) : this() { 5073 namePart_ = other.namePart_; 5074 isExtension_ = other.isExtension_; 5075 } 5076 5077 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()5078 public NamePart Clone() { 5079 return new NamePart(this); 5080 } 5081 5082 /// <summary>Field number for the "name_part" field.</summary> 5083 public const int NamePart_FieldNumber = 1; 5084 private string namePart_ = ""; 5085 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5086 public string NamePart_ { 5087 get { return namePart_; } 5088 set { 5089 namePart_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 5090 } 5091 } 5092 5093 /// <summary>Field number for the "is_extension" field.</summary> 5094 public const int IsExtensionFieldNumber = 2; 5095 private bool isExtension_; 5096 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5097 public bool IsExtension { 5098 get { return isExtension_; } 5099 set { 5100 isExtension_ = value; 5101 } 5102 } 5103 5104 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)5105 public override bool Equals(object other) { 5106 return Equals(other as NamePart); 5107 } 5108 5109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(NamePart other)5110 public bool Equals(NamePart other) { 5111 if (ReferenceEquals(other, null)) { 5112 return false; 5113 } 5114 if (ReferenceEquals(other, this)) { 5115 return true; 5116 } 5117 if (NamePart_ != other.NamePart_) return false; 5118 if (IsExtension != other.IsExtension) return false; 5119 return true; 5120 } 5121 5122 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()5123 public override int GetHashCode() { 5124 int hash = 1; 5125 if (NamePart_.Length != 0) hash ^= NamePart_.GetHashCode(); 5126 if (IsExtension != false) hash ^= IsExtension.GetHashCode(); 5127 return hash; 5128 } 5129 5130 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()5131 public override string ToString() { 5132 return pb::JsonFormatter.ToDiagnosticString(this); 5133 } 5134 5135 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)5136 public void WriteTo(pb::CodedOutputStream output) { 5137 if (NamePart_.Length != 0) { 5138 output.WriteRawTag(10); 5139 output.WriteString(NamePart_); 5140 } 5141 if (IsExtension != false) { 5142 output.WriteRawTag(16); 5143 output.WriteBool(IsExtension); 5144 } 5145 } 5146 5147 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()5148 public int CalculateSize() { 5149 int size = 0; 5150 if (NamePart_.Length != 0) { 5151 size += 1 + pb::CodedOutputStream.ComputeStringSize(NamePart_); 5152 } 5153 if (IsExtension != false) { 5154 size += 1 + 1; 5155 } 5156 return size; 5157 } 5158 5159 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(NamePart other)5160 public void MergeFrom(NamePart other) { 5161 if (other == null) { 5162 return; 5163 } 5164 if (other.NamePart_.Length != 0) { 5165 NamePart_ = other.NamePart_; 5166 } 5167 if (other.IsExtension != false) { 5168 IsExtension = other.IsExtension; 5169 } 5170 } 5171 5172 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)5173 public void MergeFrom(pb::CodedInputStream input) { 5174 uint tag; 5175 while ((tag = input.ReadTag()) != 0) { 5176 switch(tag) { 5177 default: 5178 input.SkipLastField(); 5179 break; 5180 case 10: { 5181 NamePart_ = input.ReadString(); 5182 break; 5183 } 5184 case 16: { 5185 IsExtension = input.ReadBool(); 5186 break; 5187 } 5188 } 5189 } 5190 } 5191 5192 } 5193 5194 } 5195 #endregion 5196 5197 } 5198 5199 /// <summary> 5200 /// Encapsulates information about the original source file from which a 5201 /// FileDescriptorProto was generated. 5202 /// </summary> 5203 internal sealed partial class SourceCodeInfo : pb::IMessage<SourceCodeInfo> { 5204 private static readonly pb::MessageParser<SourceCodeInfo> _parser = new pb::MessageParser<SourceCodeInfo>(() => new SourceCodeInfo()); 5205 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5206 public static pb::MessageParser<SourceCodeInfo> Parser { get { return _parser; } } 5207 5208 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5209 public static pbr::MessageDescriptor Descriptor { 5210 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[18]; } 5211 } 5212 5213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5214 pbr::MessageDescriptor pb::IMessage.Descriptor { 5215 get { return Descriptor; } 5216 } 5217 5218 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] SourceCodeInfo()5219 public SourceCodeInfo() { 5220 OnConstruction(); 5221 } 5222 OnConstruction()5223 partial void OnConstruction(); 5224 5225 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] SourceCodeInfo(SourceCodeInfo other)5226 public SourceCodeInfo(SourceCodeInfo other) : this() { 5227 location_ = other.location_.Clone(); 5228 } 5229 5230 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()5231 public SourceCodeInfo Clone() { 5232 return new SourceCodeInfo(this); 5233 } 5234 5235 /// <summary>Field number for the "location" field.</summary> 5236 public const int LocationFieldNumber = 1; 5237 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> _repeated_location_codec 5238 = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location.Parser); 5239 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> location_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location>(); 5240 /// <summary> 5241 /// A Location identifies a piece of source code in a .proto file which 5242 /// corresponds to a particular definition. This information is intended 5243 /// to be useful to IDEs, code indexers, documentation generators, and similar 5244 /// tools. 5245 /// 5246 /// For example, say we have a file like: 5247 /// message Foo { 5248 /// optional string foo = 1; 5249 /// } 5250 /// Let's look at just the field definition: 5251 /// optional string foo = 1; 5252 /// ^ ^^ ^^ ^ ^^^ 5253 /// a bc de f ghi 5254 /// We have the following locations: 5255 /// span path represents 5256 /// [a,i) [ 4, 0, 2, 0 ] The whole field definition. 5257 /// [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 5258 /// [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 5259 /// [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 5260 /// [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 5261 /// 5262 /// Notes: 5263 /// - A location may refer to a repeated field itself (i.e. not to any 5264 /// particular index within it). This is used whenever a set of elements are 5265 /// logically enclosed in a single code segment. For example, an entire 5266 /// extend block (possibly containing multiple extension definitions) will 5267 /// have an outer location whose path refers to the "extensions" repeated 5268 /// field without an index. 5269 /// - Multiple locations may have the same path. This happens when a single 5270 /// logical declaration is spread out across multiple places. The most 5271 /// obvious example is the "extend" block again -- there may be multiple 5272 /// extend blocks in the same scope, each of which will have the same path. 5273 /// - A location's span is not always a subset of its parent's span. For 5274 /// example, the "extendee" of an extension declaration appears at the 5275 /// beginning of the "extend" block and is shared by all extensions within 5276 /// the block. 5277 /// - Just because a location's span is a subset of some other location's span 5278 /// does not mean that it is a descendent. For example, a "group" defines 5279 /// both a type and a field in a single declaration. Thus, the locations 5280 /// corresponding to the type and field and their components will overlap. 5281 /// - Code which tries to interpret locations should probably be designed to 5282 /// ignore those that it doesn't understand, as more types of locations could 5283 /// be recorded in the future. 5284 /// </summary> 5285 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5286 public pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> Location { 5287 get { return location_; } 5288 } 5289 5290 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)5291 public override bool Equals(object other) { 5292 return Equals(other as SourceCodeInfo); 5293 } 5294 5295 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(SourceCodeInfo other)5296 public bool Equals(SourceCodeInfo other) { 5297 if (ReferenceEquals(other, null)) { 5298 return false; 5299 } 5300 if (ReferenceEquals(other, this)) { 5301 return true; 5302 } 5303 if(!location_.Equals(other.location_)) return false; 5304 return true; 5305 } 5306 5307 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()5308 public override int GetHashCode() { 5309 int hash = 1; 5310 hash ^= location_.GetHashCode(); 5311 return hash; 5312 } 5313 5314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()5315 public override string ToString() { 5316 return pb::JsonFormatter.ToDiagnosticString(this); 5317 } 5318 5319 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)5320 public void WriteTo(pb::CodedOutputStream output) { 5321 location_.WriteTo(output, _repeated_location_codec); 5322 } 5323 5324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()5325 public int CalculateSize() { 5326 int size = 0; 5327 size += location_.CalculateSize(_repeated_location_codec); 5328 return size; 5329 } 5330 5331 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(SourceCodeInfo other)5332 public void MergeFrom(SourceCodeInfo other) { 5333 if (other == null) { 5334 return; 5335 } 5336 location_.Add(other.location_); 5337 } 5338 5339 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)5340 public void MergeFrom(pb::CodedInputStream input) { 5341 uint tag; 5342 while ((tag = input.ReadTag()) != 0) { 5343 switch(tag) { 5344 default: 5345 input.SkipLastField(); 5346 break; 5347 case 10: { 5348 location_.AddEntriesFrom(input, _repeated_location_codec); 5349 break; 5350 } 5351 } 5352 } 5353 } 5354 5355 #region Nested types 5356 /// <summary>Container for nested types declared in the SourceCodeInfo message type.</summary> 5357 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5358 public static partial class Types { 5359 internal sealed partial class Location : pb::IMessage<Location> { 5360 private static readonly pb::MessageParser<Location> _parser = new pb::MessageParser<Location>(() => new Location()); 5361 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5362 public static pb::MessageParser<Location> Parser { get { return _parser; } } 5363 5364 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5365 public static pbr::MessageDescriptor Descriptor { 5366 get { return global::Google.Protobuf.Reflection.SourceCodeInfo.Descriptor.NestedTypes[0]; } 5367 } 5368 5369 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5370 pbr::MessageDescriptor pb::IMessage.Descriptor { 5371 get { return Descriptor; } 5372 } 5373 5374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Location()5375 public Location() { 5376 OnConstruction(); 5377 } 5378 OnConstruction()5379 partial void OnConstruction(); 5380 5381 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Location(Location other)5382 public Location(Location other) : this() { 5383 path_ = other.path_.Clone(); 5384 span_ = other.span_.Clone(); 5385 leadingComments_ = other.leadingComments_; 5386 trailingComments_ = other.trailingComments_; 5387 leadingDetachedComments_ = other.leadingDetachedComments_.Clone(); 5388 } 5389 5390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()5391 public Location Clone() { 5392 return new Location(this); 5393 } 5394 5395 /// <summary>Field number for the "path" field.</summary> 5396 public const int PathFieldNumber = 1; 5397 private static readonly pb::FieldCodec<int> _repeated_path_codec 5398 = pb::FieldCodec.ForInt32(10); 5399 private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField<int>(); 5400 /// <summary> 5401 /// Identifies which part of the FileDescriptorProto was defined at this 5402 /// location. 5403 /// 5404 /// Each element is a field number or an index. They form a path from 5405 /// the root FileDescriptorProto to the place where the definition. For 5406 /// example, this path: 5407 /// [ 4, 3, 2, 7, 1 ] 5408 /// refers to: 5409 /// file.message_type(3) // 4, 3 5410 /// .field(7) // 2, 7 5411 /// .name() // 1 5412 /// This is because FileDescriptorProto.message_type has field number 4: 5413 /// repeated DescriptorProto message_type = 4; 5414 /// and DescriptorProto.field has field number 2: 5415 /// repeated FieldDescriptorProto field = 2; 5416 /// and FieldDescriptorProto.name has field number 1: 5417 /// optional string name = 1; 5418 /// 5419 /// Thus, the above path gives the location of a field name. If we removed 5420 /// the last element: 5421 /// [ 4, 3, 2, 7 ] 5422 /// this path refers to the whole field declaration (from the beginning 5423 /// of the label to the terminating semicolon). 5424 /// </summary> 5425 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5426 public pbc::RepeatedField<int> Path { 5427 get { return path_; } 5428 } 5429 5430 /// <summary>Field number for the "span" field.</summary> 5431 public const int SpanFieldNumber = 2; 5432 private static readonly pb::FieldCodec<int> _repeated_span_codec 5433 = pb::FieldCodec.ForInt32(18); 5434 private readonly pbc::RepeatedField<int> span_ = new pbc::RepeatedField<int>(); 5435 /// <summary> 5436 /// Always has exactly three or four elements: start line, start column, 5437 /// end line (optional, otherwise assumed same as start line), end column. 5438 /// These are packed into a single field for efficiency. Note that line 5439 /// and column numbers are zero-based -- typically you will want to add 5440 /// 1 to each before displaying to a user. 5441 /// </summary> 5442 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5443 public pbc::RepeatedField<int> Span { 5444 get { return span_; } 5445 } 5446 5447 /// <summary>Field number for the "leading_comments" field.</summary> 5448 public const int LeadingCommentsFieldNumber = 3; 5449 private string leadingComments_ = ""; 5450 /// <summary> 5451 /// If this SourceCodeInfo represents a complete declaration, these are any 5452 /// comments appearing before and after the declaration which appear to be 5453 /// attached to the declaration. 5454 /// 5455 /// A series of line comments appearing on consecutive lines, with no other 5456 /// tokens appearing on those lines, will be treated as a single comment. 5457 /// 5458 /// leading_detached_comments will keep paragraphs of comments that appear 5459 /// before (but not connected to) the current element. Each paragraph, 5460 /// separated by empty lines, will be one comment element in the repeated 5461 /// field. 5462 /// 5463 /// Only the comment content is provided; comment markers (e.g. //) are 5464 /// stripped out. For block comments, leading whitespace and an asterisk 5465 /// will be stripped from the beginning of each line other than the first. 5466 /// Newlines are included in the output. 5467 /// 5468 /// Examples: 5469 /// 5470 /// optional int32 foo = 1; // Comment attached to foo. 5471 /// // Comment attached to bar. 5472 /// optional int32 bar = 2; 5473 /// 5474 /// optional string baz = 3; 5475 /// // Comment attached to baz. 5476 /// // Another line attached to baz. 5477 /// 5478 /// // Comment attached to qux. 5479 /// // 5480 /// // Another line attached to qux. 5481 /// optional double qux = 4; 5482 /// 5483 /// // Detached comment for corge. This is not leading or trailing comments 5484 /// // to qux or corge because there are blank lines separating it from 5485 /// // both. 5486 /// 5487 /// // Detached comment for corge paragraph 2. 5488 /// 5489 /// optional string corge = 5; 5490 /// /* Block comment attached 5491 /// * to corge. Leading asterisks 5492 /// * will be removed. */ 5493 /// /* Block comment attached to 5494 /// * grault. */ 5495 /// optional int32 grault = 6; 5496 /// 5497 /// // ignored detached comments. 5498 /// </summary> 5499 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5500 public string LeadingComments { 5501 get { return leadingComments_; } 5502 set { 5503 leadingComments_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 5504 } 5505 } 5506 5507 /// <summary>Field number for the "trailing_comments" field.</summary> 5508 public const int TrailingCommentsFieldNumber = 4; 5509 private string trailingComments_ = ""; 5510 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5511 public string TrailingComments { 5512 get { return trailingComments_; } 5513 set { 5514 trailingComments_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 5515 } 5516 } 5517 5518 /// <summary>Field number for the "leading_detached_comments" field.</summary> 5519 public const int LeadingDetachedCommentsFieldNumber = 6; 5520 private static readonly pb::FieldCodec<string> _repeated_leadingDetachedComments_codec 5521 = pb::FieldCodec.ForString(50); 5522 private readonly pbc::RepeatedField<string> leadingDetachedComments_ = new pbc::RepeatedField<string>(); 5523 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5524 public pbc::RepeatedField<string> LeadingDetachedComments { 5525 get { return leadingDetachedComments_; } 5526 } 5527 5528 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)5529 public override bool Equals(object other) { 5530 return Equals(other as Location); 5531 } 5532 5533 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(Location other)5534 public bool Equals(Location other) { 5535 if (ReferenceEquals(other, null)) { 5536 return false; 5537 } 5538 if (ReferenceEquals(other, this)) { 5539 return true; 5540 } 5541 if(!path_.Equals(other.path_)) return false; 5542 if(!span_.Equals(other.span_)) return false; 5543 if (LeadingComments != other.LeadingComments) return false; 5544 if (TrailingComments != other.TrailingComments) return false; 5545 if(!leadingDetachedComments_.Equals(other.leadingDetachedComments_)) return false; 5546 return true; 5547 } 5548 5549 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()5550 public override int GetHashCode() { 5551 int hash = 1; 5552 hash ^= path_.GetHashCode(); 5553 hash ^= span_.GetHashCode(); 5554 if (LeadingComments.Length != 0) hash ^= LeadingComments.GetHashCode(); 5555 if (TrailingComments.Length != 0) hash ^= TrailingComments.GetHashCode(); 5556 hash ^= leadingDetachedComments_.GetHashCode(); 5557 return hash; 5558 } 5559 5560 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()5561 public override string ToString() { 5562 return pb::JsonFormatter.ToDiagnosticString(this); 5563 } 5564 5565 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)5566 public void WriteTo(pb::CodedOutputStream output) { 5567 path_.WriteTo(output, _repeated_path_codec); 5568 span_.WriteTo(output, _repeated_span_codec); 5569 if (LeadingComments.Length != 0) { 5570 output.WriteRawTag(26); 5571 output.WriteString(LeadingComments); 5572 } 5573 if (TrailingComments.Length != 0) { 5574 output.WriteRawTag(34); 5575 output.WriteString(TrailingComments); 5576 } 5577 leadingDetachedComments_.WriteTo(output, _repeated_leadingDetachedComments_codec); 5578 } 5579 5580 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()5581 public int CalculateSize() { 5582 int size = 0; 5583 size += path_.CalculateSize(_repeated_path_codec); 5584 size += span_.CalculateSize(_repeated_span_codec); 5585 if (LeadingComments.Length != 0) { 5586 size += 1 + pb::CodedOutputStream.ComputeStringSize(LeadingComments); 5587 } 5588 if (TrailingComments.Length != 0) { 5589 size += 1 + pb::CodedOutputStream.ComputeStringSize(TrailingComments); 5590 } 5591 size += leadingDetachedComments_.CalculateSize(_repeated_leadingDetachedComments_codec); 5592 return size; 5593 } 5594 5595 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(Location other)5596 public void MergeFrom(Location other) { 5597 if (other == null) { 5598 return; 5599 } 5600 path_.Add(other.path_); 5601 span_.Add(other.span_); 5602 if (other.LeadingComments.Length != 0) { 5603 LeadingComments = other.LeadingComments; 5604 } 5605 if (other.TrailingComments.Length != 0) { 5606 TrailingComments = other.TrailingComments; 5607 } 5608 leadingDetachedComments_.Add(other.leadingDetachedComments_); 5609 } 5610 5611 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)5612 public void MergeFrom(pb::CodedInputStream input) { 5613 uint tag; 5614 while ((tag = input.ReadTag()) != 0) { 5615 switch(tag) { 5616 default: 5617 input.SkipLastField(); 5618 break; 5619 case 10: 5620 case 8: { 5621 path_.AddEntriesFrom(input, _repeated_path_codec); 5622 break; 5623 } 5624 case 18: 5625 case 16: { 5626 span_.AddEntriesFrom(input, _repeated_span_codec); 5627 break; 5628 } 5629 case 26: { 5630 LeadingComments = input.ReadString(); 5631 break; 5632 } 5633 case 34: { 5634 TrailingComments = input.ReadString(); 5635 break; 5636 } 5637 case 50: { 5638 leadingDetachedComments_.AddEntriesFrom(input, _repeated_leadingDetachedComments_codec); 5639 break; 5640 } 5641 } 5642 } 5643 } 5644 5645 } 5646 5647 } 5648 #endregion 5649 5650 } 5651 5652 /// <summary> 5653 /// Describes the relationship between generated code and its original source 5654 /// file. A GeneratedCodeInfo message is associated with only one generated 5655 /// source file, but may contain references to different source .proto files. 5656 /// </summary> 5657 internal sealed partial class GeneratedCodeInfo : pb::IMessage<GeneratedCodeInfo> { 5658 private static readonly pb::MessageParser<GeneratedCodeInfo> _parser = new pb::MessageParser<GeneratedCodeInfo>(() => new GeneratedCodeInfo()); 5659 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5660 public static pb::MessageParser<GeneratedCodeInfo> Parser { get { return _parser; } } 5661 5662 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5663 public static pbr::MessageDescriptor Descriptor { 5664 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[19]; } 5665 } 5666 5667 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5668 pbr::MessageDescriptor pb::IMessage.Descriptor { 5669 get { return Descriptor; } 5670 } 5671 5672 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GeneratedCodeInfo()5673 public GeneratedCodeInfo() { 5674 OnConstruction(); 5675 } 5676 OnConstruction()5677 partial void OnConstruction(); 5678 5679 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GeneratedCodeInfo(GeneratedCodeInfo other)5680 public GeneratedCodeInfo(GeneratedCodeInfo other) : this() { 5681 annotation_ = other.annotation_.Clone(); 5682 } 5683 5684 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()5685 public GeneratedCodeInfo Clone() { 5686 return new GeneratedCodeInfo(this); 5687 } 5688 5689 /// <summary>Field number for the "annotation" field.</summary> 5690 public const int AnnotationFieldNumber = 1; 5691 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation> _repeated_annotation_codec 5692 = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation.Parser); 5693 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation> annotation_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation>(); 5694 /// <summary> 5695 /// An Annotation connects some span of text in generated code to an element 5696 /// of its generating .proto file. 5697 /// </summary> 5698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5699 public pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation> Annotation { 5700 get { return annotation_; } 5701 } 5702 5703 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)5704 public override bool Equals(object other) { 5705 return Equals(other as GeneratedCodeInfo); 5706 } 5707 5708 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(GeneratedCodeInfo other)5709 public bool Equals(GeneratedCodeInfo other) { 5710 if (ReferenceEquals(other, null)) { 5711 return false; 5712 } 5713 if (ReferenceEquals(other, this)) { 5714 return true; 5715 } 5716 if(!annotation_.Equals(other.annotation_)) return false; 5717 return true; 5718 } 5719 5720 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()5721 public override int GetHashCode() { 5722 int hash = 1; 5723 hash ^= annotation_.GetHashCode(); 5724 return hash; 5725 } 5726 5727 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()5728 public override string ToString() { 5729 return pb::JsonFormatter.ToDiagnosticString(this); 5730 } 5731 5732 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)5733 public void WriteTo(pb::CodedOutputStream output) { 5734 annotation_.WriteTo(output, _repeated_annotation_codec); 5735 } 5736 5737 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()5738 public int CalculateSize() { 5739 int size = 0; 5740 size += annotation_.CalculateSize(_repeated_annotation_codec); 5741 return size; 5742 } 5743 5744 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(GeneratedCodeInfo other)5745 public void MergeFrom(GeneratedCodeInfo other) { 5746 if (other == null) { 5747 return; 5748 } 5749 annotation_.Add(other.annotation_); 5750 } 5751 5752 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)5753 public void MergeFrom(pb::CodedInputStream input) { 5754 uint tag; 5755 while ((tag = input.ReadTag()) != 0) { 5756 switch(tag) { 5757 default: 5758 input.SkipLastField(); 5759 break; 5760 case 10: { 5761 annotation_.AddEntriesFrom(input, _repeated_annotation_codec); 5762 break; 5763 } 5764 } 5765 } 5766 } 5767 5768 #region Nested types 5769 /// <summary>Container for nested types declared in the GeneratedCodeInfo message type.</summary> 5770 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5771 public static partial class Types { 5772 internal sealed partial class Annotation : pb::IMessage<Annotation> { 5773 private static readonly pb::MessageParser<Annotation> _parser = new pb::MessageParser<Annotation>(() => new Annotation()); 5774 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5775 public static pb::MessageParser<Annotation> Parser { get { return _parser; } } 5776 5777 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5778 public static pbr::MessageDescriptor Descriptor { 5779 get { return global::Google.Protobuf.Reflection.GeneratedCodeInfo.Descriptor.NestedTypes[0]; } 5780 } 5781 5782 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5783 pbr::MessageDescriptor pb::IMessage.Descriptor { 5784 get { return Descriptor; } 5785 } 5786 5787 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Annotation()5788 public Annotation() { 5789 OnConstruction(); 5790 } 5791 OnConstruction()5792 partial void OnConstruction(); 5793 5794 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Annotation(Annotation other)5795 public Annotation(Annotation other) : this() { 5796 path_ = other.path_.Clone(); 5797 sourceFile_ = other.sourceFile_; 5798 begin_ = other.begin_; 5799 end_ = other.end_; 5800 } 5801 5802 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()5803 public Annotation Clone() { 5804 return new Annotation(this); 5805 } 5806 5807 /// <summary>Field number for the "path" field.</summary> 5808 public const int PathFieldNumber = 1; 5809 private static readonly pb::FieldCodec<int> _repeated_path_codec 5810 = pb::FieldCodec.ForInt32(10); 5811 private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField<int>(); 5812 /// <summary> 5813 /// Identifies the element in the original source .proto file. This field 5814 /// is formatted the same as SourceCodeInfo.Location.path. 5815 /// </summary> 5816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5817 public pbc::RepeatedField<int> Path { 5818 get { return path_; } 5819 } 5820 5821 /// <summary>Field number for the "source_file" field.</summary> 5822 public const int SourceFileFieldNumber = 2; 5823 private string sourceFile_ = ""; 5824 /// <summary> 5825 /// Identifies the filesystem path to the original source .proto. 5826 /// </summary> 5827 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5828 public string SourceFile { 5829 get { return sourceFile_; } 5830 set { 5831 sourceFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 5832 } 5833 } 5834 5835 /// <summary>Field number for the "begin" field.</summary> 5836 public const int BeginFieldNumber = 3; 5837 private int begin_; 5838 /// <summary> 5839 /// Identifies the starting offset in bytes in the generated code 5840 /// that relates to the identified object. 5841 /// </summary> 5842 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5843 public int Begin { 5844 get { return begin_; } 5845 set { 5846 begin_ = value; 5847 } 5848 } 5849 5850 /// <summary>Field number for the "end" field.</summary> 5851 public const int EndFieldNumber = 4; 5852 private int end_; 5853 /// <summary> 5854 /// Identifies the ending offset in bytes in the generated code that 5855 /// relates to the identified offset. The end offset should be one past 5856 /// the last relevant byte (so the length of the text = end - begin). 5857 /// </summary> 5858 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5859 public int End { 5860 get { return end_; } 5861 set { 5862 end_ = value; 5863 } 5864 } 5865 5866 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)5867 public override bool Equals(object other) { 5868 return Equals(other as Annotation); 5869 } 5870 5871 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(Annotation other)5872 public bool Equals(Annotation other) { 5873 if (ReferenceEquals(other, null)) { 5874 return false; 5875 } 5876 if (ReferenceEquals(other, this)) { 5877 return true; 5878 } 5879 if(!path_.Equals(other.path_)) return false; 5880 if (SourceFile != other.SourceFile) return false; 5881 if (Begin != other.Begin) return false; 5882 if (End != other.End) return false; 5883 return true; 5884 } 5885 5886 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()5887 public override int GetHashCode() { 5888 int hash = 1; 5889 hash ^= path_.GetHashCode(); 5890 if (SourceFile.Length != 0) hash ^= SourceFile.GetHashCode(); 5891 if (Begin != 0) hash ^= Begin.GetHashCode(); 5892 if (End != 0) hash ^= End.GetHashCode(); 5893 return hash; 5894 } 5895 5896 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()5897 public override string ToString() { 5898 return pb::JsonFormatter.ToDiagnosticString(this); 5899 } 5900 5901 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)5902 public void WriteTo(pb::CodedOutputStream output) { 5903 path_.WriteTo(output, _repeated_path_codec); 5904 if (SourceFile.Length != 0) { 5905 output.WriteRawTag(18); 5906 output.WriteString(SourceFile); 5907 } 5908 if (Begin != 0) { 5909 output.WriteRawTag(24); 5910 output.WriteInt32(Begin); 5911 } 5912 if (End != 0) { 5913 output.WriteRawTag(32); 5914 output.WriteInt32(End); 5915 } 5916 } 5917 5918 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()5919 public int CalculateSize() { 5920 int size = 0; 5921 size += path_.CalculateSize(_repeated_path_codec); 5922 if (SourceFile.Length != 0) { 5923 size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceFile); 5924 } 5925 if (Begin != 0) { 5926 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Begin); 5927 } 5928 if (End != 0) { 5929 size += 1 + pb::CodedOutputStream.ComputeInt32Size(End); 5930 } 5931 return size; 5932 } 5933 5934 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(Annotation other)5935 public void MergeFrom(Annotation other) { 5936 if (other == null) { 5937 return; 5938 } 5939 path_.Add(other.path_); 5940 if (other.SourceFile.Length != 0) { 5941 SourceFile = other.SourceFile; 5942 } 5943 if (other.Begin != 0) { 5944 Begin = other.Begin; 5945 } 5946 if (other.End != 0) { 5947 End = other.End; 5948 } 5949 } 5950 5951 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)5952 public void MergeFrom(pb::CodedInputStream input) { 5953 uint tag; 5954 while ((tag = input.ReadTag()) != 0) { 5955 switch(tag) { 5956 default: 5957 input.SkipLastField(); 5958 break; 5959 case 10: 5960 case 8: { 5961 path_.AddEntriesFrom(input, _repeated_path_codec); 5962 break; 5963 } 5964 case 18: { 5965 SourceFile = input.ReadString(); 5966 break; 5967 } 5968 case 24: { 5969 Begin = input.ReadInt32(); 5970 break; 5971 } 5972 case 32: { 5973 End = input.ReadInt32(); 5974 break; 5975 } 5976 } 5977 } 5978 } 5979 5980 } 5981 5982 } 5983 #endregion 5984 5985 } 5986 5987 #endregion 5988 5989 } 5990 5991 #endregion Designer generated code 5992