| OLD | NEW |
| (Empty) |
| 1 // Generated by the protocol buffer compiler. DO NOT EDIT! | |
| 2 // source: google/protobuf/descriptor_proto_file.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 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 13 internal static partial class DescriptorProtoFile { | |
| 14 | |
| 15 #region Descriptor | |
| 16 public static pbr::FileDescriptor Descriptor { | |
| 17 get { return descriptor; } | |
| 18 } | |
| 19 private static pbr::FileDescriptor descriptor; | |
| 20 | |
| 21 static DescriptorProtoFile() { | |
| 22 byte[] descriptorData = global::System.Convert.FromBase64String( | |
| 23 string.Concat( | |
| 24 "Citnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvcl9wcm90b19maWxlLnByb3Rv", | |
| 25 "Eg9nb29nbGUucHJvdG9idWYiRwoRRmlsZURlc2NyaXB0b3JTZXQSMgoEZmls", | |
| 26 "ZRgBIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5GaWxlRGVzY3JpcHRvclByb3Rv", | |
| 27 "ItsDChNGaWxlRGVzY3JpcHRvclByb3RvEgwKBG5hbWUYASABKAkSDwoHcGFj", | |
| 28 "a2FnZRgCIAEoCRISCgpkZXBlbmRlbmN5GAMgAygJEhkKEXB1YmxpY19kZXBl", | |
| 29 "bmRlbmN5GAogAygFEhcKD3dlYWtfZGVwZW5kZW5jeRgLIAMoBRI2CgxtZXNz", | |
| 30 "YWdlX3R5cGUYBCADKAsyIC5nb29nbGUucHJvdG9idWYuRGVzY3JpcHRvclBy", | |
| 31 "b3RvEjcKCWVudW1fdHlwZRgFIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5FbnVt", | |
| 32 "RGVzY3JpcHRvclByb3RvEjgKB3NlcnZpY2UYBiADKAsyJy5nb29nbGUucHJv", | |
| 33 "dG9idWYuU2VydmljZURlc2NyaXB0b3JQcm90bxI4CglleHRlbnNpb24YByAD", | |
| 34 "KAsyJS5nb29nbGUucHJvdG9idWYuRmllbGREZXNjcmlwdG9yUHJvdG8SLQoH", | |
| 35 "b3B0aW9ucxgIIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5GaWxlT3B0aW9ucxI5", | |
| 36 "ChBzb3VyY2VfY29kZV9pbmZvGAkgASgLMh8uZ29vZ2xlLnByb3RvYnVmLlNv", | |
| 37 "dXJjZUNvZGVJbmZvEg4KBnN5bnRheBgMIAEoCSLwBAoPRGVzY3JpcHRvclBy", | |
| 38 "b3RvEgwKBG5hbWUYASABKAkSNAoFZmllbGQYAiADKAsyJS5nb29nbGUucHJv", | |
| 39 "dG9idWYuRmllbGREZXNjcmlwdG9yUHJvdG8SOAoJZXh0ZW5zaW9uGAYgAygL", | |
| 40 "MiUuZ29vZ2xlLnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvEjUKC25l", | |
| 41 "c3RlZF90eXBlGAMgAygLMiAuZ29vZ2xlLnByb3RvYnVmLkRlc2NyaXB0b3JQ", | |
| 42 "cm90bxI3CgllbnVtX3R5cGUYBCADKAsyJC5nb29nbGUucHJvdG9idWYuRW51", | |
| 43 "bURlc2NyaXB0b3JQcm90bxJICg9leHRlbnNpb25fcmFuZ2UYBSADKAsyLy5n", | |
| 44 "b29nbGUucHJvdG9idWYuRGVzY3JpcHRvclByb3RvLkV4dGVuc2lvblJhbmdl", | |
| 45 "EjkKCm9uZW9mX2RlY2wYCCADKAsyJS5nb29nbGUucHJvdG9idWYuT25lb2ZE", | |
| 46 "ZXNjcmlwdG9yUHJvdG8SMAoHb3B0aW9ucxgHIAEoCzIfLmdvb2dsZS5wcm90", | |
| 47 "b2J1Zi5NZXNzYWdlT3B0aW9ucxJGCg5yZXNlcnZlZF9yYW5nZRgJIAMoCzIu", | |
| 48 "Lmdvb2dsZS5wcm90b2J1Zi5EZXNjcmlwdG9yUHJvdG8uUmVzZXJ2ZWRSYW5n", | |
| 49 "ZRIVCg1yZXNlcnZlZF9uYW1lGAogAygJGiwKDkV4dGVuc2lvblJhbmdlEg0K", | |
| 50 "BXN0YXJ0GAEgASgFEgsKA2VuZBgCIAEoBRorCg1SZXNlcnZlZFJhbmdlEg0K", | |
| 51 "BXN0YXJ0GAEgASgFEgsKA2VuZBgCIAEoBSKpBQoURmllbGREZXNjcmlwdG9y", | |
| 52 "UHJvdG8SDAoEbmFtZRgBIAEoCRIOCgZudW1iZXIYAyABKAUSOgoFbGFiZWwY", | |
| 53 "BCABKA4yKy5nb29nbGUucHJvdG9idWYuRmllbGREZXNjcmlwdG9yUHJvdG8u", | |
| 54 "TGFiZWwSOAoEdHlwZRgFIAEoDjIqLmdvb2dsZS5wcm90b2J1Zi5GaWVsZERl", | |
| 55 "c2NyaXB0b3JQcm90by5UeXBlEhEKCXR5cGVfbmFtZRgGIAEoCRIQCghleHRl", | |
| 56 "bmRlZRgCIAEoCRIVCg1kZWZhdWx0X3ZhbHVlGAcgASgJEhMKC29uZW9mX2lu", | |
| 57 "ZGV4GAkgASgFEi4KB29wdGlvbnMYCCABKAsyHS5nb29nbGUucHJvdG9idWYu", | |
| 58 "RmllbGRPcHRpb25zIrYCCgRUeXBlEg8KC1RZUEVfRE9VQkxFEAESDgoKVFlQ", | |
| 59 "RV9GTE9BVBACEg4KClRZUEVfSU5UNjQQAxIPCgtUWVBFX1VJTlQ2NBAEEg4K", | |
| 60 "ClRZUEVfSU5UMzIQBRIQCgxUWVBFX0ZJWEVENjQQBhIQCgxUWVBFX0ZJWEVE", | |
| 61 "MzIQBxINCglUWVBFX0JPT0wQCBIPCgtUWVBFX1NUUklORxAJEg4KClRZUEVf", | |
| 62 "R1JPVVAQChIQCgxUWVBFX01FU1NBR0UQCxIOCgpUWVBFX0JZVEVTEAwSDwoL", | |
| 63 "VFlQRV9VSU5UMzIQDRINCglUWVBFX0VOVU0QDhIRCg1UWVBFX1NGSVhFRDMy", | |
| 64 "EA8SEQoNVFlQRV9TRklYRUQ2NBAQEg8KC1RZUEVfU0lOVDMyEBESDwoLVFlQ", | |
| 65 "RV9TSU5UNjQQEiJDCgVMYWJlbBISCg5MQUJFTF9PUFRJT05BTBABEhIKDkxB", | |
| 66 "QkVMX1JFUVVJUkVEEAISEgoOTEFCRUxfUkVQRUFURUQQAyIkChRPbmVvZkRl", | |
| 67 "c2NyaXB0b3JQcm90bxIMCgRuYW1lGAEgASgJIowBChNFbnVtRGVzY3JpcHRv", | |
| 68 "clByb3RvEgwKBG5hbWUYASABKAkSOAoFdmFsdWUYAiADKAsyKS5nb29nbGUu", | |
| 69 "cHJvdG9idWYuRW51bVZhbHVlRGVzY3JpcHRvclByb3RvEi0KB29wdGlvbnMY", | |
| 70 "AyABKAsyHC5nb29nbGUucHJvdG9idWYuRW51bU9wdGlvbnMibAoYRW51bVZh", | |
| 71 "bHVlRGVzY3JpcHRvclByb3RvEgwKBG5hbWUYASABKAkSDgoGbnVtYmVyGAIg", | |
| 72 "ASgFEjIKB29wdGlvbnMYAyABKAsyIS5nb29nbGUucHJvdG9idWYuRW51bVZh", | |
| 73 "bHVlT3B0aW9ucyKQAQoWU2VydmljZURlc2NyaXB0b3JQcm90bxIMCgRuYW1l", | |
| 74 "GAEgASgJEjYKBm1ldGhvZBgCIAMoCzImLmdvb2dsZS5wcm90b2J1Zi5NZXRo", | |
| 75 "b2REZXNjcmlwdG9yUHJvdG8SMAoHb3B0aW9ucxgDIAEoCzIfLmdvb2dsZS5w", | |
| 76 "cm90b2J1Zi5TZXJ2aWNlT3B0aW9ucyLBAQoVTWV0aG9kRGVzY3JpcHRvclBy", | |
| 77 "b3RvEgwKBG5hbWUYASABKAkSEgoKaW5wdXRfdHlwZRgCIAEoCRITCgtvdXRw", | |
| 78 "dXRfdHlwZRgDIAEoCRIvCgdvcHRpb25zGAQgASgLMh4uZ29vZ2xlLnByb3Rv", | |
| 79 "YnVmLk1ldGhvZE9wdGlvbnMSHwoQY2xpZW50X3N0cmVhbWluZxgFIAEoCDoF", | |
| 80 "ZmFsc2USHwoQc2VydmVyX3N0cmVhbWluZxgGIAEoCDoFZmFsc2UigQUKC0Zp", | |
| 81 "bGVPcHRpb25zEhQKDGphdmFfcGFja2FnZRgBIAEoCRIcChRqYXZhX291dGVy", | |
| 82 "X2NsYXNzbmFtZRgIIAEoCRIiChNqYXZhX211bHRpcGxlX2ZpbGVzGAogASgI", | |
| 83 "OgVmYWxzZRIsCh1qYXZhX2dlbmVyYXRlX2VxdWFsc19hbmRfaGFzaBgUIAEo", | |
| 84 "CDoFZmFsc2USJQoWamF2YV9zdHJpbmdfY2hlY2tfdXRmOBgbIAEoCDoFZmFs", | |
| 85 "c2USRgoMb3B0aW1pemVfZm9yGAkgASgOMikuZ29vZ2xlLnByb3RvYnVmLkZp", | |
| 86 "bGVPcHRpb25zLk9wdGltaXplTW9kZToFU1BFRUQSEgoKZ29fcGFja2FnZRgL", | |
| 87 "IAEoCRIiChNjY19nZW5lcmljX3NlcnZpY2VzGBAgASgIOgVmYWxzZRIkChVq", | |
| 88 "YXZhX2dlbmVyaWNfc2VydmljZXMYESABKAg6BWZhbHNlEiIKE3B5X2dlbmVy", | |
| 89 "aWNfc2VydmljZXMYEiABKAg6BWZhbHNlEhkKCmRlcHJlY2F0ZWQYFyABKAg6", | |
| 90 "BWZhbHNlEh8KEGNjX2VuYWJsZV9hcmVuYXMYHyABKAg6BWZhbHNlEhkKEW9i", | |
| 91 "amNfY2xhc3NfcHJlZml4GCQgASgJEhgKEGNzaGFycF9uYW1lc3BhY2UYJSAB", | |
| 92 "KAkSQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnBy", | |
| 93 "b3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24iOgoMT3B0aW1pemVNb2RlEgkK", | |
| 94 "BVNQRUVEEAESDQoJQ09ERV9TSVpFEAISEAoMTElURV9SVU5USU1FEAMqCQjo", | |
| 95 "BxCAgICAAiLmAQoOTWVzc2FnZU9wdGlvbnMSJgoXbWVzc2FnZV9zZXRfd2ly", | |
| 96 "ZV9mb3JtYXQYASABKAg6BWZhbHNlEi4KH25vX3N0YW5kYXJkX2Rlc2NyaXB0", | |
| 97 "b3JfYWNjZXNzb3IYAiABKAg6BWZhbHNlEhkKCmRlcHJlY2F0ZWQYAyABKAg6", | |
| 98 "BWZhbHNlEhEKCW1hcF9lbnRyeRgHIAEoCBJDChR1bmludGVycHJldGVkX29w", | |
| 99 "dGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9w", | |
| 100 "dGlvbioJCOgHEICAgIACIpgDCgxGaWVsZE9wdGlvbnMSOgoFY3R5cGUYASAB", | |
| 101 "KA4yIy5nb29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zLkNUeXBlOgZTVFJJ", | |
| 102 "TkcSDgoGcGFja2VkGAIgASgIEj8KBmpzdHlwZRgGIAEoDjIkLmdvb2dsZS5w", | |
| 103 "cm90b2J1Zi5GaWVsZE9wdGlvbnMuSlNUeXBlOglKU19OT1JNQUwSEwoEbGF6", | |
| 104 "eRgFIAEoCDoFZmFsc2USGQoKZGVwcmVjYXRlZBgDIAEoCDoFZmFsc2USEwoE", | |
| 105 "d2VhaxgKIAEoCDoFZmFsc2USQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcg", | |
| 106 "AygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24iLwoF", | |
| 107 "Q1R5cGUSCgoGU1RSSU5HEAASCAoEQ09SRBABEhAKDFNUUklOR19QSUVDRRAC", | |
| 108 "IjUKBkpTVHlwZRINCglKU19OT1JNQUwQABINCglKU19TVFJJTkcQARINCglK", | |
| 109 "U19OVU1CRVIQAioJCOgHEICAgIACIo0BCgtFbnVtT3B0aW9ucxITCgthbGxv", | |
| 110 "d19hbGlhcxgCIAEoCBIZCgpkZXByZWNhdGVkGAMgASgIOgVmYWxzZRJDChR1", | |
| 111 "bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYu", | |
| 112 "VW5pbnRlcnByZXRlZE9wdGlvbioJCOgHEICAgIACIn0KEEVudW1WYWx1ZU9w", | |
| 113 "dGlvbnMSGQoKZGVwcmVjYXRlZBgBIAEoCDoFZmFsc2USQwoUdW5pbnRlcnBy", | |
| 114 "ZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJw", | |
| 115 "cmV0ZWRPcHRpb24qCQjoBxCAgICAAiJ7Cg5TZXJ2aWNlT3B0aW9ucxIZCgpk", | |
| 116 "ZXByZWNhdGVkGCEgASgIOgVmYWxzZRJDChR1bmludGVycHJldGVkX29wdGlv", | |
| 117 "bhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlv", | |
| 118 "bioJCOgHEICAgIACInoKDU1ldGhvZE9wdGlvbnMSGQoKZGVwcmVjYXRlZBgh", | |
| 119 "IAEoCDoFZmFsc2USQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQu", | |
| 120 "Z29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBxCAgICA", | |
| 121 "AiKeAgoTVW5pbnRlcnByZXRlZE9wdGlvbhI7CgRuYW1lGAIgAygLMi0uZ29v", | |
| 122 "Z2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24uTmFtZVBhcnQSGAoQ", | |
| 123 "aWRlbnRpZmllcl92YWx1ZRgDIAEoCRIaChJwb3NpdGl2ZV9pbnRfdmFsdWUY", | |
| 124 "BCABKAQSGgoSbmVnYXRpdmVfaW50X3ZhbHVlGAUgASgDEhQKDGRvdWJsZV92", | |
| 125 "YWx1ZRgGIAEoARIUCgxzdHJpbmdfdmFsdWUYByABKAwSFwoPYWdncmVnYXRl", | |
| 126 "X3ZhbHVlGAggASgJGjMKCE5hbWVQYXJ0EhEKCW5hbWVfcGFydBgBIAIoCRIU", | |
| 127 "Cgxpc19leHRlbnNpb24YAiACKAgi1QEKDlNvdXJjZUNvZGVJbmZvEjoKCGxv", | |
| 128 "Y2F0aW9uGAEgAygLMiguZ29vZ2xlLnByb3RvYnVmLlNvdXJjZUNvZGVJbmZv", | |
| 129 "LkxvY2F0aW9uGoYBCghMb2NhdGlvbhIQCgRwYXRoGAEgAygFQgIQARIQCgRz", | |
| 130 "cGFuGAIgAygFQgIQARIYChBsZWFkaW5nX2NvbW1lbnRzGAMgASgJEhkKEXRy", | |
| 131 "YWlsaW5nX2NvbW1lbnRzGAQgASgJEiEKGWxlYWRpbmdfZGV0YWNoZWRfY29t", | |
| 132 "bWVudHMYBiADKAlCWAoTY29tLmdvb2dsZS5wcm90b2J1ZkIQRGVzY3JpcHRv", | |
| 133 "clByb3Rvc0gBWgpkZXNjcmlwdG9yogIDR1BCqgIaR29vZ2xlLlByb3RvYnVm", | |
| 134 "LlJlZmxlY3Rpb24=")); | |
| 135 descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptor
Data, | |
| 136 new pbr::FileDescriptor[] { }, | |
| 137 new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] { | |
| 138 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.FileDescriptorSet), new[]{ "File" }, null, null, null), | |
| 139 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.FileDescriptorProto), new[]{ "Name", "Package", "Dependency", "PublicDependency
", "WeakDependency", "MessageType", "EnumType", "Service", "Extension", "Options
", "SourceCodeInfo", "Syntax" }, null, null, null), | |
| 140 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.DescriptorProto), new[]{ "Name", "Field", "Extension", "NestedType", "EnumType"
, "ExtensionRange", "OneofDecl", "Options", "ReservedRange", "ReservedName" }, n
ull, null, new pbr::GeneratedCodeInfo[] { new pbr::GeneratedCodeInfo(typeof(glob
al::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange), new[]{ "St
art", "End" }, null, null, null), | |
| 141 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.DescriptorProto.Types.ReservedRange), new[]{ "Start", "End" }, null, null, null
)}), | |
| 142 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.FieldDescriptorProto), new[]{ "Name", "Number", "Label", "Type", "TypeName", "E
xtendee", "DefaultValue", "OneofIndex", "Options" }, null, new[]{ typeof(global:
:Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type), typeof(global::Goo
gle.Protobuf.Reflection.FieldDescriptorProto.Types.Label) }, null), | |
| 143 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.OneofDescriptorProto), new[]{ "Name" }, null, null, null), | |
| 144 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.EnumDescriptorProto), new[]{ "Name", "Value", "Options" }, null, null, null), | |
| 145 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.EnumValueDescriptorProto), new[]{ "Name", "Number", "Options" }, null, null, nu
ll), | |
| 146 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.ServiceDescriptorProto), new[]{ "Name", "Method", "Options" }, null, null, null
), | |
| 147 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.MethodDescriptorProto), new[]{ "Name", "InputType", "OutputType", "Options", "C
lientStreaming", "ServerStreaming" }, null, null, null), | |
| 148 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.FileOptions), 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.Optimiz
eMode) }, null), | |
| 149 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.MessageOptions), new[]{ "MessageSetWireFormat", "NoStandardDescriptorAccessor",
"Deprecated", "MapEntry", "UninterpretedOption" }, null, null, null), | |
| 150 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.FieldOptions), new[]{ "Ctype", "Packed", "Jstype", "Lazy", "Deprecated", "Weak"
, "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflectio
n.FieldOptions.Types.CType), typeof(global::Google.Protobuf.Reflection.FieldOpti
ons.Types.JSType) }, null), | |
| 151 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.EnumOptions), new[]{ "AllowAlias", "Deprecated", "UninterpretedOption" }, null,
null, null), | |
| 152 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.EnumValueOptions), new[]{ "Deprecated", "UninterpretedOption" }, null, null, nu
ll), | |
| 153 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.ServiceOptions), new[]{ "Deprecated", "UninterpretedOption" }, null, null, null
), | |
| 154 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.MethodOptions), new[]{ "Deprecated", "UninterpretedOption" }, null, null, null)
, | |
| 155 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.UninterpretedOption), new[]{ "Name", "IdentifierValue", "PositiveIntValue", "Ne
gativeIntValue", "DoubleValue", "StringValue", "AggregateValue" }, null, null, n
ew pbr::GeneratedCodeInfo[] { new pbr::GeneratedCodeInfo(typeof(global::Google.P
rotobuf.Reflection.UninterpretedOption.Types.NamePart), new[]{ "NamePart_", "IsE
xtension" }, null, null, null)}), | |
| 156 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.SourceCodeInfo), new[]{ "Location" }, null, null, new pbr::GeneratedCodeInfo[]
{ new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.SourceCod
eInfo.Types.Location), new[]{ "Path", "Span", "LeadingComments", "TrailingCommen
ts", "LeadingDetachedComments" }, null, null, null)}) | |
| 157 })); | |
| 158 } | |
| 159 #endregion | |
| 160 | |
| 161 } | |
| 162 #region Messages | |
| 163 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 164 internal sealed partial class FileDescriptorSet : pb::IMessage<FileDescriptorS
et> { | |
| 165 private static readonly pb::MessageParser<FileDescriptorSet> _parser = new p
b::MessageParser<FileDescriptorSet>(() => new FileDescriptorSet()); | |
| 166 public static pb::MessageParser<FileDescriptorSet> Parser { get { return _pa
rser; } } | |
| 167 | |
| 168 public static pbr::MessageDescriptor Descriptor { | |
| 169 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descri
ptor.MessageTypes[0]; } | |
| 170 } | |
| 171 | |
| 172 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 173 get { return Descriptor; } | |
| 174 } | |
| 175 | |
| 176 public FileDescriptorSet() { | |
| 177 OnConstruction(); | |
| 178 } | |
| 179 | |
| 180 partial void OnConstruction(); | |
| 181 | |
| 182 public FileDescriptorSet(FileDescriptorSet other) : this() { | |
| 183 file_ = other.file_.Clone(); | |
| 184 } | |
| 185 | |
| 186 public FileDescriptorSet Clone() { | |
| 187 return new FileDescriptorSet(this); | |
| 188 } | |
| 189 | |
| 190 public const int FileFieldNumber = 1; | |
| 191 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Fi
leDescriptorProto> _repeated_file_codec | |
| 192 = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.FileD
escriptorProto.Parser); | |
| 193 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FileD
escriptorProto> file_ = new pbc::RepeatedField<global::Google.Protobuf.Reflectio
n.FileDescriptorProto>(); | |
| 194 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescripto
rProto> File { | |
| 195 get { return file_; } | |
| 196 } | |
| 197 | |
| 198 public override bool Equals(object other) { | |
| 199 return Equals(other as FileDescriptorSet); | |
| 200 } | |
| 201 | |
| 202 public bool Equals(FileDescriptorSet other) { | |
| 203 if (ReferenceEquals(other, null)) { | |
| 204 return false; | |
| 205 } | |
| 206 if (ReferenceEquals(other, this)) { | |
| 207 return true; | |
| 208 } | |
| 209 if(!file_.Equals(other.file_)) return false; | |
| 210 return true; | |
| 211 } | |
| 212 | |
| 213 public override int GetHashCode() { | |
| 214 int hash = 1; | |
| 215 hash ^= file_.GetHashCode(); | |
| 216 return hash; | |
| 217 } | |
| 218 | |
| 219 public override string ToString() { | |
| 220 return pb::JsonFormatter.Default.Format(this); | |
| 221 } | |
| 222 | |
| 223 public void WriteTo(pb::CodedOutputStream output) { | |
| 224 file_.WriteTo(output, _repeated_file_codec); | |
| 225 } | |
| 226 | |
| 227 public int CalculateSize() { | |
| 228 int size = 0; | |
| 229 size += file_.CalculateSize(_repeated_file_codec); | |
| 230 return size; | |
| 231 } | |
| 232 | |
| 233 public void MergeFrom(FileDescriptorSet other) { | |
| 234 if (other == null) { | |
| 235 return; | |
| 236 } | |
| 237 file_.Add(other.file_); | |
| 238 } | |
| 239 | |
| 240 public void MergeFrom(pb::CodedInputStream input) { | |
| 241 uint tag; | |
| 242 while ((tag = input.ReadTag()) != 0) { | |
| 243 switch(tag) { | |
| 244 default: | |
| 245 input.SkipLastField(); | |
| 246 break; | |
| 247 case 10: { | |
| 248 file_.AddEntriesFrom(input, _repeated_file_codec); | |
| 249 break; | |
| 250 } | |
| 251 } | |
| 252 } | |
| 253 } | |
| 254 | |
| 255 } | |
| 256 | |
| 257 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 258 internal sealed partial class FileDescriptorProto : pb::IMessage<FileDescripto
rProto> { | |
| 259 private static readonly pb::MessageParser<FileDescriptorProto> _parser = new
pb::MessageParser<FileDescriptorProto>(() => new FileDescriptorProto()); | |
| 260 public static pb::MessageParser<FileDescriptorProto> Parser { get { return _
parser; } } | |
| 261 | |
| 262 public static pbr::MessageDescriptor Descriptor { | |
| 263 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descri
ptor.MessageTypes[1]; } | |
| 264 } | |
| 265 | |
| 266 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 267 get { return Descriptor; } | |
| 268 } | |
| 269 | |
| 270 public FileDescriptorProto() { | |
| 271 OnConstruction(); | |
| 272 } | |
| 273 | |
| 274 partial void OnConstruction(); | |
| 275 | |
| 276 public FileDescriptorProto(FileDescriptorProto other) : this() { | |
| 277 name_ = other.name_; | |
| 278 package_ = other.package_; | |
| 279 dependency_ = other.dependency_.Clone(); | |
| 280 publicDependency_ = other.publicDependency_.Clone(); | |
| 281 weakDependency_ = other.weakDependency_.Clone(); | |
| 282 messageType_ = other.messageType_.Clone(); | |
| 283 enumType_ = other.enumType_.Clone(); | |
| 284 service_ = other.service_.Clone(); | |
| 285 extension_ = other.extension_.Clone(); | |
| 286 Options = other.options_ != null ? other.Options.Clone() : null; | |
| 287 SourceCodeInfo = other.sourceCodeInfo_ != null ? other.SourceCodeInfo.Clon
e() : null; | |
| 288 syntax_ = other.syntax_; | |
| 289 } | |
| 290 | |
| 291 public FileDescriptorProto Clone() { | |
| 292 return new FileDescriptorProto(this); | |
| 293 } | |
| 294 | |
| 295 public const int NameFieldNumber = 1; | |
| 296 private string name_ = ""; | |
| 297 internal string Name { | |
| 298 get { return name_; } | |
| 299 set { | |
| 300 name_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 301 } | |
| 302 } | |
| 303 | |
| 304 public const int PackageFieldNumber = 2; | |
| 305 private string package_ = ""; | |
| 306 internal string Package { | |
| 307 get { return package_; } | |
| 308 set { | |
| 309 package_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 310 } | |
| 311 } | |
| 312 | |
| 313 public const int DependencyFieldNumber = 3; | |
| 314 private static readonly pb::FieldCodec<string> _repeated_dependency_codec | |
| 315 = pb::FieldCodec.ForString(26); | |
| 316 private readonly pbc::RepeatedField<string> dependency_ = new pbc::RepeatedF
ield<string>(); | |
| 317 internal pbc::RepeatedField<string> Dependency { | |
| 318 get { return dependency_; } | |
| 319 } | |
| 320 | |
| 321 public const int PublicDependencyFieldNumber = 10; | |
| 322 private static readonly pb::FieldCodec<int> _repeated_publicDependency_codec | |
| 323 = pb::FieldCodec.ForInt32(80); | |
| 324 private readonly pbc::RepeatedField<int> publicDependency_ = new pbc::Repeat
edField<int>(); | |
| 325 internal pbc::RepeatedField<int> PublicDependency { | |
| 326 get { return publicDependency_; } | |
| 327 } | |
| 328 | |
| 329 public const int WeakDependencyFieldNumber = 11; | |
| 330 private static readonly pb::FieldCodec<int> _repeated_weakDependency_codec | |
| 331 = pb::FieldCodec.ForInt32(88); | |
| 332 private readonly pbc::RepeatedField<int> weakDependency_ = new pbc::Repeated
Field<int>(); | |
| 333 internal pbc::RepeatedField<int> WeakDependency { | |
| 334 get { return weakDependency_; } | |
| 335 } | |
| 336 | |
| 337 public const int MessageTypeFieldNumber = 4; | |
| 338 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.De
scriptorProto> _repeated_messageType_codec | |
| 339 = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.Descr
iptorProto.Parser); | |
| 340 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Descr
iptorProto> messageType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflec
tion.DescriptorProto>(); | |
| 341 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorPro
to> MessageType { | |
| 342 get { return messageType_; } | |
| 343 } | |
| 344 | |
| 345 public const int EnumTypeFieldNumber = 5; | |
| 346 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.En
umDescriptorProto> _repeated_enumType_codec | |
| 347 = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.EnumD
escriptorProto.Parser); | |
| 348 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumD
escriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Refle
ction.EnumDescriptorProto>(); | |
| 349 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescripto
rProto> EnumType { | |
| 350 get { return enumType_; } | |
| 351 } | |
| 352 | |
| 353 public const int ServiceFieldNumber = 6; | |
| 354 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Se
rviceDescriptorProto> _repeated_service_codec | |
| 355 = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.Servi
ceDescriptorProto.Parser); | |
| 356 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Servi
ceDescriptorProto> service_ = new pbc::RepeatedField<global::Google.Protobuf.Ref
lection.ServiceDescriptorProto>(); | |
| 357 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescri
ptorProto> Service { | |
| 358 get { return service_; } | |
| 359 } | |
| 360 | |
| 361 public const int ExtensionFieldNumber = 7; | |
| 362 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Fi
eldDescriptorProto> _repeated_extension_codec | |
| 363 = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.Reflection.Field
DescriptorProto.Parser); | |
| 364 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Field
DescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Ref
lection.FieldDescriptorProto>(); | |
| 365 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescript
orProto> Extension { | |
| 366 get { return extension_; } | |
| 367 } | |
| 368 | |
| 369 public const int OptionsFieldNumber = 8; | |
| 370 private global::Google.Protobuf.Reflection.FileOptions options_; | |
| 371 internal global::Google.Protobuf.Reflection.FileOptions Options { | |
| 372 get { return options_; } | |
| 373 set { | |
| 374 options_ = value; | |
| 375 } | |
| 376 } | |
| 377 | |
| 378 public const int SourceCodeInfoFieldNumber = 9; | |
| 379 private global::Google.Protobuf.Reflection.SourceCodeInfo sourceCodeInfo_; | |
| 380 internal global::Google.Protobuf.Reflection.SourceCodeInfo SourceCodeInfo { | |
| 381 get { return sourceCodeInfo_; } | |
| 382 set { | |
| 383 sourceCodeInfo_ = value; | |
| 384 } | |
| 385 } | |
| 386 | |
| 387 public const int SyntaxFieldNumber = 12; | |
| 388 private string syntax_ = ""; | |
| 389 internal string Syntax { | |
| 390 get { return syntax_; } | |
| 391 set { | |
| 392 syntax_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 393 } | |
| 394 } | |
| 395 | |
| 396 public override bool Equals(object other) { | |
| 397 return Equals(other as FileDescriptorProto); | |
| 398 } | |
| 399 | |
| 400 public bool Equals(FileDescriptorProto other) { | |
| 401 if (ReferenceEquals(other, null)) { | |
| 402 return false; | |
| 403 } | |
| 404 if (ReferenceEquals(other, this)) { | |
| 405 return true; | |
| 406 } | |
| 407 if (Name != other.Name) return false; | |
| 408 if (Package != other.Package) return false; | |
| 409 if(!dependency_.Equals(other.dependency_)) return false; | |
| 410 if(!publicDependency_.Equals(other.publicDependency_)) return false; | |
| 411 if(!weakDependency_.Equals(other.weakDependency_)) return false; | |
| 412 if(!messageType_.Equals(other.messageType_)) return false; | |
| 413 if(!enumType_.Equals(other.enumType_)) return false; | |
| 414 if(!service_.Equals(other.service_)) return false; | |
| 415 if(!extension_.Equals(other.extension_)) return false; | |
| 416 if (!object.Equals(Options, other.Options)) return false; | |
| 417 if (!object.Equals(SourceCodeInfo, other.SourceCodeInfo)) return false; | |
| 418 if (Syntax != other.Syntax) return false; | |
| 419 return true; | |
| 420 } | |
| 421 | |
| 422 public override int GetHashCode() { | |
| 423 int hash = 1; | |
| 424 if (Name.Length != 0) hash ^= Name.GetHashCode(); | |
| 425 if (Package.Length != 0) hash ^= Package.GetHashCode(); | |
| 426 hash ^= dependency_.GetHashCode(); | |
| 427 hash ^= publicDependency_.GetHashCode(); | |
| 428 hash ^= weakDependency_.GetHashCode(); | |
| 429 hash ^= messageType_.GetHashCode(); | |
| 430 hash ^= enumType_.GetHashCode(); | |
| 431 hash ^= service_.GetHashCode(); | |
| 432 hash ^= extension_.GetHashCode(); | |
| 433 if (options_ != null) hash ^= Options.GetHashCode(); | |
| 434 if (sourceCodeInfo_ != null) hash ^= SourceCodeInfo.GetHashCode(); | |
| 435 if (Syntax.Length != 0) hash ^= Syntax.GetHashCode(); | |
| 436 return hash; | |
| 437 } | |
| 438 | |
| 439 public override string ToString() { | |
| 440 return pb::JsonFormatter.Default.Format(this); | |
| 441 } | |
| 442 | |
| 443 public void WriteTo(pb::CodedOutputStream output) { | |
| 444 if (Name.Length != 0) { | |
| 445 output.WriteRawTag(10); | |
| 446 output.WriteString(Name); | |
| 447 } | |
| 448 if (Package.Length != 0) { | |
| 449 output.WriteRawTag(18); | |
| 450 output.WriteString(Package); | |
| 451 } | |
| 452 dependency_.WriteTo(output, _repeated_dependency_codec); | |
| 453 messageType_.WriteTo(output, _repeated_messageType_codec); | |
| 454 enumType_.WriteTo(output, _repeated_enumType_codec); | |
| 455 service_.WriteTo(output, _repeated_service_codec); | |
| 456 extension_.WriteTo(output, _repeated_extension_codec); | |
| 457 if (options_ != null) { | |
| 458 output.WriteRawTag(66); | |
| 459 output.WriteMessage(Options); | |
| 460 } | |
| 461 if (sourceCodeInfo_ != null) { | |
| 462 output.WriteRawTag(74); | |
| 463 output.WriteMessage(SourceCodeInfo); | |
| 464 } | |
| 465 publicDependency_.WriteTo(output, _repeated_publicDependency_codec); | |
| 466 weakDependency_.WriteTo(output, _repeated_weakDependency_codec); | |
| 467 if (Syntax.Length != 0) { | |
| 468 output.WriteRawTag(98); | |
| 469 output.WriteString(Syntax); | |
| 470 } | |
| 471 } | |
| 472 | |
| 473 public int CalculateSize() { | |
| 474 int size = 0; | |
| 475 if (Name.Length != 0) { | |
| 476 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); | |
| 477 } | |
| 478 if (Package.Length != 0) { | |
| 479 size += 1 + pb::CodedOutputStream.ComputeStringSize(Package); | |
| 480 } | |
| 481 size += dependency_.CalculateSize(_repeated_dependency_codec); | |
| 482 size += publicDependency_.CalculateSize(_repeated_publicDependency_codec); | |
| 483 size += weakDependency_.CalculateSize(_repeated_weakDependency_codec); | |
| 484 size += messageType_.CalculateSize(_repeated_messageType_codec); | |
| 485 size += enumType_.CalculateSize(_repeated_enumType_codec); | |
| 486 size += service_.CalculateSize(_repeated_service_codec); | |
| 487 size += extension_.CalculateSize(_repeated_extension_codec); | |
| 488 if (options_ != null) { | |
| 489 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); | |
| 490 } | |
| 491 if (sourceCodeInfo_ != null) { | |
| 492 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceCodeInfo); | |
| 493 } | |
| 494 if (Syntax.Length != 0) { | |
| 495 size += 1 + pb::CodedOutputStream.ComputeStringSize(Syntax); | |
| 496 } | |
| 497 return size; | |
| 498 } | |
| 499 | |
| 500 public void MergeFrom(FileDescriptorProto other) { | |
| 501 if (other == null) { | |
| 502 return; | |
| 503 } | |
| 504 if (other.Name.Length != 0) { | |
| 505 Name = other.Name; | |
| 506 } | |
| 507 if (other.Package.Length != 0) { | |
| 508 Package = other.Package; | |
| 509 } | |
| 510 dependency_.Add(other.dependency_); | |
| 511 publicDependency_.Add(other.publicDependency_); | |
| 512 weakDependency_.Add(other.weakDependency_); | |
| 513 messageType_.Add(other.messageType_); | |
| 514 enumType_.Add(other.enumType_); | |
| 515 service_.Add(other.service_); | |
| 516 extension_.Add(other.extension_); | |
| 517 if (other.options_ != null) { | |
| 518 if (options_ == null) { | |
| 519 options_ = new global::Google.Protobuf.Reflection.FileOptions(); | |
| 520 } | |
| 521 Options.MergeFrom(other.Options); | |
| 522 } | |
| 523 if (other.sourceCodeInfo_ != null) { | |
| 524 if (sourceCodeInfo_ == null) { | |
| 525 sourceCodeInfo_ = new global::Google.Protobuf.Reflection.SourceCodeInf
o(); | |
| 526 } | |
| 527 SourceCodeInfo.MergeFrom(other.SourceCodeInfo); | |
| 528 } | |
| 529 if (other.Syntax.Length != 0) { | |
| 530 Syntax = other.Syntax; | |
| 531 } | |
| 532 } | |
| 533 | |
| 534 public void MergeFrom(pb::CodedInputStream input) { | |
| 535 uint tag; | |
| 536 while ((tag = input.ReadTag()) != 0) { | |
| 537 switch(tag) { | |
| 538 default: | |
| 539 input.SkipLastField(); | |
| 540 break; | |
| 541 case 10: { | |
| 542 Name = input.ReadString(); | |
| 543 break; | |
| 544 } | |
| 545 case 18: { | |
| 546 Package = input.ReadString(); | |
| 547 break; | |
| 548 } | |
| 549 case 26: { | |
| 550 dependency_.AddEntriesFrom(input, _repeated_dependency_codec); | |
| 551 break; | |
| 552 } | |
| 553 case 34: { | |
| 554 messageType_.AddEntriesFrom(input, _repeated_messageType_codec); | |
| 555 break; | |
| 556 } | |
| 557 case 42: { | |
| 558 enumType_.AddEntriesFrom(input, _repeated_enumType_codec); | |
| 559 break; | |
| 560 } | |
| 561 case 50: { | |
| 562 service_.AddEntriesFrom(input, _repeated_service_codec); | |
| 563 break; | |
| 564 } | |
| 565 case 58: { | |
| 566 extension_.AddEntriesFrom(input, _repeated_extension_codec); | |
| 567 break; | |
| 568 } | |
| 569 case 66: { | |
| 570 if (options_ == null) { | |
| 571 options_ = new global::Google.Protobuf.Reflection.FileOptions(); | |
| 572 } | |
| 573 input.ReadMessage(options_); | |
| 574 break; | |
| 575 } | |
| 576 case 74: { | |
| 577 if (sourceCodeInfo_ == null) { | |
| 578 sourceCodeInfo_ = new global::Google.Protobuf.Reflection.SourceCod
eInfo(); | |
| 579 } | |
| 580 input.ReadMessage(sourceCodeInfo_); | |
| 581 break; | |
| 582 } | |
| 583 case 82: | |
| 584 case 80: { | |
| 585 publicDependency_.AddEntriesFrom(input, _repeated_publicDependency_c
odec); | |
| 586 break; | |
| 587 } | |
| 588 case 90: | |
| 589 case 88: { | |
| 590 weakDependency_.AddEntriesFrom(input, _repeated_weakDependency_codec
); | |
| 591 break; | |
| 592 } | |
| 593 case 98: { | |
| 594 Syntax = input.ReadString(); | |
| 595 break; | |
| 596 } | |
| 597 } | |
| 598 } | |
| 599 } | |
| 600 | |
| 601 } | |
| 602 | |
| 603 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 604 internal sealed partial class DescriptorProto : pb::IMessage<DescriptorProto>
{ | |
| 605 private static readonly pb::MessageParser<DescriptorProto> _parser = new pb:
:MessageParser<DescriptorProto>(() => new DescriptorProto()); | |
| 606 public static pb::MessageParser<DescriptorProto> Parser { get { return _pars
er; } } | |
| 607 | |
| 608 public static pbr::MessageDescriptor Descriptor { | |
| 609 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descri
ptor.MessageTypes[2]; } | |
| 610 } | |
| 611 | |
| 612 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 613 get { return Descriptor; } | |
| 614 } | |
| 615 | |
| 616 public DescriptorProto() { | |
| 617 OnConstruction(); | |
| 618 } | |
| 619 | |
| 620 partial void OnConstruction(); | |
| 621 | |
| 622 public DescriptorProto(DescriptorProto other) : this() { | |
| 623 name_ = other.name_; | |
| 624 field_ = other.field_.Clone(); | |
| 625 extension_ = other.extension_.Clone(); | |
| 626 nestedType_ = other.nestedType_.Clone(); | |
| 627 enumType_ = other.enumType_.Clone(); | |
| 628 extensionRange_ = other.extensionRange_.Clone(); | |
| 629 oneofDecl_ = other.oneofDecl_.Clone(); | |
| 630 Options = other.options_ != null ? other.Options.Clone() : null; | |
| 631 reservedRange_ = other.reservedRange_.Clone(); | |
| 632 reservedName_ = other.reservedName_.Clone(); | |
| 633 } | |
| 634 | |
| 635 public DescriptorProto Clone() { | |
| 636 return new DescriptorProto(this); | |
| 637 } | |
| 638 | |
| 639 public const int NameFieldNumber = 1; | |
| 640 private string name_ = ""; | |
| 641 internal string Name { | |
| 642 get { return name_; } | |
| 643 set { | |
| 644 name_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 645 } | |
| 646 } | |
| 647 | |
| 648 public const int FieldFieldNumber = 2; | |
| 649 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Fi
eldDescriptorProto> _repeated_field_codec | |
| 650 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.Field
DescriptorProto.Parser); | |
| 651 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Field
DescriptorProto> field_ = new pbc::RepeatedField<global::Google.Protobuf.Reflect
ion.FieldDescriptorProto>(); | |
| 652 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescript
orProto> Field { | |
| 653 get { return field_; } | |
| 654 } | |
| 655 | |
| 656 public const int ExtensionFieldNumber = 6; | |
| 657 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Fi
eldDescriptorProto> _repeated_extension_codec | |
| 658 = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.Field
DescriptorProto.Parser); | |
| 659 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Field
DescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Ref
lection.FieldDescriptorProto>(); | |
| 660 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescript
orProto> Extension { | |
| 661 get { return extension_; } | |
| 662 } | |
| 663 | |
| 664 public const int NestedTypeFieldNumber = 3; | |
| 665 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.De
scriptorProto> _repeated_nestedType_codec | |
| 666 = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.Reflection.Descr
iptorProto.Parser); | |
| 667 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Descr
iptorProto> nestedType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflect
ion.DescriptorProto>(); | |
| 668 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorPro
to> NestedType { | |
| 669 get { return nestedType_; } | |
| 670 } | |
| 671 | |
| 672 public const int EnumTypeFieldNumber = 4; | |
| 673 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.En
umDescriptorProto> _repeated_enumType_codec | |
| 674 = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.EnumD
escriptorProto.Parser); | |
| 675 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumD
escriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Refle
ction.EnumDescriptorProto>(); | |
| 676 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescripto
rProto> EnumType { | |
| 677 get { return enumType_; } | |
| 678 } | |
| 679 | |
| 680 public const int ExtensionRangeFieldNumber = 5; | |
| 681 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.De
scriptorProto.Types.ExtensionRange> _repeated_extensionRange_codec | |
| 682 = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.Descr
iptorProto.Types.ExtensionRange.Parser); | |
| 683 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Descr
iptorProto.Types.ExtensionRange> extensionRange_ = new pbc::RepeatedField<global
::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange>(); | |
| 684 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorPro
to.Types.ExtensionRange> ExtensionRange { | |
| 685 get { return extensionRange_; } | |
| 686 } | |
| 687 | |
| 688 public const int OneofDeclFieldNumber = 8; | |
| 689 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.On
eofDescriptorProto> _repeated_oneofDecl_codec | |
| 690 = pb::FieldCodec.ForMessage(66, global::Google.Protobuf.Reflection.Oneof
DescriptorProto.Parser); | |
| 691 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Oneof
DescriptorProto> oneofDecl_ = new pbc::RepeatedField<global::Google.Protobuf.Ref
lection.OneofDescriptorProto>(); | |
| 692 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescript
orProto> OneofDecl { | |
| 693 get { return oneofDecl_; } | |
| 694 } | |
| 695 | |
| 696 public const int OptionsFieldNumber = 7; | |
| 697 private global::Google.Protobuf.Reflection.MessageOptions options_; | |
| 698 internal global::Google.Protobuf.Reflection.MessageOptions Options { | |
| 699 get { return options_; } | |
| 700 set { | |
| 701 options_ = value; | |
| 702 } | |
| 703 } | |
| 704 | |
| 705 public const int ReservedRangeFieldNumber = 9; | |
| 706 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.De
scriptorProto.Types.ReservedRange> _repeated_reservedRange_codec | |
| 707 = pb::FieldCodec.ForMessage(74, global::Google.Protobuf.Reflection.Descr
iptorProto.Types.ReservedRange.Parser); | |
| 708 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Descr
iptorProto.Types.ReservedRange> reservedRange_ = new pbc::RepeatedField<global::
Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange>(); | |
| 709 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorPro
to.Types.ReservedRange> ReservedRange { | |
| 710 get { return reservedRange_; } | |
| 711 } | |
| 712 | |
| 713 public const int ReservedNameFieldNumber = 10; | |
| 714 private static readonly pb::FieldCodec<string> _repeated_reservedName_codec | |
| 715 = pb::FieldCodec.ForString(82); | |
| 716 private readonly pbc::RepeatedField<string> reservedName_ = new pbc::Repeate
dField<string>(); | |
| 717 internal pbc::RepeatedField<string> ReservedName { | |
| 718 get { return reservedName_; } | |
| 719 } | |
| 720 | |
| 721 public override bool Equals(object other) { | |
| 722 return Equals(other as DescriptorProto); | |
| 723 } | |
| 724 | |
| 725 public bool Equals(DescriptorProto other) { | |
| 726 if (ReferenceEquals(other, null)) { | |
| 727 return false; | |
| 728 } | |
| 729 if (ReferenceEquals(other, this)) { | |
| 730 return true; | |
| 731 } | |
| 732 if (Name != other.Name) return false; | |
| 733 if(!field_.Equals(other.field_)) return false; | |
| 734 if(!extension_.Equals(other.extension_)) return false; | |
| 735 if(!nestedType_.Equals(other.nestedType_)) return false; | |
| 736 if(!enumType_.Equals(other.enumType_)) return false; | |
| 737 if(!extensionRange_.Equals(other.extensionRange_)) return false; | |
| 738 if(!oneofDecl_.Equals(other.oneofDecl_)) return false; | |
| 739 if (!object.Equals(Options, other.Options)) return false; | |
| 740 if(!reservedRange_.Equals(other.reservedRange_)) return false; | |
| 741 if(!reservedName_.Equals(other.reservedName_)) return false; | |
| 742 return true; | |
| 743 } | |
| 744 | |
| 745 public override int GetHashCode() { | |
| 746 int hash = 1; | |
| 747 if (Name.Length != 0) hash ^= Name.GetHashCode(); | |
| 748 hash ^= field_.GetHashCode(); | |
| 749 hash ^= extension_.GetHashCode(); | |
| 750 hash ^= nestedType_.GetHashCode(); | |
| 751 hash ^= enumType_.GetHashCode(); | |
| 752 hash ^= extensionRange_.GetHashCode(); | |
| 753 hash ^= oneofDecl_.GetHashCode(); | |
| 754 if (options_ != null) hash ^= Options.GetHashCode(); | |
| 755 hash ^= reservedRange_.GetHashCode(); | |
| 756 hash ^= reservedName_.GetHashCode(); | |
| 757 return hash; | |
| 758 } | |
| 759 | |
| 760 public override string ToString() { | |
| 761 return pb::JsonFormatter.Default.Format(this); | |
| 762 } | |
| 763 | |
| 764 public void WriteTo(pb::CodedOutputStream output) { | |
| 765 if (Name.Length != 0) { | |
| 766 output.WriteRawTag(10); | |
| 767 output.WriteString(Name); | |
| 768 } | |
| 769 field_.WriteTo(output, _repeated_field_codec); | |
| 770 nestedType_.WriteTo(output, _repeated_nestedType_codec); | |
| 771 enumType_.WriteTo(output, _repeated_enumType_codec); | |
| 772 extensionRange_.WriteTo(output, _repeated_extensionRange_codec); | |
| 773 extension_.WriteTo(output, _repeated_extension_codec); | |
| 774 if (options_ != null) { | |
| 775 output.WriteRawTag(58); | |
| 776 output.WriteMessage(Options); | |
| 777 } | |
| 778 oneofDecl_.WriteTo(output, _repeated_oneofDecl_codec); | |
| 779 reservedRange_.WriteTo(output, _repeated_reservedRange_codec); | |
| 780 reservedName_.WriteTo(output, _repeated_reservedName_codec); | |
| 781 } | |
| 782 | |
| 783 public int CalculateSize() { | |
| 784 int size = 0; | |
| 785 if (Name.Length != 0) { | |
| 786 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); | |
| 787 } | |
| 788 size += field_.CalculateSize(_repeated_field_codec); | |
| 789 size += extension_.CalculateSize(_repeated_extension_codec); | |
| 790 size += nestedType_.CalculateSize(_repeated_nestedType_codec); | |
| 791 size += enumType_.CalculateSize(_repeated_enumType_codec); | |
| 792 size += extensionRange_.CalculateSize(_repeated_extensionRange_codec); | |
| 793 size += oneofDecl_.CalculateSize(_repeated_oneofDecl_codec); | |
| 794 if (options_ != null) { | |
| 795 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); | |
| 796 } | |
| 797 size += reservedRange_.CalculateSize(_repeated_reservedRange_codec); | |
| 798 size += reservedName_.CalculateSize(_repeated_reservedName_codec); | |
| 799 return size; | |
| 800 } | |
| 801 | |
| 802 public void MergeFrom(DescriptorProto other) { | |
| 803 if (other == null) { | |
| 804 return; | |
| 805 } | |
| 806 if (other.Name.Length != 0) { | |
| 807 Name = other.Name; | |
| 808 } | |
| 809 field_.Add(other.field_); | |
| 810 extension_.Add(other.extension_); | |
| 811 nestedType_.Add(other.nestedType_); | |
| 812 enumType_.Add(other.enumType_); | |
| 813 extensionRange_.Add(other.extensionRange_); | |
| 814 oneofDecl_.Add(other.oneofDecl_); | |
| 815 if (other.options_ != null) { | |
| 816 if (options_ == null) { | |
| 817 options_ = new global::Google.Protobuf.Reflection.MessageOptions(); | |
| 818 } | |
| 819 Options.MergeFrom(other.Options); | |
| 820 } | |
| 821 reservedRange_.Add(other.reservedRange_); | |
| 822 reservedName_.Add(other.reservedName_); | |
| 823 } | |
| 824 | |
| 825 public void MergeFrom(pb::CodedInputStream input) { | |
| 826 uint tag; | |
| 827 while ((tag = input.ReadTag()) != 0) { | |
| 828 switch(tag) { | |
| 829 default: | |
| 830 input.SkipLastField(); | |
| 831 break; | |
| 832 case 10: { | |
| 833 Name = input.ReadString(); | |
| 834 break; | |
| 835 } | |
| 836 case 18: { | |
| 837 field_.AddEntriesFrom(input, _repeated_field_codec); | |
| 838 break; | |
| 839 } | |
| 840 case 26: { | |
| 841 nestedType_.AddEntriesFrom(input, _repeated_nestedType_codec); | |
| 842 break; | |
| 843 } | |
| 844 case 34: { | |
| 845 enumType_.AddEntriesFrom(input, _repeated_enumType_codec); | |
| 846 break; | |
| 847 } | |
| 848 case 42: { | |
| 849 extensionRange_.AddEntriesFrom(input, _repeated_extensionRange_codec
); | |
| 850 break; | |
| 851 } | |
| 852 case 50: { | |
| 853 extension_.AddEntriesFrom(input, _repeated_extension_codec); | |
| 854 break; | |
| 855 } | |
| 856 case 58: { | |
| 857 if (options_ == null) { | |
| 858 options_ = new global::Google.Protobuf.Reflection.MessageOptions()
; | |
| 859 } | |
| 860 input.ReadMessage(options_); | |
| 861 break; | |
| 862 } | |
| 863 case 66: { | |
| 864 oneofDecl_.AddEntriesFrom(input, _repeated_oneofDecl_codec); | |
| 865 break; | |
| 866 } | |
| 867 case 74: { | |
| 868 reservedRange_.AddEntriesFrom(input, _repeated_reservedRange_codec); | |
| 869 break; | |
| 870 } | |
| 871 case 82: { | |
| 872 reservedName_.AddEntriesFrom(input, _repeated_reservedName_codec); | |
| 873 break; | |
| 874 } | |
| 875 } | |
| 876 } | |
| 877 } | |
| 878 | |
| 879 #region Nested types | |
| 880 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 881 public static partial class Types { | |
| 882 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 883 internal sealed partial class ExtensionRange : pb::IMessage<ExtensionRange
> { | |
| 884 private static readonly pb::MessageParser<ExtensionRange> _parser = new
pb::MessageParser<ExtensionRange>(() => new ExtensionRange()); | |
| 885 public static pb::MessageParser<ExtensionRange> Parser { get { return _p
arser; } } | |
| 886 | |
| 887 public static pbr::MessageDescriptor Descriptor { | |
| 888 get { return global::Google.Protobuf.Reflection.DescriptorProto.Descri
ptor.NestedTypes[0]; } | |
| 889 } | |
| 890 | |
| 891 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 892 get { return Descriptor; } | |
| 893 } | |
| 894 | |
| 895 public ExtensionRange() { | |
| 896 OnConstruction(); | |
| 897 } | |
| 898 | |
| 899 partial void OnConstruction(); | |
| 900 | |
| 901 public ExtensionRange(ExtensionRange other) : this() { | |
| 902 start_ = other.start_; | |
| 903 end_ = other.end_; | |
| 904 } | |
| 905 | |
| 906 public ExtensionRange Clone() { | |
| 907 return new ExtensionRange(this); | |
| 908 } | |
| 909 | |
| 910 public const int StartFieldNumber = 1; | |
| 911 private int start_; | |
| 912 internal int Start { | |
| 913 get { return start_; } | |
| 914 set { | |
| 915 start_ = value; | |
| 916 } | |
| 917 } | |
| 918 | |
| 919 public const int EndFieldNumber = 2; | |
| 920 private int end_; | |
| 921 internal int End { | |
| 922 get { return end_; } | |
| 923 set { | |
| 924 end_ = value; | |
| 925 } | |
| 926 } | |
| 927 | |
| 928 public override bool Equals(object other) { | |
| 929 return Equals(other as ExtensionRange); | |
| 930 } | |
| 931 | |
| 932 public bool Equals(ExtensionRange other) { | |
| 933 if (ReferenceEquals(other, null)) { | |
| 934 return false; | |
| 935 } | |
| 936 if (ReferenceEquals(other, this)) { | |
| 937 return true; | |
| 938 } | |
| 939 if (Start != other.Start) return false; | |
| 940 if (End != other.End) return false; | |
| 941 return true; | |
| 942 } | |
| 943 | |
| 944 public override int GetHashCode() { | |
| 945 int hash = 1; | |
| 946 if (Start != 0) hash ^= Start.GetHashCode(); | |
| 947 if (End != 0) hash ^= End.GetHashCode(); | |
| 948 return hash; | |
| 949 } | |
| 950 | |
| 951 public override string ToString() { | |
| 952 return pb::JsonFormatter.Default.Format(this); | |
| 953 } | |
| 954 | |
| 955 public void WriteTo(pb::CodedOutputStream output) { | |
| 956 if (Start != 0) { | |
| 957 output.WriteRawTag(8); | |
| 958 output.WriteInt32(Start); | |
| 959 } | |
| 960 if (End != 0) { | |
| 961 output.WriteRawTag(16); | |
| 962 output.WriteInt32(End); | |
| 963 } | |
| 964 } | |
| 965 | |
| 966 public int CalculateSize() { | |
| 967 int size = 0; | |
| 968 if (Start != 0) { | |
| 969 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start); | |
| 970 } | |
| 971 if (End != 0) { | |
| 972 size += 1 + pb::CodedOutputStream.ComputeInt32Size(End); | |
| 973 } | |
| 974 return size; | |
| 975 } | |
| 976 | |
| 977 public void MergeFrom(ExtensionRange other) { | |
| 978 if (other == null) { | |
| 979 return; | |
| 980 } | |
| 981 if (other.Start != 0) { | |
| 982 Start = other.Start; | |
| 983 } | |
| 984 if (other.End != 0) { | |
| 985 End = other.End; | |
| 986 } | |
| 987 } | |
| 988 | |
| 989 public void MergeFrom(pb::CodedInputStream input) { | |
| 990 uint tag; | |
| 991 while ((tag = input.ReadTag()) != 0) { | |
| 992 switch(tag) { | |
| 993 default: | |
| 994 input.SkipLastField(); | |
| 995 break; | |
| 996 case 8: { | |
| 997 Start = input.ReadInt32(); | |
| 998 break; | |
| 999 } | |
| 1000 case 16: { | |
| 1001 End = input.ReadInt32(); | |
| 1002 break; | |
| 1003 } | |
| 1004 } | |
| 1005 } | |
| 1006 } | |
| 1007 | |
| 1008 } | |
| 1009 | |
| 1010 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 1011 internal sealed partial class ReservedRange : pb::IMessage<ReservedRange>
{ | |
| 1012 private static readonly pb::MessageParser<ReservedRange> _parser = new p
b::MessageParser<ReservedRange>(() => new ReservedRange()); | |
| 1013 public static pb::MessageParser<ReservedRange> Parser { get { return _pa
rser; } } | |
| 1014 | |
| 1015 public static pbr::MessageDescriptor Descriptor { | |
| 1016 get { return global::Google.Protobuf.Reflection.DescriptorProto.Descri
ptor.NestedTypes[1]; } | |
| 1017 } | |
| 1018 | |
| 1019 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 1020 get { return Descriptor; } | |
| 1021 } | |
| 1022 | |
| 1023 public ReservedRange() { | |
| 1024 OnConstruction(); | |
| 1025 } | |
| 1026 | |
| 1027 partial void OnConstruction(); | |
| 1028 | |
| 1029 public ReservedRange(ReservedRange other) : this() { | |
| 1030 start_ = other.start_; | |
| 1031 end_ = other.end_; | |
| 1032 } | |
| 1033 | |
| 1034 public ReservedRange Clone() { | |
| 1035 return new ReservedRange(this); | |
| 1036 } | |
| 1037 | |
| 1038 public const int StartFieldNumber = 1; | |
| 1039 private int start_; | |
| 1040 internal int Start { | |
| 1041 get { return start_; } | |
| 1042 set { | |
| 1043 start_ = value; | |
| 1044 } | |
| 1045 } | |
| 1046 | |
| 1047 public const int EndFieldNumber = 2; | |
| 1048 private int end_; | |
| 1049 internal int End { | |
| 1050 get { return end_; } | |
| 1051 set { | |
| 1052 end_ = value; | |
| 1053 } | |
| 1054 } | |
| 1055 | |
| 1056 public override bool Equals(object other) { | |
| 1057 return Equals(other as ReservedRange); | |
| 1058 } | |
| 1059 | |
| 1060 public bool Equals(ReservedRange other) { | |
| 1061 if (ReferenceEquals(other, null)) { | |
| 1062 return false; | |
| 1063 } | |
| 1064 if (ReferenceEquals(other, this)) { | |
| 1065 return true; | |
| 1066 } | |
| 1067 if (Start != other.Start) return false; | |
| 1068 if (End != other.End) return false; | |
| 1069 return true; | |
| 1070 } | |
| 1071 | |
| 1072 public override int GetHashCode() { | |
| 1073 int hash = 1; | |
| 1074 if (Start != 0) hash ^= Start.GetHashCode(); | |
| 1075 if (End != 0) hash ^= End.GetHashCode(); | |
| 1076 return hash; | |
| 1077 } | |
| 1078 | |
| 1079 public override string ToString() { | |
| 1080 return pb::JsonFormatter.Default.Format(this); | |
| 1081 } | |
| 1082 | |
| 1083 public void WriteTo(pb::CodedOutputStream output) { | |
| 1084 if (Start != 0) { | |
| 1085 output.WriteRawTag(8); | |
| 1086 output.WriteInt32(Start); | |
| 1087 } | |
| 1088 if (End != 0) { | |
| 1089 output.WriteRawTag(16); | |
| 1090 output.WriteInt32(End); | |
| 1091 } | |
| 1092 } | |
| 1093 | |
| 1094 public int CalculateSize() { | |
| 1095 int size = 0; | |
| 1096 if (Start != 0) { | |
| 1097 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start); | |
| 1098 } | |
| 1099 if (End != 0) { | |
| 1100 size += 1 + pb::CodedOutputStream.ComputeInt32Size(End); | |
| 1101 } | |
| 1102 return size; | |
| 1103 } | |
| 1104 | |
| 1105 public void MergeFrom(ReservedRange other) { | |
| 1106 if (other == null) { | |
| 1107 return; | |
| 1108 } | |
| 1109 if (other.Start != 0) { | |
| 1110 Start = other.Start; | |
| 1111 } | |
| 1112 if (other.End != 0) { | |
| 1113 End = other.End; | |
| 1114 } | |
| 1115 } | |
| 1116 | |
| 1117 public void MergeFrom(pb::CodedInputStream input) { | |
| 1118 uint tag; | |
| 1119 while ((tag = input.ReadTag()) != 0) { | |
| 1120 switch(tag) { | |
| 1121 default: | |
| 1122 input.SkipLastField(); | |
| 1123 break; | |
| 1124 case 8: { | |
| 1125 Start = input.ReadInt32(); | |
| 1126 break; | |
| 1127 } | |
| 1128 case 16: { | |
| 1129 End = input.ReadInt32(); | |
| 1130 break; | |
| 1131 } | |
| 1132 } | |
| 1133 } | |
| 1134 } | |
| 1135 | |
| 1136 } | |
| 1137 | |
| 1138 } | |
| 1139 #endregion | |
| 1140 | |
| 1141 } | |
| 1142 | |
| 1143 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 1144 internal sealed partial class FieldDescriptorProto : pb::IMessage<FieldDescrip
torProto> { | |
| 1145 private static readonly pb::MessageParser<FieldDescriptorProto> _parser = ne
w pb::MessageParser<FieldDescriptorProto>(() => new FieldDescriptorProto()); | |
| 1146 public static pb::MessageParser<FieldDescriptorProto> Parser { get { return
_parser; } } | |
| 1147 | |
| 1148 public static pbr::MessageDescriptor Descriptor { | |
| 1149 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descri
ptor.MessageTypes[3]; } | |
| 1150 } | |
| 1151 | |
| 1152 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 1153 get { return Descriptor; } | |
| 1154 } | |
| 1155 | |
| 1156 public FieldDescriptorProto() { | |
| 1157 OnConstruction(); | |
| 1158 } | |
| 1159 | |
| 1160 partial void OnConstruction(); | |
| 1161 | |
| 1162 public FieldDescriptorProto(FieldDescriptorProto other) : this() { | |
| 1163 name_ = other.name_; | |
| 1164 number_ = other.number_; | |
| 1165 label_ = other.label_; | |
| 1166 type_ = other.type_; | |
| 1167 typeName_ = other.typeName_; | |
| 1168 extendee_ = other.extendee_; | |
| 1169 defaultValue_ = other.defaultValue_; | |
| 1170 oneofIndex_ = other.oneofIndex_; | |
| 1171 Options = other.options_ != null ? other.Options.Clone() : null; | |
| 1172 } | |
| 1173 | |
| 1174 public FieldDescriptorProto Clone() { | |
| 1175 return new FieldDescriptorProto(this); | |
| 1176 } | |
| 1177 | |
| 1178 public const int NameFieldNumber = 1; | |
| 1179 private string name_ = ""; | |
| 1180 internal string Name { | |
| 1181 get { return name_; } | |
| 1182 set { | |
| 1183 name_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 1184 } | |
| 1185 } | |
| 1186 | |
| 1187 public const int NumberFieldNumber = 3; | |
| 1188 private int number_; | |
| 1189 internal int Number { | |
| 1190 get { return number_; } | |
| 1191 set { | |
| 1192 number_ = value; | |
| 1193 } | |
| 1194 } | |
| 1195 | |
| 1196 public const int LabelFieldNumber = 4; | |
| 1197 private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label
label_ = global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label.LAB
EL_OPTIONAL; | |
| 1198 internal global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label
Label { | |
| 1199 get { return label_; } | |
| 1200 set { | |
| 1201 label_ = value; | |
| 1202 } | |
| 1203 } | |
| 1204 | |
| 1205 public const int TypeFieldNumber = 5; | |
| 1206 private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type t
ype_ = global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type.TYPE_D
OUBLE; | |
| 1207 internal global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type
Type { | |
| 1208 get { return type_; } | |
| 1209 set { | |
| 1210 type_ = value; | |
| 1211 } | |
| 1212 } | |
| 1213 | |
| 1214 public const int TypeNameFieldNumber = 6; | |
| 1215 private string typeName_ = ""; | |
| 1216 internal string TypeName { | |
| 1217 get { return typeName_; } | |
| 1218 set { | |
| 1219 typeName_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 1220 } | |
| 1221 } | |
| 1222 | |
| 1223 public const int ExtendeeFieldNumber = 2; | |
| 1224 private string extendee_ = ""; | |
| 1225 internal string Extendee { | |
| 1226 get { return extendee_; } | |
| 1227 set { | |
| 1228 extendee_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 1229 } | |
| 1230 } | |
| 1231 | |
| 1232 public const int DefaultValueFieldNumber = 7; | |
| 1233 private string defaultValue_ = ""; | |
| 1234 internal string DefaultValue { | |
| 1235 get { return defaultValue_; } | |
| 1236 set { | |
| 1237 defaultValue_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 1238 } | |
| 1239 } | |
| 1240 | |
| 1241 public const int OneofIndexFieldNumber = 9; | |
| 1242 private int oneofIndex_; | |
| 1243 internal int OneofIndex { | |
| 1244 get { return oneofIndex_; } | |
| 1245 set { | |
| 1246 oneofIndex_ = value; | |
| 1247 } | |
| 1248 } | |
| 1249 | |
| 1250 public const int OptionsFieldNumber = 8; | |
| 1251 private global::Google.Protobuf.Reflection.FieldOptions options_; | |
| 1252 internal global::Google.Protobuf.Reflection.FieldOptions Options { | |
| 1253 get { return options_; } | |
| 1254 set { | |
| 1255 options_ = value; | |
| 1256 } | |
| 1257 } | |
| 1258 | |
| 1259 public override bool Equals(object other) { | |
| 1260 return Equals(other as FieldDescriptorProto); | |
| 1261 } | |
| 1262 | |
| 1263 public bool Equals(FieldDescriptorProto other) { | |
| 1264 if (ReferenceEquals(other, null)) { | |
| 1265 return false; | |
| 1266 } | |
| 1267 if (ReferenceEquals(other, this)) { | |
| 1268 return true; | |
| 1269 } | |
| 1270 if (Name != other.Name) return false; | |
| 1271 if (Number != other.Number) return false; | |
| 1272 if (Label != other.Label) return false; | |
| 1273 if (Type != other.Type) return false; | |
| 1274 if (TypeName != other.TypeName) return false; | |
| 1275 if (Extendee != other.Extendee) return false; | |
| 1276 if (DefaultValue != other.DefaultValue) return false; | |
| 1277 if (OneofIndex != other.OneofIndex) return false; | |
| 1278 if (!object.Equals(Options, other.Options)) return false; | |
| 1279 return true; | |
| 1280 } | |
| 1281 | |
| 1282 public override int GetHashCode() { | |
| 1283 int hash = 1; | |
| 1284 if (Name.Length != 0) hash ^= Name.GetHashCode(); | |
| 1285 if (Number != 0) hash ^= Number.GetHashCode(); | |
| 1286 if (Label != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types
.Label.LABEL_OPTIONAL) hash ^= Label.GetHashCode(); | |
| 1287 if (Type != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.
Type.TYPE_DOUBLE) hash ^= Type.GetHashCode(); | |
| 1288 if (TypeName.Length != 0) hash ^= TypeName.GetHashCode(); | |
| 1289 if (Extendee.Length != 0) hash ^= Extendee.GetHashCode(); | |
| 1290 if (DefaultValue.Length != 0) hash ^= DefaultValue.GetHashCode(); | |
| 1291 if (OneofIndex != 0) hash ^= OneofIndex.GetHashCode(); | |
| 1292 if (options_ != null) hash ^= Options.GetHashCode(); | |
| 1293 return hash; | |
| 1294 } | |
| 1295 | |
| 1296 public override string ToString() { | |
| 1297 return pb::JsonFormatter.Default.Format(this); | |
| 1298 } | |
| 1299 | |
| 1300 public void WriteTo(pb::CodedOutputStream output) { | |
| 1301 if (Name.Length != 0) { | |
| 1302 output.WriteRawTag(10); | |
| 1303 output.WriteString(Name); | |
| 1304 } | |
| 1305 if (Extendee.Length != 0) { | |
| 1306 output.WriteRawTag(18); | |
| 1307 output.WriteString(Extendee); | |
| 1308 } | |
| 1309 if (Number != 0) { | |
| 1310 output.WriteRawTag(24); | |
| 1311 output.WriteInt32(Number); | |
| 1312 } | |
| 1313 if (Label != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types
.Label.LABEL_OPTIONAL) { | |
| 1314 output.WriteRawTag(32); | |
| 1315 output.WriteEnum((int) Label); | |
| 1316 } | |
| 1317 if (Type != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.
Type.TYPE_DOUBLE) { | |
| 1318 output.WriteRawTag(40); | |
| 1319 output.WriteEnum((int) Type); | |
| 1320 } | |
| 1321 if (TypeName.Length != 0) { | |
| 1322 output.WriteRawTag(50); | |
| 1323 output.WriteString(TypeName); | |
| 1324 } | |
| 1325 if (DefaultValue.Length != 0) { | |
| 1326 output.WriteRawTag(58); | |
| 1327 output.WriteString(DefaultValue); | |
| 1328 } | |
| 1329 if (options_ != null) { | |
| 1330 output.WriteRawTag(66); | |
| 1331 output.WriteMessage(Options); | |
| 1332 } | |
| 1333 if (OneofIndex != 0) { | |
| 1334 output.WriteRawTag(72); | |
| 1335 output.WriteInt32(OneofIndex); | |
| 1336 } | |
| 1337 } | |
| 1338 | |
| 1339 public int CalculateSize() { | |
| 1340 int size = 0; | |
| 1341 if (Name.Length != 0) { | |
| 1342 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); | |
| 1343 } | |
| 1344 if (Number != 0) { | |
| 1345 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number); | |
| 1346 } | |
| 1347 if (Label != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types
.Label.LABEL_OPTIONAL) { | |
| 1348 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Label); | |
| 1349 } | |
| 1350 if (Type != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.
Type.TYPE_DOUBLE) { | |
| 1351 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); | |
| 1352 } | |
| 1353 if (TypeName.Length != 0) { | |
| 1354 size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeName); | |
| 1355 } | |
| 1356 if (Extendee.Length != 0) { | |
| 1357 size += 1 + pb::CodedOutputStream.ComputeStringSize(Extendee); | |
| 1358 } | |
| 1359 if (DefaultValue.Length != 0) { | |
| 1360 size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultValue); | |
| 1361 } | |
| 1362 if (OneofIndex != 0) { | |
| 1363 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OneofIndex); | |
| 1364 } | |
| 1365 if (options_ != null) { | |
| 1366 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); | |
| 1367 } | |
| 1368 return size; | |
| 1369 } | |
| 1370 | |
| 1371 public void MergeFrom(FieldDescriptorProto other) { | |
| 1372 if (other == null) { | |
| 1373 return; | |
| 1374 } | |
| 1375 if (other.Name.Length != 0) { | |
| 1376 Name = other.Name; | |
| 1377 } | |
| 1378 if (other.Number != 0) { | |
| 1379 Number = other.Number; | |
| 1380 } | |
| 1381 if (other.Label != global::Google.Protobuf.Reflection.FieldDescriptorProto
.Types.Label.LABEL_OPTIONAL) { | |
| 1382 Label = other.Label; | |
| 1383 } | |
| 1384 if (other.Type != global::Google.Protobuf.Reflection.FieldDescriptorProto.
Types.Type.TYPE_DOUBLE) { | |
| 1385 Type = other.Type; | |
| 1386 } | |
| 1387 if (other.TypeName.Length != 0) { | |
| 1388 TypeName = other.TypeName; | |
| 1389 } | |
| 1390 if (other.Extendee.Length != 0) { | |
| 1391 Extendee = other.Extendee; | |
| 1392 } | |
| 1393 if (other.DefaultValue.Length != 0) { | |
| 1394 DefaultValue = other.DefaultValue; | |
| 1395 } | |
| 1396 if (other.OneofIndex != 0) { | |
| 1397 OneofIndex = other.OneofIndex; | |
| 1398 } | |
| 1399 if (other.options_ != null) { | |
| 1400 if (options_ == null) { | |
| 1401 options_ = new global::Google.Protobuf.Reflection.FieldOptions(); | |
| 1402 } | |
| 1403 Options.MergeFrom(other.Options); | |
| 1404 } | |
| 1405 } | |
| 1406 | |
| 1407 public void MergeFrom(pb::CodedInputStream input) { | |
| 1408 uint tag; | |
| 1409 while ((tag = input.ReadTag()) != 0) { | |
| 1410 switch(tag) { | |
| 1411 default: | |
| 1412 input.SkipLastField(); | |
| 1413 break; | |
| 1414 case 10: { | |
| 1415 Name = input.ReadString(); | |
| 1416 break; | |
| 1417 } | |
| 1418 case 18: { | |
| 1419 Extendee = input.ReadString(); | |
| 1420 break; | |
| 1421 } | |
| 1422 case 24: { | |
| 1423 Number = input.ReadInt32(); | |
| 1424 break; | |
| 1425 } | |
| 1426 case 32: { | |
| 1427 label_ = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Ty
pes.Label) input.ReadEnum(); | |
| 1428 break; | |
| 1429 } | |
| 1430 case 40: { | |
| 1431 type_ = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Typ
es.Type) input.ReadEnum(); | |
| 1432 break; | |
| 1433 } | |
| 1434 case 50: { | |
| 1435 TypeName = input.ReadString(); | |
| 1436 break; | |
| 1437 } | |
| 1438 case 58: { | |
| 1439 DefaultValue = input.ReadString(); | |
| 1440 break; | |
| 1441 } | |
| 1442 case 66: { | |
| 1443 if (options_ == null) { | |
| 1444 options_ = new global::Google.Protobuf.Reflection.FieldOptions(); | |
| 1445 } | |
| 1446 input.ReadMessage(options_); | |
| 1447 break; | |
| 1448 } | |
| 1449 case 72: { | |
| 1450 OneofIndex = input.ReadInt32(); | |
| 1451 break; | |
| 1452 } | |
| 1453 } | |
| 1454 } | |
| 1455 } | |
| 1456 | |
| 1457 #region Nested types | |
| 1458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 1459 public static partial class Types { | |
| 1460 internal enum Type { | |
| 1461 TYPE_DOUBLE = 1, | |
| 1462 TYPE_FLOAT = 2, | |
| 1463 TYPE_INT64 = 3, | |
| 1464 TYPE_UINT64 = 4, | |
| 1465 TYPE_INT32 = 5, | |
| 1466 TYPE_FIXED64 = 6, | |
| 1467 TYPE_FIXED32 = 7, | |
| 1468 TYPE_BOOL = 8, | |
| 1469 TYPE_STRING = 9, | |
| 1470 TYPE_GROUP = 10, | |
| 1471 TYPE_MESSAGE = 11, | |
| 1472 TYPE_BYTES = 12, | |
| 1473 TYPE_UINT32 = 13, | |
| 1474 TYPE_ENUM = 14, | |
| 1475 TYPE_SFIXED32 = 15, | |
| 1476 TYPE_SFIXED64 = 16, | |
| 1477 TYPE_SINT32 = 17, | |
| 1478 TYPE_SINT64 = 18, | |
| 1479 } | |
| 1480 | |
| 1481 internal enum Label { | |
| 1482 LABEL_OPTIONAL = 1, | |
| 1483 LABEL_REQUIRED = 2, | |
| 1484 LABEL_REPEATED = 3, | |
| 1485 } | |
| 1486 | |
| 1487 } | |
| 1488 #endregion | |
| 1489 | |
| 1490 } | |
| 1491 | |
| 1492 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 1493 internal sealed partial class OneofDescriptorProto : pb::IMessage<OneofDescrip
torProto> { | |
| 1494 private static readonly pb::MessageParser<OneofDescriptorProto> _parser = ne
w pb::MessageParser<OneofDescriptorProto>(() => new OneofDescriptorProto()); | |
| 1495 public static pb::MessageParser<OneofDescriptorProto> Parser { get { return
_parser; } } | |
| 1496 | |
| 1497 public static pbr::MessageDescriptor Descriptor { | |
| 1498 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descri
ptor.MessageTypes[4]; } | |
| 1499 } | |
| 1500 | |
| 1501 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 1502 get { return Descriptor; } | |
| 1503 } | |
| 1504 | |
| 1505 public OneofDescriptorProto() { | |
| 1506 OnConstruction(); | |
| 1507 } | |
| 1508 | |
| 1509 partial void OnConstruction(); | |
| 1510 | |
| 1511 public OneofDescriptorProto(OneofDescriptorProto other) : this() { | |
| 1512 name_ = other.name_; | |
| 1513 } | |
| 1514 | |
| 1515 public OneofDescriptorProto Clone() { | |
| 1516 return new OneofDescriptorProto(this); | |
| 1517 } | |
| 1518 | |
| 1519 public const int NameFieldNumber = 1; | |
| 1520 private string name_ = ""; | |
| 1521 internal string Name { | |
| 1522 get { return name_; } | |
| 1523 set { | |
| 1524 name_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 1525 } | |
| 1526 } | |
| 1527 | |
| 1528 public override bool Equals(object other) { | |
| 1529 return Equals(other as OneofDescriptorProto); | |
| 1530 } | |
| 1531 | |
| 1532 public bool Equals(OneofDescriptorProto other) { | |
| 1533 if (ReferenceEquals(other, null)) { | |
| 1534 return false; | |
| 1535 } | |
| 1536 if (ReferenceEquals(other, this)) { | |
| 1537 return true; | |
| 1538 } | |
| 1539 if (Name != other.Name) return false; | |
| 1540 return true; | |
| 1541 } | |
| 1542 | |
| 1543 public override int GetHashCode() { | |
| 1544 int hash = 1; | |
| 1545 if (Name.Length != 0) hash ^= Name.GetHashCode(); | |
| 1546 return hash; | |
| 1547 } | |
| 1548 | |
| 1549 public override string ToString() { | |
| 1550 return pb::JsonFormatter.Default.Format(this); | |
| 1551 } | |
| 1552 | |
| 1553 public void WriteTo(pb::CodedOutputStream output) { | |
| 1554 if (Name.Length != 0) { | |
| 1555 output.WriteRawTag(10); | |
| 1556 output.WriteString(Name); | |
| 1557 } | |
| 1558 } | |
| 1559 | |
| 1560 public int CalculateSize() { | |
| 1561 int size = 0; | |
| 1562 if (Name.Length != 0) { | |
| 1563 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); | |
| 1564 } | |
| 1565 return size; | |
| 1566 } | |
| 1567 | |
| 1568 public void MergeFrom(OneofDescriptorProto other) { | |
| 1569 if (other == null) { | |
| 1570 return; | |
| 1571 } | |
| 1572 if (other.Name.Length != 0) { | |
| 1573 Name = other.Name; | |
| 1574 } | |
| 1575 } | |
| 1576 | |
| 1577 public void MergeFrom(pb::CodedInputStream input) { | |
| 1578 uint tag; | |
| 1579 while ((tag = input.ReadTag()) != 0) { | |
| 1580 switch(tag) { | |
| 1581 default: | |
| 1582 input.SkipLastField(); | |
| 1583 break; | |
| 1584 case 10: { | |
| 1585 Name = input.ReadString(); | |
| 1586 break; | |
| 1587 } | |
| 1588 } | |
| 1589 } | |
| 1590 } | |
| 1591 | |
| 1592 } | |
| 1593 | |
| 1594 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 1595 internal sealed partial class EnumDescriptorProto : pb::IMessage<EnumDescripto
rProto> { | |
| 1596 private static readonly pb::MessageParser<EnumDescriptorProto> _parser = new
pb::MessageParser<EnumDescriptorProto>(() => new EnumDescriptorProto()); | |
| 1597 public static pb::MessageParser<EnumDescriptorProto> Parser { get { return _
parser; } } | |
| 1598 | |
| 1599 public static pbr::MessageDescriptor Descriptor { | |
| 1600 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descri
ptor.MessageTypes[5]; } | |
| 1601 } | |
| 1602 | |
| 1603 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 1604 get { return Descriptor; } | |
| 1605 } | |
| 1606 | |
| 1607 public EnumDescriptorProto() { | |
| 1608 OnConstruction(); | |
| 1609 } | |
| 1610 | |
| 1611 partial void OnConstruction(); | |
| 1612 | |
| 1613 public EnumDescriptorProto(EnumDescriptorProto other) : this() { | |
| 1614 name_ = other.name_; | |
| 1615 value_ = other.value_.Clone(); | |
| 1616 Options = other.options_ != null ? other.Options.Clone() : null; | |
| 1617 } | |
| 1618 | |
| 1619 public EnumDescriptorProto Clone() { | |
| 1620 return new EnumDescriptorProto(this); | |
| 1621 } | |
| 1622 | |
| 1623 public const int NameFieldNumber = 1; | |
| 1624 private string name_ = ""; | |
| 1625 internal string Name { | |
| 1626 get { return name_; } | |
| 1627 set { | |
| 1628 name_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 1629 } | |
| 1630 } | |
| 1631 | |
| 1632 public const int ValueFieldNumber = 2; | |
| 1633 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.En
umValueDescriptorProto> _repeated_value_codec | |
| 1634 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.EnumV
alueDescriptorProto.Parser); | |
| 1635 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumV
alueDescriptorProto> value_ = new pbc::RepeatedField<global::Google.Protobuf.Ref
lection.EnumValueDescriptorProto>(); | |
| 1636 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDesc
riptorProto> Value { | |
| 1637 get { return value_; } | |
| 1638 } | |
| 1639 | |
| 1640 public const int OptionsFieldNumber = 3; | |
| 1641 private global::Google.Protobuf.Reflection.EnumOptions options_; | |
| 1642 internal global::Google.Protobuf.Reflection.EnumOptions Options { | |
| 1643 get { return options_; } | |
| 1644 set { | |
| 1645 options_ = value; | |
| 1646 } | |
| 1647 } | |
| 1648 | |
| 1649 public override bool Equals(object other) { | |
| 1650 return Equals(other as EnumDescriptorProto); | |
| 1651 } | |
| 1652 | |
| 1653 public bool Equals(EnumDescriptorProto other) { | |
| 1654 if (ReferenceEquals(other, null)) { | |
| 1655 return false; | |
| 1656 } | |
| 1657 if (ReferenceEquals(other, this)) { | |
| 1658 return true; | |
| 1659 } | |
| 1660 if (Name != other.Name) return false; | |
| 1661 if(!value_.Equals(other.value_)) return false; | |
| 1662 if (!object.Equals(Options, other.Options)) return false; | |
| 1663 return true; | |
| 1664 } | |
| 1665 | |
| 1666 public override int GetHashCode() { | |
| 1667 int hash = 1; | |
| 1668 if (Name.Length != 0) hash ^= Name.GetHashCode(); | |
| 1669 hash ^= value_.GetHashCode(); | |
| 1670 if (options_ != null) hash ^= Options.GetHashCode(); | |
| 1671 return hash; | |
| 1672 } | |
| 1673 | |
| 1674 public override string ToString() { | |
| 1675 return pb::JsonFormatter.Default.Format(this); | |
| 1676 } | |
| 1677 | |
| 1678 public void WriteTo(pb::CodedOutputStream output) { | |
| 1679 if (Name.Length != 0) { | |
| 1680 output.WriteRawTag(10); | |
| 1681 output.WriteString(Name); | |
| 1682 } | |
| 1683 value_.WriteTo(output, _repeated_value_codec); | |
| 1684 if (options_ != null) { | |
| 1685 output.WriteRawTag(26); | |
| 1686 output.WriteMessage(Options); | |
| 1687 } | |
| 1688 } | |
| 1689 | |
| 1690 public int CalculateSize() { | |
| 1691 int size = 0; | |
| 1692 if (Name.Length != 0) { | |
| 1693 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); | |
| 1694 } | |
| 1695 size += value_.CalculateSize(_repeated_value_codec); | |
| 1696 if (options_ != null) { | |
| 1697 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); | |
| 1698 } | |
| 1699 return size; | |
| 1700 } | |
| 1701 | |
| 1702 public void MergeFrom(EnumDescriptorProto other) { | |
| 1703 if (other == null) { | |
| 1704 return; | |
| 1705 } | |
| 1706 if (other.Name.Length != 0) { | |
| 1707 Name = other.Name; | |
| 1708 } | |
| 1709 value_.Add(other.value_); | |
| 1710 if (other.options_ != null) { | |
| 1711 if (options_ == null) { | |
| 1712 options_ = new global::Google.Protobuf.Reflection.EnumOptions(); | |
| 1713 } | |
| 1714 Options.MergeFrom(other.Options); | |
| 1715 } | |
| 1716 } | |
| 1717 | |
| 1718 public void MergeFrom(pb::CodedInputStream input) { | |
| 1719 uint tag; | |
| 1720 while ((tag = input.ReadTag()) != 0) { | |
| 1721 switch(tag) { | |
| 1722 default: | |
| 1723 input.SkipLastField(); | |
| 1724 break; | |
| 1725 case 10: { | |
| 1726 Name = input.ReadString(); | |
| 1727 break; | |
| 1728 } | |
| 1729 case 18: { | |
| 1730 value_.AddEntriesFrom(input, _repeated_value_codec); | |
| 1731 break; | |
| 1732 } | |
| 1733 case 26: { | |
| 1734 if (options_ == null) { | |
| 1735 options_ = new global::Google.Protobuf.Reflection.EnumOptions(); | |
| 1736 } | |
| 1737 input.ReadMessage(options_); | |
| 1738 break; | |
| 1739 } | |
| 1740 } | |
| 1741 } | |
| 1742 } | |
| 1743 | |
| 1744 } | |
| 1745 | |
| 1746 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 1747 internal sealed partial class EnumValueDescriptorProto : pb::IMessage<EnumValu
eDescriptorProto> { | |
| 1748 private static readonly pb::MessageParser<EnumValueDescriptorProto> _parser
= new pb::MessageParser<EnumValueDescriptorProto>(() => new EnumValueDescriptorP
roto()); | |
| 1749 public static pb::MessageParser<EnumValueDescriptorProto> Parser { get { ret
urn _parser; } } | |
| 1750 | |
| 1751 public static pbr::MessageDescriptor Descriptor { | |
| 1752 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descri
ptor.MessageTypes[6]; } | |
| 1753 } | |
| 1754 | |
| 1755 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 1756 get { return Descriptor; } | |
| 1757 } | |
| 1758 | |
| 1759 public EnumValueDescriptorProto() { | |
| 1760 OnConstruction(); | |
| 1761 } | |
| 1762 | |
| 1763 partial void OnConstruction(); | |
| 1764 | |
| 1765 public EnumValueDescriptorProto(EnumValueDescriptorProto other) : this() { | |
| 1766 name_ = other.name_; | |
| 1767 number_ = other.number_; | |
| 1768 Options = other.options_ != null ? other.Options.Clone() : null; | |
| 1769 } | |
| 1770 | |
| 1771 public EnumValueDescriptorProto Clone() { | |
| 1772 return new EnumValueDescriptorProto(this); | |
| 1773 } | |
| 1774 | |
| 1775 public const int NameFieldNumber = 1; | |
| 1776 private string name_ = ""; | |
| 1777 internal string Name { | |
| 1778 get { return name_; } | |
| 1779 set { | |
| 1780 name_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 1781 } | |
| 1782 } | |
| 1783 | |
| 1784 public const int NumberFieldNumber = 2; | |
| 1785 private int number_; | |
| 1786 internal int Number { | |
| 1787 get { return number_; } | |
| 1788 set { | |
| 1789 number_ = value; | |
| 1790 } | |
| 1791 } | |
| 1792 | |
| 1793 public const int OptionsFieldNumber = 3; | |
| 1794 private global::Google.Protobuf.Reflection.EnumValueOptions options_; | |
| 1795 internal global::Google.Protobuf.Reflection.EnumValueOptions Options { | |
| 1796 get { return options_; } | |
| 1797 set { | |
| 1798 options_ = value; | |
| 1799 } | |
| 1800 } | |
| 1801 | |
| 1802 public override bool Equals(object other) { | |
| 1803 return Equals(other as EnumValueDescriptorProto); | |
| 1804 } | |
| 1805 | |
| 1806 public bool Equals(EnumValueDescriptorProto other) { | |
| 1807 if (ReferenceEquals(other, null)) { | |
| 1808 return false; | |
| 1809 } | |
| 1810 if (ReferenceEquals(other, this)) { | |
| 1811 return true; | |
| 1812 } | |
| 1813 if (Name != other.Name) return false; | |
| 1814 if (Number != other.Number) return false; | |
| 1815 if (!object.Equals(Options, other.Options)) return false; | |
| 1816 return true; | |
| 1817 } | |
| 1818 | |
| 1819 public override int GetHashCode() { | |
| 1820 int hash = 1; | |
| 1821 if (Name.Length != 0) hash ^= Name.GetHashCode(); | |
| 1822 if (Number != 0) hash ^= Number.GetHashCode(); | |
| 1823 if (options_ != null) hash ^= Options.GetHashCode(); | |
| 1824 return hash; | |
| 1825 } | |
| 1826 | |
| 1827 public override string ToString() { | |
| 1828 return pb::JsonFormatter.Default.Format(this); | |
| 1829 } | |
| 1830 | |
| 1831 public void WriteTo(pb::CodedOutputStream output) { | |
| 1832 if (Name.Length != 0) { | |
| 1833 output.WriteRawTag(10); | |
| 1834 output.WriteString(Name); | |
| 1835 } | |
| 1836 if (Number != 0) { | |
| 1837 output.WriteRawTag(16); | |
| 1838 output.WriteInt32(Number); | |
| 1839 } | |
| 1840 if (options_ != null) { | |
| 1841 output.WriteRawTag(26); | |
| 1842 output.WriteMessage(Options); | |
| 1843 } | |
| 1844 } | |
| 1845 | |
| 1846 public int CalculateSize() { | |
| 1847 int size = 0; | |
| 1848 if (Name.Length != 0) { | |
| 1849 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); | |
| 1850 } | |
| 1851 if (Number != 0) { | |
| 1852 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number); | |
| 1853 } | |
| 1854 if (options_ != null) { | |
| 1855 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); | |
| 1856 } | |
| 1857 return size; | |
| 1858 } | |
| 1859 | |
| 1860 public void MergeFrom(EnumValueDescriptorProto other) { | |
| 1861 if (other == null) { | |
| 1862 return; | |
| 1863 } | |
| 1864 if (other.Name.Length != 0) { | |
| 1865 Name = other.Name; | |
| 1866 } | |
| 1867 if (other.Number != 0) { | |
| 1868 Number = other.Number; | |
| 1869 } | |
| 1870 if (other.options_ != null) { | |
| 1871 if (options_ == null) { | |
| 1872 options_ = new global::Google.Protobuf.Reflection.EnumValueOptions(); | |
| 1873 } | |
| 1874 Options.MergeFrom(other.Options); | |
| 1875 } | |
| 1876 } | |
| 1877 | |
| 1878 public void MergeFrom(pb::CodedInputStream input) { | |
| 1879 uint tag; | |
| 1880 while ((tag = input.ReadTag()) != 0) { | |
| 1881 switch(tag) { | |
| 1882 default: | |
| 1883 input.SkipLastField(); | |
| 1884 break; | |
| 1885 case 10: { | |
| 1886 Name = input.ReadString(); | |
| 1887 break; | |
| 1888 } | |
| 1889 case 16: { | |
| 1890 Number = input.ReadInt32(); | |
| 1891 break; | |
| 1892 } | |
| 1893 case 26: { | |
| 1894 if (options_ == null) { | |
| 1895 options_ = new global::Google.Protobuf.Reflection.EnumValueOptions
(); | |
| 1896 } | |
| 1897 input.ReadMessage(options_); | |
| 1898 break; | |
| 1899 } | |
| 1900 } | |
| 1901 } | |
| 1902 } | |
| 1903 | |
| 1904 } | |
| 1905 | |
| 1906 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 1907 internal sealed partial class ServiceDescriptorProto : pb::IMessage<ServiceDes
criptorProto> { | |
| 1908 private static readonly pb::MessageParser<ServiceDescriptorProto> _parser =
new pb::MessageParser<ServiceDescriptorProto>(() => new ServiceDescriptorProto()
); | |
| 1909 public static pb::MessageParser<ServiceDescriptorProto> Parser { get { retur
n _parser; } } | |
| 1910 | |
| 1911 public static pbr::MessageDescriptor Descriptor { | |
| 1912 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descri
ptor.MessageTypes[7]; } | |
| 1913 } | |
| 1914 | |
| 1915 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 1916 get { return Descriptor; } | |
| 1917 } | |
| 1918 | |
| 1919 public ServiceDescriptorProto() { | |
| 1920 OnConstruction(); | |
| 1921 } | |
| 1922 | |
| 1923 partial void OnConstruction(); | |
| 1924 | |
| 1925 public ServiceDescriptorProto(ServiceDescriptorProto other) : this() { | |
| 1926 name_ = other.name_; | |
| 1927 method_ = other.method_.Clone(); | |
| 1928 Options = other.options_ != null ? other.Options.Clone() : null; | |
| 1929 } | |
| 1930 | |
| 1931 public ServiceDescriptorProto Clone() { | |
| 1932 return new ServiceDescriptorProto(this); | |
| 1933 } | |
| 1934 | |
| 1935 public const int NameFieldNumber = 1; | |
| 1936 private string name_ = ""; | |
| 1937 internal string Name { | |
| 1938 get { return name_; } | |
| 1939 set { | |
| 1940 name_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 1941 } | |
| 1942 } | |
| 1943 | |
| 1944 public const int MethodFieldNumber = 2; | |
| 1945 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Me
thodDescriptorProto> _repeated_method_codec | |
| 1946 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.Metho
dDescriptorProto.Parser); | |
| 1947 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Metho
dDescriptorProto> method_ = new pbc::RepeatedField<global::Google.Protobuf.Refle
ction.MethodDescriptorProto>(); | |
| 1948 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescrip
torProto> Method { | |
| 1949 get { return method_; } | |
| 1950 } | |
| 1951 | |
| 1952 public const int OptionsFieldNumber = 3; | |
| 1953 private global::Google.Protobuf.Reflection.ServiceOptions options_; | |
| 1954 internal global::Google.Protobuf.Reflection.ServiceOptions Options { | |
| 1955 get { return options_; } | |
| 1956 set { | |
| 1957 options_ = value; | |
| 1958 } | |
| 1959 } | |
| 1960 | |
| 1961 public override bool Equals(object other) { | |
| 1962 return Equals(other as ServiceDescriptorProto); | |
| 1963 } | |
| 1964 | |
| 1965 public bool Equals(ServiceDescriptorProto other) { | |
| 1966 if (ReferenceEquals(other, null)) { | |
| 1967 return false; | |
| 1968 } | |
| 1969 if (ReferenceEquals(other, this)) { | |
| 1970 return true; | |
| 1971 } | |
| 1972 if (Name != other.Name) return false; | |
| 1973 if(!method_.Equals(other.method_)) return false; | |
| 1974 if (!object.Equals(Options, other.Options)) return false; | |
| 1975 return true; | |
| 1976 } | |
| 1977 | |
| 1978 public override int GetHashCode() { | |
| 1979 int hash = 1; | |
| 1980 if (Name.Length != 0) hash ^= Name.GetHashCode(); | |
| 1981 hash ^= method_.GetHashCode(); | |
| 1982 if (options_ != null) hash ^= Options.GetHashCode(); | |
| 1983 return hash; | |
| 1984 } | |
| 1985 | |
| 1986 public override string ToString() { | |
| 1987 return pb::JsonFormatter.Default.Format(this); | |
| 1988 } | |
| 1989 | |
| 1990 public void WriteTo(pb::CodedOutputStream output) { | |
| 1991 if (Name.Length != 0) { | |
| 1992 output.WriteRawTag(10); | |
| 1993 output.WriteString(Name); | |
| 1994 } | |
| 1995 method_.WriteTo(output, _repeated_method_codec); | |
| 1996 if (options_ != null) { | |
| 1997 output.WriteRawTag(26); | |
| 1998 output.WriteMessage(Options); | |
| 1999 } | |
| 2000 } | |
| 2001 | |
| 2002 public int CalculateSize() { | |
| 2003 int size = 0; | |
| 2004 if (Name.Length != 0) { | |
| 2005 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); | |
| 2006 } | |
| 2007 size += method_.CalculateSize(_repeated_method_codec); | |
| 2008 if (options_ != null) { | |
| 2009 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); | |
| 2010 } | |
| 2011 return size; | |
| 2012 } | |
| 2013 | |
| 2014 public void MergeFrom(ServiceDescriptorProto other) { | |
| 2015 if (other == null) { | |
| 2016 return; | |
| 2017 } | |
| 2018 if (other.Name.Length != 0) { | |
| 2019 Name = other.Name; | |
| 2020 } | |
| 2021 method_.Add(other.method_); | |
| 2022 if (other.options_ != null) { | |
| 2023 if (options_ == null) { | |
| 2024 options_ = new global::Google.Protobuf.Reflection.ServiceOptions(); | |
| 2025 } | |
| 2026 Options.MergeFrom(other.Options); | |
| 2027 } | |
| 2028 } | |
| 2029 | |
| 2030 public void MergeFrom(pb::CodedInputStream input) { | |
| 2031 uint tag; | |
| 2032 while ((tag = input.ReadTag()) != 0) { | |
| 2033 switch(tag) { | |
| 2034 default: | |
| 2035 input.SkipLastField(); | |
| 2036 break; | |
| 2037 case 10: { | |
| 2038 Name = input.ReadString(); | |
| 2039 break; | |
| 2040 } | |
| 2041 case 18: { | |
| 2042 method_.AddEntriesFrom(input, _repeated_method_codec); | |
| 2043 break; | |
| 2044 } | |
| 2045 case 26: { | |
| 2046 if (options_ == null) { | |
| 2047 options_ = new global::Google.Protobuf.Reflection.ServiceOptions()
; | |
| 2048 } | |
| 2049 input.ReadMessage(options_); | |
| 2050 break; | |
| 2051 } | |
| 2052 } | |
| 2053 } | |
| 2054 } | |
| 2055 | |
| 2056 } | |
| 2057 | |
| 2058 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 2059 internal sealed partial class MethodDescriptorProto : pb::IMessage<MethodDescr
iptorProto> { | |
| 2060 private static readonly pb::MessageParser<MethodDescriptorProto> _parser = n
ew pb::MessageParser<MethodDescriptorProto>(() => new MethodDescriptorProto()); | |
| 2061 public static pb::MessageParser<MethodDescriptorProto> Parser { get { return
_parser; } } | |
| 2062 | |
| 2063 public static pbr::MessageDescriptor Descriptor { | |
| 2064 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descri
ptor.MessageTypes[8]; } | |
| 2065 } | |
| 2066 | |
| 2067 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 2068 get { return Descriptor; } | |
| 2069 } | |
| 2070 | |
| 2071 public MethodDescriptorProto() { | |
| 2072 OnConstruction(); | |
| 2073 } | |
| 2074 | |
| 2075 partial void OnConstruction(); | |
| 2076 | |
| 2077 public MethodDescriptorProto(MethodDescriptorProto other) : this() { | |
| 2078 name_ = other.name_; | |
| 2079 inputType_ = other.inputType_; | |
| 2080 outputType_ = other.outputType_; | |
| 2081 Options = other.options_ != null ? other.Options.Clone() : null; | |
| 2082 clientStreaming_ = other.clientStreaming_; | |
| 2083 serverStreaming_ = other.serverStreaming_; | |
| 2084 } | |
| 2085 | |
| 2086 public MethodDescriptorProto Clone() { | |
| 2087 return new MethodDescriptorProto(this); | |
| 2088 } | |
| 2089 | |
| 2090 public const int NameFieldNumber = 1; | |
| 2091 private string name_ = ""; | |
| 2092 internal string Name { | |
| 2093 get { return name_; } | |
| 2094 set { | |
| 2095 name_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 2096 } | |
| 2097 } | |
| 2098 | |
| 2099 public const int InputTypeFieldNumber = 2; | |
| 2100 private string inputType_ = ""; | |
| 2101 internal string InputType { | |
| 2102 get { return inputType_; } | |
| 2103 set { | |
| 2104 inputType_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 2105 } | |
| 2106 } | |
| 2107 | |
| 2108 public const int OutputTypeFieldNumber = 3; | |
| 2109 private string outputType_ = ""; | |
| 2110 internal string OutputType { | |
| 2111 get { return outputType_; } | |
| 2112 set { | |
| 2113 outputType_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 2114 } | |
| 2115 } | |
| 2116 | |
| 2117 public const int OptionsFieldNumber = 4; | |
| 2118 private global::Google.Protobuf.Reflection.MethodOptions options_; | |
| 2119 internal global::Google.Protobuf.Reflection.MethodOptions Options { | |
| 2120 get { return options_; } | |
| 2121 set { | |
| 2122 options_ = value; | |
| 2123 } | |
| 2124 } | |
| 2125 | |
| 2126 public const int ClientStreamingFieldNumber = 5; | |
| 2127 private bool clientStreaming_; | |
| 2128 internal bool ClientStreaming { | |
| 2129 get { return clientStreaming_; } | |
| 2130 set { | |
| 2131 clientStreaming_ = value; | |
| 2132 } | |
| 2133 } | |
| 2134 | |
| 2135 public const int ServerStreamingFieldNumber = 6; | |
| 2136 private bool serverStreaming_; | |
| 2137 internal bool ServerStreaming { | |
| 2138 get { return serverStreaming_; } | |
| 2139 set { | |
| 2140 serverStreaming_ = value; | |
| 2141 } | |
| 2142 } | |
| 2143 | |
| 2144 public override bool Equals(object other) { | |
| 2145 return Equals(other as MethodDescriptorProto); | |
| 2146 } | |
| 2147 | |
| 2148 public bool Equals(MethodDescriptorProto other) { | |
| 2149 if (ReferenceEquals(other, null)) { | |
| 2150 return false; | |
| 2151 } | |
| 2152 if (ReferenceEquals(other, this)) { | |
| 2153 return true; | |
| 2154 } | |
| 2155 if (Name != other.Name) return false; | |
| 2156 if (InputType != other.InputType) return false; | |
| 2157 if (OutputType != other.OutputType) return false; | |
| 2158 if (!object.Equals(Options, other.Options)) return false; | |
| 2159 if (ClientStreaming != other.ClientStreaming) return false; | |
| 2160 if (ServerStreaming != other.ServerStreaming) return false; | |
| 2161 return true; | |
| 2162 } | |
| 2163 | |
| 2164 public override int GetHashCode() { | |
| 2165 int hash = 1; | |
| 2166 if (Name.Length != 0) hash ^= Name.GetHashCode(); | |
| 2167 if (InputType.Length != 0) hash ^= InputType.GetHashCode(); | |
| 2168 if (OutputType.Length != 0) hash ^= OutputType.GetHashCode(); | |
| 2169 if (options_ != null) hash ^= Options.GetHashCode(); | |
| 2170 if (ClientStreaming != false) hash ^= ClientStreaming.GetHashCode(); | |
| 2171 if (ServerStreaming != false) hash ^= ServerStreaming.GetHashCode(); | |
| 2172 return hash; | |
| 2173 } | |
| 2174 | |
| 2175 public override string ToString() { | |
| 2176 return pb::JsonFormatter.Default.Format(this); | |
| 2177 } | |
| 2178 | |
| 2179 public void WriteTo(pb::CodedOutputStream output) { | |
| 2180 if (Name.Length != 0) { | |
| 2181 output.WriteRawTag(10); | |
| 2182 output.WriteString(Name); | |
| 2183 } | |
| 2184 if (InputType.Length != 0) { | |
| 2185 output.WriteRawTag(18); | |
| 2186 output.WriteString(InputType); | |
| 2187 } | |
| 2188 if (OutputType.Length != 0) { | |
| 2189 output.WriteRawTag(26); | |
| 2190 output.WriteString(OutputType); | |
| 2191 } | |
| 2192 if (options_ != null) { | |
| 2193 output.WriteRawTag(34); | |
| 2194 output.WriteMessage(Options); | |
| 2195 } | |
| 2196 if (ClientStreaming != false) { | |
| 2197 output.WriteRawTag(40); | |
| 2198 output.WriteBool(ClientStreaming); | |
| 2199 } | |
| 2200 if (ServerStreaming != false) { | |
| 2201 output.WriteRawTag(48); | |
| 2202 output.WriteBool(ServerStreaming); | |
| 2203 } | |
| 2204 } | |
| 2205 | |
| 2206 public int CalculateSize() { | |
| 2207 int size = 0; | |
| 2208 if (Name.Length != 0) { | |
| 2209 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); | |
| 2210 } | |
| 2211 if (InputType.Length != 0) { | |
| 2212 size += 1 + pb::CodedOutputStream.ComputeStringSize(InputType); | |
| 2213 } | |
| 2214 if (OutputType.Length != 0) { | |
| 2215 size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputType); | |
| 2216 } | |
| 2217 if (options_ != null) { | |
| 2218 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); | |
| 2219 } | |
| 2220 if (ClientStreaming != false) { | |
| 2221 size += 1 + 1; | |
| 2222 } | |
| 2223 if (ServerStreaming != false) { | |
| 2224 size += 1 + 1; | |
| 2225 } | |
| 2226 return size; | |
| 2227 } | |
| 2228 | |
| 2229 public void MergeFrom(MethodDescriptorProto other) { | |
| 2230 if (other == null) { | |
| 2231 return; | |
| 2232 } | |
| 2233 if (other.Name.Length != 0) { | |
| 2234 Name = other.Name; | |
| 2235 } | |
| 2236 if (other.InputType.Length != 0) { | |
| 2237 InputType = other.InputType; | |
| 2238 } | |
| 2239 if (other.OutputType.Length != 0) { | |
| 2240 OutputType = other.OutputType; | |
| 2241 } | |
| 2242 if (other.options_ != null) { | |
| 2243 if (options_ == null) { | |
| 2244 options_ = new global::Google.Protobuf.Reflection.MethodOptions(); | |
| 2245 } | |
| 2246 Options.MergeFrom(other.Options); | |
| 2247 } | |
| 2248 if (other.ClientStreaming != false) { | |
| 2249 ClientStreaming = other.ClientStreaming; | |
| 2250 } | |
| 2251 if (other.ServerStreaming != false) { | |
| 2252 ServerStreaming = other.ServerStreaming; | |
| 2253 } | |
| 2254 } | |
| 2255 | |
| 2256 public void MergeFrom(pb::CodedInputStream input) { | |
| 2257 uint tag; | |
| 2258 while ((tag = input.ReadTag()) != 0) { | |
| 2259 switch(tag) { | |
| 2260 default: | |
| 2261 input.SkipLastField(); | |
| 2262 break; | |
| 2263 case 10: { | |
| 2264 Name = input.ReadString(); | |
| 2265 break; | |
| 2266 } | |
| 2267 case 18: { | |
| 2268 InputType = input.ReadString(); | |
| 2269 break; | |
| 2270 } | |
| 2271 case 26: { | |
| 2272 OutputType = input.ReadString(); | |
| 2273 break; | |
| 2274 } | |
| 2275 case 34: { | |
| 2276 if (options_ == null) { | |
| 2277 options_ = new global::Google.Protobuf.Reflection.MethodOptions(); | |
| 2278 } | |
| 2279 input.ReadMessage(options_); | |
| 2280 break; | |
| 2281 } | |
| 2282 case 40: { | |
| 2283 ClientStreaming = input.ReadBool(); | |
| 2284 break; | |
| 2285 } | |
| 2286 case 48: { | |
| 2287 ServerStreaming = input.ReadBool(); | |
| 2288 break; | |
| 2289 } | |
| 2290 } | |
| 2291 } | |
| 2292 } | |
| 2293 | |
| 2294 } | |
| 2295 | |
| 2296 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 2297 internal sealed partial class FileOptions : pb::IMessage<FileOptions> { | |
| 2298 private static readonly pb::MessageParser<FileOptions> _parser = new pb::Mes
sageParser<FileOptions>(() => new FileOptions()); | |
| 2299 public static pb::MessageParser<FileOptions> Parser { get { return _parser;
} } | |
| 2300 | |
| 2301 public static pbr::MessageDescriptor Descriptor { | |
| 2302 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descri
ptor.MessageTypes[9]; } | |
| 2303 } | |
| 2304 | |
| 2305 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 2306 get { return Descriptor; } | |
| 2307 } | |
| 2308 | |
| 2309 public FileOptions() { | |
| 2310 OnConstruction(); | |
| 2311 } | |
| 2312 | |
| 2313 partial void OnConstruction(); | |
| 2314 | |
| 2315 public FileOptions(FileOptions other) : this() { | |
| 2316 javaPackage_ = other.javaPackage_; | |
| 2317 javaOuterClassname_ = other.javaOuterClassname_; | |
| 2318 javaMultipleFiles_ = other.javaMultipleFiles_; | |
| 2319 javaGenerateEqualsAndHash_ = other.javaGenerateEqualsAndHash_; | |
| 2320 javaStringCheckUtf8_ = other.javaStringCheckUtf8_; | |
| 2321 optimizeFor_ = other.optimizeFor_; | |
| 2322 goPackage_ = other.goPackage_; | |
| 2323 ccGenericServices_ = other.ccGenericServices_; | |
| 2324 javaGenericServices_ = other.javaGenericServices_; | |
| 2325 pyGenericServices_ = other.pyGenericServices_; | |
| 2326 deprecated_ = other.deprecated_; | |
| 2327 ccEnableArenas_ = other.ccEnableArenas_; | |
| 2328 objcClassPrefix_ = other.objcClassPrefix_; | |
| 2329 csharpNamespace_ = other.csharpNamespace_; | |
| 2330 uninterpretedOption_ = other.uninterpretedOption_.Clone(); | |
| 2331 } | |
| 2332 | |
| 2333 public FileOptions Clone() { | |
| 2334 return new FileOptions(this); | |
| 2335 } | |
| 2336 | |
| 2337 public const int JavaPackageFieldNumber = 1; | |
| 2338 private string javaPackage_ = ""; | |
| 2339 internal string JavaPackage { | |
| 2340 get { return javaPackage_; } | |
| 2341 set { | |
| 2342 javaPackage_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 2343 } | |
| 2344 } | |
| 2345 | |
| 2346 public const int JavaOuterClassnameFieldNumber = 8; | |
| 2347 private string javaOuterClassname_ = ""; | |
| 2348 internal string JavaOuterClassname { | |
| 2349 get { return javaOuterClassname_; } | |
| 2350 set { | |
| 2351 javaOuterClassname_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 2352 } | |
| 2353 } | |
| 2354 | |
| 2355 public const int JavaMultipleFilesFieldNumber = 10; | |
| 2356 private bool javaMultipleFiles_; | |
| 2357 internal bool JavaMultipleFiles { | |
| 2358 get { return javaMultipleFiles_; } | |
| 2359 set { | |
| 2360 javaMultipleFiles_ = value; | |
| 2361 } | |
| 2362 } | |
| 2363 | |
| 2364 public const int JavaGenerateEqualsAndHashFieldNumber = 20; | |
| 2365 private bool javaGenerateEqualsAndHash_; | |
| 2366 internal bool JavaGenerateEqualsAndHash { | |
| 2367 get { return javaGenerateEqualsAndHash_; } | |
| 2368 set { | |
| 2369 javaGenerateEqualsAndHash_ = value; | |
| 2370 } | |
| 2371 } | |
| 2372 | |
| 2373 public const int JavaStringCheckUtf8FieldNumber = 27; | |
| 2374 private bool javaStringCheckUtf8_; | |
| 2375 internal bool JavaStringCheckUtf8 { | |
| 2376 get { return javaStringCheckUtf8_; } | |
| 2377 set { | |
| 2378 javaStringCheckUtf8_ = value; | |
| 2379 } | |
| 2380 } | |
| 2381 | |
| 2382 public const int OptimizeForFieldNumber = 9; | |
| 2383 private global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode op
timizeFor_ = global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode.S
PEED; | |
| 2384 internal global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode O
ptimizeFor { | |
| 2385 get { return optimizeFor_; } | |
| 2386 set { | |
| 2387 optimizeFor_ = value; | |
| 2388 } | |
| 2389 } | |
| 2390 | |
| 2391 public const int GoPackageFieldNumber = 11; | |
| 2392 private string goPackage_ = ""; | |
| 2393 internal string GoPackage { | |
| 2394 get { return goPackage_; } | |
| 2395 set { | |
| 2396 goPackage_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 2397 } | |
| 2398 } | |
| 2399 | |
| 2400 public const int CcGenericServicesFieldNumber = 16; | |
| 2401 private bool ccGenericServices_; | |
| 2402 internal bool CcGenericServices { | |
| 2403 get { return ccGenericServices_; } | |
| 2404 set { | |
| 2405 ccGenericServices_ = value; | |
| 2406 } | |
| 2407 } | |
| 2408 | |
| 2409 public const int JavaGenericServicesFieldNumber = 17; | |
| 2410 private bool javaGenericServices_; | |
| 2411 internal bool JavaGenericServices { | |
| 2412 get { return javaGenericServices_; } | |
| 2413 set { | |
| 2414 javaGenericServices_ = value; | |
| 2415 } | |
| 2416 } | |
| 2417 | |
| 2418 public const int PyGenericServicesFieldNumber = 18; | |
| 2419 private bool pyGenericServices_; | |
| 2420 internal bool PyGenericServices { | |
| 2421 get { return pyGenericServices_; } | |
| 2422 set { | |
| 2423 pyGenericServices_ = value; | |
| 2424 } | |
| 2425 } | |
| 2426 | |
| 2427 public const int DeprecatedFieldNumber = 23; | |
| 2428 private bool deprecated_; | |
| 2429 internal bool Deprecated { | |
| 2430 get { return deprecated_; } | |
| 2431 set { | |
| 2432 deprecated_ = value; | |
| 2433 } | |
| 2434 } | |
| 2435 | |
| 2436 public const int CcEnableArenasFieldNumber = 31; | |
| 2437 private bool ccEnableArenas_; | |
| 2438 internal bool CcEnableArenas { | |
| 2439 get { return ccEnableArenas_; } | |
| 2440 set { | |
| 2441 ccEnableArenas_ = value; | |
| 2442 } | |
| 2443 } | |
| 2444 | |
| 2445 public const int ObjcClassPrefixFieldNumber = 36; | |
| 2446 private string objcClassPrefix_ = ""; | |
| 2447 internal string ObjcClassPrefix { | |
| 2448 get { return objcClassPrefix_; } | |
| 2449 set { | |
| 2450 objcClassPrefix_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 2451 } | |
| 2452 } | |
| 2453 | |
| 2454 public const int CsharpNamespaceFieldNumber = 37; | |
| 2455 private string csharpNamespace_ = ""; | |
| 2456 internal string CsharpNamespace { | |
| 2457 get { return csharpNamespace_; } | |
| 2458 set { | |
| 2459 csharpNamespace_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 2460 } | |
| 2461 } | |
| 2462 | |
| 2463 public const int UninterpretedOptionFieldNumber = 999; | |
| 2464 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un
interpretedOption> _repeated_uninterpretedOption_codec | |
| 2465 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni
nterpretedOption.Parser); | |
| 2466 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint
erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro
tobuf.Reflection.UninterpretedOption>(); | |
| 2467 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.Uninterpreted
Option> UninterpretedOption { | |
| 2468 get { return uninterpretedOption_; } | |
| 2469 } | |
| 2470 | |
| 2471 public override bool Equals(object other) { | |
| 2472 return Equals(other as FileOptions); | |
| 2473 } | |
| 2474 | |
| 2475 public bool Equals(FileOptions other) { | |
| 2476 if (ReferenceEquals(other, null)) { | |
| 2477 return false; | |
| 2478 } | |
| 2479 if (ReferenceEquals(other, this)) { | |
| 2480 return true; | |
| 2481 } | |
| 2482 if (JavaPackage != other.JavaPackage) return false; | |
| 2483 if (JavaOuterClassname != other.JavaOuterClassname) return false; | |
| 2484 if (JavaMultipleFiles != other.JavaMultipleFiles) return false; | |
| 2485 if (JavaGenerateEqualsAndHash != other.JavaGenerateEqualsAndHash) return f
alse; | |
| 2486 if (JavaStringCheckUtf8 != other.JavaStringCheckUtf8) return false; | |
| 2487 if (OptimizeFor != other.OptimizeFor) return false; | |
| 2488 if (GoPackage != other.GoPackage) return false; | |
| 2489 if (CcGenericServices != other.CcGenericServices) return false; | |
| 2490 if (JavaGenericServices != other.JavaGenericServices) return false; | |
| 2491 if (PyGenericServices != other.PyGenericServices) return false; | |
| 2492 if (Deprecated != other.Deprecated) return false; | |
| 2493 if (CcEnableArenas != other.CcEnableArenas) return false; | |
| 2494 if (ObjcClassPrefix != other.ObjcClassPrefix) return false; | |
| 2495 if (CsharpNamespace != other.CsharpNamespace) return false; | |
| 2496 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; | |
| 2497 return true; | |
| 2498 } | |
| 2499 | |
| 2500 public override int GetHashCode() { | |
| 2501 int hash = 1; | |
| 2502 if (JavaPackage.Length != 0) hash ^= JavaPackage.GetHashCode(); | |
| 2503 if (JavaOuterClassname.Length != 0) hash ^= JavaOuterClassname.GetHashCode
(); | |
| 2504 if (JavaMultipleFiles != false) hash ^= JavaMultipleFiles.GetHashCode(); | |
| 2505 if (JavaGenerateEqualsAndHash != false) hash ^= JavaGenerateEqualsAndHash.
GetHashCode(); | |
| 2506 if (JavaStringCheckUtf8 != false) hash ^= JavaStringCheckUtf8.GetHashCode(
); | |
| 2507 if (OptimizeFor != global::Google.Protobuf.Reflection.FileOptions.Types.Op
timizeMode.SPEED) hash ^= OptimizeFor.GetHashCode(); | |
| 2508 if (GoPackage.Length != 0) hash ^= GoPackage.GetHashCode(); | |
| 2509 if (CcGenericServices != false) hash ^= CcGenericServices.GetHashCode(); | |
| 2510 if (JavaGenericServices != false) hash ^= JavaGenericServices.GetHashCode(
); | |
| 2511 if (PyGenericServices != false) hash ^= PyGenericServices.GetHashCode(); | |
| 2512 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); | |
| 2513 if (CcEnableArenas != false) hash ^= CcEnableArenas.GetHashCode(); | |
| 2514 if (ObjcClassPrefix.Length != 0) hash ^= ObjcClassPrefix.GetHashCode(); | |
| 2515 if (CsharpNamespace.Length != 0) hash ^= CsharpNamespace.GetHashCode(); | |
| 2516 hash ^= uninterpretedOption_.GetHashCode(); | |
| 2517 return hash; | |
| 2518 } | |
| 2519 | |
| 2520 public override string ToString() { | |
| 2521 return pb::JsonFormatter.Default.Format(this); | |
| 2522 } | |
| 2523 | |
| 2524 public void WriteTo(pb::CodedOutputStream output) { | |
| 2525 if (JavaPackage.Length != 0) { | |
| 2526 output.WriteRawTag(10); | |
| 2527 output.WriteString(JavaPackage); | |
| 2528 } | |
| 2529 if (JavaOuterClassname.Length != 0) { | |
| 2530 output.WriteRawTag(66); | |
| 2531 output.WriteString(JavaOuterClassname); | |
| 2532 } | |
| 2533 if (OptimizeFor != global::Google.Protobuf.Reflection.FileOptions.Types.Op
timizeMode.SPEED) { | |
| 2534 output.WriteRawTag(72); | |
| 2535 output.WriteEnum((int) OptimizeFor); | |
| 2536 } | |
| 2537 if (JavaMultipleFiles != false) { | |
| 2538 output.WriteRawTag(80); | |
| 2539 output.WriteBool(JavaMultipleFiles); | |
| 2540 } | |
| 2541 if (GoPackage.Length != 0) { | |
| 2542 output.WriteRawTag(90); | |
| 2543 output.WriteString(GoPackage); | |
| 2544 } | |
| 2545 if (CcGenericServices != false) { | |
| 2546 output.WriteRawTag(128, 1); | |
| 2547 output.WriteBool(CcGenericServices); | |
| 2548 } | |
| 2549 if (JavaGenericServices != false) { | |
| 2550 output.WriteRawTag(136, 1); | |
| 2551 output.WriteBool(JavaGenericServices); | |
| 2552 } | |
| 2553 if (PyGenericServices != false) { | |
| 2554 output.WriteRawTag(144, 1); | |
| 2555 output.WriteBool(PyGenericServices); | |
| 2556 } | |
| 2557 if (JavaGenerateEqualsAndHash != false) { | |
| 2558 output.WriteRawTag(160, 1); | |
| 2559 output.WriteBool(JavaGenerateEqualsAndHash); | |
| 2560 } | |
| 2561 if (Deprecated != false) { | |
| 2562 output.WriteRawTag(184, 1); | |
| 2563 output.WriteBool(Deprecated); | |
| 2564 } | |
| 2565 if (JavaStringCheckUtf8 != false) { | |
| 2566 output.WriteRawTag(216, 1); | |
| 2567 output.WriteBool(JavaStringCheckUtf8); | |
| 2568 } | |
| 2569 if (CcEnableArenas != false) { | |
| 2570 output.WriteRawTag(248, 1); | |
| 2571 output.WriteBool(CcEnableArenas); | |
| 2572 } | |
| 2573 if (ObjcClassPrefix.Length != 0) { | |
| 2574 output.WriteRawTag(162, 2); | |
| 2575 output.WriteString(ObjcClassPrefix); | |
| 2576 } | |
| 2577 if (CsharpNamespace.Length != 0) { | |
| 2578 output.WriteRawTag(170, 2); | |
| 2579 output.WriteString(CsharpNamespace); | |
| 2580 } | |
| 2581 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); | |
| 2582 } | |
| 2583 | |
| 2584 public int CalculateSize() { | |
| 2585 int size = 0; | |
| 2586 if (JavaPackage.Length != 0) { | |
| 2587 size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaPackage); | |
| 2588 } | |
| 2589 if (JavaOuterClassname.Length != 0) { | |
| 2590 size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaOuterClassname); | |
| 2591 } | |
| 2592 if (JavaMultipleFiles != false) { | |
| 2593 size += 1 + 1; | |
| 2594 } | |
| 2595 if (JavaGenerateEqualsAndHash != false) { | |
| 2596 size += 2 + 1; | |
| 2597 } | |
| 2598 if (JavaStringCheckUtf8 != false) { | |
| 2599 size += 2 + 1; | |
| 2600 } | |
| 2601 if (OptimizeFor != global::Google.Protobuf.Reflection.FileOptions.Types.Op
timizeMode.SPEED) { | |
| 2602 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OptimizeFor); | |
| 2603 } | |
| 2604 if (GoPackage.Length != 0) { | |
| 2605 size += 1 + pb::CodedOutputStream.ComputeStringSize(GoPackage); | |
| 2606 } | |
| 2607 if (CcGenericServices != false) { | |
| 2608 size += 2 + 1; | |
| 2609 } | |
| 2610 if (JavaGenericServices != false) { | |
| 2611 size += 2 + 1; | |
| 2612 } | |
| 2613 if (PyGenericServices != false) { | |
| 2614 size += 2 + 1; | |
| 2615 } | |
| 2616 if (Deprecated != false) { | |
| 2617 size += 2 + 1; | |
| 2618 } | |
| 2619 if (CcEnableArenas != false) { | |
| 2620 size += 2 + 1; | |
| 2621 } | |
| 2622 if (ObjcClassPrefix.Length != 0) { | |
| 2623 size += 2 + pb::CodedOutputStream.ComputeStringSize(ObjcClassPrefix); | |
| 2624 } | |
| 2625 if (CsharpNamespace.Length != 0) { | |
| 2626 size += 2 + pb::CodedOutputStream.ComputeStringSize(CsharpNamespace); | |
| 2627 } | |
| 2628 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c
odec); | |
| 2629 return size; | |
| 2630 } | |
| 2631 | |
| 2632 public void MergeFrom(FileOptions other) { | |
| 2633 if (other == null) { | |
| 2634 return; | |
| 2635 } | |
| 2636 if (other.JavaPackage.Length != 0) { | |
| 2637 JavaPackage = other.JavaPackage; | |
| 2638 } | |
| 2639 if (other.JavaOuterClassname.Length != 0) { | |
| 2640 JavaOuterClassname = other.JavaOuterClassname; | |
| 2641 } | |
| 2642 if (other.JavaMultipleFiles != false) { | |
| 2643 JavaMultipleFiles = other.JavaMultipleFiles; | |
| 2644 } | |
| 2645 if (other.JavaGenerateEqualsAndHash != false) { | |
| 2646 JavaGenerateEqualsAndHash = other.JavaGenerateEqualsAndHash; | |
| 2647 } | |
| 2648 if (other.JavaStringCheckUtf8 != false) { | |
| 2649 JavaStringCheckUtf8 = other.JavaStringCheckUtf8; | |
| 2650 } | |
| 2651 if (other.OptimizeFor != global::Google.Protobuf.Reflection.FileOptions.Ty
pes.OptimizeMode.SPEED) { | |
| 2652 OptimizeFor = other.OptimizeFor; | |
| 2653 } | |
| 2654 if (other.GoPackage.Length != 0) { | |
| 2655 GoPackage = other.GoPackage; | |
| 2656 } | |
| 2657 if (other.CcGenericServices != false) { | |
| 2658 CcGenericServices = other.CcGenericServices; | |
| 2659 } | |
| 2660 if (other.JavaGenericServices != false) { | |
| 2661 JavaGenericServices = other.JavaGenericServices; | |
| 2662 } | |
| 2663 if (other.PyGenericServices != false) { | |
| 2664 PyGenericServices = other.PyGenericServices; | |
| 2665 } | |
| 2666 if (other.Deprecated != false) { | |
| 2667 Deprecated = other.Deprecated; | |
| 2668 } | |
| 2669 if (other.CcEnableArenas != false) { | |
| 2670 CcEnableArenas = other.CcEnableArenas; | |
| 2671 } | |
| 2672 if (other.ObjcClassPrefix.Length != 0) { | |
| 2673 ObjcClassPrefix = other.ObjcClassPrefix; | |
| 2674 } | |
| 2675 if (other.CsharpNamespace.Length != 0) { | |
| 2676 CsharpNamespace = other.CsharpNamespace; | |
| 2677 } | |
| 2678 uninterpretedOption_.Add(other.uninterpretedOption_); | |
| 2679 } | |
| 2680 | |
| 2681 public void MergeFrom(pb::CodedInputStream input) { | |
| 2682 uint tag; | |
| 2683 while ((tag = input.ReadTag()) != 0) { | |
| 2684 switch(tag) { | |
| 2685 default: | |
| 2686 input.SkipLastField(); | |
| 2687 break; | |
| 2688 case 10: { | |
| 2689 JavaPackage = input.ReadString(); | |
| 2690 break; | |
| 2691 } | |
| 2692 case 66: { | |
| 2693 JavaOuterClassname = input.ReadString(); | |
| 2694 break; | |
| 2695 } | |
| 2696 case 72: { | |
| 2697 optimizeFor_ = (global::Google.Protobuf.Reflection.FileOptions.Types
.OptimizeMode) input.ReadEnum(); | |
| 2698 break; | |
| 2699 } | |
| 2700 case 80: { | |
| 2701 JavaMultipleFiles = input.ReadBool(); | |
| 2702 break; | |
| 2703 } | |
| 2704 case 90: { | |
| 2705 GoPackage = input.ReadString(); | |
| 2706 break; | |
| 2707 } | |
| 2708 case 128: { | |
| 2709 CcGenericServices = input.ReadBool(); | |
| 2710 break; | |
| 2711 } | |
| 2712 case 136: { | |
| 2713 JavaGenericServices = input.ReadBool(); | |
| 2714 break; | |
| 2715 } | |
| 2716 case 144: { | |
| 2717 PyGenericServices = input.ReadBool(); | |
| 2718 break; | |
| 2719 } | |
| 2720 case 160: { | |
| 2721 JavaGenerateEqualsAndHash = input.ReadBool(); | |
| 2722 break; | |
| 2723 } | |
| 2724 case 184: { | |
| 2725 Deprecated = input.ReadBool(); | |
| 2726 break; | |
| 2727 } | |
| 2728 case 216: { | |
| 2729 JavaStringCheckUtf8 = input.ReadBool(); | |
| 2730 break; | |
| 2731 } | |
| 2732 case 248: { | |
| 2733 CcEnableArenas = input.ReadBool(); | |
| 2734 break; | |
| 2735 } | |
| 2736 case 290: { | |
| 2737 ObjcClassPrefix = input.ReadString(); | |
| 2738 break; | |
| 2739 } | |
| 2740 case 298: { | |
| 2741 CsharpNamespace = input.ReadString(); | |
| 2742 break; | |
| 2743 } | |
| 2744 case 7994: { | |
| 2745 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp
tion_codec); | |
| 2746 break; | |
| 2747 } | |
| 2748 } | |
| 2749 } | |
| 2750 } | |
| 2751 | |
| 2752 #region Nested types | |
| 2753 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 2754 public static partial class Types { | |
| 2755 internal enum OptimizeMode { | |
| 2756 SPEED = 1, | |
| 2757 CODE_SIZE = 2, | |
| 2758 LITE_RUNTIME = 3, | |
| 2759 } | |
| 2760 | |
| 2761 } | |
| 2762 #endregion | |
| 2763 | |
| 2764 } | |
| 2765 | |
| 2766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 2767 internal sealed partial class MessageOptions : pb::IMessage<MessageOptions> { | |
| 2768 private static readonly pb::MessageParser<MessageOptions> _parser = new pb::
MessageParser<MessageOptions>(() => new MessageOptions()); | |
| 2769 public static pb::MessageParser<MessageOptions> Parser { get { return _parse
r; } } | |
| 2770 | |
| 2771 public static pbr::MessageDescriptor Descriptor { | |
| 2772 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descri
ptor.MessageTypes[10]; } | |
| 2773 } | |
| 2774 | |
| 2775 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 2776 get { return Descriptor; } | |
| 2777 } | |
| 2778 | |
| 2779 public MessageOptions() { | |
| 2780 OnConstruction(); | |
| 2781 } | |
| 2782 | |
| 2783 partial void OnConstruction(); | |
| 2784 | |
| 2785 public MessageOptions(MessageOptions other) : this() { | |
| 2786 messageSetWireFormat_ = other.messageSetWireFormat_; | |
| 2787 noStandardDescriptorAccessor_ = other.noStandardDescriptorAccessor_; | |
| 2788 deprecated_ = other.deprecated_; | |
| 2789 mapEntry_ = other.mapEntry_; | |
| 2790 uninterpretedOption_ = other.uninterpretedOption_.Clone(); | |
| 2791 } | |
| 2792 | |
| 2793 public MessageOptions Clone() { | |
| 2794 return new MessageOptions(this); | |
| 2795 } | |
| 2796 | |
| 2797 public const int MessageSetWireFormatFieldNumber = 1; | |
| 2798 private bool messageSetWireFormat_; | |
| 2799 internal bool MessageSetWireFormat { | |
| 2800 get { return messageSetWireFormat_; } | |
| 2801 set { | |
| 2802 messageSetWireFormat_ = value; | |
| 2803 } | |
| 2804 } | |
| 2805 | |
| 2806 public const int NoStandardDescriptorAccessorFieldNumber = 2; | |
| 2807 private bool noStandardDescriptorAccessor_; | |
| 2808 internal bool NoStandardDescriptorAccessor { | |
| 2809 get { return noStandardDescriptorAccessor_; } | |
| 2810 set { | |
| 2811 noStandardDescriptorAccessor_ = value; | |
| 2812 } | |
| 2813 } | |
| 2814 | |
| 2815 public const int DeprecatedFieldNumber = 3; | |
| 2816 private bool deprecated_; | |
| 2817 internal bool Deprecated { | |
| 2818 get { return deprecated_; } | |
| 2819 set { | |
| 2820 deprecated_ = value; | |
| 2821 } | |
| 2822 } | |
| 2823 | |
| 2824 public const int MapEntryFieldNumber = 7; | |
| 2825 private bool mapEntry_; | |
| 2826 internal bool MapEntry { | |
| 2827 get { return mapEntry_; } | |
| 2828 set { | |
| 2829 mapEntry_ = value; | |
| 2830 } | |
| 2831 } | |
| 2832 | |
| 2833 public const int UninterpretedOptionFieldNumber = 999; | |
| 2834 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un
interpretedOption> _repeated_uninterpretedOption_codec | |
| 2835 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni
nterpretedOption.Parser); | |
| 2836 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint
erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro
tobuf.Reflection.UninterpretedOption>(); | |
| 2837 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.Uninterpreted
Option> UninterpretedOption { | |
| 2838 get { return uninterpretedOption_; } | |
| 2839 } | |
| 2840 | |
| 2841 public override bool Equals(object other) { | |
| 2842 return Equals(other as MessageOptions); | |
| 2843 } | |
| 2844 | |
| 2845 public bool Equals(MessageOptions other) { | |
| 2846 if (ReferenceEquals(other, null)) { | |
| 2847 return false; | |
| 2848 } | |
| 2849 if (ReferenceEquals(other, this)) { | |
| 2850 return true; | |
| 2851 } | |
| 2852 if (MessageSetWireFormat != other.MessageSetWireFormat) return false; | |
| 2853 if (NoStandardDescriptorAccessor != other.NoStandardDescriptorAccessor) re
turn false; | |
| 2854 if (Deprecated != other.Deprecated) return false; | |
| 2855 if (MapEntry != other.MapEntry) return false; | |
| 2856 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; | |
| 2857 return true; | |
| 2858 } | |
| 2859 | |
| 2860 public override int GetHashCode() { | |
| 2861 int hash = 1; | |
| 2862 if (MessageSetWireFormat != false) hash ^= MessageSetWireFormat.GetHashCod
e(); | |
| 2863 if (NoStandardDescriptorAccessor != false) hash ^= NoStandardDescriptorAcc
essor.GetHashCode(); | |
| 2864 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); | |
| 2865 if (MapEntry != false) hash ^= MapEntry.GetHashCode(); | |
| 2866 hash ^= uninterpretedOption_.GetHashCode(); | |
| 2867 return hash; | |
| 2868 } | |
| 2869 | |
| 2870 public override string ToString() { | |
| 2871 return pb::JsonFormatter.Default.Format(this); | |
| 2872 } | |
| 2873 | |
| 2874 public void WriteTo(pb::CodedOutputStream output) { | |
| 2875 if (MessageSetWireFormat != false) { | |
| 2876 output.WriteRawTag(8); | |
| 2877 output.WriteBool(MessageSetWireFormat); | |
| 2878 } | |
| 2879 if (NoStandardDescriptorAccessor != false) { | |
| 2880 output.WriteRawTag(16); | |
| 2881 output.WriteBool(NoStandardDescriptorAccessor); | |
| 2882 } | |
| 2883 if (Deprecated != false) { | |
| 2884 output.WriteRawTag(24); | |
| 2885 output.WriteBool(Deprecated); | |
| 2886 } | |
| 2887 if (MapEntry != false) { | |
| 2888 output.WriteRawTag(56); | |
| 2889 output.WriteBool(MapEntry); | |
| 2890 } | |
| 2891 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); | |
| 2892 } | |
| 2893 | |
| 2894 public int CalculateSize() { | |
| 2895 int size = 0; | |
| 2896 if (MessageSetWireFormat != false) { | |
| 2897 size += 1 + 1; | |
| 2898 } | |
| 2899 if (NoStandardDescriptorAccessor != false) { | |
| 2900 size += 1 + 1; | |
| 2901 } | |
| 2902 if (Deprecated != false) { | |
| 2903 size += 1 + 1; | |
| 2904 } | |
| 2905 if (MapEntry != false) { | |
| 2906 size += 1 + 1; | |
| 2907 } | |
| 2908 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c
odec); | |
| 2909 return size; | |
| 2910 } | |
| 2911 | |
| 2912 public void MergeFrom(MessageOptions other) { | |
| 2913 if (other == null) { | |
| 2914 return; | |
| 2915 } | |
| 2916 if (other.MessageSetWireFormat != false) { | |
| 2917 MessageSetWireFormat = other.MessageSetWireFormat; | |
| 2918 } | |
| 2919 if (other.NoStandardDescriptorAccessor != false) { | |
| 2920 NoStandardDescriptorAccessor = other.NoStandardDescriptorAccessor; | |
| 2921 } | |
| 2922 if (other.Deprecated != false) { | |
| 2923 Deprecated = other.Deprecated; | |
| 2924 } | |
| 2925 if (other.MapEntry != false) { | |
| 2926 MapEntry = other.MapEntry; | |
| 2927 } | |
| 2928 uninterpretedOption_.Add(other.uninterpretedOption_); | |
| 2929 } | |
| 2930 | |
| 2931 public void MergeFrom(pb::CodedInputStream input) { | |
| 2932 uint tag; | |
| 2933 while ((tag = input.ReadTag()) != 0) { | |
| 2934 switch(tag) { | |
| 2935 default: | |
| 2936 input.SkipLastField(); | |
| 2937 break; | |
| 2938 case 8: { | |
| 2939 MessageSetWireFormat = input.ReadBool(); | |
| 2940 break; | |
| 2941 } | |
| 2942 case 16: { | |
| 2943 NoStandardDescriptorAccessor = input.ReadBool(); | |
| 2944 break; | |
| 2945 } | |
| 2946 case 24: { | |
| 2947 Deprecated = input.ReadBool(); | |
| 2948 break; | |
| 2949 } | |
| 2950 case 56: { | |
| 2951 MapEntry = input.ReadBool(); | |
| 2952 break; | |
| 2953 } | |
| 2954 case 7994: { | |
| 2955 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp
tion_codec); | |
| 2956 break; | |
| 2957 } | |
| 2958 } | |
| 2959 } | |
| 2960 } | |
| 2961 | |
| 2962 } | |
| 2963 | |
| 2964 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 2965 internal sealed partial class FieldOptions : pb::IMessage<FieldOptions> { | |
| 2966 private static readonly pb::MessageParser<FieldOptions> _parser = new pb::Me
ssageParser<FieldOptions>(() => new FieldOptions()); | |
| 2967 public static pb::MessageParser<FieldOptions> Parser { get { return _parser;
} } | |
| 2968 | |
| 2969 public static pbr::MessageDescriptor Descriptor { | |
| 2970 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descri
ptor.MessageTypes[11]; } | |
| 2971 } | |
| 2972 | |
| 2973 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 2974 get { return Descriptor; } | |
| 2975 } | |
| 2976 | |
| 2977 public FieldOptions() { | |
| 2978 OnConstruction(); | |
| 2979 } | |
| 2980 | |
| 2981 partial void OnConstruction(); | |
| 2982 | |
| 2983 public FieldOptions(FieldOptions other) : this() { | |
| 2984 ctype_ = other.ctype_; | |
| 2985 packed_ = other.packed_; | |
| 2986 jstype_ = other.jstype_; | |
| 2987 lazy_ = other.lazy_; | |
| 2988 deprecated_ = other.deprecated_; | |
| 2989 weak_ = other.weak_; | |
| 2990 uninterpretedOption_ = other.uninterpretedOption_.Clone(); | |
| 2991 } | |
| 2992 | |
| 2993 public FieldOptions Clone() { | |
| 2994 return new FieldOptions(this); | |
| 2995 } | |
| 2996 | |
| 2997 public const int CtypeFieldNumber = 1; | |
| 2998 private global::Google.Protobuf.Reflection.FieldOptions.Types.CType ctype_ =
global::Google.Protobuf.Reflection.FieldOptions.Types.CType.STRING; | |
| 2999 internal global::Google.Protobuf.Reflection.FieldOptions.Types.CType Ctype { | |
| 3000 get { return ctype_; } | |
| 3001 set { | |
| 3002 ctype_ = value; | |
| 3003 } | |
| 3004 } | |
| 3005 | |
| 3006 public const int PackedFieldNumber = 2; | |
| 3007 private bool packed_; | |
| 3008 internal bool Packed { | |
| 3009 get { return packed_; } | |
| 3010 set { | |
| 3011 packed_ = value; | |
| 3012 } | |
| 3013 } | |
| 3014 | |
| 3015 public const int JstypeFieldNumber = 6; | |
| 3016 private global::Google.Protobuf.Reflection.FieldOptions.Types.JSType jstype_
= global::Google.Protobuf.Reflection.FieldOptions.Types.JSType.JS_NORMAL; | |
| 3017 internal global::Google.Protobuf.Reflection.FieldOptions.Types.JSType Jstype
{ | |
| 3018 get { return jstype_; } | |
| 3019 set { | |
| 3020 jstype_ = value; | |
| 3021 } | |
| 3022 } | |
| 3023 | |
| 3024 public const int LazyFieldNumber = 5; | |
| 3025 private bool lazy_; | |
| 3026 internal bool Lazy { | |
| 3027 get { return lazy_; } | |
| 3028 set { | |
| 3029 lazy_ = value; | |
| 3030 } | |
| 3031 } | |
| 3032 | |
| 3033 public const int DeprecatedFieldNumber = 3; | |
| 3034 private bool deprecated_; | |
| 3035 internal bool Deprecated { | |
| 3036 get { return deprecated_; } | |
| 3037 set { | |
| 3038 deprecated_ = value; | |
| 3039 } | |
| 3040 } | |
| 3041 | |
| 3042 public const int WeakFieldNumber = 10; | |
| 3043 private bool weak_; | |
| 3044 internal bool Weak { | |
| 3045 get { return weak_; } | |
| 3046 set { | |
| 3047 weak_ = value; | |
| 3048 } | |
| 3049 } | |
| 3050 | |
| 3051 public const int UninterpretedOptionFieldNumber = 999; | |
| 3052 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un
interpretedOption> _repeated_uninterpretedOption_codec | |
| 3053 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni
nterpretedOption.Parser); | |
| 3054 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint
erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro
tobuf.Reflection.UninterpretedOption>(); | |
| 3055 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.Uninterpreted
Option> UninterpretedOption { | |
| 3056 get { return uninterpretedOption_; } | |
| 3057 } | |
| 3058 | |
| 3059 public override bool Equals(object other) { | |
| 3060 return Equals(other as FieldOptions); | |
| 3061 } | |
| 3062 | |
| 3063 public bool Equals(FieldOptions other) { | |
| 3064 if (ReferenceEquals(other, null)) { | |
| 3065 return false; | |
| 3066 } | |
| 3067 if (ReferenceEquals(other, this)) { | |
| 3068 return true; | |
| 3069 } | |
| 3070 if (Ctype != other.Ctype) return false; | |
| 3071 if (Packed != other.Packed) return false; | |
| 3072 if (Jstype != other.Jstype) return false; | |
| 3073 if (Lazy != other.Lazy) return false; | |
| 3074 if (Deprecated != other.Deprecated) return false; | |
| 3075 if (Weak != other.Weak) return false; | |
| 3076 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; | |
| 3077 return true; | |
| 3078 } | |
| 3079 | |
| 3080 public override int GetHashCode() { | |
| 3081 int hash = 1; | |
| 3082 if (Ctype != global::Google.Protobuf.Reflection.FieldOptions.Types.CType.S
TRING) hash ^= Ctype.GetHashCode(); | |
| 3083 if (Packed != false) hash ^= Packed.GetHashCode(); | |
| 3084 if (Jstype != global::Google.Protobuf.Reflection.FieldOptions.Types.JSType
.JS_NORMAL) hash ^= Jstype.GetHashCode(); | |
| 3085 if (Lazy != false) hash ^= Lazy.GetHashCode(); | |
| 3086 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); | |
| 3087 if (Weak != false) hash ^= Weak.GetHashCode(); | |
| 3088 hash ^= uninterpretedOption_.GetHashCode(); | |
| 3089 return hash; | |
| 3090 } | |
| 3091 | |
| 3092 public override string ToString() { | |
| 3093 return pb::JsonFormatter.Default.Format(this); | |
| 3094 } | |
| 3095 | |
| 3096 public void WriteTo(pb::CodedOutputStream output) { | |
| 3097 if (Ctype != global::Google.Protobuf.Reflection.FieldOptions.Types.CType.S
TRING) { | |
| 3098 output.WriteRawTag(8); | |
| 3099 output.WriteEnum((int) Ctype); | |
| 3100 } | |
| 3101 if (Packed != false) { | |
| 3102 output.WriteRawTag(16); | |
| 3103 output.WriteBool(Packed); | |
| 3104 } | |
| 3105 if (Deprecated != false) { | |
| 3106 output.WriteRawTag(24); | |
| 3107 output.WriteBool(Deprecated); | |
| 3108 } | |
| 3109 if (Lazy != false) { | |
| 3110 output.WriteRawTag(40); | |
| 3111 output.WriteBool(Lazy); | |
| 3112 } | |
| 3113 if (Jstype != global::Google.Protobuf.Reflection.FieldOptions.Types.JSType
.JS_NORMAL) { | |
| 3114 output.WriteRawTag(48); | |
| 3115 output.WriteEnum((int) Jstype); | |
| 3116 } | |
| 3117 if (Weak != false) { | |
| 3118 output.WriteRawTag(80); | |
| 3119 output.WriteBool(Weak); | |
| 3120 } | |
| 3121 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); | |
| 3122 } | |
| 3123 | |
| 3124 public int CalculateSize() { | |
| 3125 int size = 0; | |
| 3126 if (Ctype != global::Google.Protobuf.Reflection.FieldOptions.Types.CType.S
TRING) { | |
| 3127 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Ctype); | |
| 3128 } | |
| 3129 if (Packed != false) { | |
| 3130 size += 1 + 1; | |
| 3131 } | |
| 3132 if (Jstype != global::Google.Protobuf.Reflection.FieldOptions.Types.JSType
.JS_NORMAL) { | |
| 3133 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Jstype); | |
| 3134 } | |
| 3135 if (Lazy != false) { | |
| 3136 size += 1 + 1; | |
| 3137 } | |
| 3138 if (Deprecated != false) { | |
| 3139 size += 1 + 1; | |
| 3140 } | |
| 3141 if (Weak != false) { | |
| 3142 size += 1 + 1; | |
| 3143 } | |
| 3144 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c
odec); | |
| 3145 return size; | |
| 3146 } | |
| 3147 | |
| 3148 public void MergeFrom(FieldOptions other) { | |
| 3149 if (other == null) { | |
| 3150 return; | |
| 3151 } | |
| 3152 if (other.Ctype != global::Google.Protobuf.Reflection.FieldOptions.Types.C
Type.STRING) { | |
| 3153 Ctype = other.Ctype; | |
| 3154 } | |
| 3155 if (other.Packed != false) { | |
| 3156 Packed = other.Packed; | |
| 3157 } | |
| 3158 if (other.Jstype != global::Google.Protobuf.Reflection.FieldOptions.Types.
JSType.JS_NORMAL) { | |
| 3159 Jstype = other.Jstype; | |
| 3160 } | |
| 3161 if (other.Lazy != false) { | |
| 3162 Lazy = other.Lazy; | |
| 3163 } | |
| 3164 if (other.Deprecated != false) { | |
| 3165 Deprecated = other.Deprecated; | |
| 3166 } | |
| 3167 if (other.Weak != false) { | |
| 3168 Weak = other.Weak; | |
| 3169 } | |
| 3170 uninterpretedOption_.Add(other.uninterpretedOption_); | |
| 3171 } | |
| 3172 | |
| 3173 public void MergeFrom(pb::CodedInputStream input) { | |
| 3174 uint tag; | |
| 3175 while ((tag = input.ReadTag()) != 0) { | |
| 3176 switch(tag) { | |
| 3177 default: | |
| 3178 input.SkipLastField(); | |
| 3179 break; | |
| 3180 case 8: { | |
| 3181 ctype_ = (global::Google.Protobuf.Reflection.FieldOptions.Types.CTyp
e) input.ReadEnum(); | |
| 3182 break; | |
| 3183 } | |
| 3184 case 16: { | |
| 3185 Packed = input.ReadBool(); | |
| 3186 break; | |
| 3187 } | |
| 3188 case 24: { | |
| 3189 Deprecated = input.ReadBool(); | |
| 3190 break; | |
| 3191 } | |
| 3192 case 40: { | |
| 3193 Lazy = input.ReadBool(); | |
| 3194 break; | |
| 3195 } | |
| 3196 case 48: { | |
| 3197 jstype_ = (global::Google.Protobuf.Reflection.FieldOptions.Types.JST
ype) input.ReadEnum(); | |
| 3198 break; | |
| 3199 } | |
| 3200 case 80: { | |
| 3201 Weak = input.ReadBool(); | |
| 3202 break; | |
| 3203 } | |
| 3204 case 7994: { | |
| 3205 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp
tion_codec); | |
| 3206 break; | |
| 3207 } | |
| 3208 } | |
| 3209 } | |
| 3210 } | |
| 3211 | |
| 3212 #region Nested types | |
| 3213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 3214 public static partial class Types { | |
| 3215 internal enum CType { | |
| 3216 STRING = 0, | |
| 3217 CORD = 1, | |
| 3218 STRING_PIECE = 2, | |
| 3219 } | |
| 3220 | |
| 3221 internal enum JSType { | |
| 3222 JS_NORMAL = 0, | |
| 3223 JS_STRING = 1, | |
| 3224 JS_NUMBER = 2, | |
| 3225 } | |
| 3226 | |
| 3227 } | |
| 3228 #endregion | |
| 3229 | |
| 3230 } | |
| 3231 | |
| 3232 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 3233 internal sealed partial class EnumOptions : pb::IMessage<EnumOptions> { | |
| 3234 private static readonly pb::MessageParser<EnumOptions> _parser = new pb::Mes
sageParser<EnumOptions>(() => new EnumOptions()); | |
| 3235 public static pb::MessageParser<EnumOptions> Parser { get { return _parser;
} } | |
| 3236 | |
| 3237 public static pbr::MessageDescriptor Descriptor { | |
| 3238 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descri
ptor.MessageTypes[12]; } | |
| 3239 } | |
| 3240 | |
| 3241 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 3242 get { return Descriptor; } | |
| 3243 } | |
| 3244 | |
| 3245 public EnumOptions() { | |
| 3246 OnConstruction(); | |
| 3247 } | |
| 3248 | |
| 3249 partial void OnConstruction(); | |
| 3250 | |
| 3251 public EnumOptions(EnumOptions other) : this() { | |
| 3252 allowAlias_ = other.allowAlias_; | |
| 3253 deprecated_ = other.deprecated_; | |
| 3254 uninterpretedOption_ = other.uninterpretedOption_.Clone(); | |
| 3255 } | |
| 3256 | |
| 3257 public EnumOptions Clone() { | |
| 3258 return new EnumOptions(this); | |
| 3259 } | |
| 3260 | |
| 3261 public const int AllowAliasFieldNumber = 2; | |
| 3262 private bool allowAlias_; | |
| 3263 internal bool AllowAlias { | |
| 3264 get { return allowAlias_; } | |
| 3265 set { | |
| 3266 allowAlias_ = value; | |
| 3267 } | |
| 3268 } | |
| 3269 | |
| 3270 public const int DeprecatedFieldNumber = 3; | |
| 3271 private bool deprecated_; | |
| 3272 internal bool Deprecated { | |
| 3273 get { return deprecated_; } | |
| 3274 set { | |
| 3275 deprecated_ = value; | |
| 3276 } | |
| 3277 } | |
| 3278 | |
| 3279 public const int UninterpretedOptionFieldNumber = 999; | |
| 3280 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un
interpretedOption> _repeated_uninterpretedOption_codec | |
| 3281 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni
nterpretedOption.Parser); | |
| 3282 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint
erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro
tobuf.Reflection.UninterpretedOption>(); | |
| 3283 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.Uninterpreted
Option> UninterpretedOption { | |
| 3284 get { return uninterpretedOption_; } | |
| 3285 } | |
| 3286 | |
| 3287 public override bool Equals(object other) { | |
| 3288 return Equals(other as EnumOptions); | |
| 3289 } | |
| 3290 | |
| 3291 public bool Equals(EnumOptions other) { | |
| 3292 if (ReferenceEquals(other, null)) { | |
| 3293 return false; | |
| 3294 } | |
| 3295 if (ReferenceEquals(other, this)) { | |
| 3296 return true; | |
| 3297 } | |
| 3298 if (AllowAlias != other.AllowAlias) return false; | |
| 3299 if (Deprecated != other.Deprecated) return false; | |
| 3300 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; | |
| 3301 return true; | |
| 3302 } | |
| 3303 | |
| 3304 public override int GetHashCode() { | |
| 3305 int hash = 1; | |
| 3306 if (AllowAlias != false) hash ^= AllowAlias.GetHashCode(); | |
| 3307 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); | |
| 3308 hash ^= uninterpretedOption_.GetHashCode(); | |
| 3309 return hash; | |
| 3310 } | |
| 3311 | |
| 3312 public override string ToString() { | |
| 3313 return pb::JsonFormatter.Default.Format(this); | |
| 3314 } | |
| 3315 | |
| 3316 public void WriteTo(pb::CodedOutputStream output) { | |
| 3317 if (AllowAlias != false) { | |
| 3318 output.WriteRawTag(16); | |
| 3319 output.WriteBool(AllowAlias); | |
| 3320 } | |
| 3321 if (Deprecated != false) { | |
| 3322 output.WriteRawTag(24); | |
| 3323 output.WriteBool(Deprecated); | |
| 3324 } | |
| 3325 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); | |
| 3326 } | |
| 3327 | |
| 3328 public int CalculateSize() { | |
| 3329 int size = 0; | |
| 3330 if (AllowAlias != false) { | |
| 3331 size += 1 + 1; | |
| 3332 } | |
| 3333 if (Deprecated != false) { | |
| 3334 size += 1 + 1; | |
| 3335 } | |
| 3336 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c
odec); | |
| 3337 return size; | |
| 3338 } | |
| 3339 | |
| 3340 public void MergeFrom(EnumOptions other) { | |
| 3341 if (other == null) { | |
| 3342 return; | |
| 3343 } | |
| 3344 if (other.AllowAlias != false) { | |
| 3345 AllowAlias = other.AllowAlias; | |
| 3346 } | |
| 3347 if (other.Deprecated != false) { | |
| 3348 Deprecated = other.Deprecated; | |
| 3349 } | |
| 3350 uninterpretedOption_.Add(other.uninterpretedOption_); | |
| 3351 } | |
| 3352 | |
| 3353 public void MergeFrom(pb::CodedInputStream input) { | |
| 3354 uint tag; | |
| 3355 while ((tag = input.ReadTag()) != 0) { | |
| 3356 switch(tag) { | |
| 3357 default: | |
| 3358 input.SkipLastField(); | |
| 3359 break; | |
| 3360 case 16: { | |
| 3361 AllowAlias = input.ReadBool(); | |
| 3362 break; | |
| 3363 } | |
| 3364 case 24: { | |
| 3365 Deprecated = input.ReadBool(); | |
| 3366 break; | |
| 3367 } | |
| 3368 case 7994: { | |
| 3369 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp
tion_codec); | |
| 3370 break; | |
| 3371 } | |
| 3372 } | |
| 3373 } | |
| 3374 } | |
| 3375 | |
| 3376 } | |
| 3377 | |
| 3378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 3379 internal sealed partial class EnumValueOptions : pb::IMessage<EnumValueOptions
> { | |
| 3380 private static readonly pb::MessageParser<EnumValueOptions> _parser = new pb
::MessageParser<EnumValueOptions>(() => new EnumValueOptions()); | |
| 3381 public static pb::MessageParser<EnumValueOptions> Parser { get { return _par
ser; } } | |
| 3382 | |
| 3383 public static pbr::MessageDescriptor Descriptor { | |
| 3384 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descri
ptor.MessageTypes[13]; } | |
| 3385 } | |
| 3386 | |
| 3387 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 3388 get { return Descriptor; } | |
| 3389 } | |
| 3390 | |
| 3391 public EnumValueOptions() { | |
| 3392 OnConstruction(); | |
| 3393 } | |
| 3394 | |
| 3395 partial void OnConstruction(); | |
| 3396 | |
| 3397 public EnumValueOptions(EnumValueOptions other) : this() { | |
| 3398 deprecated_ = other.deprecated_; | |
| 3399 uninterpretedOption_ = other.uninterpretedOption_.Clone(); | |
| 3400 } | |
| 3401 | |
| 3402 public EnumValueOptions Clone() { | |
| 3403 return new EnumValueOptions(this); | |
| 3404 } | |
| 3405 | |
| 3406 public const int DeprecatedFieldNumber = 1; | |
| 3407 private bool deprecated_; | |
| 3408 internal bool Deprecated { | |
| 3409 get { return deprecated_; } | |
| 3410 set { | |
| 3411 deprecated_ = value; | |
| 3412 } | |
| 3413 } | |
| 3414 | |
| 3415 public const int UninterpretedOptionFieldNumber = 999; | |
| 3416 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un
interpretedOption> _repeated_uninterpretedOption_codec | |
| 3417 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni
nterpretedOption.Parser); | |
| 3418 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint
erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro
tobuf.Reflection.UninterpretedOption>(); | |
| 3419 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.Uninterpreted
Option> UninterpretedOption { | |
| 3420 get { return uninterpretedOption_; } | |
| 3421 } | |
| 3422 | |
| 3423 public override bool Equals(object other) { | |
| 3424 return Equals(other as EnumValueOptions); | |
| 3425 } | |
| 3426 | |
| 3427 public bool Equals(EnumValueOptions other) { | |
| 3428 if (ReferenceEquals(other, null)) { | |
| 3429 return false; | |
| 3430 } | |
| 3431 if (ReferenceEquals(other, this)) { | |
| 3432 return true; | |
| 3433 } | |
| 3434 if (Deprecated != other.Deprecated) return false; | |
| 3435 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; | |
| 3436 return true; | |
| 3437 } | |
| 3438 | |
| 3439 public override int GetHashCode() { | |
| 3440 int hash = 1; | |
| 3441 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); | |
| 3442 hash ^= uninterpretedOption_.GetHashCode(); | |
| 3443 return hash; | |
| 3444 } | |
| 3445 | |
| 3446 public override string ToString() { | |
| 3447 return pb::JsonFormatter.Default.Format(this); | |
| 3448 } | |
| 3449 | |
| 3450 public void WriteTo(pb::CodedOutputStream output) { | |
| 3451 if (Deprecated != false) { | |
| 3452 output.WriteRawTag(8); | |
| 3453 output.WriteBool(Deprecated); | |
| 3454 } | |
| 3455 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); | |
| 3456 } | |
| 3457 | |
| 3458 public int CalculateSize() { | |
| 3459 int size = 0; | |
| 3460 if (Deprecated != false) { | |
| 3461 size += 1 + 1; | |
| 3462 } | |
| 3463 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c
odec); | |
| 3464 return size; | |
| 3465 } | |
| 3466 | |
| 3467 public void MergeFrom(EnumValueOptions other) { | |
| 3468 if (other == null) { | |
| 3469 return; | |
| 3470 } | |
| 3471 if (other.Deprecated != false) { | |
| 3472 Deprecated = other.Deprecated; | |
| 3473 } | |
| 3474 uninterpretedOption_.Add(other.uninterpretedOption_); | |
| 3475 } | |
| 3476 | |
| 3477 public void MergeFrom(pb::CodedInputStream input) { | |
| 3478 uint tag; | |
| 3479 while ((tag = input.ReadTag()) != 0) { | |
| 3480 switch(tag) { | |
| 3481 default: | |
| 3482 input.SkipLastField(); | |
| 3483 break; | |
| 3484 case 8: { | |
| 3485 Deprecated = input.ReadBool(); | |
| 3486 break; | |
| 3487 } | |
| 3488 case 7994: { | |
| 3489 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp
tion_codec); | |
| 3490 break; | |
| 3491 } | |
| 3492 } | |
| 3493 } | |
| 3494 } | |
| 3495 | |
| 3496 } | |
| 3497 | |
| 3498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 3499 internal sealed partial class ServiceOptions : pb::IMessage<ServiceOptions> { | |
| 3500 private static readonly pb::MessageParser<ServiceOptions> _parser = new pb::
MessageParser<ServiceOptions>(() => new ServiceOptions()); | |
| 3501 public static pb::MessageParser<ServiceOptions> Parser { get { return _parse
r; } } | |
| 3502 | |
| 3503 public static pbr::MessageDescriptor Descriptor { | |
| 3504 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descri
ptor.MessageTypes[14]; } | |
| 3505 } | |
| 3506 | |
| 3507 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 3508 get { return Descriptor; } | |
| 3509 } | |
| 3510 | |
| 3511 public ServiceOptions() { | |
| 3512 OnConstruction(); | |
| 3513 } | |
| 3514 | |
| 3515 partial void OnConstruction(); | |
| 3516 | |
| 3517 public ServiceOptions(ServiceOptions other) : this() { | |
| 3518 deprecated_ = other.deprecated_; | |
| 3519 uninterpretedOption_ = other.uninterpretedOption_.Clone(); | |
| 3520 } | |
| 3521 | |
| 3522 public ServiceOptions Clone() { | |
| 3523 return new ServiceOptions(this); | |
| 3524 } | |
| 3525 | |
| 3526 public const int DeprecatedFieldNumber = 33; | |
| 3527 private bool deprecated_; | |
| 3528 internal bool Deprecated { | |
| 3529 get { return deprecated_; } | |
| 3530 set { | |
| 3531 deprecated_ = value; | |
| 3532 } | |
| 3533 } | |
| 3534 | |
| 3535 public const int UninterpretedOptionFieldNumber = 999; | |
| 3536 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un
interpretedOption> _repeated_uninterpretedOption_codec | |
| 3537 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni
nterpretedOption.Parser); | |
| 3538 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint
erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro
tobuf.Reflection.UninterpretedOption>(); | |
| 3539 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.Uninterpreted
Option> UninterpretedOption { | |
| 3540 get { return uninterpretedOption_; } | |
| 3541 } | |
| 3542 | |
| 3543 public override bool Equals(object other) { | |
| 3544 return Equals(other as ServiceOptions); | |
| 3545 } | |
| 3546 | |
| 3547 public bool Equals(ServiceOptions other) { | |
| 3548 if (ReferenceEquals(other, null)) { | |
| 3549 return false; | |
| 3550 } | |
| 3551 if (ReferenceEquals(other, this)) { | |
| 3552 return true; | |
| 3553 } | |
| 3554 if (Deprecated != other.Deprecated) return false; | |
| 3555 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; | |
| 3556 return true; | |
| 3557 } | |
| 3558 | |
| 3559 public override int GetHashCode() { | |
| 3560 int hash = 1; | |
| 3561 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); | |
| 3562 hash ^= uninterpretedOption_.GetHashCode(); | |
| 3563 return hash; | |
| 3564 } | |
| 3565 | |
| 3566 public override string ToString() { | |
| 3567 return pb::JsonFormatter.Default.Format(this); | |
| 3568 } | |
| 3569 | |
| 3570 public void WriteTo(pb::CodedOutputStream output) { | |
| 3571 if (Deprecated != false) { | |
| 3572 output.WriteRawTag(136, 2); | |
| 3573 output.WriteBool(Deprecated); | |
| 3574 } | |
| 3575 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); | |
| 3576 } | |
| 3577 | |
| 3578 public int CalculateSize() { | |
| 3579 int size = 0; | |
| 3580 if (Deprecated != false) { | |
| 3581 size += 2 + 1; | |
| 3582 } | |
| 3583 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c
odec); | |
| 3584 return size; | |
| 3585 } | |
| 3586 | |
| 3587 public void MergeFrom(ServiceOptions other) { | |
| 3588 if (other == null) { | |
| 3589 return; | |
| 3590 } | |
| 3591 if (other.Deprecated != false) { | |
| 3592 Deprecated = other.Deprecated; | |
| 3593 } | |
| 3594 uninterpretedOption_.Add(other.uninterpretedOption_); | |
| 3595 } | |
| 3596 | |
| 3597 public void MergeFrom(pb::CodedInputStream input) { | |
| 3598 uint tag; | |
| 3599 while ((tag = input.ReadTag()) != 0) { | |
| 3600 switch(tag) { | |
| 3601 default: | |
| 3602 input.SkipLastField(); | |
| 3603 break; | |
| 3604 case 264: { | |
| 3605 Deprecated = input.ReadBool(); | |
| 3606 break; | |
| 3607 } | |
| 3608 case 7994: { | |
| 3609 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp
tion_codec); | |
| 3610 break; | |
| 3611 } | |
| 3612 } | |
| 3613 } | |
| 3614 } | |
| 3615 | |
| 3616 } | |
| 3617 | |
| 3618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 3619 internal sealed partial class MethodOptions : pb::IMessage<MethodOptions> { | |
| 3620 private static readonly pb::MessageParser<MethodOptions> _parser = new pb::M
essageParser<MethodOptions>(() => new MethodOptions()); | |
| 3621 public static pb::MessageParser<MethodOptions> Parser { get { return _parser
; } } | |
| 3622 | |
| 3623 public static pbr::MessageDescriptor Descriptor { | |
| 3624 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descri
ptor.MessageTypes[15]; } | |
| 3625 } | |
| 3626 | |
| 3627 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 3628 get { return Descriptor; } | |
| 3629 } | |
| 3630 | |
| 3631 public MethodOptions() { | |
| 3632 OnConstruction(); | |
| 3633 } | |
| 3634 | |
| 3635 partial void OnConstruction(); | |
| 3636 | |
| 3637 public MethodOptions(MethodOptions other) : this() { | |
| 3638 deprecated_ = other.deprecated_; | |
| 3639 uninterpretedOption_ = other.uninterpretedOption_.Clone(); | |
| 3640 } | |
| 3641 | |
| 3642 public MethodOptions Clone() { | |
| 3643 return new MethodOptions(this); | |
| 3644 } | |
| 3645 | |
| 3646 public const int DeprecatedFieldNumber = 33; | |
| 3647 private bool deprecated_; | |
| 3648 internal bool Deprecated { | |
| 3649 get { return deprecated_; } | |
| 3650 set { | |
| 3651 deprecated_ = value; | |
| 3652 } | |
| 3653 } | |
| 3654 | |
| 3655 public const int UninterpretedOptionFieldNumber = 999; | |
| 3656 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un
interpretedOption> _repeated_uninterpretedOption_codec | |
| 3657 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni
nterpretedOption.Parser); | |
| 3658 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint
erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro
tobuf.Reflection.UninterpretedOption>(); | |
| 3659 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.Uninterpreted
Option> UninterpretedOption { | |
| 3660 get { return uninterpretedOption_; } | |
| 3661 } | |
| 3662 | |
| 3663 public override bool Equals(object other) { | |
| 3664 return Equals(other as MethodOptions); | |
| 3665 } | |
| 3666 | |
| 3667 public bool Equals(MethodOptions other) { | |
| 3668 if (ReferenceEquals(other, null)) { | |
| 3669 return false; | |
| 3670 } | |
| 3671 if (ReferenceEquals(other, this)) { | |
| 3672 return true; | |
| 3673 } | |
| 3674 if (Deprecated != other.Deprecated) return false; | |
| 3675 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; | |
| 3676 return true; | |
| 3677 } | |
| 3678 | |
| 3679 public override int GetHashCode() { | |
| 3680 int hash = 1; | |
| 3681 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); | |
| 3682 hash ^= uninterpretedOption_.GetHashCode(); | |
| 3683 return hash; | |
| 3684 } | |
| 3685 | |
| 3686 public override string ToString() { | |
| 3687 return pb::JsonFormatter.Default.Format(this); | |
| 3688 } | |
| 3689 | |
| 3690 public void WriteTo(pb::CodedOutputStream output) { | |
| 3691 if (Deprecated != false) { | |
| 3692 output.WriteRawTag(136, 2); | |
| 3693 output.WriteBool(Deprecated); | |
| 3694 } | |
| 3695 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); | |
| 3696 } | |
| 3697 | |
| 3698 public int CalculateSize() { | |
| 3699 int size = 0; | |
| 3700 if (Deprecated != false) { | |
| 3701 size += 2 + 1; | |
| 3702 } | |
| 3703 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c
odec); | |
| 3704 return size; | |
| 3705 } | |
| 3706 | |
| 3707 public void MergeFrom(MethodOptions other) { | |
| 3708 if (other == null) { | |
| 3709 return; | |
| 3710 } | |
| 3711 if (other.Deprecated != false) { | |
| 3712 Deprecated = other.Deprecated; | |
| 3713 } | |
| 3714 uninterpretedOption_.Add(other.uninterpretedOption_); | |
| 3715 } | |
| 3716 | |
| 3717 public void MergeFrom(pb::CodedInputStream input) { | |
| 3718 uint tag; | |
| 3719 while ((tag = input.ReadTag()) != 0) { | |
| 3720 switch(tag) { | |
| 3721 default: | |
| 3722 input.SkipLastField(); | |
| 3723 break; | |
| 3724 case 264: { | |
| 3725 Deprecated = input.ReadBool(); | |
| 3726 break; | |
| 3727 } | |
| 3728 case 7994: { | |
| 3729 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp
tion_codec); | |
| 3730 break; | |
| 3731 } | |
| 3732 } | |
| 3733 } | |
| 3734 } | |
| 3735 | |
| 3736 } | |
| 3737 | |
| 3738 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 3739 internal sealed partial class UninterpretedOption : pb::IMessage<Uninterpreted
Option> { | |
| 3740 private static readonly pb::MessageParser<UninterpretedOption> _parser = new
pb::MessageParser<UninterpretedOption>(() => new UninterpretedOption()); | |
| 3741 public static pb::MessageParser<UninterpretedOption> Parser { get { return _
parser; } } | |
| 3742 | |
| 3743 public static pbr::MessageDescriptor Descriptor { | |
| 3744 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descri
ptor.MessageTypes[16]; } | |
| 3745 } | |
| 3746 | |
| 3747 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 3748 get { return Descriptor; } | |
| 3749 } | |
| 3750 | |
| 3751 public UninterpretedOption() { | |
| 3752 OnConstruction(); | |
| 3753 } | |
| 3754 | |
| 3755 partial void OnConstruction(); | |
| 3756 | |
| 3757 public UninterpretedOption(UninterpretedOption other) : this() { | |
| 3758 name_ = other.name_.Clone(); | |
| 3759 identifierValue_ = other.identifierValue_; | |
| 3760 positiveIntValue_ = other.positiveIntValue_; | |
| 3761 negativeIntValue_ = other.negativeIntValue_; | |
| 3762 doubleValue_ = other.doubleValue_; | |
| 3763 stringValue_ = other.stringValue_; | |
| 3764 aggregateValue_ = other.aggregateValue_; | |
| 3765 } | |
| 3766 | |
| 3767 public UninterpretedOption Clone() { | |
| 3768 return new UninterpretedOption(this); | |
| 3769 } | |
| 3770 | |
| 3771 public const int NameFieldNumber = 2; | |
| 3772 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un
interpretedOption.Types.NamePart> _repeated_name_codec | |
| 3773 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.Unint
erpretedOption.Types.NamePart.Parser); | |
| 3774 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint
erpretedOption.Types.NamePart> name_ = new pbc::RepeatedField<global::Google.Pro
tobuf.Reflection.UninterpretedOption.Types.NamePart>(); | |
| 3775 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.Uninterpreted
Option.Types.NamePart> Name { | |
| 3776 get { return name_; } | |
| 3777 } | |
| 3778 | |
| 3779 public const int IdentifierValueFieldNumber = 3; | |
| 3780 private string identifierValue_ = ""; | |
| 3781 internal string IdentifierValue { | |
| 3782 get { return identifierValue_; } | |
| 3783 set { | |
| 3784 identifierValue_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 3785 } | |
| 3786 } | |
| 3787 | |
| 3788 public const int PositiveIntValueFieldNumber = 4; | |
| 3789 private ulong positiveIntValue_; | |
| 3790 internal ulong PositiveIntValue { | |
| 3791 get { return positiveIntValue_; } | |
| 3792 set { | |
| 3793 positiveIntValue_ = value; | |
| 3794 } | |
| 3795 } | |
| 3796 | |
| 3797 public const int NegativeIntValueFieldNumber = 5; | |
| 3798 private long negativeIntValue_; | |
| 3799 internal long NegativeIntValue { | |
| 3800 get { return negativeIntValue_; } | |
| 3801 set { | |
| 3802 negativeIntValue_ = value; | |
| 3803 } | |
| 3804 } | |
| 3805 | |
| 3806 public const int DoubleValueFieldNumber = 6; | |
| 3807 private double doubleValue_; | |
| 3808 internal double DoubleValue { | |
| 3809 get { return doubleValue_; } | |
| 3810 set { | |
| 3811 doubleValue_ = value; | |
| 3812 } | |
| 3813 } | |
| 3814 | |
| 3815 public const int StringValueFieldNumber = 7; | |
| 3816 private pb::ByteString stringValue_ = pb::ByteString.Empty; | |
| 3817 internal pb::ByteString StringValue { | |
| 3818 get { return stringValue_; } | |
| 3819 set { | |
| 3820 stringValue_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 3821 } | |
| 3822 } | |
| 3823 | |
| 3824 public const int AggregateValueFieldNumber = 8; | |
| 3825 private string aggregateValue_ = ""; | |
| 3826 internal string AggregateValue { | |
| 3827 get { return aggregateValue_; } | |
| 3828 set { | |
| 3829 aggregateValue_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 3830 } | |
| 3831 } | |
| 3832 | |
| 3833 public override bool Equals(object other) { | |
| 3834 return Equals(other as UninterpretedOption); | |
| 3835 } | |
| 3836 | |
| 3837 public bool Equals(UninterpretedOption other) { | |
| 3838 if (ReferenceEquals(other, null)) { | |
| 3839 return false; | |
| 3840 } | |
| 3841 if (ReferenceEquals(other, this)) { | |
| 3842 return true; | |
| 3843 } | |
| 3844 if(!name_.Equals(other.name_)) return false; | |
| 3845 if (IdentifierValue != other.IdentifierValue) return false; | |
| 3846 if (PositiveIntValue != other.PositiveIntValue) return false; | |
| 3847 if (NegativeIntValue != other.NegativeIntValue) return false; | |
| 3848 if (DoubleValue != other.DoubleValue) return false; | |
| 3849 if (StringValue != other.StringValue) return false; | |
| 3850 if (AggregateValue != other.AggregateValue) return false; | |
| 3851 return true; | |
| 3852 } | |
| 3853 | |
| 3854 public override int GetHashCode() { | |
| 3855 int hash = 1; | |
| 3856 hash ^= name_.GetHashCode(); | |
| 3857 if (IdentifierValue.Length != 0) hash ^= IdentifierValue.GetHashCode(); | |
| 3858 if (PositiveIntValue != 0UL) hash ^= PositiveIntValue.GetHashCode(); | |
| 3859 if (NegativeIntValue != 0L) hash ^= NegativeIntValue.GetHashCode(); | |
| 3860 if (DoubleValue != 0D) hash ^= DoubleValue.GetHashCode(); | |
| 3861 if (StringValue.Length != 0) hash ^= StringValue.GetHashCode(); | |
| 3862 if (AggregateValue.Length != 0) hash ^= AggregateValue.GetHashCode(); | |
| 3863 return hash; | |
| 3864 } | |
| 3865 | |
| 3866 public override string ToString() { | |
| 3867 return pb::JsonFormatter.Default.Format(this); | |
| 3868 } | |
| 3869 | |
| 3870 public void WriteTo(pb::CodedOutputStream output) { | |
| 3871 name_.WriteTo(output, _repeated_name_codec); | |
| 3872 if (IdentifierValue.Length != 0) { | |
| 3873 output.WriteRawTag(26); | |
| 3874 output.WriteString(IdentifierValue); | |
| 3875 } | |
| 3876 if (PositiveIntValue != 0UL) { | |
| 3877 output.WriteRawTag(32); | |
| 3878 output.WriteUInt64(PositiveIntValue); | |
| 3879 } | |
| 3880 if (NegativeIntValue != 0L) { | |
| 3881 output.WriteRawTag(40); | |
| 3882 output.WriteInt64(NegativeIntValue); | |
| 3883 } | |
| 3884 if (DoubleValue != 0D) { | |
| 3885 output.WriteRawTag(49); | |
| 3886 output.WriteDouble(DoubleValue); | |
| 3887 } | |
| 3888 if (StringValue.Length != 0) { | |
| 3889 output.WriteRawTag(58); | |
| 3890 output.WriteBytes(StringValue); | |
| 3891 } | |
| 3892 if (AggregateValue.Length != 0) { | |
| 3893 output.WriteRawTag(66); | |
| 3894 output.WriteString(AggregateValue); | |
| 3895 } | |
| 3896 } | |
| 3897 | |
| 3898 public int CalculateSize() { | |
| 3899 int size = 0; | |
| 3900 size += name_.CalculateSize(_repeated_name_codec); | |
| 3901 if (IdentifierValue.Length != 0) { | |
| 3902 size += 1 + pb::CodedOutputStream.ComputeStringSize(IdentifierValue); | |
| 3903 } | |
| 3904 if (PositiveIntValue != 0UL) { | |
| 3905 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PositiveIntValue); | |
| 3906 } | |
| 3907 if (NegativeIntValue != 0L) { | |
| 3908 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NegativeIntValue); | |
| 3909 } | |
| 3910 if (DoubleValue != 0D) { | |
| 3911 size += 1 + 8; | |
| 3912 } | |
| 3913 if (StringValue.Length != 0) { | |
| 3914 size += 1 + pb::CodedOutputStream.ComputeBytesSize(StringValue); | |
| 3915 } | |
| 3916 if (AggregateValue.Length != 0) { | |
| 3917 size += 1 + pb::CodedOutputStream.ComputeStringSize(AggregateValue); | |
| 3918 } | |
| 3919 return size; | |
| 3920 } | |
| 3921 | |
| 3922 public void MergeFrom(UninterpretedOption other) { | |
| 3923 if (other == null) { | |
| 3924 return; | |
| 3925 } | |
| 3926 name_.Add(other.name_); | |
| 3927 if (other.IdentifierValue.Length != 0) { | |
| 3928 IdentifierValue = other.IdentifierValue; | |
| 3929 } | |
| 3930 if (other.PositiveIntValue != 0UL) { | |
| 3931 PositiveIntValue = other.PositiveIntValue; | |
| 3932 } | |
| 3933 if (other.NegativeIntValue != 0L) { | |
| 3934 NegativeIntValue = other.NegativeIntValue; | |
| 3935 } | |
| 3936 if (other.DoubleValue != 0D) { | |
| 3937 DoubleValue = other.DoubleValue; | |
| 3938 } | |
| 3939 if (other.StringValue.Length != 0) { | |
| 3940 StringValue = other.StringValue; | |
| 3941 } | |
| 3942 if (other.AggregateValue.Length != 0) { | |
| 3943 AggregateValue = other.AggregateValue; | |
| 3944 } | |
| 3945 } | |
| 3946 | |
| 3947 public void MergeFrom(pb::CodedInputStream input) { | |
| 3948 uint tag; | |
| 3949 while ((tag = input.ReadTag()) != 0) { | |
| 3950 switch(tag) { | |
| 3951 default: | |
| 3952 input.SkipLastField(); | |
| 3953 break; | |
| 3954 case 18: { | |
| 3955 name_.AddEntriesFrom(input, _repeated_name_codec); | |
| 3956 break; | |
| 3957 } | |
| 3958 case 26: { | |
| 3959 IdentifierValue = input.ReadString(); | |
| 3960 break; | |
| 3961 } | |
| 3962 case 32: { | |
| 3963 PositiveIntValue = input.ReadUInt64(); | |
| 3964 break; | |
| 3965 } | |
| 3966 case 40: { | |
| 3967 NegativeIntValue = input.ReadInt64(); | |
| 3968 break; | |
| 3969 } | |
| 3970 case 49: { | |
| 3971 DoubleValue = input.ReadDouble(); | |
| 3972 break; | |
| 3973 } | |
| 3974 case 58: { | |
| 3975 StringValue = input.ReadBytes(); | |
| 3976 break; | |
| 3977 } | |
| 3978 case 66: { | |
| 3979 AggregateValue = input.ReadString(); | |
| 3980 break; | |
| 3981 } | |
| 3982 } | |
| 3983 } | |
| 3984 } | |
| 3985 | |
| 3986 #region Nested types | |
| 3987 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 3988 public static partial class Types { | |
| 3989 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 3990 internal sealed partial class NamePart : pb::IMessage<NamePart> { | |
| 3991 private static readonly pb::MessageParser<NamePart> _parser = new pb::Me
ssageParser<NamePart>(() => new NamePart()); | |
| 3992 public static pb::MessageParser<NamePart> Parser { get { return _parser;
} } | |
| 3993 | |
| 3994 public static pbr::MessageDescriptor Descriptor { | |
| 3995 get { return global::Google.Protobuf.Reflection.UninterpretedOption.De
scriptor.NestedTypes[0]; } | |
| 3996 } | |
| 3997 | |
| 3998 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 3999 get { return Descriptor; } | |
| 4000 } | |
| 4001 | |
| 4002 public NamePart() { | |
| 4003 OnConstruction(); | |
| 4004 } | |
| 4005 | |
| 4006 partial void OnConstruction(); | |
| 4007 | |
| 4008 public NamePart(NamePart other) : this() { | |
| 4009 namePart_ = other.namePart_; | |
| 4010 isExtension_ = other.isExtension_; | |
| 4011 } | |
| 4012 | |
| 4013 public NamePart Clone() { | |
| 4014 return new NamePart(this); | |
| 4015 } | |
| 4016 | |
| 4017 public const int NamePart_FieldNumber = 1; | |
| 4018 private string namePart_ = ""; | |
| 4019 internal string NamePart_ { | |
| 4020 get { return namePart_; } | |
| 4021 set { | |
| 4022 namePart_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 4023 } | |
| 4024 } | |
| 4025 | |
| 4026 public const int IsExtensionFieldNumber = 2; | |
| 4027 private bool isExtension_; | |
| 4028 internal bool IsExtension { | |
| 4029 get { return isExtension_; } | |
| 4030 set { | |
| 4031 isExtension_ = value; | |
| 4032 } | |
| 4033 } | |
| 4034 | |
| 4035 public override bool Equals(object other) { | |
| 4036 return Equals(other as NamePart); | |
| 4037 } | |
| 4038 | |
| 4039 public bool Equals(NamePart other) { | |
| 4040 if (ReferenceEquals(other, null)) { | |
| 4041 return false; | |
| 4042 } | |
| 4043 if (ReferenceEquals(other, this)) { | |
| 4044 return true; | |
| 4045 } | |
| 4046 if (NamePart_ != other.NamePart_) return false; | |
| 4047 if (IsExtension != other.IsExtension) return false; | |
| 4048 return true; | |
| 4049 } | |
| 4050 | |
| 4051 public override int GetHashCode() { | |
| 4052 int hash = 1; | |
| 4053 if (NamePart_.Length != 0) hash ^= NamePart_.GetHashCode(); | |
| 4054 if (IsExtension != false) hash ^= IsExtension.GetHashCode(); | |
| 4055 return hash; | |
| 4056 } | |
| 4057 | |
| 4058 public override string ToString() { | |
| 4059 return pb::JsonFormatter.Default.Format(this); | |
| 4060 } | |
| 4061 | |
| 4062 public void WriteTo(pb::CodedOutputStream output) { | |
| 4063 if (NamePart_.Length != 0) { | |
| 4064 output.WriteRawTag(10); | |
| 4065 output.WriteString(NamePart_); | |
| 4066 } | |
| 4067 if (IsExtension != false) { | |
| 4068 output.WriteRawTag(16); | |
| 4069 output.WriteBool(IsExtension); | |
| 4070 } | |
| 4071 } | |
| 4072 | |
| 4073 public int CalculateSize() { | |
| 4074 int size = 0; | |
| 4075 if (NamePart_.Length != 0) { | |
| 4076 size += 1 + pb::CodedOutputStream.ComputeStringSize(NamePart_); | |
| 4077 } | |
| 4078 if (IsExtension != false) { | |
| 4079 size += 1 + 1; | |
| 4080 } | |
| 4081 return size; | |
| 4082 } | |
| 4083 | |
| 4084 public void MergeFrom(NamePart other) { | |
| 4085 if (other == null) { | |
| 4086 return; | |
| 4087 } | |
| 4088 if (other.NamePart_.Length != 0) { | |
| 4089 NamePart_ = other.NamePart_; | |
| 4090 } | |
| 4091 if (other.IsExtension != false) { | |
| 4092 IsExtension = other.IsExtension; | |
| 4093 } | |
| 4094 } | |
| 4095 | |
| 4096 public void MergeFrom(pb::CodedInputStream input) { | |
| 4097 uint tag; | |
| 4098 while ((tag = input.ReadTag()) != 0) { | |
| 4099 switch(tag) { | |
| 4100 default: | |
| 4101 input.SkipLastField(); | |
| 4102 break; | |
| 4103 case 10: { | |
| 4104 NamePart_ = input.ReadString(); | |
| 4105 break; | |
| 4106 } | |
| 4107 case 16: { | |
| 4108 IsExtension = input.ReadBool(); | |
| 4109 break; | |
| 4110 } | |
| 4111 } | |
| 4112 } | |
| 4113 } | |
| 4114 | |
| 4115 } | |
| 4116 | |
| 4117 } | |
| 4118 #endregion | |
| 4119 | |
| 4120 } | |
| 4121 | |
| 4122 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 4123 internal sealed partial class SourceCodeInfo : pb::IMessage<SourceCodeInfo> { | |
| 4124 private static readonly pb::MessageParser<SourceCodeInfo> _parser = new pb::
MessageParser<SourceCodeInfo>(() => new SourceCodeInfo()); | |
| 4125 public static pb::MessageParser<SourceCodeInfo> Parser { get { return _parse
r; } } | |
| 4126 | |
| 4127 public static pbr::MessageDescriptor Descriptor { | |
| 4128 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descri
ptor.MessageTypes[17]; } | |
| 4129 } | |
| 4130 | |
| 4131 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 4132 get { return Descriptor; } | |
| 4133 } | |
| 4134 | |
| 4135 public SourceCodeInfo() { | |
| 4136 OnConstruction(); | |
| 4137 } | |
| 4138 | |
| 4139 partial void OnConstruction(); | |
| 4140 | |
| 4141 public SourceCodeInfo(SourceCodeInfo other) : this() { | |
| 4142 location_ = other.location_.Clone(); | |
| 4143 } | |
| 4144 | |
| 4145 public SourceCodeInfo Clone() { | |
| 4146 return new SourceCodeInfo(this); | |
| 4147 } | |
| 4148 | |
| 4149 public const int LocationFieldNumber = 1; | |
| 4150 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.So
urceCodeInfo.Types.Location> _repeated_location_codec | |
| 4151 = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.Sourc
eCodeInfo.Types.Location.Parser); | |
| 4152 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Sourc
eCodeInfo.Types.Location> location_ = new pbc::RepeatedField<global::Google.Prot
obuf.Reflection.SourceCodeInfo.Types.Location>(); | |
| 4153 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInf
o.Types.Location> Location { | |
| 4154 get { return location_; } | |
| 4155 } | |
| 4156 | |
| 4157 public override bool Equals(object other) { | |
| 4158 return Equals(other as SourceCodeInfo); | |
| 4159 } | |
| 4160 | |
| 4161 public bool Equals(SourceCodeInfo other) { | |
| 4162 if (ReferenceEquals(other, null)) { | |
| 4163 return false; | |
| 4164 } | |
| 4165 if (ReferenceEquals(other, this)) { | |
| 4166 return true; | |
| 4167 } | |
| 4168 if(!location_.Equals(other.location_)) return false; | |
| 4169 return true; | |
| 4170 } | |
| 4171 | |
| 4172 public override int GetHashCode() { | |
| 4173 int hash = 1; | |
| 4174 hash ^= location_.GetHashCode(); | |
| 4175 return hash; | |
| 4176 } | |
| 4177 | |
| 4178 public override string ToString() { | |
| 4179 return pb::JsonFormatter.Default.Format(this); | |
| 4180 } | |
| 4181 | |
| 4182 public void WriteTo(pb::CodedOutputStream output) { | |
| 4183 location_.WriteTo(output, _repeated_location_codec); | |
| 4184 } | |
| 4185 | |
| 4186 public int CalculateSize() { | |
| 4187 int size = 0; | |
| 4188 size += location_.CalculateSize(_repeated_location_codec); | |
| 4189 return size; | |
| 4190 } | |
| 4191 | |
| 4192 public void MergeFrom(SourceCodeInfo other) { | |
| 4193 if (other == null) { | |
| 4194 return; | |
| 4195 } | |
| 4196 location_.Add(other.location_); | |
| 4197 } | |
| 4198 | |
| 4199 public void MergeFrom(pb::CodedInputStream input) { | |
| 4200 uint tag; | |
| 4201 while ((tag = input.ReadTag()) != 0) { | |
| 4202 switch(tag) { | |
| 4203 default: | |
| 4204 input.SkipLastField(); | |
| 4205 break; | |
| 4206 case 10: { | |
| 4207 location_.AddEntriesFrom(input, _repeated_location_codec); | |
| 4208 break; | |
| 4209 } | |
| 4210 } | |
| 4211 } | |
| 4212 } | |
| 4213 | |
| 4214 #region Nested types | |
| 4215 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 4216 public static partial class Types { | |
| 4217 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 4218 internal sealed partial class Location : pb::IMessage<Location> { | |
| 4219 private static readonly pb::MessageParser<Location> _parser = new pb::Me
ssageParser<Location>(() => new Location()); | |
| 4220 public static pb::MessageParser<Location> Parser { get { return _parser;
} } | |
| 4221 | |
| 4222 public static pbr::MessageDescriptor Descriptor { | |
| 4223 get { return global::Google.Protobuf.Reflection.SourceCodeInfo.Descrip
tor.NestedTypes[0]; } | |
| 4224 } | |
| 4225 | |
| 4226 pbr::MessageDescriptor pb::IMessage.Descriptor { | |
| 4227 get { return Descriptor; } | |
| 4228 } | |
| 4229 | |
| 4230 public Location() { | |
| 4231 OnConstruction(); | |
| 4232 } | |
| 4233 | |
| 4234 partial void OnConstruction(); | |
| 4235 | |
| 4236 public Location(Location other) : this() { | |
| 4237 path_ = other.path_.Clone(); | |
| 4238 span_ = other.span_.Clone(); | |
| 4239 leadingComments_ = other.leadingComments_; | |
| 4240 trailingComments_ = other.trailingComments_; | |
| 4241 leadingDetachedComments_ = other.leadingDetachedComments_.Clone(); | |
| 4242 } | |
| 4243 | |
| 4244 public Location Clone() { | |
| 4245 return new Location(this); | |
| 4246 } | |
| 4247 | |
| 4248 public const int PathFieldNumber = 1; | |
| 4249 private static readonly pb::FieldCodec<int> _repeated_path_codec | |
| 4250 = pb::FieldCodec.ForInt32(10); | |
| 4251 private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField<
int>(); | |
| 4252 internal pbc::RepeatedField<int> Path { | |
| 4253 get { return path_; } | |
| 4254 } | |
| 4255 | |
| 4256 public const int SpanFieldNumber = 2; | |
| 4257 private static readonly pb::FieldCodec<int> _repeated_span_codec | |
| 4258 = pb::FieldCodec.ForInt32(18); | |
| 4259 private readonly pbc::RepeatedField<int> span_ = new pbc::RepeatedField<
int>(); | |
| 4260 internal pbc::RepeatedField<int> Span { | |
| 4261 get { return span_; } | |
| 4262 } | |
| 4263 | |
| 4264 public const int LeadingCommentsFieldNumber = 3; | |
| 4265 private string leadingComments_ = ""; | |
| 4266 internal string LeadingComments { | |
| 4267 get { return leadingComments_; } | |
| 4268 set { | |
| 4269 leadingComments_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 4270 } | |
| 4271 } | |
| 4272 | |
| 4273 public const int TrailingCommentsFieldNumber = 4; | |
| 4274 private string trailingComments_ = ""; | |
| 4275 internal string TrailingComments { | |
| 4276 get { return trailingComments_; } | |
| 4277 set { | |
| 4278 trailingComments_ = pb::Preconditions.CheckNotNull(value, "value"); | |
| 4279 } | |
| 4280 } | |
| 4281 | |
| 4282 public const int LeadingDetachedCommentsFieldNumber = 6; | |
| 4283 private static readonly pb::FieldCodec<string> _repeated_leadingDetached
Comments_codec | |
| 4284 = pb::FieldCodec.ForString(50); | |
| 4285 private readonly pbc::RepeatedField<string> leadingDetachedComments_ = n
ew pbc::RepeatedField<string>(); | |
| 4286 internal pbc::RepeatedField<string> LeadingDetachedComments { | |
| 4287 get { return leadingDetachedComments_; } | |
| 4288 } | |
| 4289 | |
| 4290 public override bool Equals(object other) { | |
| 4291 return Equals(other as Location); | |
| 4292 } | |
| 4293 | |
| 4294 public bool Equals(Location other) { | |
| 4295 if (ReferenceEquals(other, null)) { | |
| 4296 return false; | |
| 4297 } | |
| 4298 if (ReferenceEquals(other, this)) { | |
| 4299 return true; | |
| 4300 } | |
| 4301 if(!path_.Equals(other.path_)) return false; | |
| 4302 if(!span_.Equals(other.span_)) return false; | |
| 4303 if (LeadingComments != other.LeadingComments) return false; | |
| 4304 if (TrailingComments != other.TrailingComments) return false; | |
| 4305 if(!leadingDetachedComments_.Equals(other.leadingDetachedComments_)) r
eturn false; | |
| 4306 return true; | |
| 4307 } | |
| 4308 | |
| 4309 public override int GetHashCode() { | |
| 4310 int hash = 1; | |
| 4311 hash ^= path_.GetHashCode(); | |
| 4312 hash ^= span_.GetHashCode(); | |
| 4313 if (LeadingComments.Length != 0) hash ^= LeadingComments.GetHashCode()
; | |
| 4314 if (TrailingComments.Length != 0) hash ^= TrailingComments.GetHashCode
(); | |
| 4315 hash ^= leadingDetachedComments_.GetHashCode(); | |
| 4316 return hash; | |
| 4317 } | |
| 4318 | |
| 4319 public override string ToString() { | |
| 4320 return pb::JsonFormatter.Default.Format(this); | |
| 4321 } | |
| 4322 | |
| 4323 public void WriteTo(pb::CodedOutputStream output) { | |
| 4324 path_.WriteTo(output, _repeated_path_codec); | |
| 4325 span_.WriteTo(output, _repeated_span_codec); | |
| 4326 if (LeadingComments.Length != 0) { | |
| 4327 output.WriteRawTag(26); | |
| 4328 output.WriteString(LeadingComments); | |
| 4329 } | |
| 4330 if (TrailingComments.Length != 0) { | |
| 4331 output.WriteRawTag(34); | |
| 4332 output.WriteString(TrailingComments); | |
| 4333 } | |
| 4334 leadingDetachedComments_.WriteTo(output, _repeated_leadingDetachedComm
ents_codec); | |
| 4335 } | |
| 4336 | |
| 4337 public int CalculateSize() { | |
| 4338 int size = 0; | |
| 4339 size += path_.CalculateSize(_repeated_path_codec); | |
| 4340 size += span_.CalculateSize(_repeated_span_codec); | |
| 4341 if (LeadingComments.Length != 0) { | |
| 4342 size += 1 + pb::CodedOutputStream.ComputeStringSize(LeadingComments)
; | |
| 4343 } | |
| 4344 if (TrailingComments.Length != 0) { | |
| 4345 size += 1 + pb::CodedOutputStream.ComputeStringSize(TrailingComments
); | |
| 4346 } | |
| 4347 size += leadingDetachedComments_.CalculateSize(_repeated_leadingDetach
edComments_codec); | |
| 4348 return size; | |
| 4349 } | |
| 4350 | |
| 4351 public void MergeFrom(Location other) { | |
| 4352 if (other == null) { | |
| 4353 return; | |
| 4354 } | |
| 4355 path_.Add(other.path_); | |
| 4356 span_.Add(other.span_); | |
| 4357 if (other.LeadingComments.Length != 0) { | |
| 4358 LeadingComments = other.LeadingComments; | |
| 4359 } | |
| 4360 if (other.TrailingComments.Length != 0) { | |
| 4361 TrailingComments = other.TrailingComments; | |
| 4362 } | |
| 4363 leadingDetachedComments_.Add(other.leadingDetachedComments_); | |
| 4364 } | |
| 4365 | |
| 4366 public void MergeFrom(pb::CodedInputStream input) { | |
| 4367 uint tag; | |
| 4368 while ((tag = input.ReadTag()) != 0) { | |
| 4369 switch(tag) { | |
| 4370 default: | |
| 4371 input.SkipLastField(); | |
| 4372 break; | |
| 4373 case 10: | |
| 4374 case 8: { | |
| 4375 path_.AddEntriesFrom(input, _repeated_path_codec); | |
| 4376 break; | |
| 4377 } | |
| 4378 case 18: | |
| 4379 case 16: { | |
| 4380 span_.AddEntriesFrom(input, _repeated_span_codec); | |
| 4381 break; | |
| 4382 } | |
| 4383 case 26: { | |
| 4384 LeadingComments = input.ReadString(); | |
| 4385 break; | |
| 4386 } | |
| 4387 case 34: { | |
| 4388 TrailingComments = input.ReadString(); | |
| 4389 break; | |
| 4390 } | |
| 4391 case 50: { | |
| 4392 leadingDetachedComments_.AddEntriesFrom(input, _repeated_leading
DetachedComments_codec); | |
| 4393 break; | |
| 4394 } | |
| 4395 } | |
| 4396 } | |
| 4397 } | |
| 4398 | |
| 4399 } | |
| 4400 | |
| 4401 } | |
| 4402 #endregion | |
| 4403 | |
| 4404 } | |
| 4405 | |
| 4406 #endregion | |
| 4407 | |
| 4408 } | |
| 4409 | |
| 4410 #endregion Designer generated code | |
| OLD | NEW |