1 // <auto-generated>
2 //     Generated by the protocol buffer compiler.  DO NOT EDIT!
3 //     source: google/protobuf/descriptor.proto
4 // </auto-generated>
5 #pragma warning disable 1591, 0612, 3021
6 #region Designer generated code
7 
8 using pb = global::Google.Protobuf;
9 using pbc = global::Google.Protobuf.Collections;
10 using pbr = global::Google.Protobuf.Reflection;
11 using scg = global::System.Collections.Generic;
12 namespace Google.Protobuf.Reflection {
13 
14   /// <summary>Holder for reflection information generated from google/protobuf/descriptor.proto</summary>
15   internal static partial class DescriptorReflection {
16 
17     #region Descriptor
18     /// <summary>File descriptor for google/protobuf/descriptor.proto</summary>
19     public static pbr::FileDescriptor Descriptor {
20       get { return descriptor; }
21     }
22     private static pbr::FileDescriptor descriptor;
23 
DescriptorReflection()24     static DescriptorReflection() {
25       byte[] descriptorData = global::System.Convert.FromBase64String(
26           string.Concat(
27             "CiBnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvci5wcm90bxIPZ29vZ2xlLnBy",
28             "b3RvYnVmIkcKEUZpbGVEZXNjcmlwdG9yU2V0EjIKBGZpbGUYASADKAsyJC5n",
29             "b29nbGUucHJvdG9idWYuRmlsZURlc2NyaXB0b3JQcm90byLbAwoTRmlsZURl",
30             "c2NyaXB0b3JQcm90bxIMCgRuYW1lGAEgASgJEg8KB3BhY2thZ2UYAiABKAkS",
31             "EgoKZGVwZW5kZW5jeRgDIAMoCRIZChFwdWJsaWNfZGVwZW5kZW5jeRgKIAMo",
32             "BRIXCg93ZWFrX2RlcGVuZGVuY3kYCyADKAUSNgoMbWVzc2FnZV90eXBlGAQg",
33             "AygLMiAuZ29vZ2xlLnByb3RvYnVmLkRlc2NyaXB0b3JQcm90bxI3CgllbnVt",
34             "X3R5cGUYBSADKAsyJC5nb29nbGUucHJvdG9idWYuRW51bURlc2NyaXB0b3JQ",
35             "cm90bxI4CgdzZXJ2aWNlGAYgAygLMicuZ29vZ2xlLnByb3RvYnVmLlNlcnZp",
36             "Y2VEZXNjcmlwdG9yUHJvdG8SOAoJZXh0ZW5zaW9uGAcgAygLMiUuZ29vZ2xl",
37             "LnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvEi0KB29wdGlvbnMYCCAB",
38             "KAsyHC5nb29nbGUucHJvdG9idWYuRmlsZU9wdGlvbnMSOQoQc291cmNlX2Nv",
39             "ZGVfaW5mbxgJIAEoCzIfLmdvb2dsZS5wcm90b2J1Zi5Tb3VyY2VDb2RlSW5m",
40             "bxIOCgZzeW50YXgYDCABKAkiqQUKD0Rlc2NyaXB0b3JQcm90bxIMCgRuYW1l",
41             "GAEgASgJEjQKBWZpZWxkGAIgAygLMiUuZ29vZ2xlLnByb3RvYnVmLkZpZWxk",
42             "RGVzY3JpcHRvclByb3RvEjgKCWV4dGVuc2lvbhgGIAMoCzIlLmdvb2dsZS5w",
43             "cm90b2J1Zi5GaWVsZERlc2NyaXB0b3JQcm90bxI1CgtuZXN0ZWRfdHlwZRgD",
44             "IAMoCzIgLmdvb2dsZS5wcm90b2J1Zi5EZXNjcmlwdG9yUHJvdG8SNwoJZW51",
45             "bV90eXBlGAQgAygLMiQuZ29vZ2xlLnByb3RvYnVmLkVudW1EZXNjcmlwdG9y",
46             "UHJvdG8SSAoPZXh0ZW5zaW9uX3JhbmdlGAUgAygLMi8uZ29vZ2xlLnByb3Rv",
47             "YnVmLkRlc2NyaXB0b3JQcm90by5FeHRlbnNpb25SYW5nZRI5CgpvbmVvZl9k",
48             "ZWNsGAggAygLMiUuZ29vZ2xlLnByb3RvYnVmLk9uZW9mRGVzY3JpcHRvclBy",
49             "b3RvEjAKB29wdGlvbnMYByABKAsyHy5nb29nbGUucHJvdG9idWYuTWVzc2Fn",
50             "ZU9wdGlvbnMSRgoOcmVzZXJ2ZWRfcmFuZ2UYCSADKAsyLi5nb29nbGUucHJv",
51             "dG9idWYuRGVzY3JpcHRvclByb3RvLlJlc2VydmVkUmFuZ2USFQoNcmVzZXJ2",
52             "ZWRfbmFtZRgKIAMoCRplCg5FeHRlbnNpb25SYW5nZRINCgVzdGFydBgBIAEo",
53             "BRILCgNlbmQYAiABKAUSNwoHb3B0aW9ucxgDIAEoCzImLmdvb2dsZS5wcm90",
54             "b2J1Zi5FeHRlbnNpb25SYW5nZU9wdGlvbnMaKwoNUmVzZXJ2ZWRSYW5nZRIN",
55             "CgVzdGFydBgBIAEoBRILCgNlbmQYAiABKAUiZwoVRXh0ZW5zaW9uUmFuZ2VP",
56             "cHRpb25zEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2ds",
57             "ZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIivAUK",
58             "FEZpZWxkRGVzY3JpcHRvclByb3RvEgwKBG5hbWUYASABKAkSDgoGbnVtYmVy",
59             "GAMgASgFEjoKBWxhYmVsGAQgASgOMisuZ29vZ2xlLnByb3RvYnVmLkZpZWxk",
60             "RGVzY3JpcHRvclByb3RvLkxhYmVsEjgKBHR5cGUYBSABKA4yKi5nb29nbGUu",
61             "cHJvdG9idWYuRmllbGREZXNjcmlwdG9yUHJvdG8uVHlwZRIRCgl0eXBlX25h",
62             "bWUYBiABKAkSEAoIZXh0ZW5kZWUYAiABKAkSFQoNZGVmYXVsdF92YWx1ZRgH",
63             "IAEoCRITCgtvbmVvZl9pbmRleBgJIAEoBRIRCglqc29uX25hbWUYCiABKAkS",
64             "LgoHb3B0aW9ucxgIIAEoCzIdLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlv",
65             "bnMitgIKBFR5cGUSDwoLVFlQRV9ET1VCTEUQARIOCgpUWVBFX0ZMT0FUEAIS",
66             "DgoKVFlQRV9JTlQ2NBADEg8KC1RZUEVfVUlOVDY0EAQSDgoKVFlQRV9JTlQz",
67             "MhAFEhAKDFRZUEVfRklYRUQ2NBAGEhAKDFRZUEVfRklYRUQzMhAHEg0KCVRZ",
68             "UEVfQk9PTBAIEg8KC1RZUEVfU1RSSU5HEAkSDgoKVFlQRV9HUk9VUBAKEhAK",
69             "DFRZUEVfTUVTU0FHRRALEg4KClRZUEVfQllURVMQDBIPCgtUWVBFX1VJTlQz",
70             "MhANEg0KCVRZUEVfRU5VTRAOEhEKDVRZUEVfU0ZJWEVEMzIQDxIRCg1UWVBF",
71             "X1NGSVhFRDY0EBASDwoLVFlQRV9TSU5UMzIQERIPCgtUWVBFX1NJTlQ2NBAS",
72             "IkMKBUxhYmVsEhIKDkxBQkVMX09QVElPTkFMEAESEgoOTEFCRUxfUkVRVUlS",
73             "RUQQAhISCg5MQUJFTF9SRVBFQVRFRBADIlQKFE9uZW9mRGVzY3JpcHRvclBy",
74             "b3RvEgwKBG5hbWUYASABKAkSLgoHb3B0aW9ucxgCIAEoCzIdLmdvb2dsZS5w",
75             "cm90b2J1Zi5PbmVvZk9wdGlvbnMipAIKE0VudW1EZXNjcmlwdG9yUHJvdG8S",
76             "DAoEbmFtZRgBIAEoCRI4CgV2YWx1ZRgCIAMoCzIpLmdvb2dsZS5wcm90b2J1",
77             "Zi5FbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8SLQoHb3B0aW9ucxgDIAEoCzIc",
78             "Lmdvb2dsZS5wcm90b2J1Zi5FbnVtT3B0aW9ucxJOCg5yZXNlcnZlZF9yYW5n",
79             "ZRgEIAMoCzI2Lmdvb2dsZS5wcm90b2J1Zi5FbnVtRGVzY3JpcHRvclByb3Rv",
80             "LkVudW1SZXNlcnZlZFJhbmdlEhUKDXJlc2VydmVkX25hbWUYBSADKAkaLwoR",
81             "RW51bVJlc2VydmVkUmFuZ2USDQoFc3RhcnQYASABKAUSCwoDZW5kGAIgASgF",
82             "ImwKGEVudW1WYWx1ZURlc2NyaXB0b3JQcm90bxIMCgRuYW1lGAEgASgJEg4K",
83             "Bm51bWJlchgCIAEoBRIyCgdvcHRpb25zGAMgASgLMiEuZ29vZ2xlLnByb3Rv",
84             "YnVmLkVudW1WYWx1ZU9wdGlvbnMikAEKFlNlcnZpY2VEZXNjcmlwdG9yUHJv",
85             "dG8SDAoEbmFtZRgBIAEoCRI2CgZtZXRob2QYAiADKAsyJi5nb29nbGUucHJv",
86             "dG9idWYuTWV0aG9kRGVzY3JpcHRvclByb3RvEjAKB29wdGlvbnMYAyABKAsy",
87             "Hy5nb29nbGUucHJvdG9idWYuU2VydmljZU9wdGlvbnMiwQEKFU1ldGhvZERl",
88             "c2NyaXB0b3JQcm90bxIMCgRuYW1lGAEgASgJEhIKCmlucHV0X3R5cGUYAiAB",
89             "KAkSEwoLb3V0cHV0X3R5cGUYAyABKAkSLwoHb3B0aW9ucxgEIAEoCzIeLmdv",
90             "b2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zEh8KEGNsaWVudF9zdHJlYW1p",
91             "bmcYBSABKAg6BWZhbHNlEh8KEHNlcnZlcl9zdHJlYW1pbmcYBiABKAg6BWZh",
92             "bHNlIqYGCgtGaWxlT3B0aW9ucxIUCgxqYXZhX3BhY2thZ2UYASABKAkSHAoU",
93             "amF2YV9vdXRlcl9jbGFzc25hbWUYCCABKAkSIgoTamF2YV9tdWx0aXBsZV9m",
94             "aWxlcxgKIAEoCDoFZmFsc2USKQodamF2YV9nZW5lcmF0ZV9lcXVhbHNfYW5k",
95             "X2hhc2gYFCABKAhCAhgBEiUKFmphdmFfc3RyaW5nX2NoZWNrX3V0ZjgYGyAB",
96             "KAg6BWZhbHNlEkYKDG9wdGltaXplX2ZvchgJIAEoDjIpLmdvb2dsZS5wcm90",
97             "b2J1Zi5GaWxlT3B0aW9ucy5PcHRpbWl6ZU1vZGU6BVNQRUVEEhIKCmdvX3Bh",
98             "Y2thZ2UYCyABKAkSIgoTY2NfZ2VuZXJpY19zZXJ2aWNlcxgQIAEoCDoFZmFs",
99             "c2USJAoVamF2YV9nZW5lcmljX3NlcnZpY2VzGBEgASgIOgVmYWxzZRIiChNw",
100             "eV9nZW5lcmljX3NlcnZpY2VzGBIgASgIOgVmYWxzZRIjChRwaHBfZ2VuZXJp",
101             "Y19zZXJ2aWNlcxgqIAEoCDoFZmFsc2USGQoKZGVwcmVjYXRlZBgXIAEoCDoF",
102             "ZmFsc2USHwoQY2NfZW5hYmxlX2FyZW5hcxgfIAEoCDoFZmFsc2USGQoRb2Jq",
103             "Y19jbGFzc19wcmVmaXgYJCABKAkSGAoQY3NoYXJwX25hbWVzcGFjZRglIAEo",
104             "CRIUCgxzd2lmdF9wcmVmaXgYJyABKAkSGAoQcGhwX2NsYXNzX3ByZWZpeBgo",
105             "IAEoCRIVCg1waHBfbmFtZXNwYWNlGCkgASgJEh4KFnBocF9tZXRhZGF0YV9u",
106             "YW1lc3BhY2UYLCABKAkSFAoMcnVieV9wYWNrYWdlGC0gASgJEkMKFHVuaW50",
107             "ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5Vbmlu",
108             "dGVycHJldGVkT3B0aW9uIjoKDE9wdGltaXplTW9kZRIJCgVTUEVFRBABEg0K",
109             "CUNPREVfU0laRRACEhAKDExJVEVfUlVOVElNRRADKgkI6AcQgICAgAJKBAgm",
110             "ECci8gEKDk1lc3NhZ2VPcHRpb25zEiYKF21lc3NhZ2Vfc2V0X3dpcmVfZm9y",
111             "bWF0GAEgASgIOgVmYWxzZRIuCh9ub19zdGFuZGFyZF9kZXNjcmlwdG9yX2Fj",
112             "Y2Vzc29yGAIgASgIOgVmYWxzZRIZCgpkZXByZWNhdGVkGAMgASgIOgVmYWxz",
113             "ZRIRCgltYXBfZW50cnkYByABKAgSQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y",
114             "5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24q",
115             "CQjoBxCAgICAAkoECAgQCUoECAkQCiKeAwoMRmllbGRPcHRpb25zEjoKBWN0",
116             "eXBlGAEgASgOMiMuZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucy5DVHlw",
117             "ZToGU1RSSU5HEg4KBnBhY2tlZBgCIAEoCBI/CgZqc3R5cGUYBiABKA4yJC5n",
118             "b29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zLkpTVHlwZToJSlNfTk9STUFM",
119             "EhMKBGxhenkYBSABKAg6BWZhbHNlEhkKCmRlcHJlY2F0ZWQYAyABKAg6BWZh",
120             "bHNlEhMKBHdlYWsYCiABKAg6BWZhbHNlEkMKFHVuaW50ZXJwcmV0ZWRfb3B0",
121             "aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0",
122             "aW9uIi8KBUNUeXBlEgoKBlNUUklORxAAEggKBENPUkQQARIQCgxTVFJJTkdf",
123             "UElFQ0UQAiI1CgZKU1R5cGUSDQoJSlNfTk9STUFMEAASDQoJSlNfU1RSSU5H",
124             "EAESDQoJSlNfTlVNQkVSEAIqCQjoBxCAgICAAkoECAQQBSJeCgxPbmVvZk9w",
125             "dGlvbnMSQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xl",
126             "LnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBxCAgICAAiKTAQoL",
127             "RW51bU9wdGlvbnMSEwoLYWxsb3dfYWxpYXMYAiABKAgSGQoKZGVwcmVjYXRl",
128             "ZBgDIAEoCDoFZmFsc2USQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygL",
129             "MiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBxCA",
130             "gICAAkoECAUQBiJ9ChBFbnVtVmFsdWVPcHRpb25zEhkKCmRlcHJlY2F0ZWQY",
131             "ASABKAg6BWZhbHNlEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIk",
132             "Lmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI6AcQgICA",
133             "gAIiewoOU2VydmljZU9wdGlvbnMSGQoKZGVwcmVjYXRlZBghIAEoCDoFZmFs",
134             "c2USQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnBy",
135             "b3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBxCAgICAAiKtAgoNTWV0",
136             "aG9kT3B0aW9ucxIZCgpkZXByZWNhdGVkGCEgASgIOgVmYWxzZRJfChFpZGVt",
137             "cG90ZW5jeV9sZXZlbBgiIAEoDjIvLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RP",
138             "cHRpb25zLklkZW1wb3RlbmN5TGV2ZWw6E0lERU1QT1RFTkNZX1VOS05PV04S",
139             "QwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3Rv",
140             "YnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24iUAoQSWRlbXBvdGVuY3lMZXZlbBIX",
141             "ChNJREVNUE9URU5DWV9VTktOT1dOEAASEwoPTk9fU0lERV9FRkZFQ1RTEAES",
142             "DgoKSURFTVBPVEVOVBACKgkI6AcQgICAgAIingIKE1VuaW50ZXJwcmV0ZWRP",
143             "cHRpb24SOwoEbmFtZRgCIAMoCzItLmdvb2dsZS5wcm90b2J1Zi5VbmludGVy",
144             "cHJldGVkT3B0aW9uLk5hbWVQYXJ0EhgKEGlkZW50aWZpZXJfdmFsdWUYAyAB",
145             "KAkSGgoScG9zaXRpdmVfaW50X3ZhbHVlGAQgASgEEhoKEm5lZ2F0aXZlX2lu",
146             "dF92YWx1ZRgFIAEoAxIUCgxkb3VibGVfdmFsdWUYBiABKAESFAoMc3RyaW5n",
147             "X3ZhbHVlGAcgASgMEhcKD2FnZ3JlZ2F0ZV92YWx1ZRgIIAEoCRozCghOYW1l",
148             "UGFydBIRCgluYW1lX3BhcnQYASACKAkSFAoMaXNfZXh0ZW5zaW9uGAIgAigI",
149             "ItUBCg5Tb3VyY2VDb2RlSW5mbxI6Cghsb2NhdGlvbhgBIAMoCzIoLmdvb2ds",
150             "ZS5wcm90b2J1Zi5Tb3VyY2VDb2RlSW5mby5Mb2NhdGlvbhqGAQoITG9jYXRp",
151             "b24SEAoEcGF0aBgBIAMoBUICEAESEAoEc3BhbhgCIAMoBUICEAESGAoQbGVh",
152             "ZGluZ19jb21tZW50cxgDIAEoCRIZChF0cmFpbGluZ19jb21tZW50cxgEIAEo",
153             "CRIhChlsZWFkaW5nX2RldGFjaGVkX2NvbW1lbnRzGAYgAygJIqcBChFHZW5l",
154             "cmF0ZWRDb2RlSW5mbxJBCgphbm5vdGF0aW9uGAEgAygLMi0uZ29vZ2xlLnBy",
155             "b3RvYnVmLkdlbmVyYXRlZENvZGVJbmZvLkFubm90YXRpb24aTwoKQW5ub3Rh",
156             "dGlvbhIQCgRwYXRoGAEgAygFQgIQARITCgtzb3VyY2VfZmlsZRgCIAEoCRIN",
157             "CgViZWdpbhgDIAEoBRILCgNlbmQYBCABKAVCjwEKE2NvbS5nb29nbGUucHJv",
158             "dG9idWZCEERlc2NyaXB0b3JQcm90b3NIAVo+Z2l0aHViLmNvbS9nb2xhbmcv",
159             "cHJvdG9idWYvcHJvdG9jLWdlbi1nby9kZXNjcmlwdG9yO2Rlc2NyaXB0b3L4",
160             "AQGiAgNHUEKqAhpHb29nbGUuUHJvdG9idWYuUmVmbGVjdGlvbg=="));
161       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
162           new pbr::FileDescriptor[] { },
163           new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
164             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FileDescriptorSet), global::Google.Protobuf.Reflection.FileDescriptorSet.Parser, new[]{ "File" }, null, null, null, null),
165             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FileDescriptorProto), global::Google.Protobuf.Reflection.FileDescriptorProto.Parser, new[]{ "Name", "Package", "Dependency", "PublicDependency", "WeakDependency", "MessageType", "EnumType", "Service", "Extension", "Options", "SourceCodeInfo", "Syntax" }, null, null, null, null),
166             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.DescriptorProto), global::Google.Protobuf.Reflection.DescriptorProto.Parser, new[]{ "Name", "Field", "Extension", "NestedType", "EnumType", "ExtensionRange", "OneofDecl", "Options", "ReservedRange", "ReservedName" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange), global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange.Parser, new[]{ "Start", "End", "Options" }, null, null, null, null),
167             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange), global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange.Parser, new[]{ "Start", "End" }, null, null, null, null)}),
168             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.ExtensionRangeOptions), global::Google.Protobuf.Reflection.ExtensionRangeOptions.Parser, new[]{ "UninterpretedOption" }, null, null, null, null),
169             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto), global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser, new[]{ "Name", "Number", "Label", "Type", "TypeName", "Extendee", "DefaultValue", "OneofIndex", "JsonName", "Options" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type), typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label) }, null, null),
170             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.OneofDescriptorProto), global::Google.Protobuf.Reflection.OneofDescriptorProto.Parser, new[]{ "Name", "Options" }, null, null, null, null),
171             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumDescriptorProto), global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser, new[]{ "Name", "Value", "Options", "ReservedRange", "ReservedName" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumDescriptorProto.Types.EnumReservedRange), global::Google.Protobuf.Reflection.EnumDescriptorProto.Types.EnumReservedRange.Parser, new[]{ "Start", "End" }, null, null, null, null)}),
172             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumValueDescriptorProto), global::Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser, new[]{ "Name", "Number", "Options" }, null, null, null, null),
173             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.ServiceDescriptorProto), global::Google.Protobuf.Reflection.ServiceDescriptorProto.Parser, new[]{ "Name", "Method", "Options" }, null, null, null, null),
174             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.MethodDescriptorProto), global::Google.Protobuf.Reflection.MethodDescriptorProto.Parser, new[]{ "Name", "InputType", "OutputType", "Options", "ClientStreaming", "ServerStreaming" }, null, null, null, null),
175             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FileOptions), global::Google.Protobuf.Reflection.FileOptions.Parser, new[]{ "JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAndHash", "JavaStringCheckUtf8", "OptimizeFor", "GoPackage", "CcGenericServices", "JavaGenericServices", "PyGenericServices", "PhpGenericServices", "Deprecated", "CcEnableArenas", "ObjcClassPrefix", "CsharpNamespace", "SwiftPrefix", "PhpClassPrefix", "PhpNamespace", "PhpMetadataNamespace", "RubyPackage", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) }, null, null),
176             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.MessageOptions), global::Google.Protobuf.Reflection.MessageOptions.Parser, new[]{ "MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", "MapEntry", "UninterpretedOption" }, null, null, null, null),
177             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FieldOptions), global::Google.Protobuf.Reflection.FieldOptions.Parser, new[]{ "Ctype", "Packed", "Jstype", "Lazy", "Deprecated", "Weak", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.CType), typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) }, null, null),
178             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.OneofOptions), global::Google.Protobuf.Reflection.OneofOptions.Parser, new[]{ "UninterpretedOption" }, null, null, null, null),
179             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumOptions), global::Google.Protobuf.Reflection.EnumOptions.Parser, new[]{ "AllowAlias", "Deprecated", "UninterpretedOption" }, null, null, null, null),
180             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumValueOptions), global::Google.Protobuf.Reflection.EnumValueOptions.Parser, new[]{ "Deprecated", "UninterpretedOption" }, null, null, null, null),
181             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.ServiceOptions), global::Google.Protobuf.Reflection.ServiceOptions.Parser, new[]{ "Deprecated", "UninterpretedOption" }, null, null, null, null),
182             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.MethodOptions), global::Google.Protobuf.Reflection.MethodOptions.Parser, new[]{ "Deprecated", "IdempotencyLevel", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel) }, null, null),
183             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.UninterpretedOption), global::Google.Protobuf.Reflection.UninterpretedOption.Parser, new[]{ "Name", "IdentifierValue", "PositiveIntValue", "NegativeIntValue", "DoubleValue", "StringValue", "AggregateValue" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart), global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart.Parser, new[]{ "NamePart_", "IsExtension" }, null, null, null, null)}),
184             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.SourceCodeInfo), global::Google.Protobuf.Reflection.SourceCodeInfo.Parser, new[]{ "Location" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location), global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location.Parser, new[]{ "Path", "Span", "LeadingComments", "TrailingComments", "LeadingDetachedComments" }, null, null, null, null)}),
185             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.GeneratedCodeInfo), global::Google.Protobuf.Reflection.GeneratedCodeInfo.Parser, new[]{ "Annotation" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation), global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation.Parser, new[]{ "Path", "SourceFile", "Begin", "End" }, null, null, null, null)})
186           }));
187     }
188     #endregion
189 
190   }
191   #region Messages
192   /// <summary>
193   /// The protocol compiler can output a FileDescriptorSet containing the .proto
194   /// files it parses.
195   /// </summary>
196   internal sealed partial class FileDescriptorSet : pb::IMessage<FileDescriptorSet> {
197     private static readonly pb::MessageParser<FileDescriptorSet> _parser = new pb::MessageParser<FileDescriptorSet>(() => new FileDescriptorSet());
198     private pb::UnknownFieldSet _unknownFields;
199     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
200     public static pb::MessageParser<FileDescriptorSet> Parser { get { return _parser; } }
201 
202     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
203     public static pbr::MessageDescriptor Descriptor {
204       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[0]; }
205     }
206 
207     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
208     pbr::MessageDescriptor pb::IMessage.Descriptor {
209       get { return Descriptor; }
210     }
211 
212     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
FileDescriptorSet()213     public FileDescriptorSet() {
214       OnConstruction();
215     }
216 
OnConstruction()217     partial void OnConstruction();
218 
219     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
FileDescriptorSet(FileDescriptorSet other)220     public FileDescriptorSet(FileDescriptorSet other) : this() {
221       file_ = other.file_.Clone();
222       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
223     }
224 
225     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()226     public FileDescriptorSet Clone() {
227       return new FileDescriptorSet(this);
228     }
229 
230     /// <summary>Field number for the "file" field.</summary>
231     public const int FileFieldNumber = 1;
232     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FileDescriptorProto> _repeated_file_codec
233         = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.FileDescriptorProto.Parser);
234     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> file_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto>();
235     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
236     public pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> File {
237       get { return file_; }
238     }
239 
240     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)241     public override bool Equals(object other) {
242       return Equals(other as FileDescriptorSet);
243     }
244 
245     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(FileDescriptorSet other)246     public bool Equals(FileDescriptorSet other) {
247       if (ReferenceEquals(other, null)) {
248         return false;
249       }
250       if (ReferenceEquals(other, this)) {
251         return true;
252       }
253       if(!file_.Equals(other.file_)) return false;
254       return Equals(_unknownFields, other._unknownFields);
255     }
256 
257     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()258     public override int GetHashCode() {
259       int hash = 1;
260       hash ^= file_.GetHashCode();
261       if (_unknownFields != null) {
262         hash ^= _unknownFields.GetHashCode();
263       }
264       return hash;
265     }
266 
267     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()268     public override string ToString() {
269       return pb::JsonFormatter.ToDiagnosticString(this);
270     }
271 
272     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)273     public void WriteTo(pb::CodedOutputStream output) {
274       file_.WriteTo(output, _repeated_file_codec);
275       if (_unknownFields != null) {
276         _unknownFields.WriteTo(output);
277       }
278     }
279 
280     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()281     public int CalculateSize() {
282       int size = 0;
283       size += file_.CalculateSize(_repeated_file_codec);
284       if (_unknownFields != null) {
285         size += _unknownFields.CalculateSize();
286       }
287       return size;
288     }
289 
290     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(FileDescriptorSet other)291     public void MergeFrom(FileDescriptorSet other) {
292       if (other == null) {
293         return;
294       }
295       file_.Add(other.file_);
296       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
297     }
298 
299     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)300     public void MergeFrom(pb::CodedInputStream input) {
301       uint tag;
302       while ((tag = input.ReadTag()) != 0) {
303         switch(tag) {
304           default:
305             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
306             break;
307           case 10: {
308             file_.AddEntriesFrom(input, _repeated_file_codec);
309             break;
310           }
311         }
312       }
313     }
314 
315   }
316 
317   /// <summary>
318   /// Describes a complete .proto file.
319   /// </summary>
320   internal sealed partial class FileDescriptorProto : pb::IMessage<FileDescriptorProto> {
321     private static readonly pb::MessageParser<FileDescriptorProto> _parser = new pb::MessageParser<FileDescriptorProto>(() => new FileDescriptorProto());
322     private pb::UnknownFieldSet _unknownFields;
323     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
324     public static pb::MessageParser<FileDescriptorProto> Parser { get { return _parser; } }
325 
326     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
327     public static pbr::MessageDescriptor Descriptor {
328       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[1]; }
329     }
330 
331     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
332     pbr::MessageDescriptor pb::IMessage.Descriptor {
333       get { return Descriptor; }
334     }
335 
336     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
FileDescriptorProto()337     public FileDescriptorProto() {
338       OnConstruction();
339     }
340 
OnConstruction()341     partial void OnConstruction();
342 
343     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
FileDescriptorProto(FileDescriptorProto other)344     public FileDescriptorProto(FileDescriptorProto other) : this() {
345       name_ = other.name_;
346       package_ = other.package_;
347       dependency_ = other.dependency_.Clone();
348       publicDependency_ = other.publicDependency_.Clone();
349       weakDependency_ = other.weakDependency_.Clone();
350       messageType_ = other.messageType_.Clone();
351       enumType_ = other.enumType_.Clone();
352       service_ = other.service_.Clone();
353       extension_ = other.extension_.Clone();
354       options_ = other.HasOptions ? other.options_.Clone() : null;
355       sourceCodeInfo_ = other.HasSourceCodeInfo ? other.sourceCodeInfo_.Clone() : null;
356       syntax_ = other.syntax_;
357       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
358     }
359 
360     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()361     public FileDescriptorProto Clone() {
362       return new FileDescriptorProto(this);
363     }
364 
365     /// <summary>Field number for the "name" field.</summary>
366     public const int NameFieldNumber = 1;
367     private readonly static string NameDefaultValue = "";
368 
369     private string name_;
370     /// <summary>
371     /// file name, relative to root of source tree
372     /// </summary>
373     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
374     public string Name {
375       get { return name_ ?? NameDefaultValue; }
376       set {
377         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
378       }
379     }
380     /// <summary>Gets whether the "name" field is set</summary>
381     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
382     public bool HasName {
383       get { return name_ != null; }
384     }
385     /// <summary>Clears the value of the "name" field</summary>
386     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearName()387     public void ClearName() {
388       name_ = null;
389     }
390 
391     /// <summary>Field number for the "package" field.</summary>
392     public const int PackageFieldNumber = 2;
393     private readonly static string PackageDefaultValue = "";
394 
395     private string package_;
396     /// <summary>
397     /// e.g. "foo", "foo.bar", etc.
398     /// </summary>
399     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
400     public string Package {
401       get { return package_ ?? PackageDefaultValue; }
402       set {
403         package_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
404       }
405     }
406     /// <summary>Gets whether the "package" field is set</summary>
407     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
408     public bool HasPackage {
409       get { return package_ != null; }
410     }
411     /// <summary>Clears the value of the "package" field</summary>
412     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearPackage()413     public void ClearPackage() {
414       package_ = null;
415     }
416 
417     /// <summary>Field number for the "dependency" field.</summary>
418     public const int DependencyFieldNumber = 3;
419     private static readonly pb::FieldCodec<string> _repeated_dependency_codec
420         = pb::FieldCodec.ForString(26);
421     private readonly pbc::RepeatedField<string> dependency_ = new pbc::RepeatedField<string>();
422     /// <summary>
423     /// Names of files imported by this file.
424     /// </summary>
425     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
426     public pbc::RepeatedField<string> Dependency {
427       get { return dependency_; }
428     }
429 
430     /// <summary>Field number for the "public_dependency" field.</summary>
431     public const int PublicDependencyFieldNumber = 10;
432     private static readonly pb::FieldCodec<int> _repeated_publicDependency_codec
433         = pb::FieldCodec.ForInt32(80);
434     private readonly pbc::RepeatedField<int> publicDependency_ = new pbc::RepeatedField<int>();
435     /// <summary>
436     /// Indexes of the public imported files in the dependency list above.
437     /// </summary>
438     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
439     public pbc::RepeatedField<int> PublicDependency {
440       get { return publicDependency_; }
441     }
442 
443     /// <summary>Field number for the "weak_dependency" field.</summary>
444     public const int WeakDependencyFieldNumber = 11;
445     private static readonly pb::FieldCodec<int> _repeated_weakDependency_codec
446         = pb::FieldCodec.ForInt32(88);
447     private readonly pbc::RepeatedField<int> weakDependency_ = new pbc::RepeatedField<int>();
448     /// <summary>
449     /// Indexes of the weak imported files in the dependency list.
450     /// For Google-internal migration only. Do not use.
451     /// </summary>
452     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
453     public pbc::RepeatedField<int> WeakDependency {
454       get { return weakDependency_; }
455     }
456 
457     /// <summary>Field number for the "message_type" field.</summary>
458     public const int MessageTypeFieldNumber = 4;
459     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_messageType_codec
460         = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.DescriptorProto.Parser);
461     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> messageType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>();
462     /// <summary>
463     /// All top-level definitions in this file.
464     /// </summary>
465     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
466     public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> MessageType {
467       get { return messageType_; }
468     }
469 
470     /// <summary>Field number for the "enum_type" field.</summary>
471     public const int EnumTypeFieldNumber = 5;
472     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec
473         = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser);
474     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>();
475     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
476     public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType {
477       get { return enumType_; }
478     }
479 
480     /// <summary>Field number for the "service" field.</summary>
481     public const int ServiceFieldNumber = 6;
482     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.ServiceDescriptorProto> _repeated_service_codec
483         = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.ServiceDescriptorProto.Parser);
484     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> service_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto>();
485     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
486     public pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> Service {
487       get { return service_; }
488     }
489 
490     /// <summary>Field number for the "extension" field.</summary>
491     public const int ExtensionFieldNumber = 7;
492     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec
493         = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
494     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
495     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
496     public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension {
497       get { return extension_; }
498     }
499 
500     /// <summary>Field number for the "options" field.</summary>
501     public const int OptionsFieldNumber = 8;
502     private global::Google.Protobuf.Reflection.FileOptions options_;
503     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
504     public global::Google.Protobuf.Reflection.FileOptions Options {
505       get { return options_; }
506       set {
507         options_ = value;
508       }
509     }
510     /// <summary>Gets whether the options field is set</summary>
511     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
512     public bool HasOptions {
513       get { return options_ != null; }
514     }
515     /// <summary>Clears the value of the options field</summary>
516     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearOptions()517     public void ClearOptions() {
518       options_ = null;
519     }
520 
521     /// <summary>Field number for the "source_code_info" field.</summary>
522     public const int SourceCodeInfoFieldNumber = 9;
523     private global::Google.Protobuf.Reflection.SourceCodeInfo sourceCodeInfo_;
524     /// <summary>
525     /// This field contains optional information about the original source code.
526     /// You may safely remove this entire field without harming runtime
527     /// functionality of the descriptors -- the information is needed only by
528     /// development tools.
529     /// </summary>
530     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
531     public global::Google.Protobuf.Reflection.SourceCodeInfo SourceCodeInfo {
532       get { return sourceCodeInfo_; }
533       set {
534         sourceCodeInfo_ = value;
535       }
536     }
537     /// <summary>Gets whether the source_code_info field is set</summary>
538     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
539     public bool HasSourceCodeInfo {
540       get { return sourceCodeInfo_ != null; }
541     }
542     /// <summary>Clears the value of the source_code_info field</summary>
543     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearSourceCodeInfo()544     public void ClearSourceCodeInfo() {
545       sourceCodeInfo_ = null;
546     }
547 
548     /// <summary>Field number for the "syntax" field.</summary>
549     public const int SyntaxFieldNumber = 12;
550     private readonly static string SyntaxDefaultValue = "";
551 
552     private string syntax_;
553     /// <summary>
554     /// The syntax of the proto file.
555     /// The supported values are "proto2" and "proto3".
556     /// </summary>
557     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
558     public string Syntax {
559       get { return syntax_ ?? SyntaxDefaultValue; }
560       set {
561         syntax_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
562       }
563     }
564     /// <summary>Gets whether the "syntax" field is set</summary>
565     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
566     public bool HasSyntax {
567       get { return syntax_ != null; }
568     }
569     /// <summary>Clears the value of the "syntax" field</summary>
570     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearSyntax()571     public void ClearSyntax() {
572       syntax_ = null;
573     }
574 
575     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)576     public override bool Equals(object other) {
577       return Equals(other as FileDescriptorProto);
578     }
579 
580     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(FileDescriptorProto other)581     public bool Equals(FileDescriptorProto other) {
582       if (ReferenceEquals(other, null)) {
583         return false;
584       }
585       if (ReferenceEquals(other, this)) {
586         return true;
587       }
588       if (Name != other.Name) return false;
589       if (Package != other.Package) return false;
590       if(!dependency_.Equals(other.dependency_)) return false;
591       if(!publicDependency_.Equals(other.publicDependency_)) return false;
592       if(!weakDependency_.Equals(other.weakDependency_)) return false;
593       if(!messageType_.Equals(other.messageType_)) return false;
594       if(!enumType_.Equals(other.enumType_)) return false;
595       if(!service_.Equals(other.service_)) return false;
596       if(!extension_.Equals(other.extension_)) return false;
597       if (!object.Equals(Options, other.Options)) return false;
598       if (!object.Equals(SourceCodeInfo, other.SourceCodeInfo)) return false;
599       if (Syntax != other.Syntax) return false;
600       return Equals(_unknownFields, other._unknownFields);
601     }
602 
603     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()604     public override int GetHashCode() {
605       int hash = 1;
606       if (HasName) hash ^= Name.GetHashCode();
607       if (HasPackage) hash ^= Package.GetHashCode();
608       hash ^= dependency_.GetHashCode();
609       hash ^= publicDependency_.GetHashCode();
610       hash ^= weakDependency_.GetHashCode();
611       hash ^= messageType_.GetHashCode();
612       hash ^= enumType_.GetHashCode();
613       hash ^= service_.GetHashCode();
614       hash ^= extension_.GetHashCode();
615       if (HasOptions) hash ^= Options.GetHashCode();
616       if (HasSourceCodeInfo) hash ^= SourceCodeInfo.GetHashCode();
617       if (HasSyntax) hash ^= Syntax.GetHashCode();
618       if (_unknownFields != null) {
619         hash ^= _unknownFields.GetHashCode();
620       }
621       return hash;
622     }
623 
624     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()625     public override string ToString() {
626       return pb::JsonFormatter.ToDiagnosticString(this);
627     }
628 
629     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)630     public void WriteTo(pb::CodedOutputStream output) {
631       if (HasName) {
632         output.WriteRawTag(10);
633         output.WriteString(Name);
634       }
635       if (HasPackage) {
636         output.WriteRawTag(18);
637         output.WriteString(Package);
638       }
639       dependency_.WriteTo(output, _repeated_dependency_codec);
640       messageType_.WriteTo(output, _repeated_messageType_codec);
641       enumType_.WriteTo(output, _repeated_enumType_codec);
642       service_.WriteTo(output, _repeated_service_codec);
643       extension_.WriteTo(output, _repeated_extension_codec);
644       if (HasOptions) {
645         output.WriteRawTag(66);
646         output.WriteMessage(Options);
647       }
648       if (HasSourceCodeInfo) {
649         output.WriteRawTag(74);
650         output.WriteMessage(SourceCodeInfo);
651       }
652       publicDependency_.WriteTo(output, _repeated_publicDependency_codec);
653       weakDependency_.WriteTo(output, _repeated_weakDependency_codec);
654       if (HasSyntax) {
655         output.WriteRawTag(98);
656         output.WriteString(Syntax);
657       }
658       if (_unknownFields != null) {
659         _unknownFields.WriteTo(output);
660       }
661     }
662 
663     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()664     public int CalculateSize() {
665       int size = 0;
666       if (HasName) {
667         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
668       }
669       if (HasPackage) {
670         size += 1 + pb::CodedOutputStream.ComputeStringSize(Package);
671       }
672       size += dependency_.CalculateSize(_repeated_dependency_codec);
673       size += publicDependency_.CalculateSize(_repeated_publicDependency_codec);
674       size += weakDependency_.CalculateSize(_repeated_weakDependency_codec);
675       size += messageType_.CalculateSize(_repeated_messageType_codec);
676       size += enumType_.CalculateSize(_repeated_enumType_codec);
677       size += service_.CalculateSize(_repeated_service_codec);
678       size += extension_.CalculateSize(_repeated_extension_codec);
679       if (HasOptions) {
680         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
681       }
682       if (HasSourceCodeInfo) {
683         size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceCodeInfo);
684       }
685       if (HasSyntax) {
686         size += 1 + pb::CodedOutputStream.ComputeStringSize(Syntax);
687       }
688       if (_unknownFields != null) {
689         size += _unknownFields.CalculateSize();
690       }
691       return size;
692     }
693 
694     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(FileDescriptorProto other)695     public void MergeFrom(FileDescriptorProto other) {
696       if (other == null) {
697         return;
698       }
699       if (other.HasName) {
700         Name = other.Name;
701       }
702       if (other.HasPackage) {
703         Package = other.Package;
704       }
705       dependency_.Add(other.dependency_);
706       publicDependency_.Add(other.publicDependency_);
707       weakDependency_.Add(other.weakDependency_);
708       messageType_.Add(other.messageType_);
709       enumType_.Add(other.enumType_);
710       service_.Add(other.service_);
711       extension_.Add(other.extension_);
712       if (other.HasOptions) {
713         if (!HasOptions) {
714           Options = new global::Google.Protobuf.Reflection.FileOptions();
715         }
716         Options.MergeFrom(other.Options);
717       }
718       if (other.HasSourceCodeInfo) {
719         if (!HasSourceCodeInfo) {
720           SourceCodeInfo = new global::Google.Protobuf.Reflection.SourceCodeInfo();
721         }
722         SourceCodeInfo.MergeFrom(other.SourceCodeInfo);
723       }
724       if (other.HasSyntax) {
725         Syntax = other.Syntax;
726       }
727       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
728     }
729 
730     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)731     public void MergeFrom(pb::CodedInputStream input) {
732       uint tag;
733       while ((tag = input.ReadTag()) != 0) {
734         switch(tag) {
735           default:
736             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
737             break;
738           case 10: {
739             Name = input.ReadString();
740             break;
741           }
742           case 18: {
743             Package = input.ReadString();
744             break;
745           }
746           case 26: {
747             dependency_.AddEntriesFrom(input, _repeated_dependency_codec);
748             break;
749           }
750           case 34: {
751             messageType_.AddEntriesFrom(input, _repeated_messageType_codec);
752             break;
753           }
754           case 42: {
755             enumType_.AddEntriesFrom(input, _repeated_enumType_codec);
756             break;
757           }
758           case 50: {
759             service_.AddEntriesFrom(input, _repeated_service_codec);
760             break;
761           }
762           case 58: {
763             extension_.AddEntriesFrom(input, _repeated_extension_codec);
764             break;
765           }
766           case 66: {
767             if (!HasOptions) {
768               Options = new global::Google.Protobuf.Reflection.FileOptions();
769             }
770             input.ReadMessage(Options);
771             break;
772           }
773           case 74: {
774             if (!HasSourceCodeInfo) {
775               SourceCodeInfo = new global::Google.Protobuf.Reflection.SourceCodeInfo();
776             }
777             input.ReadMessage(SourceCodeInfo);
778             break;
779           }
780           case 82:
781           case 80: {
782             publicDependency_.AddEntriesFrom(input, _repeated_publicDependency_codec);
783             break;
784           }
785           case 90:
786           case 88: {
787             weakDependency_.AddEntriesFrom(input, _repeated_weakDependency_codec);
788             break;
789           }
790           case 98: {
791             Syntax = input.ReadString();
792             break;
793           }
794         }
795       }
796     }
797 
798   }
799 
800   /// <summary>
801   /// Describes a message type.
802   /// </summary>
803   internal sealed partial class DescriptorProto : pb::IMessage<DescriptorProto> {
804     private static readonly pb::MessageParser<DescriptorProto> _parser = new pb::MessageParser<DescriptorProto>(() => new DescriptorProto());
805     private pb::UnknownFieldSet _unknownFields;
806     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
807     public static pb::MessageParser<DescriptorProto> Parser { get { return _parser; } }
808 
809     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
810     public static pbr::MessageDescriptor Descriptor {
811       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[2]; }
812     }
813 
814     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
815     pbr::MessageDescriptor pb::IMessage.Descriptor {
816       get { return Descriptor; }
817     }
818 
819     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
DescriptorProto()820     public DescriptorProto() {
821       OnConstruction();
822     }
823 
OnConstruction()824     partial void OnConstruction();
825 
826     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
DescriptorProto(DescriptorProto other)827     public DescriptorProto(DescriptorProto other) : this() {
828       name_ = other.name_;
829       field_ = other.field_.Clone();
830       extension_ = other.extension_.Clone();
831       nestedType_ = other.nestedType_.Clone();
832       enumType_ = other.enumType_.Clone();
833       extensionRange_ = other.extensionRange_.Clone();
834       oneofDecl_ = other.oneofDecl_.Clone();
835       options_ = other.HasOptions ? other.options_.Clone() : null;
836       reservedRange_ = other.reservedRange_.Clone();
837       reservedName_ = other.reservedName_.Clone();
838       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
839     }
840 
841     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()842     public DescriptorProto Clone() {
843       return new DescriptorProto(this);
844     }
845 
846     /// <summary>Field number for the "name" field.</summary>
847     public const int NameFieldNumber = 1;
848     private readonly static string NameDefaultValue = "";
849 
850     private string name_;
851     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
852     public string Name {
853       get { return name_ ?? NameDefaultValue; }
854       set {
855         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
856       }
857     }
858     /// <summary>Gets whether the "name" field is set</summary>
859     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
860     public bool HasName {
861       get { return name_ != null; }
862     }
863     /// <summary>Clears the value of the "name" field</summary>
864     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearName()865     public void ClearName() {
866       name_ = null;
867     }
868 
869     /// <summary>Field number for the "field" field.</summary>
870     public const int FieldFieldNumber = 2;
871     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_field_codec
872         = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
873     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> field_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
874     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
875     public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Field {
876       get { return field_; }
877     }
878 
879     /// <summary>Field number for the "extension" field.</summary>
880     public const int ExtensionFieldNumber = 6;
881     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec
882         = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
883     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
884     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
885     public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension {
886       get { return extension_; }
887     }
888 
889     /// <summary>Field number for the "nested_type" field.</summary>
890     public const int NestedTypeFieldNumber = 3;
891     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_nestedType_codec
892         = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.Reflection.DescriptorProto.Parser);
893     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> nestedType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>();
894     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
895     public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> NestedType {
896       get { return nestedType_; }
897     }
898 
899     /// <summary>Field number for the "enum_type" field.</summary>
900     public const int EnumTypeFieldNumber = 4;
901     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec
902         = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser);
903     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>();
904     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
905     public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType {
906       get { return enumType_; }
907     }
908 
909     /// <summary>Field number for the "extension_range" field.</summary>
910     public const int ExtensionRangeFieldNumber = 5;
911     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> _repeated_extensionRange_codec
912         = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange.Parser);
913     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> extensionRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange>();
914     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
915     public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> ExtensionRange {
916       get { return extensionRange_; }
917     }
918 
919     /// <summary>Field number for the "oneof_decl" field.</summary>
920     public const int OneofDeclFieldNumber = 8;
921     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.OneofDescriptorProto> _repeated_oneofDecl_codec
922         = pb::FieldCodec.ForMessage(66, global::Google.Protobuf.Reflection.OneofDescriptorProto.Parser);
923     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> oneofDecl_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto>();
924     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
925     public pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> OneofDecl {
926       get { return oneofDecl_; }
927     }
928 
929     /// <summary>Field number for the "options" field.</summary>
930     public const int OptionsFieldNumber = 7;
931     private global::Google.Protobuf.Reflection.MessageOptions options_;
932     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
933     public global::Google.Protobuf.Reflection.MessageOptions Options {
934       get { return options_; }
935       set {
936         options_ = value;
937       }
938     }
939     /// <summary>Gets whether the options field is set</summary>
940     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
941     public bool HasOptions {
942       get { return options_ != null; }
943     }
944     /// <summary>Clears the value of the options field</summary>
945     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearOptions()946     public void ClearOptions() {
947       options_ = null;
948     }
949 
950     /// <summary>Field number for the "reserved_range" field.</summary>
951     public const int ReservedRangeFieldNumber = 9;
952     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> _repeated_reservedRange_codec
953         = pb::FieldCodec.ForMessage(74, global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange.Parser);
954     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> reservedRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange>();
955     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
956     public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> ReservedRange {
957       get { return reservedRange_; }
958     }
959 
960     /// <summary>Field number for the "reserved_name" field.</summary>
961     public const int ReservedNameFieldNumber = 10;
962     private static readonly pb::FieldCodec<string> _repeated_reservedName_codec
963         = pb::FieldCodec.ForString(82);
964     private readonly pbc::RepeatedField<string> reservedName_ = new pbc::RepeatedField<string>();
965     /// <summary>
966     /// Reserved field names, which may not be used by fields in the same message.
967     /// A given name may only be reserved once.
968     /// </summary>
969     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
970     public pbc::RepeatedField<string> ReservedName {
971       get { return reservedName_; }
972     }
973 
974     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)975     public override bool Equals(object other) {
976       return Equals(other as DescriptorProto);
977     }
978 
979     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(DescriptorProto other)980     public bool Equals(DescriptorProto other) {
981       if (ReferenceEquals(other, null)) {
982         return false;
983       }
984       if (ReferenceEquals(other, this)) {
985         return true;
986       }
987       if (Name != other.Name) return false;
988       if(!field_.Equals(other.field_)) return false;
989       if(!extension_.Equals(other.extension_)) return false;
990       if(!nestedType_.Equals(other.nestedType_)) return false;
991       if(!enumType_.Equals(other.enumType_)) return false;
992       if(!extensionRange_.Equals(other.extensionRange_)) return false;
993       if(!oneofDecl_.Equals(other.oneofDecl_)) return false;
994       if (!object.Equals(Options, other.Options)) return false;
995       if(!reservedRange_.Equals(other.reservedRange_)) return false;
996       if(!reservedName_.Equals(other.reservedName_)) return false;
997       return Equals(_unknownFields, other._unknownFields);
998     }
999 
1000     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()1001     public override int GetHashCode() {
1002       int hash = 1;
1003       if (HasName) hash ^= Name.GetHashCode();
1004       hash ^= field_.GetHashCode();
1005       hash ^= extension_.GetHashCode();
1006       hash ^= nestedType_.GetHashCode();
1007       hash ^= enumType_.GetHashCode();
1008       hash ^= extensionRange_.GetHashCode();
1009       hash ^= oneofDecl_.GetHashCode();
1010       if (HasOptions) hash ^= Options.GetHashCode();
1011       hash ^= reservedRange_.GetHashCode();
1012       hash ^= reservedName_.GetHashCode();
1013       if (_unknownFields != null) {
1014         hash ^= _unknownFields.GetHashCode();
1015       }
1016       return hash;
1017     }
1018 
1019     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()1020     public override string ToString() {
1021       return pb::JsonFormatter.ToDiagnosticString(this);
1022     }
1023 
1024     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)1025     public void WriteTo(pb::CodedOutputStream output) {
1026       if (HasName) {
1027         output.WriteRawTag(10);
1028         output.WriteString(Name);
1029       }
1030       field_.WriteTo(output, _repeated_field_codec);
1031       nestedType_.WriteTo(output, _repeated_nestedType_codec);
1032       enumType_.WriteTo(output, _repeated_enumType_codec);
1033       extensionRange_.WriteTo(output, _repeated_extensionRange_codec);
1034       extension_.WriteTo(output, _repeated_extension_codec);
1035       if (HasOptions) {
1036         output.WriteRawTag(58);
1037         output.WriteMessage(Options);
1038       }
1039       oneofDecl_.WriteTo(output, _repeated_oneofDecl_codec);
1040       reservedRange_.WriteTo(output, _repeated_reservedRange_codec);
1041       reservedName_.WriteTo(output, _repeated_reservedName_codec);
1042       if (_unknownFields != null) {
1043         _unknownFields.WriteTo(output);
1044       }
1045     }
1046 
1047     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()1048     public int CalculateSize() {
1049       int size = 0;
1050       if (HasName) {
1051         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
1052       }
1053       size += field_.CalculateSize(_repeated_field_codec);
1054       size += extension_.CalculateSize(_repeated_extension_codec);
1055       size += nestedType_.CalculateSize(_repeated_nestedType_codec);
1056       size += enumType_.CalculateSize(_repeated_enumType_codec);
1057       size += extensionRange_.CalculateSize(_repeated_extensionRange_codec);
1058       size += oneofDecl_.CalculateSize(_repeated_oneofDecl_codec);
1059       if (HasOptions) {
1060         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
1061       }
1062       size += reservedRange_.CalculateSize(_repeated_reservedRange_codec);
1063       size += reservedName_.CalculateSize(_repeated_reservedName_codec);
1064       if (_unknownFields != null) {
1065         size += _unknownFields.CalculateSize();
1066       }
1067       return size;
1068     }
1069 
1070     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(DescriptorProto other)1071     public void MergeFrom(DescriptorProto other) {
1072       if (other == null) {
1073         return;
1074       }
1075       if (other.HasName) {
1076         Name = other.Name;
1077       }
1078       field_.Add(other.field_);
1079       extension_.Add(other.extension_);
1080       nestedType_.Add(other.nestedType_);
1081       enumType_.Add(other.enumType_);
1082       extensionRange_.Add(other.extensionRange_);
1083       oneofDecl_.Add(other.oneofDecl_);
1084       if (other.HasOptions) {
1085         if (!HasOptions) {
1086           Options = new global::Google.Protobuf.Reflection.MessageOptions();
1087         }
1088         Options.MergeFrom(other.Options);
1089       }
1090       reservedRange_.Add(other.reservedRange_);
1091       reservedName_.Add(other.reservedName_);
1092       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1093     }
1094 
1095     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)1096     public void MergeFrom(pb::CodedInputStream input) {
1097       uint tag;
1098       while ((tag = input.ReadTag()) != 0) {
1099         switch(tag) {
1100           default:
1101             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1102             break;
1103           case 10: {
1104             Name = input.ReadString();
1105             break;
1106           }
1107           case 18: {
1108             field_.AddEntriesFrom(input, _repeated_field_codec);
1109             break;
1110           }
1111           case 26: {
1112             nestedType_.AddEntriesFrom(input, _repeated_nestedType_codec);
1113             break;
1114           }
1115           case 34: {
1116             enumType_.AddEntriesFrom(input, _repeated_enumType_codec);
1117             break;
1118           }
1119           case 42: {
1120             extensionRange_.AddEntriesFrom(input, _repeated_extensionRange_codec);
1121             break;
1122           }
1123           case 50: {
1124             extension_.AddEntriesFrom(input, _repeated_extension_codec);
1125             break;
1126           }
1127           case 58: {
1128             if (!HasOptions) {
1129               Options = new global::Google.Protobuf.Reflection.MessageOptions();
1130             }
1131             input.ReadMessage(Options);
1132             break;
1133           }
1134           case 66: {
1135             oneofDecl_.AddEntriesFrom(input, _repeated_oneofDecl_codec);
1136             break;
1137           }
1138           case 74: {
1139             reservedRange_.AddEntriesFrom(input, _repeated_reservedRange_codec);
1140             break;
1141           }
1142           case 82: {
1143             reservedName_.AddEntriesFrom(input, _repeated_reservedName_codec);
1144             break;
1145           }
1146         }
1147       }
1148     }
1149 
1150     #region Nested types
1151     /// <summary>Container for nested types declared in the DescriptorProto message type.</summary>
1152     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1153     public static partial class Types {
1154       internal sealed partial class ExtensionRange : pb::IMessage<ExtensionRange> {
1155         private static readonly pb::MessageParser<ExtensionRange> _parser = new pb::MessageParser<ExtensionRange>(() => new ExtensionRange());
1156         private pb::UnknownFieldSet _unknownFields;
1157         private int _hasBits0;
1158         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1159         public static pb::MessageParser<ExtensionRange> Parser { get { return _parser; } }
1160 
1161         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1162         public static pbr::MessageDescriptor Descriptor {
1163           get { return global::Google.Protobuf.Reflection.DescriptorProto.Descriptor.NestedTypes[0]; }
1164         }
1165 
1166         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1167         pbr::MessageDescriptor pb::IMessage.Descriptor {
1168           get { return Descriptor; }
1169         }
1170 
1171         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ExtensionRange()1172         public ExtensionRange() {
1173           OnConstruction();
1174         }
1175 
OnConstruction()1176         partial void OnConstruction();
1177 
1178         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ExtensionRange(ExtensionRange other)1179         public ExtensionRange(ExtensionRange other) : this() {
1180           _hasBits0 = other._hasBits0;
1181           start_ = other.start_;
1182           end_ = other.end_;
1183           options_ = other.HasOptions ? other.options_.Clone() : null;
1184           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1185         }
1186 
1187         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()1188         public ExtensionRange Clone() {
1189           return new ExtensionRange(this);
1190         }
1191 
1192         /// <summary>Field number for the "start" field.</summary>
1193         public const int StartFieldNumber = 1;
1194         private readonly static int StartDefaultValue = 0;
1195 
1196         private int start_;
1197         /// <summary>
1198         /// Inclusive.
1199         /// </summary>
1200         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1201         public int Start {
1202           get { if ((_hasBits0 & 1) != 0) { return start_; } else { return StartDefaultValue; } }
1203           set {
1204             _hasBits0 |= 1;
1205             start_ = value;
1206           }
1207         }
1208         /// <summary>Gets whether the "start" field is set</summary>
1209         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1210         public bool HasStart {
1211           get { return (_hasBits0 & 1) != 0; }
1212         }
1213         /// <summary>Clears the value of the "start" field</summary>
1214         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearStart()1215         public void ClearStart() {
1216           _hasBits0 &= ~1;
1217         }
1218 
1219         /// <summary>Field number for the "end" field.</summary>
1220         public const int EndFieldNumber = 2;
1221         private readonly static int EndDefaultValue = 0;
1222 
1223         private int end_;
1224         /// <summary>
1225         /// Exclusive.
1226         /// </summary>
1227         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1228         public int End {
1229           get { if ((_hasBits0 & 2) != 0) { return end_; } else { return EndDefaultValue; } }
1230           set {
1231             _hasBits0 |= 2;
1232             end_ = value;
1233           }
1234         }
1235         /// <summary>Gets whether the "end" field is set</summary>
1236         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1237         public bool HasEnd {
1238           get { return (_hasBits0 & 2) != 0; }
1239         }
1240         /// <summary>Clears the value of the "end" field</summary>
1241         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearEnd()1242         public void ClearEnd() {
1243           _hasBits0 &= ~2;
1244         }
1245 
1246         /// <summary>Field number for the "options" field.</summary>
1247         public const int OptionsFieldNumber = 3;
1248         private global::Google.Protobuf.Reflection.ExtensionRangeOptions options_;
1249         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1250         public global::Google.Protobuf.Reflection.ExtensionRangeOptions Options {
1251           get { return options_; }
1252           set {
1253             options_ = value;
1254           }
1255         }
1256         /// <summary>Gets whether the options field is set</summary>
1257         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1258         public bool HasOptions {
1259           get { return options_ != null; }
1260         }
1261         /// <summary>Clears the value of the options field</summary>
1262         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearOptions()1263         public void ClearOptions() {
1264           options_ = null;
1265         }
1266 
1267         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)1268         public override bool Equals(object other) {
1269           return Equals(other as ExtensionRange);
1270         }
1271 
1272         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(ExtensionRange other)1273         public bool Equals(ExtensionRange other) {
1274           if (ReferenceEquals(other, null)) {
1275             return false;
1276           }
1277           if (ReferenceEquals(other, this)) {
1278             return true;
1279           }
1280           if (Start != other.Start) return false;
1281           if (End != other.End) return false;
1282           if (!object.Equals(Options, other.Options)) return false;
1283           return Equals(_unknownFields, other._unknownFields);
1284         }
1285 
1286         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()1287         public override int GetHashCode() {
1288           int hash = 1;
1289           if (HasStart) hash ^= Start.GetHashCode();
1290           if (HasEnd) hash ^= End.GetHashCode();
1291           if (HasOptions) hash ^= Options.GetHashCode();
1292           if (_unknownFields != null) {
1293             hash ^= _unknownFields.GetHashCode();
1294           }
1295           return hash;
1296         }
1297 
1298         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()1299         public override string ToString() {
1300           return pb::JsonFormatter.ToDiagnosticString(this);
1301         }
1302 
1303         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)1304         public void WriteTo(pb::CodedOutputStream output) {
1305           if (HasStart) {
1306             output.WriteRawTag(8);
1307             output.WriteInt32(Start);
1308           }
1309           if (HasEnd) {
1310             output.WriteRawTag(16);
1311             output.WriteInt32(End);
1312           }
1313           if (HasOptions) {
1314             output.WriteRawTag(26);
1315             output.WriteMessage(Options);
1316           }
1317           if (_unknownFields != null) {
1318             _unknownFields.WriteTo(output);
1319           }
1320         }
1321 
1322         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()1323         public int CalculateSize() {
1324           int size = 0;
1325           if (HasStart) {
1326             size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
1327           }
1328           if (HasEnd) {
1329             size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
1330           }
1331           if (HasOptions) {
1332             size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
1333           }
1334           if (_unknownFields != null) {
1335             size += _unknownFields.CalculateSize();
1336           }
1337           return size;
1338         }
1339 
1340         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(ExtensionRange other)1341         public void MergeFrom(ExtensionRange other) {
1342           if (other == null) {
1343             return;
1344           }
1345           if (other.HasStart) {
1346             Start = other.Start;
1347           }
1348           if (other.HasEnd) {
1349             End = other.End;
1350           }
1351           if (other.HasOptions) {
1352             if (!HasOptions) {
1353               Options = new global::Google.Protobuf.Reflection.ExtensionRangeOptions();
1354             }
1355             Options.MergeFrom(other.Options);
1356           }
1357           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1358         }
1359 
1360         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)1361         public void MergeFrom(pb::CodedInputStream input) {
1362           uint tag;
1363           while ((tag = input.ReadTag()) != 0) {
1364             switch(tag) {
1365               default:
1366                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1367                 break;
1368               case 8: {
1369                 Start = input.ReadInt32();
1370                 break;
1371               }
1372               case 16: {
1373                 End = input.ReadInt32();
1374                 break;
1375               }
1376               case 26: {
1377                 if (!HasOptions) {
1378                   Options = new global::Google.Protobuf.Reflection.ExtensionRangeOptions();
1379                 }
1380                 input.ReadMessage(Options);
1381                 break;
1382               }
1383             }
1384           }
1385         }
1386 
1387       }
1388 
1389       /// <summary>
1390       /// Range of reserved tag numbers. Reserved tag numbers may not be used by
1391       /// fields or extension ranges in the same message. Reserved ranges may
1392       /// not overlap.
1393       /// </summary>
1394       internal sealed partial class ReservedRange : pb::IMessage<ReservedRange> {
1395         private static readonly pb::MessageParser<ReservedRange> _parser = new pb::MessageParser<ReservedRange>(() => new ReservedRange());
1396         private pb::UnknownFieldSet _unknownFields;
1397         private int _hasBits0;
1398         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1399         public static pb::MessageParser<ReservedRange> Parser { get { return _parser; } }
1400 
1401         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1402         public static pbr::MessageDescriptor Descriptor {
1403           get { return global::Google.Protobuf.Reflection.DescriptorProto.Descriptor.NestedTypes[1]; }
1404         }
1405 
1406         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1407         pbr::MessageDescriptor pb::IMessage.Descriptor {
1408           get { return Descriptor; }
1409         }
1410 
1411         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ReservedRange()1412         public ReservedRange() {
1413           OnConstruction();
1414         }
1415 
OnConstruction()1416         partial void OnConstruction();
1417 
1418         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ReservedRange(ReservedRange other)1419         public ReservedRange(ReservedRange other) : this() {
1420           _hasBits0 = other._hasBits0;
1421           start_ = other.start_;
1422           end_ = other.end_;
1423           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1424         }
1425 
1426         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()1427         public ReservedRange Clone() {
1428           return new ReservedRange(this);
1429         }
1430 
1431         /// <summary>Field number for the "start" field.</summary>
1432         public const int StartFieldNumber = 1;
1433         private readonly static int StartDefaultValue = 0;
1434 
1435         private int start_;
1436         /// <summary>
1437         /// Inclusive.
1438         /// </summary>
1439         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1440         public int Start {
1441           get { if ((_hasBits0 & 1) != 0) { return start_; } else { return StartDefaultValue; } }
1442           set {
1443             _hasBits0 |= 1;
1444             start_ = value;
1445           }
1446         }
1447         /// <summary>Gets whether the "start" field is set</summary>
1448         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1449         public bool HasStart {
1450           get { return (_hasBits0 & 1) != 0; }
1451         }
1452         /// <summary>Clears the value of the "start" field</summary>
1453         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearStart()1454         public void ClearStart() {
1455           _hasBits0 &= ~1;
1456         }
1457 
1458         /// <summary>Field number for the "end" field.</summary>
1459         public const int EndFieldNumber = 2;
1460         private readonly static int EndDefaultValue = 0;
1461 
1462         private int end_;
1463         /// <summary>
1464         /// Exclusive.
1465         /// </summary>
1466         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1467         public int End {
1468           get { if ((_hasBits0 & 2) != 0) { return end_; } else { return EndDefaultValue; } }
1469           set {
1470             _hasBits0 |= 2;
1471             end_ = value;
1472           }
1473         }
1474         /// <summary>Gets whether the "end" field is set</summary>
1475         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1476         public bool HasEnd {
1477           get { return (_hasBits0 & 2) != 0; }
1478         }
1479         /// <summary>Clears the value of the "end" field</summary>
1480         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearEnd()1481         public void ClearEnd() {
1482           _hasBits0 &= ~2;
1483         }
1484 
1485         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)1486         public override bool Equals(object other) {
1487           return Equals(other as ReservedRange);
1488         }
1489 
1490         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(ReservedRange other)1491         public bool Equals(ReservedRange other) {
1492           if (ReferenceEquals(other, null)) {
1493             return false;
1494           }
1495           if (ReferenceEquals(other, this)) {
1496             return true;
1497           }
1498           if (Start != other.Start) return false;
1499           if (End != other.End) return false;
1500           return Equals(_unknownFields, other._unknownFields);
1501         }
1502 
1503         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()1504         public override int GetHashCode() {
1505           int hash = 1;
1506           if (HasStart) hash ^= Start.GetHashCode();
1507           if (HasEnd) hash ^= End.GetHashCode();
1508           if (_unknownFields != null) {
1509             hash ^= _unknownFields.GetHashCode();
1510           }
1511           return hash;
1512         }
1513 
1514         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()1515         public override string ToString() {
1516           return pb::JsonFormatter.ToDiagnosticString(this);
1517         }
1518 
1519         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)1520         public void WriteTo(pb::CodedOutputStream output) {
1521           if (HasStart) {
1522             output.WriteRawTag(8);
1523             output.WriteInt32(Start);
1524           }
1525           if (HasEnd) {
1526             output.WriteRawTag(16);
1527             output.WriteInt32(End);
1528           }
1529           if (_unknownFields != null) {
1530             _unknownFields.WriteTo(output);
1531           }
1532         }
1533 
1534         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()1535         public int CalculateSize() {
1536           int size = 0;
1537           if (HasStart) {
1538             size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
1539           }
1540           if (HasEnd) {
1541             size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
1542           }
1543           if (_unknownFields != null) {
1544             size += _unknownFields.CalculateSize();
1545           }
1546           return size;
1547         }
1548 
1549         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(ReservedRange other)1550         public void MergeFrom(ReservedRange other) {
1551           if (other == null) {
1552             return;
1553           }
1554           if (other.HasStart) {
1555             Start = other.Start;
1556           }
1557           if (other.HasEnd) {
1558             End = other.End;
1559           }
1560           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1561         }
1562 
1563         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)1564         public void MergeFrom(pb::CodedInputStream input) {
1565           uint tag;
1566           while ((tag = input.ReadTag()) != 0) {
1567             switch(tag) {
1568               default:
1569                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1570                 break;
1571               case 8: {
1572                 Start = input.ReadInt32();
1573                 break;
1574               }
1575               case 16: {
1576                 End = input.ReadInt32();
1577                 break;
1578               }
1579             }
1580           }
1581         }
1582 
1583       }
1584 
1585     }
1586     #endregion
1587 
1588   }
1589 
1590   internal sealed partial class ExtensionRangeOptions : pb::IExtendableMessage<ExtensionRangeOptions> {
1591     private static readonly pb::MessageParser<ExtensionRangeOptions> _parser = new pb::MessageParser<ExtensionRangeOptions>(() => new ExtensionRangeOptions());
1592     private pb::UnknownFieldSet _unknownFields;
1593     internal pb::ExtensionSet<ExtensionRangeOptions> _extensions;
1594     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1595     public static pb::MessageParser<ExtensionRangeOptions> Parser { get { return _parser; } }
1596 
1597     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1598     public static pbr::MessageDescriptor Descriptor {
1599       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[3]; }
1600     }
1601 
1602     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1603     pbr::MessageDescriptor pb::IMessage.Descriptor {
1604       get { return Descriptor; }
1605     }
1606 
1607     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ExtensionRangeOptions()1608     public ExtensionRangeOptions() {
1609       OnConstruction();
1610     }
1611 
OnConstruction()1612     partial void OnConstruction();
1613 
1614     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ExtensionRangeOptions(ExtensionRangeOptions other)1615     public ExtensionRangeOptions(ExtensionRangeOptions other) : this() {
1616       uninterpretedOption_ = other.uninterpretedOption_.Clone();
1617       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1618       _extensions = pb::ExtensionSet.Clone(other._extensions);
1619     }
1620 
1621     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()1622     public ExtensionRangeOptions Clone() {
1623       return new ExtensionRangeOptions(this);
1624     }
1625 
1626     /// <summary>Field number for the "uninterpreted_option" field.</summary>
1627     public const int UninterpretedOptionFieldNumber = 999;
1628     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
1629         = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
1630     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
1631     /// <summary>
1632     /// The parser stores options it doesn't recognize here. See above.
1633     /// </summary>
1634     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1635     public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
1636       get { return uninterpretedOption_; }
1637     }
1638 
1639     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)1640     public override bool Equals(object other) {
1641       return Equals(other as ExtensionRangeOptions);
1642     }
1643 
1644     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(ExtensionRangeOptions other)1645     public bool Equals(ExtensionRangeOptions other) {
1646       if (ReferenceEquals(other, null)) {
1647         return false;
1648       }
1649       if (ReferenceEquals(other, this)) {
1650         return true;
1651       }
1652       if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
1653       if (!Equals(_extensions, other._extensions)) {
1654         return false;
1655       }
1656       return Equals(_unknownFields, other._unknownFields);
1657     }
1658 
1659     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()1660     public override int GetHashCode() {
1661       int hash = 1;
1662       hash ^= uninterpretedOption_.GetHashCode();
1663       if (_extensions != null) {
1664         hash ^= _extensions.GetHashCode();
1665       }
1666       if (_unknownFields != null) {
1667         hash ^= _unknownFields.GetHashCode();
1668       }
1669       return hash;
1670     }
1671 
1672     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()1673     public override string ToString() {
1674       return pb::JsonFormatter.ToDiagnosticString(this);
1675     }
1676 
1677     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)1678     public void WriteTo(pb::CodedOutputStream output) {
1679       uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
1680       if (_extensions != null) {
1681         _extensions.WriteTo(output);
1682       }
1683       if (_unknownFields != null) {
1684         _unknownFields.WriteTo(output);
1685       }
1686     }
1687 
1688     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()1689     public int CalculateSize() {
1690       int size = 0;
1691       size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
1692       if (_extensions != null) {
1693         size += _extensions.CalculateSize();
1694       }
1695       if (_unknownFields != null) {
1696         size += _unknownFields.CalculateSize();
1697       }
1698       return size;
1699     }
1700 
1701     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(ExtensionRangeOptions other)1702     public void MergeFrom(ExtensionRangeOptions other) {
1703       if (other == null) {
1704         return;
1705       }
1706       uninterpretedOption_.Add(other.uninterpretedOption_);
1707       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
1708       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1709     }
1710 
1711     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)1712     public void MergeFrom(pb::CodedInputStream input) {
1713       uint tag;
1714       while ((tag = input.ReadTag()) != 0) {
1715         switch(tag) {
1716           default:
1717             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
1718               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1719             }
1720             break;
1721           case 7994: {
1722             uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
1723             break;
1724           }
1725         }
1726       }
1727     }
1728 
GetExtension(pb::Extension<ExtensionRangeOptions, TValue> extension)1729     public TValue GetExtension<TValue>(pb::Extension<ExtensionRangeOptions, TValue> extension) {
1730       return pb::ExtensionSet.Get(ref _extensions, extension);
1731     }
GetExtension(pb::RepeatedExtension<ExtensionRangeOptions, TValue> extension)1732     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<ExtensionRangeOptions, TValue> extension) {
1733       return pb::ExtensionSet.Get(ref _extensions, extension);
1734     }
GetOrRegisterExtension(pb::RepeatedExtension<ExtensionRangeOptions, TValue> extension)1735     public pbc::RepeatedField<TValue> GetOrRegisterExtension<TValue>(pb::RepeatedExtension<ExtensionRangeOptions, TValue> extension) {
1736       return pb::ExtensionSet.GetOrRegister(ref _extensions, extension);
1737     }
SetExtension(pb::Extension<ExtensionRangeOptions, TValue> extension, TValue value)1738     public void SetExtension<TValue>(pb::Extension<ExtensionRangeOptions, TValue> extension, TValue value) {
1739       pb::ExtensionSet.Set(ref _extensions, extension, value);
1740     }
HasExtension(pb::Extension<ExtensionRangeOptions, TValue> extension)1741     public bool HasExtension<TValue>(pb::Extension<ExtensionRangeOptions, TValue> extension) {
1742       return pb::ExtensionSet.Has(ref _extensions, extension);
1743     }
ClearExtension(pb::Extension<ExtensionRangeOptions, TValue> extension)1744     public void ClearExtension<TValue>(pb::Extension<ExtensionRangeOptions, TValue> extension) {
1745       pb::ExtensionSet.Clear(ref _extensions, extension);
1746     }
ClearExtension(pb::RepeatedExtension<ExtensionRangeOptions, TValue> extension)1747     public void ClearExtension<TValue>(pb::RepeatedExtension<ExtensionRangeOptions, TValue> extension) {
1748       pb::ExtensionSet.Clear(ref _extensions, extension);
1749     }
1750 
1751   }
1752 
1753   /// <summary>
1754   /// Describes a field within a message.
1755   /// </summary>
1756   internal sealed partial class FieldDescriptorProto : pb::IMessage<FieldDescriptorProto> {
1757     private static readonly pb::MessageParser<FieldDescriptorProto> _parser = new pb::MessageParser<FieldDescriptorProto>(() => new FieldDescriptorProto());
1758     private pb::UnknownFieldSet _unknownFields;
1759     private int _hasBits0;
1760     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1761     public static pb::MessageParser<FieldDescriptorProto> Parser { get { return _parser; } }
1762 
1763     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1764     public static pbr::MessageDescriptor Descriptor {
1765       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[4]; }
1766     }
1767 
1768     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1769     pbr::MessageDescriptor pb::IMessage.Descriptor {
1770       get { return Descriptor; }
1771     }
1772 
1773     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
FieldDescriptorProto()1774     public FieldDescriptorProto() {
1775       OnConstruction();
1776     }
1777 
OnConstruction()1778     partial void OnConstruction();
1779 
1780     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
FieldDescriptorProto(FieldDescriptorProto other)1781     public FieldDescriptorProto(FieldDescriptorProto other) : this() {
1782       _hasBits0 = other._hasBits0;
1783       name_ = other.name_;
1784       number_ = other.number_;
1785       label_ = other.label_;
1786       type_ = other.type_;
1787       typeName_ = other.typeName_;
1788       extendee_ = other.extendee_;
1789       defaultValue_ = other.defaultValue_;
1790       oneofIndex_ = other.oneofIndex_;
1791       jsonName_ = other.jsonName_;
1792       options_ = other.HasOptions ? other.options_.Clone() : null;
1793       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1794     }
1795 
1796     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()1797     public FieldDescriptorProto Clone() {
1798       return new FieldDescriptorProto(this);
1799     }
1800 
1801     /// <summary>Field number for the "name" field.</summary>
1802     public const int NameFieldNumber = 1;
1803     private readonly static string NameDefaultValue = "";
1804 
1805     private string name_;
1806     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1807     public string Name {
1808       get { return name_ ?? NameDefaultValue; }
1809       set {
1810         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1811       }
1812     }
1813     /// <summary>Gets whether the "name" field is set</summary>
1814     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1815     public bool HasName {
1816       get { return name_ != null; }
1817     }
1818     /// <summary>Clears the value of the "name" field</summary>
1819     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearName()1820     public void ClearName() {
1821       name_ = null;
1822     }
1823 
1824     /// <summary>Field number for the "number" field.</summary>
1825     public const int NumberFieldNumber = 3;
1826     private readonly static int NumberDefaultValue = 0;
1827 
1828     private int number_;
1829     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1830     public int Number {
1831       get { if ((_hasBits0 & 1) != 0) { return number_; } else { return NumberDefaultValue; } }
1832       set {
1833         _hasBits0 |= 1;
1834         number_ = value;
1835       }
1836     }
1837     /// <summary>Gets whether the "number" field is set</summary>
1838     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1839     public bool HasNumber {
1840       get { return (_hasBits0 & 1) != 0; }
1841     }
1842     /// <summary>Clears the value of the "number" field</summary>
1843     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearNumber()1844     public void ClearNumber() {
1845       _hasBits0 &= ~1;
1846     }
1847 
1848     /// <summary>Field number for the "label" field.</summary>
1849     public const int LabelFieldNumber = 4;
1850     private readonly static global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label LabelDefaultValue = global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label.Optional;
1851 
1852     private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label label_;
1853     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1854     public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label Label {
1855       get { if ((_hasBits0 & 2) != 0) { return label_; } else { return LabelDefaultValue; } }
1856       set {
1857         _hasBits0 |= 2;
1858         label_ = value;
1859       }
1860     }
1861     /// <summary>Gets whether the "label" field is set</summary>
1862     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1863     public bool HasLabel {
1864       get { return (_hasBits0 & 2) != 0; }
1865     }
1866     /// <summary>Clears the value of the "label" field</summary>
1867     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearLabel()1868     public void ClearLabel() {
1869       _hasBits0 &= ~2;
1870     }
1871 
1872     /// <summary>Field number for the "type" field.</summary>
1873     public const int TypeFieldNumber = 5;
1874     private readonly static global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type TypeDefaultValue = global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type.Double;
1875 
1876     private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type type_;
1877     /// <summary>
1878     /// If type_name is set, this need not be set.  If both this and type_name
1879     /// are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
1880     /// </summary>
1881     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1882     public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type Type {
1883       get { if ((_hasBits0 & 4) != 0) { return type_; } else { return TypeDefaultValue; } }
1884       set {
1885         _hasBits0 |= 4;
1886         type_ = value;
1887       }
1888     }
1889     /// <summary>Gets whether the "type" field is set</summary>
1890     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1891     public bool HasType {
1892       get { return (_hasBits0 & 4) != 0; }
1893     }
1894     /// <summary>Clears the value of the "type" field</summary>
1895     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearType()1896     public void ClearType() {
1897       _hasBits0 &= ~4;
1898     }
1899 
1900     /// <summary>Field number for the "type_name" field.</summary>
1901     public const int TypeNameFieldNumber = 6;
1902     private readonly static string TypeNameDefaultValue = "";
1903 
1904     private string typeName_;
1905     /// <summary>
1906     /// For message and enum types, this is the name of the type.  If the name
1907     /// starts with a '.', it is fully-qualified.  Otherwise, C++-like scoping
1908     /// rules are used to find the type (i.e. first the nested types within this
1909     /// message are searched, then within the parent, on up to the root
1910     /// namespace).
1911     /// </summary>
1912     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1913     public string TypeName {
1914       get { return typeName_ ?? TypeNameDefaultValue; }
1915       set {
1916         typeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1917       }
1918     }
1919     /// <summary>Gets whether the "type_name" field is set</summary>
1920     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1921     public bool HasTypeName {
1922       get { return typeName_ != null; }
1923     }
1924     /// <summary>Clears the value of the "type_name" field</summary>
1925     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearTypeName()1926     public void ClearTypeName() {
1927       typeName_ = null;
1928     }
1929 
1930     /// <summary>Field number for the "extendee" field.</summary>
1931     public const int ExtendeeFieldNumber = 2;
1932     private readonly static string ExtendeeDefaultValue = "";
1933 
1934     private string extendee_;
1935     /// <summary>
1936     /// For extensions, this is the name of the type being extended.  It is
1937     /// resolved in the same manner as type_name.
1938     /// </summary>
1939     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1940     public string Extendee {
1941       get { return extendee_ ?? ExtendeeDefaultValue; }
1942       set {
1943         extendee_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1944       }
1945     }
1946     /// <summary>Gets whether the "extendee" field is set</summary>
1947     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1948     public bool HasExtendee {
1949       get { return extendee_ != null; }
1950     }
1951     /// <summary>Clears the value of the "extendee" field</summary>
1952     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearExtendee()1953     public void ClearExtendee() {
1954       extendee_ = null;
1955     }
1956 
1957     /// <summary>Field number for the "default_value" field.</summary>
1958     public const int DefaultValueFieldNumber = 7;
1959     private readonly static string DefaultValueDefaultValue = "";
1960 
1961     private string defaultValue_;
1962     /// <summary>
1963     /// For numeric types, contains the original text representation of the value.
1964     /// For booleans, "true" or "false".
1965     /// For strings, contains the default text contents (not escaped in any way).
1966     /// For bytes, contains the C escaped value.  All bytes >= 128 are escaped.
1967     /// TODO(kenton):  Base-64 encode?
1968     /// </summary>
1969     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1970     public string DefaultValue {
1971       get { return defaultValue_ ?? DefaultValueDefaultValue; }
1972       set {
1973         defaultValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1974       }
1975     }
1976     /// <summary>Gets whether the "default_value" field is set</summary>
1977     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1978     public bool HasDefaultValue {
1979       get { return defaultValue_ != null; }
1980     }
1981     /// <summary>Clears the value of the "default_value" field</summary>
1982     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearDefaultValue()1983     public void ClearDefaultValue() {
1984       defaultValue_ = null;
1985     }
1986 
1987     /// <summary>Field number for the "oneof_index" field.</summary>
1988     public const int OneofIndexFieldNumber = 9;
1989     private readonly static int OneofIndexDefaultValue = 0;
1990 
1991     private int oneofIndex_;
1992     /// <summary>
1993     /// If set, gives the index of a oneof in the containing type's oneof_decl
1994     /// list.  This field is a member of that oneof.
1995     /// </summary>
1996     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1997     public int OneofIndex {
1998       get { if ((_hasBits0 & 8) != 0) { return oneofIndex_; } else { return OneofIndexDefaultValue; } }
1999       set {
2000         _hasBits0 |= 8;
2001         oneofIndex_ = value;
2002       }
2003     }
2004     /// <summary>Gets whether the "oneof_index" field is set</summary>
2005     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2006     public bool HasOneofIndex {
2007       get { return (_hasBits0 & 8) != 0; }
2008     }
2009     /// <summary>Clears the value of the "oneof_index" field</summary>
2010     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearOneofIndex()2011     public void ClearOneofIndex() {
2012       _hasBits0 &= ~8;
2013     }
2014 
2015     /// <summary>Field number for the "json_name" field.</summary>
2016     public const int JsonNameFieldNumber = 10;
2017     private readonly static string JsonNameDefaultValue = "";
2018 
2019     private string jsonName_;
2020     /// <summary>
2021     /// JSON name of this field. The value is set by protocol compiler. If the
2022     /// user has set a "json_name" option on this field, that option's value
2023     /// will be used. Otherwise, it's deduced from the field's name by converting
2024     /// it to camelCase.
2025     /// </summary>
2026     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2027     public string JsonName {
2028       get { return jsonName_ ?? JsonNameDefaultValue; }
2029       set {
2030         jsonName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2031       }
2032     }
2033     /// <summary>Gets whether the "json_name" field is set</summary>
2034     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2035     public bool HasJsonName {
2036       get { return jsonName_ != null; }
2037     }
2038     /// <summary>Clears the value of the "json_name" field</summary>
2039     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearJsonName()2040     public void ClearJsonName() {
2041       jsonName_ = null;
2042     }
2043 
2044     /// <summary>Field number for the "options" field.</summary>
2045     public const int OptionsFieldNumber = 8;
2046     private global::Google.Protobuf.Reflection.FieldOptions options_;
2047     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2048     public global::Google.Protobuf.Reflection.FieldOptions Options {
2049       get { return options_; }
2050       set {
2051         options_ = value;
2052       }
2053     }
2054     /// <summary>Gets whether the options field is set</summary>
2055     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2056     public bool HasOptions {
2057       get { return options_ != null; }
2058     }
2059     /// <summary>Clears the value of the options field</summary>
2060     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearOptions()2061     public void ClearOptions() {
2062       options_ = null;
2063     }
2064 
2065     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)2066     public override bool Equals(object other) {
2067       return Equals(other as FieldDescriptorProto);
2068     }
2069 
2070     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(FieldDescriptorProto other)2071     public bool Equals(FieldDescriptorProto other) {
2072       if (ReferenceEquals(other, null)) {
2073         return false;
2074       }
2075       if (ReferenceEquals(other, this)) {
2076         return true;
2077       }
2078       if (Name != other.Name) return false;
2079       if (Number != other.Number) return false;
2080       if (Label != other.Label) return false;
2081       if (Type != other.Type) return false;
2082       if (TypeName != other.TypeName) return false;
2083       if (Extendee != other.Extendee) return false;
2084       if (DefaultValue != other.DefaultValue) return false;
2085       if (OneofIndex != other.OneofIndex) return false;
2086       if (JsonName != other.JsonName) return false;
2087       if (!object.Equals(Options, other.Options)) return false;
2088       return Equals(_unknownFields, other._unknownFields);
2089     }
2090 
2091     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()2092     public override int GetHashCode() {
2093       int hash = 1;
2094       if (HasName) hash ^= Name.GetHashCode();
2095       if (HasNumber) hash ^= Number.GetHashCode();
2096       if (HasLabel) hash ^= Label.GetHashCode();
2097       if (HasType) hash ^= Type.GetHashCode();
2098       if (HasTypeName) hash ^= TypeName.GetHashCode();
2099       if (HasExtendee) hash ^= Extendee.GetHashCode();
2100       if (HasDefaultValue) hash ^= DefaultValue.GetHashCode();
2101       if (HasOneofIndex) hash ^= OneofIndex.GetHashCode();
2102       if (HasJsonName) hash ^= JsonName.GetHashCode();
2103       if (HasOptions) hash ^= Options.GetHashCode();
2104       if (_unknownFields != null) {
2105         hash ^= _unknownFields.GetHashCode();
2106       }
2107       return hash;
2108     }
2109 
2110     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()2111     public override string ToString() {
2112       return pb::JsonFormatter.ToDiagnosticString(this);
2113     }
2114 
2115     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)2116     public void WriteTo(pb::CodedOutputStream output) {
2117       if (HasName) {
2118         output.WriteRawTag(10);
2119         output.WriteString(Name);
2120       }
2121       if (HasExtendee) {
2122         output.WriteRawTag(18);
2123         output.WriteString(Extendee);
2124       }
2125       if (HasNumber) {
2126         output.WriteRawTag(24);
2127         output.WriteInt32(Number);
2128       }
2129       if (HasLabel) {
2130         output.WriteRawTag(32);
2131         output.WriteEnum((int) Label);
2132       }
2133       if (HasType) {
2134         output.WriteRawTag(40);
2135         output.WriteEnum((int) Type);
2136       }
2137       if (HasTypeName) {
2138         output.WriteRawTag(50);
2139         output.WriteString(TypeName);
2140       }
2141       if (HasDefaultValue) {
2142         output.WriteRawTag(58);
2143         output.WriteString(DefaultValue);
2144       }
2145       if (HasOptions) {
2146         output.WriteRawTag(66);
2147         output.WriteMessage(Options);
2148       }
2149       if (HasOneofIndex) {
2150         output.WriteRawTag(72);
2151         output.WriteInt32(OneofIndex);
2152       }
2153       if (HasJsonName) {
2154         output.WriteRawTag(82);
2155         output.WriteString(JsonName);
2156       }
2157       if (_unknownFields != null) {
2158         _unknownFields.WriteTo(output);
2159       }
2160     }
2161 
2162     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()2163     public int CalculateSize() {
2164       int size = 0;
2165       if (HasName) {
2166         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
2167       }
2168       if (HasNumber) {
2169         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
2170       }
2171       if (HasLabel) {
2172         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Label);
2173       }
2174       if (HasType) {
2175         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
2176       }
2177       if (HasTypeName) {
2178         size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeName);
2179       }
2180       if (HasExtendee) {
2181         size += 1 + pb::CodedOutputStream.ComputeStringSize(Extendee);
2182       }
2183       if (HasDefaultValue) {
2184         size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultValue);
2185       }
2186       if (HasOneofIndex) {
2187         size += 1 + pb::CodedOutputStream.ComputeInt32Size(OneofIndex);
2188       }
2189       if (HasJsonName) {
2190         size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonName);
2191       }
2192       if (HasOptions) {
2193         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
2194       }
2195       if (_unknownFields != null) {
2196         size += _unknownFields.CalculateSize();
2197       }
2198       return size;
2199     }
2200 
2201     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(FieldDescriptorProto other)2202     public void MergeFrom(FieldDescriptorProto other) {
2203       if (other == null) {
2204         return;
2205       }
2206       if (other.HasName) {
2207         Name = other.Name;
2208       }
2209       if (other.HasNumber) {
2210         Number = other.Number;
2211       }
2212       if (other.HasLabel) {
2213         Label = other.Label;
2214       }
2215       if (other.HasType) {
2216         Type = other.Type;
2217       }
2218       if (other.HasTypeName) {
2219         TypeName = other.TypeName;
2220       }
2221       if (other.HasExtendee) {
2222         Extendee = other.Extendee;
2223       }
2224       if (other.HasDefaultValue) {
2225         DefaultValue = other.DefaultValue;
2226       }
2227       if (other.HasOneofIndex) {
2228         OneofIndex = other.OneofIndex;
2229       }
2230       if (other.HasJsonName) {
2231         JsonName = other.JsonName;
2232       }
2233       if (other.HasOptions) {
2234         if (!HasOptions) {
2235           Options = new global::Google.Protobuf.Reflection.FieldOptions();
2236         }
2237         Options.MergeFrom(other.Options);
2238       }
2239       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2240     }
2241 
2242     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)2243     public void MergeFrom(pb::CodedInputStream input) {
2244       uint tag;
2245       while ((tag = input.ReadTag()) != 0) {
2246         switch(tag) {
2247           default:
2248             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2249             break;
2250           case 10: {
2251             Name = input.ReadString();
2252             break;
2253           }
2254           case 18: {
2255             Extendee = input.ReadString();
2256             break;
2257           }
2258           case 24: {
2259             Number = input.ReadInt32();
2260             break;
2261           }
2262           case 32: {
2263             Label = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label) input.ReadEnum();
2264             break;
2265           }
2266           case 40: {
2267             Type = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type) input.ReadEnum();
2268             break;
2269           }
2270           case 50: {
2271             TypeName = input.ReadString();
2272             break;
2273           }
2274           case 58: {
2275             DefaultValue = input.ReadString();
2276             break;
2277           }
2278           case 66: {
2279             if (!HasOptions) {
2280               Options = new global::Google.Protobuf.Reflection.FieldOptions();
2281             }
2282             input.ReadMessage(Options);
2283             break;
2284           }
2285           case 72: {
2286             OneofIndex = input.ReadInt32();
2287             break;
2288           }
2289           case 82: {
2290             JsonName = input.ReadString();
2291             break;
2292           }
2293         }
2294       }
2295     }
2296 
2297     #region Nested types
2298     /// <summary>Container for nested types declared in the FieldDescriptorProto message type.</summary>
2299     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2300     public static partial class Types {
2301       internal enum Type {
2302         /// <summary>
2303         /// 0 is reserved for errors.
2304         /// Order is weird for historical reasons.
2305         /// </summary>
2306         [pbr::OriginalName("TYPE_DOUBLE")] Double = 1,
2307         [pbr::OriginalName("TYPE_FLOAT")] Float = 2,
2308         /// <summary>
2309         /// Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT64 if
2310         /// negative values are likely.
2311         /// </summary>
2312         [pbr::OriginalName("TYPE_INT64")] Int64 = 3,
2313         [pbr::OriginalName("TYPE_UINT64")] Uint64 = 4,
2314         /// <summary>
2315         /// Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT32 if
2316         /// negative values are likely.
2317         /// </summary>
2318         [pbr::OriginalName("TYPE_INT32")] Int32 = 5,
2319         [pbr::OriginalName("TYPE_FIXED64")] Fixed64 = 6,
2320         [pbr::OriginalName("TYPE_FIXED32")] Fixed32 = 7,
2321         [pbr::OriginalName("TYPE_BOOL")] Bool = 8,
2322         [pbr::OriginalName("TYPE_STRING")] String = 9,
2323         /// <summary>
2324         /// Tag-delimited aggregate.
2325         /// Group type is deprecated and not supported in proto3. However, Proto3
2326         /// implementations should still be able to parse the group wire format and
2327         /// treat group fields as unknown fields.
2328         /// </summary>
2329         [pbr::OriginalName("TYPE_GROUP")] Group = 10,
2330         /// <summary>
2331         /// Length-delimited aggregate.
2332         /// </summary>
2333         [pbr::OriginalName("TYPE_MESSAGE")] Message = 11,
2334         /// <summary>
2335         /// New in version 2.
2336         /// </summary>
2337         [pbr::OriginalName("TYPE_BYTES")] Bytes = 12,
2338         [pbr::OriginalName("TYPE_UINT32")] Uint32 = 13,
2339         [pbr::OriginalName("TYPE_ENUM")] Enum = 14,
2340         [pbr::OriginalName("TYPE_SFIXED32")] Sfixed32 = 15,
2341         [pbr::OriginalName("TYPE_SFIXED64")] Sfixed64 = 16,
2342         /// <summary>
2343         /// Uses ZigZag encoding.
2344         /// </summary>
2345         [pbr::OriginalName("TYPE_SINT32")] Sint32 = 17,
2346         /// <summary>
2347         /// Uses ZigZag encoding.
2348         /// </summary>
2349         [pbr::OriginalName("TYPE_SINT64")] Sint64 = 18,
2350       }
2351 
2352       internal enum Label {
2353         /// <summary>
2354         /// 0 is reserved for errors
2355         /// </summary>
2356         [pbr::OriginalName("LABEL_OPTIONAL")] Optional = 1,
2357         [pbr::OriginalName("LABEL_REQUIRED")] Required = 2,
2358         [pbr::OriginalName("LABEL_REPEATED")] Repeated = 3,
2359       }
2360 
2361     }
2362     #endregion
2363 
2364   }
2365 
2366   /// <summary>
2367   /// Describes a oneof.
2368   /// </summary>
2369   internal sealed partial class OneofDescriptorProto : pb::IMessage<OneofDescriptorProto> {
2370     private static readonly pb::MessageParser<OneofDescriptorProto> _parser = new pb::MessageParser<OneofDescriptorProto>(() => new OneofDescriptorProto());
2371     private pb::UnknownFieldSet _unknownFields;
2372     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2373     public static pb::MessageParser<OneofDescriptorProto> Parser { get { return _parser; } }
2374 
2375     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2376     public static pbr::MessageDescriptor Descriptor {
2377       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[5]; }
2378     }
2379 
2380     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2381     pbr::MessageDescriptor pb::IMessage.Descriptor {
2382       get { return Descriptor; }
2383     }
2384 
2385     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
OneofDescriptorProto()2386     public OneofDescriptorProto() {
2387       OnConstruction();
2388     }
2389 
OnConstruction()2390     partial void OnConstruction();
2391 
2392     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
OneofDescriptorProto(OneofDescriptorProto other)2393     public OneofDescriptorProto(OneofDescriptorProto other) : this() {
2394       name_ = other.name_;
2395       options_ = other.HasOptions ? other.options_.Clone() : null;
2396       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2397     }
2398 
2399     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()2400     public OneofDescriptorProto Clone() {
2401       return new OneofDescriptorProto(this);
2402     }
2403 
2404     /// <summary>Field number for the "name" field.</summary>
2405     public const int NameFieldNumber = 1;
2406     private readonly static string NameDefaultValue = "";
2407 
2408     private string name_;
2409     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2410     public string Name {
2411       get { return name_ ?? NameDefaultValue; }
2412       set {
2413         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2414       }
2415     }
2416     /// <summary>Gets whether the "name" field is set</summary>
2417     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2418     public bool HasName {
2419       get { return name_ != null; }
2420     }
2421     /// <summary>Clears the value of the "name" field</summary>
2422     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearName()2423     public void ClearName() {
2424       name_ = null;
2425     }
2426 
2427     /// <summary>Field number for the "options" field.</summary>
2428     public const int OptionsFieldNumber = 2;
2429     private global::Google.Protobuf.Reflection.OneofOptions options_;
2430     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2431     public global::Google.Protobuf.Reflection.OneofOptions Options {
2432       get { return options_; }
2433       set {
2434         options_ = value;
2435       }
2436     }
2437     /// <summary>Gets whether the options field is set</summary>
2438     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2439     public bool HasOptions {
2440       get { return options_ != null; }
2441     }
2442     /// <summary>Clears the value of the options field</summary>
2443     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearOptions()2444     public void ClearOptions() {
2445       options_ = null;
2446     }
2447 
2448     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)2449     public override bool Equals(object other) {
2450       return Equals(other as OneofDescriptorProto);
2451     }
2452 
2453     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(OneofDescriptorProto other)2454     public bool Equals(OneofDescriptorProto other) {
2455       if (ReferenceEquals(other, null)) {
2456         return false;
2457       }
2458       if (ReferenceEquals(other, this)) {
2459         return true;
2460       }
2461       if (Name != other.Name) return false;
2462       if (!object.Equals(Options, other.Options)) return false;
2463       return Equals(_unknownFields, other._unknownFields);
2464     }
2465 
2466     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()2467     public override int GetHashCode() {
2468       int hash = 1;
2469       if (HasName) hash ^= Name.GetHashCode();
2470       if (HasOptions) hash ^= Options.GetHashCode();
2471       if (_unknownFields != null) {
2472         hash ^= _unknownFields.GetHashCode();
2473       }
2474       return hash;
2475     }
2476 
2477     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()2478     public override string ToString() {
2479       return pb::JsonFormatter.ToDiagnosticString(this);
2480     }
2481 
2482     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)2483     public void WriteTo(pb::CodedOutputStream output) {
2484       if (HasName) {
2485         output.WriteRawTag(10);
2486         output.WriteString(Name);
2487       }
2488       if (HasOptions) {
2489         output.WriteRawTag(18);
2490         output.WriteMessage(Options);
2491       }
2492       if (_unknownFields != null) {
2493         _unknownFields.WriteTo(output);
2494       }
2495     }
2496 
2497     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()2498     public int CalculateSize() {
2499       int size = 0;
2500       if (HasName) {
2501         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
2502       }
2503       if (HasOptions) {
2504         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
2505       }
2506       if (_unknownFields != null) {
2507         size += _unknownFields.CalculateSize();
2508       }
2509       return size;
2510     }
2511 
2512     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(OneofDescriptorProto other)2513     public void MergeFrom(OneofDescriptorProto other) {
2514       if (other == null) {
2515         return;
2516       }
2517       if (other.HasName) {
2518         Name = other.Name;
2519       }
2520       if (other.HasOptions) {
2521         if (!HasOptions) {
2522           Options = new global::Google.Protobuf.Reflection.OneofOptions();
2523         }
2524         Options.MergeFrom(other.Options);
2525       }
2526       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2527     }
2528 
2529     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)2530     public void MergeFrom(pb::CodedInputStream input) {
2531       uint tag;
2532       while ((tag = input.ReadTag()) != 0) {
2533         switch(tag) {
2534           default:
2535             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2536             break;
2537           case 10: {
2538             Name = input.ReadString();
2539             break;
2540           }
2541           case 18: {
2542             if (!HasOptions) {
2543               Options = new global::Google.Protobuf.Reflection.OneofOptions();
2544             }
2545             input.ReadMessage(Options);
2546             break;
2547           }
2548         }
2549       }
2550     }
2551 
2552   }
2553 
2554   /// <summary>
2555   /// Describes an enum type.
2556   /// </summary>
2557   internal sealed partial class EnumDescriptorProto : pb::IMessage<EnumDescriptorProto> {
2558     private static readonly pb::MessageParser<EnumDescriptorProto> _parser = new pb::MessageParser<EnumDescriptorProto>(() => new EnumDescriptorProto());
2559     private pb::UnknownFieldSet _unknownFields;
2560     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2561     public static pb::MessageParser<EnumDescriptorProto> Parser { get { return _parser; } }
2562 
2563     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2564     public static pbr::MessageDescriptor Descriptor {
2565       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[6]; }
2566     }
2567 
2568     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2569     pbr::MessageDescriptor pb::IMessage.Descriptor {
2570       get { return Descriptor; }
2571     }
2572 
2573     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
EnumDescriptorProto()2574     public EnumDescriptorProto() {
2575       OnConstruction();
2576     }
2577 
OnConstruction()2578     partial void OnConstruction();
2579 
2580     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
EnumDescriptorProto(EnumDescriptorProto other)2581     public EnumDescriptorProto(EnumDescriptorProto other) : this() {
2582       name_ = other.name_;
2583       value_ = other.value_.Clone();
2584       options_ = other.HasOptions ? other.options_.Clone() : null;
2585       reservedRange_ = other.reservedRange_.Clone();
2586       reservedName_ = other.reservedName_.Clone();
2587       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2588     }
2589 
2590     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()2591     public EnumDescriptorProto Clone() {
2592       return new EnumDescriptorProto(this);
2593     }
2594 
2595     /// <summary>Field number for the "name" field.</summary>
2596     public const int NameFieldNumber = 1;
2597     private readonly static string NameDefaultValue = "";
2598 
2599     private string name_;
2600     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2601     public string Name {
2602       get { return name_ ?? NameDefaultValue; }
2603       set {
2604         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2605       }
2606     }
2607     /// <summary>Gets whether the "name" field is set</summary>
2608     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2609     public bool HasName {
2610       get { return name_ != null; }
2611     }
2612     /// <summary>Clears the value of the "name" field</summary>
2613     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearName()2614     public void ClearName() {
2615       name_ = null;
2616     }
2617 
2618     /// <summary>Field number for the "value" field.</summary>
2619     public const int ValueFieldNumber = 2;
2620     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> _repeated_value_codec
2621         = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser);
2622     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> value_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto>();
2623     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2624     public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> Value {
2625       get { return value_; }
2626     }
2627 
2628     /// <summary>Field number for the "options" field.</summary>
2629     public const int OptionsFieldNumber = 3;
2630     private global::Google.Protobuf.Reflection.EnumOptions options_;
2631     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2632     public global::Google.Protobuf.Reflection.EnumOptions Options {
2633       get { return options_; }
2634       set {
2635         options_ = value;
2636       }
2637     }
2638     /// <summary>Gets whether the options field is set</summary>
2639     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2640     public bool HasOptions {
2641       get { return options_ != null; }
2642     }
2643     /// <summary>Clears the value of the options field</summary>
2644     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearOptions()2645     public void ClearOptions() {
2646       options_ = null;
2647     }
2648 
2649     /// <summary>Field number for the "reserved_range" field.</summary>
2650     public const int ReservedRangeFieldNumber = 4;
2651     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto.Types.EnumReservedRange> _repeated_reservedRange_codec
2652         = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.EnumDescriptorProto.Types.EnumReservedRange.Parser);
2653     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto.Types.EnumReservedRange> reservedRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto.Types.EnumReservedRange>();
2654     /// <summary>
2655     /// Range of reserved numeric values. Reserved numeric values may not be used
2656     /// by enum values in the same enum declaration. Reserved ranges may not
2657     /// overlap.
2658     /// </summary>
2659     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2660     public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto.Types.EnumReservedRange> ReservedRange {
2661       get { return reservedRange_; }
2662     }
2663 
2664     /// <summary>Field number for the "reserved_name" field.</summary>
2665     public const int ReservedNameFieldNumber = 5;
2666     private static readonly pb::FieldCodec<string> _repeated_reservedName_codec
2667         = pb::FieldCodec.ForString(42);
2668     private readonly pbc::RepeatedField<string> reservedName_ = new pbc::RepeatedField<string>();
2669     /// <summary>
2670     /// Reserved enum value names, which may not be reused. A given name may only
2671     /// be reserved once.
2672     /// </summary>
2673     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2674     public pbc::RepeatedField<string> ReservedName {
2675       get { return reservedName_; }
2676     }
2677 
2678     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)2679     public override bool Equals(object other) {
2680       return Equals(other as EnumDescriptorProto);
2681     }
2682 
2683     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(EnumDescriptorProto other)2684     public bool Equals(EnumDescriptorProto other) {
2685       if (ReferenceEquals(other, null)) {
2686         return false;
2687       }
2688       if (ReferenceEquals(other, this)) {
2689         return true;
2690       }
2691       if (Name != other.Name) return false;
2692       if(!value_.Equals(other.value_)) return false;
2693       if (!object.Equals(Options, other.Options)) return false;
2694       if(!reservedRange_.Equals(other.reservedRange_)) return false;
2695       if(!reservedName_.Equals(other.reservedName_)) return false;
2696       return Equals(_unknownFields, other._unknownFields);
2697     }
2698 
2699     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()2700     public override int GetHashCode() {
2701       int hash = 1;
2702       if (HasName) hash ^= Name.GetHashCode();
2703       hash ^= value_.GetHashCode();
2704       if (HasOptions) hash ^= Options.GetHashCode();
2705       hash ^= reservedRange_.GetHashCode();
2706       hash ^= reservedName_.GetHashCode();
2707       if (_unknownFields != null) {
2708         hash ^= _unknownFields.GetHashCode();
2709       }
2710       return hash;
2711     }
2712 
2713     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()2714     public override string ToString() {
2715       return pb::JsonFormatter.ToDiagnosticString(this);
2716     }
2717 
2718     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)2719     public void WriteTo(pb::CodedOutputStream output) {
2720       if (HasName) {
2721         output.WriteRawTag(10);
2722         output.WriteString(Name);
2723       }
2724       value_.WriteTo(output, _repeated_value_codec);
2725       if (HasOptions) {
2726         output.WriteRawTag(26);
2727         output.WriteMessage(Options);
2728       }
2729       reservedRange_.WriteTo(output, _repeated_reservedRange_codec);
2730       reservedName_.WriteTo(output, _repeated_reservedName_codec);
2731       if (_unknownFields != null) {
2732         _unknownFields.WriteTo(output);
2733       }
2734     }
2735 
2736     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()2737     public int CalculateSize() {
2738       int size = 0;
2739       if (HasName) {
2740         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
2741       }
2742       size += value_.CalculateSize(_repeated_value_codec);
2743       if (HasOptions) {
2744         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
2745       }
2746       size += reservedRange_.CalculateSize(_repeated_reservedRange_codec);
2747       size += reservedName_.CalculateSize(_repeated_reservedName_codec);
2748       if (_unknownFields != null) {
2749         size += _unknownFields.CalculateSize();
2750       }
2751       return size;
2752     }
2753 
2754     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(EnumDescriptorProto other)2755     public void MergeFrom(EnumDescriptorProto other) {
2756       if (other == null) {
2757         return;
2758       }
2759       if (other.HasName) {
2760         Name = other.Name;
2761       }
2762       value_.Add(other.value_);
2763       if (other.HasOptions) {
2764         if (!HasOptions) {
2765           Options = new global::Google.Protobuf.Reflection.EnumOptions();
2766         }
2767         Options.MergeFrom(other.Options);
2768       }
2769       reservedRange_.Add(other.reservedRange_);
2770       reservedName_.Add(other.reservedName_);
2771       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2772     }
2773 
2774     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)2775     public void MergeFrom(pb::CodedInputStream input) {
2776       uint tag;
2777       while ((tag = input.ReadTag()) != 0) {
2778         switch(tag) {
2779           default:
2780             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2781             break;
2782           case 10: {
2783             Name = input.ReadString();
2784             break;
2785           }
2786           case 18: {
2787             value_.AddEntriesFrom(input, _repeated_value_codec);
2788             break;
2789           }
2790           case 26: {
2791             if (!HasOptions) {
2792               Options = new global::Google.Protobuf.Reflection.EnumOptions();
2793             }
2794             input.ReadMessage(Options);
2795             break;
2796           }
2797           case 34: {
2798             reservedRange_.AddEntriesFrom(input, _repeated_reservedRange_codec);
2799             break;
2800           }
2801           case 42: {
2802             reservedName_.AddEntriesFrom(input, _repeated_reservedName_codec);
2803             break;
2804           }
2805         }
2806       }
2807     }
2808 
2809     #region Nested types
2810     /// <summary>Container for nested types declared in the EnumDescriptorProto message type.</summary>
2811     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2812     public static partial class Types {
2813       /// <summary>
2814       /// Range of reserved numeric values. Reserved values may not be used by
2815       /// entries in the same enum. Reserved ranges may not overlap.
2816       ///
2817       /// Note that this is distinct from DescriptorProto.ReservedRange in that it
2818       /// is inclusive such that it can appropriately represent the entire int32
2819       /// domain.
2820       /// </summary>
2821       internal sealed partial class EnumReservedRange : pb::IMessage<EnumReservedRange> {
2822         private static readonly pb::MessageParser<EnumReservedRange> _parser = new pb::MessageParser<EnumReservedRange>(() => new EnumReservedRange());
2823         private pb::UnknownFieldSet _unknownFields;
2824         private int _hasBits0;
2825         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2826         public static pb::MessageParser<EnumReservedRange> Parser { get { return _parser; } }
2827 
2828         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2829         public static pbr::MessageDescriptor Descriptor {
2830           get { return global::Google.Protobuf.Reflection.EnumDescriptorProto.Descriptor.NestedTypes[0]; }
2831         }
2832 
2833         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2834         pbr::MessageDescriptor pb::IMessage.Descriptor {
2835           get { return Descriptor; }
2836         }
2837 
2838         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
EnumReservedRange()2839         public EnumReservedRange() {
2840           OnConstruction();
2841         }
2842 
OnConstruction()2843         partial void OnConstruction();
2844 
2845         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
EnumReservedRange(EnumReservedRange other)2846         public EnumReservedRange(EnumReservedRange other) : this() {
2847           _hasBits0 = other._hasBits0;
2848           start_ = other.start_;
2849           end_ = other.end_;
2850           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2851         }
2852 
2853         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()2854         public EnumReservedRange Clone() {
2855           return new EnumReservedRange(this);
2856         }
2857 
2858         /// <summary>Field number for the "start" field.</summary>
2859         public const int StartFieldNumber = 1;
2860         private readonly static int StartDefaultValue = 0;
2861 
2862         private int start_;
2863         /// <summary>
2864         /// Inclusive.
2865         /// </summary>
2866         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2867         public int Start {
2868           get { if ((_hasBits0 & 1) != 0) { return start_; } else { return StartDefaultValue; } }
2869           set {
2870             _hasBits0 |= 1;
2871             start_ = value;
2872           }
2873         }
2874         /// <summary>Gets whether the "start" field is set</summary>
2875         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2876         public bool HasStart {
2877           get { return (_hasBits0 & 1) != 0; }
2878         }
2879         /// <summary>Clears the value of the "start" field</summary>
2880         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearStart()2881         public void ClearStart() {
2882           _hasBits0 &= ~1;
2883         }
2884 
2885         /// <summary>Field number for the "end" field.</summary>
2886         public const int EndFieldNumber = 2;
2887         private readonly static int EndDefaultValue = 0;
2888 
2889         private int end_;
2890         /// <summary>
2891         /// Inclusive.
2892         /// </summary>
2893         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2894         public int End {
2895           get { if ((_hasBits0 & 2) != 0) { return end_; } else { return EndDefaultValue; } }
2896           set {
2897             _hasBits0 |= 2;
2898             end_ = value;
2899           }
2900         }
2901         /// <summary>Gets whether the "end" field is set</summary>
2902         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2903         public bool HasEnd {
2904           get { return (_hasBits0 & 2) != 0; }
2905         }
2906         /// <summary>Clears the value of the "end" field</summary>
2907         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearEnd()2908         public void ClearEnd() {
2909           _hasBits0 &= ~2;
2910         }
2911 
2912         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)2913         public override bool Equals(object other) {
2914           return Equals(other as EnumReservedRange);
2915         }
2916 
2917         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(EnumReservedRange other)2918         public bool Equals(EnumReservedRange other) {
2919           if (ReferenceEquals(other, null)) {
2920             return false;
2921           }
2922           if (ReferenceEquals(other, this)) {
2923             return true;
2924           }
2925           if (Start != other.Start) return false;
2926           if (End != other.End) return false;
2927           return Equals(_unknownFields, other._unknownFields);
2928         }
2929 
2930         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()2931         public override int GetHashCode() {
2932           int hash = 1;
2933           if (HasStart) hash ^= Start.GetHashCode();
2934           if (HasEnd) hash ^= End.GetHashCode();
2935           if (_unknownFields != null) {
2936             hash ^= _unknownFields.GetHashCode();
2937           }
2938           return hash;
2939         }
2940 
2941         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()2942         public override string ToString() {
2943           return pb::JsonFormatter.ToDiagnosticString(this);
2944         }
2945 
2946         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)2947         public void WriteTo(pb::CodedOutputStream output) {
2948           if (HasStart) {
2949             output.WriteRawTag(8);
2950             output.WriteInt32(Start);
2951           }
2952           if (HasEnd) {
2953             output.WriteRawTag(16);
2954             output.WriteInt32(End);
2955           }
2956           if (_unknownFields != null) {
2957             _unknownFields.WriteTo(output);
2958           }
2959         }
2960 
2961         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()2962         public int CalculateSize() {
2963           int size = 0;
2964           if (HasStart) {
2965             size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
2966           }
2967           if (HasEnd) {
2968             size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
2969           }
2970           if (_unknownFields != null) {
2971             size += _unknownFields.CalculateSize();
2972           }
2973           return size;
2974         }
2975 
2976         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(EnumReservedRange other)2977         public void MergeFrom(EnumReservedRange other) {
2978           if (other == null) {
2979             return;
2980           }
2981           if (other.HasStart) {
2982             Start = other.Start;
2983           }
2984           if (other.HasEnd) {
2985             End = other.End;
2986           }
2987           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2988         }
2989 
2990         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)2991         public void MergeFrom(pb::CodedInputStream input) {
2992           uint tag;
2993           while ((tag = input.ReadTag()) != 0) {
2994             switch(tag) {
2995               default:
2996                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2997                 break;
2998               case 8: {
2999                 Start = input.ReadInt32();
3000                 break;
3001               }
3002               case 16: {
3003                 End = input.ReadInt32();
3004                 break;
3005               }
3006             }
3007           }
3008         }
3009 
3010       }
3011 
3012     }
3013     #endregion
3014 
3015   }
3016 
3017   /// <summary>
3018   /// Describes a value within an enum.
3019   /// </summary>
3020   internal sealed partial class EnumValueDescriptorProto : pb::IMessage<EnumValueDescriptorProto> {
3021     private static readonly pb::MessageParser<EnumValueDescriptorProto> _parser = new pb::MessageParser<EnumValueDescriptorProto>(() => new EnumValueDescriptorProto());
3022     private pb::UnknownFieldSet _unknownFields;
3023     private int _hasBits0;
3024     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3025     public static pb::MessageParser<EnumValueDescriptorProto> Parser { get { return _parser; } }
3026 
3027     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3028     public static pbr::MessageDescriptor Descriptor {
3029       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[7]; }
3030     }
3031 
3032     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3033     pbr::MessageDescriptor pb::IMessage.Descriptor {
3034       get { return Descriptor; }
3035     }
3036 
3037     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
EnumValueDescriptorProto()3038     public EnumValueDescriptorProto() {
3039       OnConstruction();
3040     }
3041 
OnConstruction()3042     partial void OnConstruction();
3043 
3044     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
EnumValueDescriptorProto(EnumValueDescriptorProto other)3045     public EnumValueDescriptorProto(EnumValueDescriptorProto other) : this() {
3046       _hasBits0 = other._hasBits0;
3047       name_ = other.name_;
3048       number_ = other.number_;
3049       options_ = other.HasOptions ? other.options_.Clone() : null;
3050       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3051     }
3052 
3053     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()3054     public EnumValueDescriptorProto Clone() {
3055       return new EnumValueDescriptorProto(this);
3056     }
3057 
3058     /// <summary>Field number for the "name" field.</summary>
3059     public const int NameFieldNumber = 1;
3060     private readonly static string NameDefaultValue = "";
3061 
3062     private string name_;
3063     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3064     public string Name {
3065       get { return name_ ?? NameDefaultValue; }
3066       set {
3067         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
3068       }
3069     }
3070     /// <summary>Gets whether the "name" field is set</summary>
3071     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3072     public bool HasName {
3073       get { return name_ != null; }
3074     }
3075     /// <summary>Clears the value of the "name" field</summary>
3076     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearName()3077     public void ClearName() {
3078       name_ = null;
3079     }
3080 
3081     /// <summary>Field number for the "number" field.</summary>
3082     public const int NumberFieldNumber = 2;
3083     private readonly static int NumberDefaultValue = 0;
3084 
3085     private int number_;
3086     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3087     public int Number {
3088       get { if ((_hasBits0 & 1) != 0) { return number_; } else { return NumberDefaultValue; } }
3089       set {
3090         _hasBits0 |= 1;
3091         number_ = value;
3092       }
3093     }
3094     /// <summary>Gets whether the "number" field is set</summary>
3095     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3096     public bool HasNumber {
3097       get { return (_hasBits0 & 1) != 0; }
3098     }
3099     /// <summary>Clears the value of the "number" field</summary>
3100     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearNumber()3101     public void ClearNumber() {
3102       _hasBits0 &= ~1;
3103     }
3104 
3105     /// <summary>Field number for the "options" field.</summary>
3106     public const int OptionsFieldNumber = 3;
3107     private global::Google.Protobuf.Reflection.EnumValueOptions options_;
3108     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3109     public global::Google.Protobuf.Reflection.EnumValueOptions Options {
3110       get { return options_; }
3111       set {
3112         options_ = value;
3113       }
3114     }
3115     /// <summary>Gets whether the options field is set</summary>
3116     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3117     public bool HasOptions {
3118       get { return options_ != null; }
3119     }
3120     /// <summary>Clears the value of the options field</summary>
3121     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearOptions()3122     public void ClearOptions() {
3123       options_ = null;
3124     }
3125 
3126     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)3127     public override bool Equals(object other) {
3128       return Equals(other as EnumValueDescriptorProto);
3129     }
3130 
3131     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(EnumValueDescriptorProto other)3132     public bool Equals(EnumValueDescriptorProto other) {
3133       if (ReferenceEquals(other, null)) {
3134         return false;
3135       }
3136       if (ReferenceEquals(other, this)) {
3137         return true;
3138       }
3139       if (Name != other.Name) return false;
3140       if (Number != other.Number) return false;
3141       if (!object.Equals(Options, other.Options)) return false;
3142       return Equals(_unknownFields, other._unknownFields);
3143     }
3144 
3145     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()3146     public override int GetHashCode() {
3147       int hash = 1;
3148       if (HasName) hash ^= Name.GetHashCode();
3149       if (HasNumber) hash ^= Number.GetHashCode();
3150       if (HasOptions) hash ^= Options.GetHashCode();
3151       if (_unknownFields != null) {
3152         hash ^= _unknownFields.GetHashCode();
3153       }
3154       return hash;
3155     }
3156 
3157     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()3158     public override string ToString() {
3159       return pb::JsonFormatter.ToDiagnosticString(this);
3160     }
3161 
3162     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)3163     public void WriteTo(pb::CodedOutputStream output) {
3164       if (HasName) {
3165         output.WriteRawTag(10);
3166         output.WriteString(Name);
3167       }
3168       if (HasNumber) {
3169         output.WriteRawTag(16);
3170         output.WriteInt32(Number);
3171       }
3172       if (HasOptions) {
3173         output.WriteRawTag(26);
3174         output.WriteMessage(Options);
3175       }
3176       if (_unknownFields != null) {
3177         _unknownFields.WriteTo(output);
3178       }
3179     }
3180 
3181     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()3182     public int CalculateSize() {
3183       int size = 0;
3184       if (HasName) {
3185         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
3186       }
3187       if (HasNumber) {
3188         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
3189       }
3190       if (HasOptions) {
3191         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
3192       }
3193       if (_unknownFields != null) {
3194         size += _unknownFields.CalculateSize();
3195       }
3196       return size;
3197     }
3198 
3199     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(EnumValueDescriptorProto other)3200     public void MergeFrom(EnumValueDescriptorProto other) {
3201       if (other == null) {
3202         return;
3203       }
3204       if (other.HasName) {
3205         Name = other.Name;
3206       }
3207       if (other.HasNumber) {
3208         Number = other.Number;
3209       }
3210       if (other.HasOptions) {
3211         if (!HasOptions) {
3212           Options = new global::Google.Protobuf.Reflection.EnumValueOptions();
3213         }
3214         Options.MergeFrom(other.Options);
3215       }
3216       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3217     }
3218 
3219     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)3220     public void MergeFrom(pb::CodedInputStream input) {
3221       uint tag;
3222       while ((tag = input.ReadTag()) != 0) {
3223         switch(tag) {
3224           default:
3225             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3226             break;
3227           case 10: {
3228             Name = input.ReadString();
3229             break;
3230           }
3231           case 16: {
3232             Number = input.ReadInt32();
3233             break;
3234           }
3235           case 26: {
3236             if (!HasOptions) {
3237               Options = new global::Google.Protobuf.Reflection.EnumValueOptions();
3238             }
3239             input.ReadMessage(Options);
3240             break;
3241           }
3242         }
3243       }
3244     }
3245 
3246   }
3247 
3248   /// <summary>
3249   /// Describes a service.
3250   /// </summary>
3251   internal sealed partial class ServiceDescriptorProto : pb::IMessage<ServiceDescriptorProto> {
3252     private static readonly pb::MessageParser<ServiceDescriptorProto> _parser = new pb::MessageParser<ServiceDescriptorProto>(() => new ServiceDescriptorProto());
3253     private pb::UnknownFieldSet _unknownFields;
3254     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3255     public static pb::MessageParser<ServiceDescriptorProto> Parser { get { return _parser; } }
3256 
3257     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3258     public static pbr::MessageDescriptor Descriptor {
3259       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[8]; }
3260     }
3261 
3262     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3263     pbr::MessageDescriptor pb::IMessage.Descriptor {
3264       get { return Descriptor; }
3265     }
3266 
3267     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ServiceDescriptorProto()3268     public ServiceDescriptorProto() {
3269       OnConstruction();
3270     }
3271 
OnConstruction()3272     partial void OnConstruction();
3273 
3274     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ServiceDescriptorProto(ServiceDescriptorProto other)3275     public ServiceDescriptorProto(ServiceDescriptorProto other) : this() {
3276       name_ = other.name_;
3277       method_ = other.method_.Clone();
3278       options_ = other.HasOptions ? other.options_.Clone() : null;
3279       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3280     }
3281 
3282     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()3283     public ServiceDescriptorProto Clone() {
3284       return new ServiceDescriptorProto(this);
3285     }
3286 
3287     /// <summary>Field number for the "name" field.</summary>
3288     public const int NameFieldNumber = 1;
3289     private readonly static string NameDefaultValue = "";
3290 
3291     private string name_;
3292     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3293     public string Name {
3294       get { return name_ ?? NameDefaultValue; }
3295       set {
3296         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
3297       }
3298     }
3299     /// <summary>Gets whether the "name" field is set</summary>
3300     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3301     public bool HasName {
3302       get { return name_ != null; }
3303     }
3304     /// <summary>Clears the value of the "name" field</summary>
3305     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearName()3306     public void ClearName() {
3307       name_ = null;
3308     }
3309 
3310     /// <summary>Field number for the "method" field.</summary>
3311     public const int MethodFieldNumber = 2;
3312     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.MethodDescriptorProto> _repeated_method_codec
3313         = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.MethodDescriptorProto.Parser);
3314     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> method_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto>();
3315     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3316     public pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> Method {
3317       get { return method_; }
3318     }
3319 
3320     /// <summary>Field number for the "options" field.</summary>
3321     public const int OptionsFieldNumber = 3;
3322     private global::Google.Protobuf.Reflection.ServiceOptions options_;
3323     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3324     public global::Google.Protobuf.Reflection.ServiceOptions Options {
3325       get { return options_; }
3326       set {
3327         options_ = value;
3328       }
3329     }
3330     /// <summary>Gets whether the options field is set</summary>
3331     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3332     public bool HasOptions {
3333       get { return options_ != null; }
3334     }
3335     /// <summary>Clears the value of the options field</summary>
3336     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearOptions()3337     public void ClearOptions() {
3338       options_ = null;
3339     }
3340 
3341     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)3342     public override bool Equals(object other) {
3343       return Equals(other as ServiceDescriptorProto);
3344     }
3345 
3346     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(ServiceDescriptorProto other)3347     public bool Equals(ServiceDescriptorProto other) {
3348       if (ReferenceEquals(other, null)) {
3349         return false;
3350       }
3351       if (ReferenceEquals(other, this)) {
3352         return true;
3353       }
3354       if (Name != other.Name) return false;
3355       if(!method_.Equals(other.method_)) return false;
3356       if (!object.Equals(Options, other.Options)) return false;
3357       return Equals(_unknownFields, other._unknownFields);
3358     }
3359 
3360     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()3361     public override int GetHashCode() {
3362       int hash = 1;
3363       if (HasName) hash ^= Name.GetHashCode();
3364       hash ^= method_.GetHashCode();
3365       if (HasOptions) hash ^= Options.GetHashCode();
3366       if (_unknownFields != null) {
3367         hash ^= _unknownFields.GetHashCode();
3368       }
3369       return hash;
3370     }
3371 
3372     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()3373     public override string ToString() {
3374       return pb::JsonFormatter.ToDiagnosticString(this);
3375     }
3376 
3377     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)3378     public void WriteTo(pb::CodedOutputStream output) {
3379       if (HasName) {
3380         output.WriteRawTag(10);
3381         output.WriteString(Name);
3382       }
3383       method_.WriteTo(output, _repeated_method_codec);
3384       if (HasOptions) {
3385         output.WriteRawTag(26);
3386         output.WriteMessage(Options);
3387       }
3388       if (_unknownFields != null) {
3389         _unknownFields.WriteTo(output);
3390       }
3391     }
3392 
3393     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()3394     public int CalculateSize() {
3395       int size = 0;
3396       if (HasName) {
3397         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
3398       }
3399       size += method_.CalculateSize(_repeated_method_codec);
3400       if (HasOptions) {
3401         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
3402       }
3403       if (_unknownFields != null) {
3404         size += _unknownFields.CalculateSize();
3405       }
3406       return size;
3407     }
3408 
3409     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(ServiceDescriptorProto other)3410     public void MergeFrom(ServiceDescriptorProto other) {
3411       if (other == null) {
3412         return;
3413       }
3414       if (other.HasName) {
3415         Name = other.Name;
3416       }
3417       method_.Add(other.method_);
3418       if (other.HasOptions) {
3419         if (!HasOptions) {
3420           Options = new global::Google.Protobuf.Reflection.ServiceOptions();
3421         }
3422         Options.MergeFrom(other.Options);
3423       }
3424       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3425     }
3426 
3427     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)3428     public void MergeFrom(pb::CodedInputStream input) {
3429       uint tag;
3430       while ((tag = input.ReadTag()) != 0) {
3431         switch(tag) {
3432           default:
3433             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3434             break;
3435           case 10: {
3436             Name = input.ReadString();
3437             break;
3438           }
3439           case 18: {
3440             method_.AddEntriesFrom(input, _repeated_method_codec);
3441             break;
3442           }
3443           case 26: {
3444             if (!HasOptions) {
3445               Options = new global::Google.Protobuf.Reflection.ServiceOptions();
3446             }
3447             input.ReadMessage(Options);
3448             break;
3449           }
3450         }
3451       }
3452     }
3453 
3454   }
3455 
3456   /// <summary>
3457   /// Describes a method of a service.
3458   /// </summary>
3459   internal sealed partial class MethodDescriptorProto : pb::IMessage<MethodDescriptorProto> {
3460     private static readonly pb::MessageParser<MethodDescriptorProto> _parser = new pb::MessageParser<MethodDescriptorProto>(() => new MethodDescriptorProto());
3461     private pb::UnknownFieldSet _unknownFields;
3462     private int _hasBits0;
3463     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3464     public static pb::MessageParser<MethodDescriptorProto> Parser { get { return _parser; } }
3465 
3466     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3467     public static pbr::MessageDescriptor Descriptor {
3468       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[9]; }
3469     }
3470 
3471     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3472     pbr::MessageDescriptor pb::IMessage.Descriptor {
3473       get { return Descriptor; }
3474     }
3475 
3476     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MethodDescriptorProto()3477     public MethodDescriptorProto() {
3478       OnConstruction();
3479     }
3480 
OnConstruction()3481     partial void OnConstruction();
3482 
3483     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MethodDescriptorProto(MethodDescriptorProto other)3484     public MethodDescriptorProto(MethodDescriptorProto other) : this() {
3485       _hasBits0 = other._hasBits0;
3486       name_ = other.name_;
3487       inputType_ = other.inputType_;
3488       outputType_ = other.outputType_;
3489       options_ = other.HasOptions ? other.options_.Clone() : null;
3490       clientStreaming_ = other.clientStreaming_;
3491       serverStreaming_ = other.serverStreaming_;
3492       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3493     }
3494 
3495     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()3496     public MethodDescriptorProto Clone() {
3497       return new MethodDescriptorProto(this);
3498     }
3499 
3500     /// <summary>Field number for the "name" field.</summary>
3501     public const int NameFieldNumber = 1;
3502     private readonly static string NameDefaultValue = "";
3503 
3504     private string name_;
3505     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3506     public string Name {
3507       get { return name_ ?? NameDefaultValue; }
3508       set {
3509         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
3510       }
3511     }
3512     /// <summary>Gets whether the "name" field is set</summary>
3513     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3514     public bool HasName {
3515       get { return name_ != null; }
3516     }
3517     /// <summary>Clears the value of the "name" field</summary>
3518     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearName()3519     public void ClearName() {
3520       name_ = null;
3521     }
3522 
3523     /// <summary>Field number for the "input_type" field.</summary>
3524     public const int InputTypeFieldNumber = 2;
3525     private readonly static string InputTypeDefaultValue = "";
3526 
3527     private string inputType_;
3528     /// <summary>
3529     /// Input and output type names.  These are resolved in the same way as
3530     /// FieldDescriptorProto.type_name, but must refer to a message type.
3531     /// </summary>
3532     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3533     public string InputType {
3534       get { return inputType_ ?? InputTypeDefaultValue; }
3535       set {
3536         inputType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
3537       }
3538     }
3539     /// <summary>Gets whether the "input_type" field is set</summary>
3540     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3541     public bool HasInputType {
3542       get { return inputType_ != null; }
3543     }
3544     /// <summary>Clears the value of the "input_type" field</summary>
3545     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearInputType()3546     public void ClearInputType() {
3547       inputType_ = null;
3548     }
3549 
3550     /// <summary>Field number for the "output_type" field.</summary>
3551     public const int OutputTypeFieldNumber = 3;
3552     private readonly static string OutputTypeDefaultValue = "";
3553 
3554     private string outputType_;
3555     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3556     public string OutputType {
3557       get { return outputType_ ?? OutputTypeDefaultValue; }
3558       set {
3559         outputType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
3560       }
3561     }
3562     /// <summary>Gets whether the "output_type" field is set</summary>
3563     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3564     public bool HasOutputType {
3565       get { return outputType_ != null; }
3566     }
3567     /// <summary>Clears the value of the "output_type" field</summary>
3568     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearOutputType()3569     public void ClearOutputType() {
3570       outputType_ = null;
3571     }
3572 
3573     /// <summary>Field number for the "options" field.</summary>
3574     public const int OptionsFieldNumber = 4;
3575     private global::Google.Protobuf.Reflection.MethodOptions options_;
3576     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3577     public global::Google.Protobuf.Reflection.MethodOptions Options {
3578       get { return options_; }
3579       set {
3580         options_ = value;
3581       }
3582     }
3583     /// <summary>Gets whether the options field is set</summary>
3584     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3585     public bool HasOptions {
3586       get { return options_ != null; }
3587     }
3588     /// <summary>Clears the value of the options field</summary>
3589     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearOptions()3590     public void ClearOptions() {
3591       options_ = null;
3592     }
3593 
3594     /// <summary>Field number for the "client_streaming" field.</summary>
3595     public const int ClientStreamingFieldNumber = 5;
3596     private readonly static bool ClientStreamingDefaultValue = false;
3597 
3598     private bool clientStreaming_;
3599     /// <summary>
3600     /// Identifies if client streams multiple client messages
3601     /// </summary>
3602     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3603     public bool ClientStreaming {
3604       get { if ((_hasBits0 & 1) != 0) { return clientStreaming_; } else { return ClientStreamingDefaultValue; } }
3605       set {
3606         _hasBits0 |= 1;
3607         clientStreaming_ = value;
3608       }
3609     }
3610     /// <summary>Gets whether the "client_streaming" field is set</summary>
3611     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3612     public bool HasClientStreaming {
3613       get { return (_hasBits0 & 1) != 0; }
3614     }
3615     /// <summary>Clears the value of the "client_streaming" field</summary>
3616     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearClientStreaming()3617     public void ClearClientStreaming() {
3618       _hasBits0 &= ~1;
3619     }
3620 
3621     /// <summary>Field number for the "server_streaming" field.</summary>
3622     public const int ServerStreamingFieldNumber = 6;
3623     private readonly static bool ServerStreamingDefaultValue = false;
3624 
3625     private bool serverStreaming_;
3626     /// <summary>
3627     /// Identifies if server streams multiple server messages
3628     /// </summary>
3629     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3630     public bool ServerStreaming {
3631       get { if ((_hasBits0 & 2) != 0) { return serverStreaming_; } else { return ServerStreamingDefaultValue; } }
3632       set {
3633         _hasBits0 |= 2;
3634         serverStreaming_ = value;
3635       }
3636     }
3637     /// <summary>Gets whether the "server_streaming" field is set</summary>
3638     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3639     public bool HasServerStreaming {
3640       get { return (_hasBits0 & 2) != 0; }
3641     }
3642     /// <summary>Clears the value of the "server_streaming" field</summary>
3643     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearServerStreaming()3644     public void ClearServerStreaming() {
3645       _hasBits0 &= ~2;
3646     }
3647 
3648     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)3649     public override bool Equals(object other) {
3650       return Equals(other as MethodDescriptorProto);
3651     }
3652 
3653     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(MethodDescriptorProto other)3654     public bool Equals(MethodDescriptorProto other) {
3655       if (ReferenceEquals(other, null)) {
3656         return false;
3657       }
3658       if (ReferenceEquals(other, this)) {
3659         return true;
3660       }
3661       if (Name != other.Name) return false;
3662       if (InputType != other.InputType) return false;
3663       if (OutputType != other.OutputType) return false;
3664       if (!object.Equals(Options, other.Options)) return false;
3665       if (ClientStreaming != other.ClientStreaming) return false;
3666       if (ServerStreaming != other.ServerStreaming) return false;
3667       return Equals(_unknownFields, other._unknownFields);
3668     }
3669 
3670     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()3671     public override int GetHashCode() {
3672       int hash = 1;
3673       if (HasName) hash ^= Name.GetHashCode();
3674       if (HasInputType) hash ^= InputType.GetHashCode();
3675       if (HasOutputType) hash ^= OutputType.GetHashCode();
3676       if (HasOptions) hash ^= Options.GetHashCode();
3677       if (HasClientStreaming) hash ^= ClientStreaming.GetHashCode();
3678       if (HasServerStreaming) hash ^= ServerStreaming.GetHashCode();
3679       if (_unknownFields != null) {
3680         hash ^= _unknownFields.GetHashCode();
3681       }
3682       return hash;
3683     }
3684 
3685     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()3686     public override string ToString() {
3687       return pb::JsonFormatter.ToDiagnosticString(this);
3688     }
3689 
3690     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)3691     public void WriteTo(pb::CodedOutputStream output) {
3692       if (HasName) {
3693         output.WriteRawTag(10);
3694         output.WriteString(Name);
3695       }
3696       if (HasInputType) {
3697         output.WriteRawTag(18);
3698         output.WriteString(InputType);
3699       }
3700       if (HasOutputType) {
3701         output.WriteRawTag(26);
3702         output.WriteString(OutputType);
3703       }
3704       if (HasOptions) {
3705         output.WriteRawTag(34);
3706         output.WriteMessage(Options);
3707       }
3708       if (HasClientStreaming) {
3709         output.WriteRawTag(40);
3710         output.WriteBool(ClientStreaming);
3711       }
3712       if (HasServerStreaming) {
3713         output.WriteRawTag(48);
3714         output.WriteBool(ServerStreaming);
3715       }
3716       if (_unknownFields != null) {
3717         _unknownFields.WriteTo(output);
3718       }
3719     }
3720 
3721     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()3722     public int CalculateSize() {
3723       int size = 0;
3724       if (HasName) {
3725         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
3726       }
3727       if (HasInputType) {
3728         size += 1 + pb::CodedOutputStream.ComputeStringSize(InputType);
3729       }
3730       if (HasOutputType) {
3731         size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputType);
3732       }
3733       if (HasOptions) {
3734         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
3735       }
3736       if (HasClientStreaming) {
3737         size += 1 + 1;
3738       }
3739       if (HasServerStreaming) {
3740         size += 1 + 1;
3741       }
3742       if (_unknownFields != null) {
3743         size += _unknownFields.CalculateSize();
3744       }
3745       return size;
3746     }
3747 
3748     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(MethodDescriptorProto other)3749     public void MergeFrom(MethodDescriptorProto other) {
3750       if (other == null) {
3751         return;
3752       }
3753       if (other.HasName) {
3754         Name = other.Name;
3755       }
3756       if (other.HasInputType) {
3757         InputType = other.InputType;
3758       }
3759       if (other.HasOutputType) {
3760         OutputType = other.OutputType;
3761       }
3762       if (other.HasOptions) {
3763         if (!HasOptions) {
3764           Options = new global::Google.Protobuf.Reflection.MethodOptions();
3765         }
3766         Options.MergeFrom(other.Options);
3767       }
3768       if (other.HasClientStreaming) {
3769         ClientStreaming = other.ClientStreaming;
3770       }
3771       if (other.HasServerStreaming) {
3772         ServerStreaming = other.ServerStreaming;
3773       }
3774       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3775     }
3776 
3777     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)3778     public void MergeFrom(pb::CodedInputStream input) {
3779       uint tag;
3780       while ((tag = input.ReadTag()) != 0) {
3781         switch(tag) {
3782           default:
3783             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3784             break;
3785           case 10: {
3786             Name = input.ReadString();
3787             break;
3788           }
3789           case 18: {
3790             InputType = input.ReadString();
3791             break;
3792           }
3793           case 26: {
3794             OutputType = input.ReadString();
3795             break;
3796           }
3797           case 34: {
3798             if (!HasOptions) {
3799               Options = new global::Google.Protobuf.Reflection.MethodOptions();
3800             }
3801             input.ReadMessage(Options);
3802             break;
3803           }
3804           case 40: {
3805             ClientStreaming = input.ReadBool();
3806             break;
3807           }
3808           case 48: {
3809             ServerStreaming = input.ReadBool();
3810             break;
3811           }
3812         }
3813       }
3814     }
3815 
3816   }
3817 
3818   internal sealed partial class FileOptions : pb::IExtendableMessage<FileOptions> {
3819     private static readonly pb::MessageParser<FileOptions> _parser = new pb::MessageParser<FileOptions>(() => new FileOptions());
3820     private pb::UnknownFieldSet _unknownFields;
3821     internal pb::ExtensionSet<FileOptions> _extensions;
3822     private int _hasBits0;
3823     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3824     public static pb::MessageParser<FileOptions> Parser { get { return _parser; } }
3825 
3826     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3827     public static pbr::MessageDescriptor Descriptor {
3828       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[10]; }
3829     }
3830 
3831     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3832     pbr::MessageDescriptor pb::IMessage.Descriptor {
3833       get { return Descriptor; }
3834     }
3835 
3836     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
FileOptions()3837     public FileOptions() {
3838       OnConstruction();
3839     }
3840 
OnConstruction()3841     partial void OnConstruction();
3842 
3843     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
FileOptions(FileOptions other)3844     public FileOptions(FileOptions other) : this() {
3845       _hasBits0 = other._hasBits0;
3846       javaPackage_ = other.javaPackage_;
3847       javaOuterClassname_ = other.javaOuterClassname_;
3848       javaMultipleFiles_ = other.javaMultipleFiles_;
3849       javaGenerateEqualsAndHash_ = other.javaGenerateEqualsAndHash_;
3850       javaStringCheckUtf8_ = other.javaStringCheckUtf8_;
3851       optimizeFor_ = other.optimizeFor_;
3852       goPackage_ = other.goPackage_;
3853       ccGenericServices_ = other.ccGenericServices_;
3854       javaGenericServices_ = other.javaGenericServices_;
3855       pyGenericServices_ = other.pyGenericServices_;
3856       phpGenericServices_ = other.phpGenericServices_;
3857       deprecated_ = other.deprecated_;
3858       ccEnableArenas_ = other.ccEnableArenas_;
3859       objcClassPrefix_ = other.objcClassPrefix_;
3860       csharpNamespace_ = other.csharpNamespace_;
3861       swiftPrefix_ = other.swiftPrefix_;
3862       phpClassPrefix_ = other.phpClassPrefix_;
3863       phpNamespace_ = other.phpNamespace_;
3864       phpMetadataNamespace_ = other.phpMetadataNamespace_;
3865       rubyPackage_ = other.rubyPackage_;
3866       uninterpretedOption_ = other.uninterpretedOption_.Clone();
3867       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3868       _extensions = pb::ExtensionSet.Clone(other._extensions);
3869     }
3870 
3871     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()3872     public FileOptions Clone() {
3873       return new FileOptions(this);
3874     }
3875 
3876     /// <summary>Field number for the "java_package" field.</summary>
3877     public const int JavaPackageFieldNumber = 1;
3878     private readonly static string JavaPackageDefaultValue = "";
3879 
3880     private string javaPackage_;
3881     /// <summary>
3882     /// Sets the Java package where classes generated from this .proto will be
3883     /// placed.  By default, the proto package is used, but this is often
3884     /// inappropriate because proto packages do not normally start with backwards
3885     /// domain names.
3886     /// </summary>
3887     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3888     public string JavaPackage {
3889       get { return javaPackage_ ?? JavaPackageDefaultValue; }
3890       set {
3891         javaPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
3892       }
3893     }
3894     /// <summary>Gets whether the "java_package" field is set</summary>
3895     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3896     public bool HasJavaPackage {
3897       get { return javaPackage_ != null; }
3898     }
3899     /// <summary>Clears the value of the "java_package" field</summary>
3900     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearJavaPackage()3901     public void ClearJavaPackage() {
3902       javaPackage_ = null;
3903     }
3904 
3905     /// <summary>Field number for the "java_outer_classname" field.</summary>
3906     public const int JavaOuterClassnameFieldNumber = 8;
3907     private readonly static string JavaOuterClassnameDefaultValue = "";
3908 
3909     private string javaOuterClassname_;
3910     /// <summary>
3911     /// If set, all the classes from the .proto file are wrapped in a single
3912     /// outer class with the given name.  This applies to both Proto1
3913     /// (equivalent to the old "--one_java_file" option) and Proto2 (where
3914     /// a .proto always translates to a single class, but you may want to
3915     /// explicitly choose the class name).
3916     /// </summary>
3917     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3918     public string JavaOuterClassname {
3919       get { return javaOuterClassname_ ?? JavaOuterClassnameDefaultValue; }
3920       set {
3921         javaOuterClassname_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
3922       }
3923     }
3924     /// <summary>Gets whether the "java_outer_classname" field is set</summary>
3925     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3926     public bool HasJavaOuterClassname {
3927       get { return javaOuterClassname_ != null; }
3928     }
3929     /// <summary>Clears the value of the "java_outer_classname" field</summary>
3930     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearJavaOuterClassname()3931     public void ClearJavaOuterClassname() {
3932       javaOuterClassname_ = null;
3933     }
3934 
3935     /// <summary>Field number for the "java_multiple_files" field.</summary>
3936     public const int JavaMultipleFilesFieldNumber = 10;
3937     private readonly static bool JavaMultipleFilesDefaultValue = false;
3938 
3939     private bool javaMultipleFiles_;
3940     /// <summary>
3941     /// If set true, then the Java code generator will generate a separate .java
3942     /// file for each top-level message, enum, and service defined in the .proto
3943     /// file.  Thus, these types will *not* be nested inside the outer class
3944     /// named by java_outer_classname.  However, the outer class will still be
3945     /// generated to contain the file's getDescriptor() method as well as any
3946     /// top-level extensions defined in the file.
3947     /// </summary>
3948     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3949     public bool JavaMultipleFiles {
3950       get { if ((_hasBits0 & 2) != 0) { return javaMultipleFiles_; } else { return JavaMultipleFilesDefaultValue; } }
3951       set {
3952         _hasBits0 |= 2;
3953         javaMultipleFiles_ = value;
3954       }
3955     }
3956     /// <summary>Gets whether the "java_multiple_files" field is set</summary>
3957     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3958     public bool HasJavaMultipleFiles {
3959       get { return (_hasBits0 & 2) != 0; }
3960     }
3961     /// <summary>Clears the value of the "java_multiple_files" field</summary>
3962     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearJavaMultipleFiles()3963     public void ClearJavaMultipleFiles() {
3964       _hasBits0 &= ~2;
3965     }
3966 
3967     /// <summary>Field number for the "java_generate_equals_and_hash" field.</summary>
3968     public const int JavaGenerateEqualsAndHashFieldNumber = 20;
3969     private readonly static bool JavaGenerateEqualsAndHashDefaultValue = false;
3970 
3971     private bool javaGenerateEqualsAndHash_;
3972     /// <summary>
3973     /// This option does nothing.
3974     /// </summary>
3975     [global::System.ObsoleteAttribute]
3976     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3977     public bool JavaGenerateEqualsAndHash {
3978       get { if ((_hasBits0 & 32) != 0) { return javaGenerateEqualsAndHash_; } else { return JavaGenerateEqualsAndHashDefaultValue; } }
3979       set {
3980         _hasBits0 |= 32;
3981         javaGenerateEqualsAndHash_ = value;
3982       }
3983     }
3984     /// <summary>Gets whether the "java_generate_equals_and_hash" field is set</summary>
3985     [global::System.ObsoleteAttribute]
3986     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3987     public bool HasJavaGenerateEqualsAndHash {
3988       get { return (_hasBits0 & 32) != 0; }
3989     }
3990     /// <summary>Clears the value of the "java_generate_equals_and_hash" field</summary>
3991     [global::System.ObsoleteAttribute]
3992     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearJavaGenerateEqualsAndHash()3993     public void ClearJavaGenerateEqualsAndHash() {
3994       _hasBits0 &= ~32;
3995     }
3996 
3997     /// <summary>Field number for the "java_string_check_utf8" field.</summary>
3998     public const int JavaStringCheckUtf8FieldNumber = 27;
3999     private readonly static bool JavaStringCheckUtf8DefaultValue = false;
4000 
4001     private bool javaStringCheckUtf8_;
4002     /// <summary>
4003     /// If set true, then the Java2 code generator will generate code that
4004     /// throws an exception whenever an attempt is made to assign a non-UTF-8
4005     /// byte sequence to a string field.
4006     /// Message reflection will do the same.
4007     /// However, an extension field still accepts non-UTF-8 byte sequences.
4008     /// This option has no effect on when used with the lite runtime.
4009     /// </summary>
4010     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4011     public bool JavaStringCheckUtf8 {
4012       get { if ((_hasBits0 & 128) != 0) { return javaStringCheckUtf8_; } else { return JavaStringCheckUtf8DefaultValue; } }
4013       set {
4014         _hasBits0 |= 128;
4015         javaStringCheckUtf8_ = value;
4016       }
4017     }
4018     /// <summary>Gets whether the "java_string_check_utf8" field is set</summary>
4019     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4020     public bool HasJavaStringCheckUtf8 {
4021       get { return (_hasBits0 & 128) != 0; }
4022     }
4023     /// <summary>Clears the value of the "java_string_check_utf8" field</summary>
4024     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearJavaStringCheckUtf8()4025     public void ClearJavaStringCheckUtf8() {
4026       _hasBits0 &= ~128;
4027     }
4028 
4029     /// <summary>Field number for the "optimize_for" field.</summary>
4030     public const int OptimizeForFieldNumber = 9;
4031     private readonly static global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode OptimizeForDefaultValue = global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode.Speed;
4032 
4033     private global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode optimizeFor_;
4034     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4035     public global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode OptimizeFor {
4036       get { if ((_hasBits0 & 1) != 0) { return optimizeFor_; } else { return OptimizeForDefaultValue; } }
4037       set {
4038         _hasBits0 |= 1;
4039         optimizeFor_ = value;
4040       }
4041     }
4042     /// <summary>Gets whether the "optimize_for" field is set</summary>
4043     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4044     public bool HasOptimizeFor {
4045       get { return (_hasBits0 & 1) != 0; }
4046     }
4047     /// <summary>Clears the value of the "optimize_for" field</summary>
4048     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearOptimizeFor()4049     public void ClearOptimizeFor() {
4050       _hasBits0 &= ~1;
4051     }
4052 
4053     /// <summary>Field number for the "go_package" field.</summary>
4054     public const int GoPackageFieldNumber = 11;
4055     private readonly static string GoPackageDefaultValue = "";
4056 
4057     private string goPackage_;
4058     /// <summary>
4059     /// Sets the Go package where structs generated from this .proto will be
4060     /// placed. If omitted, the Go package will be derived from the following:
4061     ///   - The basename of the package import path, if provided.
4062     ///   - Otherwise, the package statement in the .proto file, if present.
4063     ///   - Otherwise, the basename of the .proto file, without extension.
4064     /// </summary>
4065     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4066     public string GoPackage {
4067       get { return goPackage_ ?? GoPackageDefaultValue; }
4068       set {
4069         goPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
4070       }
4071     }
4072     /// <summary>Gets whether the "go_package" field is set</summary>
4073     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4074     public bool HasGoPackage {
4075       get { return goPackage_ != null; }
4076     }
4077     /// <summary>Clears the value of the "go_package" field</summary>
4078     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearGoPackage()4079     public void ClearGoPackage() {
4080       goPackage_ = null;
4081     }
4082 
4083     /// <summary>Field number for the "cc_generic_services" field.</summary>
4084     public const int CcGenericServicesFieldNumber = 16;
4085     private readonly static bool CcGenericServicesDefaultValue = false;
4086 
4087     private bool ccGenericServices_;
4088     /// <summary>
4089     /// Should generic services be generated in each language?  "Generic" services
4090     /// are not specific to any particular RPC system.  They are generated by the
4091     /// main code generators in each language (without additional plugins).
4092     /// Generic services were the only kind of service generation supported by
4093     /// early versions of google.protobuf.
4094     ///
4095     /// Generic services are now considered deprecated in favor of using plugins
4096     /// that generate code specific to your particular RPC system.  Therefore,
4097     /// these default to false.  Old code which depends on generic services should
4098     /// explicitly set them to true.
4099     /// </summary>
4100     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4101     public bool CcGenericServices {
4102       get { if ((_hasBits0 & 4) != 0) { return ccGenericServices_; } else { return CcGenericServicesDefaultValue; } }
4103       set {
4104         _hasBits0 |= 4;
4105         ccGenericServices_ = value;
4106       }
4107     }
4108     /// <summary>Gets whether the "cc_generic_services" field is set</summary>
4109     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4110     public bool HasCcGenericServices {
4111       get { return (_hasBits0 & 4) != 0; }
4112     }
4113     /// <summary>Clears the value of the "cc_generic_services" field</summary>
4114     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearCcGenericServices()4115     public void ClearCcGenericServices() {
4116       _hasBits0 &= ~4;
4117     }
4118 
4119     /// <summary>Field number for the "java_generic_services" field.</summary>
4120     public const int JavaGenericServicesFieldNumber = 17;
4121     private readonly static bool JavaGenericServicesDefaultValue = false;
4122 
4123     private bool javaGenericServices_;
4124     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4125     public bool JavaGenericServices {
4126       get { if ((_hasBits0 & 8) != 0) { return javaGenericServices_; } else { return JavaGenericServicesDefaultValue; } }
4127       set {
4128         _hasBits0 |= 8;
4129         javaGenericServices_ = value;
4130       }
4131     }
4132     /// <summary>Gets whether the "java_generic_services" field is set</summary>
4133     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4134     public bool HasJavaGenericServices {
4135       get { return (_hasBits0 & 8) != 0; }
4136     }
4137     /// <summary>Clears the value of the "java_generic_services" field</summary>
4138     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearJavaGenericServices()4139     public void ClearJavaGenericServices() {
4140       _hasBits0 &= ~8;
4141     }
4142 
4143     /// <summary>Field number for the "py_generic_services" field.</summary>
4144     public const int PyGenericServicesFieldNumber = 18;
4145     private readonly static bool PyGenericServicesDefaultValue = false;
4146 
4147     private bool pyGenericServices_;
4148     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4149     public bool PyGenericServices {
4150       get { if ((_hasBits0 & 16) != 0) { return pyGenericServices_; } else { return PyGenericServicesDefaultValue; } }
4151       set {
4152         _hasBits0 |= 16;
4153         pyGenericServices_ = value;
4154       }
4155     }
4156     /// <summary>Gets whether the "py_generic_services" field is set</summary>
4157     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4158     public bool HasPyGenericServices {
4159       get { return (_hasBits0 & 16) != 0; }
4160     }
4161     /// <summary>Clears the value of the "py_generic_services" field</summary>
4162     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearPyGenericServices()4163     public void ClearPyGenericServices() {
4164       _hasBits0 &= ~16;
4165     }
4166 
4167     /// <summary>Field number for the "php_generic_services" field.</summary>
4168     public const int PhpGenericServicesFieldNumber = 42;
4169     private readonly static bool PhpGenericServicesDefaultValue = false;
4170 
4171     private bool phpGenericServices_;
4172     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4173     public bool PhpGenericServices {
4174       get { if ((_hasBits0 & 512) != 0) { return phpGenericServices_; } else { return PhpGenericServicesDefaultValue; } }
4175       set {
4176         _hasBits0 |= 512;
4177         phpGenericServices_ = value;
4178       }
4179     }
4180     /// <summary>Gets whether the "php_generic_services" field is set</summary>
4181     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4182     public bool HasPhpGenericServices {
4183       get { return (_hasBits0 & 512) != 0; }
4184     }
4185     /// <summary>Clears the value of the "php_generic_services" field</summary>
4186     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearPhpGenericServices()4187     public void ClearPhpGenericServices() {
4188       _hasBits0 &= ~512;
4189     }
4190 
4191     /// <summary>Field number for the "deprecated" field.</summary>
4192     public const int DeprecatedFieldNumber = 23;
4193     private readonly static bool DeprecatedDefaultValue = false;
4194 
4195     private bool deprecated_;
4196     /// <summary>
4197     /// Is this file deprecated?
4198     /// Depending on the target platform, this can emit Deprecated annotations
4199     /// for everything in the file, or it will be completely ignored; in the very
4200     /// least, this is a formalization for deprecating files.
4201     /// </summary>
4202     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4203     public bool Deprecated {
4204       get { if ((_hasBits0 & 64) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } }
4205       set {
4206         _hasBits0 |= 64;
4207         deprecated_ = value;
4208       }
4209     }
4210     /// <summary>Gets whether the "deprecated" field is set</summary>
4211     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4212     public bool HasDeprecated {
4213       get { return (_hasBits0 & 64) != 0; }
4214     }
4215     /// <summary>Clears the value of the "deprecated" field</summary>
4216     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearDeprecated()4217     public void ClearDeprecated() {
4218       _hasBits0 &= ~64;
4219     }
4220 
4221     /// <summary>Field number for the "cc_enable_arenas" field.</summary>
4222     public const int CcEnableArenasFieldNumber = 31;
4223     private readonly static bool CcEnableArenasDefaultValue = false;
4224 
4225     private bool ccEnableArenas_;
4226     /// <summary>
4227     /// Enables the use of arenas for the proto messages in this file. This applies
4228     /// only to generated classes for C++.
4229     /// </summary>
4230     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4231     public bool CcEnableArenas {
4232       get { if ((_hasBits0 & 256) != 0) { return ccEnableArenas_; } else { return CcEnableArenasDefaultValue; } }
4233       set {
4234         _hasBits0 |= 256;
4235         ccEnableArenas_ = value;
4236       }
4237     }
4238     /// <summary>Gets whether the "cc_enable_arenas" field is set</summary>
4239     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4240     public bool HasCcEnableArenas {
4241       get { return (_hasBits0 & 256) != 0; }
4242     }
4243     /// <summary>Clears the value of the "cc_enable_arenas" field</summary>
4244     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearCcEnableArenas()4245     public void ClearCcEnableArenas() {
4246       _hasBits0 &= ~256;
4247     }
4248 
4249     /// <summary>Field number for the "objc_class_prefix" field.</summary>
4250     public const int ObjcClassPrefixFieldNumber = 36;
4251     private readonly static string ObjcClassPrefixDefaultValue = "";
4252 
4253     private string objcClassPrefix_;
4254     /// <summary>
4255     /// Sets the objective c class prefix which is prepended to all objective c
4256     /// generated classes from this .proto. There is no default.
4257     /// </summary>
4258     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4259     public string ObjcClassPrefix {
4260       get { return objcClassPrefix_ ?? ObjcClassPrefixDefaultValue; }
4261       set {
4262         objcClassPrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
4263       }
4264     }
4265     /// <summary>Gets whether the "objc_class_prefix" field is set</summary>
4266     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4267     public bool HasObjcClassPrefix {
4268       get { return objcClassPrefix_ != null; }
4269     }
4270     /// <summary>Clears the value of the "objc_class_prefix" field</summary>
4271     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearObjcClassPrefix()4272     public void ClearObjcClassPrefix() {
4273       objcClassPrefix_ = null;
4274     }
4275 
4276     /// <summary>Field number for the "csharp_namespace" field.</summary>
4277     public const int CsharpNamespaceFieldNumber = 37;
4278     private readonly static string CsharpNamespaceDefaultValue = "";
4279 
4280     private string csharpNamespace_;
4281     /// <summary>
4282     /// Namespace for generated classes; defaults to the package.
4283     /// </summary>
4284     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4285     public string CsharpNamespace {
4286       get { return csharpNamespace_ ?? CsharpNamespaceDefaultValue; }
4287       set {
4288         csharpNamespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
4289       }
4290     }
4291     /// <summary>Gets whether the "csharp_namespace" field is set</summary>
4292     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4293     public bool HasCsharpNamespace {
4294       get { return csharpNamespace_ != null; }
4295     }
4296     /// <summary>Clears the value of the "csharp_namespace" field</summary>
4297     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearCsharpNamespace()4298     public void ClearCsharpNamespace() {
4299       csharpNamespace_ = null;
4300     }
4301 
4302     /// <summary>Field number for the "swift_prefix" field.</summary>
4303     public const int SwiftPrefixFieldNumber = 39;
4304     private readonly static string SwiftPrefixDefaultValue = "";
4305 
4306     private string swiftPrefix_;
4307     /// <summary>
4308     /// By default Swift generators will take the proto package and CamelCase it
4309     /// replacing '.' with underscore and use that to prefix the types/symbols
4310     /// defined. When this options is provided, they will use this value instead
4311     /// to prefix the types/symbols defined.
4312     /// </summary>
4313     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4314     public string SwiftPrefix {
4315       get { return swiftPrefix_ ?? SwiftPrefixDefaultValue; }
4316       set {
4317         swiftPrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
4318       }
4319     }
4320     /// <summary>Gets whether the "swift_prefix" field is set</summary>
4321     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4322     public bool HasSwiftPrefix {
4323       get { return swiftPrefix_ != null; }
4324     }
4325     /// <summary>Clears the value of the "swift_prefix" field</summary>
4326     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearSwiftPrefix()4327     public void ClearSwiftPrefix() {
4328       swiftPrefix_ = null;
4329     }
4330 
4331     /// <summary>Field number for the "php_class_prefix" field.</summary>
4332     public const int PhpClassPrefixFieldNumber = 40;
4333     private readonly static string PhpClassPrefixDefaultValue = "";
4334 
4335     private string phpClassPrefix_;
4336     /// <summary>
4337     /// Sets the php class prefix which is prepended to all php generated classes
4338     /// from this .proto. Default is empty.
4339     /// </summary>
4340     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4341     public string PhpClassPrefix {
4342       get { return phpClassPrefix_ ?? PhpClassPrefixDefaultValue; }
4343       set {
4344         phpClassPrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
4345       }
4346     }
4347     /// <summary>Gets whether the "php_class_prefix" field is set</summary>
4348     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4349     public bool HasPhpClassPrefix {
4350       get { return phpClassPrefix_ != null; }
4351     }
4352     /// <summary>Clears the value of the "php_class_prefix" field</summary>
4353     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearPhpClassPrefix()4354     public void ClearPhpClassPrefix() {
4355       phpClassPrefix_ = null;
4356     }
4357 
4358     /// <summary>Field number for the "php_namespace" field.</summary>
4359     public const int PhpNamespaceFieldNumber = 41;
4360     private readonly static string PhpNamespaceDefaultValue = "";
4361 
4362     private string phpNamespace_;
4363     /// <summary>
4364     /// Use this option to change the namespace of php generated classes. Default
4365     /// is empty. When this option is empty, the package name will be used for
4366     /// determining the namespace.
4367     /// </summary>
4368     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4369     public string PhpNamespace {
4370       get { return phpNamespace_ ?? PhpNamespaceDefaultValue; }
4371       set {
4372         phpNamespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
4373       }
4374     }
4375     /// <summary>Gets whether the "php_namespace" field is set</summary>
4376     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4377     public bool HasPhpNamespace {
4378       get { return phpNamespace_ != null; }
4379     }
4380     /// <summary>Clears the value of the "php_namespace" field</summary>
4381     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearPhpNamespace()4382     public void ClearPhpNamespace() {
4383       phpNamespace_ = null;
4384     }
4385 
4386     /// <summary>Field number for the "php_metadata_namespace" field.</summary>
4387     public const int PhpMetadataNamespaceFieldNumber = 44;
4388     private readonly static string PhpMetadataNamespaceDefaultValue = "";
4389 
4390     private string phpMetadataNamespace_;
4391     /// <summary>
4392     /// Use this option to change the namespace of php generated metadata classes.
4393     /// Default is empty. When this option is empty, the proto file name will be
4394     /// used for determining the namespace.
4395     /// </summary>
4396     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4397     public string PhpMetadataNamespace {
4398       get { return phpMetadataNamespace_ ?? PhpMetadataNamespaceDefaultValue; }
4399       set {
4400         phpMetadataNamespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
4401       }
4402     }
4403     /// <summary>Gets whether the "php_metadata_namespace" field is set</summary>
4404     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4405     public bool HasPhpMetadataNamespace {
4406       get { return phpMetadataNamespace_ != null; }
4407     }
4408     /// <summary>Clears the value of the "php_metadata_namespace" field</summary>
4409     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearPhpMetadataNamespace()4410     public void ClearPhpMetadataNamespace() {
4411       phpMetadataNamespace_ = null;
4412     }
4413 
4414     /// <summary>Field number for the "ruby_package" field.</summary>
4415     public const int RubyPackageFieldNumber = 45;
4416     private readonly static string RubyPackageDefaultValue = "";
4417 
4418     private string rubyPackage_;
4419     /// <summary>
4420     /// Use this option to change the package of ruby generated classes. Default
4421     /// is empty. When this option is not set, the package name will be used for
4422     /// determining the ruby package.
4423     /// </summary>
4424     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4425     public string RubyPackage {
4426       get { return rubyPackage_ ?? RubyPackageDefaultValue; }
4427       set {
4428         rubyPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
4429       }
4430     }
4431     /// <summary>Gets whether the "ruby_package" field is set</summary>
4432     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4433     public bool HasRubyPackage {
4434       get { return rubyPackage_ != null; }
4435     }
4436     /// <summary>Clears the value of the "ruby_package" field</summary>
4437     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearRubyPackage()4438     public void ClearRubyPackage() {
4439       rubyPackage_ = null;
4440     }
4441 
4442     /// <summary>Field number for the "uninterpreted_option" field.</summary>
4443     public const int UninterpretedOptionFieldNumber = 999;
4444     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
4445         = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
4446     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
4447     /// <summary>
4448     /// The parser stores options it doesn't recognize here.
4449     /// See the documentation for the "Options" section above.
4450     /// </summary>
4451     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4452     public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
4453       get { return uninterpretedOption_; }
4454     }
4455 
4456     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)4457     public override bool Equals(object other) {
4458       return Equals(other as FileOptions);
4459     }
4460 
4461     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(FileOptions other)4462     public bool Equals(FileOptions other) {
4463       if (ReferenceEquals(other, null)) {
4464         return false;
4465       }
4466       if (ReferenceEquals(other, this)) {
4467         return true;
4468       }
4469       if (JavaPackage != other.JavaPackage) return false;
4470       if (JavaOuterClassname != other.JavaOuterClassname) return false;
4471       if (JavaMultipleFiles != other.JavaMultipleFiles) return false;
4472       if (JavaGenerateEqualsAndHash != other.JavaGenerateEqualsAndHash) return false;
4473       if (JavaStringCheckUtf8 != other.JavaStringCheckUtf8) return false;
4474       if (OptimizeFor != other.OptimizeFor) return false;
4475       if (GoPackage != other.GoPackage) return false;
4476       if (CcGenericServices != other.CcGenericServices) return false;
4477       if (JavaGenericServices != other.JavaGenericServices) return false;
4478       if (PyGenericServices != other.PyGenericServices) return false;
4479       if (PhpGenericServices != other.PhpGenericServices) return false;
4480       if (Deprecated != other.Deprecated) return false;
4481       if (CcEnableArenas != other.CcEnableArenas) return false;
4482       if (ObjcClassPrefix != other.ObjcClassPrefix) return false;
4483       if (CsharpNamespace != other.CsharpNamespace) return false;
4484       if (SwiftPrefix != other.SwiftPrefix) return false;
4485       if (PhpClassPrefix != other.PhpClassPrefix) return false;
4486       if (PhpNamespace != other.PhpNamespace) return false;
4487       if (PhpMetadataNamespace != other.PhpMetadataNamespace) return false;
4488       if (RubyPackage != other.RubyPackage) return false;
4489       if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
4490       if (!Equals(_extensions, other._extensions)) {
4491         return false;
4492       }
4493       return Equals(_unknownFields, other._unknownFields);
4494     }
4495 
4496     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()4497     public override int GetHashCode() {
4498       int hash = 1;
4499       if (HasJavaPackage) hash ^= JavaPackage.GetHashCode();
4500       if (HasJavaOuterClassname) hash ^= JavaOuterClassname.GetHashCode();
4501       if (HasJavaMultipleFiles) hash ^= JavaMultipleFiles.GetHashCode();
4502       if (HasJavaGenerateEqualsAndHash) hash ^= JavaGenerateEqualsAndHash.GetHashCode();
4503       if (HasJavaStringCheckUtf8) hash ^= JavaStringCheckUtf8.GetHashCode();
4504       if (HasOptimizeFor) hash ^= OptimizeFor.GetHashCode();
4505       if (HasGoPackage) hash ^= GoPackage.GetHashCode();
4506       if (HasCcGenericServices) hash ^= CcGenericServices.GetHashCode();
4507       if (HasJavaGenericServices) hash ^= JavaGenericServices.GetHashCode();
4508       if (HasPyGenericServices) hash ^= PyGenericServices.GetHashCode();
4509       if (HasPhpGenericServices) hash ^= PhpGenericServices.GetHashCode();
4510       if (HasDeprecated) hash ^= Deprecated.GetHashCode();
4511       if (HasCcEnableArenas) hash ^= CcEnableArenas.GetHashCode();
4512       if (HasObjcClassPrefix) hash ^= ObjcClassPrefix.GetHashCode();
4513       if (HasCsharpNamespace) hash ^= CsharpNamespace.GetHashCode();
4514       if (HasSwiftPrefix) hash ^= SwiftPrefix.GetHashCode();
4515       if (HasPhpClassPrefix) hash ^= PhpClassPrefix.GetHashCode();
4516       if (HasPhpNamespace) hash ^= PhpNamespace.GetHashCode();
4517       if (HasPhpMetadataNamespace) hash ^= PhpMetadataNamespace.GetHashCode();
4518       if (HasRubyPackage) hash ^= RubyPackage.GetHashCode();
4519       hash ^= uninterpretedOption_.GetHashCode();
4520       if (_extensions != null) {
4521         hash ^= _extensions.GetHashCode();
4522       }
4523       if (_unknownFields != null) {
4524         hash ^= _unknownFields.GetHashCode();
4525       }
4526       return hash;
4527     }
4528 
4529     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()4530     public override string ToString() {
4531       return pb::JsonFormatter.ToDiagnosticString(this);
4532     }
4533 
4534     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)4535     public void WriteTo(pb::CodedOutputStream output) {
4536       if (HasJavaPackage) {
4537         output.WriteRawTag(10);
4538         output.WriteString(JavaPackage);
4539       }
4540       if (HasJavaOuterClassname) {
4541         output.WriteRawTag(66);
4542         output.WriteString(JavaOuterClassname);
4543       }
4544       if (HasOptimizeFor) {
4545         output.WriteRawTag(72);
4546         output.WriteEnum((int) OptimizeFor);
4547       }
4548       if (HasJavaMultipleFiles) {
4549         output.WriteRawTag(80);
4550         output.WriteBool(JavaMultipleFiles);
4551       }
4552       if (HasGoPackage) {
4553         output.WriteRawTag(90);
4554         output.WriteString(GoPackage);
4555       }
4556       if (HasCcGenericServices) {
4557         output.WriteRawTag(128, 1);
4558         output.WriteBool(CcGenericServices);
4559       }
4560       if (HasJavaGenericServices) {
4561         output.WriteRawTag(136, 1);
4562         output.WriteBool(JavaGenericServices);
4563       }
4564       if (HasPyGenericServices) {
4565         output.WriteRawTag(144, 1);
4566         output.WriteBool(PyGenericServices);
4567       }
4568       if (HasJavaGenerateEqualsAndHash) {
4569         output.WriteRawTag(160, 1);
4570         output.WriteBool(JavaGenerateEqualsAndHash);
4571       }
4572       if (HasDeprecated) {
4573         output.WriteRawTag(184, 1);
4574         output.WriteBool(Deprecated);
4575       }
4576       if (HasJavaStringCheckUtf8) {
4577         output.WriteRawTag(216, 1);
4578         output.WriteBool(JavaStringCheckUtf8);
4579       }
4580       if (HasCcEnableArenas) {
4581         output.WriteRawTag(248, 1);
4582         output.WriteBool(CcEnableArenas);
4583       }
4584       if (HasObjcClassPrefix) {
4585         output.WriteRawTag(162, 2);
4586         output.WriteString(ObjcClassPrefix);
4587       }
4588       if (HasCsharpNamespace) {
4589         output.WriteRawTag(170, 2);
4590         output.WriteString(CsharpNamespace);
4591       }
4592       if (HasSwiftPrefix) {
4593         output.WriteRawTag(186, 2);
4594         output.WriteString(SwiftPrefix);
4595       }
4596       if (HasPhpClassPrefix) {
4597         output.WriteRawTag(194, 2);
4598         output.WriteString(PhpClassPrefix);
4599       }
4600       if (HasPhpNamespace) {
4601         output.WriteRawTag(202, 2);
4602         output.WriteString(PhpNamespace);
4603       }
4604       if (HasPhpGenericServices) {
4605         output.WriteRawTag(208, 2);
4606         output.WriteBool(PhpGenericServices);
4607       }
4608       if (HasPhpMetadataNamespace) {
4609         output.WriteRawTag(226, 2);
4610         output.WriteString(PhpMetadataNamespace);
4611       }
4612       if (HasRubyPackage) {
4613         output.WriteRawTag(234, 2);
4614         output.WriteString(RubyPackage);
4615       }
4616       uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
4617       if (_extensions != null) {
4618         _extensions.WriteTo(output);
4619       }
4620       if (_unknownFields != null) {
4621         _unknownFields.WriteTo(output);
4622       }
4623     }
4624 
4625     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()4626     public int CalculateSize() {
4627       int size = 0;
4628       if (HasJavaPackage) {
4629         size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaPackage);
4630       }
4631       if (HasJavaOuterClassname) {
4632         size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaOuterClassname);
4633       }
4634       if (HasJavaMultipleFiles) {
4635         size += 1 + 1;
4636       }
4637       if (HasJavaGenerateEqualsAndHash) {
4638         size += 2 + 1;
4639       }
4640       if (HasJavaStringCheckUtf8) {
4641         size += 2 + 1;
4642       }
4643       if (HasOptimizeFor) {
4644         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OptimizeFor);
4645       }
4646       if (HasGoPackage) {
4647         size += 1 + pb::CodedOutputStream.ComputeStringSize(GoPackage);
4648       }
4649       if (HasCcGenericServices) {
4650         size += 2 + 1;
4651       }
4652       if (HasJavaGenericServices) {
4653         size += 2 + 1;
4654       }
4655       if (HasPyGenericServices) {
4656         size += 2 + 1;
4657       }
4658       if (HasPhpGenericServices) {
4659         size += 2 + 1;
4660       }
4661       if (HasDeprecated) {
4662         size += 2 + 1;
4663       }
4664       if (HasCcEnableArenas) {
4665         size += 2 + 1;
4666       }
4667       if (HasObjcClassPrefix) {
4668         size += 2 + pb::CodedOutputStream.ComputeStringSize(ObjcClassPrefix);
4669       }
4670       if (HasCsharpNamespace) {
4671         size += 2 + pb::CodedOutputStream.ComputeStringSize(CsharpNamespace);
4672       }
4673       if (HasSwiftPrefix) {
4674         size += 2 + pb::CodedOutputStream.ComputeStringSize(SwiftPrefix);
4675       }
4676       if (HasPhpClassPrefix) {
4677         size += 2 + pb::CodedOutputStream.ComputeStringSize(PhpClassPrefix);
4678       }
4679       if (HasPhpNamespace) {
4680         size += 2 + pb::CodedOutputStream.ComputeStringSize(PhpNamespace);
4681       }
4682       if (HasPhpMetadataNamespace) {
4683         size += 2 + pb::CodedOutputStream.ComputeStringSize(PhpMetadataNamespace);
4684       }
4685       if (HasRubyPackage) {
4686         size += 2 + pb::CodedOutputStream.ComputeStringSize(RubyPackage);
4687       }
4688       size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
4689       if (_extensions != null) {
4690         size += _extensions.CalculateSize();
4691       }
4692       if (_unknownFields != null) {
4693         size += _unknownFields.CalculateSize();
4694       }
4695       return size;
4696     }
4697 
4698     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(FileOptions other)4699     public void MergeFrom(FileOptions other) {
4700       if (other == null) {
4701         return;
4702       }
4703       if (other.HasJavaPackage) {
4704         JavaPackage = other.JavaPackage;
4705       }
4706       if (other.HasJavaOuterClassname) {
4707         JavaOuterClassname = other.JavaOuterClassname;
4708       }
4709       if (other.HasJavaMultipleFiles) {
4710         JavaMultipleFiles = other.JavaMultipleFiles;
4711       }
4712       if (other.HasJavaGenerateEqualsAndHash) {
4713         JavaGenerateEqualsAndHash = other.JavaGenerateEqualsAndHash;
4714       }
4715       if (other.HasJavaStringCheckUtf8) {
4716         JavaStringCheckUtf8 = other.JavaStringCheckUtf8;
4717       }
4718       if (other.HasOptimizeFor) {
4719         OptimizeFor = other.OptimizeFor;
4720       }
4721       if (other.HasGoPackage) {
4722         GoPackage = other.GoPackage;
4723       }
4724       if (other.HasCcGenericServices) {
4725         CcGenericServices = other.CcGenericServices;
4726       }
4727       if (other.HasJavaGenericServices) {
4728         JavaGenericServices = other.JavaGenericServices;
4729       }
4730       if (other.HasPyGenericServices) {
4731         PyGenericServices = other.PyGenericServices;
4732       }
4733       if (other.HasPhpGenericServices) {
4734         PhpGenericServices = other.PhpGenericServices;
4735       }
4736       if (other.HasDeprecated) {
4737         Deprecated = other.Deprecated;
4738       }
4739       if (other.HasCcEnableArenas) {
4740         CcEnableArenas = other.CcEnableArenas;
4741       }
4742       if (other.HasObjcClassPrefix) {
4743         ObjcClassPrefix = other.ObjcClassPrefix;
4744       }
4745       if (other.HasCsharpNamespace) {
4746         CsharpNamespace = other.CsharpNamespace;
4747       }
4748       if (other.HasSwiftPrefix) {
4749         SwiftPrefix = other.SwiftPrefix;
4750       }
4751       if (other.HasPhpClassPrefix) {
4752         PhpClassPrefix = other.PhpClassPrefix;
4753       }
4754       if (other.HasPhpNamespace) {
4755         PhpNamespace = other.PhpNamespace;
4756       }
4757       if (other.HasPhpMetadataNamespace) {
4758         PhpMetadataNamespace = other.PhpMetadataNamespace;
4759       }
4760       if (other.HasRubyPackage) {
4761         RubyPackage = other.RubyPackage;
4762       }
4763       uninterpretedOption_.Add(other.uninterpretedOption_);
4764       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
4765       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4766     }
4767 
4768     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)4769     public void MergeFrom(pb::CodedInputStream input) {
4770       uint tag;
4771       while ((tag = input.ReadTag()) != 0) {
4772         switch(tag) {
4773           default:
4774             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
4775               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4776             }
4777             break;
4778           case 10: {
4779             JavaPackage = input.ReadString();
4780             break;
4781           }
4782           case 66: {
4783             JavaOuterClassname = input.ReadString();
4784             break;
4785           }
4786           case 72: {
4787             OptimizeFor = (global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) input.ReadEnum();
4788             break;
4789           }
4790           case 80: {
4791             JavaMultipleFiles = input.ReadBool();
4792             break;
4793           }
4794           case 90: {
4795             GoPackage = input.ReadString();
4796             break;
4797           }
4798           case 128: {
4799             CcGenericServices = input.ReadBool();
4800             break;
4801           }
4802           case 136: {
4803             JavaGenericServices = input.ReadBool();
4804             break;
4805           }
4806           case 144: {
4807             PyGenericServices = input.ReadBool();
4808             break;
4809           }
4810           case 160: {
4811             JavaGenerateEqualsAndHash = input.ReadBool();
4812             break;
4813           }
4814           case 184: {
4815             Deprecated = input.ReadBool();
4816             break;
4817           }
4818           case 216: {
4819             JavaStringCheckUtf8 = input.ReadBool();
4820             break;
4821           }
4822           case 248: {
4823             CcEnableArenas = input.ReadBool();
4824             break;
4825           }
4826           case 290: {
4827             ObjcClassPrefix = input.ReadString();
4828             break;
4829           }
4830           case 298: {
4831             CsharpNamespace = input.ReadString();
4832             break;
4833           }
4834           case 314: {
4835             SwiftPrefix = input.ReadString();
4836             break;
4837           }
4838           case 322: {
4839             PhpClassPrefix = input.ReadString();
4840             break;
4841           }
4842           case 330: {
4843             PhpNamespace = input.ReadString();
4844             break;
4845           }
4846           case 336: {
4847             PhpGenericServices = input.ReadBool();
4848             break;
4849           }
4850           case 354: {
4851             PhpMetadataNamespace = input.ReadString();
4852             break;
4853           }
4854           case 362: {
4855             RubyPackage = input.ReadString();
4856             break;
4857           }
4858           case 7994: {
4859             uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
4860             break;
4861           }
4862         }
4863       }
4864     }
4865 
GetExtension(pb::Extension<FileOptions, TValue> extension)4866     public TValue GetExtension<TValue>(pb::Extension<FileOptions, TValue> extension) {
4867       return pb::ExtensionSet.Get(ref _extensions, extension);
4868     }
GetExtension(pb::RepeatedExtension<FileOptions, TValue> extension)4869     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<FileOptions, TValue> extension) {
4870       return pb::ExtensionSet.Get(ref _extensions, extension);
4871     }
GetOrRegisterExtension(pb::RepeatedExtension<FileOptions, TValue> extension)4872     public pbc::RepeatedField<TValue> GetOrRegisterExtension<TValue>(pb::RepeatedExtension<FileOptions, TValue> extension) {
4873       return pb::ExtensionSet.GetOrRegister(ref _extensions, extension);
4874     }
SetExtension(pb::Extension<FileOptions, TValue> extension, TValue value)4875     public void SetExtension<TValue>(pb::Extension<FileOptions, TValue> extension, TValue value) {
4876       pb::ExtensionSet.Set(ref _extensions, extension, value);
4877     }
HasExtension(pb::Extension<FileOptions, TValue> extension)4878     public bool HasExtension<TValue>(pb::Extension<FileOptions, TValue> extension) {
4879       return pb::ExtensionSet.Has(ref _extensions, extension);
4880     }
ClearExtension(pb::Extension<FileOptions, TValue> extension)4881     public void ClearExtension<TValue>(pb::Extension<FileOptions, TValue> extension) {
4882       pb::ExtensionSet.Clear(ref _extensions, extension);
4883     }
ClearExtension(pb::RepeatedExtension<FileOptions, TValue> extension)4884     public void ClearExtension<TValue>(pb::RepeatedExtension<FileOptions, TValue> extension) {
4885       pb::ExtensionSet.Clear(ref _extensions, extension);
4886     }
4887 
4888     #region Nested types
4889     /// <summary>Container for nested types declared in the FileOptions message type.</summary>
4890     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4891     public static partial class Types {
4892       /// <summary>
4893       /// Generated classes can be optimized for speed or code size.
4894       /// </summary>
4895       internal enum OptimizeMode {
4896         /// <summary>
4897         /// Generate complete code for parsing, serialization,
4898         /// </summary>
4899         [pbr::OriginalName("SPEED")] Speed = 1,
4900         /// <summary>
4901         /// etc.
4902         /// </summary>
4903         [pbr::OriginalName("CODE_SIZE")] CodeSize = 2,
4904         /// <summary>
4905         /// Generate code using MessageLite and the lite runtime.
4906         /// </summary>
4907         [pbr::OriginalName("LITE_RUNTIME")] LiteRuntime = 3,
4908       }
4909 
4910     }
4911     #endregion
4912 
4913   }
4914 
4915   internal sealed partial class MessageOptions : pb::IExtendableMessage<MessageOptions> {
4916     private static readonly pb::MessageParser<MessageOptions> _parser = new pb::MessageParser<MessageOptions>(() => new MessageOptions());
4917     private pb::UnknownFieldSet _unknownFields;
4918     internal pb::ExtensionSet<MessageOptions> _extensions;
4919     private int _hasBits0;
4920     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4921     public static pb::MessageParser<MessageOptions> Parser { get { return _parser; } }
4922 
4923     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4924     public static pbr::MessageDescriptor Descriptor {
4925       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[11]; }
4926     }
4927 
4928     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4929     pbr::MessageDescriptor pb::IMessage.Descriptor {
4930       get { return Descriptor; }
4931     }
4932 
4933     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MessageOptions()4934     public MessageOptions() {
4935       OnConstruction();
4936     }
4937 
OnConstruction()4938     partial void OnConstruction();
4939 
4940     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MessageOptions(MessageOptions other)4941     public MessageOptions(MessageOptions other) : this() {
4942       _hasBits0 = other._hasBits0;
4943       messageSetWireFormat_ = other.messageSetWireFormat_;
4944       noStandardDescriptorAccessor_ = other.noStandardDescriptorAccessor_;
4945       deprecated_ = other.deprecated_;
4946       mapEntry_ = other.mapEntry_;
4947       uninterpretedOption_ = other.uninterpretedOption_.Clone();
4948       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4949       _extensions = pb::ExtensionSet.Clone(other._extensions);
4950     }
4951 
4952     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()4953     public MessageOptions Clone() {
4954       return new MessageOptions(this);
4955     }
4956 
4957     /// <summary>Field number for the "message_set_wire_format" field.</summary>
4958     public const int MessageSetWireFormatFieldNumber = 1;
4959     private readonly static bool MessageSetWireFormatDefaultValue = false;
4960 
4961     private bool messageSetWireFormat_;
4962     /// <summary>
4963     /// Set true to use the old proto1 MessageSet wire format for extensions.
4964     /// This is provided for backwards-compatibility with the MessageSet wire
4965     /// format.  You should not use this for any other reason:  It's less
4966     /// efficient, has fewer features, and is more complicated.
4967     ///
4968     /// The message must be defined exactly as follows:
4969     ///   message Foo {
4970     ///     option message_set_wire_format = true;
4971     ///     extensions 4 to max;
4972     ///   }
4973     /// Note that the message cannot have any defined fields; MessageSets only
4974     /// have extensions.
4975     ///
4976     /// All extensions of your type must be singular messages; e.g. they cannot
4977     /// be int32s, enums, or repeated messages.
4978     ///
4979     /// Because this is an option, the above two restrictions are not enforced by
4980     /// the protocol compiler.
4981     /// </summary>
4982     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4983     public bool MessageSetWireFormat {
4984       get { if ((_hasBits0 & 1) != 0) { return messageSetWireFormat_; } else { return MessageSetWireFormatDefaultValue; } }
4985       set {
4986         _hasBits0 |= 1;
4987         messageSetWireFormat_ = value;
4988       }
4989     }
4990     /// <summary>Gets whether the "message_set_wire_format" field is set</summary>
4991     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4992     public bool HasMessageSetWireFormat {
4993       get { return (_hasBits0 & 1) != 0; }
4994     }
4995     /// <summary>Clears the value of the "message_set_wire_format" field</summary>
4996     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearMessageSetWireFormat()4997     public void ClearMessageSetWireFormat() {
4998       _hasBits0 &= ~1;
4999     }
5000 
5001     /// <summary>Field number for the "no_standard_descriptor_accessor" field.</summary>
5002     public const int NoStandardDescriptorAccessorFieldNumber = 2;
5003     private readonly static bool NoStandardDescriptorAccessorDefaultValue = false;
5004 
5005     private bool noStandardDescriptorAccessor_;
5006     /// <summary>
5007     /// Disables the generation of the standard "descriptor()" accessor, which can
5008     /// conflict with a field of the same name.  This is meant to make migration
5009     /// from proto1 easier; new code should avoid fields named "descriptor".
5010     /// </summary>
5011     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5012     public bool NoStandardDescriptorAccessor {
5013       get { if ((_hasBits0 & 2) != 0) { return noStandardDescriptorAccessor_; } else { return NoStandardDescriptorAccessorDefaultValue; } }
5014       set {
5015         _hasBits0 |= 2;
5016         noStandardDescriptorAccessor_ = value;
5017       }
5018     }
5019     /// <summary>Gets whether the "no_standard_descriptor_accessor" field is set</summary>
5020     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5021     public bool HasNoStandardDescriptorAccessor {
5022       get { return (_hasBits0 & 2) != 0; }
5023     }
5024     /// <summary>Clears the value of the "no_standard_descriptor_accessor" field</summary>
5025     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearNoStandardDescriptorAccessor()5026     public void ClearNoStandardDescriptorAccessor() {
5027       _hasBits0 &= ~2;
5028     }
5029 
5030     /// <summary>Field number for the "deprecated" field.</summary>
5031     public const int DeprecatedFieldNumber = 3;
5032     private readonly static bool DeprecatedDefaultValue = false;
5033 
5034     private bool deprecated_;
5035     /// <summary>
5036     /// Is this message deprecated?
5037     /// Depending on the target platform, this can emit Deprecated annotations
5038     /// for the message, or it will be completely ignored; in the very least,
5039     /// this is a formalization for deprecating messages.
5040     /// </summary>
5041     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5042     public bool Deprecated {
5043       get { if ((_hasBits0 & 4) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } }
5044       set {
5045         _hasBits0 |= 4;
5046         deprecated_ = value;
5047       }
5048     }
5049     /// <summary>Gets whether the "deprecated" field is set</summary>
5050     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5051     public bool HasDeprecated {
5052       get { return (_hasBits0 & 4) != 0; }
5053     }
5054     /// <summary>Clears the value of the "deprecated" field</summary>
5055     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearDeprecated()5056     public void ClearDeprecated() {
5057       _hasBits0 &= ~4;
5058     }
5059 
5060     /// <summary>Field number for the "map_entry" field.</summary>
5061     public const int MapEntryFieldNumber = 7;
5062     private readonly static bool MapEntryDefaultValue = false;
5063 
5064     private bool mapEntry_;
5065     /// <summary>
5066     /// Whether the message is an automatically generated map entry type for the
5067     /// maps field.
5068     ///
5069     /// For maps fields:
5070     ///     map&lt;KeyType, ValueType> map_field = 1;
5071     /// The parsed descriptor looks like:
5072     ///     message MapFieldEntry {
5073     ///         option map_entry = true;
5074     ///         optional KeyType key = 1;
5075     ///         optional ValueType value = 2;
5076     ///     }
5077     ///     repeated MapFieldEntry map_field = 1;
5078     ///
5079     /// Implementations may choose not to generate the map_entry=true message, but
5080     /// use a native map in the target language to hold the keys and values.
5081     /// The reflection APIs in such implementations still need to work as
5082     /// if the field is a repeated message field.
5083     ///
5084     /// NOTE: Do not set the option in .proto files. Always use the maps syntax
5085     /// instead. The option should only be implicitly set by the proto compiler
5086     /// parser.
5087     /// </summary>
5088     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5089     public bool MapEntry {
5090       get { if ((_hasBits0 & 8) != 0) { return mapEntry_; } else { return MapEntryDefaultValue; } }
5091       set {
5092         _hasBits0 |= 8;
5093         mapEntry_ = value;
5094       }
5095     }
5096     /// <summary>Gets whether the "map_entry" field is set</summary>
5097     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5098     public bool HasMapEntry {
5099       get { return (_hasBits0 & 8) != 0; }
5100     }
5101     /// <summary>Clears the value of the "map_entry" field</summary>
5102     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearMapEntry()5103     public void ClearMapEntry() {
5104       _hasBits0 &= ~8;
5105     }
5106 
5107     /// <summary>Field number for the "uninterpreted_option" field.</summary>
5108     public const int UninterpretedOptionFieldNumber = 999;
5109     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
5110         = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
5111     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
5112     /// <summary>
5113     /// The parser stores options it doesn't recognize here. See above.
5114     /// </summary>
5115     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5116     public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
5117       get { return uninterpretedOption_; }
5118     }
5119 
5120     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)5121     public override bool Equals(object other) {
5122       return Equals(other as MessageOptions);
5123     }
5124 
5125     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(MessageOptions other)5126     public bool Equals(MessageOptions other) {
5127       if (ReferenceEquals(other, null)) {
5128         return false;
5129       }
5130       if (ReferenceEquals(other, this)) {
5131         return true;
5132       }
5133       if (MessageSetWireFormat != other.MessageSetWireFormat) return false;
5134       if (NoStandardDescriptorAccessor != other.NoStandardDescriptorAccessor) return false;
5135       if (Deprecated != other.Deprecated) return false;
5136       if (MapEntry != other.MapEntry) return false;
5137       if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
5138       if (!Equals(_extensions, other._extensions)) {
5139         return false;
5140       }
5141       return Equals(_unknownFields, other._unknownFields);
5142     }
5143 
5144     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()5145     public override int GetHashCode() {
5146       int hash = 1;
5147       if (HasMessageSetWireFormat) hash ^= MessageSetWireFormat.GetHashCode();
5148       if (HasNoStandardDescriptorAccessor) hash ^= NoStandardDescriptorAccessor.GetHashCode();
5149       if (HasDeprecated) hash ^= Deprecated.GetHashCode();
5150       if (HasMapEntry) hash ^= MapEntry.GetHashCode();
5151       hash ^= uninterpretedOption_.GetHashCode();
5152       if (_extensions != null) {
5153         hash ^= _extensions.GetHashCode();
5154       }
5155       if (_unknownFields != null) {
5156         hash ^= _unknownFields.GetHashCode();
5157       }
5158       return hash;
5159     }
5160 
5161     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()5162     public override string ToString() {
5163       return pb::JsonFormatter.ToDiagnosticString(this);
5164     }
5165 
5166     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)5167     public void WriteTo(pb::CodedOutputStream output) {
5168       if (HasMessageSetWireFormat) {
5169         output.WriteRawTag(8);
5170         output.WriteBool(MessageSetWireFormat);
5171       }
5172       if (HasNoStandardDescriptorAccessor) {
5173         output.WriteRawTag(16);
5174         output.WriteBool(NoStandardDescriptorAccessor);
5175       }
5176       if (HasDeprecated) {
5177         output.WriteRawTag(24);
5178         output.WriteBool(Deprecated);
5179       }
5180       if (HasMapEntry) {
5181         output.WriteRawTag(56);
5182         output.WriteBool(MapEntry);
5183       }
5184       uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
5185       if (_extensions != null) {
5186         _extensions.WriteTo(output);
5187       }
5188       if (_unknownFields != null) {
5189         _unknownFields.WriteTo(output);
5190       }
5191     }
5192 
5193     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()5194     public int CalculateSize() {
5195       int size = 0;
5196       if (HasMessageSetWireFormat) {
5197         size += 1 + 1;
5198       }
5199       if (HasNoStandardDescriptorAccessor) {
5200         size += 1 + 1;
5201       }
5202       if (HasDeprecated) {
5203         size += 1 + 1;
5204       }
5205       if (HasMapEntry) {
5206         size += 1 + 1;
5207       }
5208       size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
5209       if (_extensions != null) {
5210         size += _extensions.CalculateSize();
5211       }
5212       if (_unknownFields != null) {
5213         size += _unknownFields.CalculateSize();
5214       }
5215       return size;
5216     }
5217 
5218     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(MessageOptions other)5219     public void MergeFrom(MessageOptions other) {
5220       if (other == null) {
5221         return;
5222       }
5223       if (other.HasMessageSetWireFormat) {
5224         MessageSetWireFormat = other.MessageSetWireFormat;
5225       }
5226       if (other.HasNoStandardDescriptorAccessor) {
5227         NoStandardDescriptorAccessor = other.NoStandardDescriptorAccessor;
5228       }
5229       if (other.HasDeprecated) {
5230         Deprecated = other.Deprecated;
5231       }
5232       if (other.HasMapEntry) {
5233         MapEntry = other.MapEntry;
5234       }
5235       uninterpretedOption_.Add(other.uninterpretedOption_);
5236       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
5237       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5238     }
5239 
5240     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)5241     public void MergeFrom(pb::CodedInputStream input) {
5242       uint tag;
5243       while ((tag = input.ReadTag()) != 0) {
5244         switch(tag) {
5245           default:
5246             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
5247               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5248             }
5249             break;
5250           case 8: {
5251             MessageSetWireFormat = input.ReadBool();
5252             break;
5253           }
5254           case 16: {
5255             NoStandardDescriptorAccessor = input.ReadBool();
5256             break;
5257           }
5258           case 24: {
5259             Deprecated = input.ReadBool();
5260             break;
5261           }
5262           case 56: {
5263             MapEntry = input.ReadBool();
5264             break;
5265           }
5266           case 7994: {
5267             uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
5268             break;
5269           }
5270         }
5271       }
5272     }
5273 
GetExtension(pb::Extension<MessageOptions, TValue> extension)5274     public TValue GetExtension<TValue>(pb::Extension<MessageOptions, TValue> extension) {
5275       return pb::ExtensionSet.Get(ref _extensions, extension);
5276     }
GetExtension(pb::RepeatedExtension<MessageOptions, TValue> extension)5277     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<MessageOptions, TValue> extension) {
5278       return pb::ExtensionSet.Get(ref _extensions, extension);
5279     }
GetOrRegisterExtension(pb::RepeatedExtension<MessageOptions, TValue> extension)5280     public pbc::RepeatedField<TValue> GetOrRegisterExtension<TValue>(pb::RepeatedExtension<MessageOptions, TValue> extension) {
5281       return pb::ExtensionSet.GetOrRegister(ref _extensions, extension);
5282     }
SetExtension(pb::Extension<MessageOptions, TValue> extension, TValue value)5283     public void SetExtension<TValue>(pb::Extension<MessageOptions, TValue> extension, TValue value) {
5284       pb::ExtensionSet.Set(ref _extensions, extension, value);
5285     }
HasExtension(pb::Extension<MessageOptions, TValue> extension)5286     public bool HasExtension<TValue>(pb::Extension<MessageOptions, TValue> extension) {
5287       return pb::ExtensionSet.Has(ref _extensions, extension);
5288     }
ClearExtension(pb::Extension<MessageOptions, TValue> extension)5289     public void ClearExtension<TValue>(pb::Extension<MessageOptions, TValue> extension) {
5290       pb::ExtensionSet.Clear(ref _extensions, extension);
5291     }
ClearExtension(pb::RepeatedExtension<MessageOptions, TValue> extension)5292     public void ClearExtension<TValue>(pb::RepeatedExtension<MessageOptions, TValue> extension) {
5293       pb::ExtensionSet.Clear(ref _extensions, extension);
5294     }
5295 
5296   }
5297 
5298   internal sealed partial class FieldOptions : pb::IExtendableMessage<FieldOptions> {
5299     private static readonly pb::MessageParser<FieldOptions> _parser = new pb::MessageParser<FieldOptions>(() => new FieldOptions());
5300     private pb::UnknownFieldSet _unknownFields;
5301     internal pb::ExtensionSet<FieldOptions> _extensions;
5302     private int _hasBits0;
5303     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5304     public static pb::MessageParser<FieldOptions> Parser { get { return _parser; } }
5305 
5306     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5307     public static pbr::MessageDescriptor Descriptor {
5308       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[12]; }
5309     }
5310 
5311     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5312     pbr::MessageDescriptor pb::IMessage.Descriptor {
5313       get { return Descriptor; }
5314     }
5315 
5316     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
FieldOptions()5317     public FieldOptions() {
5318       OnConstruction();
5319     }
5320 
OnConstruction()5321     partial void OnConstruction();
5322 
5323     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
FieldOptions(FieldOptions other)5324     public FieldOptions(FieldOptions other) : this() {
5325       _hasBits0 = other._hasBits0;
5326       ctype_ = other.ctype_;
5327       packed_ = other.packed_;
5328       jstype_ = other.jstype_;
5329       lazy_ = other.lazy_;
5330       deprecated_ = other.deprecated_;
5331       weak_ = other.weak_;
5332       uninterpretedOption_ = other.uninterpretedOption_.Clone();
5333       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5334       _extensions = pb::ExtensionSet.Clone(other._extensions);
5335     }
5336 
5337     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()5338     public FieldOptions Clone() {
5339       return new FieldOptions(this);
5340     }
5341 
5342     /// <summary>Field number for the "ctype" field.</summary>
5343     public const int CtypeFieldNumber = 1;
5344     private readonly static global::Google.Protobuf.Reflection.FieldOptions.Types.CType CtypeDefaultValue = global::Google.Protobuf.Reflection.FieldOptions.Types.CType.String;
5345 
5346     private global::Google.Protobuf.Reflection.FieldOptions.Types.CType ctype_;
5347     /// <summary>
5348     /// The ctype option instructs the C++ code generator to use a different
5349     /// representation of the field than it normally would.  See the specific
5350     /// options below.  This option is not yet implemented in the open source
5351     /// release -- sorry, we'll try to include it in a future version!
5352     /// </summary>
5353     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5354     public global::Google.Protobuf.Reflection.FieldOptions.Types.CType Ctype {
5355       get { if ((_hasBits0 & 1) != 0) { return ctype_; } else { return CtypeDefaultValue; } }
5356       set {
5357         _hasBits0 |= 1;
5358         ctype_ = value;
5359       }
5360     }
5361     /// <summary>Gets whether the "ctype" field is set</summary>
5362     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5363     public bool HasCtype {
5364       get { return (_hasBits0 & 1) != 0; }
5365     }
5366     /// <summary>Clears the value of the "ctype" field</summary>
5367     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearCtype()5368     public void ClearCtype() {
5369       _hasBits0 &= ~1;
5370     }
5371 
5372     /// <summary>Field number for the "packed" field.</summary>
5373     public const int PackedFieldNumber = 2;
5374     private readonly static bool PackedDefaultValue = false;
5375 
5376     private bool packed_;
5377     /// <summary>
5378     /// The packed option can be enabled for repeated primitive fields to enable
5379     /// a more efficient representation on the wire. Rather than repeatedly
5380     /// writing the tag and type for each element, the entire array is encoded as
5381     /// a single length-delimited blob. In proto3, only explicit setting it to
5382     /// false will avoid using packed encoding.
5383     /// </summary>
5384     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5385     public bool Packed {
5386       get { if ((_hasBits0 & 2) != 0) { return packed_; } else { return PackedDefaultValue; } }
5387       set {
5388         _hasBits0 |= 2;
5389         packed_ = value;
5390       }
5391     }
5392     /// <summary>Gets whether the "packed" field is set</summary>
5393     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5394     public bool HasPacked {
5395       get { return (_hasBits0 & 2) != 0; }
5396     }
5397     /// <summary>Clears the value of the "packed" field</summary>
5398     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearPacked()5399     public void ClearPacked() {
5400       _hasBits0 &= ~2;
5401     }
5402 
5403     /// <summary>Field number for the "jstype" field.</summary>
5404     public const int JstypeFieldNumber = 6;
5405     private readonly static global::Google.Protobuf.Reflection.FieldOptions.Types.JSType JstypeDefaultValue = global::Google.Protobuf.Reflection.FieldOptions.Types.JSType.JsNormal;
5406 
5407     private global::Google.Protobuf.Reflection.FieldOptions.Types.JSType jstype_;
5408     /// <summary>
5409     /// The jstype option determines the JavaScript type used for values of the
5410     /// field.  The option is permitted only for 64 bit integral and fixed types
5411     /// (int64, uint64, sint64, fixed64, sfixed64).  A field with jstype JS_STRING
5412     /// is represented as JavaScript string, which avoids loss of precision that
5413     /// can happen when a large value is converted to a floating point JavaScript.
5414     /// Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
5415     /// use the JavaScript "number" type.  The behavior of the default option
5416     /// JS_NORMAL is implementation dependent.
5417     ///
5418     /// This option is an enum to permit additional types to be added, e.g.
5419     /// goog.math.Integer.
5420     /// </summary>
5421     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5422     public global::Google.Protobuf.Reflection.FieldOptions.Types.JSType Jstype {
5423       get { if ((_hasBits0 & 16) != 0) { return jstype_; } else { return JstypeDefaultValue; } }
5424       set {
5425         _hasBits0 |= 16;
5426         jstype_ = value;
5427       }
5428     }
5429     /// <summary>Gets whether the "jstype" field is set</summary>
5430     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5431     public bool HasJstype {
5432       get { return (_hasBits0 & 16) != 0; }
5433     }
5434     /// <summary>Clears the value of the "jstype" field</summary>
5435     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearJstype()5436     public void ClearJstype() {
5437       _hasBits0 &= ~16;
5438     }
5439 
5440     /// <summary>Field number for the "lazy" field.</summary>
5441     public const int LazyFieldNumber = 5;
5442     private readonly static bool LazyDefaultValue = false;
5443 
5444     private bool lazy_;
5445     /// <summary>
5446     /// Should this field be parsed lazily?  Lazy applies only to message-type
5447     /// fields.  It means that when the outer message is initially parsed, the
5448     /// inner message's contents will not be parsed but instead stored in encoded
5449     /// form.  The inner message will actually be parsed when it is first accessed.
5450     ///
5451     /// This is only a hint.  Implementations are free to choose whether to use
5452     /// eager or lazy parsing regardless of the value of this option.  However,
5453     /// setting this option true suggests that the protocol author believes that
5454     /// using lazy parsing on this field is worth the additional bookkeeping
5455     /// overhead typically needed to implement it.
5456     ///
5457     /// This option does not affect the public interface of any generated code;
5458     /// all method signatures remain the same.  Furthermore, thread-safety of the
5459     /// interface is not affected by this option; const methods remain safe to
5460     /// call from multiple threads concurrently, while non-const methods continue
5461     /// to require exclusive access.
5462     ///
5463     /// Note that implementations may choose not to check required fields within
5464     /// a lazy sub-message.  That is, calling IsInitialized() on the outer message
5465     /// may return true even if the inner message has missing required fields.
5466     /// This is necessary because otherwise the inner message would have to be
5467     /// parsed in order to perform the check, defeating the purpose of lazy
5468     /// parsing.  An implementation which chooses not to check required fields
5469     /// must be consistent about it.  That is, for any particular sub-message, the
5470     /// implementation must either *always* check its required fields, or *never*
5471     /// check its required fields, regardless of whether or not the message has
5472     /// been parsed.
5473     /// </summary>
5474     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5475     public bool Lazy {
5476       get { if ((_hasBits0 & 8) != 0) { return lazy_; } else { return LazyDefaultValue; } }
5477       set {
5478         _hasBits0 |= 8;
5479         lazy_ = value;
5480       }
5481     }
5482     /// <summary>Gets whether the "lazy" field is set</summary>
5483     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5484     public bool HasLazy {
5485       get { return (_hasBits0 & 8) != 0; }
5486     }
5487     /// <summary>Clears the value of the "lazy" field</summary>
5488     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearLazy()5489     public void ClearLazy() {
5490       _hasBits0 &= ~8;
5491     }
5492 
5493     /// <summary>Field number for the "deprecated" field.</summary>
5494     public const int DeprecatedFieldNumber = 3;
5495     private readonly static bool DeprecatedDefaultValue = false;
5496 
5497     private bool deprecated_;
5498     /// <summary>
5499     /// Is this field deprecated?
5500     /// Depending on the target platform, this can emit Deprecated annotations
5501     /// for accessors, or it will be completely ignored; in the very least, this
5502     /// is a formalization for deprecating fields.
5503     /// </summary>
5504     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5505     public bool Deprecated {
5506       get { if ((_hasBits0 & 4) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } }
5507       set {
5508         _hasBits0 |= 4;
5509         deprecated_ = value;
5510       }
5511     }
5512     /// <summary>Gets whether the "deprecated" field is set</summary>
5513     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5514     public bool HasDeprecated {
5515       get { return (_hasBits0 & 4) != 0; }
5516     }
5517     /// <summary>Clears the value of the "deprecated" field</summary>
5518     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearDeprecated()5519     public void ClearDeprecated() {
5520       _hasBits0 &= ~4;
5521     }
5522 
5523     /// <summary>Field number for the "weak" field.</summary>
5524     public const int WeakFieldNumber = 10;
5525     private readonly static bool WeakDefaultValue = false;
5526 
5527     private bool weak_;
5528     /// <summary>
5529     /// For Google-internal migration only. Do not use.
5530     /// </summary>
5531     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5532     public bool Weak {
5533       get { if ((_hasBits0 & 32) != 0) { return weak_; } else { return WeakDefaultValue; } }
5534       set {
5535         _hasBits0 |= 32;
5536         weak_ = value;
5537       }
5538     }
5539     /// <summary>Gets whether the "weak" field is set</summary>
5540     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5541     public bool HasWeak {
5542       get { return (_hasBits0 & 32) != 0; }
5543     }
5544     /// <summary>Clears the value of the "weak" field</summary>
5545     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearWeak()5546     public void ClearWeak() {
5547       _hasBits0 &= ~32;
5548     }
5549 
5550     /// <summary>Field number for the "uninterpreted_option" field.</summary>
5551     public const int UninterpretedOptionFieldNumber = 999;
5552     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
5553         = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
5554     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
5555     /// <summary>
5556     /// The parser stores options it doesn't recognize here. See above.
5557     /// </summary>
5558     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5559     public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
5560       get { return uninterpretedOption_; }
5561     }
5562 
5563     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)5564     public override bool Equals(object other) {
5565       return Equals(other as FieldOptions);
5566     }
5567 
5568     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(FieldOptions other)5569     public bool Equals(FieldOptions other) {
5570       if (ReferenceEquals(other, null)) {
5571         return false;
5572       }
5573       if (ReferenceEquals(other, this)) {
5574         return true;
5575       }
5576       if (Ctype != other.Ctype) return false;
5577       if (Packed != other.Packed) return false;
5578       if (Jstype != other.Jstype) return false;
5579       if (Lazy != other.Lazy) return false;
5580       if (Deprecated != other.Deprecated) return false;
5581       if (Weak != other.Weak) return false;
5582       if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
5583       if (!Equals(_extensions, other._extensions)) {
5584         return false;
5585       }
5586       return Equals(_unknownFields, other._unknownFields);
5587     }
5588 
5589     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()5590     public override int GetHashCode() {
5591       int hash = 1;
5592       if (HasCtype) hash ^= Ctype.GetHashCode();
5593       if (HasPacked) hash ^= Packed.GetHashCode();
5594       if (HasJstype) hash ^= Jstype.GetHashCode();
5595       if (HasLazy) hash ^= Lazy.GetHashCode();
5596       if (HasDeprecated) hash ^= Deprecated.GetHashCode();
5597       if (HasWeak) hash ^= Weak.GetHashCode();
5598       hash ^= uninterpretedOption_.GetHashCode();
5599       if (_extensions != null) {
5600         hash ^= _extensions.GetHashCode();
5601       }
5602       if (_unknownFields != null) {
5603         hash ^= _unknownFields.GetHashCode();
5604       }
5605       return hash;
5606     }
5607 
5608     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()5609     public override string ToString() {
5610       return pb::JsonFormatter.ToDiagnosticString(this);
5611     }
5612 
5613     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)5614     public void WriteTo(pb::CodedOutputStream output) {
5615       if (HasCtype) {
5616         output.WriteRawTag(8);
5617         output.WriteEnum((int) Ctype);
5618       }
5619       if (HasPacked) {
5620         output.WriteRawTag(16);
5621         output.WriteBool(Packed);
5622       }
5623       if (HasDeprecated) {
5624         output.WriteRawTag(24);
5625         output.WriteBool(Deprecated);
5626       }
5627       if (HasLazy) {
5628         output.WriteRawTag(40);
5629         output.WriteBool(Lazy);
5630       }
5631       if (HasJstype) {
5632         output.WriteRawTag(48);
5633         output.WriteEnum((int) Jstype);
5634       }
5635       if (HasWeak) {
5636         output.WriteRawTag(80);
5637         output.WriteBool(Weak);
5638       }
5639       uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
5640       if (_extensions != null) {
5641         _extensions.WriteTo(output);
5642       }
5643       if (_unknownFields != null) {
5644         _unknownFields.WriteTo(output);
5645       }
5646     }
5647 
5648     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()5649     public int CalculateSize() {
5650       int size = 0;
5651       if (HasCtype) {
5652         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Ctype);
5653       }
5654       if (HasPacked) {
5655         size += 1 + 1;
5656       }
5657       if (HasJstype) {
5658         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Jstype);
5659       }
5660       if (HasLazy) {
5661         size += 1 + 1;
5662       }
5663       if (HasDeprecated) {
5664         size += 1 + 1;
5665       }
5666       if (HasWeak) {
5667         size += 1 + 1;
5668       }
5669       size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
5670       if (_extensions != null) {
5671         size += _extensions.CalculateSize();
5672       }
5673       if (_unknownFields != null) {
5674         size += _unknownFields.CalculateSize();
5675       }
5676       return size;
5677     }
5678 
5679     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(FieldOptions other)5680     public void MergeFrom(FieldOptions other) {
5681       if (other == null) {
5682         return;
5683       }
5684       if (other.HasCtype) {
5685         Ctype = other.Ctype;
5686       }
5687       if (other.HasPacked) {
5688         Packed = other.Packed;
5689       }
5690       if (other.HasJstype) {
5691         Jstype = other.Jstype;
5692       }
5693       if (other.HasLazy) {
5694         Lazy = other.Lazy;
5695       }
5696       if (other.HasDeprecated) {
5697         Deprecated = other.Deprecated;
5698       }
5699       if (other.HasWeak) {
5700         Weak = other.Weak;
5701       }
5702       uninterpretedOption_.Add(other.uninterpretedOption_);
5703       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
5704       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5705     }
5706 
5707     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)5708     public void MergeFrom(pb::CodedInputStream input) {
5709       uint tag;
5710       while ((tag = input.ReadTag()) != 0) {
5711         switch(tag) {
5712           default:
5713             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
5714               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5715             }
5716             break;
5717           case 8: {
5718             Ctype = (global::Google.Protobuf.Reflection.FieldOptions.Types.CType) input.ReadEnum();
5719             break;
5720           }
5721           case 16: {
5722             Packed = input.ReadBool();
5723             break;
5724           }
5725           case 24: {
5726             Deprecated = input.ReadBool();
5727             break;
5728           }
5729           case 40: {
5730             Lazy = input.ReadBool();
5731             break;
5732           }
5733           case 48: {
5734             Jstype = (global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) input.ReadEnum();
5735             break;
5736           }
5737           case 80: {
5738             Weak = input.ReadBool();
5739             break;
5740           }
5741           case 7994: {
5742             uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
5743             break;
5744           }
5745         }
5746       }
5747     }
5748 
GetExtension(pb::Extension<FieldOptions, TValue> extension)5749     public TValue GetExtension<TValue>(pb::Extension<FieldOptions, TValue> extension) {
5750       return pb::ExtensionSet.Get(ref _extensions, extension);
5751     }
GetExtension(pb::RepeatedExtension<FieldOptions, TValue> extension)5752     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<FieldOptions, TValue> extension) {
5753       return pb::ExtensionSet.Get(ref _extensions, extension);
5754     }
GetOrRegisterExtension(pb::RepeatedExtension<FieldOptions, TValue> extension)5755     public pbc::RepeatedField<TValue> GetOrRegisterExtension<TValue>(pb::RepeatedExtension<FieldOptions, TValue> extension) {
5756       return pb::ExtensionSet.GetOrRegister(ref _extensions, extension);
5757     }
SetExtension(pb::Extension<FieldOptions, TValue> extension, TValue value)5758     public void SetExtension<TValue>(pb::Extension<FieldOptions, TValue> extension, TValue value) {
5759       pb::ExtensionSet.Set(ref _extensions, extension, value);
5760     }
HasExtension(pb::Extension<FieldOptions, TValue> extension)5761     public bool HasExtension<TValue>(pb::Extension<FieldOptions, TValue> extension) {
5762       return pb::ExtensionSet.Has(ref _extensions, extension);
5763     }
ClearExtension(pb::Extension<FieldOptions, TValue> extension)5764     public void ClearExtension<TValue>(pb::Extension<FieldOptions, TValue> extension) {
5765       pb::ExtensionSet.Clear(ref _extensions, extension);
5766     }
ClearExtension(pb::RepeatedExtension<FieldOptions, TValue> extension)5767     public void ClearExtension<TValue>(pb::RepeatedExtension<FieldOptions, TValue> extension) {
5768       pb::ExtensionSet.Clear(ref _extensions, extension);
5769     }
5770 
5771     #region Nested types
5772     /// <summary>Container for nested types declared in the FieldOptions message type.</summary>
5773     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5774     public static partial class Types {
5775       internal enum CType {
5776         /// <summary>
5777         /// Default mode.
5778         /// </summary>
5779         [pbr::OriginalName("STRING")] String = 0,
5780         [pbr::OriginalName("CORD")] Cord = 1,
5781         [pbr::OriginalName("STRING_PIECE")] StringPiece = 2,
5782       }
5783 
5784       internal enum JSType {
5785         /// <summary>
5786         /// Use the default type.
5787         /// </summary>
5788         [pbr::OriginalName("JS_NORMAL")] JsNormal = 0,
5789         /// <summary>
5790         /// Use JavaScript strings.
5791         /// </summary>
5792         [pbr::OriginalName("JS_STRING")] JsString = 1,
5793         /// <summary>
5794         /// Use JavaScript numbers.
5795         /// </summary>
5796         [pbr::OriginalName("JS_NUMBER")] JsNumber = 2,
5797       }
5798 
5799     }
5800     #endregion
5801 
5802   }
5803 
5804   internal sealed partial class OneofOptions : pb::IExtendableMessage<OneofOptions> {
5805     private static readonly pb::MessageParser<OneofOptions> _parser = new pb::MessageParser<OneofOptions>(() => new OneofOptions());
5806     private pb::UnknownFieldSet _unknownFields;
5807     internal pb::ExtensionSet<OneofOptions> _extensions;
5808     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5809     public static pb::MessageParser<OneofOptions> Parser { get { return _parser; } }
5810 
5811     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5812     public static pbr::MessageDescriptor Descriptor {
5813       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[13]; }
5814     }
5815 
5816     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5817     pbr::MessageDescriptor pb::IMessage.Descriptor {
5818       get { return Descriptor; }
5819     }
5820 
5821     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
OneofOptions()5822     public OneofOptions() {
5823       OnConstruction();
5824     }
5825 
OnConstruction()5826     partial void OnConstruction();
5827 
5828     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
OneofOptions(OneofOptions other)5829     public OneofOptions(OneofOptions other) : this() {
5830       uninterpretedOption_ = other.uninterpretedOption_.Clone();
5831       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5832       _extensions = pb::ExtensionSet.Clone(other._extensions);
5833     }
5834 
5835     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()5836     public OneofOptions Clone() {
5837       return new OneofOptions(this);
5838     }
5839 
5840     /// <summary>Field number for the "uninterpreted_option" field.</summary>
5841     public const int UninterpretedOptionFieldNumber = 999;
5842     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
5843         = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
5844     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
5845     /// <summary>
5846     /// The parser stores options it doesn't recognize here. See above.
5847     /// </summary>
5848     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5849     public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
5850       get { return uninterpretedOption_; }
5851     }
5852 
5853     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)5854     public override bool Equals(object other) {
5855       return Equals(other as OneofOptions);
5856     }
5857 
5858     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(OneofOptions other)5859     public bool Equals(OneofOptions other) {
5860       if (ReferenceEquals(other, null)) {
5861         return false;
5862       }
5863       if (ReferenceEquals(other, this)) {
5864         return true;
5865       }
5866       if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
5867       if (!Equals(_extensions, other._extensions)) {
5868         return false;
5869       }
5870       return Equals(_unknownFields, other._unknownFields);
5871     }
5872 
5873     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()5874     public override int GetHashCode() {
5875       int hash = 1;
5876       hash ^= uninterpretedOption_.GetHashCode();
5877       if (_extensions != null) {
5878         hash ^= _extensions.GetHashCode();
5879       }
5880       if (_unknownFields != null) {
5881         hash ^= _unknownFields.GetHashCode();
5882       }
5883       return hash;
5884     }
5885 
5886     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()5887     public override string ToString() {
5888       return pb::JsonFormatter.ToDiagnosticString(this);
5889     }
5890 
5891     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)5892     public void WriteTo(pb::CodedOutputStream output) {
5893       uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
5894       if (_extensions != null) {
5895         _extensions.WriteTo(output);
5896       }
5897       if (_unknownFields != null) {
5898         _unknownFields.WriteTo(output);
5899       }
5900     }
5901 
5902     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()5903     public int CalculateSize() {
5904       int size = 0;
5905       size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
5906       if (_extensions != null) {
5907         size += _extensions.CalculateSize();
5908       }
5909       if (_unknownFields != null) {
5910         size += _unknownFields.CalculateSize();
5911       }
5912       return size;
5913     }
5914 
5915     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(OneofOptions other)5916     public void MergeFrom(OneofOptions other) {
5917       if (other == null) {
5918         return;
5919       }
5920       uninterpretedOption_.Add(other.uninterpretedOption_);
5921       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
5922       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5923     }
5924 
5925     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)5926     public void MergeFrom(pb::CodedInputStream input) {
5927       uint tag;
5928       while ((tag = input.ReadTag()) != 0) {
5929         switch(tag) {
5930           default:
5931             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
5932               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5933             }
5934             break;
5935           case 7994: {
5936             uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
5937             break;
5938           }
5939         }
5940       }
5941     }
5942 
GetExtension(pb::Extension<OneofOptions, TValue> extension)5943     public TValue GetExtension<TValue>(pb::Extension<OneofOptions, TValue> extension) {
5944       return pb::ExtensionSet.Get(ref _extensions, extension);
5945     }
GetExtension(pb::RepeatedExtension<OneofOptions, TValue> extension)5946     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<OneofOptions, TValue> extension) {
5947       return pb::ExtensionSet.Get(ref _extensions, extension);
5948     }
GetOrRegisterExtension(pb::RepeatedExtension<OneofOptions, TValue> extension)5949     public pbc::RepeatedField<TValue> GetOrRegisterExtension<TValue>(pb::RepeatedExtension<OneofOptions, TValue> extension) {
5950       return pb::ExtensionSet.GetOrRegister(ref _extensions, extension);
5951     }
SetExtension(pb::Extension<OneofOptions, TValue> extension, TValue value)5952     public void SetExtension<TValue>(pb::Extension<OneofOptions, TValue> extension, TValue value) {
5953       pb::ExtensionSet.Set(ref _extensions, extension, value);
5954     }
HasExtension(pb::Extension<OneofOptions, TValue> extension)5955     public bool HasExtension<TValue>(pb::Extension<OneofOptions, TValue> extension) {
5956       return pb::ExtensionSet.Has(ref _extensions, extension);
5957     }
ClearExtension(pb::Extension<OneofOptions, TValue> extension)5958     public void ClearExtension<TValue>(pb::Extension<OneofOptions, TValue> extension) {
5959       pb::ExtensionSet.Clear(ref _extensions, extension);
5960     }
ClearExtension(pb::RepeatedExtension<OneofOptions, TValue> extension)5961     public void ClearExtension<TValue>(pb::RepeatedExtension<OneofOptions, TValue> extension) {
5962       pb::ExtensionSet.Clear(ref _extensions, extension);
5963     }
5964 
5965   }
5966 
5967   internal sealed partial class EnumOptions : pb::IExtendableMessage<EnumOptions> {
5968     private static readonly pb::MessageParser<EnumOptions> _parser = new pb::MessageParser<EnumOptions>(() => new EnumOptions());
5969     private pb::UnknownFieldSet _unknownFields;
5970     internal pb::ExtensionSet<EnumOptions> _extensions;
5971     private int _hasBits0;
5972     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5973     public static pb::MessageParser<EnumOptions> Parser { get { return _parser; } }
5974 
5975     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5976     public static pbr::MessageDescriptor Descriptor {
5977       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[14]; }
5978     }
5979 
5980     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5981     pbr::MessageDescriptor pb::IMessage.Descriptor {
5982       get { return Descriptor; }
5983     }
5984 
5985     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
EnumOptions()5986     public EnumOptions() {
5987       OnConstruction();
5988     }
5989 
OnConstruction()5990     partial void OnConstruction();
5991 
5992     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
EnumOptions(EnumOptions other)5993     public EnumOptions(EnumOptions other) : this() {
5994       _hasBits0 = other._hasBits0;
5995       allowAlias_ = other.allowAlias_;
5996       deprecated_ = other.deprecated_;
5997       uninterpretedOption_ = other.uninterpretedOption_.Clone();
5998       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5999       _extensions = pb::ExtensionSet.Clone(other._extensions);
6000     }
6001 
6002     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()6003     public EnumOptions Clone() {
6004       return new EnumOptions(this);
6005     }
6006 
6007     /// <summary>Field number for the "allow_alias" field.</summary>
6008     public const int AllowAliasFieldNumber = 2;
6009     private readonly static bool AllowAliasDefaultValue = false;
6010 
6011     private bool allowAlias_;
6012     /// <summary>
6013     /// Set this option to true to allow mapping different tag names to the same
6014     /// value.
6015     /// </summary>
6016     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6017     public bool AllowAlias {
6018       get { if ((_hasBits0 & 1) != 0) { return allowAlias_; } else { return AllowAliasDefaultValue; } }
6019       set {
6020         _hasBits0 |= 1;
6021         allowAlias_ = value;
6022       }
6023     }
6024     /// <summary>Gets whether the "allow_alias" field is set</summary>
6025     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6026     public bool HasAllowAlias {
6027       get { return (_hasBits0 & 1) != 0; }
6028     }
6029     /// <summary>Clears the value of the "allow_alias" field</summary>
6030     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearAllowAlias()6031     public void ClearAllowAlias() {
6032       _hasBits0 &= ~1;
6033     }
6034 
6035     /// <summary>Field number for the "deprecated" field.</summary>
6036     public const int DeprecatedFieldNumber = 3;
6037     private readonly static bool DeprecatedDefaultValue = false;
6038 
6039     private bool deprecated_;
6040     /// <summary>
6041     /// Is this enum deprecated?
6042     /// Depending on the target platform, this can emit Deprecated annotations
6043     /// for the enum, or it will be completely ignored; in the very least, this
6044     /// is a formalization for deprecating enums.
6045     /// </summary>
6046     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6047     public bool Deprecated {
6048       get { if ((_hasBits0 & 2) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } }
6049       set {
6050         _hasBits0 |= 2;
6051         deprecated_ = value;
6052       }
6053     }
6054     /// <summary>Gets whether the "deprecated" field is set</summary>
6055     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6056     public bool HasDeprecated {
6057       get { return (_hasBits0 & 2) != 0; }
6058     }
6059     /// <summary>Clears the value of the "deprecated" field</summary>
6060     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearDeprecated()6061     public void ClearDeprecated() {
6062       _hasBits0 &= ~2;
6063     }
6064 
6065     /// <summary>Field number for the "uninterpreted_option" field.</summary>
6066     public const int UninterpretedOptionFieldNumber = 999;
6067     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
6068         = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
6069     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
6070     /// <summary>
6071     /// The parser stores options it doesn't recognize here. See above.
6072     /// </summary>
6073     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6074     public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
6075       get { return uninterpretedOption_; }
6076     }
6077 
6078     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)6079     public override bool Equals(object other) {
6080       return Equals(other as EnumOptions);
6081     }
6082 
6083     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(EnumOptions other)6084     public bool Equals(EnumOptions other) {
6085       if (ReferenceEquals(other, null)) {
6086         return false;
6087       }
6088       if (ReferenceEquals(other, this)) {
6089         return true;
6090       }
6091       if (AllowAlias != other.AllowAlias) return false;
6092       if (Deprecated != other.Deprecated) return false;
6093       if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
6094       if (!Equals(_extensions, other._extensions)) {
6095         return false;
6096       }
6097       return Equals(_unknownFields, other._unknownFields);
6098     }
6099 
6100     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()6101     public override int GetHashCode() {
6102       int hash = 1;
6103       if (HasAllowAlias) hash ^= AllowAlias.GetHashCode();
6104       if (HasDeprecated) hash ^= Deprecated.GetHashCode();
6105       hash ^= uninterpretedOption_.GetHashCode();
6106       if (_extensions != null) {
6107         hash ^= _extensions.GetHashCode();
6108       }
6109       if (_unknownFields != null) {
6110         hash ^= _unknownFields.GetHashCode();
6111       }
6112       return hash;
6113     }
6114 
6115     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()6116     public override string ToString() {
6117       return pb::JsonFormatter.ToDiagnosticString(this);
6118     }
6119 
6120     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)6121     public void WriteTo(pb::CodedOutputStream output) {
6122       if (HasAllowAlias) {
6123         output.WriteRawTag(16);
6124         output.WriteBool(AllowAlias);
6125       }
6126       if (HasDeprecated) {
6127         output.WriteRawTag(24);
6128         output.WriteBool(Deprecated);
6129       }
6130       uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
6131       if (_extensions != null) {
6132         _extensions.WriteTo(output);
6133       }
6134       if (_unknownFields != null) {
6135         _unknownFields.WriteTo(output);
6136       }
6137     }
6138 
6139     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()6140     public int CalculateSize() {
6141       int size = 0;
6142       if (HasAllowAlias) {
6143         size += 1 + 1;
6144       }
6145       if (HasDeprecated) {
6146         size += 1 + 1;
6147       }
6148       size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
6149       if (_extensions != null) {
6150         size += _extensions.CalculateSize();
6151       }
6152       if (_unknownFields != null) {
6153         size += _unknownFields.CalculateSize();
6154       }
6155       return size;
6156     }
6157 
6158     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(EnumOptions other)6159     public void MergeFrom(EnumOptions other) {
6160       if (other == null) {
6161         return;
6162       }
6163       if (other.HasAllowAlias) {
6164         AllowAlias = other.AllowAlias;
6165       }
6166       if (other.HasDeprecated) {
6167         Deprecated = other.Deprecated;
6168       }
6169       uninterpretedOption_.Add(other.uninterpretedOption_);
6170       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
6171       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6172     }
6173 
6174     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)6175     public void MergeFrom(pb::CodedInputStream input) {
6176       uint tag;
6177       while ((tag = input.ReadTag()) != 0) {
6178         switch(tag) {
6179           default:
6180             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
6181               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6182             }
6183             break;
6184           case 16: {
6185             AllowAlias = input.ReadBool();
6186             break;
6187           }
6188           case 24: {
6189             Deprecated = input.ReadBool();
6190             break;
6191           }
6192           case 7994: {
6193             uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
6194             break;
6195           }
6196         }
6197       }
6198     }
6199 
GetExtension(pb::Extension<EnumOptions, TValue> extension)6200     public TValue GetExtension<TValue>(pb::Extension<EnumOptions, TValue> extension) {
6201       return pb::ExtensionSet.Get(ref _extensions, extension);
6202     }
GetExtension(pb::RepeatedExtension<EnumOptions, TValue> extension)6203     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<EnumOptions, TValue> extension) {
6204       return pb::ExtensionSet.Get(ref _extensions, extension);
6205     }
GetOrRegisterExtension(pb::RepeatedExtension<EnumOptions, TValue> extension)6206     public pbc::RepeatedField<TValue> GetOrRegisterExtension<TValue>(pb::RepeatedExtension<EnumOptions, TValue> extension) {
6207       return pb::ExtensionSet.GetOrRegister(ref _extensions, extension);
6208     }
SetExtension(pb::Extension<EnumOptions, TValue> extension, TValue value)6209     public void SetExtension<TValue>(pb::Extension<EnumOptions, TValue> extension, TValue value) {
6210       pb::ExtensionSet.Set(ref _extensions, extension, value);
6211     }
HasExtension(pb::Extension<EnumOptions, TValue> extension)6212     public bool HasExtension<TValue>(pb::Extension<EnumOptions, TValue> extension) {
6213       return pb::ExtensionSet.Has(ref _extensions, extension);
6214     }
ClearExtension(pb::Extension<EnumOptions, TValue> extension)6215     public void ClearExtension<TValue>(pb::Extension<EnumOptions, TValue> extension) {
6216       pb::ExtensionSet.Clear(ref _extensions, extension);
6217     }
ClearExtension(pb::RepeatedExtension<EnumOptions, TValue> extension)6218     public void ClearExtension<TValue>(pb::RepeatedExtension<EnumOptions, TValue> extension) {
6219       pb::ExtensionSet.Clear(ref _extensions, extension);
6220     }
6221 
6222   }
6223 
6224   internal sealed partial class EnumValueOptions : pb::IExtendableMessage<EnumValueOptions> {
6225     private static readonly pb::MessageParser<EnumValueOptions> _parser = new pb::MessageParser<EnumValueOptions>(() => new EnumValueOptions());
6226     private pb::UnknownFieldSet _unknownFields;
6227     internal pb::ExtensionSet<EnumValueOptions> _extensions;
6228     private int _hasBits0;
6229     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6230     public static pb::MessageParser<EnumValueOptions> Parser { get { return _parser; } }
6231 
6232     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6233     public static pbr::MessageDescriptor Descriptor {
6234       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[15]; }
6235     }
6236 
6237     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6238     pbr::MessageDescriptor pb::IMessage.Descriptor {
6239       get { return Descriptor; }
6240     }
6241 
6242     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
EnumValueOptions()6243     public EnumValueOptions() {
6244       OnConstruction();
6245     }
6246 
OnConstruction()6247     partial void OnConstruction();
6248 
6249     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
EnumValueOptions(EnumValueOptions other)6250     public EnumValueOptions(EnumValueOptions other) : this() {
6251       _hasBits0 = other._hasBits0;
6252       deprecated_ = other.deprecated_;
6253       uninterpretedOption_ = other.uninterpretedOption_.Clone();
6254       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6255       _extensions = pb::ExtensionSet.Clone(other._extensions);
6256     }
6257 
6258     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()6259     public EnumValueOptions Clone() {
6260       return new EnumValueOptions(this);
6261     }
6262 
6263     /// <summary>Field number for the "deprecated" field.</summary>
6264     public const int DeprecatedFieldNumber = 1;
6265     private readonly static bool DeprecatedDefaultValue = false;
6266 
6267     private bool deprecated_;
6268     /// <summary>
6269     /// Is this enum value deprecated?
6270     /// Depending on the target platform, this can emit Deprecated annotations
6271     /// for the enum value, or it will be completely ignored; in the very least,
6272     /// this is a formalization for deprecating enum values.
6273     /// </summary>
6274     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6275     public bool Deprecated {
6276       get { if ((_hasBits0 & 1) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } }
6277       set {
6278         _hasBits0 |= 1;
6279         deprecated_ = value;
6280       }
6281     }
6282     /// <summary>Gets whether the "deprecated" field is set</summary>
6283     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6284     public bool HasDeprecated {
6285       get { return (_hasBits0 & 1) != 0; }
6286     }
6287     /// <summary>Clears the value of the "deprecated" field</summary>
6288     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearDeprecated()6289     public void ClearDeprecated() {
6290       _hasBits0 &= ~1;
6291     }
6292 
6293     /// <summary>Field number for the "uninterpreted_option" field.</summary>
6294     public const int UninterpretedOptionFieldNumber = 999;
6295     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
6296         = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
6297     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
6298     /// <summary>
6299     /// The parser stores options it doesn't recognize here. See above.
6300     /// </summary>
6301     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6302     public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
6303       get { return uninterpretedOption_; }
6304     }
6305 
6306     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)6307     public override bool Equals(object other) {
6308       return Equals(other as EnumValueOptions);
6309     }
6310 
6311     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(EnumValueOptions other)6312     public bool Equals(EnumValueOptions other) {
6313       if (ReferenceEquals(other, null)) {
6314         return false;
6315       }
6316       if (ReferenceEquals(other, this)) {
6317         return true;
6318       }
6319       if (Deprecated != other.Deprecated) return false;
6320       if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
6321       if (!Equals(_extensions, other._extensions)) {
6322         return false;
6323       }
6324       return Equals(_unknownFields, other._unknownFields);
6325     }
6326 
6327     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()6328     public override int GetHashCode() {
6329       int hash = 1;
6330       if (HasDeprecated) hash ^= Deprecated.GetHashCode();
6331       hash ^= uninterpretedOption_.GetHashCode();
6332       if (_extensions != null) {
6333         hash ^= _extensions.GetHashCode();
6334       }
6335       if (_unknownFields != null) {
6336         hash ^= _unknownFields.GetHashCode();
6337       }
6338       return hash;
6339     }
6340 
6341     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()6342     public override string ToString() {
6343       return pb::JsonFormatter.ToDiagnosticString(this);
6344     }
6345 
6346     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)6347     public void WriteTo(pb::CodedOutputStream output) {
6348       if (HasDeprecated) {
6349         output.WriteRawTag(8);
6350         output.WriteBool(Deprecated);
6351       }
6352       uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
6353       if (_extensions != null) {
6354         _extensions.WriteTo(output);
6355       }
6356       if (_unknownFields != null) {
6357         _unknownFields.WriteTo(output);
6358       }
6359     }
6360 
6361     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()6362     public int CalculateSize() {
6363       int size = 0;
6364       if (HasDeprecated) {
6365         size += 1 + 1;
6366       }
6367       size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
6368       if (_extensions != null) {
6369         size += _extensions.CalculateSize();
6370       }
6371       if (_unknownFields != null) {
6372         size += _unknownFields.CalculateSize();
6373       }
6374       return size;
6375     }
6376 
6377     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(EnumValueOptions other)6378     public void MergeFrom(EnumValueOptions other) {
6379       if (other == null) {
6380         return;
6381       }
6382       if (other.HasDeprecated) {
6383         Deprecated = other.Deprecated;
6384       }
6385       uninterpretedOption_.Add(other.uninterpretedOption_);
6386       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
6387       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6388     }
6389 
6390     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)6391     public void MergeFrom(pb::CodedInputStream input) {
6392       uint tag;
6393       while ((tag = input.ReadTag()) != 0) {
6394         switch(tag) {
6395           default:
6396             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
6397               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6398             }
6399             break;
6400           case 8: {
6401             Deprecated = input.ReadBool();
6402             break;
6403           }
6404           case 7994: {
6405             uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
6406             break;
6407           }
6408         }
6409       }
6410     }
6411 
GetExtension(pb::Extension<EnumValueOptions, TValue> extension)6412     public TValue GetExtension<TValue>(pb::Extension<EnumValueOptions, TValue> extension) {
6413       return pb::ExtensionSet.Get(ref _extensions, extension);
6414     }
GetExtension(pb::RepeatedExtension<EnumValueOptions, TValue> extension)6415     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<EnumValueOptions, TValue> extension) {
6416       return pb::ExtensionSet.Get(ref _extensions, extension);
6417     }
GetOrRegisterExtension(pb::RepeatedExtension<EnumValueOptions, TValue> extension)6418     public pbc::RepeatedField<TValue> GetOrRegisterExtension<TValue>(pb::RepeatedExtension<EnumValueOptions, TValue> extension) {
6419       return pb::ExtensionSet.GetOrRegister(ref _extensions, extension);
6420     }
SetExtension(pb::Extension<EnumValueOptions, TValue> extension, TValue value)6421     public void SetExtension<TValue>(pb::Extension<EnumValueOptions, TValue> extension, TValue value) {
6422       pb::ExtensionSet.Set(ref _extensions, extension, value);
6423     }
HasExtension(pb::Extension<EnumValueOptions, TValue> extension)6424     public bool HasExtension<TValue>(pb::Extension<EnumValueOptions, TValue> extension) {
6425       return pb::ExtensionSet.Has(ref _extensions, extension);
6426     }
ClearExtension(pb::Extension<EnumValueOptions, TValue> extension)6427     public void ClearExtension<TValue>(pb::Extension<EnumValueOptions, TValue> extension) {
6428       pb::ExtensionSet.Clear(ref _extensions, extension);
6429     }
ClearExtension(pb::RepeatedExtension<EnumValueOptions, TValue> extension)6430     public void ClearExtension<TValue>(pb::RepeatedExtension<EnumValueOptions, TValue> extension) {
6431       pb::ExtensionSet.Clear(ref _extensions, extension);
6432     }
6433 
6434   }
6435 
6436   internal sealed partial class ServiceOptions : pb::IExtendableMessage<ServiceOptions> {
6437     private static readonly pb::MessageParser<ServiceOptions> _parser = new pb::MessageParser<ServiceOptions>(() => new ServiceOptions());
6438     private pb::UnknownFieldSet _unknownFields;
6439     internal pb::ExtensionSet<ServiceOptions> _extensions;
6440     private int _hasBits0;
6441     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6442     public static pb::MessageParser<ServiceOptions> Parser { get { return _parser; } }
6443 
6444     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6445     public static pbr::MessageDescriptor Descriptor {
6446       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[16]; }
6447     }
6448 
6449     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6450     pbr::MessageDescriptor pb::IMessage.Descriptor {
6451       get { return Descriptor; }
6452     }
6453 
6454     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ServiceOptions()6455     public ServiceOptions() {
6456       OnConstruction();
6457     }
6458 
OnConstruction()6459     partial void OnConstruction();
6460 
6461     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ServiceOptions(ServiceOptions other)6462     public ServiceOptions(ServiceOptions other) : this() {
6463       _hasBits0 = other._hasBits0;
6464       deprecated_ = other.deprecated_;
6465       uninterpretedOption_ = other.uninterpretedOption_.Clone();
6466       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6467       _extensions = pb::ExtensionSet.Clone(other._extensions);
6468     }
6469 
6470     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()6471     public ServiceOptions Clone() {
6472       return new ServiceOptions(this);
6473     }
6474 
6475     /// <summary>Field number for the "deprecated" field.</summary>
6476     public const int DeprecatedFieldNumber = 33;
6477     private readonly static bool DeprecatedDefaultValue = false;
6478 
6479     private bool deprecated_;
6480     /// <summary>
6481     /// Is this service deprecated?
6482     /// Depending on the target platform, this can emit Deprecated annotations
6483     /// for the service, or it will be completely ignored; in the very least,
6484     /// this is a formalization for deprecating services.
6485     /// </summary>
6486     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6487     public bool Deprecated {
6488       get { if ((_hasBits0 & 1) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } }
6489       set {
6490         _hasBits0 |= 1;
6491         deprecated_ = value;
6492       }
6493     }
6494     /// <summary>Gets whether the "deprecated" field is set</summary>
6495     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6496     public bool HasDeprecated {
6497       get { return (_hasBits0 & 1) != 0; }
6498     }
6499     /// <summary>Clears the value of the "deprecated" field</summary>
6500     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearDeprecated()6501     public void ClearDeprecated() {
6502       _hasBits0 &= ~1;
6503     }
6504 
6505     /// <summary>Field number for the "uninterpreted_option" field.</summary>
6506     public const int UninterpretedOptionFieldNumber = 999;
6507     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
6508         = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
6509     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
6510     /// <summary>
6511     /// The parser stores options it doesn't recognize here. See above.
6512     /// </summary>
6513     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6514     public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
6515       get { return uninterpretedOption_; }
6516     }
6517 
6518     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)6519     public override bool Equals(object other) {
6520       return Equals(other as ServiceOptions);
6521     }
6522 
6523     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(ServiceOptions other)6524     public bool Equals(ServiceOptions other) {
6525       if (ReferenceEquals(other, null)) {
6526         return false;
6527       }
6528       if (ReferenceEquals(other, this)) {
6529         return true;
6530       }
6531       if (Deprecated != other.Deprecated) return false;
6532       if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
6533       if (!Equals(_extensions, other._extensions)) {
6534         return false;
6535       }
6536       return Equals(_unknownFields, other._unknownFields);
6537     }
6538 
6539     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()6540     public override int GetHashCode() {
6541       int hash = 1;
6542       if (HasDeprecated) hash ^= Deprecated.GetHashCode();
6543       hash ^= uninterpretedOption_.GetHashCode();
6544       if (_extensions != null) {
6545         hash ^= _extensions.GetHashCode();
6546       }
6547       if (_unknownFields != null) {
6548         hash ^= _unknownFields.GetHashCode();
6549       }
6550       return hash;
6551     }
6552 
6553     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()6554     public override string ToString() {
6555       return pb::JsonFormatter.ToDiagnosticString(this);
6556     }
6557 
6558     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)6559     public void WriteTo(pb::CodedOutputStream output) {
6560       if (HasDeprecated) {
6561         output.WriteRawTag(136, 2);
6562         output.WriteBool(Deprecated);
6563       }
6564       uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
6565       if (_extensions != null) {
6566         _extensions.WriteTo(output);
6567       }
6568       if (_unknownFields != null) {
6569         _unknownFields.WriteTo(output);
6570       }
6571     }
6572 
6573     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()6574     public int CalculateSize() {
6575       int size = 0;
6576       if (HasDeprecated) {
6577         size += 2 + 1;
6578       }
6579       size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
6580       if (_extensions != null) {
6581         size += _extensions.CalculateSize();
6582       }
6583       if (_unknownFields != null) {
6584         size += _unknownFields.CalculateSize();
6585       }
6586       return size;
6587     }
6588 
6589     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(ServiceOptions other)6590     public void MergeFrom(ServiceOptions other) {
6591       if (other == null) {
6592         return;
6593       }
6594       if (other.HasDeprecated) {
6595         Deprecated = other.Deprecated;
6596       }
6597       uninterpretedOption_.Add(other.uninterpretedOption_);
6598       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
6599       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6600     }
6601 
6602     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)6603     public void MergeFrom(pb::CodedInputStream input) {
6604       uint tag;
6605       while ((tag = input.ReadTag()) != 0) {
6606         switch(tag) {
6607           default:
6608             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
6609               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6610             }
6611             break;
6612           case 264: {
6613             Deprecated = input.ReadBool();
6614             break;
6615           }
6616           case 7994: {
6617             uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
6618             break;
6619           }
6620         }
6621       }
6622     }
6623 
GetExtension(pb::Extension<ServiceOptions, TValue> extension)6624     public TValue GetExtension<TValue>(pb::Extension<ServiceOptions, TValue> extension) {
6625       return pb::ExtensionSet.Get(ref _extensions, extension);
6626     }
GetExtension(pb::RepeatedExtension<ServiceOptions, TValue> extension)6627     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<ServiceOptions, TValue> extension) {
6628       return pb::ExtensionSet.Get(ref _extensions, extension);
6629     }
GetOrRegisterExtension(pb::RepeatedExtension<ServiceOptions, TValue> extension)6630     public pbc::RepeatedField<TValue> GetOrRegisterExtension<TValue>(pb::RepeatedExtension<ServiceOptions, TValue> extension) {
6631       return pb::ExtensionSet.GetOrRegister(ref _extensions, extension);
6632     }
SetExtension(pb::Extension<ServiceOptions, TValue> extension, TValue value)6633     public void SetExtension<TValue>(pb::Extension<ServiceOptions, TValue> extension, TValue value) {
6634       pb::ExtensionSet.Set(ref _extensions, extension, value);
6635     }
HasExtension(pb::Extension<ServiceOptions, TValue> extension)6636     public bool HasExtension<TValue>(pb::Extension<ServiceOptions, TValue> extension) {
6637       return pb::ExtensionSet.Has(ref _extensions, extension);
6638     }
ClearExtension(pb::Extension<ServiceOptions, TValue> extension)6639     public void ClearExtension<TValue>(pb::Extension<ServiceOptions, TValue> extension) {
6640       pb::ExtensionSet.Clear(ref _extensions, extension);
6641     }
ClearExtension(pb::RepeatedExtension<ServiceOptions, TValue> extension)6642     public void ClearExtension<TValue>(pb::RepeatedExtension<ServiceOptions, TValue> extension) {
6643       pb::ExtensionSet.Clear(ref _extensions, extension);
6644     }
6645 
6646   }
6647 
6648   internal sealed partial class MethodOptions : pb::IExtendableMessage<MethodOptions> {
6649     private static readonly pb::MessageParser<MethodOptions> _parser = new pb::MessageParser<MethodOptions>(() => new MethodOptions());
6650     private pb::UnknownFieldSet _unknownFields;
6651     internal pb::ExtensionSet<MethodOptions> _extensions;
6652     private int _hasBits0;
6653     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6654     public static pb::MessageParser<MethodOptions> Parser { get { return _parser; } }
6655 
6656     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6657     public static pbr::MessageDescriptor Descriptor {
6658       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[17]; }
6659     }
6660 
6661     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6662     pbr::MessageDescriptor pb::IMessage.Descriptor {
6663       get { return Descriptor; }
6664     }
6665 
6666     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MethodOptions()6667     public MethodOptions() {
6668       OnConstruction();
6669     }
6670 
OnConstruction()6671     partial void OnConstruction();
6672 
6673     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MethodOptions(MethodOptions other)6674     public MethodOptions(MethodOptions other) : this() {
6675       _hasBits0 = other._hasBits0;
6676       deprecated_ = other.deprecated_;
6677       idempotencyLevel_ = other.idempotencyLevel_;
6678       uninterpretedOption_ = other.uninterpretedOption_.Clone();
6679       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6680       _extensions = pb::ExtensionSet.Clone(other._extensions);
6681     }
6682 
6683     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()6684     public MethodOptions Clone() {
6685       return new MethodOptions(this);
6686     }
6687 
6688     /// <summary>Field number for the "deprecated" field.</summary>
6689     public const int DeprecatedFieldNumber = 33;
6690     private readonly static bool DeprecatedDefaultValue = false;
6691 
6692     private bool deprecated_;
6693     /// <summary>
6694     /// Is this method deprecated?
6695     /// Depending on the target platform, this can emit Deprecated annotations
6696     /// for the method, or it will be completely ignored; in the very least,
6697     /// this is a formalization for deprecating methods.
6698     /// </summary>
6699     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6700     public bool Deprecated {
6701       get { if ((_hasBits0 & 1) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } }
6702       set {
6703         _hasBits0 |= 1;
6704         deprecated_ = value;
6705       }
6706     }
6707     /// <summary>Gets whether the "deprecated" field is set</summary>
6708     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6709     public bool HasDeprecated {
6710       get { return (_hasBits0 & 1) != 0; }
6711     }
6712     /// <summary>Clears the value of the "deprecated" field</summary>
6713     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearDeprecated()6714     public void ClearDeprecated() {
6715       _hasBits0 &= ~1;
6716     }
6717 
6718     /// <summary>Field number for the "idempotency_level" field.</summary>
6719     public const int IdempotencyLevelFieldNumber = 34;
6720     private readonly static global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel IdempotencyLevelDefaultValue = global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel.IdempotencyUnknown;
6721 
6722     private global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel idempotencyLevel_;
6723     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6724     public global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel IdempotencyLevel {
6725       get { if ((_hasBits0 & 2) != 0) { return idempotencyLevel_; } else { return IdempotencyLevelDefaultValue; } }
6726       set {
6727         _hasBits0 |= 2;
6728         idempotencyLevel_ = value;
6729       }
6730     }
6731     /// <summary>Gets whether the "idempotency_level" field is set</summary>
6732     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6733     public bool HasIdempotencyLevel {
6734       get { return (_hasBits0 & 2) != 0; }
6735     }
6736     /// <summary>Clears the value of the "idempotency_level" field</summary>
6737     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearIdempotencyLevel()6738     public void ClearIdempotencyLevel() {
6739       _hasBits0 &= ~2;
6740     }
6741 
6742     /// <summary>Field number for the "uninterpreted_option" field.</summary>
6743     public const int UninterpretedOptionFieldNumber = 999;
6744     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
6745         = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
6746     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
6747     /// <summary>
6748     /// The parser stores options it doesn't recognize here. See above.
6749     /// </summary>
6750     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6751     public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
6752       get { return uninterpretedOption_; }
6753     }
6754 
6755     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)6756     public override bool Equals(object other) {
6757       return Equals(other as MethodOptions);
6758     }
6759 
6760     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(MethodOptions other)6761     public bool Equals(MethodOptions other) {
6762       if (ReferenceEquals(other, null)) {
6763         return false;
6764       }
6765       if (ReferenceEquals(other, this)) {
6766         return true;
6767       }
6768       if (Deprecated != other.Deprecated) return false;
6769       if (IdempotencyLevel != other.IdempotencyLevel) return false;
6770       if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
6771       if (!Equals(_extensions, other._extensions)) {
6772         return false;
6773       }
6774       return Equals(_unknownFields, other._unknownFields);
6775     }
6776 
6777     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()6778     public override int GetHashCode() {
6779       int hash = 1;
6780       if (HasDeprecated) hash ^= Deprecated.GetHashCode();
6781       if (HasIdempotencyLevel) hash ^= IdempotencyLevel.GetHashCode();
6782       hash ^= uninterpretedOption_.GetHashCode();
6783       if (_extensions != null) {
6784         hash ^= _extensions.GetHashCode();
6785       }
6786       if (_unknownFields != null) {
6787         hash ^= _unknownFields.GetHashCode();
6788       }
6789       return hash;
6790     }
6791 
6792     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()6793     public override string ToString() {
6794       return pb::JsonFormatter.ToDiagnosticString(this);
6795     }
6796 
6797     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)6798     public void WriteTo(pb::CodedOutputStream output) {
6799       if (HasDeprecated) {
6800         output.WriteRawTag(136, 2);
6801         output.WriteBool(Deprecated);
6802       }
6803       if (HasIdempotencyLevel) {
6804         output.WriteRawTag(144, 2);
6805         output.WriteEnum((int) IdempotencyLevel);
6806       }
6807       uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
6808       if (_extensions != null) {
6809         _extensions.WriteTo(output);
6810       }
6811       if (_unknownFields != null) {
6812         _unknownFields.WriteTo(output);
6813       }
6814     }
6815 
6816     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()6817     public int CalculateSize() {
6818       int size = 0;
6819       if (HasDeprecated) {
6820         size += 2 + 1;
6821       }
6822       if (HasIdempotencyLevel) {
6823         size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) IdempotencyLevel);
6824       }
6825       size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
6826       if (_extensions != null) {
6827         size += _extensions.CalculateSize();
6828       }
6829       if (_unknownFields != null) {
6830         size += _unknownFields.CalculateSize();
6831       }
6832       return size;
6833     }
6834 
6835     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(MethodOptions other)6836     public void MergeFrom(MethodOptions other) {
6837       if (other == null) {
6838         return;
6839       }
6840       if (other.HasDeprecated) {
6841         Deprecated = other.Deprecated;
6842       }
6843       if (other.HasIdempotencyLevel) {
6844         IdempotencyLevel = other.IdempotencyLevel;
6845       }
6846       uninterpretedOption_.Add(other.uninterpretedOption_);
6847       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
6848       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
6849     }
6850 
6851     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)6852     public void MergeFrom(pb::CodedInputStream input) {
6853       uint tag;
6854       while ((tag = input.ReadTag()) != 0) {
6855         switch(tag) {
6856           default:
6857             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
6858               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
6859             }
6860             break;
6861           case 264: {
6862             Deprecated = input.ReadBool();
6863             break;
6864           }
6865           case 272: {
6866             IdempotencyLevel = (global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel) input.ReadEnum();
6867             break;
6868           }
6869           case 7994: {
6870             uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
6871             break;
6872           }
6873         }
6874       }
6875     }
6876 
GetExtension(pb::Extension<MethodOptions, TValue> extension)6877     public TValue GetExtension<TValue>(pb::Extension<MethodOptions, TValue> extension) {
6878       return pb::ExtensionSet.Get(ref _extensions, extension);
6879     }
GetExtension(pb::RepeatedExtension<MethodOptions, TValue> extension)6880     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<MethodOptions, TValue> extension) {
6881       return pb::ExtensionSet.Get(ref _extensions, extension);
6882     }
GetOrRegisterExtension(pb::RepeatedExtension<MethodOptions, TValue> extension)6883     public pbc::RepeatedField<TValue> GetOrRegisterExtension<TValue>(pb::RepeatedExtension<MethodOptions, TValue> extension) {
6884       return pb::ExtensionSet.GetOrRegister(ref _extensions, extension);
6885     }
SetExtension(pb::Extension<MethodOptions, TValue> extension, TValue value)6886     public void SetExtension<TValue>(pb::Extension<MethodOptions, TValue> extension, TValue value) {
6887       pb::ExtensionSet.Set(ref _extensions, extension, value);
6888     }
HasExtension(pb::Extension<MethodOptions, TValue> extension)6889     public bool HasExtension<TValue>(pb::Extension<MethodOptions, TValue> extension) {
6890       return pb::ExtensionSet.Has(ref _extensions, extension);
6891     }
ClearExtension(pb::Extension<MethodOptions, TValue> extension)6892     public void ClearExtension<TValue>(pb::Extension<MethodOptions, TValue> extension) {
6893       pb::ExtensionSet.Clear(ref _extensions, extension);
6894     }
ClearExtension(pb::RepeatedExtension<MethodOptions, TValue> extension)6895     public void ClearExtension<TValue>(pb::RepeatedExtension<MethodOptions, TValue> extension) {
6896       pb::ExtensionSet.Clear(ref _extensions, extension);
6897     }
6898 
6899     #region Nested types
6900     /// <summary>Container for nested types declared in the MethodOptions message type.</summary>
6901     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6902     public static partial class Types {
6903       /// <summary>
6904       /// Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
6905       /// or neither? HTTP based RPC implementation may choose GET verb for safe
6906       /// methods, and PUT verb for idempotent methods instead of the default POST.
6907       /// </summary>
6908       internal enum IdempotencyLevel {
6909         [pbr::OriginalName("IDEMPOTENCY_UNKNOWN")] IdempotencyUnknown = 0,
6910         /// <summary>
6911         /// implies idempotent
6912         /// </summary>
6913         [pbr::OriginalName("NO_SIDE_EFFECTS")] NoSideEffects = 1,
6914         /// <summary>
6915         /// idempotent, but may have side effects
6916         /// </summary>
6917         [pbr::OriginalName("IDEMPOTENT")] Idempotent = 2,
6918       }
6919 
6920     }
6921     #endregion
6922 
6923   }
6924 
6925   /// <summary>
6926   /// A message representing a option the parser does not recognize. This only
6927   /// appears in options protos created by the compiler::Parser class.
6928   /// DescriptorPool resolves these when building Descriptor objects. Therefore,
6929   /// options protos in descriptor objects (e.g. returned by Descriptor::options(),
6930   /// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
6931   /// in them.
6932   /// </summary>
6933   internal sealed partial class UninterpretedOption : pb::IMessage<UninterpretedOption> {
6934     private static readonly pb::MessageParser<UninterpretedOption> _parser = new pb::MessageParser<UninterpretedOption>(() => new UninterpretedOption());
6935     private pb::UnknownFieldSet _unknownFields;
6936     private int _hasBits0;
6937     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6938     public static pb::MessageParser<UninterpretedOption> Parser { get { return _parser; } }
6939 
6940     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6941     public static pbr::MessageDescriptor Descriptor {
6942       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[18]; }
6943     }
6944 
6945     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6946     pbr::MessageDescriptor pb::IMessage.Descriptor {
6947       get { return Descriptor; }
6948     }
6949 
6950     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
UninterpretedOption()6951     public UninterpretedOption() {
6952       OnConstruction();
6953     }
6954 
OnConstruction()6955     partial void OnConstruction();
6956 
6957     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
UninterpretedOption(UninterpretedOption other)6958     public UninterpretedOption(UninterpretedOption other) : this() {
6959       _hasBits0 = other._hasBits0;
6960       name_ = other.name_.Clone();
6961       identifierValue_ = other.identifierValue_;
6962       positiveIntValue_ = other.positiveIntValue_;
6963       negativeIntValue_ = other.negativeIntValue_;
6964       doubleValue_ = other.doubleValue_;
6965       stringValue_ = other.stringValue_;
6966       aggregateValue_ = other.aggregateValue_;
6967       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6968     }
6969 
6970     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()6971     public UninterpretedOption Clone() {
6972       return new UninterpretedOption(this);
6973     }
6974 
6975     /// <summary>Field number for the "name" field.</summary>
6976     public const int NameFieldNumber = 2;
6977     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> _repeated_name_codec
6978         = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart.Parser);
6979     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> name_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart>();
6980     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6981     public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> Name {
6982       get { return name_; }
6983     }
6984 
6985     /// <summary>Field number for the "identifier_value" field.</summary>
6986     public const int IdentifierValueFieldNumber = 3;
6987     private readonly static string IdentifierValueDefaultValue = "";
6988 
6989     private string identifierValue_;
6990     /// <summary>
6991     /// The value of the uninterpreted option, in whatever type the tokenizer
6992     /// identified it as during parsing. Exactly one of these should be set.
6993     /// </summary>
6994     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6995     public string IdentifierValue {
6996       get { return identifierValue_ ?? IdentifierValueDefaultValue; }
6997       set {
6998         identifierValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
6999       }
7000     }
7001     /// <summary>Gets whether the "identifier_value" field is set</summary>
7002     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7003     public bool HasIdentifierValue {
7004       get { return identifierValue_ != null; }
7005     }
7006     /// <summary>Clears the value of the "identifier_value" field</summary>
7007     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearIdentifierValue()7008     public void ClearIdentifierValue() {
7009       identifierValue_ = null;
7010     }
7011 
7012     /// <summary>Field number for the "positive_int_value" field.</summary>
7013     public const int PositiveIntValueFieldNumber = 4;
7014     private readonly static ulong PositiveIntValueDefaultValue = 0UL;
7015 
7016     private ulong positiveIntValue_;
7017     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7018     public ulong PositiveIntValue {
7019       get { if ((_hasBits0 & 1) != 0) { return positiveIntValue_; } else { return PositiveIntValueDefaultValue; } }
7020       set {
7021         _hasBits0 |= 1;
7022         positiveIntValue_ = value;
7023       }
7024     }
7025     /// <summary>Gets whether the "positive_int_value" field is set</summary>
7026     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7027     public bool HasPositiveIntValue {
7028       get { return (_hasBits0 & 1) != 0; }
7029     }
7030     /// <summary>Clears the value of the "positive_int_value" field</summary>
7031     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearPositiveIntValue()7032     public void ClearPositiveIntValue() {
7033       _hasBits0 &= ~1;
7034     }
7035 
7036     /// <summary>Field number for the "negative_int_value" field.</summary>
7037     public const int NegativeIntValueFieldNumber = 5;
7038     private readonly static long NegativeIntValueDefaultValue = 0L;
7039 
7040     private long negativeIntValue_;
7041     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7042     public long NegativeIntValue {
7043       get { if ((_hasBits0 & 2) != 0) { return negativeIntValue_; } else { return NegativeIntValueDefaultValue; } }
7044       set {
7045         _hasBits0 |= 2;
7046         negativeIntValue_ = value;
7047       }
7048     }
7049     /// <summary>Gets whether the "negative_int_value" field is set</summary>
7050     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7051     public bool HasNegativeIntValue {
7052       get { return (_hasBits0 & 2) != 0; }
7053     }
7054     /// <summary>Clears the value of the "negative_int_value" field</summary>
7055     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearNegativeIntValue()7056     public void ClearNegativeIntValue() {
7057       _hasBits0 &= ~2;
7058     }
7059 
7060     /// <summary>Field number for the "double_value" field.</summary>
7061     public const int DoubleValueFieldNumber = 6;
7062     private readonly static double DoubleValueDefaultValue = 0D;
7063 
7064     private double doubleValue_;
7065     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7066     public double DoubleValue {
7067       get { if ((_hasBits0 & 4) != 0) { return doubleValue_; } else { return DoubleValueDefaultValue; } }
7068       set {
7069         _hasBits0 |= 4;
7070         doubleValue_ = value;
7071       }
7072     }
7073     /// <summary>Gets whether the "double_value" field is set</summary>
7074     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7075     public bool HasDoubleValue {
7076       get { return (_hasBits0 & 4) != 0; }
7077     }
7078     /// <summary>Clears the value of the "double_value" field</summary>
7079     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearDoubleValue()7080     public void ClearDoubleValue() {
7081       _hasBits0 &= ~4;
7082     }
7083 
7084     /// <summary>Field number for the "string_value" field.</summary>
7085     public const int StringValueFieldNumber = 7;
7086     private readonly static pb::ByteString StringValueDefaultValue = pb::ByteString.Empty;
7087 
7088     private pb::ByteString stringValue_;
7089     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7090     public pb::ByteString StringValue {
7091       get { return stringValue_ ?? StringValueDefaultValue; }
7092       set {
7093         stringValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
7094       }
7095     }
7096     /// <summary>Gets whether the "string_value" field is set</summary>
7097     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7098     public bool HasStringValue {
7099       get { return stringValue_ != null; }
7100     }
7101     /// <summary>Clears the value of the "string_value" field</summary>
7102     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearStringValue()7103     public void ClearStringValue() {
7104       stringValue_ = null;
7105     }
7106 
7107     /// <summary>Field number for the "aggregate_value" field.</summary>
7108     public const int AggregateValueFieldNumber = 8;
7109     private readonly static string AggregateValueDefaultValue = "";
7110 
7111     private string aggregateValue_;
7112     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7113     public string AggregateValue {
7114       get { return aggregateValue_ ?? AggregateValueDefaultValue; }
7115       set {
7116         aggregateValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
7117       }
7118     }
7119     /// <summary>Gets whether the "aggregate_value" field is set</summary>
7120     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7121     public bool HasAggregateValue {
7122       get { return aggregateValue_ != null; }
7123     }
7124     /// <summary>Clears the value of the "aggregate_value" field</summary>
7125     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearAggregateValue()7126     public void ClearAggregateValue() {
7127       aggregateValue_ = null;
7128     }
7129 
7130     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)7131     public override bool Equals(object other) {
7132       return Equals(other as UninterpretedOption);
7133     }
7134 
7135     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(UninterpretedOption other)7136     public bool Equals(UninterpretedOption other) {
7137       if (ReferenceEquals(other, null)) {
7138         return false;
7139       }
7140       if (ReferenceEquals(other, this)) {
7141         return true;
7142       }
7143       if(!name_.Equals(other.name_)) return false;
7144       if (IdentifierValue != other.IdentifierValue) return false;
7145       if (PositiveIntValue != other.PositiveIntValue) return false;
7146       if (NegativeIntValue != other.NegativeIntValue) return false;
7147       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleValue, other.DoubleValue)) return false;
7148       if (StringValue != other.StringValue) return false;
7149       if (AggregateValue != other.AggregateValue) return false;
7150       return Equals(_unknownFields, other._unknownFields);
7151     }
7152 
7153     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()7154     public override int GetHashCode() {
7155       int hash = 1;
7156       hash ^= name_.GetHashCode();
7157       if (HasIdentifierValue) hash ^= IdentifierValue.GetHashCode();
7158       if (HasPositiveIntValue) hash ^= PositiveIntValue.GetHashCode();
7159       if (HasNegativeIntValue) hash ^= NegativeIntValue.GetHashCode();
7160       if (HasDoubleValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleValue);
7161       if (HasStringValue) hash ^= StringValue.GetHashCode();
7162       if (HasAggregateValue) hash ^= AggregateValue.GetHashCode();
7163       if (_unknownFields != null) {
7164         hash ^= _unknownFields.GetHashCode();
7165       }
7166       return hash;
7167     }
7168 
7169     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()7170     public override string ToString() {
7171       return pb::JsonFormatter.ToDiagnosticString(this);
7172     }
7173 
7174     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)7175     public void WriteTo(pb::CodedOutputStream output) {
7176       name_.WriteTo(output, _repeated_name_codec);
7177       if (HasIdentifierValue) {
7178         output.WriteRawTag(26);
7179         output.WriteString(IdentifierValue);
7180       }
7181       if (HasPositiveIntValue) {
7182         output.WriteRawTag(32);
7183         output.WriteUInt64(PositiveIntValue);
7184       }
7185       if (HasNegativeIntValue) {
7186         output.WriteRawTag(40);
7187         output.WriteInt64(NegativeIntValue);
7188       }
7189       if (HasDoubleValue) {
7190         output.WriteRawTag(49);
7191         output.WriteDouble(DoubleValue);
7192       }
7193       if (HasStringValue) {
7194         output.WriteRawTag(58);
7195         output.WriteBytes(StringValue);
7196       }
7197       if (HasAggregateValue) {
7198         output.WriteRawTag(66);
7199         output.WriteString(AggregateValue);
7200       }
7201       if (_unknownFields != null) {
7202         _unknownFields.WriteTo(output);
7203       }
7204     }
7205 
7206     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()7207     public int CalculateSize() {
7208       int size = 0;
7209       size += name_.CalculateSize(_repeated_name_codec);
7210       if (HasIdentifierValue) {
7211         size += 1 + pb::CodedOutputStream.ComputeStringSize(IdentifierValue);
7212       }
7213       if (HasPositiveIntValue) {
7214         size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PositiveIntValue);
7215       }
7216       if (HasNegativeIntValue) {
7217         size += 1 + pb::CodedOutputStream.ComputeInt64Size(NegativeIntValue);
7218       }
7219       if (HasDoubleValue) {
7220         size += 1 + 8;
7221       }
7222       if (HasStringValue) {
7223         size += 1 + pb::CodedOutputStream.ComputeBytesSize(StringValue);
7224       }
7225       if (HasAggregateValue) {
7226         size += 1 + pb::CodedOutputStream.ComputeStringSize(AggregateValue);
7227       }
7228       if (_unknownFields != null) {
7229         size += _unknownFields.CalculateSize();
7230       }
7231       return size;
7232     }
7233 
7234     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(UninterpretedOption other)7235     public void MergeFrom(UninterpretedOption other) {
7236       if (other == null) {
7237         return;
7238       }
7239       name_.Add(other.name_);
7240       if (other.HasIdentifierValue) {
7241         IdentifierValue = other.IdentifierValue;
7242       }
7243       if (other.HasPositiveIntValue) {
7244         PositiveIntValue = other.PositiveIntValue;
7245       }
7246       if (other.HasNegativeIntValue) {
7247         NegativeIntValue = other.NegativeIntValue;
7248       }
7249       if (other.HasDoubleValue) {
7250         DoubleValue = other.DoubleValue;
7251       }
7252       if (other.HasStringValue) {
7253         StringValue = other.StringValue;
7254       }
7255       if (other.HasAggregateValue) {
7256         AggregateValue = other.AggregateValue;
7257       }
7258       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7259     }
7260 
7261     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)7262     public void MergeFrom(pb::CodedInputStream input) {
7263       uint tag;
7264       while ((tag = input.ReadTag()) != 0) {
7265         switch(tag) {
7266           default:
7267             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7268             break;
7269           case 18: {
7270             name_.AddEntriesFrom(input, _repeated_name_codec);
7271             break;
7272           }
7273           case 26: {
7274             IdentifierValue = input.ReadString();
7275             break;
7276           }
7277           case 32: {
7278             PositiveIntValue = input.ReadUInt64();
7279             break;
7280           }
7281           case 40: {
7282             NegativeIntValue = input.ReadInt64();
7283             break;
7284           }
7285           case 49: {
7286             DoubleValue = input.ReadDouble();
7287             break;
7288           }
7289           case 58: {
7290             StringValue = input.ReadBytes();
7291             break;
7292           }
7293           case 66: {
7294             AggregateValue = input.ReadString();
7295             break;
7296           }
7297         }
7298       }
7299     }
7300 
7301     #region Nested types
7302     /// <summary>Container for nested types declared in the UninterpretedOption message type.</summary>
7303     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7304     public static partial class Types {
7305       /// <summary>
7306       /// The name of the uninterpreted option.  Each string represents a segment in
7307       /// a dot-separated name.  is_extension is true iff a segment represents an
7308       /// extension (denoted with parentheses in options specs in .proto files).
7309       /// E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
7310       /// "foo.(bar.baz).qux".
7311       /// </summary>
7312       internal sealed partial class NamePart : pb::IMessage<NamePart> {
7313         private static readonly pb::MessageParser<NamePart> _parser = new pb::MessageParser<NamePart>(() => new NamePart());
7314         private pb::UnknownFieldSet _unknownFields;
7315         private int _hasBits0;
7316         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7317         public static pb::MessageParser<NamePart> Parser { get { return _parser; } }
7318 
7319         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7320         public static pbr::MessageDescriptor Descriptor {
7321           get { return global::Google.Protobuf.Reflection.UninterpretedOption.Descriptor.NestedTypes[0]; }
7322         }
7323 
7324         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7325         pbr::MessageDescriptor pb::IMessage.Descriptor {
7326           get { return Descriptor; }
7327         }
7328 
7329         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
NamePart()7330         public NamePart() {
7331           OnConstruction();
7332         }
7333 
OnConstruction()7334         partial void OnConstruction();
7335 
7336         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
NamePart(NamePart other)7337         public NamePart(NamePart other) : this() {
7338           _hasBits0 = other._hasBits0;
7339           namePart_ = other.namePart_;
7340           isExtension_ = other.isExtension_;
7341           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7342         }
7343 
7344         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()7345         public NamePart Clone() {
7346           return new NamePart(this);
7347         }
7348 
7349         /// <summary>Field number for the "name_part" field.</summary>
7350         public const int NamePart_FieldNumber = 1;
7351         private readonly static string NamePart_DefaultValue = "";
7352 
7353         private string namePart_;
7354         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7355         public string NamePart_ {
7356           get { return namePart_ ?? NamePart_DefaultValue; }
7357           set {
7358             namePart_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
7359           }
7360         }
7361         /// <summary>Gets whether the "name_part" field is set</summary>
7362         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7363         public bool HasNamePart_ {
7364           get { return namePart_ != null; }
7365         }
7366         /// <summary>Clears the value of the "name_part" field</summary>
7367         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearNamePart_()7368         public void ClearNamePart_() {
7369           namePart_ = null;
7370         }
7371 
7372         /// <summary>Field number for the "is_extension" field.</summary>
7373         public const int IsExtensionFieldNumber = 2;
7374         private readonly static bool IsExtensionDefaultValue = false;
7375 
7376         private bool isExtension_;
7377         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7378         public bool IsExtension {
7379           get { if ((_hasBits0 & 1) != 0) { return isExtension_; } else { return IsExtensionDefaultValue; } }
7380           set {
7381             _hasBits0 |= 1;
7382             isExtension_ = value;
7383           }
7384         }
7385         /// <summary>Gets whether the "is_extension" field is set</summary>
7386         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7387         public bool HasIsExtension {
7388           get { return (_hasBits0 & 1) != 0; }
7389         }
7390         /// <summary>Clears the value of the "is_extension" field</summary>
7391         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearIsExtension()7392         public void ClearIsExtension() {
7393           _hasBits0 &= ~1;
7394         }
7395 
7396         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)7397         public override bool Equals(object other) {
7398           return Equals(other as NamePart);
7399         }
7400 
7401         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(NamePart other)7402         public bool Equals(NamePart other) {
7403           if (ReferenceEquals(other, null)) {
7404             return false;
7405           }
7406           if (ReferenceEquals(other, this)) {
7407             return true;
7408           }
7409           if (NamePart_ != other.NamePart_) return false;
7410           if (IsExtension != other.IsExtension) return false;
7411           return Equals(_unknownFields, other._unknownFields);
7412         }
7413 
7414         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()7415         public override int GetHashCode() {
7416           int hash = 1;
7417           if (HasNamePart_) hash ^= NamePart_.GetHashCode();
7418           if (HasIsExtension) hash ^= IsExtension.GetHashCode();
7419           if (_unknownFields != null) {
7420             hash ^= _unknownFields.GetHashCode();
7421           }
7422           return hash;
7423         }
7424 
7425         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()7426         public override string ToString() {
7427           return pb::JsonFormatter.ToDiagnosticString(this);
7428         }
7429 
7430         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)7431         public void WriteTo(pb::CodedOutputStream output) {
7432           if (HasNamePart_) {
7433             output.WriteRawTag(10);
7434             output.WriteString(NamePart_);
7435           }
7436           if (HasIsExtension) {
7437             output.WriteRawTag(16);
7438             output.WriteBool(IsExtension);
7439           }
7440           if (_unknownFields != null) {
7441             _unknownFields.WriteTo(output);
7442           }
7443         }
7444 
7445         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()7446         public int CalculateSize() {
7447           int size = 0;
7448           if (HasNamePart_) {
7449             size += 1 + pb::CodedOutputStream.ComputeStringSize(NamePart_);
7450           }
7451           if (HasIsExtension) {
7452             size += 1 + 1;
7453           }
7454           if (_unknownFields != null) {
7455             size += _unknownFields.CalculateSize();
7456           }
7457           return size;
7458         }
7459 
7460         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(NamePart other)7461         public void MergeFrom(NamePart other) {
7462           if (other == null) {
7463             return;
7464           }
7465           if (other.HasNamePart_) {
7466             NamePart_ = other.NamePart_;
7467           }
7468           if (other.HasIsExtension) {
7469             IsExtension = other.IsExtension;
7470           }
7471           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7472         }
7473 
7474         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)7475         public void MergeFrom(pb::CodedInputStream input) {
7476           uint tag;
7477           while ((tag = input.ReadTag()) != 0) {
7478             switch(tag) {
7479               default:
7480                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7481                 break;
7482               case 10: {
7483                 NamePart_ = input.ReadString();
7484                 break;
7485               }
7486               case 16: {
7487                 IsExtension = input.ReadBool();
7488                 break;
7489               }
7490             }
7491           }
7492         }
7493 
7494       }
7495 
7496     }
7497     #endregion
7498 
7499   }
7500 
7501   /// <summary>
7502   /// Encapsulates information about the original source file from which a
7503   /// FileDescriptorProto was generated.
7504   /// </summary>
7505   internal sealed partial class SourceCodeInfo : pb::IMessage<SourceCodeInfo> {
7506     private static readonly pb::MessageParser<SourceCodeInfo> _parser = new pb::MessageParser<SourceCodeInfo>(() => new SourceCodeInfo());
7507     private pb::UnknownFieldSet _unknownFields;
7508     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7509     public static pb::MessageParser<SourceCodeInfo> Parser { get { return _parser; } }
7510 
7511     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7512     public static pbr::MessageDescriptor Descriptor {
7513       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[19]; }
7514     }
7515 
7516     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7517     pbr::MessageDescriptor pb::IMessage.Descriptor {
7518       get { return Descriptor; }
7519     }
7520 
7521     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
SourceCodeInfo()7522     public SourceCodeInfo() {
7523       OnConstruction();
7524     }
7525 
OnConstruction()7526     partial void OnConstruction();
7527 
7528     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
SourceCodeInfo(SourceCodeInfo other)7529     public SourceCodeInfo(SourceCodeInfo other) : this() {
7530       location_ = other.location_.Clone();
7531       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7532     }
7533 
7534     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()7535     public SourceCodeInfo Clone() {
7536       return new SourceCodeInfo(this);
7537     }
7538 
7539     /// <summary>Field number for the "location" field.</summary>
7540     public const int LocationFieldNumber = 1;
7541     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> _repeated_location_codec
7542         = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location.Parser);
7543     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> location_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location>();
7544     /// <summary>
7545     /// A Location identifies a piece of source code in a .proto file which
7546     /// corresponds to a particular definition.  This information is intended
7547     /// to be useful to IDEs, code indexers, documentation generators, and similar
7548     /// tools.
7549     ///
7550     /// For example, say we have a file like:
7551     ///   message Foo {
7552     ///     optional string foo = 1;
7553     ///   }
7554     /// Let's look at just the field definition:
7555     ///   optional string foo = 1;
7556     ///   ^       ^^     ^^  ^  ^^^
7557     ///   a       bc     de  f  ghi
7558     /// We have the following locations:
7559     ///   span   path               represents
7560     ///   [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
7561     ///   [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
7562     ///   [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
7563     ///   [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
7564     ///   [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
7565     ///
7566     /// Notes:
7567     /// - A location may refer to a repeated field itself (i.e. not to any
7568     ///   particular index within it).  This is used whenever a set of elements are
7569     ///   logically enclosed in a single code segment.  For example, an entire
7570     ///   extend block (possibly containing multiple extension definitions) will
7571     ///   have an outer location whose path refers to the "extensions" repeated
7572     ///   field without an index.
7573     /// - Multiple locations may have the same path.  This happens when a single
7574     ///   logical declaration is spread out across multiple places.  The most
7575     ///   obvious example is the "extend" block again -- there may be multiple
7576     ///   extend blocks in the same scope, each of which will have the same path.
7577     /// - A location's span is not always a subset of its parent's span.  For
7578     ///   example, the "extendee" of an extension declaration appears at the
7579     ///   beginning of the "extend" block and is shared by all extensions within
7580     ///   the block.
7581     /// - Just because a location's span is a subset of some other location's span
7582     ///   does not mean that it is a descendant.  For example, a "group" defines
7583     ///   both a type and a field in a single declaration.  Thus, the locations
7584     ///   corresponding to the type and field and their components will overlap.
7585     /// - Code which tries to interpret locations should probably be designed to
7586     ///   ignore those that it doesn't understand, as more types of locations could
7587     ///   be recorded in the future.
7588     /// </summary>
7589     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7590     public pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> Location {
7591       get { return location_; }
7592     }
7593 
7594     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)7595     public override bool Equals(object other) {
7596       return Equals(other as SourceCodeInfo);
7597     }
7598 
7599     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(SourceCodeInfo other)7600     public bool Equals(SourceCodeInfo other) {
7601       if (ReferenceEquals(other, null)) {
7602         return false;
7603       }
7604       if (ReferenceEquals(other, this)) {
7605         return true;
7606       }
7607       if(!location_.Equals(other.location_)) return false;
7608       return Equals(_unknownFields, other._unknownFields);
7609     }
7610 
7611     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()7612     public override int GetHashCode() {
7613       int hash = 1;
7614       hash ^= location_.GetHashCode();
7615       if (_unknownFields != null) {
7616         hash ^= _unknownFields.GetHashCode();
7617       }
7618       return hash;
7619     }
7620 
7621     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()7622     public override string ToString() {
7623       return pb::JsonFormatter.ToDiagnosticString(this);
7624     }
7625 
7626     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)7627     public void WriteTo(pb::CodedOutputStream output) {
7628       location_.WriteTo(output, _repeated_location_codec);
7629       if (_unknownFields != null) {
7630         _unknownFields.WriteTo(output);
7631       }
7632     }
7633 
7634     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()7635     public int CalculateSize() {
7636       int size = 0;
7637       size += location_.CalculateSize(_repeated_location_codec);
7638       if (_unknownFields != null) {
7639         size += _unknownFields.CalculateSize();
7640       }
7641       return size;
7642     }
7643 
7644     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(SourceCodeInfo other)7645     public void MergeFrom(SourceCodeInfo other) {
7646       if (other == null) {
7647         return;
7648       }
7649       location_.Add(other.location_);
7650       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7651     }
7652 
7653     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)7654     public void MergeFrom(pb::CodedInputStream input) {
7655       uint tag;
7656       while ((tag = input.ReadTag()) != 0) {
7657         switch(tag) {
7658           default:
7659             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7660             break;
7661           case 10: {
7662             location_.AddEntriesFrom(input, _repeated_location_codec);
7663             break;
7664           }
7665         }
7666       }
7667     }
7668 
7669     #region Nested types
7670     /// <summary>Container for nested types declared in the SourceCodeInfo message type.</summary>
7671     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7672     public static partial class Types {
7673       internal sealed partial class Location : pb::IMessage<Location> {
7674         private static readonly pb::MessageParser<Location> _parser = new pb::MessageParser<Location>(() => new Location());
7675         private pb::UnknownFieldSet _unknownFields;
7676         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7677         public static pb::MessageParser<Location> Parser { get { return _parser; } }
7678 
7679         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7680         public static pbr::MessageDescriptor Descriptor {
7681           get { return global::Google.Protobuf.Reflection.SourceCodeInfo.Descriptor.NestedTypes[0]; }
7682         }
7683 
7684         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7685         pbr::MessageDescriptor pb::IMessage.Descriptor {
7686           get { return Descriptor; }
7687         }
7688 
7689         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Location()7690         public Location() {
7691           OnConstruction();
7692         }
7693 
OnConstruction()7694         partial void OnConstruction();
7695 
7696         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Location(Location other)7697         public Location(Location other) : this() {
7698           path_ = other.path_.Clone();
7699           span_ = other.span_.Clone();
7700           leadingComments_ = other.leadingComments_;
7701           trailingComments_ = other.trailingComments_;
7702           leadingDetachedComments_ = other.leadingDetachedComments_.Clone();
7703           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7704         }
7705 
7706         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()7707         public Location Clone() {
7708           return new Location(this);
7709         }
7710 
7711         /// <summary>Field number for the "path" field.</summary>
7712         public const int PathFieldNumber = 1;
7713         private static readonly pb::FieldCodec<int> _repeated_path_codec
7714             = pb::FieldCodec.ForInt32(10);
7715         private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField<int>();
7716         /// <summary>
7717         /// Identifies which part of the FileDescriptorProto was defined at this
7718         /// location.
7719         ///
7720         /// Each element is a field number or an index.  They form a path from
7721         /// the root FileDescriptorProto to the place where the definition.  For
7722         /// example, this path:
7723         ///   [ 4, 3, 2, 7, 1 ]
7724         /// refers to:
7725         ///   file.message_type(3)  // 4, 3
7726         ///       .field(7)         // 2, 7
7727         ///       .name()           // 1
7728         /// This is because FileDescriptorProto.message_type has field number 4:
7729         ///   repeated DescriptorProto message_type = 4;
7730         /// and DescriptorProto.field has field number 2:
7731         ///   repeated FieldDescriptorProto field = 2;
7732         /// and FieldDescriptorProto.name has field number 1:
7733         ///   optional string name = 1;
7734         ///
7735         /// Thus, the above path gives the location of a field name.  If we removed
7736         /// the last element:
7737         ///   [ 4, 3, 2, 7 ]
7738         /// this path refers to the whole field declaration (from the beginning
7739         /// of the label to the terminating semicolon).
7740         /// </summary>
7741         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7742         public pbc::RepeatedField<int> Path {
7743           get { return path_; }
7744         }
7745 
7746         /// <summary>Field number for the "span" field.</summary>
7747         public const int SpanFieldNumber = 2;
7748         private static readonly pb::FieldCodec<int> _repeated_span_codec
7749             = pb::FieldCodec.ForInt32(18);
7750         private readonly pbc::RepeatedField<int> span_ = new pbc::RepeatedField<int>();
7751         /// <summary>
7752         /// Always has exactly three or four elements: start line, start column,
7753         /// end line (optional, otherwise assumed same as start line), end column.
7754         /// These are packed into a single field for efficiency.  Note that line
7755         /// and column numbers are zero-based -- typically you will want to add
7756         /// 1 to each before displaying to a user.
7757         /// </summary>
7758         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7759         public pbc::RepeatedField<int> Span {
7760           get { return span_; }
7761         }
7762 
7763         /// <summary>Field number for the "leading_comments" field.</summary>
7764         public const int LeadingCommentsFieldNumber = 3;
7765         private readonly static string LeadingCommentsDefaultValue = "";
7766 
7767         private string leadingComments_;
7768         /// <summary>
7769         /// If this SourceCodeInfo represents a complete declaration, these are any
7770         /// comments appearing before and after the declaration which appear to be
7771         /// attached to the declaration.
7772         ///
7773         /// A series of line comments appearing on consecutive lines, with no other
7774         /// tokens appearing on those lines, will be treated as a single comment.
7775         ///
7776         /// leading_detached_comments will keep paragraphs of comments that appear
7777         /// before (but not connected to) the current element. Each paragraph,
7778         /// separated by empty lines, will be one comment element in the repeated
7779         /// field.
7780         ///
7781         /// Only the comment content is provided; comment markers (e.g. //) are
7782         /// stripped out.  For block comments, leading whitespace and an asterisk
7783         /// will be stripped from the beginning of each line other than the first.
7784         /// Newlines are included in the output.
7785         ///
7786         /// Examples:
7787         ///
7788         ///   optional int32 foo = 1;  // Comment attached to foo.
7789         ///   // Comment attached to bar.
7790         ///   optional int32 bar = 2;
7791         ///
7792         ///   optional string baz = 3;
7793         ///   // Comment attached to baz.
7794         ///   // Another line attached to baz.
7795         ///
7796         ///   // Comment attached to qux.
7797         ///   //
7798         ///   // Another line attached to qux.
7799         ///   optional double qux = 4;
7800         ///
7801         ///   // Detached comment for corge. This is not leading or trailing comments
7802         ///   // to qux or corge because there are blank lines separating it from
7803         ///   // both.
7804         ///
7805         ///   // Detached comment for corge paragraph 2.
7806         ///
7807         ///   optional string corge = 5;
7808         ///   /* Block comment attached
7809         ///    * to corge.  Leading asterisks
7810         ///    * will be removed. */
7811         ///   /* Block comment attached to
7812         ///    * grault. */
7813         ///   optional int32 grault = 6;
7814         ///
7815         ///   // ignored detached comments.
7816         /// </summary>
7817         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7818         public string LeadingComments {
7819           get { return leadingComments_ ?? LeadingCommentsDefaultValue; }
7820           set {
7821             leadingComments_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
7822           }
7823         }
7824         /// <summary>Gets whether the "leading_comments" field is set</summary>
7825         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7826         public bool HasLeadingComments {
7827           get { return leadingComments_ != null; }
7828         }
7829         /// <summary>Clears the value of the "leading_comments" field</summary>
7830         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearLeadingComments()7831         public void ClearLeadingComments() {
7832           leadingComments_ = null;
7833         }
7834 
7835         /// <summary>Field number for the "trailing_comments" field.</summary>
7836         public const int TrailingCommentsFieldNumber = 4;
7837         private readonly static string TrailingCommentsDefaultValue = "";
7838 
7839         private string trailingComments_;
7840         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7841         public string TrailingComments {
7842           get { return trailingComments_ ?? TrailingCommentsDefaultValue; }
7843           set {
7844             trailingComments_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
7845           }
7846         }
7847         /// <summary>Gets whether the "trailing_comments" field is set</summary>
7848         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7849         public bool HasTrailingComments {
7850           get { return trailingComments_ != null; }
7851         }
7852         /// <summary>Clears the value of the "trailing_comments" field</summary>
7853         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearTrailingComments()7854         public void ClearTrailingComments() {
7855           trailingComments_ = null;
7856         }
7857 
7858         /// <summary>Field number for the "leading_detached_comments" field.</summary>
7859         public const int LeadingDetachedCommentsFieldNumber = 6;
7860         private static readonly pb::FieldCodec<string> _repeated_leadingDetachedComments_codec
7861             = pb::FieldCodec.ForString(50);
7862         private readonly pbc::RepeatedField<string> leadingDetachedComments_ = new pbc::RepeatedField<string>();
7863         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7864         public pbc::RepeatedField<string> LeadingDetachedComments {
7865           get { return leadingDetachedComments_; }
7866         }
7867 
7868         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)7869         public override bool Equals(object other) {
7870           return Equals(other as Location);
7871         }
7872 
7873         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(Location other)7874         public bool Equals(Location other) {
7875           if (ReferenceEquals(other, null)) {
7876             return false;
7877           }
7878           if (ReferenceEquals(other, this)) {
7879             return true;
7880           }
7881           if(!path_.Equals(other.path_)) return false;
7882           if(!span_.Equals(other.span_)) return false;
7883           if (LeadingComments != other.LeadingComments) return false;
7884           if (TrailingComments != other.TrailingComments) return false;
7885           if(!leadingDetachedComments_.Equals(other.leadingDetachedComments_)) return false;
7886           return Equals(_unknownFields, other._unknownFields);
7887         }
7888 
7889         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()7890         public override int GetHashCode() {
7891           int hash = 1;
7892           hash ^= path_.GetHashCode();
7893           hash ^= span_.GetHashCode();
7894           if (HasLeadingComments) hash ^= LeadingComments.GetHashCode();
7895           if (HasTrailingComments) hash ^= TrailingComments.GetHashCode();
7896           hash ^= leadingDetachedComments_.GetHashCode();
7897           if (_unknownFields != null) {
7898             hash ^= _unknownFields.GetHashCode();
7899           }
7900           return hash;
7901         }
7902 
7903         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()7904         public override string ToString() {
7905           return pb::JsonFormatter.ToDiagnosticString(this);
7906         }
7907 
7908         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)7909         public void WriteTo(pb::CodedOutputStream output) {
7910           path_.WriteTo(output, _repeated_path_codec);
7911           span_.WriteTo(output, _repeated_span_codec);
7912           if (HasLeadingComments) {
7913             output.WriteRawTag(26);
7914             output.WriteString(LeadingComments);
7915           }
7916           if (HasTrailingComments) {
7917             output.WriteRawTag(34);
7918             output.WriteString(TrailingComments);
7919           }
7920           leadingDetachedComments_.WriteTo(output, _repeated_leadingDetachedComments_codec);
7921           if (_unknownFields != null) {
7922             _unknownFields.WriteTo(output);
7923           }
7924         }
7925 
7926         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()7927         public int CalculateSize() {
7928           int size = 0;
7929           size += path_.CalculateSize(_repeated_path_codec);
7930           size += span_.CalculateSize(_repeated_span_codec);
7931           if (HasLeadingComments) {
7932             size += 1 + pb::CodedOutputStream.ComputeStringSize(LeadingComments);
7933           }
7934           if (HasTrailingComments) {
7935             size += 1 + pb::CodedOutputStream.ComputeStringSize(TrailingComments);
7936           }
7937           size += leadingDetachedComments_.CalculateSize(_repeated_leadingDetachedComments_codec);
7938           if (_unknownFields != null) {
7939             size += _unknownFields.CalculateSize();
7940           }
7941           return size;
7942         }
7943 
7944         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(Location other)7945         public void MergeFrom(Location other) {
7946           if (other == null) {
7947             return;
7948           }
7949           path_.Add(other.path_);
7950           span_.Add(other.span_);
7951           if (other.HasLeadingComments) {
7952             LeadingComments = other.LeadingComments;
7953           }
7954           if (other.HasTrailingComments) {
7955             TrailingComments = other.TrailingComments;
7956           }
7957           leadingDetachedComments_.Add(other.leadingDetachedComments_);
7958           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7959         }
7960 
7961         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)7962         public void MergeFrom(pb::CodedInputStream input) {
7963           uint tag;
7964           while ((tag = input.ReadTag()) != 0) {
7965             switch(tag) {
7966               default:
7967                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7968                 break;
7969               case 10:
7970               case 8: {
7971                 path_.AddEntriesFrom(input, _repeated_path_codec);
7972                 break;
7973               }
7974               case 18:
7975               case 16: {
7976                 span_.AddEntriesFrom(input, _repeated_span_codec);
7977                 break;
7978               }
7979               case 26: {
7980                 LeadingComments = input.ReadString();
7981                 break;
7982               }
7983               case 34: {
7984                 TrailingComments = input.ReadString();
7985                 break;
7986               }
7987               case 50: {
7988                 leadingDetachedComments_.AddEntriesFrom(input, _repeated_leadingDetachedComments_codec);
7989                 break;
7990               }
7991             }
7992           }
7993         }
7994 
7995       }
7996 
7997     }
7998     #endregion
7999 
8000   }
8001 
8002   /// <summary>
8003   /// Describes the relationship between generated code and its original source
8004   /// file. A GeneratedCodeInfo message is associated with only one generated
8005   /// source file, but may contain references to different source .proto files.
8006   /// </summary>
8007   internal sealed partial class GeneratedCodeInfo : pb::IMessage<GeneratedCodeInfo> {
8008     private static readonly pb::MessageParser<GeneratedCodeInfo> _parser = new pb::MessageParser<GeneratedCodeInfo>(() => new GeneratedCodeInfo());
8009     private pb::UnknownFieldSet _unknownFields;
8010     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8011     public static pb::MessageParser<GeneratedCodeInfo> Parser { get { return _parser; } }
8012 
8013     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8014     public static pbr::MessageDescriptor Descriptor {
8015       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[20]; }
8016     }
8017 
8018     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8019     pbr::MessageDescriptor pb::IMessage.Descriptor {
8020       get { return Descriptor; }
8021     }
8022 
8023     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GeneratedCodeInfo()8024     public GeneratedCodeInfo() {
8025       OnConstruction();
8026     }
8027 
OnConstruction()8028     partial void OnConstruction();
8029 
8030     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GeneratedCodeInfo(GeneratedCodeInfo other)8031     public GeneratedCodeInfo(GeneratedCodeInfo other) : this() {
8032       annotation_ = other.annotation_.Clone();
8033       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
8034     }
8035 
8036     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()8037     public GeneratedCodeInfo Clone() {
8038       return new GeneratedCodeInfo(this);
8039     }
8040 
8041     /// <summary>Field number for the "annotation" field.</summary>
8042     public const int AnnotationFieldNumber = 1;
8043     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation> _repeated_annotation_codec
8044         = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation.Parser);
8045     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation> annotation_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation>();
8046     /// <summary>
8047     /// An Annotation connects some span of text in generated code to an element
8048     /// of its generating .proto file.
8049     /// </summary>
8050     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8051     public pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation> Annotation {
8052       get { return annotation_; }
8053     }
8054 
8055     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)8056     public override bool Equals(object other) {
8057       return Equals(other as GeneratedCodeInfo);
8058     }
8059 
8060     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(GeneratedCodeInfo other)8061     public bool Equals(GeneratedCodeInfo other) {
8062       if (ReferenceEquals(other, null)) {
8063         return false;
8064       }
8065       if (ReferenceEquals(other, this)) {
8066         return true;
8067       }
8068       if(!annotation_.Equals(other.annotation_)) return false;
8069       return Equals(_unknownFields, other._unknownFields);
8070     }
8071 
8072     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()8073     public override int GetHashCode() {
8074       int hash = 1;
8075       hash ^= annotation_.GetHashCode();
8076       if (_unknownFields != null) {
8077         hash ^= _unknownFields.GetHashCode();
8078       }
8079       return hash;
8080     }
8081 
8082     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()8083     public override string ToString() {
8084       return pb::JsonFormatter.ToDiagnosticString(this);
8085     }
8086 
8087     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)8088     public void WriteTo(pb::CodedOutputStream output) {
8089       annotation_.WriteTo(output, _repeated_annotation_codec);
8090       if (_unknownFields != null) {
8091         _unknownFields.WriteTo(output);
8092       }
8093     }
8094 
8095     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()8096     public int CalculateSize() {
8097       int size = 0;
8098       size += annotation_.CalculateSize(_repeated_annotation_codec);
8099       if (_unknownFields != null) {
8100         size += _unknownFields.CalculateSize();
8101       }
8102       return size;
8103     }
8104 
8105     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(GeneratedCodeInfo other)8106     public void MergeFrom(GeneratedCodeInfo other) {
8107       if (other == null) {
8108         return;
8109       }
8110       annotation_.Add(other.annotation_);
8111       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
8112     }
8113 
8114     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)8115     public void MergeFrom(pb::CodedInputStream input) {
8116       uint tag;
8117       while ((tag = input.ReadTag()) != 0) {
8118         switch(tag) {
8119           default:
8120             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
8121             break;
8122           case 10: {
8123             annotation_.AddEntriesFrom(input, _repeated_annotation_codec);
8124             break;
8125           }
8126         }
8127       }
8128     }
8129 
8130     #region Nested types
8131     /// <summary>Container for nested types declared in the GeneratedCodeInfo message type.</summary>
8132     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8133     public static partial class Types {
8134       internal sealed partial class Annotation : pb::IMessage<Annotation> {
8135         private static readonly pb::MessageParser<Annotation> _parser = new pb::MessageParser<Annotation>(() => new Annotation());
8136         private pb::UnknownFieldSet _unknownFields;
8137         private int _hasBits0;
8138         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8139         public static pb::MessageParser<Annotation> Parser { get { return _parser; } }
8140 
8141         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8142         public static pbr::MessageDescriptor Descriptor {
8143           get { return global::Google.Protobuf.Reflection.GeneratedCodeInfo.Descriptor.NestedTypes[0]; }
8144         }
8145 
8146         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8147         pbr::MessageDescriptor pb::IMessage.Descriptor {
8148           get { return Descriptor; }
8149         }
8150 
8151         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Annotation()8152         public Annotation() {
8153           OnConstruction();
8154         }
8155 
OnConstruction()8156         partial void OnConstruction();
8157 
8158         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Annotation(Annotation other)8159         public Annotation(Annotation other) : this() {
8160           _hasBits0 = other._hasBits0;
8161           path_ = other.path_.Clone();
8162           sourceFile_ = other.sourceFile_;
8163           begin_ = other.begin_;
8164           end_ = other.end_;
8165           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
8166         }
8167 
8168         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()8169         public Annotation Clone() {
8170           return new Annotation(this);
8171         }
8172 
8173         /// <summary>Field number for the "path" field.</summary>
8174         public const int PathFieldNumber = 1;
8175         private static readonly pb::FieldCodec<int> _repeated_path_codec
8176             = pb::FieldCodec.ForInt32(10);
8177         private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField<int>();
8178         /// <summary>
8179         /// Identifies the element in the original source .proto file. This field
8180         /// is formatted the same as SourceCodeInfo.Location.path.
8181         /// </summary>
8182         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8183         public pbc::RepeatedField<int> Path {
8184           get { return path_; }
8185         }
8186 
8187         /// <summary>Field number for the "source_file" field.</summary>
8188         public const int SourceFileFieldNumber = 2;
8189         private readonly static string SourceFileDefaultValue = "";
8190 
8191         private string sourceFile_;
8192         /// <summary>
8193         /// Identifies the filesystem path to the original source .proto.
8194         /// </summary>
8195         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8196         public string SourceFile {
8197           get { return sourceFile_ ?? SourceFileDefaultValue; }
8198           set {
8199             sourceFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
8200           }
8201         }
8202         /// <summary>Gets whether the "source_file" field is set</summary>
8203         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8204         public bool HasSourceFile {
8205           get { return sourceFile_ != null; }
8206         }
8207         /// <summary>Clears the value of the "source_file" field</summary>
8208         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearSourceFile()8209         public void ClearSourceFile() {
8210           sourceFile_ = null;
8211         }
8212 
8213         /// <summary>Field number for the "begin" field.</summary>
8214         public const int BeginFieldNumber = 3;
8215         private readonly static int BeginDefaultValue = 0;
8216 
8217         private int begin_;
8218         /// <summary>
8219         /// Identifies the starting offset in bytes in the generated code
8220         /// that relates to the identified object.
8221         /// </summary>
8222         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8223         public int Begin {
8224           get { if ((_hasBits0 & 1) != 0) { return begin_; } else { return BeginDefaultValue; } }
8225           set {
8226             _hasBits0 |= 1;
8227             begin_ = value;
8228           }
8229         }
8230         /// <summary>Gets whether the "begin" field is set</summary>
8231         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8232         public bool HasBegin {
8233           get { return (_hasBits0 & 1) != 0; }
8234         }
8235         /// <summary>Clears the value of the "begin" field</summary>
8236         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearBegin()8237         public void ClearBegin() {
8238           _hasBits0 &= ~1;
8239         }
8240 
8241         /// <summary>Field number for the "end" field.</summary>
8242         public const int EndFieldNumber = 4;
8243         private readonly static int EndDefaultValue = 0;
8244 
8245         private int end_;
8246         /// <summary>
8247         /// Identifies the ending offset in bytes in the generated code that
8248         /// relates to the identified offset. The end offset should be one past
8249         /// the last relevant byte (so the length of the text = end - begin).
8250         /// </summary>
8251         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8252         public int End {
8253           get { if ((_hasBits0 & 2) != 0) { return end_; } else { return EndDefaultValue; } }
8254           set {
8255             _hasBits0 |= 2;
8256             end_ = value;
8257           }
8258         }
8259         /// <summary>Gets whether the "end" field is set</summary>
8260         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8261         public bool HasEnd {
8262           get { return (_hasBits0 & 2) != 0; }
8263         }
8264         /// <summary>Clears the value of the "end" field</summary>
8265         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearEnd()8266         public void ClearEnd() {
8267           _hasBits0 &= ~2;
8268         }
8269 
8270         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)8271         public override bool Equals(object other) {
8272           return Equals(other as Annotation);
8273         }
8274 
8275         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(Annotation other)8276         public bool Equals(Annotation other) {
8277           if (ReferenceEquals(other, null)) {
8278             return false;
8279           }
8280           if (ReferenceEquals(other, this)) {
8281             return true;
8282           }
8283           if(!path_.Equals(other.path_)) return false;
8284           if (SourceFile != other.SourceFile) return false;
8285           if (Begin != other.Begin) return false;
8286           if (End != other.End) return false;
8287           return Equals(_unknownFields, other._unknownFields);
8288         }
8289 
8290         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()8291         public override int GetHashCode() {
8292           int hash = 1;
8293           hash ^= path_.GetHashCode();
8294           if (HasSourceFile) hash ^= SourceFile.GetHashCode();
8295           if (HasBegin) hash ^= Begin.GetHashCode();
8296           if (HasEnd) hash ^= End.GetHashCode();
8297           if (_unknownFields != null) {
8298             hash ^= _unknownFields.GetHashCode();
8299           }
8300           return hash;
8301         }
8302 
8303         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()8304         public override string ToString() {
8305           return pb::JsonFormatter.ToDiagnosticString(this);
8306         }
8307 
8308         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)8309         public void WriteTo(pb::CodedOutputStream output) {
8310           path_.WriteTo(output, _repeated_path_codec);
8311           if (HasSourceFile) {
8312             output.WriteRawTag(18);
8313             output.WriteString(SourceFile);
8314           }
8315           if (HasBegin) {
8316             output.WriteRawTag(24);
8317             output.WriteInt32(Begin);
8318           }
8319           if (HasEnd) {
8320             output.WriteRawTag(32);
8321             output.WriteInt32(End);
8322           }
8323           if (_unknownFields != null) {
8324             _unknownFields.WriteTo(output);
8325           }
8326         }
8327 
8328         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()8329         public int CalculateSize() {
8330           int size = 0;
8331           size += path_.CalculateSize(_repeated_path_codec);
8332           if (HasSourceFile) {
8333             size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceFile);
8334           }
8335           if (HasBegin) {
8336             size += 1 + pb::CodedOutputStream.ComputeInt32Size(Begin);
8337           }
8338           if (HasEnd) {
8339             size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
8340           }
8341           if (_unknownFields != null) {
8342             size += _unknownFields.CalculateSize();
8343           }
8344           return size;
8345         }
8346 
8347         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(Annotation other)8348         public void MergeFrom(Annotation other) {
8349           if (other == null) {
8350             return;
8351           }
8352           path_.Add(other.path_);
8353           if (other.HasSourceFile) {
8354             SourceFile = other.SourceFile;
8355           }
8356           if (other.HasBegin) {
8357             Begin = other.Begin;
8358           }
8359           if (other.HasEnd) {
8360             End = other.End;
8361           }
8362           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
8363         }
8364 
8365         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)8366         public void MergeFrom(pb::CodedInputStream input) {
8367           uint tag;
8368           while ((tag = input.ReadTag()) != 0) {
8369             switch(tag) {
8370               default:
8371                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
8372                 break;
8373               case 10:
8374               case 8: {
8375                 path_.AddEntriesFrom(input, _repeated_path_codec);
8376                 break;
8377               }
8378               case 18: {
8379                 SourceFile = input.ReadString();
8380                 break;
8381               }
8382               case 24: {
8383                 Begin = input.ReadInt32();
8384                 break;
8385               }
8386               case 32: {
8387                 End = input.ReadInt32();
8388                 break;
8389               }
8390             }
8391           }
8392         }
8393 
8394       }
8395 
8396     }
8397     #endregion
8398 
8399   }
8400 
8401   #endregion
8402 
8403 }
8404 
8405 #endregion Designer generated code
8406