blob: 59c5e69b7e7a764cef614c181a473d86fd5b30a0 [file] [log] [blame]
Jon Skeetf3504cf2015-04-28 14:49:49 +01001// Generated by the protocol buffer compiler. DO NOT EDIT!
Jon Skeetb1a395c2015-05-15 14:36:07 +01002// source: google/protobuf/descriptor_proto_file.proto
Jon Skeetf3504cf2015-04-28 14:49:49 +01003#pragma warning disable 1591, 0612, 3021
4#region Designer generated code
5
Jon Skeete38294a2015-06-09 19:30:44 +01006using pb = global::Google.Protobuf;
7using pbc = global::Google.Protobuf.Collections;
Jon Skeet76940942015-07-14 10:25:40 +01008using pbr = global::Google.Protobuf.Reflection;
Jon Skeetf3504cf2015-04-28 14:49:49 +01009using scg = global::System.Collections.Generic;
Jon Skeet9c888fa2015-07-14 11:13:52 +010010namespace Google.Protobuf.Reflection {
Jon Skeetf3504cf2015-04-28 14:49:49 +010011
12 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +010013 internal static partial class DescriptorProtoFile {
Jon Skeetf3504cf2015-04-28 14:49:49 +010014
Jon Skeet5ca6dd72015-04-28 18:47:47 +010015 #region Descriptor
Jon Skeet76940942015-07-14 10:25:40 +010016 public static pbr::FileDescriptor Descriptor {
Jon Skeetf3504cf2015-04-28 14:49:49 +010017 get { return descriptor; }
18 }
Jon Skeet76940942015-07-14 10:25:40 +010019 private static pbr::FileDescriptor descriptor;
Jon Skeetf3504cf2015-04-28 14:49:49 +010020
21 static DescriptorProtoFile() {
22 byte[] descriptorData = global::System.Convert.FromBase64String(
23 string.Concat(
Jon Skeetb1a395c2015-05-15 14:36:07 +010024 "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",
Jie Luoa21a2cf2015-05-29 17:57:05 -070037 "dXJjZUNvZGVJbmZvEg4KBnN5bnRheBgMIAEoCSLwBAoPRGVzY3JpcHRvclBy",
Jon Skeetb1a395c2015-05-15 14:36:07 +010038 "b3RvEgwKBG5hbWUYASABKAkSNAoFZmllbGQYAiADKAsyJS5nb29nbGUucHJv",
39 "dG9idWYuRmllbGREZXNjcmlwdG9yUHJvdG8SOAoJZXh0ZW5zaW9uGAYgAygL",
40 "MiUuZ29vZ2xlLnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvEjUKC25l",
41 "c3RlZF90eXBlGAMgAygLMiAuZ29vZ2xlLnByb3RvYnVmLkRlc2NyaXB0b3JQ",
42 "cm90bxI3CgllbnVtX3R5cGUYBCADKAsyJC5nb29nbGUucHJvdG9idWYuRW51",
43 "bURlc2NyaXB0b3JQcm90bxJICg9leHRlbnNpb25fcmFuZ2UYBSADKAsyLy5n",
44 "b29nbGUucHJvdG9idWYuRGVzY3JpcHRvclByb3RvLkV4dGVuc2lvblJhbmdl",
45 "EjkKCm9uZW9mX2RlY2wYCCADKAsyJS5nb29nbGUucHJvdG9idWYuT25lb2ZE",
46 "ZXNjcmlwdG9yUHJvdG8SMAoHb3B0aW9ucxgHIAEoCzIfLmdvb2dsZS5wcm90",
Jie Luoa21a2cf2015-05-29 17:57:05 -070047 "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",
Jon Skeetb1a395c2015-05-15 14:36:07 +0100114 "ZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJw",
Jie Luoa21a2cf2015-05-29 17:57:05 -0700115 "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",
Jon Skeet9c888fa2015-07-14 11:13:52 +0100132 "bWVudHMYBiADKAlCWAoTY29tLmdvb2dsZS5wcm90b2J1ZkIQRGVzY3JpcHRv",
133 "clByb3Rvc0gBWgpkZXNjcmlwdG9yogIDR1BCqgIaR29vZ2xlLlByb3RvYnVm",
Jon Skeet4668c3d2015-07-22 11:38:22 +0100134 "LlJlZmxlY3Rpb24="));
Jon Skeet76940942015-07-14 10:25:40 +0100135 descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
Jon Skeet96cffaa2015-07-20 19:25:07 +0100136 new pbr::FileDescriptor[] { },
Jon Skeet4668c3d2015-07-22 11:38:22 +0100137 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" }, null, null, new pbr::GeneratedCodeInfo[] { new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange), new[]{ "Start", "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", "Extendee", "DefaultValue", "OneofIndex", "Options" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type), typeof(global::Google.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, null),
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", "ClientStreaming", "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.OptimizeMode) }, 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.Reflection.FieldOptions.Types.CType), typeof(global::Google.Protobuf.Reflection.FieldOptions.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, null),
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", "NegativeIntValue", "DoubleValue", "StringValue", "AggregateValue" }, null, null, new pbr::GeneratedCodeInfo[] { new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart), new[]{ "NamePart_", "IsExtension" }, 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.SourceCodeInfo.Types.Location), new[]{ "Path", "Span", "LeadingComments", "TrailingComments", "LeadingDetachedComments" }, null, null, null)})
157 }));
Jon Skeetf3504cf2015-04-28 14:49:49 +0100158 }
159 #endregion
160
161 }
162 #region Messages
163 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +0100164 internal sealed partial class FileDescriptorSet : pb::IMessage<FileDescriptorSet> {
Jon Skeete38294a2015-06-09 19:30:44 +0100165 private static readonly pb::MessageParser<FileDescriptorSet> _parser = new pb::MessageParser<FileDescriptorSet>(() => new FileDescriptorSet());
166 public static pb::MessageParser<FileDescriptorSet> Parser { get { return _parser; } }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100167
Jon Skeet76940942015-07-14 10:25:40 +0100168 public static pbr::MessageDescriptor Descriptor {
Jon Skeet9c888fa2015-07-14 11:13:52 +0100169 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[0]; }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100170 }
171
Jon Skeet96cffaa2015-07-20 19:25:07 +0100172 pbr::MessageDescriptor pb::IMessage.Descriptor {
173 get { return Descriptor; }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100174 }
175
Jon Skeet53508222015-07-01 17:16:55 +0100176 public FileDescriptorSet() {
177 OnConstruction();
178 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +0100179
Jon Skeet53508222015-07-01 17:16:55 +0100180 partial void OnConstruction();
181
182 public FileDescriptorSet(FileDescriptorSet other) : this() {
Jon Skeet6c1fe6e2015-06-23 11:54:19 +0100183 file_ = other.file_.Clone();
Jon Skeete38294a2015-06-09 19:30:44 +0100184 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +0100185
186 public FileDescriptorSet Clone() {
187 return new FileDescriptorSet(this);
188 }
189
Jon Skeetf3504cf2015-04-28 14:49:49 +0100190 public const int FileFieldNumber = 1;
Jon Skeet9c888fa2015-07-14 11:13:52 +0100191 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FileDescriptorProto> _repeated_file_codec
192 = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.FileDescriptorProto.Parser);
193 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> file_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto>();
194 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> File {
Jon Skeetf3504cf2015-04-28 14:49:49 +0100195 get { return file_; }
196 }
Jon Skeete38294a2015-06-09 19:30:44 +0100197
198 public override bool Equals(object other) {
199 return Equals(other as FileDescriptorSet);
Jon Skeetf3504cf2015-04-28 14:49:49 +0100200 }
201
Jon Skeete38294a2015-06-09 19:30:44 +0100202 public bool Equals(FileDescriptorSet other) {
203 if (ReferenceEquals(other, null)) {
204 return false;
205 }
206 if (ReferenceEquals(other, this)) {
Jon Skeetf3504cf2015-04-28 14:49:49 +0100207 return true;
208 }
Jon Skeete38294a2015-06-09 19:30:44 +0100209 if(!file_.Equals(other.file_)) return false;
210 return true;
Jon Skeetf3504cf2015-04-28 14:49:49 +0100211 }
212
Jon Skeete38294a2015-06-09 19:30:44 +0100213 public override int GetHashCode() {
Jon Skeete6fc9772015-06-26 10:32:50 +0100214 int hash = 1;
Jon Skeete38294a2015-06-09 19:30:44 +0100215 hash ^= file_.GetHashCode();
216 return hash;
Jon Skeetf3504cf2015-04-28 14:49:49 +0100217 }
218
Jon Skeet5b9288e2015-07-03 12:45:36 +0100219 public override string ToString() {
220 return pb::JsonFormatter.Default.Format(this);
221 }
222
Jon Skeet96ddf012015-06-12 09:53:12 +0100223 public void WriteTo(pb::CodedOutputStream output) {
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100224 file_.WriteTo(output, _repeated_file_codec);
Jon Skeetf3504cf2015-04-28 14:49:49 +0100225 }
226
Jon Skeete38294a2015-06-09 19:30:44 +0100227 public int CalculateSize() {
228 int size = 0;
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100229 size += file_.CalculateSize(_repeated_file_codec);
Jon Skeetf3504cf2015-04-28 14:49:49 +0100230 return size;
231 }
Jon Skeet3e7d70c2015-06-25 12:08:55 +0100232
Jon Skeete38294a2015-06-09 19:30:44 +0100233 public void MergeFrom(FileDescriptorSet other) {
234 if (other == null) {
235 return;
236 }
237 file_.Add(other.file_);
Jon Skeetf3504cf2015-04-28 14:49:49 +0100238 }
239
Jon Skeet96ddf012015-06-12 09:53:12 +0100240 public void MergeFrom(pb::CodedInputStream input) {
Jon Skeete38294a2015-06-09 19:30:44 +0100241 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +0100242 while ((tag = input.ReadTag()) != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +0100243 switch(tag) {
Jon Skeete38294a2015-06-09 19:30:44 +0100244 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100245 input.SkipLastField();
Jon Skeete38294a2015-06-09 19:30:44 +0100246 break;
247 case 10: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100248 file_.AddEntriesFrom(input, _repeated_file_codec);
Jon Skeete38294a2015-06-09 19:30:44 +0100249 break;
250 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100251 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100252 }
253 }
Jon Skeete38294a2015-06-09 19:30:44 +0100254
Jon Skeetf3504cf2015-04-28 14:49:49 +0100255 }
256
257 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +0100258 internal sealed partial class FileDescriptorProto : pb::IMessage<FileDescriptorProto> {
Jon Skeete38294a2015-06-09 19:30:44 +0100259 private static readonly pb::MessageParser<FileDescriptorProto> _parser = new pb::MessageParser<FileDescriptorProto>(() => new FileDescriptorProto());
260 public static pb::MessageParser<FileDescriptorProto> Parser { get { return _parser; } }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100261
Jon Skeet76940942015-07-14 10:25:40 +0100262 public static pbr::MessageDescriptor Descriptor {
Jon Skeet9c888fa2015-07-14 11:13:52 +0100263 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[1]; }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100264 }
265
Jon Skeet96cffaa2015-07-20 19:25:07 +0100266 pbr::MessageDescriptor pb::IMessage.Descriptor {
267 get { return Descriptor; }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100268 }
269
Jon Skeet53508222015-07-01 17:16:55 +0100270 public FileDescriptorProto() {
271 OnConstruction();
272 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +0100273
Jon Skeet53508222015-07-01 17:16:55 +0100274 partial void OnConstruction();
275
276 public FileDescriptorProto(FileDescriptorProto other) : this() {
Jon Skeet6c1fe6e2015-06-23 11:54:19 +0100277 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.Clone() : null;
288 syntax_ = other.syntax_;
Jon Skeete38294a2015-06-09 19:30:44 +0100289 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +0100290
291 public FileDescriptorProto Clone() {
292 return new FileDescriptorProto(this);
293 }
294
Jon Skeetf3504cf2015-04-28 14:49:49 +0100295 public const int NameFieldNumber = 1;
Jon Skeetf3504cf2015-04-28 14:49:49 +0100296 private string name_ = "";
Jon Skeet53508222015-07-01 17:16:55 +0100297 internal string Name {
Jon Skeetf3504cf2015-04-28 14:49:49 +0100298 get { return name_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +0100299 set {
Jon Skeetd18cc082015-07-30 13:50:02 +0100300 name_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +0100301 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100302 }
303
304 public const int PackageFieldNumber = 2;
Jon Skeetf3504cf2015-04-28 14:49:49 +0100305 private string package_ = "";
Jon Skeet53508222015-07-01 17:16:55 +0100306 internal string Package {
Jon Skeetf3504cf2015-04-28 14:49:49 +0100307 get { return package_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +0100308 set {
Jon Skeetd18cc082015-07-30 13:50:02 +0100309 package_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +0100310 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100311 }
312
313 public const int DependencyFieldNumber = 3;
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100314 private static readonly pb::FieldCodec<string> _repeated_dependency_codec
315 = pb::FieldCodec.ForString(26);
Jon Skeete38294a2015-06-09 19:30:44 +0100316 private readonly pbc::RepeatedField<string> dependency_ = new pbc::RepeatedField<string>();
Jon Skeet53508222015-07-01 17:16:55 +0100317 internal pbc::RepeatedField<string> Dependency {
Jon Skeete38294a2015-06-09 19:30:44 +0100318 get { return dependency_; }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100319 }
320
321 public const int PublicDependencyFieldNumber = 10;
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100322 private static readonly pb::FieldCodec<int> _repeated_publicDependency_codec
323 = pb::FieldCodec.ForInt32(80);
Jon Skeete38294a2015-06-09 19:30:44 +0100324 private readonly pbc::RepeatedField<int> publicDependency_ = new pbc::RepeatedField<int>();
Jon Skeet53508222015-07-01 17:16:55 +0100325 internal pbc::RepeatedField<int> PublicDependency {
Jon Skeete38294a2015-06-09 19:30:44 +0100326 get { return publicDependency_; }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100327 }
328
329 public const int WeakDependencyFieldNumber = 11;
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100330 private static readonly pb::FieldCodec<int> _repeated_weakDependency_codec
331 = pb::FieldCodec.ForInt32(88);
Jon Skeete38294a2015-06-09 19:30:44 +0100332 private readonly pbc::RepeatedField<int> weakDependency_ = new pbc::RepeatedField<int>();
Jon Skeet53508222015-07-01 17:16:55 +0100333 internal pbc::RepeatedField<int> WeakDependency {
Jon Skeete38294a2015-06-09 19:30:44 +0100334 get { return weakDependency_; }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100335 }
336
337 public const int MessageTypeFieldNumber = 4;
Jon Skeet9c888fa2015-07-14 11:13:52 +0100338 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_messageType_codec
339 = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.DescriptorProto.Parser);
340 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> messageType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>();
341 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> MessageType {
Jon Skeetf3504cf2015-04-28 14:49:49 +0100342 get { return messageType_; }
343 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100344
345 public const int EnumTypeFieldNumber = 5;
Jon Skeet9c888fa2015-07-14 11:13:52 +0100346 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec
347 = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser);
348 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>();
349 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType {
Jon Skeetf3504cf2015-04-28 14:49:49 +0100350 get { return enumType_; }
351 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100352
353 public const int ServiceFieldNumber = 6;
Jon Skeet9c888fa2015-07-14 11:13:52 +0100354 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.ServiceDescriptorProto> _repeated_service_codec
355 = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.ServiceDescriptorProto.Parser);
356 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> service_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto>();
357 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> Service {
Jon Skeetf3504cf2015-04-28 14:49:49 +0100358 get { return service_; }
359 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100360
361 public const int ExtensionFieldNumber = 7;
Jon Skeet9c888fa2015-07-14 11:13:52 +0100362 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec
363 = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
364 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
365 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension {
Jon Skeetf3504cf2015-04-28 14:49:49 +0100366 get { return extension_; }
367 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100368
369 public const int OptionsFieldNumber = 8;
Jon Skeet9c888fa2015-07-14 11:13:52 +0100370 private global::Google.Protobuf.Reflection.FileOptions options_;
371 internal global::Google.Protobuf.Reflection.FileOptions Options {
Jon Skeete38294a2015-06-09 19:30:44 +0100372 get { return options_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +0100373 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +0100374 options_ = value;
375 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100376 }
377
378 public const int SourceCodeInfoFieldNumber = 9;
Jon Skeet9c888fa2015-07-14 11:13:52 +0100379 private global::Google.Protobuf.Reflection.SourceCodeInfo sourceCodeInfo_;
380 internal global::Google.Protobuf.Reflection.SourceCodeInfo SourceCodeInfo {
Jon Skeete38294a2015-06-09 19:30:44 +0100381 get { return sourceCodeInfo_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +0100382 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +0100383 sourceCodeInfo_ = value;
384 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100385 }
386
387 public const int SyntaxFieldNumber = 12;
Jon Skeetf3504cf2015-04-28 14:49:49 +0100388 private string syntax_ = "";
Jon Skeet53508222015-07-01 17:16:55 +0100389 internal string Syntax {
Jon Skeetf3504cf2015-04-28 14:49:49 +0100390 get { return syntax_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +0100391 set {
Jon Skeetd18cc082015-07-30 13:50:02 +0100392 syntax_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +0100393 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100394 }
395
Jon Skeete38294a2015-06-09 19:30:44 +0100396 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)) {
Jon Skeetf3504cf2015-04-28 14:49:49 +0100405 return true;
406 }
Jon Skeete38294a2015-06-09 19:30:44 +0100407 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;
Jon Skeetbfee2df2015-06-23 16:09:27 +0100416 if (!object.Equals(Options, other.Options)) return false;
417 if (!object.Equals(SourceCodeInfo, other.SourceCodeInfo)) return false;
418 if (Syntax != other.Syntax) return false;
Jon Skeete38294a2015-06-09 19:30:44 +0100419 return true;
Jon Skeetf3504cf2015-04-28 14:49:49 +0100420 }
421
Jon Skeete38294a2015-06-09 19:30:44 +0100422 public override int GetHashCode() {
Jon Skeete6fc9772015-06-26 10:32:50 +0100423 int hash = 1;
Jon Skeetfb1547b2015-06-12 13:11:54 +0100424 if (Name.Length != 0) hash ^= Name.GetHashCode();
425 if (Package.Length != 0) hash ^= Package.GetHashCode();
Jon Skeete38294a2015-06-09 19:30:44 +0100426 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();
Jon Skeetfb1547b2015-06-12 13:11:54 +0100435 if (Syntax.Length != 0) hash ^= Syntax.GetHashCode();
Jon Skeete38294a2015-06-09 19:30:44 +0100436 return hash;
Jon Skeetf3504cf2015-04-28 14:49:49 +0100437 }
438
Jon Skeet5b9288e2015-07-03 12:45:36 +0100439 public override string ToString() {
440 return pb::JsonFormatter.Default.Format(this);
441 }
442
Jon Skeet96ddf012015-06-12 09:53:12 +0100443 public void WriteTo(pb::CodedOutputStream output) {
Jon Skeetfb1547b2015-06-12 13:11:54 +0100444 if (Name.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +0100445 output.WriteRawTag(10);
446 output.WriteString(Name);
Jon Skeete38294a2015-06-09 19:30:44 +0100447 }
Jon Skeetfb1547b2015-06-12 13:11:54 +0100448 if (Package.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +0100449 output.WriteRawTag(18);
450 output.WriteString(Package);
Jon Skeete38294a2015-06-09 19:30:44 +0100451 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100452 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);
Jon Skeete38294a2015-06-09 19:30:44 +0100457 if (options_ != null) {
Jon Skeet828b7e62015-06-17 14:59:10 +0100458 output.WriteRawTag(66);
459 output.WriteMessage(Options);
Jon Skeete38294a2015-06-09 19:30:44 +0100460 }
461 if (sourceCodeInfo_ != null) {
Jon Skeet828b7e62015-06-17 14:59:10 +0100462 output.WriteRawTag(74);
463 output.WriteMessage(SourceCodeInfo);
Jon Skeete38294a2015-06-09 19:30:44 +0100464 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100465 publicDependency_.WriteTo(output, _repeated_publicDependency_codec);
466 weakDependency_.WriteTo(output, _repeated_weakDependency_codec);
Jon Skeetfb1547b2015-06-12 13:11:54 +0100467 if (Syntax.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +0100468 output.WriteRawTag(98);
469 output.WriteString(Syntax);
Jon Skeetf3504cf2015-04-28 14:49:49 +0100470 }
471 }
472
Jon Skeete38294a2015-06-09 19:30:44 +0100473 public int CalculateSize() {
474 int size = 0;
Jon Skeetfb1547b2015-06-12 13:11:54 +0100475 if (Name.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +0100476 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
Jon Skeetf3504cf2015-04-28 14:49:49 +0100477 }
Jon Skeetfb1547b2015-06-12 13:11:54 +0100478 if (Package.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +0100479 size += 1 + pb::CodedOutputStream.ComputeStringSize(Package);
Jon Skeetf3504cf2015-04-28 14:49:49 +0100480 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100481 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);
Jon Skeete38294a2015-06-09 19:30:44 +0100488 if (options_ != null) {
Jon Skeet828b7e62015-06-17 14:59:10 +0100489 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
Jon Skeetf3504cf2015-04-28 14:49:49 +0100490 }
Jon Skeete38294a2015-06-09 19:30:44 +0100491 if (sourceCodeInfo_ != null) {
Jon Skeet828b7e62015-06-17 14:59:10 +0100492 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceCodeInfo);
Jon Skeetf3504cf2015-04-28 14:49:49 +0100493 }
Jon Skeetfb1547b2015-06-12 13:11:54 +0100494 if (Syntax.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +0100495 size += 1 + pb::CodedOutputStream.ComputeStringSize(Syntax);
Jon Skeetf3504cf2015-04-28 14:49:49 +0100496 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100497 return size;
498 }
Jon Skeet3e7d70c2015-06-25 12:08:55 +0100499
Jon Skeete38294a2015-06-09 19:30:44 +0100500 public void MergeFrom(FileDescriptorProto other) {
501 if (other == null) {
502 return;
503 }
Jon Skeetfb1547b2015-06-12 13:11:54 +0100504 if (other.Name.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +0100505 Name = other.Name;
506 }
Jon Skeetfb1547b2015-06-12 13:11:54 +0100507 if (other.Package.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +0100508 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) {
Jon Skeet9c888fa2015-07-14 11:13:52 +0100519 options_ = new global::Google.Protobuf.Reflection.FileOptions();
Jon Skeete38294a2015-06-09 19:30:44 +0100520 }
521 Options.MergeFrom(other.Options);
522 }
523 if (other.sourceCodeInfo_ != null) {
524 if (sourceCodeInfo_ == null) {
Jon Skeet9c888fa2015-07-14 11:13:52 +0100525 sourceCodeInfo_ = new global::Google.Protobuf.Reflection.SourceCodeInfo();
Jon Skeete38294a2015-06-09 19:30:44 +0100526 }
527 SourceCodeInfo.MergeFrom(other.SourceCodeInfo);
528 }
Jon Skeetfb1547b2015-06-12 13:11:54 +0100529 if (other.Syntax.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +0100530 Syntax = other.Syntax;
531 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100532 }
533
Jon Skeet96ddf012015-06-12 09:53:12 +0100534 public void MergeFrom(pb::CodedInputStream input) {
Jon Skeete38294a2015-06-09 19:30:44 +0100535 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +0100536 while ((tag = input.ReadTag()) != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +0100537 switch(tag) {
Jon Skeete38294a2015-06-09 19:30:44 +0100538 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100539 input.SkipLastField();
Jon Skeete38294a2015-06-09 19:30:44 +0100540 break;
541 case 10: {
Jon Skeetfb1547b2015-06-12 13:11:54 +0100542 Name = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +0100543 break;
544 }
545 case 18: {
Jon Skeetfb1547b2015-06-12 13:11:54 +0100546 Package = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +0100547 break;
548 }
549 case 26: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100550 dependency_.AddEntriesFrom(input, _repeated_dependency_codec);
Jon Skeete38294a2015-06-09 19:30:44 +0100551 break;
552 }
553 case 34: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100554 messageType_.AddEntriesFrom(input, _repeated_messageType_codec);
Jon Skeete38294a2015-06-09 19:30:44 +0100555 break;
556 }
557 case 42: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100558 enumType_.AddEntriesFrom(input, _repeated_enumType_codec);
Jon Skeete38294a2015-06-09 19:30:44 +0100559 break;
560 }
561 case 50: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100562 service_.AddEntriesFrom(input, _repeated_service_codec);
Jon Skeete38294a2015-06-09 19:30:44 +0100563 break;
564 }
565 case 58: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100566 extension_.AddEntriesFrom(input, _repeated_extension_codec);
Jon Skeete38294a2015-06-09 19:30:44 +0100567 break;
568 }
569 case 66: {
570 if (options_ == null) {
Jon Skeet9c888fa2015-07-14 11:13:52 +0100571 options_ = new global::Google.Protobuf.Reflection.FileOptions();
Jon Skeete38294a2015-06-09 19:30:44 +0100572 }
573 input.ReadMessage(options_);
574 break;
575 }
576 case 74: {
577 if (sourceCodeInfo_ == null) {
Jon Skeet9c888fa2015-07-14 11:13:52 +0100578 sourceCodeInfo_ = new global::Google.Protobuf.Reflection.SourceCodeInfo();
Jon Skeete38294a2015-06-09 19:30:44 +0100579 }
580 input.ReadMessage(sourceCodeInfo_);
581 break;
582 }
583 case 82:
584 case 80: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100585 publicDependency_.AddEntriesFrom(input, _repeated_publicDependency_codec);
Jon Skeete38294a2015-06-09 19:30:44 +0100586 break;
587 }
588 case 90:
589 case 88: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100590 weakDependency_.AddEntriesFrom(input, _repeated_weakDependency_codec);
Jon Skeete38294a2015-06-09 19:30:44 +0100591 break;
592 }
593 case 98: {
Jon Skeetfb1547b2015-06-12 13:11:54 +0100594 Syntax = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +0100595 break;
596 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100597 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100598 }
599 }
Jon Skeete38294a2015-06-09 19:30:44 +0100600
Jon Skeetf3504cf2015-04-28 14:49:49 +0100601 }
602
603 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +0100604 internal sealed partial class DescriptorProto : pb::IMessage<DescriptorProto> {
Jon Skeete38294a2015-06-09 19:30:44 +0100605 private static readonly pb::MessageParser<DescriptorProto> _parser = new pb::MessageParser<DescriptorProto>(() => new DescriptorProto());
606 public static pb::MessageParser<DescriptorProto> Parser { get { return _parser; } }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100607
Jon Skeet76940942015-07-14 10:25:40 +0100608 public static pbr::MessageDescriptor Descriptor {
Jon Skeet9c888fa2015-07-14 11:13:52 +0100609 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[2]; }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100610 }
611
Jon Skeet96cffaa2015-07-20 19:25:07 +0100612 pbr::MessageDescriptor pb::IMessage.Descriptor {
613 get { return Descriptor; }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100614 }
615
Jon Skeet53508222015-07-01 17:16:55 +0100616 public DescriptorProto() {
617 OnConstruction();
618 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +0100619
Jon Skeet53508222015-07-01 17:16:55 +0100620 partial void OnConstruction();
621
622 public DescriptorProto(DescriptorProto other) : this() {
Jon Skeet6c1fe6e2015-06-23 11:54:19 +0100623 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();
Jon Skeetf3504cf2015-04-28 14:49:49 +0100633 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +0100634
635 public DescriptorProto Clone() {
636 return new DescriptorProto(this);
637 }
638
Jon Skeetf3504cf2015-04-28 14:49:49 +0100639 public const int NameFieldNumber = 1;
Jon Skeetf3504cf2015-04-28 14:49:49 +0100640 private string name_ = "";
Jon Skeet53508222015-07-01 17:16:55 +0100641 internal string Name {
Jon Skeetf3504cf2015-04-28 14:49:49 +0100642 get { return name_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +0100643 set {
Jon Skeetd18cc082015-07-30 13:50:02 +0100644 name_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +0100645 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100646 }
647
648 public const int FieldFieldNumber = 2;
Jon Skeet9c888fa2015-07-14 11:13:52 +0100649 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_field_codec
650 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
651 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> field_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
652 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Field {
Jon Skeetf3504cf2015-04-28 14:49:49 +0100653 get { return field_; }
654 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100655
656 public const int ExtensionFieldNumber = 6;
Jon Skeet9c888fa2015-07-14 11:13:52 +0100657 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec
658 = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
659 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
660 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension {
Jon Skeetf3504cf2015-04-28 14:49:49 +0100661 get { return extension_; }
662 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100663
664 public const int NestedTypeFieldNumber = 3;
Jon Skeet9c888fa2015-07-14 11:13:52 +0100665 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_nestedType_codec
666 = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.Reflection.DescriptorProto.Parser);
667 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> nestedType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>();
668 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> NestedType {
Jon Skeetf3504cf2015-04-28 14:49:49 +0100669 get { return nestedType_; }
670 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100671
672 public const int EnumTypeFieldNumber = 4;
Jon Skeet9c888fa2015-07-14 11:13:52 +0100673 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec
674 = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser);
675 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>();
676 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType {
Jon Skeetf3504cf2015-04-28 14:49:49 +0100677 get { return enumType_; }
678 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100679
680 public const int ExtensionRangeFieldNumber = 5;
Jon Skeet9c888fa2015-07-14 11:13:52 +0100681 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> _repeated_extensionRange_codec
682 = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange.Parser);
683 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> extensionRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange>();
684 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> ExtensionRange {
Jon Skeetf3504cf2015-04-28 14:49:49 +0100685 get { return extensionRange_; }
686 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100687
688 public const int OneofDeclFieldNumber = 8;
Jon Skeet9c888fa2015-07-14 11:13:52 +0100689 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.OneofDescriptorProto> _repeated_oneofDecl_codec
690 = pb::FieldCodec.ForMessage(66, global::Google.Protobuf.Reflection.OneofDescriptorProto.Parser);
691 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> oneofDecl_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto>();
692 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> OneofDecl {
Jon Skeetf3504cf2015-04-28 14:49:49 +0100693 get { return oneofDecl_; }
694 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100695
696 public const int OptionsFieldNumber = 7;
Jon Skeet9c888fa2015-07-14 11:13:52 +0100697 private global::Google.Protobuf.Reflection.MessageOptions options_;
698 internal global::Google.Protobuf.Reflection.MessageOptions Options {
Jon Skeete38294a2015-06-09 19:30:44 +0100699 get { return options_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +0100700 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +0100701 options_ = value;
702 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100703 }
704
Jie Luoa21a2cf2015-05-29 17:57:05 -0700705 public const int ReservedRangeFieldNumber = 9;
Jon Skeet9c888fa2015-07-14 11:13:52 +0100706 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> _repeated_reservedRange_codec
707 = pb::FieldCodec.ForMessage(74, global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange.Parser);
708 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> reservedRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange>();
709 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> ReservedRange {
Jie Luoa21a2cf2015-05-29 17:57:05 -0700710 get { return reservedRange_; }
711 }
Jie Luoa21a2cf2015-05-29 17:57:05 -0700712
713 public const int ReservedNameFieldNumber = 10;
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100714 private static readonly pb::FieldCodec<string> _repeated_reservedName_codec
715 = pb::FieldCodec.ForString(82);
Jon Skeete38294a2015-06-09 19:30:44 +0100716 private readonly pbc::RepeatedField<string> reservedName_ = new pbc::RepeatedField<string>();
Jon Skeet53508222015-07-01 17:16:55 +0100717 internal pbc::RepeatedField<string> ReservedName {
Jon Skeete38294a2015-06-09 19:30:44 +0100718 get { return reservedName_; }
Jie Luoa21a2cf2015-05-29 17:57:05 -0700719 }
720
Jon Skeete38294a2015-06-09 19:30:44 +0100721 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)) {
Jon Skeetf3504cf2015-04-28 14:49:49 +0100730 return true;
731 }
Jon Skeete38294a2015-06-09 19:30:44 +0100732 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;
Jon Skeetbfee2df2015-06-23 16:09:27 +0100739 if (!object.Equals(Options, other.Options)) return false;
740 if(!reservedRange_.Equals(other.reservedRange_)) return false;
Jon Skeete38294a2015-06-09 19:30:44 +0100741 if(!reservedName_.Equals(other.reservedName_)) return false;
742 return true;
Jon Skeetf3504cf2015-04-28 14:49:49 +0100743 }
744
Jon Skeete38294a2015-06-09 19:30:44 +0100745 public override int GetHashCode() {
Jon Skeete6fc9772015-06-26 10:32:50 +0100746 int hash = 1;
Jon Skeetfb1547b2015-06-12 13:11:54 +0100747 if (Name.Length != 0) hash ^= Name.GetHashCode();
Jon Skeete38294a2015-06-09 19:30:44 +0100748 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;
Jon Skeetf3504cf2015-04-28 14:49:49 +0100758 }
759
Jon Skeet5b9288e2015-07-03 12:45:36 +0100760 public override string ToString() {
761 return pb::JsonFormatter.Default.Format(this);
762 }
763
Jon Skeet96ddf012015-06-12 09:53:12 +0100764 public void WriteTo(pb::CodedOutputStream output) {
Jon Skeetfb1547b2015-06-12 13:11:54 +0100765 if (Name.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +0100766 output.WriteRawTag(10);
767 output.WriteString(Name);
Jon Skeetf3504cf2015-04-28 14:49:49 +0100768 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100769 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);
Jon Skeete38294a2015-06-09 19:30:44 +0100774 if (options_ != null) {
Jon Skeet828b7e62015-06-17 14:59:10 +0100775 output.WriteRawTag(58);
776 output.WriteMessage(Options);
Jon Skeete38294a2015-06-09 19:30:44 +0100777 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100778 oneofDecl_.WriteTo(output, _repeated_oneofDecl_codec);
779 reservedRange_.WriteTo(output, _repeated_reservedRange_codec);
780 reservedName_.WriteTo(output, _repeated_reservedName_codec);
Jon Skeetf3504cf2015-04-28 14:49:49 +0100781 }
782
Jon Skeete38294a2015-06-09 19:30:44 +0100783 public int CalculateSize() {
784 int size = 0;
Jon Skeetfb1547b2015-06-12 13:11:54 +0100785 if (Name.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +0100786 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
Jon Skeetf3504cf2015-04-28 14:49:49 +0100787 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100788 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);
Jon Skeete38294a2015-06-09 19:30:44 +0100794 if (options_ != null) {
Jon Skeet828b7e62015-06-17 14:59:10 +0100795 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
Jon Skeetf3504cf2015-04-28 14:49:49 +0100796 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100797 size += reservedRange_.CalculateSize(_repeated_reservedRange_codec);
798 size += reservedName_.CalculateSize(_repeated_reservedName_codec);
Jon Skeetf3504cf2015-04-28 14:49:49 +0100799 return size;
800 }
Jon Skeet3e7d70c2015-06-25 12:08:55 +0100801
Jon Skeete38294a2015-06-09 19:30:44 +0100802 public void MergeFrom(DescriptorProto other) {
803 if (other == null) {
804 return;
805 }
Jon Skeetfb1547b2015-06-12 13:11:54 +0100806 if (other.Name.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +0100807 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) {
Jon Skeet9c888fa2015-07-14 11:13:52 +0100817 options_ = new global::Google.Protobuf.Reflection.MessageOptions();
Jon Skeete38294a2015-06-09 19:30:44 +0100818 }
819 Options.MergeFrom(other.Options);
820 }
821 reservedRange_.Add(other.reservedRange_);
822 reservedName_.Add(other.reservedName_);
Jon Skeetf3504cf2015-04-28 14:49:49 +0100823 }
824
Jon Skeet96ddf012015-06-12 09:53:12 +0100825 public void MergeFrom(pb::CodedInputStream input) {
Jon Skeete38294a2015-06-09 19:30:44 +0100826 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +0100827 while ((tag = input.ReadTag()) != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +0100828 switch(tag) {
Jon Skeete38294a2015-06-09 19:30:44 +0100829 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100830 input.SkipLastField();
Jon Skeete38294a2015-06-09 19:30:44 +0100831 break;
832 case 10: {
Jon Skeetfb1547b2015-06-12 13:11:54 +0100833 Name = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +0100834 break;
835 }
836 case 18: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100837 field_.AddEntriesFrom(input, _repeated_field_codec);
Jon Skeete38294a2015-06-09 19:30:44 +0100838 break;
839 }
840 case 26: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100841 nestedType_.AddEntriesFrom(input, _repeated_nestedType_codec);
Jon Skeete38294a2015-06-09 19:30:44 +0100842 break;
843 }
844 case 34: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100845 enumType_.AddEntriesFrom(input, _repeated_enumType_codec);
Jon Skeete38294a2015-06-09 19:30:44 +0100846 break;
847 }
848 case 42: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100849 extensionRange_.AddEntriesFrom(input, _repeated_extensionRange_codec);
Jon Skeete38294a2015-06-09 19:30:44 +0100850 break;
851 }
852 case 50: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100853 extension_.AddEntriesFrom(input, _repeated_extension_codec);
Jon Skeete38294a2015-06-09 19:30:44 +0100854 break;
855 }
856 case 58: {
857 if (options_ == null) {
Jon Skeet9c888fa2015-07-14 11:13:52 +0100858 options_ = new global::Google.Protobuf.Reflection.MessageOptions();
Jon Skeete38294a2015-06-09 19:30:44 +0100859 }
860 input.ReadMessage(options_);
861 break;
862 }
863 case 66: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100864 oneofDecl_.AddEntriesFrom(input, _repeated_oneofDecl_codec);
Jon Skeete38294a2015-06-09 19:30:44 +0100865 break;
866 }
867 case 74: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100868 reservedRange_.AddEntriesFrom(input, _repeated_reservedRange_codec);
Jon Skeete38294a2015-06-09 19:30:44 +0100869 break;
870 }
871 case 82: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +0100872 reservedName_.AddEntriesFrom(input, _repeated_reservedName_codec);
Jon Skeete38294a2015-06-09 19:30:44 +0100873 break;
874 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100875 }
Jie Luoa21a2cf2015-05-29 17:57:05 -0700876 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100877 }
Jon Skeetf3504cf2015-04-28 14:49:49 +0100878
879 #region Nested types
880 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
881 public static partial class Types {
Jon Skeete38294a2015-06-09 19:30:44 +0100882 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +0100883 internal sealed partial class ExtensionRange : pb::IMessage<ExtensionRange> {
Jon Skeete38294a2015-06-09 19:30:44 +0100884 private static readonly pb::MessageParser<ExtensionRange> _parser = new pb::MessageParser<ExtensionRange>(() => new ExtensionRange());
885 public static pb::MessageParser<ExtensionRange> Parser { get { return _parser; } }
886
Jon Skeet76940942015-07-14 10:25:40 +0100887 public static pbr::MessageDescriptor Descriptor {
Jon Skeet9c888fa2015-07-14 11:13:52 +0100888 get { return global::Google.Protobuf.Reflection.DescriptorProto.Descriptor.NestedTypes[0]; }
Jon Skeete38294a2015-06-09 19:30:44 +0100889 }
890
Jon Skeet96cffaa2015-07-20 19:25:07 +0100891 pbr::MessageDescriptor pb::IMessage.Descriptor {
892 get { return Descriptor; }
Jon Skeete38294a2015-06-09 19:30:44 +0100893 }
894
Jon Skeet53508222015-07-01 17:16:55 +0100895 public ExtensionRange() {
896 OnConstruction();
897 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +0100898
Jon Skeet53508222015-07-01 17:16:55 +0100899 partial void OnConstruction();
900
901 public ExtensionRange(ExtensionRange other) : this() {
Jon Skeet6c1fe6e2015-06-23 11:54:19 +0100902 start_ = other.start_;
903 end_ = other.end_;
Jon Skeete38294a2015-06-09 19:30:44 +0100904 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +0100905
906 public ExtensionRange Clone() {
907 return new ExtensionRange(this);
908 }
909
Jon Skeete38294a2015-06-09 19:30:44 +0100910 public const int StartFieldNumber = 1;
911 private int start_;
Jon Skeet53508222015-07-01 17:16:55 +0100912 internal int Start {
Jon Skeete38294a2015-06-09 19:30:44 +0100913 get { return start_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +0100914 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +0100915 start_ = value;
916 }
Jon Skeete38294a2015-06-09 19:30:44 +0100917 }
918
Jon Skeete38294a2015-06-09 19:30:44 +0100919 public const int EndFieldNumber = 2;
920 private int end_;
Jon Skeet53508222015-07-01 17:16:55 +0100921 internal int End {
Jon Skeete38294a2015-06-09 19:30:44 +0100922 get { return end_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +0100923 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +0100924 end_ = value;
925 }
Jon Skeete38294a2015-06-09 19:30:44 +0100926 }
927
Jon Skeete38294a2015-06-09 19:30:44 +0100928 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() {
Jon Skeete6fc9772015-06-26 10:32:50 +0100945 int hash = 1;
Jon Skeete38294a2015-06-09 19:30:44 +0100946 if (Start != 0) hash ^= Start.GetHashCode();
947 if (End != 0) hash ^= End.GetHashCode();
948 return hash;
949 }
950
Jon Skeet5b9288e2015-07-03 12:45:36 +0100951 public override string ToString() {
952 return pb::JsonFormatter.Default.Format(this);
953 }
954
Jon Skeet96ddf012015-06-12 09:53:12 +0100955 public void WriteTo(pb::CodedOutputStream output) {
Jon Skeete38294a2015-06-09 19:30:44 +0100956 if (Start != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +0100957 output.WriteRawTag(8);
958 output.WriteInt32(Start);
Jon Skeete38294a2015-06-09 19:30:44 +0100959 }
960 if (End != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +0100961 output.WriteRawTag(16);
962 output.WriteInt32(End);
Jon Skeete38294a2015-06-09 19:30:44 +0100963 }
964 }
965
966 public int CalculateSize() {
967 int size = 0;
968 if (Start != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +0100969 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
Jon Skeete38294a2015-06-09 19:30:44 +0100970 }
971 if (End != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +0100972 size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
Jon Skeete38294a2015-06-09 19:30:44 +0100973 }
974 return size;
975 }
Jon Skeet3e7d70c2015-06-25 12:08:55 +0100976
Jon Skeete38294a2015-06-09 19:30:44 +0100977 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
Jon Skeet96ddf012015-06-12 09:53:12 +0100989 public void MergeFrom(pb::CodedInputStream input) {
Jon Skeete38294a2015-06-09 19:30:44 +0100990 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +0100991 while ((tag = input.ReadTag()) != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +0100992 switch(tag) {
Jon Skeete38294a2015-06-09 19:30:44 +0100993 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100994 input.SkipLastField();
Jon Skeete38294a2015-06-09 19:30:44 +0100995 break;
996 case 8: {
Jon Skeetfb1547b2015-06-12 13:11:54 +0100997 Start = input.ReadInt32();
Jon Skeete38294a2015-06-09 19:30:44 +0100998 break;
999 }
1000 case 16: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01001001 End = input.ReadInt32();
Jon Skeete38294a2015-06-09 19:30:44 +01001002 break;
1003 }
1004 }
1005 }
1006 }
1007
1008 }
1009
1010 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +01001011 internal sealed partial class ReservedRange : pb::IMessage<ReservedRange> {
Jon Skeete38294a2015-06-09 19:30:44 +01001012 private static readonly pb::MessageParser<ReservedRange> _parser = new pb::MessageParser<ReservedRange>(() => new ReservedRange());
1013 public static pb::MessageParser<ReservedRange> Parser { get { return _parser; } }
1014
Jon Skeet76940942015-07-14 10:25:40 +01001015 public static pbr::MessageDescriptor Descriptor {
Jon Skeet9c888fa2015-07-14 11:13:52 +01001016 get { return global::Google.Protobuf.Reflection.DescriptorProto.Descriptor.NestedTypes[1]; }
Jon Skeete38294a2015-06-09 19:30:44 +01001017 }
1018
Jon Skeet96cffaa2015-07-20 19:25:07 +01001019 pbr::MessageDescriptor pb::IMessage.Descriptor {
1020 get { return Descriptor; }
Jon Skeete38294a2015-06-09 19:30:44 +01001021 }
1022
Jon Skeet53508222015-07-01 17:16:55 +01001023 public ReservedRange() {
1024 OnConstruction();
1025 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01001026
Jon Skeet53508222015-07-01 17:16:55 +01001027 partial void OnConstruction();
1028
1029 public ReservedRange(ReservedRange other) : this() {
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01001030 start_ = other.start_;
1031 end_ = other.end_;
Jon Skeete38294a2015-06-09 19:30:44 +01001032 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01001033
1034 public ReservedRange Clone() {
1035 return new ReservedRange(this);
1036 }
1037
Jon Skeete38294a2015-06-09 19:30:44 +01001038 public const int StartFieldNumber = 1;
1039 private int start_;
Jon Skeet53508222015-07-01 17:16:55 +01001040 internal int Start {
Jon Skeete38294a2015-06-09 19:30:44 +01001041 get { return start_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01001042 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01001043 start_ = value;
1044 }
Jon Skeete38294a2015-06-09 19:30:44 +01001045 }
1046
Jon Skeete38294a2015-06-09 19:30:44 +01001047 public const int EndFieldNumber = 2;
1048 private int end_;
Jon Skeet53508222015-07-01 17:16:55 +01001049 internal int End {
Jon Skeete38294a2015-06-09 19:30:44 +01001050 get { return end_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01001051 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01001052 end_ = value;
1053 }
Jon Skeete38294a2015-06-09 19:30:44 +01001054 }
1055
Jon Skeete38294a2015-06-09 19:30:44 +01001056 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() {
Jon Skeete6fc9772015-06-26 10:32:50 +01001073 int hash = 1;
Jon Skeete38294a2015-06-09 19:30:44 +01001074 if (Start != 0) hash ^= Start.GetHashCode();
1075 if (End != 0) hash ^= End.GetHashCode();
1076 return hash;
1077 }
1078
Jon Skeet5b9288e2015-07-03 12:45:36 +01001079 public override string ToString() {
1080 return pb::JsonFormatter.Default.Format(this);
1081 }
1082
Jon Skeet96ddf012015-06-12 09:53:12 +01001083 public void WriteTo(pb::CodedOutputStream output) {
Jon Skeete38294a2015-06-09 19:30:44 +01001084 if (Start != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001085 output.WriteRawTag(8);
1086 output.WriteInt32(Start);
Jon Skeete38294a2015-06-09 19:30:44 +01001087 }
1088 if (End != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001089 output.WriteRawTag(16);
1090 output.WriteInt32(End);
Jon Skeete38294a2015-06-09 19:30:44 +01001091 }
1092 }
1093
1094 public int CalculateSize() {
1095 int size = 0;
1096 if (Start != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001097 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
Jon Skeete38294a2015-06-09 19:30:44 +01001098 }
1099 if (End != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001100 size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
Jon Skeete38294a2015-06-09 19:30:44 +01001101 }
1102 return size;
1103 }
Jon Skeet3e7d70c2015-06-25 12:08:55 +01001104
Jon Skeete38294a2015-06-09 19:30:44 +01001105 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
Jon Skeet96ddf012015-06-12 09:53:12 +01001117 public void MergeFrom(pb::CodedInputStream input) {
Jon Skeete38294a2015-06-09 19:30:44 +01001118 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +01001119 while ((tag = input.ReadTag()) != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01001120 switch(tag) {
Jon Skeete38294a2015-06-09 19:30:44 +01001121 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +01001122 input.SkipLastField();
Jon Skeete38294a2015-06-09 19:30:44 +01001123 break;
1124 case 8: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01001125 Start = input.ReadInt32();
Jon Skeete38294a2015-06-09 19:30:44 +01001126 break;
1127 }
1128 case 16: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01001129 End = input.ReadInt32();
Jon Skeete38294a2015-06-09 19:30:44 +01001130 break;
1131 }
1132 }
1133 }
1134 }
1135
1136 }
1137
1138 }
1139 #endregion
1140
1141 }
1142
1143 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +01001144 internal sealed partial class FieldDescriptorProto : pb::IMessage<FieldDescriptorProto> {
Jon Skeete38294a2015-06-09 19:30:44 +01001145 private static readonly pb::MessageParser<FieldDescriptorProto> _parser = new pb::MessageParser<FieldDescriptorProto>(() => new FieldDescriptorProto());
1146 public static pb::MessageParser<FieldDescriptorProto> Parser { get { return _parser; } }
1147
Jon Skeet76940942015-07-14 10:25:40 +01001148 public static pbr::MessageDescriptor Descriptor {
Jon Skeet9c888fa2015-07-14 11:13:52 +01001149 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[3]; }
Jon Skeete38294a2015-06-09 19:30:44 +01001150 }
1151
Jon Skeet96cffaa2015-07-20 19:25:07 +01001152 pbr::MessageDescriptor pb::IMessage.Descriptor {
1153 get { return Descriptor; }
Jon Skeete38294a2015-06-09 19:30:44 +01001154 }
1155
Jon Skeet53508222015-07-01 17:16:55 +01001156 public FieldDescriptorProto() {
1157 OnConstruction();
1158 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01001159
Jon Skeet53508222015-07-01 17:16:55 +01001160 partial void OnConstruction();
1161
1162 public FieldDescriptorProto(FieldDescriptorProto other) : this() {
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01001163 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;
Jon Skeete38294a2015-06-09 19:30:44 +01001172 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01001173
1174 public FieldDescriptorProto Clone() {
1175 return new FieldDescriptorProto(this);
1176 }
1177
Jon Skeete38294a2015-06-09 19:30:44 +01001178 public const int NameFieldNumber = 1;
1179 private string name_ = "";
Jon Skeet53508222015-07-01 17:16:55 +01001180 internal string Name {
Jon Skeete38294a2015-06-09 19:30:44 +01001181 get { return name_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01001182 set {
Jon Skeetd18cc082015-07-30 13:50:02 +01001183 name_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +01001184 }
Jon Skeete38294a2015-06-09 19:30:44 +01001185 }
1186
Jon Skeete38294a2015-06-09 19:30:44 +01001187 public const int NumberFieldNumber = 3;
1188 private int number_;
Jon Skeet53508222015-07-01 17:16:55 +01001189 internal int Number {
Jon Skeete38294a2015-06-09 19:30:44 +01001190 get { return number_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01001191 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01001192 number_ = value;
1193 }
Jon Skeete38294a2015-06-09 19:30:44 +01001194 }
1195
Jon Skeete38294a2015-06-09 19:30:44 +01001196 public const int LabelFieldNumber = 4;
Jon Skeet9c888fa2015-07-14 11:13:52 +01001197 private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label label_ = global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label.LABEL_OPTIONAL;
1198 internal global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label Label {
Jon Skeete38294a2015-06-09 19:30:44 +01001199 get { return label_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01001200 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01001201 label_ = value;
1202 }
Jon Skeete38294a2015-06-09 19:30:44 +01001203 }
1204
Jon Skeete38294a2015-06-09 19:30:44 +01001205 public const int TypeFieldNumber = 5;
Jon Skeet9c888fa2015-07-14 11:13:52 +01001206 private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type type_ = global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type.TYPE_DOUBLE;
1207 internal global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type Type {
Jon Skeete38294a2015-06-09 19:30:44 +01001208 get { return type_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01001209 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01001210 type_ = value;
1211 }
Jon Skeete38294a2015-06-09 19:30:44 +01001212 }
1213
Jon Skeete38294a2015-06-09 19:30:44 +01001214 public const int TypeNameFieldNumber = 6;
1215 private string typeName_ = "";
Jon Skeet53508222015-07-01 17:16:55 +01001216 internal string TypeName {
Jon Skeete38294a2015-06-09 19:30:44 +01001217 get { return typeName_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01001218 set {
Jon Skeetd18cc082015-07-30 13:50:02 +01001219 typeName_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +01001220 }
Jon Skeete38294a2015-06-09 19:30:44 +01001221 }
1222
Jon Skeete38294a2015-06-09 19:30:44 +01001223 public const int ExtendeeFieldNumber = 2;
1224 private string extendee_ = "";
Jon Skeet53508222015-07-01 17:16:55 +01001225 internal string Extendee {
Jon Skeete38294a2015-06-09 19:30:44 +01001226 get { return extendee_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01001227 set {
Jon Skeetd18cc082015-07-30 13:50:02 +01001228 extendee_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +01001229 }
Jon Skeete38294a2015-06-09 19:30:44 +01001230 }
1231
Jon Skeete38294a2015-06-09 19:30:44 +01001232 public const int DefaultValueFieldNumber = 7;
1233 private string defaultValue_ = "";
Jon Skeet53508222015-07-01 17:16:55 +01001234 internal string DefaultValue {
Jon Skeete38294a2015-06-09 19:30:44 +01001235 get { return defaultValue_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01001236 set {
Jon Skeetd18cc082015-07-30 13:50:02 +01001237 defaultValue_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +01001238 }
Jon Skeete38294a2015-06-09 19:30:44 +01001239 }
1240
Jon Skeete38294a2015-06-09 19:30:44 +01001241 public const int OneofIndexFieldNumber = 9;
1242 private int oneofIndex_;
Jon Skeet53508222015-07-01 17:16:55 +01001243 internal int OneofIndex {
Jon Skeete38294a2015-06-09 19:30:44 +01001244 get { return oneofIndex_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01001245 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01001246 oneofIndex_ = value;
1247 }
Jon Skeete38294a2015-06-09 19:30:44 +01001248 }
1249
Jon Skeete38294a2015-06-09 19:30:44 +01001250 public const int OptionsFieldNumber = 8;
Jon Skeet9c888fa2015-07-14 11:13:52 +01001251 private global::Google.Protobuf.Reflection.FieldOptions options_;
1252 internal global::Google.Protobuf.Reflection.FieldOptions Options {
Jon Skeete38294a2015-06-09 19:30:44 +01001253 get { return options_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01001254 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01001255 options_ = value;
1256 }
Jon Skeete38294a2015-06-09 19:30:44 +01001257 }
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;
Jon Skeetbfee2df2015-06-23 16:09:27 +01001278 if (!object.Equals(Options, other.Options)) return false;
1279 return true;
Jon Skeete38294a2015-06-09 19:30:44 +01001280 }
1281
1282 public override int GetHashCode() {
Jon Skeete6fc9772015-06-26 10:32:50 +01001283 int hash = 1;
Jon Skeetfb1547b2015-06-12 13:11:54 +01001284 if (Name.Length != 0) hash ^= Name.GetHashCode();
Jon Skeete38294a2015-06-09 19:30:44 +01001285 if (Number != 0) hash ^= Number.GetHashCode();
Jon Skeet9c888fa2015-07-14 11:13:52 +01001286 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();
Jon Skeetfb1547b2015-06-12 13:11:54 +01001288 if (TypeName.Length != 0) hash ^= TypeName.GetHashCode();
1289 if (Extendee.Length != 0) hash ^= Extendee.GetHashCode();
1290 if (DefaultValue.Length != 0) hash ^= DefaultValue.GetHashCode();
Jon Skeete38294a2015-06-09 19:30:44 +01001291 if (OneofIndex != 0) hash ^= OneofIndex.GetHashCode();
1292 if (options_ != null) hash ^= Options.GetHashCode();
1293 return hash;
1294 }
1295
Jon Skeet5b9288e2015-07-03 12:45:36 +01001296 public override string ToString() {
1297 return pb::JsonFormatter.Default.Format(this);
1298 }
1299
Jon Skeet96ddf012015-06-12 09:53:12 +01001300 public void WriteTo(pb::CodedOutputStream output) {
Jon Skeetfb1547b2015-06-12 13:11:54 +01001301 if (Name.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001302 output.WriteRawTag(10);
1303 output.WriteString(Name);
Jon Skeete38294a2015-06-09 19:30:44 +01001304 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01001305 if (Extendee.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001306 output.WriteRawTag(18);
1307 output.WriteString(Extendee);
Jon Skeete38294a2015-06-09 19:30:44 +01001308 }
1309 if (Number != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001310 output.WriteRawTag(24);
1311 output.WriteInt32(Number);
Jon Skeete38294a2015-06-09 19:30:44 +01001312 }
Jon Skeet9c888fa2015-07-14 11:13:52 +01001313 if (Label != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label.LABEL_OPTIONAL) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001314 output.WriteRawTag(32);
1315 output.WriteEnum((int) Label);
Jon Skeete38294a2015-06-09 19:30:44 +01001316 }
Jon Skeet9c888fa2015-07-14 11:13:52 +01001317 if (Type != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type.TYPE_DOUBLE) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001318 output.WriteRawTag(40);
1319 output.WriteEnum((int) Type);
Jon Skeete38294a2015-06-09 19:30:44 +01001320 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01001321 if (TypeName.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001322 output.WriteRawTag(50);
1323 output.WriteString(TypeName);
Jon Skeete38294a2015-06-09 19:30:44 +01001324 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01001325 if (DefaultValue.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001326 output.WriteRawTag(58);
1327 output.WriteString(DefaultValue);
Jon Skeete38294a2015-06-09 19:30:44 +01001328 }
1329 if (options_ != null) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001330 output.WriteRawTag(66);
1331 output.WriteMessage(Options);
Jon Skeete38294a2015-06-09 19:30:44 +01001332 }
1333 if (OneofIndex != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001334 output.WriteRawTag(72);
1335 output.WriteInt32(OneofIndex);
Jon Skeete38294a2015-06-09 19:30:44 +01001336 }
1337 }
1338
1339 public int CalculateSize() {
1340 int size = 0;
Jon Skeetfb1547b2015-06-12 13:11:54 +01001341 if (Name.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001342 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
Jon Skeete38294a2015-06-09 19:30:44 +01001343 }
1344 if (Number != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001345 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
Jon Skeete38294a2015-06-09 19:30:44 +01001346 }
Jon Skeet9c888fa2015-07-14 11:13:52 +01001347 if (Label != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label.LABEL_OPTIONAL) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001348 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Label);
Jon Skeete38294a2015-06-09 19:30:44 +01001349 }
Jon Skeet9c888fa2015-07-14 11:13:52 +01001350 if (Type != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type.TYPE_DOUBLE) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001351 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
Jon Skeete38294a2015-06-09 19:30:44 +01001352 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01001353 if (TypeName.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001354 size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeName);
Jon Skeete38294a2015-06-09 19:30:44 +01001355 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01001356 if (Extendee.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001357 size += 1 + pb::CodedOutputStream.ComputeStringSize(Extendee);
Jon Skeete38294a2015-06-09 19:30:44 +01001358 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01001359 if (DefaultValue.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001360 size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultValue);
Jon Skeete38294a2015-06-09 19:30:44 +01001361 }
1362 if (OneofIndex != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001363 size += 1 + pb::CodedOutputStream.ComputeInt32Size(OneofIndex);
Jon Skeete38294a2015-06-09 19:30:44 +01001364 }
1365 if (options_ != null) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001366 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
Jon Skeete38294a2015-06-09 19:30:44 +01001367 }
1368 return size;
1369 }
Jon Skeet3e7d70c2015-06-25 12:08:55 +01001370
Jon Skeete38294a2015-06-09 19:30:44 +01001371 public void MergeFrom(FieldDescriptorProto other) {
1372 if (other == null) {
1373 return;
1374 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01001375 if (other.Name.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01001376 Name = other.Name;
1377 }
1378 if (other.Number != 0) {
1379 Number = other.Number;
1380 }
Jon Skeet9c888fa2015-07-14 11:13:52 +01001381 if (other.Label != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label.LABEL_OPTIONAL) {
Jon Skeete38294a2015-06-09 19:30:44 +01001382 Label = other.Label;
1383 }
Jon Skeet9c888fa2015-07-14 11:13:52 +01001384 if (other.Type != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type.TYPE_DOUBLE) {
Jon Skeete38294a2015-06-09 19:30:44 +01001385 Type = other.Type;
1386 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01001387 if (other.TypeName.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01001388 TypeName = other.TypeName;
1389 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01001390 if (other.Extendee.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01001391 Extendee = other.Extendee;
1392 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01001393 if (other.DefaultValue.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01001394 DefaultValue = other.DefaultValue;
1395 }
1396 if (other.OneofIndex != 0) {
1397 OneofIndex = other.OneofIndex;
1398 }
1399 if (other.options_ != null) {
1400 if (options_ == null) {
Jon Skeet9c888fa2015-07-14 11:13:52 +01001401 options_ = new global::Google.Protobuf.Reflection.FieldOptions();
Jon Skeete38294a2015-06-09 19:30:44 +01001402 }
1403 Options.MergeFrom(other.Options);
1404 }
1405 }
1406
Jon Skeet96ddf012015-06-12 09:53:12 +01001407 public void MergeFrom(pb::CodedInputStream input) {
Jon Skeete38294a2015-06-09 19:30:44 +01001408 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +01001409 while ((tag = input.ReadTag()) != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01001410 switch(tag) {
Jon Skeete38294a2015-06-09 19:30:44 +01001411 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +01001412 input.SkipLastField();
Jon Skeete38294a2015-06-09 19:30:44 +01001413 break;
1414 case 10: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01001415 Name = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +01001416 break;
1417 }
1418 case 18: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01001419 Extendee = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +01001420 break;
1421 }
1422 case 24: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01001423 Number = input.ReadInt32();
Jon Skeete38294a2015-06-09 19:30:44 +01001424 break;
1425 }
1426 case 32: {
Jon Skeet9c888fa2015-07-14 11:13:52 +01001427 label_ = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label) input.ReadEnum();
Jon Skeet96ddf012015-06-12 09:53:12 +01001428 break;
Jon Skeete38294a2015-06-09 19:30:44 +01001429 }
1430 case 40: {
Jon Skeet9c888fa2015-07-14 11:13:52 +01001431 type_ = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type) input.ReadEnum();
Jon Skeet96ddf012015-06-12 09:53:12 +01001432 break;
Jon Skeete38294a2015-06-09 19:30:44 +01001433 }
1434 case 50: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01001435 TypeName = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +01001436 break;
1437 }
1438 case 58: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01001439 DefaultValue = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +01001440 break;
1441 }
1442 case 66: {
1443 if (options_ == null) {
Jon Skeet9c888fa2015-07-14 11:13:52 +01001444 options_ = new global::Google.Protobuf.Reflection.FieldOptions();
Jon Skeete38294a2015-06-09 19:30:44 +01001445 }
1446 input.ReadMessage(options_);
1447 break;
1448 }
1449 case 72: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01001450 OneofIndex = input.ReadInt32();
Jon Skeete38294a2015-06-09 19:30:44 +01001451 break;
1452 }
1453 }
1454 }
1455 }
1456
1457 #region Nested types
1458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1459 public static partial class Types {
Jon Skeet53508222015-07-01 17:16:55 +01001460 internal enum Type {
Jon Skeetf3504cf2015-04-28 14:49:49 +01001461 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
Jon Skeet53508222015-07-01 17:16:55 +01001481 internal enum Label {
Jon Skeetf3504cf2015-04-28 14:49:49 +01001482 LABEL_OPTIONAL = 1,
1483 LABEL_REQUIRED = 2,
1484 LABEL_REPEATED = 3,
1485 }
1486
1487 }
1488 #endregion
1489
Jon Skeetf3504cf2015-04-28 14:49:49 +01001490 }
1491
1492 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +01001493 internal sealed partial class OneofDescriptorProto : pb::IMessage<OneofDescriptorProto> {
Jon Skeete38294a2015-06-09 19:30:44 +01001494 private static readonly pb::MessageParser<OneofDescriptorProto> _parser = new pb::MessageParser<OneofDescriptorProto>(() => new OneofDescriptorProto());
1495 public static pb::MessageParser<OneofDescriptorProto> Parser { get { return _parser; } }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001496
Jon Skeet76940942015-07-14 10:25:40 +01001497 public static pbr::MessageDescriptor Descriptor {
Jon Skeet9c888fa2015-07-14 11:13:52 +01001498 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[4]; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001499 }
1500
Jon Skeet96cffaa2015-07-20 19:25:07 +01001501 pbr::MessageDescriptor pb::IMessage.Descriptor {
1502 get { return Descriptor; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001503 }
1504
Jon Skeet53508222015-07-01 17:16:55 +01001505 public OneofDescriptorProto() {
1506 OnConstruction();
1507 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01001508
Jon Skeet53508222015-07-01 17:16:55 +01001509 partial void OnConstruction();
1510
1511 public OneofDescriptorProto(OneofDescriptorProto other) : this() {
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01001512 name_ = other.name_;
Jon Skeete38294a2015-06-09 19:30:44 +01001513 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01001514
1515 public OneofDescriptorProto Clone() {
1516 return new OneofDescriptorProto(this);
1517 }
1518
Jon Skeetf3504cf2015-04-28 14:49:49 +01001519 public const int NameFieldNumber = 1;
Jon Skeetf3504cf2015-04-28 14:49:49 +01001520 private string name_ = "";
Jon Skeet53508222015-07-01 17:16:55 +01001521 internal string Name {
Jon Skeetf3504cf2015-04-28 14:49:49 +01001522 get { return name_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01001523 set {
Jon Skeetd18cc082015-07-30 13:50:02 +01001524 name_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +01001525 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001526 }
1527
Jon Skeete38294a2015-06-09 19:30:44 +01001528 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)) {
Jon Skeetf3504cf2015-04-28 14:49:49 +01001537 return true;
1538 }
Jon Skeete38294a2015-06-09 19:30:44 +01001539 if (Name != other.Name) return false;
1540 return true;
Jon Skeetf3504cf2015-04-28 14:49:49 +01001541 }
1542
Jon Skeete38294a2015-06-09 19:30:44 +01001543 public override int GetHashCode() {
Jon Skeete6fc9772015-06-26 10:32:50 +01001544 int hash = 1;
Jon Skeetfb1547b2015-06-12 13:11:54 +01001545 if (Name.Length != 0) hash ^= Name.GetHashCode();
Jon Skeete38294a2015-06-09 19:30:44 +01001546 return hash;
Jon Skeetf3504cf2015-04-28 14:49:49 +01001547 }
1548
Jon Skeet5b9288e2015-07-03 12:45:36 +01001549 public override string ToString() {
1550 return pb::JsonFormatter.Default.Format(this);
1551 }
1552
Jon Skeet96ddf012015-06-12 09:53:12 +01001553 public void WriteTo(pb::CodedOutputStream output) {
Jon Skeetfb1547b2015-06-12 13:11:54 +01001554 if (Name.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001555 output.WriteRawTag(10);
1556 output.WriteString(Name);
Jon Skeetf3504cf2015-04-28 14:49:49 +01001557 }
1558 }
1559
Jon Skeete38294a2015-06-09 19:30:44 +01001560 public int CalculateSize() {
1561 int size = 0;
Jon Skeetfb1547b2015-06-12 13:11:54 +01001562 if (Name.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001563 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
Jon Skeetf3504cf2015-04-28 14:49:49 +01001564 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001565 return size;
1566 }
Jon Skeet3e7d70c2015-06-25 12:08:55 +01001567
Jon Skeete38294a2015-06-09 19:30:44 +01001568 public void MergeFrom(OneofDescriptorProto other) {
1569 if (other == null) {
1570 return;
1571 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01001572 if (other.Name.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01001573 Name = other.Name;
1574 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001575 }
1576
Jon Skeet96ddf012015-06-12 09:53:12 +01001577 public void MergeFrom(pb::CodedInputStream input) {
Jon Skeete38294a2015-06-09 19:30:44 +01001578 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +01001579 while ((tag = input.ReadTag()) != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01001580 switch(tag) {
Jon Skeete38294a2015-06-09 19:30:44 +01001581 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +01001582 input.SkipLastField();
Jon Skeete38294a2015-06-09 19:30:44 +01001583 break;
1584 case 10: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01001585 Name = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +01001586 break;
1587 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001588 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001589 }
1590 }
Jon Skeete38294a2015-06-09 19:30:44 +01001591
Jon Skeetf3504cf2015-04-28 14:49:49 +01001592 }
1593
1594 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +01001595 internal sealed partial class EnumDescriptorProto : pb::IMessage<EnumDescriptorProto> {
Jon Skeete38294a2015-06-09 19:30:44 +01001596 private static readonly pb::MessageParser<EnumDescriptorProto> _parser = new pb::MessageParser<EnumDescriptorProto>(() => new EnumDescriptorProto());
1597 public static pb::MessageParser<EnumDescriptorProto> Parser { get { return _parser; } }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001598
Jon Skeet76940942015-07-14 10:25:40 +01001599 public static pbr::MessageDescriptor Descriptor {
Jon Skeet9c888fa2015-07-14 11:13:52 +01001600 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[5]; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001601 }
1602
Jon Skeet96cffaa2015-07-20 19:25:07 +01001603 pbr::MessageDescriptor pb::IMessage.Descriptor {
1604 get { return Descriptor; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001605 }
1606
Jon Skeet53508222015-07-01 17:16:55 +01001607 public EnumDescriptorProto() {
1608 OnConstruction();
1609 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01001610
Jon Skeet53508222015-07-01 17:16:55 +01001611 partial void OnConstruction();
1612
1613 public EnumDescriptorProto(EnumDescriptorProto other) : this() {
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01001614 name_ = other.name_;
1615 value_ = other.value_.Clone();
1616 Options = other.options_ != null ? other.Options.Clone() : null;
Jon Skeete38294a2015-06-09 19:30:44 +01001617 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01001618
1619 public EnumDescriptorProto Clone() {
1620 return new EnumDescriptorProto(this);
1621 }
1622
Jon Skeetf3504cf2015-04-28 14:49:49 +01001623 public const int NameFieldNumber = 1;
Jon Skeetf3504cf2015-04-28 14:49:49 +01001624 private string name_ = "";
Jon Skeet53508222015-07-01 17:16:55 +01001625 internal string Name {
Jon Skeetf3504cf2015-04-28 14:49:49 +01001626 get { return name_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01001627 set {
Jon Skeetd18cc082015-07-30 13:50:02 +01001628 name_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +01001629 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001630 }
1631
1632 public const int ValueFieldNumber = 2;
Jon Skeet9c888fa2015-07-14 11:13:52 +01001633 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> _repeated_value_codec
1634 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser);
1635 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> value_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto>();
1636 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> Value {
Jon Skeetf3504cf2015-04-28 14:49:49 +01001637 get { return value_; }
1638 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001639
1640 public const int OptionsFieldNumber = 3;
Jon Skeet9c888fa2015-07-14 11:13:52 +01001641 private global::Google.Protobuf.Reflection.EnumOptions options_;
1642 internal global::Google.Protobuf.Reflection.EnumOptions Options {
Jon Skeete38294a2015-06-09 19:30:44 +01001643 get { return options_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01001644 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01001645 options_ = value;
1646 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001647 }
1648
Jon Skeete38294a2015-06-09 19:30:44 +01001649 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)) {
Jon Skeetf3504cf2015-04-28 14:49:49 +01001658 return true;
1659 }
Jon Skeete38294a2015-06-09 19:30:44 +01001660 if (Name != other.Name) return false;
1661 if(!value_.Equals(other.value_)) return false;
Jon Skeetbfee2df2015-06-23 16:09:27 +01001662 if (!object.Equals(Options, other.Options)) return false;
1663 return true;
Jon Skeetf3504cf2015-04-28 14:49:49 +01001664 }
1665
Jon Skeete38294a2015-06-09 19:30:44 +01001666 public override int GetHashCode() {
Jon Skeete6fc9772015-06-26 10:32:50 +01001667 int hash = 1;
Jon Skeetfb1547b2015-06-12 13:11:54 +01001668 if (Name.Length != 0) hash ^= Name.GetHashCode();
Jon Skeete38294a2015-06-09 19:30:44 +01001669 hash ^= value_.GetHashCode();
1670 if (options_ != null) hash ^= Options.GetHashCode();
1671 return hash;
Jon Skeetf3504cf2015-04-28 14:49:49 +01001672 }
1673
Jon Skeet5b9288e2015-07-03 12:45:36 +01001674 public override string ToString() {
1675 return pb::JsonFormatter.Default.Format(this);
1676 }
1677
Jon Skeet96ddf012015-06-12 09:53:12 +01001678 public void WriteTo(pb::CodedOutputStream output) {
Jon Skeetfb1547b2015-06-12 13:11:54 +01001679 if (Name.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001680 output.WriteRawTag(10);
1681 output.WriteString(Name);
Jon Skeete38294a2015-06-09 19:30:44 +01001682 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +01001683 value_.WriteTo(output, _repeated_value_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01001684 if (options_ != null) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001685 output.WriteRawTag(26);
1686 output.WriteMessage(Options);
Jon Skeetf3504cf2015-04-28 14:49:49 +01001687 }
1688 }
1689
Jon Skeete38294a2015-06-09 19:30:44 +01001690 public int CalculateSize() {
1691 int size = 0;
Jon Skeetfb1547b2015-06-12 13:11:54 +01001692 if (Name.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001693 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
Jon Skeetf3504cf2015-04-28 14:49:49 +01001694 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +01001695 size += value_.CalculateSize(_repeated_value_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01001696 if (options_ != null) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001697 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
Jon Skeetf3504cf2015-04-28 14:49:49 +01001698 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001699 return size;
1700 }
Jon Skeet3e7d70c2015-06-25 12:08:55 +01001701
Jon Skeete38294a2015-06-09 19:30:44 +01001702 public void MergeFrom(EnumDescriptorProto other) {
1703 if (other == null) {
1704 return;
Jon Skeetf3504cf2015-04-28 14:49:49 +01001705 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01001706 if (other.Name.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01001707 Name = other.Name;
Jon Skeetf3504cf2015-04-28 14:49:49 +01001708 }
Jon Skeete38294a2015-06-09 19:30:44 +01001709 value_.Add(other.value_);
1710 if (other.options_ != null) {
1711 if (options_ == null) {
Jon Skeet9c888fa2015-07-14 11:13:52 +01001712 options_ = new global::Google.Protobuf.Reflection.EnumOptions();
Jon Skeetf3504cf2015-04-28 14:49:49 +01001713 }
Jon Skeete38294a2015-06-09 19:30:44 +01001714 Options.MergeFrom(other.Options);
Jon Skeetf3504cf2015-04-28 14:49:49 +01001715 }
Jon Skeete38294a2015-06-09 19:30:44 +01001716 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001717
Jon Skeet96ddf012015-06-12 09:53:12 +01001718 public void MergeFrom(pb::CodedInputStream input) {
Jon Skeete38294a2015-06-09 19:30:44 +01001719 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +01001720 while ((tag = input.ReadTag()) != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01001721 switch(tag) {
Jon Skeete38294a2015-06-09 19:30:44 +01001722 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +01001723 input.SkipLastField();
Jon Skeete38294a2015-06-09 19:30:44 +01001724 break;
1725 case 10: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01001726 Name = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +01001727 break;
1728 }
1729 case 18: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +01001730 value_.AddEntriesFrom(input, _repeated_value_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01001731 break;
1732 }
1733 case 26: {
1734 if (options_ == null) {
Jon Skeet9c888fa2015-07-14 11:13:52 +01001735 options_ = new global::Google.Protobuf.Reflection.EnumOptions();
Jon Skeete38294a2015-06-09 19:30:44 +01001736 }
1737 input.ReadMessage(options_);
1738 break;
1739 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001740 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001741 }
1742 }
Jon Skeete38294a2015-06-09 19:30:44 +01001743
Jon Skeetf3504cf2015-04-28 14:49:49 +01001744 }
1745
1746 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +01001747 internal sealed partial class EnumValueDescriptorProto : pb::IMessage<EnumValueDescriptorProto> {
Jon Skeete38294a2015-06-09 19:30:44 +01001748 private static readonly pb::MessageParser<EnumValueDescriptorProto> _parser = new pb::MessageParser<EnumValueDescriptorProto>(() => new EnumValueDescriptorProto());
1749 public static pb::MessageParser<EnumValueDescriptorProto> Parser { get { return _parser; } }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001750
Jon Skeet76940942015-07-14 10:25:40 +01001751 public static pbr::MessageDescriptor Descriptor {
Jon Skeet9c888fa2015-07-14 11:13:52 +01001752 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[6]; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001753 }
1754
Jon Skeet96cffaa2015-07-20 19:25:07 +01001755 pbr::MessageDescriptor pb::IMessage.Descriptor {
1756 get { return Descriptor; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001757 }
1758
Jon Skeet53508222015-07-01 17:16:55 +01001759 public EnumValueDescriptorProto() {
1760 OnConstruction();
1761 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01001762
Jon Skeet53508222015-07-01 17:16:55 +01001763 partial void OnConstruction();
1764
1765 public EnumValueDescriptorProto(EnumValueDescriptorProto other) : this() {
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01001766 name_ = other.name_;
1767 number_ = other.number_;
1768 Options = other.options_ != null ? other.Options.Clone() : null;
Jon Skeete38294a2015-06-09 19:30:44 +01001769 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01001770
1771 public EnumValueDescriptorProto Clone() {
1772 return new EnumValueDescriptorProto(this);
1773 }
1774
Jon Skeetf3504cf2015-04-28 14:49:49 +01001775 public const int NameFieldNumber = 1;
Jon Skeetf3504cf2015-04-28 14:49:49 +01001776 private string name_ = "";
Jon Skeet53508222015-07-01 17:16:55 +01001777 internal string Name {
Jon Skeetf3504cf2015-04-28 14:49:49 +01001778 get { return name_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01001779 set {
Jon Skeetd18cc082015-07-30 13:50:02 +01001780 name_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +01001781 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001782 }
1783
1784 public const int NumberFieldNumber = 2;
Jon Skeetf3504cf2015-04-28 14:49:49 +01001785 private int number_;
Jon Skeet53508222015-07-01 17:16:55 +01001786 internal int Number {
Jon Skeetf3504cf2015-04-28 14:49:49 +01001787 get { return number_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01001788 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01001789 number_ = value;
1790 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001791 }
1792
1793 public const int OptionsFieldNumber = 3;
Jon Skeet9c888fa2015-07-14 11:13:52 +01001794 private global::Google.Protobuf.Reflection.EnumValueOptions options_;
1795 internal global::Google.Protobuf.Reflection.EnumValueOptions Options {
Jon Skeete38294a2015-06-09 19:30:44 +01001796 get { return options_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01001797 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01001798 options_ = value;
1799 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001800 }
1801
Jon Skeete38294a2015-06-09 19:30:44 +01001802 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)) {
Jon Skeetf3504cf2015-04-28 14:49:49 +01001811 return true;
1812 }
Jon Skeete38294a2015-06-09 19:30:44 +01001813 if (Name != other.Name) return false;
1814 if (Number != other.Number) return false;
Jon Skeetbfee2df2015-06-23 16:09:27 +01001815 if (!object.Equals(Options, other.Options)) return false;
1816 return true;
Jon Skeetf3504cf2015-04-28 14:49:49 +01001817 }
1818
Jon Skeete38294a2015-06-09 19:30:44 +01001819 public override int GetHashCode() {
Jon Skeete6fc9772015-06-26 10:32:50 +01001820 int hash = 1;
Jon Skeetfb1547b2015-06-12 13:11:54 +01001821 if (Name.Length != 0) hash ^= Name.GetHashCode();
Jon Skeete38294a2015-06-09 19:30:44 +01001822 if (Number != 0) hash ^= Number.GetHashCode();
1823 if (options_ != null) hash ^= Options.GetHashCode();
1824 return hash;
Jon Skeetf3504cf2015-04-28 14:49:49 +01001825 }
1826
Jon Skeet5b9288e2015-07-03 12:45:36 +01001827 public override string ToString() {
1828 return pb::JsonFormatter.Default.Format(this);
1829 }
1830
Jon Skeet96ddf012015-06-12 09:53:12 +01001831 public void WriteTo(pb::CodedOutputStream output) {
Jon Skeetfb1547b2015-06-12 13:11:54 +01001832 if (Name.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001833 output.WriteRawTag(10);
1834 output.WriteString(Name);
Jon Skeete38294a2015-06-09 19:30:44 +01001835 }
1836 if (Number != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001837 output.WriteRawTag(16);
1838 output.WriteInt32(Number);
Jon Skeete38294a2015-06-09 19:30:44 +01001839 }
1840 if (options_ != null) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001841 output.WriteRawTag(26);
1842 output.WriteMessage(Options);
Jon Skeetf3504cf2015-04-28 14:49:49 +01001843 }
1844 }
1845
Jon Skeete38294a2015-06-09 19:30:44 +01001846 public int CalculateSize() {
1847 int size = 0;
Jon Skeetfb1547b2015-06-12 13:11:54 +01001848 if (Name.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001849 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
Jon Skeetf3504cf2015-04-28 14:49:49 +01001850 }
Jon Skeete38294a2015-06-09 19:30:44 +01001851 if (Number != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001852 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
Jon Skeetf3504cf2015-04-28 14:49:49 +01001853 }
Jon Skeete38294a2015-06-09 19:30:44 +01001854 if (options_ != null) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001855 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
Jon Skeetf3504cf2015-04-28 14:49:49 +01001856 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001857 return size;
1858 }
Jon Skeet3e7d70c2015-06-25 12:08:55 +01001859
Jon Skeete38294a2015-06-09 19:30:44 +01001860 public void MergeFrom(EnumValueDescriptorProto other) {
1861 if (other == null) {
1862 return;
Jon Skeetf3504cf2015-04-28 14:49:49 +01001863 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01001864 if (other.Name.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01001865 Name = other.Name;
Jon Skeetf3504cf2015-04-28 14:49:49 +01001866 }
Jon Skeete38294a2015-06-09 19:30:44 +01001867 if (other.Number != 0) {
1868 Number = other.Number;
Jon Skeetf3504cf2015-04-28 14:49:49 +01001869 }
Jon Skeete38294a2015-06-09 19:30:44 +01001870 if (other.options_ != null) {
1871 if (options_ == null) {
Jon Skeet9c888fa2015-07-14 11:13:52 +01001872 options_ = new global::Google.Protobuf.Reflection.EnumValueOptions();
Jon Skeetf3504cf2015-04-28 14:49:49 +01001873 }
Jon Skeete38294a2015-06-09 19:30:44 +01001874 Options.MergeFrom(other.Options);
Jon Skeetf3504cf2015-04-28 14:49:49 +01001875 }
Jon Skeete38294a2015-06-09 19:30:44 +01001876 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001877
Jon Skeet96ddf012015-06-12 09:53:12 +01001878 public void MergeFrom(pb::CodedInputStream input) {
Jon Skeete38294a2015-06-09 19:30:44 +01001879 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +01001880 while ((tag = input.ReadTag()) != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01001881 switch(tag) {
Jon Skeete38294a2015-06-09 19:30:44 +01001882 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +01001883 input.SkipLastField();
Jon Skeete38294a2015-06-09 19:30:44 +01001884 break;
1885 case 10: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01001886 Name = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +01001887 break;
1888 }
1889 case 16: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01001890 Number = input.ReadInt32();
Jon Skeete38294a2015-06-09 19:30:44 +01001891 break;
1892 }
1893 case 26: {
1894 if (options_ == null) {
Jon Skeet9c888fa2015-07-14 11:13:52 +01001895 options_ = new global::Google.Protobuf.Reflection.EnumValueOptions();
Jon Skeete38294a2015-06-09 19:30:44 +01001896 }
1897 input.ReadMessage(options_);
1898 break;
1899 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001900 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001901 }
1902 }
Jon Skeete38294a2015-06-09 19:30:44 +01001903
Jon Skeetf3504cf2015-04-28 14:49:49 +01001904 }
1905
1906 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +01001907 internal sealed partial class ServiceDescriptorProto : pb::IMessage<ServiceDescriptorProto> {
Jon Skeete38294a2015-06-09 19:30:44 +01001908 private static readonly pb::MessageParser<ServiceDescriptorProto> _parser = new pb::MessageParser<ServiceDescriptorProto>(() => new ServiceDescriptorProto());
1909 public static pb::MessageParser<ServiceDescriptorProto> Parser { get { return _parser; } }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001910
Jon Skeet76940942015-07-14 10:25:40 +01001911 public static pbr::MessageDescriptor Descriptor {
Jon Skeet9c888fa2015-07-14 11:13:52 +01001912 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[7]; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001913 }
1914
Jon Skeet96cffaa2015-07-20 19:25:07 +01001915 pbr::MessageDescriptor pb::IMessage.Descriptor {
1916 get { return Descriptor; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001917 }
1918
Jon Skeet53508222015-07-01 17:16:55 +01001919 public ServiceDescriptorProto() {
1920 OnConstruction();
1921 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01001922
Jon Skeet53508222015-07-01 17:16:55 +01001923 partial void OnConstruction();
1924
1925 public ServiceDescriptorProto(ServiceDescriptorProto other) : this() {
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01001926 name_ = other.name_;
1927 method_ = other.method_.Clone();
1928 Options = other.options_ != null ? other.Options.Clone() : null;
Jon Skeete38294a2015-06-09 19:30:44 +01001929 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01001930
1931 public ServiceDescriptorProto Clone() {
1932 return new ServiceDescriptorProto(this);
1933 }
1934
Jon Skeetf3504cf2015-04-28 14:49:49 +01001935 public const int NameFieldNumber = 1;
Jon Skeetf3504cf2015-04-28 14:49:49 +01001936 private string name_ = "";
Jon Skeet53508222015-07-01 17:16:55 +01001937 internal string Name {
Jon Skeetf3504cf2015-04-28 14:49:49 +01001938 get { return name_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01001939 set {
Jon Skeetd18cc082015-07-30 13:50:02 +01001940 name_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +01001941 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001942 }
1943
1944 public const int MethodFieldNumber = 2;
Jon Skeet9c888fa2015-07-14 11:13:52 +01001945 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.MethodDescriptorProto> _repeated_method_codec
1946 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.MethodDescriptorProto.Parser);
1947 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> method_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto>();
1948 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> Method {
Jon Skeetf3504cf2015-04-28 14:49:49 +01001949 get { return method_; }
1950 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001951
1952 public const int OptionsFieldNumber = 3;
Jon Skeet9c888fa2015-07-14 11:13:52 +01001953 private global::Google.Protobuf.Reflection.ServiceOptions options_;
1954 internal global::Google.Protobuf.Reflection.ServiceOptions Options {
Jon Skeete38294a2015-06-09 19:30:44 +01001955 get { return options_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01001956 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01001957 options_ = value;
1958 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01001959 }
1960
Jon Skeete38294a2015-06-09 19:30:44 +01001961 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)) {
Jon Skeetf3504cf2015-04-28 14:49:49 +01001970 return true;
1971 }
Jon Skeete38294a2015-06-09 19:30:44 +01001972 if (Name != other.Name) return false;
1973 if(!method_.Equals(other.method_)) return false;
Jon Skeetbfee2df2015-06-23 16:09:27 +01001974 if (!object.Equals(Options, other.Options)) return false;
1975 return true;
Jon Skeetf3504cf2015-04-28 14:49:49 +01001976 }
1977
Jon Skeete38294a2015-06-09 19:30:44 +01001978 public override int GetHashCode() {
Jon Skeete6fc9772015-06-26 10:32:50 +01001979 int hash = 1;
Jon Skeetfb1547b2015-06-12 13:11:54 +01001980 if (Name.Length != 0) hash ^= Name.GetHashCode();
Jon Skeete38294a2015-06-09 19:30:44 +01001981 hash ^= method_.GetHashCode();
1982 if (options_ != null) hash ^= Options.GetHashCode();
1983 return hash;
Jon Skeetf3504cf2015-04-28 14:49:49 +01001984 }
1985
Jon Skeet5b9288e2015-07-03 12:45:36 +01001986 public override string ToString() {
1987 return pb::JsonFormatter.Default.Format(this);
1988 }
1989
Jon Skeet96ddf012015-06-12 09:53:12 +01001990 public void WriteTo(pb::CodedOutputStream output) {
Jon Skeetfb1547b2015-06-12 13:11:54 +01001991 if (Name.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001992 output.WriteRawTag(10);
1993 output.WriteString(Name);
Jon Skeete38294a2015-06-09 19:30:44 +01001994 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +01001995 method_.WriteTo(output, _repeated_method_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01001996 if (options_ != null) {
Jon Skeet828b7e62015-06-17 14:59:10 +01001997 output.WriteRawTag(26);
1998 output.WriteMessage(Options);
Jon Skeetf3504cf2015-04-28 14:49:49 +01001999 }
2000 }
2001
Jon Skeete38294a2015-06-09 19:30:44 +01002002 public int CalculateSize() {
2003 int size = 0;
Jon Skeetfb1547b2015-06-12 13:11:54 +01002004 if (Name.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002005 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
Jon Skeetf3504cf2015-04-28 14:49:49 +01002006 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +01002007 size += method_.CalculateSize(_repeated_method_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01002008 if (options_ != null) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002009 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
Jon Skeetf3504cf2015-04-28 14:49:49 +01002010 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002011 return size;
2012 }
Jon Skeet3e7d70c2015-06-25 12:08:55 +01002013
Jon Skeete38294a2015-06-09 19:30:44 +01002014 public void MergeFrom(ServiceDescriptorProto other) {
2015 if (other == null) {
2016 return;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002017 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01002018 if (other.Name.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01002019 Name = other.Name;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002020 }
Jon Skeete38294a2015-06-09 19:30:44 +01002021 method_.Add(other.method_);
2022 if (other.options_ != null) {
2023 if (options_ == null) {
Jon Skeet9c888fa2015-07-14 11:13:52 +01002024 options_ = new global::Google.Protobuf.Reflection.ServiceOptions();
Jon Skeetf3504cf2015-04-28 14:49:49 +01002025 }
Jon Skeete38294a2015-06-09 19:30:44 +01002026 Options.MergeFrom(other.Options);
Jon Skeetf3504cf2015-04-28 14:49:49 +01002027 }
Jon Skeete38294a2015-06-09 19:30:44 +01002028 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002029
Jon Skeet96ddf012015-06-12 09:53:12 +01002030 public void MergeFrom(pb::CodedInputStream input) {
Jon Skeete38294a2015-06-09 19:30:44 +01002031 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +01002032 while ((tag = input.ReadTag()) != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01002033 switch(tag) {
Jon Skeete38294a2015-06-09 19:30:44 +01002034 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +01002035 input.SkipLastField();
Jon Skeete38294a2015-06-09 19:30:44 +01002036 break;
2037 case 10: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002038 Name = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +01002039 break;
2040 }
2041 case 18: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +01002042 method_.AddEntriesFrom(input, _repeated_method_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01002043 break;
2044 }
2045 case 26: {
2046 if (options_ == null) {
Jon Skeet9c888fa2015-07-14 11:13:52 +01002047 options_ = new global::Google.Protobuf.Reflection.ServiceOptions();
Jon Skeete38294a2015-06-09 19:30:44 +01002048 }
2049 input.ReadMessage(options_);
2050 break;
2051 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002052 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002053 }
2054 }
Jon Skeete38294a2015-06-09 19:30:44 +01002055
Jon Skeetf3504cf2015-04-28 14:49:49 +01002056 }
2057
2058 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +01002059 internal sealed partial class MethodDescriptorProto : pb::IMessage<MethodDescriptorProto> {
Jon Skeete38294a2015-06-09 19:30:44 +01002060 private static readonly pb::MessageParser<MethodDescriptorProto> _parser = new pb::MessageParser<MethodDescriptorProto>(() => new MethodDescriptorProto());
2061 public static pb::MessageParser<MethodDescriptorProto> Parser { get { return _parser; } }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002062
Jon Skeet76940942015-07-14 10:25:40 +01002063 public static pbr::MessageDescriptor Descriptor {
Jon Skeet9c888fa2015-07-14 11:13:52 +01002064 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[8]; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002065 }
2066
Jon Skeet96cffaa2015-07-20 19:25:07 +01002067 pbr::MessageDescriptor pb::IMessage.Descriptor {
2068 get { return Descriptor; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002069 }
2070
Jon Skeet53508222015-07-01 17:16:55 +01002071 public MethodDescriptorProto() {
2072 OnConstruction();
2073 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01002074
Jon Skeet53508222015-07-01 17:16:55 +01002075 partial void OnConstruction();
2076
2077 public MethodDescriptorProto(MethodDescriptorProto other) : this() {
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01002078 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_;
Jon Skeete38294a2015-06-09 19:30:44 +01002084 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01002085
2086 public MethodDescriptorProto Clone() {
2087 return new MethodDescriptorProto(this);
2088 }
2089
Jon Skeetf3504cf2015-04-28 14:49:49 +01002090 public const int NameFieldNumber = 1;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002091 private string name_ = "";
Jon Skeet53508222015-07-01 17:16:55 +01002092 internal string Name {
Jon Skeetf3504cf2015-04-28 14:49:49 +01002093 get { return name_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002094 set {
Jon Skeetd18cc082015-07-30 13:50:02 +01002095 name_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +01002096 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002097 }
2098
2099 public const int InputTypeFieldNumber = 2;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002100 private string inputType_ = "";
Jon Skeet53508222015-07-01 17:16:55 +01002101 internal string InputType {
Jon Skeetf3504cf2015-04-28 14:49:49 +01002102 get { return inputType_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002103 set {
Jon Skeetd18cc082015-07-30 13:50:02 +01002104 inputType_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +01002105 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002106 }
2107
2108 public const int OutputTypeFieldNumber = 3;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002109 private string outputType_ = "";
Jon Skeet53508222015-07-01 17:16:55 +01002110 internal string OutputType {
Jon Skeetf3504cf2015-04-28 14:49:49 +01002111 get { return outputType_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002112 set {
Jon Skeetd18cc082015-07-30 13:50:02 +01002113 outputType_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +01002114 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002115 }
2116
2117 public const int OptionsFieldNumber = 4;
Jon Skeet9c888fa2015-07-14 11:13:52 +01002118 private global::Google.Protobuf.Reflection.MethodOptions options_;
2119 internal global::Google.Protobuf.Reflection.MethodOptions Options {
Jon Skeete38294a2015-06-09 19:30:44 +01002120 get { return options_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002121 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01002122 options_ = value;
2123 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002124 }
2125
2126 public const int ClientStreamingFieldNumber = 5;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002127 private bool clientStreaming_;
Jon Skeet53508222015-07-01 17:16:55 +01002128 internal bool ClientStreaming {
Jon Skeetf3504cf2015-04-28 14:49:49 +01002129 get { return clientStreaming_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002130 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01002131 clientStreaming_ = value;
2132 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002133 }
2134
2135 public const int ServerStreamingFieldNumber = 6;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002136 private bool serverStreaming_;
Jon Skeet53508222015-07-01 17:16:55 +01002137 internal bool ServerStreaming {
Jon Skeetf3504cf2015-04-28 14:49:49 +01002138 get { return serverStreaming_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002139 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01002140 serverStreaming_ = value;
2141 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002142 }
2143
Jon Skeete38294a2015-06-09 19:30:44 +01002144 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)) {
Jon Skeetf3504cf2015-04-28 14:49:49 +01002153 return true;
2154 }
Jon Skeete38294a2015-06-09 19:30:44 +01002155 if (Name != other.Name) return false;
2156 if (InputType != other.InputType) return false;
2157 if (OutputType != other.OutputType) return false;
Jon Skeetbfee2df2015-06-23 16:09:27 +01002158 if (!object.Equals(Options, other.Options)) return false;
2159 if (ClientStreaming != other.ClientStreaming) return false;
Jon Skeete38294a2015-06-09 19:30:44 +01002160 if (ServerStreaming != other.ServerStreaming) return false;
2161 return true;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002162 }
2163
Jon Skeete38294a2015-06-09 19:30:44 +01002164 public override int GetHashCode() {
Jon Skeete6fc9772015-06-26 10:32:50 +01002165 int hash = 1;
Jon Skeetfb1547b2015-06-12 13:11:54 +01002166 if (Name.Length != 0) hash ^= Name.GetHashCode();
2167 if (InputType.Length != 0) hash ^= InputType.GetHashCode();
2168 if (OutputType.Length != 0) hash ^= OutputType.GetHashCode();
Jon Skeete38294a2015-06-09 19:30:44 +01002169 if (options_ != null) hash ^= Options.GetHashCode();
2170 if (ClientStreaming != false) hash ^= ClientStreaming.GetHashCode();
2171 if (ServerStreaming != false) hash ^= ServerStreaming.GetHashCode();
2172 return hash;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002173 }
2174
Jon Skeet5b9288e2015-07-03 12:45:36 +01002175 public override string ToString() {
2176 return pb::JsonFormatter.Default.Format(this);
2177 }
2178
Jon Skeet96ddf012015-06-12 09:53:12 +01002179 public void WriteTo(pb::CodedOutputStream output) {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002180 if (Name.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002181 output.WriteRawTag(10);
2182 output.WriteString(Name);
Jon Skeete38294a2015-06-09 19:30:44 +01002183 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01002184 if (InputType.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002185 output.WriteRawTag(18);
2186 output.WriteString(InputType);
Jon Skeete38294a2015-06-09 19:30:44 +01002187 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01002188 if (OutputType.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002189 output.WriteRawTag(26);
2190 output.WriteString(OutputType);
Jon Skeete38294a2015-06-09 19:30:44 +01002191 }
2192 if (options_ != null) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002193 output.WriteRawTag(34);
2194 output.WriteMessage(Options);
Jon Skeete38294a2015-06-09 19:30:44 +01002195 }
2196 if (ClientStreaming != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002197 output.WriteRawTag(40);
2198 output.WriteBool(ClientStreaming);
Jon Skeete38294a2015-06-09 19:30:44 +01002199 }
2200 if (ServerStreaming != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002201 output.WriteRawTag(48);
2202 output.WriteBool(ServerStreaming);
Jon Skeetf3504cf2015-04-28 14:49:49 +01002203 }
2204 }
2205
Jon Skeete38294a2015-06-09 19:30:44 +01002206 public int CalculateSize() {
2207 int size = 0;
Jon Skeetfb1547b2015-06-12 13:11:54 +01002208 if (Name.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002209 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
Jon Skeetf3504cf2015-04-28 14:49:49 +01002210 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01002211 if (InputType.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002212 size += 1 + pb::CodedOutputStream.ComputeStringSize(InputType);
Jon Skeetf3504cf2015-04-28 14:49:49 +01002213 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01002214 if (OutputType.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002215 size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputType);
Jon Skeetf3504cf2015-04-28 14:49:49 +01002216 }
Jon Skeete38294a2015-06-09 19:30:44 +01002217 if (options_ != null) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002218 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
Jon Skeetf3504cf2015-04-28 14:49:49 +01002219 }
Jon Skeete38294a2015-06-09 19:30:44 +01002220 if (ClientStreaming != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002221 size += 1 + 1;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002222 }
Jon Skeete38294a2015-06-09 19:30:44 +01002223 if (ServerStreaming != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002224 size += 1 + 1;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002225 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002226 return size;
2227 }
Jon Skeet3e7d70c2015-06-25 12:08:55 +01002228
Jon Skeete38294a2015-06-09 19:30:44 +01002229 public void MergeFrom(MethodDescriptorProto other) {
2230 if (other == null) {
2231 return;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002232 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01002233 if (other.Name.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01002234 Name = other.Name;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002235 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01002236 if (other.InputType.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01002237 InputType = other.InputType;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002238 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01002239 if (other.OutputType.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01002240 OutputType = other.OutputType;
2241 }
2242 if (other.options_ != null) {
2243 if (options_ == null) {
Jon Skeet9c888fa2015-07-14 11:13:52 +01002244 options_ = new global::Google.Protobuf.Reflection.MethodOptions();
Jon Skeetf3504cf2015-04-28 14:49:49 +01002245 }
Jon Skeete38294a2015-06-09 19:30:44 +01002246 Options.MergeFrom(other.Options);
Jon Skeetf3504cf2015-04-28 14:49:49 +01002247 }
Jon Skeete38294a2015-06-09 19:30:44 +01002248 if (other.ClientStreaming != false) {
2249 ClientStreaming = other.ClientStreaming;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002250 }
Jon Skeete38294a2015-06-09 19:30:44 +01002251 if (other.ServerStreaming != false) {
2252 ServerStreaming = other.ServerStreaming;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002253 }
Jon Skeete38294a2015-06-09 19:30:44 +01002254 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002255
Jon Skeet96ddf012015-06-12 09:53:12 +01002256 public void MergeFrom(pb::CodedInputStream input) {
Jon Skeete38294a2015-06-09 19:30:44 +01002257 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +01002258 while ((tag = input.ReadTag()) != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01002259 switch(tag) {
Jon Skeete38294a2015-06-09 19:30:44 +01002260 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +01002261 input.SkipLastField();
Jon Skeete38294a2015-06-09 19:30:44 +01002262 break;
2263 case 10: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002264 Name = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +01002265 break;
2266 }
2267 case 18: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002268 InputType = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +01002269 break;
2270 }
2271 case 26: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002272 OutputType = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +01002273 break;
2274 }
2275 case 34: {
2276 if (options_ == null) {
Jon Skeet9c888fa2015-07-14 11:13:52 +01002277 options_ = new global::Google.Protobuf.Reflection.MethodOptions();
Jon Skeete38294a2015-06-09 19:30:44 +01002278 }
2279 input.ReadMessage(options_);
2280 break;
2281 }
2282 case 40: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002283 ClientStreaming = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01002284 break;
2285 }
2286 case 48: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002287 ServerStreaming = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01002288 break;
2289 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002290 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002291 }
2292 }
Jon Skeete38294a2015-06-09 19:30:44 +01002293
Jon Skeetf3504cf2015-04-28 14:49:49 +01002294 }
2295
2296 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +01002297 internal sealed partial class FileOptions : pb::IMessage<FileOptions> {
Jon Skeete38294a2015-06-09 19:30:44 +01002298 private static readonly pb::MessageParser<FileOptions> _parser = new pb::MessageParser<FileOptions>(() => new FileOptions());
2299 public static pb::MessageParser<FileOptions> Parser { get { return _parser; } }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002300
Jon Skeet76940942015-07-14 10:25:40 +01002301 public static pbr::MessageDescriptor Descriptor {
Jon Skeet9c888fa2015-07-14 11:13:52 +01002302 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[9]; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002303 }
2304
Jon Skeet96cffaa2015-07-20 19:25:07 +01002305 pbr::MessageDescriptor pb::IMessage.Descriptor {
2306 get { return Descriptor; }
Jon Skeete38294a2015-06-09 19:30:44 +01002307 }
2308
Jon Skeet53508222015-07-01 17:16:55 +01002309 public FileOptions() {
2310 OnConstruction();
2311 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01002312
Jon Skeet53508222015-07-01 17:16:55 +01002313 partial void OnConstruction();
2314
2315 public FileOptions(FileOptions other) : this() {
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01002316 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();
Jon Skeete38294a2015-06-09 19:30:44 +01002331 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01002332
2333 public FileOptions Clone() {
2334 return new FileOptions(this);
2335 }
2336
Jon Skeete38294a2015-06-09 19:30:44 +01002337 public const int JavaPackageFieldNumber = 1;
2338 private string javaPackage_ = "";
Jon Skeet53508222015-07-01 17:16:55 +01002339 internal string JavaPackage {
Jon Skeete38294a2015-06-09 19:30:44 +01002340 get { return javaPackage_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002341 set {
Jon Skeetd18cc082015-07-30 13:50:02 +01002342 javaPackage_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +01002343 }
Jon Skeete38294a2015-06-09 19:30:44 +01002344 }
2345
Jon Skeete38294a2015-06-09 19:30:44 +01002346 public const int JavaOuterClassnameFieldNumber = 8;
2347 private string javaOuterClassname_ = "";
Jon Skeet53508222015-07-01 17:16:55 +01002348 internal string JavaOuterClassname {
Jon Skeete38294a2015-06-09 19:30:44 +01002349 get { return javaOuterClassname_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002350 set {
Jon Skeetd18cc082015-07-30 13:50:02 +01002351 javaOuterClassname_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +01002352 }
Jon Skeete38294a2015-06-09 19:30:44 +01002353 }
2354
Jon Skeete38294a2015-06-09 19:30:44 +01002355 public const int JavaMultipleFilesFieldNumber = 10;
2356 private bool javaMultipleFiles_;
Jon Skeet53508222015-07-01 17:16:55 +01002357 internal bool JavaMultipleFiles {
Jon Skeete38294a2015-06-09 19:30:44 +01002358 get { return javaMultipleFiles_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002359 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01002360 javaMultipleFiles_ = value;
2361 }
Jon Skeete38294a2015-06-09 19:30:44 +01002362 }
2363
Jon Skeete38294a2015-06-09 19:30:44 +01002364 public const int JavaGenerateEqualsAndHashFieldNumber = 20;
2365 private bool javaGenerateEqualsAndHash_;
Jon Skeet53508222015-07-01 17:16:55 +01002366 internal bool JavaGenerateEqualsAndHash {
Jon Skeete38294a2015-06-09 19:30:44 +01002367 get { return javaGenerateEqualsAndHash_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002368 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01002369 javaGenerateEqualsAndHash_ = value;
2370 }
Jon Skeete38294a2015-06-09 19:30:44 +01002371 }
2372
Jon Skeete38294a2015-06-09 19:30:44 +01002373 public const int JavaStringCheckUtf8FieldNumber = 27;
2374 private bool javaStringCheckUtf8_;
Jon Skeet53508222015-07-01 17:16:55 +01002375 internal bool JavaStringCheckUtf8 {
Jon Skeete38294a2015-06-09 19:30:44 +01002376 get { return javaStringCheckUtf8_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002377 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01002378 javaStringCheckUtf8_ = value;
2379 }
Jon Skeete38294a2015-06-09 19:30:44 +01002380 }
2381
Jon Skeete38294a2015-06-09 19:30:44 +01002382 public const int OptimizeForFieldNumber = 9;
Jon Skeet9c888fa2015-07-14 11:13:52 +01002383 private global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode optimizeFor_ = global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode.SPEED;
2384 internal global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode OptimizeFor {
Jon Skeete38294a2015-06-09 19:30:44 +01002385 get { return optimizeFor_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002386 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01002387 optimizeFor_ = value;
2388 }
Jon Skeete38294a2015-06-09 19:30:44 +01002389 }
2390
Jon Skeete38294a2015-06-09 19:30:44 +01002391 public const int GoPackageFieldNumber = 11;
2392 private string goPackage_ = "";
Jon Skeet53508222015-07-01 17:16:55 +01002393 internal string GoPackage {
Jon Skeete38294a2015-06-09 19:30:44 +01002394 get { return goPackage_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002395 set {
Jon Skeetd18cc082015-07-30 13:50:02 +01002396 goPackage_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +01002397 }
Jon Skeete38294a2015-06-09 19:30:44 +01002398 }
2399
Jon Skeete38294a2015-06-09 19:30:44 +01002400 public const int CcGenericServicesFieldNumber = 16;
2401 private bool ccGenericServices_;
Jon Skeet53508222015-07-01 17:16:55 +01002402 internal bool CcGenericServices {
Jon Skeete38294a2015-06-09 19:30:44 +01002403 get { return ccGenericServices_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002404 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01002405 ccGenericServices_ = value;
2406 }
Jon Skeete38294a2015-06-09 19:30:44 +01002407 }
2408
Jon Skeete38294a2015-06-09 19:30:44 +01002409 public const int JavaGenericServicesFieldNumber = 17;
2410 private bool javaGenericServices_;
Jon Skeet53508222015-07-01 17:16:55 +01002411 internal bool JavaGenericServices {
Jon Skeete38294a2015-06-09 19:30:44 +01002412 get { return javaGenericServices_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002413 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01002414 javaGenericServices_ = value;
2415 }
Jon Skeete38294a2015-06-09 19:30:44 +01002416 }
2417
Jon Skeete38294a2015-06-09 19:30:44 +01002418 public const int PyGenericServicesFieldNumber = 18;
2419 private bool pyGenericServices_;
Jon Skeet53508222015-07-01 17:16:55 +01002420 internal bool PyGenericServices {
Jon Skeete38294a2015-06-09 19:30:44 +01002421 get { return pyGenericServices_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002422 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01002423 pyGenericServices_ = value;
2424 }
Jon Skeete38294a2015-06-09 19:30:44 +01002425 }
2426
Jon Skeete38294a2015-06-09 19:30:44 +01002427 public const int DeprecatedFieldNumber = 23;
2428 private bool deprecated_;
Jon Skeet53508222015-07-01 17:16:55 +01002429 internal bool Deprecated {
Jon Skeete38294a2015-06-09 19:30:44 +01002430 get { return deprecated_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002431 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01002432 deprecated_ = value;
2433 }
Jon Skeete38294a2015-06-09 19:30:44 +01002434 }
2435
Jon Skeete38294a2015-06-09 19:30:44 +01002436 public const int CcEnableArenasFieldNumber = 31;
2437 private bool ccEnableArenas_;
Jon Skeet53508222015-07-01 17:16:55 +01002438 internal bool CcEnableArenas {
Jon Skeete38294a2015-06-09 19:30:44 +01002439 get { return ccEnableArenas_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002440 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01002441 ccEnableArenas_ = value;
2442 }
Jon Skeete38294a2015-06-09 19:30:44 +01002443 }
2444
Jon Skeete38294a2015-06-09 19:30:44 +01002445 public const int ObjcClassPrefixFieldNumber = 36;
2446 private string objcClassPrefix_ = "";
Jon Skeet53508222015-07-01 17:16:55 +01002447 internal string ObjcClassPrefix {
Jon Skeete38294a2015-06-09 19:30:44 +01002448 get { return objcClassPrefix_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002449 set {
Jon Skeetd18cc082015-07-30 13:50:02 +01002450 objcClassPrefix_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +01002451 }
Jon Skeete38294a2015-06-09 19:30:44 +01002452 }
2453
Jon Skeete38294a2015-06-09 19:30:44 +01002454 public const int CsharpNamespaceFieldNumber = 37;
2455 private string csharpNamespace_ = "";
Jon Skeet53508222015-07-01 17:16:55 +01002456 internal string CsharpNamespace {
Jon Skeete38294a2015-06-09 19:30:44 +01002457 get { return csharpNamespace_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002458 set {
Jon Skeetd18cc082015-07-30 13:50:02 +01002459 csharpNamespace_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +01002460 }
Jon Skeete38294a2015-06-09 19:30:44 +01002461 }
2462
Jon Skeete38294a2015-06-09 19:30:44 +01002463 public const int UninterpretedOptionFieldNumber = 999;
Jon Skeet9c888fa2015-07-14 11:13:52 +01002464 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
2465 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
2466 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
2467 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
Jon Skeete38294a2015-06-09 19:30:44 +01002468 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 false;
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() {
Jon Skeete6fc9772015-06-26 10:32:50 +01002501 int hash = 1;
Jon Skeetfb1547b2015-06-12 13:11:54 +01002502 if (JavaPackage.Length != 0) hash ^= JavaPackage.GetHashCode();
2503 if (JavaOuterClassname.Length != 0) hash ^= JavaOuterClassname.GetHashCode();
Jon Skeete38294a2015-06-09 19:30:44 +01002504 if (JavaMultipleFiles != false) hash ^= JavaMultipleFiles.GetHashCode();
2505 if (JavaGenerateEqualsAndHash != false) hash ^= JavaGenerateEqualsAndHash.GetHashCode();
2506 if (JavaStringCheckUtf8 != false) hash ^= JavaStringCheckUtf8.GetHashCode();
Jon Skeet9c888fa2015-07-14 11:13:52 +01002507 if (OptimizeFor != global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode.SPEED) hash ^= OptimizeFor.GetHashCode();
Jon Skeetfb1547b2015-06-12 13:11:54 +01002508 if (GoPackage.Length != 0) hash ^= GoPackage.GetHashCode();
Jon Skeete38294a2015-06-09 19:30:44 +01002509 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();
Jon Skeetfb1547b2015-06-12 13:11:54 +01002514 if (ObjcClassPrefix.Length != 0) hash ^= ObjcClassPrefix.GetHashCode();
2515 if (CsharpNamespace.Length != 0) hash ^= CsharpNamespace.GetHashCode();
Jon Skeete38294a2015-06-09 19:30:44 +01002516 hash ^= uninterpretedOption_.GetHashCode();
2517 return hash;
2518 }
2519
Jon Skeet5b9288e2015-07-03 12:45:36 +01002520 public override string ToString() {
2521 return pb::JsonFormatter.Default.Format(this);
2522 }
2523
Jon Skeet96ddf012015-06-12 09:53:12 +01002524 public void WriteTo(pb::CodedOutputStream output) {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002525 if (JavaPackage.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002526 output.WriteRawTag(10);
2527 output.WriteString(JavaPackage);
Jon Skeete38294a2015-06-09 19:30:44 +01002528 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01002529 if (JavaOuterClassname.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002530 output.WriteRawTag(66);
2531 output.WriteString(JavaOuterClassname);
Jon Skeete38294a2015-06-09 19:30:44 +01002532 }
Jon Skeet9c888fa2015-07-14 11:13:52 +01002533 if (OptimizeFor != global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode.SPEED) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002534 output.WriteRawTag(72);
2535 output.WriteEnum((int) OptimizeFor);
Jon Skeete38294a2015-06-09 19:30:44 +01002536 }
2537 if (JavaMultipleFiles != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002538 output.WriteRawTag(80);
2539 output.WriteBool(JavaMultipleFiles);
Jon Skeete38294a2015-06-09 19:30:44 +01002540 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01002541 if (GoPackage.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002542 output.WriteRawTag(90);
2543 output.WriteString(GoPackage);
Jon Skeete38294a2015-06-09 19:30:44 +01002544 }
2545 if (CcGenericServices != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002546 output.WriteRawTag(128, 1);
2547 output.WriteBool(CcGenericServices);
Jon Skeete38294a2015-06-09 19:30:44 +01002548 }
2549 if (JavaGenericServices != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002550 output.WriteRawTag(136, 1);
2551 output.WriteBool(JavaGenericServices);
Jon Skeete38294a2015-06-09 19:30:44 +01002552 }
2553 if (PyGenericServices != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002554 output.WriteRawTag(144, 1);
2555 output.WriteBool(PyGenericServices);
Jon Skeete38294a2015-06-09 19:30:44 +01002556 }
2557 if (JavaGenerateEqualsAndHash != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002558 output.WriteRawTag(160, 1);
2559 output.WriteBool(JavaGenerateEqualsAndHash);
Jon Skeete38294a2015-06-09 19:30:44 +01002560 }
2561 if (Deprecated != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002562 output.WriteRawTag(184, 1);
2563 output.WriteBool(Deprecated);
Jon Skeete38294a2015-06-09 19:30:44 +01002564 }
2565 if (JavaStringCheckUtf8 != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002566 output.WriteRawTag(216, 1);
2567 output.WriteBool(JavaStringCheckUtf8);
Jon Skeete38294a2015-06-09 19:30:44 +01002568 }
2569 if (CcEnableArenas != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002570 output.WriteRawTag(248, 1);
2571 output.WriteBool(CcEnableArenas);
Jon Skeete38294a2015-06-09 19:30:44 +01002572 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01002573 if (ObjcClassPrefix.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002574 output.WriteRawTag(162, 2);
2575 output.WriteString(ObjcClassPrefix);
Jon Skeete38294a2015-06-09 19:30:44 +01002576 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01002577 if (CsharpNamespace.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002578 output.WriteRawTag(170, 2);
2579 output.WriteString(CsharpNamespace);
Jon Skeete38294a2015-06-09 19:30:44 +01002580 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +01002581 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01002582 }
2583
2584 public int CalculateSize() {
2585 int size = 0;
Jon Skeetfb1547b2015-06-12 13:11:54 +01002586 if (JavaPackage.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002587 size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaPackage);
Jon Skeete38294a2015-06-09 19:30:44 +01002588 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01002589 if (JavaOuterClassname.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002590 size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaOuterClassname);
Jon Skeete38294a2015-06-09 19:30:44 +01002591 }
2592 if (JavaMultipleFiles != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002593 size += 1 + 1;
Jon Skeete38294a2015-06-09 19:30:44 +01002594 }
2595 if (JavaGenerateEqualsAndHash != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002596 size += 2 + 1;
Jon Skeete38294a2015-06-09 19:30:44 +01002597 }
2598 if (JavaStringCheckUtf8 != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002599 size += 2 + 1;
Jon Skeete38294a2015-06-09 19:30:44 +01002600 }
Jon Skeet9c888fa2015-07-14 11:13:52 +01002601 if (OptimizeFor != global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode.SPEED) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002602 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OptimizeFor);
Jon Skeete38294a2015-06-09 19:30:44 +01002603 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01002604 if (GoPackage.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002605 size += 1 + pb::CodedOutputStream.ComputeStringSize(GoPackage);
Jon Skeete38294a2015-06-09 19:30:44 +01002606 }
2607 if (CcGenericServices != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002608 size += 2 + 1;
Jon Skeete38294a2015-06-09 19:30:44 +01002609 }
2610 if (JavaGenericServices != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002611 size += 2 + 1;
Jon Skeete38294a2015-06-09 19:30:44 +01002612 }
2613 if (PyGenericServices != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002614 size += 2 + 1;
Jon Skeete38294a2015-06-09 19:30:44 +01002615 }
2616 if (Deprecated != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002617 size += 2 + 1;
Jon Skeete38294a2015-06-09 19:30:44 +01002618 }
2619 if (CcEnableArenas != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002620 size += 2 + 1;
Jon Skeete38294a2015-06-09 19:30:44 +01002621 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01002622 if (ObjcClassPrefix.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002623 size += 2 + pb::CodedOutputStream.ComputeStringSize(ObjcClassPrefix);
Jon Skeete38294a2015-06-09 19:30:44 +01002624 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01002625 if (CsharpNamespace.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002626 size += 2 + pb::CodedOutputStream.ComputeStringSize(CsharpNamespace);
Jon Skeete38294a2015-06-09 19:30:44 +01002627 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +01002628 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01002629 return size;
2630 }
Jon Skeet3e7d70c2015-06-25 12:08:55 +01002631
Jon Skeete38294a2015-06-09 19:30:44 +01002632 public void MergeFrom(FileOptions other) {
2633 if (other == null) {
2634 return;
2635 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01002636 if (other.JavaPackage.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01002637 JavaPackage = other.JavaPackage;
2638 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01002639 if (other.JavaOuterClassname.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01002640 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 }
Jon Skeet9c888fa2015-07-14 11:13:52 +01002651 if (other.OptimizeFor != global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode.SPEED) {
Jon Skeete38294a2015-06-09 19:30:44 +01002652 OptimizeFor = other.OptimizeFor;
2653 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01002654 if (other.GoPackage.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01002655 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 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01002672 if (other.ObjcClassPrefix.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01002673 ObjcClassPrefix = other.ObjcClassPrefix;
2674 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01002675 if (other.CsharpNamespace.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01002676 CsharpNamespace = other.CsharpNamespace;
2677 }
2678 uninterpretedOption_.Add(other.uninterpretedOption_);
2679 }
2680
Jon Skeet96ddf012015-06-12 09:53:12 +01002681 public void MergeFrom(pb::CodedInputStream input) {
Jon Skeete38294a2015-06-09 19:30:44 +01002682 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +01002683 while ((tag = input.ReadTag()) != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01002684 switch(tag) {
Jon Skeete38294a2015-06-09 19:30:44 +01002685 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +01002686 input.SkipLastField();
Jon Skeete38294a2015-06-09 19:30:44 +01002687 break;
2688 case 10: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002689 JavaPackage = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +01002690 break;
2691 }
2692 case 66: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002693 JavaOuterClassname = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +01002694 break;
2695 }
2696 case 72: {
Jon Skeet9c888fa2015-07-14 11:13:52 +01002697 optimizeFor_ = (global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) input.ReadEnum();
Jon Skeet96ddf012015-06-12 09:53:12 +01002698 break;
Jon Skeete38294a2015-06-09 19:30:44 +01002699 }
2700 case 80: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002701 JavaMultipleFiles = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01002702 break;
2703 }
2704 case 90: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002705 GoPackage = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +01002706 break;
2707 }
2708 case 128: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002709 CcGenericServices = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01002710 break;
2711 }
2712 case 136: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002713 JavaGenericServices = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01002714 break;
2715 }
2716 case 144: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002717 PyGenericServices = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01002718 break;
2719 }
2720 case 160: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002721 JavaGenerateEqualsAndHash = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01002722 break;
2723 }
2724 case 184: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002725 Deprecated = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01002726 break;
2727 }
2728 case 216: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002729 JavaStringCheckUtf8 = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01002730 break;
2731 }
2732 case 248: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002733 CcEnableArenas = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01002734 break;
2735 }
2736 case 290: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002737 ObjcClassPrefix = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +01002738 break;
2739 }
2740 case 298: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002741 CsharpNamespace = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +01002742 break;
2743 }
2744 case 7994: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +01002745 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01002746 break;
2747 }
2748 }
2749 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002750 }
2751
2752 #region Nested types
2753 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2754 public static partial class Types {
Jon Skeet53508222015-07-01 17:16:55 +01002755 internal enum OptimizeMode {
Jon Skeetf3504cf2015-04-28 14:49:49 +01002756 SPEED = 1,
2757 CODE_SIZE = 2,
2758 LITE_RUNTIME = 3,
2759 }
2760
2761 }
2762 #endregion
2763
Jon Skeetf3504cf2015-04-28 14:49:49 +01002764 }
2765
2766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +01002767 internal sealed partial class MessageOptions : pb::IMessage<MessageOptions> {
Jon Skeete38294a2015-06-09 19:30:44 +01002768 private static readonly pb::MessageParser<MessageOptions> _parser = new pb::MessageParser<MessageOptions>(() => new MessageOptions());
2769 public static pb::MessageParser<MessageOptions> Parser { get { return _parser; } }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002770
Jon Skeet76940942015-07-14 10:25:40 +01002771 public static pbr::MessageDescriptor Descriptor {
Jon Skeet9c888fa2015-07-14 11:13:52 +01002772 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[10]; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002773 }
2774
Jon Skeet96cffaa2015-07-20 19:25:07 +01002775 pbr::MessageDescriptor pb::IMessage.Descriptor {
2776 get { return Descriptor; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002777 }
2778
Jon Skeet53508222015-07-01 17:16:55 +01002779 public MessageOptions() {
2780 OnConstruction();
2781 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01002782
Jon Skeet53508222015-07-01 17:16:55 +01002783 partial void OnConstruction();
2784
2785 public MessageOptions(MessageOptions other) : this() {
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01002786 messageSetWireFormat_ = other.messageSetWireFormat_;
2787 noStandardDescriptorAccessor_ = other.noStandardDescriptorAccessor_;
2788 deprecated_ = other.deprecated_;
2789 mapEntry_ = other.mapEntry_;
2790 uninterpretedOption_ = other.uninterpretedOption_.Clone();
Jon Skeete38294a2015-06-09 19:30:44 +01002791 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01002792
2793 public MessageOptions Clone() {
2794 return new MessageOptions(this);
2795 }
2796
Jon Skeetf3504cf2015-04-28 14:49:49 +01002797 public const int MessageSetWireFormatFieldNumber = 1;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002798 private bool messageSetWireFormat_;
Jon Skeet53508222015-07-01 17:16:55 +01002799 internal bool MessageSetWireFormat {
Jon Skeetf3504cf2015-04-28 14:49:49 +01002800 get { return messageSetWireFormat_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002801 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01002802 messageSetWireFormat_ = value;
2803 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002804 }
2805
2806 public const int NoStandardDescriptorAccessorFieldNumber = 2;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002807 private bool noStandardDescriptorAccessor_;
Jon Skeet53508222015-07-01 17:16:55 +01002808 internal bool NoStandardDescriptorAccessor {
Jon Skeetf3504cf2015-04-28 14:49:49 +01002809 get { return noStandardDescriptorAccessor_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002810 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01002811 noStandardDescriptorAccessor_ = value;
2812 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002813 }
2814
2815 public const int DeprecatedFieldNumber = 3;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002816 private bool deprecated_;
Jon Skeet53508222015-07-01 17:16:55 +01002817 internal bool Deprecated {
Jon Skeetf3504cf2015-04-28 14:49:49 +01002818 get { return deprecated_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002819 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01002820 deprecated_ = value;
2821 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002822 }
2823
2824 public const int MapEntryFieldNumber = 7;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002825 private bool mapEntry_;
Jon Skeet53508222015-07-01 17:16:55 +01002826 internal bool MapEntry {
Jon Skeetf3504cf2015-04-28 14:49:49 +01002827 get { return mapEntry_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01002828 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01002829 mapEntry_ = value;
2830 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002831 }
2832
2833 public const int UninterpretedOptionFieldNumber = 999;
Jon Skeet9c888fa2015-07-14 11:13:52 +01002834 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
2835 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
2836 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
2837 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
Jon Skeetf3504cf2015-04-28 14:49:49 +01002838 get { return uninterpretedOption_; }
2839 }
Jon Skeete38294a2015-06-09 19:30:44 +01002840
2841 public override bool Equals(object other) {
2842 return Equals(other as MessageOptions);
Jon Skeetf3504cf2015-04-28 14:49:49 +01002843 }
2844
Jon Skeete38294a2015-06-09 19:30:44 +01002845 public bool Equals(MessageOptions other) {
2846 if (ReferenceEquals(other, null)) {
2847 return false;
2848 }
2849 if (ReferenceEquals(other, this)) {
Jon Skeetf3504cf2015-04-28 14:49:49 +01002850 return true;
2851 }
Jon Skeete38294a2015-06-09 19:30:44 +01002852 if (MessageSetWireFormat != other.MessageSetWireFormat) return false;
2853 if (NoStandardDescriptorAccessor != other.NoStandardDescriptorAccessor) return 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;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002858 }
2859
Jon Skeete38294a2015-06-09 19:30:44 +01002860 public override int GetHashCode() {
Jon Skeete6fc9772015-06-26 10:32:50 +01002861 int hash = 1;
Jon Skeete38294a2015-06-09 19:30:44 +01002862 if (MessageSetWireFormat != false) hash ^= MessageSetWireFormat.GetHashCode();
2863 if (NoStandardDescriptorAccessor != false) hash ^= NoStandardDescriptorAccessor.GetHashCode();
2864 if (Deprecated != false) hash ^= Deprecated.GetHashCode();
2865 if (MapEntry != false) hash ^= MapEntry.GetHashCode();
2866 hash ^= uninterpretedOption_.GetHashCode();
2867 return hash;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002868 }
2869
Jon Skeet5b9288e2015-07-03 12:45:36 +01002870 public override string ToString() {
2871 return pb::JsonFormatter.Default.Format(this);
2872 }
2873
Jon Skeet96ddf012015-06-12 09:53:12 +01002874 public void WriteTo(pb::CodedOutputStream output) {
Jon Skeete38294a2015-06-09 19:30:44 +01002875 if (MessageSetWireFormat != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002876 output.WriteRawTag(8);
2877 output.WriteBool(MessageSetWireFormat);
Jon Skeetf3504cf2015-04-28 14:49:49 +01002878 }
Jon Skeete38294a2015-06-09 19:30:44 +01002879 if (NoStandardDescriptorAccessor != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002880 output.WriteRawTag(16);
2881 output.WriteBool(NoStandardDescriptorAccessor);
Jon Skeete38294a2015-06-09 19:30:44 +01002882 }
2883 if (Deprecated != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002884 output.WriteRawTag(24);
2885 output.WriteBool(Deprecated);
Jon Skeete38294a2015-06-09 19:30:44 +01002886 }
2887 if (MapEntry != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002888 output.WriteRawTag(56);
2889 output.WriteBool(MapEntry);
Jon Skeete38294a2015-06-09 19:30:44 +01002890 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +01002891 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
Jon Skeetf3504cf2015-04-28 14:49:49 +01002892 }
2893
Jon Skeete38294a2015-06-09 19:30:44 +01002894 public int CalculateSize() {
2895 int size = 0;
2896 if (MessageSetWireFormat != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002897 size += 1 + 1;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002898 }
Jon Skeete38294a2015-06-09 19:30:44 +01002899 if (NoStandardDescriptorAccessor != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002900 size += 1 + 1;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002901 }
Jon Skeete38294a2015-06-09 19:30:44 +01002902 if (Deprecated != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002903 size += 1 + 1;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002904 }
Jon Skeete38294a2015-06-09 19:30:44 +01002905 if (MapEntry != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01002906 size += 1 + 1;
Jon Skeetf3504cf2015-04-28 14:49:49 +01002907 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +01002908 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
Jon Skeetf3504cf2015-04-28 14:49:49 +01002909 return size;
2910 }
Jon Skeet3e7d70c2015-06-25 12:08:55 +01002911
Jon Skeete38294a2015-06-09 19:30:44 +01002912 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_);
Jon Skeetf3504cf2015-04-28 14:49:49 +01002929 }
2930
Jon Skeet96ddf012015-06-12 09:53:12 +01002931 public void MergeFrom(pb::CodedInputStream input) {
Jon Skeete38294a2015-06-09 19:30:44 +01002932 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +01002933 while ((tag = input.ReadTag()) != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01002934 switch(tag) {
Jon Skeete38294a2015-06-09 19:30:44 +01002935 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +01002936 input.SkipLastField();
Jon Skeete38294a2015-06-09 19:30:44 +01002937 break;
2938 case 8: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002939 MessageSetWireFormat = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01002940 break;
2941 }
2942 case 16: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002943 NoStandardDescriptorAccessor = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01002944 break;
2945 }
2946 case 24: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002947 Deprecated = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01002948 break;
2949 }
2950 case 56: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01002951 MapEntry = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01002952 break;
2953 }
2954 case 7994: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +01002955 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01002956 break;
2957 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002958 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002959 }
2960 }
Jon Skeete38294a2015-06-09 19:30:44 +01002961
Jon Skeetf3504cf2015-04-28 14:49:49 +01002962 }
2963
2964 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +01002965 internal sealed partial class FieldOptions : pb::IMessage<FieldOptions> {
Jon Skeete38294a2015-06-09 19:30:44 +01002966 private static readonly pb::MessageParser<FieldOptions> _parser = new pb::MessageParser<FieldOptions>(() => new FieldOptions());
2967 public static pb::MessageParser<FieldOptions> Parser { get { return _parser; } }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002968
Jon Skeet76940942015-07-14 10:25:40 +01002969 public static pbr::MessageDescriptor Descriptor {
Jon Skeet9c888fa2015-07-14 11:13:52 +01002970 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[11]; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01002971 }
2972
Jon Skeet96cffaa2015-07-20 19:25:07 +01002973 pbr::MessageDescriptor pb::IMessage.Descriptor {
2974 get { return Descriptor; }
Jon Skeete38294a2015-06-09 19:30:44 +01002975 }
2976
Jon Skeet53508222015-07-01 17:16:55 +01002977 public FieldOptions() {
2978 OnConstruction();
2979 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01002980
Jon Skeet53508222015-07-01 17:16:55 +01002981 partial void OnConstruction();
2982
2983 public FieldOptions(FieldOptions other) : this() {
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01002984 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();
Jon Skeete38294a2015-06-09 19:30:44 +01002991 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01002992
2993 public FieldOptions Clone() {
2994 return new FieldOptions(this);
2995 }
2996
Jon Skeete38294a2015-06-09 19:30:44 +01002997 public const int CtypeFieldNumber = 1;
Jon Skeet9c888fa2015-07-14 11:13:52 +01002998 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 {
Jon Skeete38294a2015-06-09 19:30:44 +01003000 get { return ctype_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01003001 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01003002 ctype_ = value;
3003 }
Jon Skeete38294a2015-06-09 19:30:44 +01003004 }
3005
Jon Skeete38294a2015-06-09 19:30:44 +01003006 public const int PackedFieldNumber = 2;
3007 private bool packed_;
Jon Skeet53508222015-07-01 17:16:55 +01003008 internal bool Packed {
Jon Skeete38294a2015-06-09 19:30:44 +01003009 get { return packed_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01003010 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01003011 packed_ = value;
3012 }
Jon Skeete38294a2015-06-09 19:30:44 +01003013 }
3014
Jon Skeete38294a2015-06-09 19:30:44 +01003015 public const int JstypeFieldNumber = 6;
Jon Skeet9c888fa2015-07-14 11:13:52 +01003016 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 {
Jon Skeete38294a2015-06-09 19:30:44 +01003018 get { return jstype_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01003019 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01003020 jstype_ = value;
3021 }
Jon Skeete38294a2015-06-09 19:30:44 +01003022 }
3023
Jon Skeete38294a2015-06-09 19:30:44 +01003024 public const int LazyFieldNumber = 5;
3025 private bool lazy_;
Jon Skeet53508222015-07-01 17:16:55 +01003026 internal bool Lazy {
Jon Skeete38294a2015-06-09 19:30:44 +01003027 get { return lazy_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01003028 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01003029 lazy_ = value;
3030 }
Jon Skeete38294a2015-06-09 19:30:44 +01003031 }
3032
Jon Skeete38294a2015-06-09 19:30:44 +01003033 public const int DeprecatedFieldNumber = 3;
3034 private bool deprecated_;
Jon Skeet53508222015-07-01 17:16:55 +01003035 internal bool Deprecated {
Jon Skeete38294a2015-06-09 19:30:44 +01003036 get { return deprecated_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01003037 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01003038 deprecated_ = value;
3039 }
Jon Skeete38294a2015-06-09 19:30:44 +01003040 }
3041
Jon Skeete38294a2015-06-09 19:30:44 +01003042 public const int WeakFieldNumber = 10;
3043 private bool weak_;
Jon Skeet53508222015-07-01 17:16:55 +01003044 internal bool Weak {
Jon Skeete38294a2015-06-09 19:30:44 +01003045 get { return weak_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01003046 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01003047 weak_ = value;
3048 }
Jon Skeete38294a2015-06-09 19:30:44 +01003049 }
3050
Jon Skeete38294a2015-06-09 19:30:44 +01003051 public const int UninterpretedOptionFieldNumber = 999;
Jon Skeet9c888fa2015-07-14 11:13:52 +01003052 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
3053 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
3054 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
3055 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
Jon Skeete38294a2015-06-09 19:30:44 +01003056 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() {
Jon Skeete6fc9772015-06-26 10:32:50 +01003081 int hash = 1;
Jon Skeet9c888fa2015-07-14 11:13:52 +01003082 if (Ctype != global::Google.Protobuf.Reflection.FieldOptions.Types.CType.STRING) hash ^= Ctype.GetHashCode();
Jon Skeete38294a2015-06-09 19:30:44 +01003083 if (Packed != false) hash ^= Packed.GetHashCode();
Jon Skeet9c888fa2015-07-14 11:13:52 +01003084 if (Jstype != global::Google.Protobuf.Reflection.FieldOptions.Types.JSType.JS_NORMAL) hash ^= Jstype.GetHashCode();
Jon Skeete38294a2015-06-09 19:30:44 +01003085 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
Jon Skeet5b9288e2015-07-03 12:45:36 +01003092 public override string ToString() {
3093 return pb::JsonFormatter.Default.Format(this);
3094 }
3095
Jon Skeet96ddf012015-06-12 09:53:12 +01003096 public void WriteTo(pb::CodedOutputStream output) {
Jon Skeet9c888fa2015-07-14 11:13:52 +01003097 if (Ctype != global::Google.Protobuf.Reflection.FieldOptions.Types.CType.STRING) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003098 output.WriteRawTag(8);
3099 output.WriteEnum((int) Ctype);
Jon Skeete38294a2015-06-09 19:30:44 +01003100 }
3101 if (Packed != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003102 output.WriteRawTag(16);
3103 output.WriteBool(Packed);
Jon Skeete38294a2015-06-09 19:30:44 +01003104 }
3105 if (Deprecated != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003106 output.WriteRawTag(24);
3107 output.WriteBool(Deprecated);
Jon Skeete38294a2015-06-09 19:30:44 +01003108 }
3109 if (Lazy != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003110 output.WriteRawTag(40);
3111 output.WriteBool(Lazy);
Jon Skeete38294a2015-06-09 19:30:44 +01003112 }
Jon Skeet9c888fa2015-07-14 11:13:52 +01003113 if (Jstype != global::Google.Protobuf.Reflection.FieldOptions.Types.JSType.JS_NORMAL) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003114 output.WriteRawTag(48);
3115 output.WriteEnum((int) Jstype);
Jon Skeete38294a2015-06-09 19:30:44 +01003116 }
3117 if (Weak != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003118 output.WriteRawTag(80);
3119 output.WriteBool(Weak);
Jon Skeete38294a2015-06-09 19:30:44 +01003120 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +01003121 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01003122 }
3123
3124 public int CalculateSize() {
3125 int size = 0;
Jon Skeet9c888fa2015-07-14 11:13:52 +01003126 if (Ctype != global::Google.Protobuf.Reflection.FieldOptions.Types.CType.STRING) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003127 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Ctype);
Jon Skeete38294a2015-06-09 19:30:44 +01003128 }
3129 if (Packed != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003130 size += 1 + 1;
Jon Skeete38294a2015-06-09 19:30:44 +01003131 }
Jon Skeet9c888fa2015-07-14 11:13:52 +01003132 if (Jstype != global::Google.Protobuf.Reflection.FieldOptions.Types.JSType.JS_NORMAL) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003133 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Jstype);
Jon Skeete38294a2015-06-09 19:30:44 +01003134 }
3135 if (Lazy != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003136 size += 1 + 1;
Jon Skeete38294a2015-06-09 19:30:44 +01003137 }
3138 if (Deprecated != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003139 size += 1 + 1;
Jon Skeete38294a2015-06-09 19:30:44 +01003140 }
3141 if (Weak != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003142 size += 1 + 1;
Jon Skeete38294a2015-06-09 19:30:44 +01003143 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +01003144 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01003145 return size;
3146 }
Jon Skeet3e7d70c2015-06-25 12:08:55 +01003147
Jon Skeete38294a2015-06-09 19:30:44 +01003148 public void MergeFrom(FieldOptions other) {
3149 if (other == null) {
3150 return;
3151 }
Jon Skeet9c888fa2015-07-14 11:13:52 +01003152 if (other.Ctype != global::Google.Protobuf.Reflection.FieldOptions.Types.CType.STRING) {
Jon Skeete38294a2015-06-09 19:30:44 +01003153 Ctype = other.Ctype;
3154 }
3155 if (other.Packed != false) {
3156 Packed = other.Packed;
3157 }
Jon Skeet9c888fa2015-07-14 11:13:52 +01003158 if (other.Jstype != global::Google.Protobuf.Reflection.FieldOptions.Types.JSType.JS_NORMAL) {
Jon Skeete38294a2015-06-09 19:30:44 +01003159 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
Jon Skeet96ddf012015-06-12 09:53:12 +01003173 public void MergeFrom(pb::CodedInputStream input) {
Jon Skeete38294a2015-06-09 19:30:44 +01003174 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +01003175 while ((tag = input.ReadTag()) != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01003176 switch(tag) {
Jon Skeete38294a2015-06-09 19:30:44 +01003177 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +01003178 input.SkipLastField();
Jon Skeete38294a2015-06-09 19:30:44 +01003179 break;
3180 case 8: {
Jon Skeet9c888fa2015-07-14 11:13:52 +01003181 ctype_ = (global::Google.Protobuf.Reflection.FieldOptions.Types.CType) input.ReadEnum();
Jon Skeet96ddf012015-06-12 09:53:12 +01003182 break;
Jon Skeete38294a2015-06-09 19:30:44 +01003183 }
3184 case 16: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01003185 Packed = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01003186 break;
3187 }
3188 case 24: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01003189 Deprecated = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01003190 break;
3191 }
3192 case 40: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01003193 Lazy = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01003194 break;
3195 }
3196 case 48: {
Jon Skeet9c888fa2015-07-14 11:13:52 +01003197 jstype_ = (global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) input.ReadEnum();
Jon Skeet96ddf012015-06-12 09:53:12 +01003198 break;
Jon Skeete38294a2015-06-09 19:30:44 +01003199 }
3200 case 80: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01003201 Weak = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01003202 break;
3203 }
3204 case 7994: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +01003205 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01003206 break;
3207 }
3208 }
3209 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003210 }
3211
3212 #region Nested types
3213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3214 public static partial class Types {
Jon Skeet53508222015-07-01 17:16:55 +01003215 internal enum CType {
Jon Skeetf3504cf2015-04-28 14:49:49 +01003216 STRING = 0,
3217 CORD = 1,
3218 STRING_PIECE = 2,
3219 }
3220
Jon Skeet53508222015-07-01 17:16:55 +01003221 internal enum JSType {
Jie Luoa21a2cf2015-05-29 17:57:05 -07003222 JS_NORMAL = 0,
3223 JS_STRING = 1,
3224 JS_NUMBER = 2,
3225 }
3226
Jon Skeetf3504cf2015-04-28 14:49:49 +01003227 }
3228 #endregion
3229
Jon Skeetf3504cf2015-04-28 14:49:49 +01003230 }
3231
3232 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +01003233 internal sealed partial class EnumOptions : pb::IMessage<EnumOptions> {
Jon Skeete38294a2015-06-09 19:30:44 +01003234 private static readonly pb::MessageParser<EnumOptions> _parser = new pb::MessageParser<EnumOptions>(() => new EnumOptions());
3235 public static pb::MessageParser<EnumOptions> Parser { get { return _parser; } }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003236
Jon Skeet76940942015-07-14 10:25:40 +01003237 public static pbr::MessageDescriptor Descriptor {
Jon Skeet9c888fa2015-07-14 11:13:52 +01003238 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[12]; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003239 }
3240
Jon Skeet96cffaa2015-07-20 19:25:07 +01003241 pbr::MessageDescriptor pb::IMessage.Descriptor {
3242 get { return Descriptor; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003243 }
3244
Jon Skeet53508222015-07-01 17:16:55 +01003245 public EnumOptions() {
3246 OnConstruction();
3247 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01003248
Jon Skeet53508222015-07-01 17:16:55 +01003249 partial void OnConstruction();
3250
3251 public EnumOptions(EnumOptions other) : this() {
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01003252 allowAlias_ = other.allowAlias_;
3253 deprecated_ = other.deprecated_;
3254 uninterpretedOption_ = other.uninterpretedOption_.Clone();
Jon Skeete38294a2015-06-09 19:30:44 +01003255 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01003256
3257 public EnumOptions Clone() {
3258 return new EnumOptions(this);
3259 }
3260
Jon Skeetf3504cf2015-04-28 14:49:49 +01003261 public const int AllowAliasFieldNumber = 2;
Jon Skeetf3504cf2015-04-28 14:49:49 +01003262 private bool allowAlias_;
Jon Skeet53508222015-07-01 17:16:55 +01003263 internal bool AllowAlias {
Jon Skeetf3504cf2015-04-28 14:49:49 +01003264 get { return allowAlias_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01003265 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01003266 allowAlias_ = value;
3267 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003268 }
3269
3270 public const int DeprecatedFieldNumber = 3;
Jon Skeetf3504cf2015-04-28 14:49:49 +01003271 private bool deprecated_;
Jon Skeet53508222015-07-01 17:16:55 +01003272 internal bool Deprecated {
Jon Skeetf3504cf2015-04-28 14:49:49 +01003273 get { return deprecated_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01003274 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01003275 deprecated_ = value;
3276 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003277 }
3278
3279 public const int UninterpretedOptionFieldNumber = 999;
Jon Skeet9c888fa2015-07-14 11:13:52 +01003280 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
3281 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
3282 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
3283 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
Jon Skeetf3504cf2015-04-28 14:49:49 +01003284 get { return uninterpretedOption_; }
3285 }
Jon Skeete38294a2015-06-09 19:30:44 +01003286
3287 public override bool Equals(object other) {
3288 return Equals(other as EnumOptions);
Jon Skeetf3504cf2015-04-28 14:49:49 +01003289 }
3290
Jon Skeete38294a2015-06-09 19:30:44 +01003291 public bool Equals(EnumOptions other) {
3292 if (ReferenceEquals(other, null)) {
3293 return false;
3294 }
3295 if (ReferenceEquals(other, this)) {
Jon Skeetf3504cf2015-04-28 14:49:49 +01003296 return true;
3297 }
Jon Skeete38294a2015-06-09 19:30:44 +01003298 if (AllowAlias != other.AllowAlias) return false;
3299 if (Deprecated != other.Deprecated) return false;
3300 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
3301 return true;
Jon Skeetf3504cf2015-04-28 14:49:49 +01003302 }
3303
Jon Skeete38294a2015-06-09 19:30:44 +01003304 public override int GetHashCode() {
Jon Skeete6fc9772015-06-26 10:32:50 +01003305 int hash = 1;
Jon Skeete38294a2015-06-09 19:30:44 +01003306 if (AllowAlias != false) hash ^= AllowAlias.GetHashCode();
3307 if (Deprecated != false) hash ^= Deprecated.GetHashCode();
3308 hash ^= uninterpretedOption_.GetHashCode();
3309 return hash;
Jon Skeetf3504cf2015-04-28 14:49:49 +01003310 }
3311
Jon Skeet5b9288e2015-07-03 12:45:36 +01003312 public override string ToString() {
3313 return pb::JsonFormatter.Default.Format(this);
3314 }
3315
Jon Skeet96ddf012015-06-12 09:53:12 +01003316 public void WriteTo(pb::CodedOutputStream output) {
Jon Skeete38294a2015-06-09 19:30:44 +01003317 if (AllowAlias != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003318 output.WriteRawTag(16);
3319 output.WriteBool(AllowAlias);
Jon Skeetf3504cf2015-04-28 14:49:49 +01003320 }
Jon Skeete38294a2015-06-09 19:30:44 +01003321 if (Deprecated != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003322 output.WriteRawTag(24);
3323 output.WriteBool(Deprecated);
Jon Skeete38294a2015-06-09 19:30:44 +01003324 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +01003325 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
Jon Skeetf3504cf2015-04-28 14:49:49 +01003326 }
3327
Jon Skeete38294a2015-06-09 19:30:44 +01003328 public int CalculateSize() {
3329 int size = 0;
3330 if (AllowAlias != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003331 size += 1 + 1;
Jon Skeetf3504cf2015-04-28 14:49:49 +01003332 }
Jon Skeete38294a2015-06-09 19:30:44 +01003333 if (Deprecated != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003334 size += 1 + 1;
Jon Skeetf3504cf2015-04-28 14:49:49 +01003335 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +01003336 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
Jon Skeetf3504cf2015-04-28 14:49:49 +01003337 return size;
3338 }
Jon Skeet3e7d70c2015-06-25 12:08:55 +01003339
Jon Skeete38294a2015-06-09 19:30:44 +01003340 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_);
Jon Skeetf3504cf2015-04-28 14:49:49 +01003351 }
3352
Jon Skeet96ddf012015-06-12 09:53:12 +01003353 public void MergeFrom(pb::CodedInputStream input) {
Jon Skeete38294a2015-06-09 19:30:44 +01003354 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +01003355 while ((tag = input.ReadTag()) != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01003356 switch(tag) {
Jon Skeete38294a2015-06-09 19:30:44 +01003357 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +01003358 input.SkipLastField();
Jon Skeete38294a2015-06-09 19:30:44 +01003359 break;
3360 case 16: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01003361 AllowAlias = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01003362 break;
3363 }
3364 case 24: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01003365 Deprecated = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01003366 break;
3367 }
3368 case 7994: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +01003369 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01003370 break;
3371 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003372 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003373 }
3374 }
Jon Skeete38294a2015-06-09 19:30:44 +01003375
Jon Skeetf3504cf2015-04-28 14:49:49 +01003376 }
3377
3378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +01003379 internal sealed partial class EnumValueOptions : pb::IMessage<EnumValueOptions> {
Jon Skeete38294a2015-06-09 19:30:44 +01003380 private static readonly pb::MessageParser<EnumValueOptions> _parser = new pb::MessageParser<EnumValueOptions>(() => new EnumValueOptions());
3381 public static pb::MessageParser<EnumValueOptions> Parser { get { return _parser; } }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003382
Jon Skeet76940942015-07-14 10:25:40 +01003383 public static pbr::MessageDescriptor Descriptor {
Jon Skeet9c888fa2015-07-14 11:13:52 +01003384 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[13]; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003385 }
3386
Jon Skeet96cffaa2015-07-20 19:25:07 +01003387 pbr::MessageDescriptor pb::IMessage.Descriptor {
3388 get { return Descriptor; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003389 }
3390
Jon Skeet53508222015-07-01 17:16:55 +01003391 public EnumValueOptions() {
3392 OnConstruction();
3393 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01003394
Jon Skeet53508222015-07-01 17:16:55 +01003395 partial void OnConstruction();
3396
3397 public EnumValueOptions(EnumValueOptions other) : this() {
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01003398 deprecated_ = other.deprecated_;
3399 uninterpretedOption_ = other.uninterpretedOption_.Clone();
Jon Skeete38294a2015-06-09 19:30:44 +01003400 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01003401
3402 public EnumValueOptions Clone() {
3403 return new EnumValueOptions(this);
3404 }
3405
Jon Skeetf3504cf2015-04-28 14:49:49 +01003406 public const int DeprecatedFieldNumber = 1;
Jon Skeetf3504cf2015-04-28 14:49:49 +01003407 private bool deprecated_;
Jon Skeet53508222015-07-01 17:16:55 +01003408 internal bool Deprecated {
Jon Skeetf3504cf2015-04-28 14:49:49 +01003409 get { return deprecated_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01003410 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01003411 deprecated_ = value;
3412 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003413 }
3414
3415 public const int UninterpretedOptionFieldNumber = 999;
Jon Skeet9c888fa2015-07-14 11:13:52 +01003416 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
3417 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
3418 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
3419 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
Jon Skeetf3504cf2015-04-28 14:49:49 +01003420 get { return uninterpretedOption_; }
3421 }
Jon Skeete38294a2015-06-09 19:30:44 +01003422
3423 public override bool Equals(object other) {
3424 return Equals(other as EnumValueOptions);
Jon Skeetf3504cf2015-04-28 14:49:49 +01003425 }
3426
Jon Skeete38294a2015-06-09 19:30:44 +01003427 public bool Equals(EnumValueOptions other) {
3428 if (ReferenceEquals(other, null)) {
3429 return false;
3430 }
3431 if (ReferenceEquals(other, this)) {
Jon Skeetf3504cf2015-04-28 14:49:49 +01003432 return true;
3433 }
Jon Skeete38294a2015-06-09 19:30:44 +01003434 if (Deprecated != other.Deprecated) return false;
3435 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
3436 return true;
Jon Skeetf3504cf2015-04-28 14:49:49 +01003437 }
3438
Jon Skeete38294a2015-06-09 19:30:44 +01003439 public override int GetHashCode() {
Jon Skeete6fc9772015-06-26 10:32:50 +01003440 int hash = 1;
Jon Skeete38294a2015-06-09 19:30:44 +01003441 if (Deprecated != false) hash ^= Deprecated.GetHashCode();
3442 hash ^= uninterpretedOption_.GetHashCode();
3443 return hash;
Jon Skeetf3504cf2015-04-28 14:49:49 +01003444 }
3445
Jon Skeet5b9288e2015-07-03 12:45:36 +01003446 public override string ToString() {
3447 return pb::JsonFormatter.Default.Format(this);
3448 }
3449
Jon Skeet96ddf012015-06-12 09:53:12 +01003450 public void WriteTo(pb::CodedOutputStream output) {
Jon Skeete38294a2015-06-09 19:30:44 +01003451 if (Deprecated != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003452 output.WriteRawTag(8);
3453 output.WriteBool(Deprecated);
Jon Skeetf3504cf2015-04-28 14:49:49 +01003454 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +01003455 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
Jon Skeetf3504cf2015-04-28 14:49:49 +01003456 }
3457
Jon Skeete38294a2015-06-09 19:30:44 +01003458 public int CalculateSize() {
3459 int size = 0;
3460 if (Deprecated != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003461 size += 1 + 1;
Jon Skeetf3504cf2015-04-28 14:49:49 +01003462 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +01003463 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
Jon Skeetf3504cf2015-04-28 14:49:49 +01003464 return size;
3465 }
Jon Skeet3e7d70c2015-06-25 12:08:55 +01003466
Jon Skeete38294a2015-06-09 19:30:44 +01003467 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_);
Jon Skeetf3504cf2015-04-28 14:49:49 +01003475 }
3476
Jon Skeet96ddf012015-06-12 09:53:12 +01003477 public void MergeFrom(pb::CodedInputStream input) {
Jon Skeete38294a2015-06-09 19:30:44 +01003478 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +01003479 while ((tag = input.ReadTag()) != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01003480 switch(tag) {
Jon Skeete38294a2015-06-09 19:30:44 +01003481 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +01003482 input.SkipLastField();
Jon Skeete38294a2015-06-09 19:30:44 +01003483 break;
3484 case 8: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01003485 Deprecated = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01003486 break;
3487 }
3488 case 7994: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +01003489 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01003490 break;
3491 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003492 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003493 }
3494 }
Jon Skeete38294a2015-06-09 19:30:44 +01003495
Jon Skeetf3504cf2015-04-28 14:49:49 +01003496 }
3497
3498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +01003499 internal sealed partial class ServiceOptions : pb::IMessage<ServiceOptions> {
Jon Skeete38294a2015-06-09 19:30:44 +01003500 private static readonly pb::MessageParser<ServiceOptions> _parser = new pb::MessageParser<ServiceOptions>(() => new ServiceOptions());
3501 public static pb::MessageParser<ServiceOptions> Parser { get { return _parser; } }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003502
Jon Skeet76940942015-07-14 10:25:40 +01003503 public static pbr::MessageDescriptor Descriptor {
Jon Skeet9c888fa2015-07-14 11:13:52 +01003504 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[14]; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003505 }
3506
Jon Skeet96cffaa2015-07-20 19:25:07 +01003507 pbr::MessageDescriptor pb::IMessage.Descriptor {
3508 get { return Descriptor; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003509 }
3510
Jon Skeet53508222015-07-01 17:16:55 +01003511 public ServiceOptions() {
3512 OnConstruction();
3513 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01003514
Jon Skeet53508222015-07-01 17:16:55 +01003515 partial void OnConstruction();
3516
3517 public ServiceOptions(ServiceOptions other) : this() {
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01003518 deprecated_ = other.deprecated_;
3519 uninterpretedOption_ = other.uninterpretedOption_.Clone();
Jon Skeete38294a2015-06-09 19:30:44 +01003520 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01003521
3522 public ServiceOptions Clone() {
3523 return new ServiceOptions(this);
3524 }
3525
Jon Skeetf3504cf2015-04-28 14:49:49 +01003526 public const int DeprecatedFieldNumber = 33;
Jon Skeetf3504cf2015-04-28 14:49:49 +01003527 private bool deprecated_;
Jon Skeet53508222015-07-01 17:16:55 +01003528 internal bool Deprecated {
Jon Skeetf3504cf2015-04-28 14:49:49 +01003529 get { return deprecated_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01003530 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01003531 deprecated_ = value;
3532 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003533 }
3534
3535 public const int UninterpretedOptionFieldNumber = 999;
Jon Skeet9c888fa2015-07-14 11:13:52 +01003536 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
3537 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
3538 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
3539 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
Jon Skeetf3504cf2015-04-28 14:49:49 +01003540 get { return uninterpretedOption_; }
3541 }
Jon Skeete38294a2015-06-09 19:30:44 +01003542
3543 public override bool Equals(object other) {
3544 return Equals(other as ServiceOptions);
Jon Skeetf3504cf2015-04-28 14:49:49 +01003545 }
3546
Jon Skeete38294a2015-06-09 19:30:44 +01003547 public bool Equals(ServiceOptions other) {
3548 if (ReferenceEquals(other, null)) {
3549 return false;
3550 }
3551 if (ReferenceEquals(other, this)) {
Jon Skeetf3504cf2015-04-28 14:49:49 +01003552 return true;
3553 }
Jon Skeete38294a2015-06-09 19:30:44 +01003554 if (Deprecated != other.Deprecated) return false;
3555 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
3556 return true;
Jon Skeetf3504cf2015-04-28 14:49:49 +01003557 }
3558
Jon Skeete38294a2015-06-09 19:30:44 +01003559 public override int GetHashCode() {
Jon Skeete6fc9772015-06-26 10:32:50 +01003560 int hash = 1;
Jon Skeete38294a2015-06-09 19:30:44 +01003561 if (Deprecated != false) hash ^= Deprecated.GetHashCode();
3562 hash ^= uninterpretedOption_.GetHashCode();
3563 return hash;
Jon Skeetf3504cf2015-04-28 14:49:49 +01003564 }
3565
Jon Skeet5b9288e2015-07-03 12:45:36 +01003566 public override string ToString() {
3567 return pb::JsonFormatter.Default.Format(this);
3568 }
3569
Jon Skeet96ddf012015-06-12 09:53:12 +01003570 public void WriteTo(pb::CodedOutputStream output) {
Jon Skeete38294a2015-06-09 19:30:44 +01003571 if (Deprecated != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003572 output.WriteRawTag(136, 2);
3573 output.WriteBool(Deprecated);
Jon Skeetf3504cf2015-04-28 14:49:49 +01003574 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +01003575 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
Jon Skeetf3504cf2015-04-28 14:49:49 +01003576 }
3577
Jon Skeete38294a2015-06-09 19:30:44 +01003578 public int CalculateSize() {
3579 int size = 0;
3580 if (Deprecated != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003581 size += 2 + 1;
Jon Skeetf3504cf2015-04-28 14:49:49 +01003582 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +01003583 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
Jon Skeetf3504cf2015-04-28 14:49:49 +01003584 return size;
3585 }
Jon Skeet3e7d70c2015-06-25 12:08:55 +01003586
Jon Skeete38294a2015-06-09 19:30:44 +01003587 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_);
Jon Skeetf3504cf2015-04-28 14:49:49 +01003595 }
3596
Jon Skeet96ddf012015-06-12 09:53:12 +01003597 public void MergeFrom(pb::CodedInputStream input) {
Jon Skeete38294a2015-06-09 19:30:44 +01003598 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +01003599 while ((tag = input.ReadTag()) != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01003600 switch(tag) {
Jon Skeete38294a2015-06-09 19:30:44 +01003601 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +01003602 input.SkipLastField();
Jon Skeete38294a2015-06-09 19:30:44 +01003603 break;
3604 case 264: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01003605 Deprecated = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01003606 break;
3607 }
3608 case 7994: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +01003609 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01003610 break;
3611 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003612 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003613 }
3614 }
Jon Skeete38294a2015-06-09 19:30:44 +01003615
Jon Skeetf3504cf2015-04-28 14:49:49 +01003616 }
3617
3618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +01003619 internal sealed partial class MethodOptions : pb::IMessage<MethodOptions> {
Jon Skeete38294a2015-06-09 19:30:44 +01003620 private static readonly pb::MessageParser<MethodOptions> _parser = new pb::MessageParser<MethodOptions>(() => new MethodOptions());
3621 public static pb::MessageParser<MethodOptions> Parser { get { return _parser; } }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003622
Jon Skeet76940942015-07-14 10:25:40 +01003623 public static pbr::MessageDescriptor Descriptor {
Jon Skeet9c888fa2015-07-14 11:13:52 +01003624 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[15]; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003625 }
3626
Jon Skeet96cffaa2015-07-20 19:25:07 +01003627 pbr::MessageDescriptor pb::IMessage.Descriptor {
3628 get { return Descriptor; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003629 }
3630
Jon Skeet53508222015-07-01 17:16:55 +01003631 public MethodOptions() {
3632 OnConstruction();
3633 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01003634
Jon Skeet53508222015-07-01 17:16:55 +01003635 partial void OnConstruction();
3636
3637 public MethodOptions(MethodOptions other) : this() {
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01003638 deprecated_ = other.deprecated_;
3639 uninterpretedOption_ = other.uninterpretedOption_.Clone();
Jon Skeete38294a2015-06-09 19:30:44 +01003640 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01003641
3642 public MethodOptions Clone() {
3643 return new MethodOptions(this);
3644 }
3645
Jon Skeetf3504cf2015-04-28 14:49:49 +01003646 public const int DeprecatedFieldNumber = 33;
Jon Skeetf3504cf2015-04-28 14:49:49 +01003647 private bool deprecated_;
Jon Skeet53508222015-07-01 17:16:55 +01003648 internal bool Deprecated {
Jon Skeetf3504cf2015-04-28 14:49:49 +01003649 get { return deprecated_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01003650 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01003651 deprecated_ = value;
3652 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003653 }
3654
3655 public const int UninterpretedOptionFieldNumber = 999;
Jon Skeet9c888fa2015-07-14 11:13:52 +01003656 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
3657 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
3658 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
3659 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
Jon Skeetf3504cf2015-04-28 14:49:49 +01003660 get { return uninterpretedOption_; }
3661 }
Jon Skeete38294a2015-06-09 19:30:44 +01003662
3663 public override bool Equals(object other) {
3664 return Equals(other as MethodOptions);
Jon Skeetf3504cf2015-04-28 14:49:49 +01003665 }
3666
Jon Skeete38294a2015-06-09 19:30:44 +01003667 public bool Equals(MethodOptions other) {
3668 if (ReferenceEquals(other, null)) {
3669 return false;
3670 }
3671 if (ReferenceEquals(other, this)) {
Jon Skeetf3504cf2015-04-28 14:49:49 +01003672 return true;
3673 }
Jon Skeete38294a2015-06-09 19:30:44 +01003674 if (Deprecated != other.Deprecated) return false;
3675 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
3676 return true;
Jon Skeetf3504cf2015-04-28 14:49:49 +01003677 }
3678
Jon Skeete38294a2015-06-09 19:30:44 +01003679 public override int GetHashCode() {
Jon Skeete6fc9772015-06-26 10:32:50 +01003680 int hash = 1;
Jon Skeete38294a2015-06-09 19:30:44 +01003681 if (Deprecated != false) hash ^= Deprecated.GetHashCode();
3682 hash ^= uninterpretedOption_.GetHashCode();
3683 return hash;
Jon Skeetf3504cf2015-04-28 14:49:49 +01003684 }
3685
Jon Skeet5b9288e2015-07-03 12:45:36 +01003686 public override string ToString() {
3687 return pb::JsonFormatter.Default.Format(this);
3688 }
3689
Jon Skeet96ddf012015-06-12 09:53:12 +01003690 public void WriteTo(pb::CodedOutputStream output) {
Jon Skeete38294a2015-06-09 19:30:44 +01003691 if (Deprecated != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003692 output.WriteRawTag(136, 2);
3693 output.WriteBool(Deprecated);
Jon Skeetf3504cf2015-04-28 14:49:49 +01003694 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +01003695 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
Jon Skeetf3504cf2015-04-28 14:49:49 +01003696 }
3697
Jon Skeete38294a2015-06-09 19:30:44 +01003698 public int CalculateSize() {
3699 int size = 0;
3700 if (Deprecated != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003701 size += 2 + 1;
Jon Skeetf3504cf2015-04-28 14:49:49 +01003702 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +01003703 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
Jon Skeetf3504cf2015-04-28 14:49:49 +01003704 return size;
3705 }
Jon Skeet3e7d70c2015-06-25 12:08:55 +01003706
Jon Skeete38294a2015-06-09 19:30:44 +01003707 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_);
Jon Skeetf3504cf2015-04-28 14:49:49 +01003715 }
3716
Jon Skeet96ddf012015-06-12 09:53:12 +01003717 public void MergeFrom(pb::CodedInputStream input) {
Jon Skeete38294a2015-06-09 19:30:44 +01003718 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +01003719 while ((tag = input.ReadTag()) != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01003720 switch(tag) {
Jon Skeete38294a2015-06-09 19:30:44 +01003721 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +01003722 input.SkipLastField();
Jon Skeete38294a2015-06-09 19:30:44 +01003723 break;
3724 case 264: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01003725 Deprecated = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01003726 break;
3727 }
3728 case 7994: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +01003729 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01003730 break;
3731 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003732 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003733 }
3734 }
Jon Skeete38294a2015-06-09 19:30:44 +01003735
Jon Skeetf3504cf2015-04-28 14:49:49 +01003736 }
3737
3738 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +01003739 internal sealed partial class UninterpretedOption : pb::IMessage<UninterpretedOption> {
Jon Skeete38294a2015-06-09 19:30:44 +01003740 private static readonly pb::MessageParser<UninterpretedOption> _parser = new pb::MessageParser<UninterpretedOption>(() => new UninterpretedOption());
3741 public static pb::MessageParser<UninterpretedOption> Parser { get { return _parser; } }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003742
Jon Skeet76940942015-07-14 10:25:40 +01003743 public static pbr::MessageDescriptor Descriptor {
Jon Skeet9c888fa2015-07-14 11:13:52 +01003744 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[16]; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003745 }
3746
Jon Skeet96cffaa2015-07-20 19:25:07 +01003747 pbr::MessageDescriptor pb::IMessage.Descriptor {
3748 get { return Descriptor; }
Jon Skeete38294a2015-06-09 19:30:44 +01003749 }
3750
Jon Skeet53508222015-07-01 17:16:55 +01003751 public UninterpretedOption() {
3752 OnConstruction();
3753 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01003754
Jon Skeet53508222015-07-01 17:16:55 +01003755 partial void OnConstruction();
3756
3757 public UninterpretedOption(UninterpretedOption other) : this() {
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01003758 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_;
Jon Skeete38294a2015-06-09 19:30:44 +01003765 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01003766
3767 public UninterpretedOption Clone() {
3768 return new UninterpretedOption(this);
3769 }
3770
Jon Skeete38294a2015-06-09 19:30:44 +01003771 public const int NameFieldNumber = 2;
Jon Skeet9c888fa2015-07-14 11:13:52 +01003772 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> _repeated_name_codec
3773 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart.Parser);
3774 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> name_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart>();
3775 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> Name {
Jon Skeete38294a2015-06-09 19:30:44 +01003776 get { return name_; }
3777 }
3778
3779 public const int IdentifierValueFieldNumber = 3;
3780 private string identifierValue_ = "";
Jon Skeet53508222015-07-01 17:16:55 +01003781 internal string IdentifierValue {
Jon Skeete38294a2015-06-09 19:30:44 +01003782 get { return identifierValue_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01003783 set {
Jon Skeetd18cc082015-07-30 13:50:02 +01003784 identifierValue_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +01003785 }
Jon Skeete38294a2015-06-09 19:30:44 +01003786 }
3787
Jon Skeete38294a2015-06-09 19:30:44 +01003788 public const int PositiveIntValueFieldNumber = 4;
3789 private ulong positiveIntValue_;
Jon Skeet53508222015-07-01 17:16:55 +01003790 internal ulong PositiveIntValue {
Jon Skeete38294a2015-06-09 19:30:44 +01003791 get { return positiveIntValue_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01003792 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01003793 positiveIntValue_ = value;
3794 }
Jon Skeete38294a2015-06-09 19:30:44 +01003795 }
3796
Jon Skeete38294a2015-06-09 19:30:44 +01003797 public const int NegativeIntValueFieldNumber = 5;
3798 private long negativeIntValue_;
Jon Skeet53508222015-07-01 17:16:55 +01003799 internal long NegativeIntValue {
Jon Skeete38294a2015-06-09 19:30:44 +01003800 get { return negativeIntValue_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01003801 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01003802 negativeIntValue_ = value;
3803 }
Jon Skeete38294a2015-06-09 19:30:44 +01003804 }
3805
Jon Skeete38294a2015-06-09 19:30:44 +01003806 public const int DoubleValueFieldNumber = 6;
3807 private double doubleValue_;
Jon Skeet53508222015-07-01 17:16:55 +01003808 internal double DoubleValue {
Jon Skeete38294a2015-06-09 19:30:44 +01003809 get { return doubleValue_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01003810 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01003811 doubleValue_ = value;
3812 }
Jon Skeete38294a2015-06-09 19:30:44 +01003813 }
3814
Jon Skeete38294a2015-06-09 19:30:44 +01003815 public const int StringValueFieldNumber = 7;
3816 private pb::ByteString stringValue_ = pb::ByteString.Empty;
Jon Skeet53508222015-07-01 17:16:55 +01003817 internal pb::ByteString StringValue {
Jon Skeete38294a2015-06-09 19:30:44 +01003818 get { return stringValue_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01003819 set {
Jon Skeetd18cc082015-07-30 13:50:02 +01003820 stringValue_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +01003821 }
Jon Skeete38294a2015-06-09 19:30:44 +01003822 }
3823
Jon Skeete38294a2015-06-09 19:30:44 +01003824 public const int AggregateValueFieldNumber = 8;
3825 private string aggregateValue_ = "";
Jon Skeet53508222015-07-01 17:16:55 +01003826 internal string AggregateValue {
Jon Skeete38294a2015-06-09 19:30:44 +01003827 get { return aggregateValue_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01003828 set {
Jon Skeetd18cc082015-07-30 13:50:02 +01003829 aggregateValue_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +01003830 }
Jon Skeete38294a2015-06-09 19:30:44 +01003831 }
3832
Jon Skeete38294a2015-06-09 19:30:44 +01003833 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() {
Jon Skeete6fc9772015-06-26 10:32:50 +01003855 int hash = 1;
Jon Skeete38294a2015-06-09 19:30:44 +01003856 hash ^= name_.GetHashCode();
Jon Skeetfb1547b2015-06-12 13:11:54 +01003857 if (IdentifierValue.Length != 0) hash ^= IdentifierValue.GetHashCode();
Jon Skeete38294a2015-06-09 19:30:44 +01003858 if (PositiveIntValue != 0UL) hash ^= PositiveIntValue.GetHashCode();
3859 if (NegativeIntValue != 0L) hash ^= NegativeIntValue.GetHashCode();
3860 if (DoubleValue != 0D) hash ^= DoubleValue.GetHashCode();
Jon Skeetfb1547b2015-06-12 13:11:54 +01003861 if (StringValue.Length != 0) hash ^= StringValue.GetHashCode();
3862 if (AggregateValue.Length != 0) hash ^= AggregateValue.GetHashCode();
Jon Skeete38294a2015-06-09 19:30:44 +01003863 return hash;
3864 }
3865
Jon Skeet5b9288e2015-07-03 12:45:36 +01003866 public override string ToString() {
3867 return pb::JsonFormatter.Default.Format(this);
3868 }
3869
Jon Skeet96ddf012015-06-12 09:53:12 +01003870 public void WriteTo(pb::CodedOutputStream output) {
Jon Skeetf2a27cc2015-06-26 17:37:14 +01003871 name_.WriteTo(output, _repeated_name_codec);
Jon Skeetfb1547b2015-06-12 13:11:54 +01003872 if (IdentifierValue.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003873 output.WriteRawTag(26);
3874 output.WriteString(IdentifierValue);
Jon Skeete38294a2015-06-09 19:30:44 +01003875 }
3876 if (PositiveIntValue != 0UL) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003877 output.WriteRawTag(32);
3878 output.WriteUInt64(PositiveIntValue);
Jon Skeete38294a2015-06-09 19:30:44 +01003879 }
3880 if (NegativeIntValue != 0L) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003881 output.WriteRawTag(40);
3882 output.WriteInt64(NegativeIntValue);
Jon Skeete38294a2015-06-09 19:30:44 +01003883 }
3884 if (DoubleValue != 0D) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003885 output.WriteRawTag(49);
3886 output.WriteDouble(DoubleValue);
Jon Skeete38294a2015-06-09 19:30:44 +01003887 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01003888 if (StringValue.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003889 output.WriteRawTag(58);
3890 output.WriteBytes(StringValue);
Jon Skeete38294a2015-06-09 19:30:44 +01003891 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01003892 if (AggregateValue.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003893 output.WriteRawTag(66);
3894 output.WriteString(AggregateValue);
Jon Skeete38294a2015-06-09 19:30:44 +01003895 }
3896 }
3897
3898 public int CalculateSize() {
3899 int size = 0;
Jon Skeetf2a27cc2015-06-26 17:37:14 +01003900 size += name_.CalculateSize(_repeated_name_codec);
Jon Skeetfb1547b2015-06-12 13:11:54 +01003901 if (IdentifierValue.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003902 size += 1 + pb::CodedOutputStream.ComputeStringSize(IdentifierValue);
Jon Skeete38294a2015-06-09 19:30:44 +01003903 }
3904 if (PositiveIntValue != 0UL) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003905 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PositiveIntValue);
Jon Skeete38294a2015-06-09 19:30:44 +01003906 }
3907 if (NegativeIntValue != 0L) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003908 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NegativeIntValue);
Jon Skeete38294a2015-06-09 19:30:44 +01003909 }
3910 if (DoubleValue != 0D) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003911 size += 1 + 8;
Jon Skeete38294a2015-06-09 19:30:44 +01003912 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01003913 if (StringValue.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003914 size += 1 + pb::CodedOutputStream.ComputeBytesSize(StringValue);
Jon Skeete38294a2015-06-09 19:30:44 +01003915 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01003916 if (AggregateValue.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01003917 size += 1 + pb::CodedOutputStream.ComputeStringSize(AggregateValue);
Jon Skeete38294a2015-06-09 19:30:44 +01003918 }
3919 return size;
3920 }
Jon Skeet3e7d70c2015-06-25 12:08:55 +01003921
Jon Skeete38294a2015-06-09 19:30:44 +01003922 public void MergeFrom(UninterpretedOption other) {
3923 if (other == null) {
3924 return;
3925 }
3926 name_.Add(other.name_);
Jon Skeetfb1547b2015-06-12 13:11:54 +01003927 if (other.IdentifierValue.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01003928 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 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01003939 if (other.StringValue.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01003940 StringValue = other.StringValue;
3941 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01003942 if (other.AggregateValue.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01003943 AggregateValue = other.AggregateValue;
3944 }
3945 }
3946
Jon Skeet96ddf012015-06-12 09:53:12 +01003947 public void MergeFrom(pb::CodedInputStream input) {
Jon Skeete38294a2015-06-09 19:30:44 +01003948 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +01003949 while ((tag = input.ReadTag()) != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01003950 switch(tag) {
Jon Skeete38294a2015-06-09 19:30:44 +01003951 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +01003952 input.SkipLastField();
Jon Skeete38294a2015-06-09 19:30:44 +01003953 break;
3954 case 18: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +01003955 name_.AddEntriesFrom(input, _repeated_name_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01003956 break;
3957 }
3958 case 26: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01003959 IdentifierValue = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +01003960 break;
3961 }
3962 case 32: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01003963 PositiveIntValue = input.ReadUInt64();
Jon Skeete38294a2015-06-09 19:30:44 +01003964 break;
3965 }
3966 case 40: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01003967 NegativeIntValue = input.ReadInt64();
Jon Skeete38294a2015-06-09 19:30:44 +01003968 break;
3969 }
3970 case 49: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01003971 DoubleValue = input.ReadDouble();
Jon Skeete38294a2015-06-09 19:30:44 +01003972 break;
3973 }
3974 case 58: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01003975 StringValue = input.ReadBytes();
Jon Skeete38294a2015-06-09 19:30:44 +01003976 break;
3977 }
3978 case 66: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01003979 AggregateValue = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +01003980 break;
3981 }
3982 }
3983 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003984 }
3985
3986 #region Nested types
3987 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3988 public static partial class Types {
3989 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +01003990 internal sealed partial class NamePart : pb::IMessage<NamePart> {
Jon Skeete38294a2015-06-09 19:30:44 +01003991 private static readonly pb::MessageParser<NamePart> _parser = new pb::MessageParser<NamePart>(() => new NamePart());
3992 public static pb::MessageParser<NamePart> Parser { get { return _parser; } }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003993
Jon Skeet76940942015-07-14 10:25:40 +01003994 public static pbr::MessageDescriptor Descriptor {
Jon Skeet9c888fa2015-07-14 11:13:52 +01003995 get { return global::Google.Protobuf.Reflection.UninterpretedOption.Descriptor.NestedTypes[0]; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01003996 }
3997
Jon Skeet96cffaa2015-07-20 19:25:07 +01003998 pbr::MessageDescriptor pb::IMessage.Descriptor {
3999 get { return Descriptor; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01004000 }
4001
Jon Skeet53508222015-07-01 17:16:55 +01004002 public NamePart() {
4003 OnConstruction();
4004 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01004005
Jon Skeet53508222015-07-01 17:16:55 +01004006 partial void OnConstruction();
4007
4008 public NamePart(NamePart other) : this() {
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01004009 namePart_ = other.namePart_;
4010 isExtension_ = other.isExtension_;
Jon Skeete38294a2015-06-09 19:30:44 +01004011 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01004012
4013 public NamePart Clone() {
4014 return new NamePart(this);
4015 }
4016
Jon Skeetf3504cf2015-04-28 14:49:49 +01004017 public const int NamePart_FieldNumber = 1;
Jon Skeetf3504cf2015-04-28 14:49:49 +01004018 private string namePart_ = "";
Jon Skeet53508222015-07-01 17:16:55 +01004019 internal string NamePart_ {
Jon Skeetf3504cf2015-04-28 14:49:49 +01004020 get { return namePart_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01004021 set {
Jon Skeetd18cc082015-07-30 13:50:02 +01004022 namePart_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +01004023 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01004024 }
4025
4026 public const int IsExtensionFieldNumber = 2;
Jon Skeetf3504cf2015-04-28 14:49:49 +01004027 private bool isExtension_;
Jon Skeet53508222015-07-01 17:16:55 +01004028 internal bool IsExtension {
Jon Skeetf3504cf2015-04-28 14:49:49 +01004029 get { return isExtension_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01004030 set {
Jon Skeetbfee2df2015-06-23 16:09:27 +01004031 isExtension_ = value;
4032 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01004033 }
4034
Jon Skeete38294a2015-06-09 19:30:44 +01004035 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)) {
Jon Skeetf3504cf2015-04-28 14:49:49 +01004044 return true;
4045 }
Jon Skeete38294a2015-06-09 19:30:44 +01004046 if (NamePart_ != other.NamePart_) return false;
4047 if (IsExtension != other.IsExtension) return false;
4048 return true;
Jon Skeetf3504cf2015-04-28 14:49:49 +01004049 }
4050
Jon Skeete38294a2015-06-09 19:30:44 +01004051 public override int GetHashCode() {
Jon Skeete6fc9772015-06-26 10:32:50 +01004052 int hash = 1;
Jon Skeetfb1547b2015-06-12 13:11:54 +01004053 if (NamePart_.Length != 0) hash ^= NamePart_.GetHashCode();
Jon Skeete38294a2015-06-09 19:30:44 +01004054 if (IsExtension != false) hash ^= IsExtension.GetHashCode();
4055 return hash;
Jon Skeetf3504cf2015-04-28 14:49:49 +01004056 }
4057
Jon Skeet5b9288e2015-07-03 12:45:36 +01004058 public override string ToString() {
4059 return pb::JsonFormatter.Default.Format(this);
4060 }
4061
Jon Skeet96ddf012015-06-12 09:53:12 +01004062 public void WriteTo(pb::CodedOutputStream output) {
Jon Skeetfb1547b2015-06-12 13:11:54 +01004063 if (NamePart_.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01004064 output.WriteRawTag(10);
4065 output.WriteString(NamePart_);
Jon Skeete38294a2015-06-09 19:30:44 +01004066 }
4067 if (IsExtension != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01004068 output.WriteRawTag(16);
4069 output.WriteBool(IsExtension);
Jon Skeetf3504cf2015-04-28 14:49:49 +01004070 }
4071 }
4072
Jon Skeete38294a2015-06-09 19:30:44 +01004073 public int CalculateSize() {
4074 int size = 0;
Jon Skeetfb1547b2015-06-12 13:11:54 +01004075 if (NamePart_.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01004076 size += 1 + pb::CodedOutputStream.ComputeStringSize(NamePart_);
Jon Skeetf3504cf2015-04-28 14:49:49 +01004077 }
Jon Skeete38294a2015-06-09 19:30:44 +01004078 if (IsExtension != false) {
Jon Skeet828b7e62015-06-17 14:59:10 +01004079 size += 1 + 1;
Jon Skeetf3504cf2015-04-28 14:49:49 +01004080 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01004081 return size;
4082 }
Jon Skeet3e7d70c2015-06-25 12:08:55 +01004083
Jon Skeete38294a2015-06-09 19:30:44 +01004084 public void MergeFrom(NamePart other) {
4085 if (other == null) {
4086 return;
4087 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01004088 if (other.NamePart_.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01004089 NamePart_ = other.NamePart_;
4090 }
4091 if (other.IsExtension != false) {
4092 IsExtension = other.IsExtension;
4093 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01004094 }
4095
Jon Skeet96ddf012015-06-12 09:53:12 +01004096 public void MergeFrom(pb::CodedInputStream input) {
Jon Skeete38294a2015-06-09 19:30:44 +01004097 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +01004098 while ((tag = input.ReadTag()) != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01004099 switch(tag) {
Jon Skeete38294a2015-06-09 19:30:44 +01004100 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +01004101 input.SkipLastField();
Jon Skeete38294a2015-06-09 19:30:44 +01004102 break;
4103 case 10: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01004104 NamePart_ = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +01004105 break;
4106 }
4107 case 16: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01004108 IsExtension = input.ReadBool();
Jon Skeete38294a2015-06-09 19:30:44 +01004109 break;
4110 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01004111 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01004112 }
4113 }
Jon Skeete38294a2015-06-09 19:30:44 +01004114
Jon Skeetf3504cf2015-04-28 14:49:49 +01004115 }
4116
4117 }
4118 #endregion
4119
Jon Skeetf3504cf2015-04-28 14:49:49 +01004120 }
4121
4122 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +01004123 internal sealed partial class SourceCodeInfo : pb::IMessage<SourceCodeInfo> {
Jon Skeete38294a2015-06-09 19:30:44 +01004124 private static readonly pb::MessageParser<SourceCodeInfo> _parser = new pb::MessageParser<SourceCodeInfo>(() => new SourceCodeInfo());
4125 public static pb::MessageParser<SourceCodeInfo> Parser { get { return _parser; } }
Jon Skeetf3504cf2015-04-28 14:49:49 +01004126
Jon Skeet76940942015-07-14 10:25:40 +01004127 public static pbr::MessageDescriptor Descriptor {
Jon Skeet9c888fa2015-07-14 11:13:52 +01004128 get { return global::Google.Protobuf.Reflection.DescriptorProtoFile.Descriptor.MessageTypes[17]; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01004129 }
4130
Jon Skeet96cffaa2015-07-20 19:25:07 +01004131 pbr::MessageDescriptor pb::IMessage.Descriptor {
4132 get { return Descriptor; }
Jon Skeete38294a2015-06-09 19:30:44 +01004133 }
4134
Jon Skeet53508222015-07-01 17:16:55 +01004135 public SourceCodeInfo() {
4136 OnConstruction();
4137 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01004138
Jon Skeet53508222015-07-01 17:16:55 +01004139 partial void OnConstruction();
4140
4141 public SourceCodeInfo(SourceCodeInfo other) : this() {
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01004142 location_ = other.location_.Clone();
Jon Skeete38294a2015-06-09 19:30:44 +01004143 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01004144
4145 public SourceCodeInfo Clone() {
4146 return new SourceCodeInfo(this);
4147 }
4148
Jon Skeete38294a2015-06-09 19:30:44 +01004149 public const int LocationFieldNumber = 1;
Jon Skeet9c888fa2015-07-14 11:13:52 +01004150 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> _repeated_location_codec
4151 = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location.Parser);
4152 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> location_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location>();
4153 internal pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> Location {
Jon Skeete38294a2015-06-09 19:30:44 +01004154 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() {
Jon Skeete6fc9772015-06-26 10:32:50 +01004173 int hash = 1;
Jon Skeete38294a2015-06-09 19:30:44 +01004174 hash ^= location_.GetHashCode();
4175 return hash;
4176 }
4177
Jon Skeet5b9288e2015-07-03 12:45:36 +01004178 public override string ToString() {
4179 return pb::JsonFormatter.Default.Format(this);
4180 }
4181
Jon Skeet96ddf012015-06-12 09:53:12 +01004182 public void WriteTo(pb::CodedOutputStream output) {
Jon Skeetf2a27cc2015-06-26 17:37:14 +01004183 location_.WriteTo(output, _repeated_location_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01004184 }
4185
4186 public int CalculateSize() {
4187 int size = 0;
Jon Skeetf2a27cc2015-06-26 17:37:14 +01004188 size += location_.CalculateSize(_repeated_location_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01004189 return size;
4190 }
Jon Skeet3e7d70c2015-06-25 12:08:55 +01004191
Jon Skeete38294a2015-06-09 19:30:44 +01004192 public void MergeFrom(SourceCodeInfo other) {
4193 if (other == null) {
4194 return;
4195 }
4196 location_.Add(other.location_);
4197 }
4198
Jon Skeet96ddf012015-06-12 09:53:12 +01004199 public void MergeFrom(pb::CodedInputStream input) {
Jon Skeete38294a2015-06-09 19:30:44 +01004200 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +01004201 while ((tag = input.ReadTag()) != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01004202 switch(tag) {
Jon Skeete38294a2015-06-09 19:30:44 +01004203 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +01004204 input.SkipLastField();
Jon Skeete38294a2015-06-09 19:30:44 +01004205 break;
4206 case 10: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +01004207 location_.AddEntriesFrom(input, _repeated_location_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01004208 break;
4209 }
4210 }
4211 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01004212 }
4213
4214 #region Nested types
4215 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4216 public static partial class Types {
4217 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet53508222015-07-01 17:16:55 +01004218 internal sealed partial class Location : pb::IMessage<Location> {
Jon Skeete38294a2015-06-09 19:30:44 +01004219 private static readonly pb::MessageParser<Location> _parser = new pb::MessageParser<Location>(() => new Location());
4220 public static pb::MessageParser<Location> Parser { get { return _parser; } }
Jon Skeetf3504cf2015-04-28 14:49:49 +01004221
Jon Skeet76940942015-07-14 10:25:40 +01004222 public static pbr::MessageDescriptor Descriptor {
Jon Skeet9c888fa2015-07-14 11:13:52 +01004223 get { return global::Google.Protobuf.Reflection.SourceCodeInfo.Descriptor.NestedTypes[0]; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01004224 }
4225
Jon Skeet96cffaa2015-07-20 19:25:07 +01004226 pbr::MessageDescriptor pb::IMessage.Descriptor {
4227 get { return Descriptor; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01004228 }
4229
Jon Skeet53508222015-07-01 17:16:55 +01004230 public Location() {
4231 OnConstruction();
4232 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01004233
Jon Skeet53508222015-07-01 17:16:55 +01004234 partial void OnConstruction();
4235
4236 public Location(Location other) : this() {
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01004237 path_ = other.path_.Clone();
4238 span_ = other.span_.Clone();
4239 leadingComments_ = other.leadingComments_;
4240 trailingComments_ = other.trailingComments_;
4241 leadingDetachedComments_ = other.leadingDetachedComments_.Clone();
Jon Skeete38294a2015-06-09 19:30:44 +01004242 }
Jon Skeet6c1fe6e2015-06-23 11:54:19 +01004243
4244 public Location Clone() {
4245 return new Location(this);
4246 }
4247
Jon Skeetf3504cf2015-04-28 14:49:49 +01004248 public const int PathFieldNumber = 1;
Jon Skeetf2a27cc2015-06-26 17:37:14 +01004249 private static readonly pb::FieldCodec<int> _repeated_path_codec
4250 = pb::FieldCodec.ForInt32(10);
Jon Skeete38294a2015-06-09 19:30:44 +01004251 private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField<int>();
Jon Skeet53508222015-07-01 17:16:55 +01004252 internal pbc::RepeatedField<int> Path {
Jon Skeete38294a2015-06-09 19:30:44 +01004253 get { return path_; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01004254 }
4255
4256 public const int SpanFieldNumber = 2;
Jon Skeetf2a27cc2015-06-26 17:37:14 +01004257 private static readonly pb::FieldCodec<int> _repeated_span_codec
4258 = pb::FieldCodec.ForInt32(18);
Jon Skeete38294a2015-06-09 19:30:44 +01004259 private readonly pbc::RepeatedField<int> span_ = new pbc::RepeatedField<int>();
Jon Skeet53508222015-07-01 17:16:55 +01004260 internal pbc::RepeatedField<int> Span {
Jon Skeete38294a2015-06-09 19:30:44 +01004261 get { return span_; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01004262 }
4263
4264 public const int LeadingCommentsFieldNumber = 3;
Jon Skeetf3504cf2015-04-28 14:49:49 +01004265 private string leadingComments_ = "";
Jon Skeet53508222015-07-01 17:16:55 +01004266 internal string LeadingComments {
Jon Skeetf3504cf2015-04-28 14:49:49 +01004267 get { return leadingComments_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01004268 set {
Jon Skeetd18cc082015-07-30 13:50:02 +01004269 leadingComments_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +01004270 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01004271 }
4272
4273 public const int TrailingCommentsFieldNumber = 4;
Jon Skeetf3504cf2015-04-28 14:49:49 +01004274 private string trailingComments_ = "";
Jon Skeet53508222015-07-01 17:16:55 +01004275 internal string TrailingComments {
Jon Skeetf3504cf2015-04-28 14:49:49 +01004276 get { return trailingComments_; }
Jon Skeetbfee2df2015-06-23 16:09:27 +01004277 set {
Jon Skeetd18cc082015-07-30 13:50:02 +01004278 trailingComments_ = pb::Preconditions.CheckNotNull(value, "value");
Jon Skeetbfee2df2015-06-23 16:09:27 +01004279 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01004280 }
4281
4282 public const int LeadingDetachedCommentsFieldNumber = 6;
Jon Skeetf2a27cc2015-06-26 17:37:14 +01004283 private static readonly pb::FieldCodec<string> _repeated_leadingDetachedComments_codec
4284 = pb::FieldCodec.ForString(50);
Jon Skeete38294a2015-06-09 19:30:44 +01004285 private readonly pbc::RepeatedField<string> leadingDetachedComments_ = new pbc::RepeatedField<string>();
Jon Skeet53508222015-07-01 17:16:55 +01004286 internal pbc::RepeatedField<string> LeadingDetachedComments {
Jon Skeete38294a2015-06-09 19:30:44 +01004287 get { return leadingDetachedComments_; }
Jon Skeetf3504cf2015-04-28 14:49:49 +01004288 }
4289
Jon Skeete38294a2015-06-09 19:30:44 +01004290 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)) {
Jon Skeetf3504cf2015-04-28 14:49:49 +01004299 return true;
4300 }
Jon Skeete38294a2015-06-09 19:30:44 +01004301 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_)) return false;
4306 return true;
Jon Skeetf3504cf2015-04-28 14:49:49 +01004307 }
4308
Jon Skeete38294a2015-06-09 19:30:44 +01004309 public override int GetHashCode() {
Jon Skeete6fc9772015-06-26 10:32:50 +01004310 int hash = 1;
Jon Skeete38294a2015-06-09 19:30:44 +01004311 hash ^= path_.GetHashCode();
4312 hash ^= span_.GetHashCode();
Jon Skeetfb1547b2015-06-12 13:11:54 +01004313 if (LeadingComments.Length != 0) hash ^= LeadingComments.GetHashCode();
4314 if (TrailingComments.Length != 0) hash ^= TrailingComments.GetHashCode();
Jon Skeete38294a2015-06-09 19:30:44 +01004315 hash ^= leadingDetachedComments_.GetHashCode();
4316 return hash;
Jon Skeetf3504cf2015-04-28 14:49:49 +01004317 }
4318
Jon Skeet5b9288e2015-07-03 12:45:36 +01004319 public override string ToString() {
4320 return pb::JsonFormatter.Default.Format(this);
4321 }
4322
Jon Skeet96ddf012015-06-12 09:53:12 +01004323 public void WriteTo(pb::CodedOutputStream output) {
Jon Skeetf2a27cc2015-06-26 17:37:14 +01004324 path_.WriteTo(output, _repeated_path_codec);
4325 span_.WriteTo(output, _repeated_span_codec);
Jon Skeetfb1547b2015-06-12 13:11:54 +01004326 if (LeadingComments.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01004327 output.WriteRawTag(26);
4328 output.WriteString(LeadingComments);
Jon Skeetf3504cf2015-04-28 14:49:49 +01004329 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01004330 if (TrailingComments.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01004331 output.WriteRawTag(34);
4332 output.WriteString(TrailingComments);
Jon Skeete38294a2015-06-09 19:30:44 +01004333 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +01004334 leadingDetachedComments_.WriteTo(output, _repeated_leadingDetachedComments_codec);
Jon Skeetf3504cf2015-04-28 14:49:49 +01004335 }
4336
Jon Skeete38294a2015-06-09 19:30:44 +01004337 public int CalculateSize() {
4338 int size = 0;
Jon Skeetf2a27cc2015-06-26 17:37:14 +01004339 size += path_.CalculateSize(_repeated_path_codec);
4340 size += span_.CalculateSize(_repeated_span_codec);
Jon Skeetfb1547b2015-06-12 13:11:54 +01004341 if (LeadingComments.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01004342 size += 1 + pb::CodedOutputStream.ComputeStringSize(LeadingComments);
Jon Skeetf3504cf2015-04-28 14:49:49 +01004343 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01004344 if (TrailingComments.Length != 0) {
Jon Skeet828b7e62015-06-17 14:59:10 +01004345 size += 1 + pb::CodedOutputStream.ComputeStringSize(TrailingComments);
Jon Skeetf3504cf2015-04-28 14:49:49 +01004346 }
Jon Skeetf2a27cc2015-06-26 17:37:14 +01004347 size += leadingDetachedComments_.CalculateSize(_repeated_leadingDetachedComments_codec);
Jon Skeetf3504cf2015-04-28 14:49:49 +01004348 return size;
4349 }
Jon Skeet3e7d70c2015-06-25 12:08:55 +01004350
Jon Skeete38294a2015-06-09 19:30:44 +01004351 public void MergeFrom(Location other) {
4352 if (other == null) {
4353 return;
4354 }
4355 path_.Add(other.path_);
4356 span_.Add(other.span_);
Jon Skeetfb1547b2015-06-12 13:11:54 +01004357 if (other.LeadingComments.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01004358 LeadingComments = other.LeadingComments;
4359 }
Jon Skeetfb1547b2015-06-12 13:11:54 +01004360 if (other.TrailingComments.Length != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01004361 TrailingComments = other.TrailingComments;
4362 }
4363 leadingDetachedComments_.Add(other.leadingDetachedComments_);
Jon Skeetf3504cf2015-04-28 14:49:49 +01004364 }
4365
Jon Skeet96ddf012015-06-12 09:53:12 +01004366 public void MergeFrom(pb::CodedInputStream input) {
Jon Skeete38294a2015-06-09 19:30:44 +01004367 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +01004368 while ((tag = input.ReadTag()) != 0) {
Jon Skeete38294a2015-06-09 19:30:44 +01004369 switch(tag) {
Jon Skeete38294a2015-06-09 19:30:44 +01004370 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +01004371 input.SkipLastField();
Jon Skeete38294a2015-06-09 19:30:44 +01004372 break;
4373 case 10:
4374 case 8: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +01004375 path_.AddEntriesFrom(input, _repeated_path_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01004376 break;
4377 }
4378 case 18:
4379 case 16: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +01004380 span_.AddEntriesFrom(input, _repeated_span_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01004381 break;
4382 }
4383 case 26: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01004384 LeadingComments = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +01004385 break;
4386 }
4387 case 34: {
Jon Skeetfb1547b2015-06-12 13:11:54 +01004388 TrailingComments = input.ReadString();
Jon Skeete38294a2015-06-09 19:30:44 +01004389 break;
4390 }
4391 case 50: {
Jon Skeetf2a27cc2015-06-26 17:37:14 +01004392 leadingDetachedComments_.AddEntriesFrom(input, _repeated_leadingDetachedComments_codec);
Jon Skeete38294a2015-06-09 19:30:44 +01004393 break;
4394 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01004395 }
Jon Skeetf3504cf2015-04-28 14:49:49 +01004396 }
4397 }
Jon Skeete38294a2015-06-09 19:30:44 +01004398
Jon Skeetf3504cf2015-04-28 14:49:49 +01004399 }
4400
4401 }
4402 #endregion
4403
Jon Skeetf3504cf2015-04-28 14:49:49 +01004404 }
4405
4406 #endregion
4407
4408}
4409
4410#endregion Designer generated code