• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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, 8981
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   public 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             "b3RvYnVmIlUKEUZpbGVEZXNjcmlwdG9yU2V0EjIKBGZpbGUYASADKAsyJC5n",
29             "b29nbGUucHJvdG9idWYuRmlsZURlc2NyaXB0b3JQcm90byoMCIDsyv8BEIHs",
30             "yv8BIoYEChNGaWxlRGVzY3JpcHRvclByb3RvEgwKBG5hbWUYASABKAkSDwoH",
31             "cGFja2FnZRgCIAEoCRISCgpkZXBlbmRlbmN5GAMgAygJEhkKEXB1YmxpY19k",
32             "ZXBlbmRlbmN5GAogAygFEhcKD3dlYWtfZGVwZW5kZW5jeRgLIAMoBRI2Cgxt",
33             "ZXNzYWdlX3R5cGUYBCADKAsyIC5nb29nbGUucHJvdG9idWYuRGVzY3JpcHRv",
34             "clByb3RvEjcKCWVudW1fdHlwZRgFIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5F",
35             "bnVtRGVzY3JpcHRvclByb3RvEjgKB3NlcnZpY2UYBiADKAsyJy5nb29nbGUu",
36             "cHJvdG9idWYuU2VydmljZURlc2NyaXB0b3JQcm90bxI4CglleHRlbnNpb24Y",
37             "ByADKAsyJS5nb29nbGUucHJvdG9idWYuRmllbGREZXNjcmlwdG9yUHJvdG8S",
38             "LQoHb3B0aW9ucxgIIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5GaWxlT3B0aW9u",
39             "cxI5ChBzb3VyY2VfY29kZV9pbmZvGAkgASgLMh8uZ29vZ2xlLnByb3RvYnVm",
40             "LlNvdXJjZUNvZGVJbmZvEg4KBnN5bnRheBgMIAEoCRIpCgdlZGl0aW9uGA4g",
41             "ASgOMhguZ29vZ2xlLnByb3RvYnVmLkVkaXRpb24iqQUKD0Rlc2NyaXB0b3JQ",
42             "cm90bxIMCgRuYW1lGAEgASgJEjQKBWZpZWxkGAIgAygLMiUuZ29vZ2xlLnBy",
43             "b3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvEjgKCWV4dGVuc2lvbhgGIAMo",
44             "CzIlLmdvb2dsZS5wcm90b2J1Zi5GaWVsZERlc2NyaXB0b3JQcm90bxI1Cgtu",
45             "ZXN0ZWRfdHlwZRgDIAMoCzIgLmdvb2dsZS5wcm90b2J1Zi5EZXNjcmlwdG9y",
46             "UHJvdG8SNwoJZW51bV90eXBlGAQgAygLMiQuZ29vZ2xlLnByb3RvYnVmLkVu",
47             "dW1EZXNjcmlwdG9yUHJvdG8SSAoPZXh0ZW5zaW9uX3JhbmdlGAUgAygLMi8u",
48             "Z29vZ2xlLnByb3RvYnVmLkRlc2NyaXB0b3JQcm90by5FeHRlbnNpb25SYW5n",
49             "ZRI5CgpvbmVvZl9kZWNsGAggAygLMiUuZ29vZ2xlLnByb3RvYnVmLk9uZW9m",
50             "RGVzY3JpcHRvclByb3RvEjAKB29wdGlvbnMYByABKAsyHy5nb29nbGUucHJv",
51             "dG9idWYuTWVzc2FnZU9wdGlvbnMSRgoOcmVzZXJ2ZWRfcmFuZ2UYCSADKAsy",
52             "Li5nb29nbGUucHJvdG9idWYuRGVzY3JpcHRvclByb3RvLlJlc2VydmVkUmFu",
53             "Z2USFQoNcmVzZXJ2ZWRfbmFtZRgKIAMoCRplCg5FeHRlbnNpb25SYW5nZRIN",
54             "CgVzdGFydBgBIAEoBRILCgNlbmQYAiABKAUSNwoHb3B0aW9ucxgDIAEoCzIm",
55             "Lmdvb2dsZS5wcm90b2J1Zi5FeHRlbnNpb25SYW5nZU9wdGlvbnMaKwoNUmVz",
56             "ZXJ2ZWRSYW5nZRINCgVzdGFydBgBIAEoBRILCgNlbmQYAiABKAUi5QMKFUV4",
57             "dGVuc2lvblJhbmdlT3B0aW9ucxJDChR1bmludGVycHJldGVkX29wdGlvbhjn",
58             "ByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbhJM",
59             "CgtkZWNsYXJhdGlvbhgCIAMoCzIyLmdvb2dsZS5wcm90b2J1Zi5FeHRlbnNp",
60             "b25SYW5nZU9wdGlvbnMuRGVjbGFyYXRpb25CA4gBAhItCghmZWF0dXJlcxgy",
61             "IAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5GZWF0dXJlU2V0El8KDHZlcmlmaWNh",
62             "dGlvbhgDIAEoDjI4Lmdvb2dsZS5wcm90b2J1Zi5FeHRlbnNpb25SYW5nZU9w",
63             "dGlvbnMuVmVyaWZpY2F0aW9uU3RhdGU6ClVOVkVSSUZJRURCA4gBAhpoCgtE",
64             "ZWNsYXJhdGlvbhIOCgZudW1iZXIYASABKAUSEQoJZnVsbF9uYW1lGAIgASgJ",
65             "EgwKBHR5cGUYAyABKAkSEAoIcmVzZXJ2ZWQYBSABKAgSEAoIcmVwZWF0ZWQY",
66             "BiABKAhKBAgEEAUiNAoRVmVyaWZpY2F0aW9uU3RhdGUSDwoLREVDTEFSQVRJ",
67             "T04QABIOCgpVTlZFUklGSUVEEAEqCQjoBxCAgICAAiLVBQoURmllbGREZXNj",
68             "cmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRIOCgZudW1iZXIYAyABKAUSOgoF",
69             "bGFiZWwYBCABKA4yKy5nb29nbGUucHJvdG9idWYuRmllbGREZXNjcmlwdG9y",
70             "UHJvdG8uTGFiZWwSOAoEdHlwZRgFIAEoDjIqLmdvb2dsZS5wcm90b2J1Zi5G",
71             "aWVsZERlc2NyaXB0b3JQcm90by5UeXBlEhEKCXR5cGVfbmFtZRgGIAEoCRIQ",
72             "CghleHRlbmRlZRgCIAEoCRIVCg1kZWZhdWx0X3ZhbHVlGAcgASgJEhMKC29u",
73             "ZW9mX2luZGV4GAkgASgFEhEKCWpzb25fbmFtZRgKIAEoCRIuCgdvcHRpb25z",
74             "GAggASgLMh0uZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucxIXCg9wcm90",
75             "bzNfb3B0aW9uYWwYESABKAgitgIKBFR5cGUSDwoLVFlQRV9ET1VCTEUQARIO",
76             "CgpUWVBFX0ZMT0FUEAISDgoKVFlQRV9JTlQ2NBADEg8KC1RZUEVfVUlOVDY0",
77             "EAQSDgoKVFlQRV9JTlQzMhAFEhAKDFRZUEVfRklYRUQ2NBAGEhAKDFRZUEVf",
78             "RklYRUQzMhAHEg0KCVRZUEVfQk9PTBAIEg8KC1RZUEVfU1RSSU5HEAkSDgoK",
79             "VFlQRV9HUk9VUBAKEhAKDFRZUEVfTUVTU0FHRRALEg4KClRZUEVfQllURVMQ",
80             "DBIPCgtUWVBFX1VJTlQzMhANEg0KCVRZUEVfRU5VTRAOEhEKDVRZUEVfU0ZJ",
81             "WEVEMzIQDxIRCg1UWVBFX1NGSVhFRDY0EBASDwoLVFlQRV9TSU5UMzIQERIP",
82             "CgtUWVBFX1NJTlQ2NBASIkMKBUxhYmVsEhIKDkxBQkVMX09QVElPTkFMEAES",
83             "EgoOTEFCRUxfUkVQRUFURUQQAxISCg5MQUJFTF9SRVFVSVJFRBACIlQKFE9u",
84             "ZW9mRGVzY3JpcHRvclByb3RvEgwKBG5hbWUYASABKAkSLgoHb3B0aW9ucxgC",
85             "IAEoCzIdLmdvb2dsZS5wcm90b2J1Zi5PbmVvZk9wdGlvbnMipAIKE0VudW1E",
86             "ZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRI4CgV2YWx1ZRgCIAMoCzIp",
87             "Lmdvb2dsZS5wcm90b2J1Zi5FbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8SLQoH",
88             "b3B0aW9ucxgDIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5FbnVtT3B0aW9ucxJO",
89             "Cg5yZXNlcnZlZF9yYW5nZRgEIAMoCzI2Lmdvb2dsZS5wcm90b2J1Zi5FbnVt",
90             "RGVzY3JpcHRvclByb3RvLkVudW1SZXNlcnZlZFJhbmdlEhUKDXJlc2VydmVk",
91             "X25hbWUYBSADKAkaLwoRRW51bVJlc2VydmVkUmFuZ2USDQoFc3RhcnQYASAB",
92             "KAUSCwoDZW5kGAIgASgFImwKGEVudW1WYWx1ZURlc2NyaXB0b3JQcm90bxIM",
93             "CgRuYW1lGAEgASgJEg4KBm51bWJlchgCIAEoBRIyCgdvcHRpb25zGAMgASgL",
94             "MiEuZ29vZ2xlLnByb3RvYnVmLkVudW1WYWx1ZU9wdGlvbnMikAEKFlNlcnZp",
95             "Y2VEZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRI2CgZtZXRob2QYAiAD",
96             "KAsyJi5nb29nbGUucHJvdG9idWYuTWV0aG9kRGVzY3JpcHRvclByb3RvEjAK",
97             "B29wdGlvbnMYAyABKAsyHy5nb29nbGUucHJvdG9idWYuU2VydmljZU9wdGlv",
98             "bnMiwQEKFU1ldGhvZERlc2NyaXB0b3JQcm90bxIMCgRuYW1lGAEgASgJEhIK",
99             "CmlucHV0X3R5cGUYAiABKAkSEwoLb3V0cHV0X3R5cGUYAyABKAkSLwoHb3B0",
100             "aW9ucxgEIAEoCzIeLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zEh8K",
101             "EGNsaWVudF9zdHJlYW1pbmcYBSABKAg6BWZhbHNlEh8KEHNlcnZlcl9zdHJl",
102             "YW1pbmcYBiABKAg6BWZhbHNlIssGCgtGaWxlT3B0aW9ucxIUCgxqYXZhX3Bh",
103             "Y2thZ2UYASABKAkSHAoUamF2YV9vdXRlcl9jbGFzc25hbWUYCCABKAkSIgoT",
104             "amF2YV9tdWx0aXBsZV9maWxlcxgKIAEoCDoFZmFsc2USKQodamF2YV9nZW5l",
105             "cmF0ZV9lcXVhbHNfYW5kX2hhc2gYFCABKAhCAhgBEiUKFmphdmFfc3RyaW5n",
106             "X2NoZWNrX3V0ZjgYGyABKAg6BWZhbHNlEkYKDG9wdGltaXplX2ZvchgJIAEo",
107             "DjIpLmdvb2dsZS5wcm90b2J1Zi5GaWxlT3B0aW9ucy5PcHRpbWl6ZU1vZGU6",
108             "BVNQRUVEEhIKCmdvX3BhY2thZ2UYCyABKAkSIgoTY2NfZ2VuZXJpY19zZXJ2",
109             "aWNlcxgQIAEoCDoFZmFsc2USJAoVamF2YV9nZW5lcmljX3NlcnZpY2VzGBEg",
110             "ASgIOgVmYWxzZRIiChNweV9nZW5lcmljX3NlcnZpY2VzGBIgASgIOgVmYWxz",
111             "ZRIZCgpkZXByZWNhdGVkGBcgASgIOgVmYWxzZRIeChBjY19lbmFibGVfYXJl",
112             "bmFzGB8gASgIOgR0cnVlEhkKEW9iamNfY2xhc3NfcHJlZml4GCQgASgJEhgK",
113             "EGNzaGFycF9uYW1lc3BhY2UYJSABKAkSFAoMc3dpZnRfcHJlZml4GCcgASgJ",
114             "EhgKEHBocF9jbGFzc19wcmVmaXgYKCABKAkSFQoNcGhwX25hbWVzcGFjZRgp",
115             "IAEoCRIeChZwaHBfbWV0YWRhdGFfbmFtZXNwYWNlGCwgASgJEhQKDHJ1Ynlf",
116             "cGFja2FnZRgtIAEoCRItCghmZWF0dXJlcxgyIAEoCzIbLmdvb2dsZS5wcm90",
117             "b2J1Zi5GZWF0dXJlU2V0EkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMo",
118             "CzIkLmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uIjoKDE9w",
119             "dGltaXplTW9kZRIJCgVTUEVFRBABEg0KCUNPREVfU0laRRACEhAKDExJVEVf",
120             "UlVOVElNRRADKgkI6AcQgICAgAJKBAgqECtKBAgmECdSFHBocF9nZW5lcmlj",
121             "X3NlcnZpY2VzIucCCg5NZXNzYWdlT3B0aW9ucxImChdtZXNzYWdlX3NldF93",
122             "aXJlX2Zvcm1hdBgBIAEoCDoFZmFsc2USLgofbm9fc3RhbmRhcmRfZGVzY3Jp",
123             "cHRvcl9hY2Nlc3NvchgCIAEoCDoFZmFsc2USGQoKZGVwcmVjYXRlZBgDIAEo",
124             "CDoFZmFsc2USEQoJbWFwX2VudHJ5GAcgASgIEjIKJmRlcHJlY2F0ZWRfbGVn",
125             "YWN5X2pzb25fZmllbGRfY29uZmxpY3RzGAsgASgIQgIYARItCghmZWF0dXJl",
126             "cxgMIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5GZWF0dXJlU2V0EkMKFHVuaW50",
127             "ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5Vbmlu",
128             "dGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAJKBAgEEAVKBAgFEAZKBAgGEAdK",
129             "BAgIEAlKBAgJEAoiowsKDEZpZWxkT3B0aW9ucxI6CgVjdHlwZRgBIAEoDjIj",
130             "Lmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMuQ1R5cGU6BlNUUklORxIO",
131             "CgZwYWNrZWQYAiABKAgSPwoGanN0eXBlGAYgASgOMiQuZ29vZ2xlLnByb3Rv",
132             "YnVmLkZpZWxkT3B0aW9ucy5KU1R5cGU6CUpTX05PUk1BTBITCgRsYXp5GAUg",
133             "ASgIOgVmYWxzZRIeCg91bnZlcmlmaWVkX2xhenkYDyABKAg6BWZhbHNlEhkK",
134             "CmRlcHJlY2F0ZWQYAyABKAg6BWZhbHNlEhMKBHdlYWsYCiABKAg6BWZhbHNl",
135             "EhsKDGRlYnVnX3JlZGFjdBgQIAEoCDoFZmFsc2USQAoJcmV0ZW50aW9uGBEg",
136             "ASgOMi0uZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucy5PcHRpb25SZXRl",
137             "bnRpb24SPwoHdGFyZ2V0cxgTIAMoDjIuLmdvb2dsZS5wcm90b2J1Zi5GaWVs",
138             "ZE9wdGlvbnMuT3B0aW9uVGFyZ2V0VHlwZRJGChBlZGl0aW9uX2RlZmF1bHRz",
139             "GBQgAygLMiwuZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucy5FZGl0aW9u",
140             "RGVmYXVsdBItCghmZWF0dXJlcxgVIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5G",
141             "ZWF0dXJlU2V0EkUKD2ZlYXR1cmVfc3VwcG9ydBgWIAEoCzIsLmdvb2dsZS5w",
142             "cm90b2J1Zi5GaWVsZE9wdGlvbnMuRmVhdHVyZVN1cHBvcnQSQwoUdW5pbnRl",
143             "cnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50",
144             "ZXJwcmV0ZWRPcHRpb24aSgoORWRpdGlvbkRlZmF1bHQSKQoHZWRpdGlvbhgD",
145             "IAEoDjIYLmdvb2dsZS5wcm90b2J1Zi5FZGl0aW9uEg0KBXZhbHVlGAIgASgJ",
146             "GswBCg5GZWF0dXJlU3VwcG9ydBI0ChJlZGl0aW9uX2ludHJvZHVjZWQYASAB",
147             "KA4yGC5nb29nbGUucHJvdG9idWYuRWRpdGlvbhI0ChJlZGl0aW9uX2RlcHJl",
148             "Y2F0ZWQYAiABKA4yGC5nb29nbGUucHJvdG9idWYuRWRpdGlvbhIbChNkZXBy",
149             "ZWNhdGlvbl93YXJuaW5nGAMgASgJEjEKD2VkaXRpb25fcmVtb3ZlZBgEIAEo",
150             "DjIYLmdvb2dsZS5wcm90b2J1Zi5FZGl0aW9uIi8KBUNUeXBlEgoKBlNUUklO",
151             "RxAAEggKBENPUkQQARIQCgxTVFJJTkdfUElFQ0UQAiI1CgZKU1R5cGUSDQoJ",
152             "SlNfTk9STUFMEAASDQoJSlNfU1RSSU5HEAESDQoJSlNfTlVNQkVSEAIiVQoP",
153             "T3B0aW9uUmV0ZW50aW9uEhUKEVJFVEVOVElPTl9VTktOT1dOEAASFQoRUkVU",
154             "RU5USU9OX1JVTlRJTUUQARIUChBSRVRFTlRJT05fU09VUkNFEAIijAIKEE9w",
155             "dGlvblRhcmdldFR5cGUSFwoTVEFSR0VUX1RZUEVfVU5LTk9XThAAEhQKEFRB",
156             "UkdFVF9UWVBFX0ZJTEUQARIfChtUQVJHRVRfVFlQRV9FWFRFTlNJT05fUkFO",
157             "R0UQAhIXChNUQVJHRVRfVFlQRV9NRVNTQUdFEAMSFQoRVEFSR0VUX1RZUEVf",
158             "RklFTEQQBBIVChFUQVJHRVRfVFlQRV9PTkVPRhAFEhQKEFRBUkdFVF9UWVBF",
159             "X0VOVU0QBhIaChZUQVJHRVRfVFlQRV9FTlVNX0VOVFJZEAcSFwoTVEFSR0VU",
160             "X1RZUEVfU0VSVklDRRAIEhYKElRBUkdFVF9UWVBFX01FVEhPRBAJKgkI6AcQ",
161             "gICAgAJKBAgEEAVKBAgSEBMijQEKDE9uZW9mT3B0aW9ucxItCghmZWF0dXJl",
162             "cxgBIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5GZWF0dXJlU2V0EkMKFHVuaW50",
163             "ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5Vbmlu",
164             "dGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIi9gEKC0VudW1PcHRpb25zEhMK",
165             "C2FsbG93X2FsaWFzGAIgASgIEhkKCmRlcHJlY2F0ZWQYAyABKAg6BWZhbHNl",
166             "EjIKJmRlcHJlY2F0ZWRfbGVnYWN5X2pzb25fZmllbGRfY29uZmxpY3RzGAYg",
167             "ASgIQgIYARItCghmZWF0dXJlcxgHIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5G",
168             "ZWF0dXJlU2V0EkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdv",
169             "b2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAJK",
170             "BAgFEAYikAIKEEVudW1WYWx1ZU9wdGlvbnMSGQoKZGVwcmVjYXRlZBgBIAEo",
171             "CDoFZmFsc2USLQoIZmVhdHVyZXMYAiABKAsyGy5nb29nbGUucHJvdG9idWYu",
172             "RmVhdHVyZVNldBIbCgxkZWJ1Z19yZWRhY3QYAyABKAg6BWZhbHNlEkUKD2Zl",
173             "YXR1cmVfc3VwcG9ydBgEIAEoCzIsLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9w",
174             "dGlvbnMuRmVhdHVyZVN1cHBvcnQSQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y",
175             "5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24q",
176             "CQjoBxCAgICAAiKqAQoOU2VydmljZU9wdGlvbnMSLQoIZmVhdHVyZXMYIiAB",
177             "KAsyGy5nb29nbGUucHJvdG9idWYuRmVhdHVyZVNldBIZCgpkZXByZWNhdGVk",
178             "GCEgASgIOgVmYWxzZRJDChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsy",
179             "JC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbioJCOgHEICA",
180             "gIACItwCCg1NZXRob2RPcHRpb25zEhkKCmRlcHJlY2F0ZWQYISABKAg6BWZh",
181             "bHNlEl8KEWlkZW1wb3RlbmN5X2xldmVsGCIgASgOMi8uZ29vZ2xlLnByb3Rv",
182             "YnVmLk1ldGhvZE9wdGlvbnMuSWRlbXBvdGVuY3lMZXZlbDoTSURFTVBPVEVO",
183             "Q1lfVU5LTk9XThItCghmZWF0dXJlcxgjIAEoCzIbLmdvb2dsZS5wcm90b2J1",
184             "Zi5GZWF0dXJlU2V0EkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIk",
185             "Lmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uIlAKEElkZW1w",
186             "b3RlbmN5TGV2ZWwSFwoTSURFTVBPVEVOQ1lfVU5LTk9XThAAEhMKD05PX1NJ",
187             "REVfRUZGRUNUUxABEg4KCklERU1QT1RFTlQQAioJCOgHEICAgIACIp4CChNV",
188             "bmludGVycHJldGVkT3B0aW9uEjsKBG5hbWUYAiADKAsyLS5nb29nbGUucHJv",
189             "dG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbi5OYW1lUGFydBIYChBpZGVudGlm",
190             "aWVyX3ZhbHVlGAMgASgJEhoKEnBvc2l0aXZlX2ludF92YWx1ZRgEIAEoBBIa",
191             "ChJuZWdhdGl2ZV9pbnRfdmFsdWUYBSABKAMSFAoMZG91YmxlX3ZhbHVlGAYg",
192             "ASgBEhQKDHN0cmluZ192YWx1ZRgHIAEoDBIXCg9hZ2dyZWdhdGVfdmFsdWUY",
193             "CCABKAkaMwoITmFtZVBhcnQSEQoJbmFtZV9wYXJ0GAEgAigJEhQKDGlzX2V4",
194             "dGVuc2lvbhgCIAIoCCLJCQoKRmVhdHVyZVNldBKCAQoOZmllbGRfcHJlc2Vu",
195             "Y2UYASABKA4yKS5nb29nbGUucHJvdG9idWYuRmVhdHVyZVNldC5GaWVsZFBy",
196             "ZXNlbmNlQj+IAQGYAQSYAQGiAQ0SCEVYUExJQ0lUGIQHogENEghJTVBMSUNJ",
197             "VBjnB6IBDRIIRVhQTElDSVQY6AeyAQMI6AcSYgoJZW51bV90eXBlGAIgASgO",
198             "MiQuZ29vZ2xlLnByb3RvYnVmLkZlYXR1cmVTZXQuRW51bVR5cGVCKYgBAZgB",
199             "BpgBAaIBCxIGQ0xPU0VEGIQHogEJEgRPUEVOGOcHsgEDCOgHEoEBChdyZXBl",
200             "YXRlZF9maWVsZF9lbmNvZGluZxgDIAEoDjIxLmdvb2dsZS5wcm90b2J1Zi5G",
201             "ZWF0dXJlU2V0LlJlcGVhdGVkRmllbGRFbmNvZGluZ0ItiAEBmAEEmAEBogEN",
202             "EghFWFBBTkRFRBiEB6IBCxIGUEFDS0VEGOcHsgEDCOgHEm4KD3V0ZjhfdmFs",
203             "aWRhdGlvbhgEIAEoDjIqLmdvb2dsZS5wcm90b2J1Zi5GZWF0dXJlU2V0LlV0",
204             "ZjhWYWxpZGF0aW9uQimIAQGYAQSYAQGiAQkSBE5PTkUYhAeiAQsSBlZFUklG",
205             "WRjnB7IBAwjoBxJtChBtZXNzYWdlX2VuY29kaW5nGAUgASgOMisuZ29vZ2xl",
206             "LnByb3RvYnVmLkZlYXR1cmVTZXQuTWVzc2FnZUVuY29kaW5nQiaIAQGYAQSY",
207             "AQGiARQSD0xFTkdUSF9QUkVGSVhFRBiEB7IBAwjoBxJ2Cgtqc29uX2Zvcm1h",
208             "dBgGIAEoDjImLmdvb2dsZS5wcm90b2J1Zi5GZWF0dXJlU2V0Lkpzb25Gb3Jt",
209             "YXRCOYgBAZgBA5gBBpgBAaIBFxISTEVHQUNZX0JFU1RfRUZGT1JUGIQHogEK",
210             "EgVBTExPVxjnB7IBAwjoByJcCg1GaWVsZFByZXNlbmNlEhoKFkZJRUxEX1BS",
211             "RVNFTkNFX1VOS05PV04QABIMCghFWFBMSUNJVBABEgwKCElNUExJQ0lUEAIS",
212             "EwoPTEVHQUNZX1JFUVVJUkVEEAMiNwoIRW51bVR5cGUSFQoRRU5VTV9UWVBF",
213             "X1VOS05PV04QABIICgRPUEVOEAESCgoGQ0xPU0VEEAIiVgoVUmVwZWF0ZWRG",
214             "aWVsZEVuY29kaW5nEiMKH1JFUEVBVEVEX0ZJRUxEX0VOQ09ESU5HX1VOS05P",
215             "V04QABIKCgZQQUNLRUQQARIMCghFWFBBTkRFRBACIkkKDlV0ZjhWYWxpZGF0",
216             "aW9uEhsKF1VURjhfVkFMSURBVElPTl9VTktOT1dOEAASCgoGVkVSSUZZEAIS",
217             "CAoETk9ORRADIgQIARABIlMKD01lc3NhZ2VFbmNvZGluZxIcChhNRVNTQUdF",
218             "X0VOQ09ESU5HX1VOS05PV04QABITCg9MRU5HVEhfUFJFRklYRUQQARINCglE",
219             "RUxJTUlURUQQAiJICgpKc29uRm9ybWF0EhcKE0pTT05fRk9STUFUX1VOS05P",
220             "V04QABIJCgVBTExPVxABEhYKEkxFR0FDWV9CRVNUX0VGRk9SVBACKgYI6AcQ",
221             "i04qBgiLThCQTioGCJBOEJFOSgYI5wcQ6AcimAMKEkZlYXR1cmVTZXREZWZh",
222             "dWx0cxJOCghkZWZhdWx0cxgBIAMoCzI8Lmdvb2dsZS5wcm90b2J1Zi5GZWF0",
223             "dXJlU2V0RGVmYXVsdHMuRmVhdHVyZVNldEVkaXRpb25EZWZhdWx0EjEKD21p",
224             "bmltdW1fZWRpdGlvbhgEIAEoDjIYLmdvb2dsZS5wcm90b2J1Zi5FZGl0aW9u",
225             "EjEKD21heGltdW1fZWRpdGlvbhgFIAEoDjIYLmdvb2dsZS5wcm90b2J1Zi5F",
226             "ZGl0aW9uGssBChhGZWF0dXJlU2V0RWRpdGlvbkRlZmF1bHQSKQoHZWRpdGlv",
227             "bhgDIAEoDjIYLmdvb2dsZS5wcm90b2J1Zi5FZGl0aW9uEjkKFG92ZXJyaWRh",
228             "YmxlX2ZlYXR1cmVzGAQgASgLMhsuZ29vZ2xlLnByb3RvYnVmLkZlYXR1cmVT",
229             "ZXQSMwoOZml4ZWRfZmVhdHVyZXMYBSABKAsyGy5nb29nbGUucHJvdG9idWYu",
230             "RmVhdHVyZVNldEoECAEQAkoECAIQA1IIZmVhdHVyZXMi4wEKDlNvdXJjZUNv",
231             "ZGVJbmZvEjoKCGxvY2F0aW9uGAEgAygLMiguZ29vZ2xlLnByb3RvYnVmLlNv",
232             "dXJjZUNvZGVJbmZvLkxvY2F0aW9uGoYBCghMb2NhdGlvbhIQCgRwYXRoGAEg",
233             "AygFQgIQARIQCgRzcGFuGAIgAygFQgIQARIYChBsZWFkaW5nX2NvbW1lbnRz",
234             "GAMgASgJEhkKEXRyYWlsaW5nX2NvbW1lbnRzGAQgASgJEiEKGWxlYWRpbmdf",
235             "ZGV0YWNoZWRfY29tbWVudHMYBiADKAkqDAiA7Mr/ARCB7Mr/ASKcAgoRR2Vu",
236             "ZXJhdGVkQ29kZUluZm8SQQoKYW5ub3RhdGlvbhgBIAMoCzItLmdvb2dsZS5w",
237             "cm90b2J1Zi5HZW5lcmF0ZWRDb2RlSW5mby5Bbm5vdGF0aW9uGsMBCgpBbm5v",
238             "dGF0aW9uEhAKBHBhdGgYASADKAVCAhABEhMKC3NvdXJjZV9maWxlGAIgASgJ",
239             "Eg0KBWJlZ2luGAMgASgFEgsKA2VuZBgEIAEoBRJICghzZW1hbnRpYxgFIAEo",
240             "DjI2Lmdvb2dsZS5wcm90b2J1Zi5HZW5lcmF0ZWRDb2RlSW5mby5Bbm5vdGF0",
241             "aW9uLlNlbWFudGljIigKCFNlbWFudGljEggKBE5PTkUQABIHCgNTRVQQARIJ",
242             "CgVBTElBUxACKqcCCgdFZGl0aW9uEhMKD0VESVRJT05fVU5LTk9XThAAEhMK",
243             "DkVESVRJT05fTEVHQUNZEIQHEhMKDkVESVRJT05fUFJPVE8yEOYHEhMKDkVE",
244             "SVRJT05fUFJPVE8zEOcHEhEKDEVESVRJT05fMjAyMxDoBxIRCgxFRElUSU9O",
245             "XzIwMjQQ6QcSFwoTRURJVElPTl8xX1RFU1RfT05MWRABEhcKE0VESVRJT05f",
246             "Ml9URVNUX09OTFkQAhIdChdFRElUSU9OXzk5OTk3X1RFU1RfT05MWRCdjQYS",
247             "HQoXRURJVElPTl85OTk5OF9URVNUX09OTFkQno0GEh0KF0VESVRJT05fOTk5",
248             "OTlfVEVTVF9PTkxZEJ+NBhITCgtFRElUSU9OX01BWBD/////B0J+ChNjb20u",
249             "Z29vZ2xlLnByb3RvYnVmQhBEZXNjcmlwdG9yUHJvdG9zSAFaLWdvb2dsZS5n",
250             "b2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2Rlc2NyaXB0b3JwYvgBAaICA0dQ",
251             "QqoCGkdvb2dsZS5Qcm90b2J1Zi5SZWZsZWN0aW9u"));
252       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
253           new pbr::FileDescriptor[] { },
254           new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.Reflection.Edition), }, null, new pbr::GeneratedClrTypeInfo[] {
255             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FileDescriptorSet), global::Google.Protobuf.Reflection.FileDescriptorSet.Parser, new[]{ "File" }, null, null, null, null),
256             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", "Edition" }, null, null, null, null),
257             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),
258             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)}),
259             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.ExtensionRangeOptions), global::Google.Protobuf.Reflection.ExtensionRangeOptions.Parser, new[]{ "UninterpretedOption", "Declaration", "Features", "Verification" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.ExtensionRangeOptions.Types.VerificationState) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.ExtensionRangeOptions.Types.Declaration), global::Google.Protobuf.Reflection.ExtensionRangeOptions.Types.Declaration.Parser, new[]{ "Number", "FullName", "Type", "Reserved", "Repeated" }, null, null, null, null)}),
260             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", "Proto3Optional" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type), typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label) }, null, null),
261             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.OneofDescriptorProto), global::Google.Protobuf.Reflection.OneofDescriptorProto.Parser, new[]{ "Name", "Options" }, null, null, null, null),
262             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)}),
263             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumValueDescriptorProto), global::Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser, new[]{ "Name", "Number", "Options" }, null, null, null, null),
264             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.ServiceDescriptorProto), global::Google.Protobuf.Reflection.ServiceDescriptorProto.Parser, new[]{ "Name", "Method", "Options" }, null, null, null, null),
265             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),
266             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FileOptions), global::Google.Protobuf.Reflection.FileOptions.Parser, new[]{ "JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAndHash", "JavaStringCheckUtf8", "OptimizeFor", "GoPackage", "CcGenericServices", "JavaGenericServices", "PyGenericServices", "Deprecated", "CcEnableArenas", "ObjcClassPrefix", "CsharpNamespace", "SwiftPrefix", "PhpClassPrefix", "PhpNamespace", "PhpMetadataNamespace", "RubyPackage", "Features", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) }, null, null),
267             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.MessageOptions), global::Google.Protobuf.Reflection.MessageOptions.Parser, new[]{ "MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", "MapEntry", "DeprecatedLegacyJsonFieldConflicts", "Features", "UninterpretedOption" }, null, null, null, null),
268             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FieldOptions), global::Google.Protobuf.Reflection.FieldOptions.Parser, new[]{ "Ctype", "Packed", "Jstype", "Lazy", "UnverifiedLazy", "Deprecated", "Weak", "DebugRedact", "Retention", "Targets", "EditionDefaults", "Features", "FeatureSupport", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.CType), typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.JSType), typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.OptionRetention), typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.OptionTargetType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.EditionDefault), global::Google.Protobuf.Reflection.FieldOptions.Types.EditionDefault.Parser, new[]{ "Edition", "Value" }, null, null, null, null),
269             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.FeatureSupport), global::Google.Protobuf.Reflection.FieldOptions.Types.FeatureSupport.Parser, new[]{ "EditionIntroduced", "EditionDeprecated", "DeprecationWarning", "EditionRemoved" }, null, null, null, null)}),
270             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.OneofOptions), global::Google.Protobuf.Reflection.OneofOptions.Parser, new[]{ "Features", "UninterpretedOption" }, null, null, null, null),
271             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumOptions), global::Google.Protobuf.Reflection.EnumOptions.Parser, new[]{ "AllowAlias", "Deprecated", "DeprecatedLegacyJsonFieldConflicts", "Features", "UninterpretedOption" }, null, null, null, null),
272             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumValueOptions), global::Google.Protobuf.Reflection.EnumValueOptions.Parser, new[]{ "Deprecated", "Features", "DebugRedact", "FeatureSupport", "UninterpretedOption" }, null, null, null, null),
273             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.ServiceOptions), global::Google.Protobuf.Reflection.ServiceOptions.Parser, new[]{ "Features", "Deprecated", "UninterpretedOption" }, null, null, null, null),
274             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.MethodOptions), global::Google.Protobuf.Reflection.MethodOptions.Parser, new[]{ "Deprecated", "IdempotencyLevel", "Features", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel) }, null, null),
275             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)}),
276             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FeatureSet), global::Google.Protobuf.Reflection.FeatureSet.Parser, new[]{ "FieldPresence", "EnumType", "RepeatedFieldEncoding", "Utf8Validation", "MessageEncoding", "JsonFormat" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FeatureSet.Types.FieldPresence), typeof(global::Google.Protobuf.Reflection.FeatureSet.Types.EnumType), typeof(global::Google.Protobuf.Reflection.FeatureSet.Types.RepeatedFieldEncoding), typeof(global::Google.Protobuf.Reflection.FeatureSet.Types.Utf8Validation), typeof(global::Google.Protobuf.Reflection.FeatureSet.Types.MessageEncoding), typeof(global::Google.Protobuf.Reflection.FeatureSet.Types.JsonFormat) }, null, null),
277             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FeatureSetDefaults), global::Google.Protobuf.Reflection.FeatureSetDefaults.Parser, new[]{ "Defaults", "MinimumEdition", "MaximumEdition" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FeatureSetDefaults.Types.FeatureSetEditionDefault), global::Google.Protobuf.Reflection.FeatureSetDefaults.Types.FeatureSetEditionDefault.Parser, new[]{ "Edition", "OverridableFeatures", "FixedFeatures" }, null, null, null, null)}),
278             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)}),
279             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", "Semantic" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation.Types.Semantic) }, null, null)})
280           }));
281     }
282     #endregion
283 
284   }
285   #region Enums
286   /// <summary>
287   /// The full set of known editions.
288   /// </summary>
289   public enum Edition {
290     /// <summary>
291     /// A placeholder for an unknown edition value.
292     /// </summary>
293     [pbr::OriginalName("EDITION_UNKNOWN")] Unknown = 0,
294     /// <summary>
295     /// A placeholder edition for specifying default behaviors *before* a feature
296     /// was first introduced.  This is effectively an "infinite past".
297     /// </summary>
298     [pbr::OriginalName("EDITION_LEGACY")] Legacy = 900,
299     /// <summary>
300     /// Legacy syntax "editions".  These pre-date editions, but behave much like
301     /// distinct editions.  These can't be used to specify the edition of proto
302     /// files, but feature definitions must supply proto2/proto3 defaults for
303     /// backwards compatibility.
304     /// </summary>
305     [pbr::OriginalName("EDITION_PROTO2")] Proto2 = 998,
306     [pbr::OriginalName("EDITION_PROTO3")] Proto3 = 999,
307     /// <summary>
308     /// Editions that have been released.  The specific values are arbitrary and
309     /// should not be depended on, but they will always be time-ordered for easy
310     /// comparison.
311     /// </summary>
312     [pbr::OriginalName("EDITION_2023")] _2023 = 1000,
313     [pbr::OriginalName("EDITION_2024")] _2024 = 1001,
314     /// <summary>
315     /// Placeholder editions for testing feature resolution.  These should not be
316     /// used or relied on outside of tests.
317     /// </summary>
318     [pbr::OriginalName("EDITION_1_TEST_ONLY")] _1TestOnly = 1,
319     [pbr::OriginalName("EDITION_2_TEST_ONLY")] _2TestOnly = 2,
320     [pbr::OriginalName("EDITION_99997_TEST_ONLY")] _99997TestOnly = 99997,
321     [pbr::OriginalName("EDITION_99998_TEST_ONLY")] _99998TestOnly = 99998,
322     [pbr::OriginalName("EDITION_99999_TEST_ONLY")] _99999TestOnly = 99999,
323     /// <summary>
324     /// Placeholder for specifying unbounded edition support.  This should only
325     /// ever be used by plugins that can expect to never require any changes to
326     /// support a new edition.
327     /// </summary>
328     [pbr::OriginalName("EDITION_MAX")] Max = 2147483647,
329   }
330 
331   #endregion
332 
333   #region Messages
334   /// <summary>
335   /// The protocol compiler can output a FileDescriptorSet containing the .proto
336   /// files it parses.
337   /// </summary>
338   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
339   public sealed partial class FileDescriptorSet : pb::IExtendableMessage<FileDescriptorSet>
340   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
341       , pb::IBufferMessage
342   #endif
343   {
344     private static readonly pb::MessageParser<FileDescriptorSet> _parser = new pb::MessageParser<FileDescriptorSet>(() => new FileDescriptorSet());
345     private pb::UnknownFieldSet _unknownFields;
346     internal pb::ExtensionSet<FileDescriptorSet> _extensions;
347     private pb::ExtensionSet<FileDescriptorSet> _Extensions { get { return _extensions; } }
348     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
349     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
350     public static pb::MessageParser<FileDescriptorSet> Parser { get { return _parser; } }
351 
352     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
353     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
354     public static pbr::MessageDescriptor Descriptor {
355       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[0]; }
356     }
357 
358     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
359     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
360     pbr::MessageDescriptor pb::IMessage.Descriptor {
361       get { return Descriptor; }
362     }
363 
364     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
365     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FileDescriptorSet()366     public FileDescriptorSet() {
367       OnConstruction();
368     }
369 
OnConstruction()370     partial void OnConstruction();
371 
372     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
373     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FileDescriptorSet(FileDescriptorSet other)374     public FileDescriptorSet(FileDescriptorSet other) : this() {
375       file_ = other.file_.Clone();
376       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
377       _extensions = pb::ExtensionSet.Clone(other._extensions);
378     }
379 
380     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
381     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()382     public FileDescriptorSet Clone() {
383       return new FileDescriptorSet(this);
384     }
385 
386     /// <summary>Field number for the "file" field.</summary>
387     public const int FileFieldNumber = 1;
388     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FileDescriptorProto> _repeated_file_codec
389         = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.FileDescriptorProto.Parser);
390     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> file_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto>();
391     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
392     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
393     public pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> File {
394       get { return file_; }
395     }
396 
397     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
398     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)399     public override bool Equals(object other) {
400       return Equals(other as FileDescriptorSet);
401     }
402 
403     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
404     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(FileDescriptorSet other)405     public bool Equals(FileDescriptorSet other) {
406       if (ReferenceEquals(other, null)) {
407         return false;
408       }
409       if (ReferenceEquals(other, this)) {
410         return true;
411       }
412       if(!file_.Equals(other.file_)) return false;
413       if (!Equals(_extensions, other._extensions)) {
414         return false;
415       }
416       return Equals(_unknownFields, other._unknownFields);
417     }
418 
419     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
420     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()421     public override int GetHashCode() {
422       int hash = 1;
423       hash ^= file_.GetHashCode();
424       if (_extensions != null) {
425         hash ^= _extensions.GetHashCode();
426       }
427       if (_unknownFields != null) {
428         hash ^= _unknownFields.GetHashCode();
429       }
430       return hash;
431     }
432 
433     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
434     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()435     public override string ToString() {
436       return pb::JsonFormatter.ToDiagnosticString(this);
437     }
438 
439     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
440     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)441     public void WriteTo(pb::CodedOutputStream output) {
442     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
443       output.WriteRawMessage(this);
444     #else
445       file_.WriteTo(output, _repeated_file_codec);
446       if (_extensions != null) {
447         _extensions.WriteTo(output);
448       }
449       if (_unknownFields != null) {
450         _unknownFields.WriteTo(output);
451       }
452     #endif
453     }
454 
455     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
456     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
457     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)458     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
459       file_.WriteTo(ref output, _repeated_file_codec);
460       if (_extensions != null) {
461         _extensions.WriteTo(ref output);
462       }
463       if (_unknownFields != null) {
464         _unknownFields.WriteTo(ref output);
465       }
466     }
467     #endif
468 
469     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
470     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()471     public int CalculateSize() {
472       int size = 0;
473       size += file_.CalculateSize(_repeated_file_codec);
474       if (_extensions != null) {
475         size += _extensions.CalculateSize();
476       }
477       if (_unknownFields != null) {
478         size += _unknownFields.CalculateSize();
479       }
480       return size;
481     }
482 
483     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
484     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(FileDescriptorSet other)485     public void MergeFrom(FileDescriptorSet other) {
486       if (other == null) {
487         return;
488       }
489       file_.Add(other.file_);
490       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
491       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
492     }
493 
494     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
495     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)496     public void MergeFrom(pb::CodedInputStream input) {
497     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
498       input.ReadRawMessage(this);
499     #else
500       uint tag;
501       while ((tag = input.ReadTag()) != 0) {
502       if ((tag & 7) == 4) {
503         // Abort on any end group tag.
504         return;
505       }
506       switch(tag) {
507           default:
508             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
509               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
510             }
511             break;
512           case 10: {
513             file_.AddEntriesFrom(input, _repeated_file_codec);
514             break;
515           }
516         }
517       }
518     #endif
519     }
520 
521     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
522     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
523     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)524     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
525       uint tag;
526       while ((tag = input.ReadTag()) != 0) {
527       if ((tag & 7) == 4) {
528         // Abort on any end group tag.
529         return;
530       }
531       switch(tag) {
532           default:
533             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
534               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
535             }
536             break;
537           case 10: {
538             file_.AddEntriesFrom(ref input, _repeated_file_codec);
539             break;
540           }
541         }
542       }
543     }
544     #endif
545 
GetExtension(pb::Extension<FileDescriptorSet, TValue> extension)546     public TValue GetExtension<TValue>(pb::Extension<FileDescriptorSet, TValue> extension) {
547       return pb::ExtensionSet.Get(ref _extensions, extension);
548     }
GetExtension(pb::RepeatedExtension<FileDescriptorSet, TValue> extension)549     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<FileDescriptorSet, TValue> extension) {
550       return pb::ExtensionSet.Get(ref _extensions, extension);
551     }
GetOrInitializeExtension(pb::RepeatedExtension<FileDescriptorSet, TValue> extension)552     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<FileDescriptorSet, TValue> extension) {
553       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
554     }
SetExtension(pb::Extension<FileDescriptorSet, TValue> extension, TValue value)555     public void SetExtension<TValue>(pb::Extension<FileDescriptorSet, TValue> extension, TValue value) {
556       pb::ExtensionSet.Set(ref _extensions, extension, value);
557     }
HasExtension(pb::Extension<FileDescriptorSet, TValue> extension)558     public bool HasExtension<TValue>(pb::Extension<FileDescriptorSet, TValue> extension) {
559       return pb::ExtensionSet.Has(ref _extensions, extension);
560     }
ClearExtension(pb::Extension<FileDescriptorSet, TValue> extension)561     public void ClearExtension<TValue>(pb::Extension<FileDescriptorSet, TValue> extension) {
562       pb::ExtensionSet.Clear(ref _extensions, extension);
563     }
ClearExtension(pb::RepeatedExtension<FileDescriptorSet, TValue> extension)564     public void ClearExtension<TValue>(pb::RepeatedExtension<FileDescriptorSet, TValue> extension) {
565       pb::ExtensionSet.Clear(ref _extensions, extension);
566     }
567 
568   }
569 
570   /// <summary>
571   /// Describes a complete .proto file.
572   /// </summary>
573   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
574   public sealed partial class FileDescriptorProto : pb::IMessage<FileDescriptorProto>
575   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
576       , pb::IBufferMessage
577   #endif
578   {
579     private static readonly pb::MessageParser<FileDescriptorProto> _parser = new pb::MessageParser<FileDescriptorProto>(() => new FileDescriptorProto());
580     private pb::UnknownFieldSet _unknownFields;
581     private int _hasBits0;
582     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
583     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
584     public static pb::MessageParser<FileDescriptorProto> Parser { get { return _parser; } }
585 
586     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
587     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
588     public static pbr::MessageDescriptor Descriptor {
589       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[1]; }
590     }
591 
592     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
593     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
594     pbr::MessageDescriptor pb::IMessage.Descriptor {
595       get { return Descriptor; }
596     }
597 
598     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
599     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FileDescriptorProto()600     public FileDescriptorProto() {
601       OnConstruction();
602     }
603 
OnConstruction()604     partial void OnConstruction();
605 
606     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
607     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FileDescriptorProto(FileDescriptorProto other)608     public FileDescriptorProto(FileDescriptorProto other) : this() {
609       _hasBits0 = other._hasBits0;
610       name_ = other.name_;
611       package_ = other.package_;
612       dependency_ = other.dependency_.Clone();
613       publicDependency_ = other.publicDependency_.Clone();
614       weakDependency_ = other.weakDependency_.Clone();
615       messageType_ = other.messageType_.Clone();
616       enumType_ = other.enumType_.Clone();
617       service_ = other.service_.Clone();
618       extension_ = other.extension_.Clone();
619       options_ = other.options_ != null ? other.options_.Clone() : null;
620       sourceCodeInfo_ = other.sourceCodeInfo_ != null ? other.sourceCodeInfo_.Clone() : null;
621       syntax_ = other.syntax_;
622       edition_ = other.edition_;
623       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
624     }
625 
626     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
627     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()628     public FileDescriptorProto Clone() {
629       return new FileDescriptorProto(this);
630     }
631 
632     /// <summary>Field number for the "name" field.</summary>
633     public const int NameFieldNumber = 1;
634     private readonly static string NameDefaultValue = "";
635 
636     private string name_;
637     /// <summary>
638     /// file name, relative to root of source tree
639     /// </summary>
640     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
641     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
642     public string Name {
643       get { return name_ ?? NameDefaultValue; }
644       set {
645         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
646       }
647     }
648     /// <summary>Gets whether the "name" field is set</summary>
649     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
650     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
651     public bool HasName {
652       get { return name_ != null; }
653     }
654     /// <summary>Clears the value of the "name" field</summary>
655     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
656     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearName()657     public void ClearName() {
658       name_ = null;
659     }
660 
661     /// <summary>Field number for the "package" field.</summary>
662     public const int PackageFieldNumber = 2;
663     private readonly static string PackageDefaultValue = "";
664 
665     private string package_;
666     /// <summary>
667     /// e.g. "foo", "foo.bar", etc.
668     /// </summary>
669     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
670     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
671     public string Package {
672       get { return package_ ?? PackageDefaultValue; }
673       set {
674         package_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
675       }
676     }
677     /// <summary>Gets whether the "package" field is set</summary>
678     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
679     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
680     public bool HasPackage {
681       get { return package_ != null; }
682     }
683     /// <summary>Clears the value of the "package" field</summary>
684     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
685     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearPackage()686     public void ClearPackage() {
687       package_ = null;
688     }
689 
690     /// <summary>Field number for the "dependency" field.</summary>
691     public const int DependencyFieldNumber = 3;
692     private static readonly pb::FieldCodec<string> _repeated_dependency_codec
693         = pb::FieldCodec.ForString(26);
694     private readonly pbc::RepeatedField<string> dependency_ = new pbc::RepeatedField<string>();
695     /// <summary>
696     /// Names of files imported by this file.
697     /// </summary>
698     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
699     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
700     public pbc::RepeatedField<string> Dependency {
701       get { return dependency_; }
702     }
703 
704     /// <summary>Field number for the "public_dependency" field.</summary>
705     public const int PublicDependencyFieldNumber = 10;
706     private static readonly pb::FieldCodec<int> _repeated_publicDependency_codec
707         = pb::FieldCodec.ForInt32(80);
708     private readonly pbc::RepeatedField<int> publicDependency_ = new pbc::RepeatedField<int>();
709     /// <summary>
710     /// Indexes of the public imported files in the dependency list above.
711     /// </summary>
712     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
713     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
714     public pbc::RepeatedField<int> PublicDependency {
715       get { return publicDependency_; }
716     }
717 
718     /// <summary>Field number for the "weak_dependency" field.</summary>
719     public const int WeakDependencyFieldNumber = 11;
720     private static readonly pb::FieldCodec<int> _repeated_weakDependency_codec
721         = pb::FieldCodec.ForInt32(88);
722     private readonly pbc::RepeatedField<int> weakDependency_ = new pbc::RepeatedField<int>();
723     /// <summary>
724     /// Indexes of the weak imported files in the dependency list.
725     /// For Google-internal migration only. Do not use.
726     /// </summary>
727     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
728     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
729     public pbc::RepeatedField<int> WeakDependency {
730       get { return weakDependency_; }
731     }
732 
733     /// <summary>Field number for the "message_type" field.</summary>
734     public const int MessageTypeFieldNumber = 4;
735     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_messageType_codec
736         = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.DescriptorProto.Parser);
737     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> messageType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>();
738     /// <summary>
739     /// All top-level definitions in this file.
740     /// </summary>
741     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
742     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
743     public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> MessageType {
744       get { return messageType_; }
745     }
746 
747     /// <summary>Field number for the "enum_type" field.</summary>
748     public const int EnumTypeFieldNumber = 5;
749     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec
750         = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser);
751     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>();
752     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
753     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
754     public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType {
755       get { return enumType_; }
756     }
757 
758     /// <summary>Field number for the "service" field.</summary>
759     public const int ServiceFieldNumber = 6;
760     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.ServiceDescriptorProto> _repeated_service_codec
761         = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.ServiceDescriptorProto.Parser);
762     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> service_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto>();
763     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
764     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
765     public pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> Service {
766       get { return service_; }
767     }
768 
769     /// <summary>Field number for the "extension" field.</summary>
770     public const int ExtensionFieldNumber = 7;
771     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec
772         = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
773     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
774     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
775     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
776     public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension {
777       get { return extension_; }
778     }
779 
780     /// <summary>Field number for the "options" field.</summary>
781     public const int OptionsFieldNumber = 8;
782     private global::Google.Protobuf.Reflection.FileOptions options_;
783     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
784     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
785     public global::Google.Protobuf.Reflection.FileOptions Options {
786       get { return options_; }
787       set {
788         options_ = value;
789       }
790     }
791 
792     /// <summary>Field number for the "source_code_info" field.</summary>
793     public const int SourceCodeInfoFieldNumber = 9;
794     private global::Google.Protobuf.Reflection.SourceCodeInfo sourceCodeInfo_;
795     /// <summary>
796     /// This field contains optional information about the original source code.
797     /// You may safely remove this entire field without harming runtime
798     /// functionality of the descriptors -- the information is needed only by
799     /// development tools.
800     /// </summary>
801     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
802     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
803     public global::Google.Protobuf.Reflection.SourceCodeInfo SourceCodeInfo {
804       get { return sourceCodeInfo_; }
805       set {
806         sourceCodeInfo_ = value;
807       }
808     }
809 
810     /// <summary>Field number for the "syntax" field.</summary>
811     public const int SyntaxFieldNumber = 12;
812     private readonly static string SyntaxDefaultValue = "";
813 
814     private string syntax_;
815     /// <summary>
816     /// The syntax of the proto file.
817     /// The supported values are "proto2", "proto3", and "editions".
818     ///
819     /// If `edition` is present, this value must be "editions".
820     /// </summary>
821     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
822     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
823     public string Syntax {
824       get { return syntax_ ?? SyntaxDefaultValue; }
825       set {
826         syntax_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
827       }
828     }
829     /// <summary>Gets whether the "syntax" field is set</summary>
830     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
831     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
832     public bool HasSyntax {
833       get { return syntax_ != null; }
834     }
835     /// <summary>Clears the value of the "syntax" field</summary>
836     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
837     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearSyntax()838     public void ClearSyntax() {
839       syntax_ = null;
840     }
841 
842     /// <summary>Field number for the "edition" field.</summary>
843     public const int EditionFieldNumber = 14;
844     private readonly static global::Google.Protobuf.Reflection.Edition EditionDefaultValue = global::Google.Protobuf.Reflection.Edition.Unknown;
845 
846     private global::Google.Protobuf.Reflection.Edition edition_;
847     /// <summary>
848     /// The edition of the proto file.
849     /// </summary>
850     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
851     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
852     public global::Google.Protobuf.Reflection.Edition Edition {
853       get { if ((_hasBits0 & 1) != 0) { return edition_; } else { return EditionDefaultValue; } }
854       set {
855         _hasBits0 |= 1;
856         edition_ = value;
857       }
858     }
859     /// <summary>Gets whether the "edition" field is set</summary>
860     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
861     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
862     public bool HasEdition {
863       get { return (_hasBits0 & 1) != 0; }
864     }
865     /// <summary>Clears the value of the "edition" field</summary>
866     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
867     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearEdition()868     public void ClearEdition() {
869       _hasBits0 &= ~1;
870     }
871 
872     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
873     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)874     public override bool Equals(object other) {
875       return Equals(other as FileDescriptorProto);
876     }
877 
878     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
879     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(FileDescriptorProto other)880     public bool Equals(FileDescriptorProto other) {
881       if (ReferenceEquals(other, null)) {
882         return false;
883       }
884       if (ReferenceEquals(other, this)) {
885         return true;
886       }
887       if (Name != other.Name) return false;
888       if (Package != other.Package) return false;
889       if(!dependency_.Equals(other.dependency_)) return false;
890       if(!publicDependency_.Equals(other.publicDependency_)) return false;
891       if(!weakDependency_.Equals(other.weakDependency_)) return false;
892       if(!messageType_.Equals(other.messageType_)) return false;
893       if(!enumType_.Equals(other.enumType_)) return false;
894       if(!service_.Equals(other.service_)) return false;
895       if(!extension_.Equals(other.extension_)) return false;
896       if (!object.Equals(Options, other.Options)) return false;
897       if (!object.Equals(SourceCodeInfo, other.SourceCodeInfo)) return false;
898       if (Syntax != other.Syntax) return false;
899       if (Edition != other.Edition) return false;
900       return Equals(_unknownFields, other._unknownFields);
901     }
902 
903     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
904     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()905     public override int GetHashCode() {
906       int hash = 1;
907       if (HasName) hash ^= Name.GetHashCode();
908       if (HasPackage) hash ^= Package.GetHashCode();
909       hash ^= dependency_.GetHashCode();
910       hash ^= publicDependency_.GetHashCode();
911       hash ^= weakDependency_.GetHashCode();
912       hash ^= messageType_.GetHashCode();
913       hash ^= enumType_.GetHashCode();
914       hash ^= service_.GetHashCode();
915       hash ^= extension_.GetHashCode();
916       if (options_ != null) hash ^= Options.GetHashCode();
917       if (sourceCodeInfo_ != null) hash ^= SourceCodeInfo.GetHashCode();
918       if (HasSyntax) hash ^= Syntax.GetHashCode();
919       if (HasEdition) hash ^= Edition.GetHashCode();
920       if (_unknownFields != null) {
921         hash ^= _unknownFields.GetHashCode();
922       }
923       return hash;
924     }
925 
926     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
927     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()928     public override string ToString() {
929       return pb::JsonFormatter.ToDiagnosticString(this);
930     }
931 
932     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
933     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)934     public void WriteTo(pb::CodedOutputStream output) {
935     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
936       output.WriteRawMessage(this);
937     #else
938       if (HasName) {
939         output.WriteRawTag(10);
940         output.WriteString(Name);
941       }
942       if (HasPackage) {
943         output.WriteRawTag(18);
944         output.WriteString(Package);
945       }
946       dependency_.WriteTo(output, _repeated_dependency_codec);
947       messageType_.WriteTo(output, _repeated_messageType_codec);
948       enumType_.WriteTo(output, _repeated_enumType_codec);
949       service_.WriteTo(output, _repeated_service_codec);
950       extension_.WriteTo(output, _repeated_extension_codec);
951       if (options_ != null) {
952         output.WriteRawTag(66);
953         output.WriteMessage(Options);
954       }
955       if (sourceCodeInfo_ != null) {
956         output.WriteRawTag(74);
957         output.WriteMessage(SourceCodeInfo);
958       }
959       publicDependency_.WriteTo(output, _repeated_publicDependency_codec);
960       weakDependency_.WriteTo(output, _repeated_weakDependency_codec);
961       if (HasSyntax) {
962         output.WriteRawTag(98);
963         output.WriteString(Syntax);
964       }
965       if (HasEdition) {
966         output.WriteRawTag(112);
967         output.WriteEnum((int) Edition);
968       }
969       if (_unknownFields != null) {
970         _unknownFields.WriteTo(output);
971       }
972     #endif
973     }
974 
975     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
976     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
977     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)978     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
979       if (HasName) {
980         output.WriteRawTag(10);
981         output.WriteString(Name);
982       }
983       if (HasPackage) {
984         output.WriteRawTag(18);
985         output.WriteString(Package);
986       }
987       dependency_.WriteTo(ref output, _repeated_dependency_codec);
988       messageType_.WriteTo(ref output, _repeated_messageType_codec);
989       enumType_.WriteTo(ref output, _repeated_enumType_codec);
990       service_.WriteTo(ref output, _repeated_service_codec);
991       extension_.WriteTo(ref output, _repeated_extension_codec);
992       if (options_ != null) {
993         output.WriteRawTag(66);
994         output.WriteMessage(Options);
995       }
996       if (sourceCodeInfo_ != null) {
997         output.WriteRawTag(74);
998         output.WriteMessage(SourceCodeInfo);
999       }
1000       publicDependency_.WriteTo(ref output, _repeated_publicDependency_codec);
1001       weakDependency_.WriteTo(ref output, _repeated_weakDependency_codec);
1002       if (HasSyntax) {
1003         output.WriteRawTag(98);
1004         output.WriteString(Syntax);
1005       }
1006       if (HasEdition) {
1007         output.WriteRawTag(112);
1008         output.WriteEnum((int) Edition);
1009       }
1010       if (_unknownFields != null) {
1011         _unknownFields.WriteTo(ref output);
1012       }
1013     }
1014     #endif
1015 
1016     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1017     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()1018     public int CalculateSize() {
1019       int size = 0;
1020       if (HasName) {
1021         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
1022       }
1023       if (HasPackage) {
1024         size += 1 + pb::CodedOutputStream.ComputeStringSize(Package);
1025       }
1026       size += dependency_.CalculateSize(_repeated_dependency_codec);
1027       size += publicDependency_.CalculateSize(_repeated_publicDependency_codec);
1028       size += weakDependency_.CalculateSize(_repeated_weakDependency_codec);
1029       size += messageType_.CalculateSize(_repeated_messageType_codec);
1030       size += enumType_.CalculateSize(_repeated_enumType_codec);
1031       size += service_.CalculateSize(_repeated_service_codec);
1032       size += extension_.CalculateSize(_repeated_extension_codec);
1033       if (options_ != null) {
1034         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
1035       }
1036       if (sourceCodeInfo_ != null) {
1037         size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceCodeInfo);
1038       }
1039       if (HasSyntax) {
1040         size += 1 + pb::CodedOutputStream.ComputeStringSize(Syntax);
1041       }
1042       if (HasEdition) {
1043         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Edition);
1044       }
1045       if (_unknownFields != null) {
1046         size += _unknownFields.CalculateSize();
1047       }
1048       return size;
1049     }
1050 
1051     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1052     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(FileDescriptorProto other)1053     public void MergeFrom(FileDescriptorProto other) {
1054       if (other == null) {
1055         return;
1056       }
1057       if (other.HasName) {
1058         Name = other.Name;
1059       }
1060       if (other.HasPackage) {
1061         Package = other.Package;
1062       }
1063       dependency_.Add(other.dependency_);
1064       publicDependency_.Add(other.publicDependency_);
1065       weakDependency_.Add(other.weakDependency_);
1066       messageType_.Add(other.messageType_);
1067       enumType_.Add(other.enumType_);
1068       service_.Add(other.service_);
1069       extension_.Add(other.extension_);
1070       if (other.options_ != null) {
1071         if (options_ == null) {
1072           Options = new global::Google.Protobuf.Reflection.FileOptions();
1073         }
1074         Options.MergeFrom(other.Options);
1075       }
1076       if (other.sourceCodeInfo_ != null) {
1077         if (sourceCodeInfo_ == null) {
1078           SourceCodeInfo = new global::Google.Protobuf.Reflection.SourceCodeInfo();
1079         }
1080         SourceCodeInfo.MergeFrom(other.SourceCodeInfo);
1081       }
1082       if (other.HasSyntax) {
1083         Syntax = other.Syntax;
1084       }
1085       if (other.HasEdition) {
1086         Edition = other.Edition;
1087       }
1088       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1089     }
1090 
1091     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1092     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)1093     public void MergeFrom(pb::CodedInputStream input) {
1094     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1095       input.ReadRawMessage(this);
1096     #else
1097       uint tag;
1098       while ((tag = input.ReadTag()) != 0) {
1099       if ((tag & 7) == 4) {
1100         // Abort on any end group tag.
1101         return;
1102       }
1103       switch(tag) {
1104           default:
1105             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1106             break;
1107           case 10: {
1108             Name = input.ReadString();
1109             break;
1110           }
1111           case 18: {
1112             Package = input.ReadString();
1113             break;
1114           }
1115           case 26: {
1116             dependency_.AddEntriesFrom(input, _repeated_dependency_codec);
1117             break;
1118           }
1119           case 34: {
1120             messageType_.AddEntriesFrom(input, _repeated_messageType_codec);
1121             break;
1122           }
1123           case 42: {
1124             enumType_.AddEntriesFrom(input, _repeated_enumType_codec);
1125             break;
1126           }
1127           case 50: {
1128             service_.AddEntriesFrom(input, _repeated_service_codec);
1129             break;
1130           }
1131           case 58: {
1132             extension_.AddEntriesFrom(input, _repeated_extension_codec);
1133             break;
1134           }
1135           case 66: {
1136             if (options_ == null) {
1137               Options = new global::Google.Protobuf.Reflection.FileOptions();
1138             }
1139             input.ReadMessage(Options);
1140             break;
1141           }
1142           case 74: {
1143             if (sourceCodeInfo_ == null) {
1144               SourceCodeInfo = new global::Google.Protobuf.Reflection.SourceCodeInfo();
1145             }
1146             input.ReadMessage(SourceCodeInfo);
1147             break;
1148           }
1149           case 82:
1150           case 80: {
1151             publicDependency_.AddEntriesFrom(input, _repeated_publicDependency_codec);
1152             break;
1153           }
1154           case 90:
1155           case 88: {
1156             weakDependency_.AddEntriesFrom(input, _repeated_weakDependency_codec);
1157             break;
1158           }
1159           case 98: {
1160             Syntax = input.ReadString();
1161             break;
1162           }
1163           case 112: {
1164             Edition = (global::Google.Protobuf.Reflection.Edition) input.ReadEnum();
1165             break;
1166           }
1167         }
1168       }
1169     #endif
1170     }
1171 
1172     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1173     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1174     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1175     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1176       uint tag;
1177       while ((tag = input.ReadTag()) != 0) {
1178       if ((tag & 7) == 4) {
1179         // Abort on any end group tag.
1180         return;
1181       }
1182       switch(tag) {
1183           default:
1184             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1185             break;
1186           case 10: {
1187             Name = input.ReadString();
1188             break;
1189           }
1190           case 18: {
1191             Package = input.ReadString();
1192             break;
1193           }
1194           case 26: {
1195             dependency_.AddEntriesFrom(ref input, _repeated_dependency_codec);
1196             break;
1197           }
1198           case 34: {
1199             messageType_.AddEntriesFrom(ref input, _repeated_messageType_codec);
1200             break;
1201           }
1202           case 42: {
1203             enumType_.AddEntriesFrom(ref input, _repeated_enumType_codec);
1204             break;
1205           }
1206           case 50: {
1207             service_.AddEntriesFrom(ref input, _repeated_service_codec);
1208             break;
1209           }
1210           case 58: {
1211             extension_.AddEntriesFrom(ref input, _repeated_extension_codec);
1212             break;
1213           }
1214           case 66: {
1215             if (options_ == null) {
1216               Options = new global::Google.Protobuf.Reflection.FileOptions();
1217             }
1218             input.ReadMessage(Options);
1219             break;
1220           }
1221           case 74: {
1222             if (sourceCodeInfo_ == null) {
1223               SourceCodeInfo = new global::Google.Protobuf.Reflection.SourceCodeInfo();
1224             }
1225             input.ReadMessage(SourceCodeInfo);
1226             break;
1227           }
1228           case 82:
1229           case 80: {
1230             publicDependency_.AddEntriesFrom(ref input, _repeated_publicDependency_codec);
1231             break;
1232           }
1233           case 90:
1234           case 88: {
1235             weakDependency_.AddEntriesFrom(ref input, _repeated_weakDependency_codec);
1236             break;
1237           }
1238           case 98: {
1239             Syntax = input.ReadString();
1240             break;
1241           }
1242           case 112: {
1243             Edition = (global::Google.Protobuf.Reflection.Edition) input.ReadEnum();
1244             break;
1245           }
1246         }
1247       }
1248     }
1249     #endif
1250 
1251   }
1252 
1253   /// <summary>
1254   /// Describes a message type.
1255   /// </summary>
1256   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
1257   public sealed partial class DescriptorProto : pb::IMessage<DescriptorProto>
1258   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1259       , pb::IBufferMessage
1260   #endif
1261   {
1262     private static readonly pb::MessageParser<DescriptorProto> _parser = new pb::MessageParser<DescriptorProto>(() => new DescriptorProto());
1263     private pb::UnknownFieldSet _unknownFields;
1264     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1265     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1266     public static pb::MessageParser<DescriptorProto> Parser { get { return _parser; } }
1267 
1268     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1269     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1270     public static pbr::MessageDescriptor Descriptor {
1271       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[2]; }
1272     }
1273 
1274     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1275     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1276     pbr::MessageDescriptor pb::IMessage.Descriptor {
1277       get { return Descriptor; }
1278     }
1279 
1280     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1281     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
DescriptorProto()1282     public DescriptorProto() {
1283       OnConstruction();
1284     }
1285 
OnConstruction()1286     partial void OnConstruction();
1287 
1288     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1289     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
DescriptorProto(DescriptorProto other)1290     public DescriptorProto(DescriptorProto other) : this() {
1291       name_ = other.name_;
1292       field_ = other.field_.Clone();
1293       extension_ = other.extension_.Clone();
1294       nestedType_ = other.nestedType_.Clone();
1295       enumType_ = other.enumType_.Clone();
1296       extensionRange_ = other.extensionRange_.Clone();
1297       oneofDecl_ = other.oneofDecl_.Clone();
1298       options_ = other.options_ != null ? other.options_.Clone() : null;
1299       reservedRange_ = other.reservedRange_.Clone();
1300       reservedName_ = other.reservedName_.Clone();
1301       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1302     }
1303 
1304     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1305     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()1306     public DescriptorProto Clone() {
1307       return new DescriptorProto(this);
1308     }
1309 
1310     /// <summary>Field number for the "name" field.</summary>
1311     public const int NameFieldNumber = 1;
1312     private readonly static string NameDefaultValue = "";
1313 
1314     private string name_;
1315     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1316     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1317     public string Name {
1318       get { return name_ ?? NameDefaultValue; }
1319       set {
1320         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1321       }
1322     }
1323     /// <summary>Gets whether the "name" field is set</summary>
1324     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1325     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1326     public bool HasName {
1327       get { return name_ != null; }
1328     }
1329     /// <summary>Clears the value of the "name" field</summary>
1330     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1331     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearName()1332     public void ClearName() {
1333       name_ = null;
1334     }
1335 
1336     /// <summary>Field number for the "field" field.</summary>
1337     public const int FieldFieldNumber = 2;
1338     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_field_codec
1339         = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
1340     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> field_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
1341     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1342     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1343     public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Field {
1344       get { return field_; }
1345     }
1346 
1347     /// <summary>Field number for the "extension" field.</summary>
1348     public const int ExtensionFieldNumber = 6;
1349     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec
1350         = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
1351     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
1352     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1353     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1354     public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension {
1355       get { return extension_; }
1356     }
1357 
1358     /// <summary>Field number for the "nested_type" field.</summary>
1359     public const int NestedTypeFieldNumber = 3;
1360     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_nestedType_codec
1361         = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.Reflection.DescriptorProto.Parser);
1362     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> nestedType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>();
1363     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1364     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1365     public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> NestedType {
1366       get { return nestedType_; }
1367     }
1368 
1369     /// <summary>Field number for the "enum_type" field.</summary>
1370     public const int EnumTypeFieldNumber = 4;
1371     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec
1372         = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser);
1373     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>();
1374     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1375     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1376     public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType {
1377       get { return enumType_; }
1378     }
1379 
1380     /// <summary>Field number for the "extension_range" field.</summary>
1381     public const int ExtensionRangeFieldNumber = 5;
1382     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> _repeated_extensionRange_codec
1383         = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange.Parser);
1384     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> extensionRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange>();
1385     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1386     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1387     public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> ExtensionRange {
1388       get { return extensionRange_; }
1389     }
1390 
1391     /// <summary>Field number for the "oneof_decl" field.</summary>
1392     public const int OneofDeclFieldNumber = 8;
1393     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.OneofDescriptorProto> _repeated_oneofDecl_codec
1394         = pb::FieldCodec.ForMessage(66, global::Google.Protobuf.Reflection.OneofDescriptorProto.Parser);
1395     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> oneofDecl_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto>();
1396     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1397     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1398     public pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> OneofDecl {
1399       get { return oneofDecl_; }
1400     }
1401 
1402     /// <summary>Field number for the "options" field.</summary>
1403     public const int OptionsFieldNumber = 7;
1404     private global::Google.Protobuf.Reflection.MessageOptions options_;
1405     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1406     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1407     public global::Google.Protobuf.Reflection.MessageOptions Options {
1408       get { return options_; }
1409       set {
1410         options_ = value;
1411       }
1412     }
1413 
1414     /// <summary>Field number for the "reserved_range" field.</summary>
1415     public const int ReservedRangeFieldNumber = 9;
1416     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> _repeated_reservedRange_codec
1417         = pb::FieldCodec.ForMessage(74, global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange.Parser);
1418     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> reservedRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange>();
1419     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1420     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1421     public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> ReservedRange {
1422       get { return reservedRange_; }
1423     }
1424 
1425     /// <summary>Field number for the "reserved_name" field.</summary>
1426     public const int ReservedNameFieldNumber = 10;
1427     private static readonly pb::FieldCodec<string> _repeated_reservedName_codec
1428         = pb::FieldCodec.ForString(82);
1429     private readonly pbc::RepeatedField<string> reservedName_ = new pbc::RepeatedField<string>();
1430     /// <summary>
1431     /// Reserved field names, which may not be used by fields in the same message.
1432     /// A given name may only be reserved once.
1433     /// </summary>
1434     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1435     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1436     public pbc::RepeatedField<string> ReservedName {
1437       get { return reservedName_; }
1438     }
1439 
1440     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1441     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)1442     public override bool Equals(object other) {
1443       return Equals(other as DescriptorProto);
1444     }
1445 
1446     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1447     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(DescriptorProto other)1448     public bool Equals(DescriptorProto other) {
1449       if (ReferenceEquals(other, null)) {
1450         return false;
1451       }
1452       if (ReferenceEquals(other, this)) {
1453         return true;
1454       }
1455       if (Name != other.Name) return false;
1456       if(!field_.Equals(other.field_)) return false;
1457       if(!extension_.Equals(other.extension_)) return false;
1458       if(!nestedType_.Equals(other.nestedType_)) return false;
1459       if(!enumType_.Equals(other.enumType_)) return false;
1460       if(!extensionRange_.Equals(other.extensionRange_)) return false;
1461       if(!oneofDecl_.Equals(other.oneofDecl_)) return false;
1462       if (!object.Equals(Options, other.Options)) return false;
1463       if(!reservedRange_.Equals(other.reservedRange_)) return false;
1464       if(!reservedName_.Equals(other.reservedName_)) return false;
1465       return Equals(_unknownFields, other._unknownFields);
1466     }
1467 
1468     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1469     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()1470     public override int GetHashCode() {
1471       int hash = 1;
1472       if (HasName) hash ^= Name.GetHashCode();
1473       hash ^= field_.GetHashCode();
1474       hash ^= extension_.GetHashCode();
1475       hash ^= nestedType_.GetHashCode();
1476       hash ^= enumType_.GetHashCode();
1477       hash ^= extensionRange_.GetHashCode();
1478       hash ^= oneofDecl_.GetHashCode();
1479       if (options_ != null) hash ^= Options.GetHashCode();
1480       hash ^= reservedRange_.GetHashCode();
1481       hash ^= reservedName_.GetHashCode();
1482       if (_unknownFields != null) {
1483         hash ^= _unknownFields.GetHashCode();
1484       }
1485       return hash;
1486     }
1487 
1488     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1489     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()1490     public override string ToString() {
1491       return pb::JsonFormatter.ToDiagnosticString(this);
1492     }
1493 
1494     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1495     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)1496     public void WriteTo(pb::CodedOutputStream output) {
1497     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1498       output.WriteRawMessage(this);
1499     #else
1500       if (HasName) {
1501         output.WriteRawTag(10);
1502         output.WriteString(Name);
1503       }
1504       field_.WriteTo(output, _repeated_field_codec);
1505       nestedType_.WriteTo(output, _repeated_nestedType_codec);
1506       enumType_.WriteTo(output, _repeated_enumType_codec);
1507       extensionRange_.WriteTo(output, _repeated_extensionRange_codec);
1508       extension_.WriteTo(output, _repeated_extension_codec);
1509       if (options_ != null) {
1510         output.WriteRawTag(58);
1511         output.WriteMessage(Options);
1512       }
1513       oneofDecl_.WriteTo(output, _repeated_oneofDecl_codec);
1514       reservedRange_.WriteTo(output, _repeated_reservedRange_codec);
1515       reservedName_.WriteTo(output, _repeated_reservedName_codec);
1516       if (_unknownFields != null) {
1517         _unknownFields.WriteTo(output);
1518       }
1519     #endif
1520     }
1521 
1522     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1523     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1524     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1525     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1526       if (HasName) {
1527         output.WriteRawTag(10);
1528         output.WriteString(Name);
1529       }
1530       field_.WriteTo(ref output, _repeated_field_codec);
1531       nestedType_.WriteTo(ref output, _repeated_nestedType_codec);
1532       enumType_.WriteTo(ref output, _repeated_enumType_codec);
1533       extensionRange_.WriteTo(ref output, _repeated_extensionRange_codec);
1534       extension_.WriteTo(ref output, _repeated_extension_codec);
1535       if (options_ != null) {
1536         output.WriteRawTag(58);
1537         output.WriteMessage(Options);
1538       }
1539       oneofDecl_.WriteTo(ref output, _repeated_oneofDecl_codec);
1540       reservedRange_.WriteTo(ref output, _repeated_reservedRange_codec);
1541       reservedName_.WriteTo(ref output, _repeated_reservedName_codec);
1542       if (_unknownFields != null) {
1543         _unknownFields.WriteTo(ref output);
1544       }
1545     }
1546     #endif
1547 
1548     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1549     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()1550     public int CalculateSize() {
1551       int size = 0;
1552       if (HasName) {
1553         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
1554       }
1555       size += field_.CalculateSize(_repeated_field_codec);
1556       size += extension_.CalculateSize(_repeated_extension_codec);
1557       size += nestedType_.CalculateSize(_repeated_nestedType_codec);
1558       size += enumType_.CalculateSize(_repeated_enumType_codec);
1559       size += extensionRange_.CalculateSize(_repeated_extensionRange_codec);
1560       size += oneofDecl_.CalculateSize(_repeated_oneofDecl_codec);
1561       if (options_ != null) {
1562         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
1563       }
1564       size += reservedRange_.CalculateSize(_repeated_reservedRange_codec);
1565       size += reservedName_.CalculateSize(_repeated_reservedName_codec);
1566       if (_unknownFields != null) {
1567         size += _unknownFields.CalculateSize();
1568       }
1569       return size;
1570     }
1571 
1572     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1573     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(DescriptorProto other)1574     public void MergeFrom(DescriptorProto other) {
1575       if (other == null) {
1576         return;
1577       }
1578       if (other.HasName) {
1579         Name = other.Name;
1580       }
1581       field_.Add(other.field_);
1582       extension_.Add(other.extension_);
1583       nestedType_.Add(other.nestedType_);
1584       enumType_.Add(other.enumType_);
1585       extensionRange_.Add(other.extensionRange_);
1586       oneofDecl_.Add(other.oneofDecl_);
1587       if (other.options_ != null) {
1588         if (options_ == null) {
1589           Options = new global::Google.Protobuf.Reflection.MessageOptions();
1590         }
1591         Options.MergeFrom(other.Options);
1592       }
1593       reservedRange_.Add(other.reservedRange_);
1594       reservedName_.Add(other.reservedName_);
1595       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1596     }
1597 
1598     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1599     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)1600     public void MergeFrom(pb::CodedInputStream input) {
1601     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1602       input.ReadRawMessage(this);
1603     #else
1604       uint tag;
1605       while ((tag = input.ReadTag()) != 0) {
1606       if ((tag & 7) == 4) {
1607         // Abort on any end group tag.
1608         return;
1609       }
1610       switch(tag) {
1611           default:
1612             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1613             break;
1614           case 10: {
1615             Name = input.ReadString();
1616             break;
1617           }
1618           case 18: {
1619             field_.AddEntriesFrom(input, _repeated_field_codec);
1620             break;
1621           }
1622           case 26: {
1623             nestedType_.AddEntriesFrom(input, _repeated_nestedType_codec);
1624             break;
1625           }
1626           case 34: {
1627             enumType_.AddEntriesFrom(input, _repeated_enumType_codec);
1628             break;
1629           }
1630           case 42: {
1631             extensionRange_.AddEntriesFrom(input, _repeated_extensionRange_codec);
1632             break;
1633           }
1634           case 50: {
1635             extension_.AddEntriesFrom(input, _repeated_extension_codec);
1636             break;
1637           }
1638           case 58: {
1639             if (options_ == null) {
1640               Options = new global::Google.Protobuf.Reflection.MessageOptions();
1641             }
1642             input.ReadMessage(Options);
1643             break;
1644           }
1645           case 66: {
1646             oneofDecl_.AddEntriesFrom(input, _repeated_oneofDecl_codec);
1647             break;
1648           }
1649           case 74: {
1650             reservedRange_.AddEntriesFrom(input, _repeated_reservedRange_codec);
1651             break;
1652           }
1653           case 82: {
1654             reservedName_.AddEntriesFrom(input, _repeated_reservedName_codec);
1655             break;
1656           }
1657         }
1658       }
1659     #endif
1660     }
1661 
1662     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1663     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1664     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1665     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1666       uint tag;
1667       while ((tag = input.ReadTag()) != 0) {
1668       if ((tag & 7) == 4) {
1669         // Abort on any end group tag.
1670         return;
1671       }
1672       switch(tag) {
1673           default:
1674             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1675             break;
1676           case 10: {
1677             Name = input.ReadString();
1678             break;
1679           }
1680           case 18: {
1681             field_.AddEntriesFrom(ref input, _repeated_field_codec);
1682             break;
1683           }
1684           case 26: {
1685             nestedType_.AddEntriesFrom(ref input, _repeated_nestedType_codec);
1686             break;
1687           }
1688           case 34: {
1689             enumType_.AddEntriesFrom(ref input, _repeated_enumType_codec);
1690             break;
1691           }
1692           case 42: {
1693             extensionRange_.AddEntriesFrom(ref input, _repeated_extensionRange_codec);
1694             break;
1695           }
1696           case 50: {
1697             extension_.AddEntriesFrom(ref input, _repeated_extension_codec);
1698             break;
1699           }
1700           case 58: {
1701             if (options_ == null) {
1702               Options = new global::Google.Protobuf.Reflection.MessageOptions();
1703             }
1704             input.ReadMessage(Options);
1705             break;
1706           }
1707           case 66: {
1708             oneofDecl_.AddEntriesFrom(ref input, _repeated_oneofDecl_codec);
1709             break;
1710           }
1711           case 74: {
1712             reservedRange_.AddEntriesFrom(ref input, _repeated_reservedRange_codec);
1713             break;
1714           }
1715           case 82: {
1716             reservedName_.AddEntriesFrom(ref input, _repeated_reservedName_codec);
1717             break;
1718           }
1719         }
1720       }
1721     }
1722     #endif
1723 
1724     #region Nested types
1725     /// <summary>Container for nested types declared in the DescriptorProto message type.</summary>
1726     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1727     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1728     public static partial class Types {
1729       [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
1730       public sealed partial class ExtensionRange : pb::IMessage<ExtensionRange>
1731       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1732           , pb::IBufferMessage
1733       #endif
1734       {
1735         private static readonly pb::MessageParser<ExtensionRange> _parser = new pb::MessageParser<ExtensionRange>(() => new ExtensionRange());
1736         private pb::UnknownFieldSet _unknownFields;
1737         private int _hasBits0;
1738         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1739         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1740         public static pb::MessageParser<ExtensionRange> Parser { get { return _parser; } }
1741 
1742         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1743         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1744         public static pbr::MessageDescriptor Descriptor {
1745           get { return global::Google.Protobuf.Reflection.DescriptorProto.Descriptor.NestedTypes[0]; }
1746         }
1747 
1748         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1749         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1750         pbr::MessageDescriptor pb::IMessage.Descriptor {
1751           get { return Descriptor; }
1752         }
1753 
1754         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1755         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ExtensionRange()1756         public ExtensionRange() {
1757           OnConstruction();
1758         }
1759 
OnConstruction()1760         partial void OnConstruction();
1761 
1762         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1763         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ExtensionRange(ExtensionRange other)1764         public ExtensionRange(ExtensionRange other) : this() {
1765           _hasBits0 = other._hasBits0;
1766           start_ = other.start_;
1767           end_ = other.end_;
1768           options_ = other.options_ != null ? other.options_.Clone() : null;
1769           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1770         }
1771 
1772         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1773         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()1774         public ExtensionRange Clone() {
1775           return new ExtensionRange(this);
1776         }
1777 
1778         /// <summary>Field number for the "start" field.</summary>
1779         public const int StartFieldNumber = 1;
1780         private readonly static int StartDefaultValue = 0;
1781 
1782         private int start_;
1783         /// <summary>
1784         /// Inclusive.
1785         /// </summary>
1786         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1787         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1788         public int Start {
1789           get { if ((_hasBits0 & 1) != 0) { return start_; } else { return StartDefaultValue; } }
1790           set {
1791             _hasBits0 |= 1;
1792             start_ = value;
1793           }
1794         }
1795         /// <summary>Gets whether the "start" field is set</summary>
1796         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1797         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1798         public bool HasStart {
1799           get { return (_hasBits0 & 1) != 0; }
1800         }
1801         /// <summary>Clears the value of the "start" field</summary>
1802         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1803         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearStart()1804         public void ClearStart() {
1805           _hasBits0 &= ~1;
1806         }
1807 
1808         /// <summary>Field number for the "end" field.</summary>
1809         public const int EndFieldNumber = 2;
1810         private readonly static int EndDefaultValue = 0;
1811 
1812         private int end_;
1813         /// <summary>
1814         /// Exclusive.
1815         /// </summary>
1816         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1817         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1818         public int End {
1819           get { if ((_hasBits0 & 2) != 0) { return end_; } else { return EndDefaultValue; } }
1820           set {
1821             _hasBits0 |= 2;
1822             end_ = value;
1823           }
1824         }
1825         /// <summary>Gets whether the "end" field is set</summary>
1826         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1827         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1828         public bool HasEnd {
1829           get { return (_hasBits0 & 2) != 0; }
1830         }
1831         /// <summary>Clears the value of the "end" field</summary>
1832         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1833         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearEnd()1834         public void ClearEnd() {
1835           _hasBits0 &= ~2;
1836         }
1837 
1838         /// <summary>Field number for the "options" field.</summary>
1839         public const int OptionsFieldNumber = 3;
1840         private global::Google.Protobuf.Reflection.ExtensionRangeOptions options_;
1841         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1842         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
1843         public global::Google.Protobuf.Reflection.ExtensionRangeOptions Options {
1844           get { return options_; }
1845           set {
1846             options_ = value;
1847           }
1848         }
1849 
1850         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1851         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)1852         public override bool Equals(object other) {
1853           return Equals(other as ExtensionRange);
1854         }
1855 
1856         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1857         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(ExtensionRange other)1858         public bool Equals(ExtensionRange other) {
1859           if (ReferenceEquals(other, null)) {
1860             return false;
1861           }
1862           if (ReferenceEquals(other, this)) {
1863             return true;
1864           }
1865           if (Start != other.Start) return false;
1866           if (End != other.End) return false;
1867           if (!object.Equals(Options, other.Options)) return false;
1868           return Equals(_unknownFields, other._unknownFields);
1869         }
1870 
1871         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1872         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()1873         public override int GetHashCode() {
1874           int hash = 1;
1875           if (HasStart) hash ^= Start.GetHashCode();
1876           if (HasEnd) hash ^= End.GetHashCode();
1877           if (options_ != null) hash ^= Options.GetHashCode();
1878           if (_unknownFields != null) {
1879             hash ^= _unknownFields.GetHashCode();
1880           }
1881           return hash;
1882         }
1883 
1884         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1885         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()1886         public override string ToString() {
1887           return pb::JsonFormatter.ToDiagnosticString(this);
1888         }
1889 
1890         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1891         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)1892         public void WriteTo(pb::CodedOutputStream output) {
1893         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1894           output.WriteRawMessage(this);
1895         #else
1896           if (HasStart) {
1897             output.WriteRawTag(8);
1898             output.WriteInt32(Start);
1899           }
1900           if (HasEnd) {
1901             output.WriteRawTag(16);
1902             output.WriteInt32(End);
1903           }
1904           if (options_ != null) {
1905             output.WriteRawTag(26);
1906             output.WriteMessage(Options);
1907           }
1908           if (_unknownFields != null) {
1909             _unknownFields.WriteTo(output);
1910           }
1911         #endif
1912         }
1913 
1914         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1915         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1916         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1917         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1918           if (HasStart) {
1919             output.WriteRawTag(8);
1920             output.WriteInt32(Start);
1921           }
1922           if (HasEnd) {
1923             output.WriteRawTag(16);
1924             output.WriteInt32(End);
1925           }
1926           if (options_ != null) {
1927             output.WriteRawTag(26);
1928             output.WriteMessage(Options);
1929           }
1930           if (_unknownFields != null) {
1931             _unknownFields.WriteTo(ref output);
1932           }
1933         }
1934         #endif
1935 
1936         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1937         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()1938         public int CalculateSize() {
1939           int size = 0;
1940           if (HasStart) {
1941             size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
1942           }
1943           if (HasEnd) {
1944             size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
1945           }
1946           if (options_ != null) {
1947             size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
1948           }
1949           if (_unknownFields != null) {
1950             size += _unknownFields.CalculateSize();
1951           }
1952           return size;
1953         }
1954 
1955         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1956         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(ExtensionRange other)1957         public void MergeFrom(ExtensionRange other) {
1958           if (other == null) {
1959             return;
1960           }
1961           if (other.HasStart) {
1962             Start = other.Start;
1963           }
1964           if (other.HasEnd) {
1965             End = other.End;
1966           }
1967           if (other.options_ != null) {
1968             if (options_ == null) {
1969               Options = new global::Google.Protobuf.Reflection.ExtensionRangeOptions();
1970             }
1971             Options.MergeFrom(other.Options);
1972           }
1973           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1974         }
1975 
1976         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1977         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)1978         public void MergeFrom(pb::CodedInputStream input) {
1979         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1980           input.ReadRawMessage(this);
1981         #else
1982           uint tag;
1983           while ((tag = input.ReadTag()) != 0) {
1984           if ((tag & 7) == 4) {
1985             // Abort on any end group tag.
1986             return;
1987           }
1988           switch(tag) {
1989               default:
1990                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1991                 break;
1992               case 8: {
1993                 Start = input.ReadInt32();
1994                 break;
1995               }
1996               case 16: {
1997                 End = input.ReadInt32();
1998                 break;
1999               }
2000               case 26: {
2001                 if (options_ == null) {
2002                   Options = new global::Google.Protobuf.Reflection.ExtensionRangeOptions();
2003                 }
2004                 input.ReadMessage(Options);
2005                 break;
2006               }
2007             }
2008           }
2009         #endif
2010         }
2011 
2012         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2013         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2014         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)2015         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2016           uint tag;
2017           while ((tag = input.ReadTag()) != 0) {
2018           if ((tag & 7) == 4) {
2019             // Abort on any end group tag.
2020             return;
2021           }
2022           switch(tag) {
2023               default:
2024                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2025                 break;
2026               case 8: {
2027                 Start = input.ReadInt32();
2028                 break;
2029               }
2030               case 16: {
2031                 End = input.ReadInt32();
2032                 break;
2033               }
2034               case 26: {
2035                 if (options_ == null) {
2036                   Options = new global::Google.Protobuf.Reflection.ExtensionRangeOptions();
2037                 }
2038                 input.ReadMessage(Options);
2039                 break;
2040               }
2041             }
2042           }
2043         }
2044         #endif
2045 
2046       }
2047 
2048       /// <summary>
2049       /// Range of reserved tag numbers. Reserved tag numbers may not be used by
2050       /// fields or extension ranges in the same message. Reserved ranges may
2051       /// not overlap.
2052       /// </summary>
2053       [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
2054       public sealed partial class ReservedRange : pb::IMessage<ReservedRange>
2055       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2056           , pb::IBufferMessage
2057       #endif
2058       {
2059         private static readonly pb::MessageParser<ReservedRange> _parser = new pb::MessageParser<ReservedRange>(() => new ReservedRange());
2060         private pb::UnknownFieldSet _unknownFields;
2061         private int _hasBits0;
2062         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2063         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2064         public static pb::MessageParser<ReservedRange> Parser { get { return _parser; } }
2065 
2066         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2067         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2068         public static pbr::MessageDescriptor Descriptor {
2069           get { return global::Google.Protobuf.Reflection.DescriptorProto.Descriptor.NestedTypes[1]; }
2070         }
2071 
2072         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2073         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2074         pbr::MessageDescriptor pb::IMessage.Descriptor {
2075           get { return Descriptor; }
2076         }
2077 
2078         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2079         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ReservedRange()2080         public ReservedRange() {
2081           OnConstruction();
2082         }
2083 
OnConstruction()2084         partial void OnConstruction();
2085 
2086         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2087         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ReservedRange(ReservedRange other)2088         public ReservedRange(ReservedRange other) : this() {
2089           _hasBits0 = other._hasBits0;
2090           start_ = other.start_;
2091           end_ = other.end_;
2092           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2093         }
2094 
2095         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2096         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()2097         public ReservedRange Clone() {
2098           return new ReservedRange(this);
2099         }
2100 
2101         /// <summary>Field number for the "start" field.</summary>
2102         public const int StartFieldNumber = 1;
2103         private readonly static int StartDefaultValue = 0;
2104 
2105         private int start_;
2106         /// <summary>
2107         /// Inclusive.
2108         /// </summary>
2109         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2110         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2111         public int Start {
2112           get { if ((_hasBits0 & 1) != 0) { return start_; } else { return StartDefaultValue; } }
2113           set {
2114             _hasBits0 |= 1;
2115             start_ = value;
2116           }
2117         }
2118         /// <summary>Gets whether the "start" field is set</summary>
2119         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2120         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2121         public bool HasStart {
2122           get { return (_hasBits0 & 1) != 0; }
2123         }
2124         /// <summary>Clears the value of the "start" field</summary>
2125         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2126         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearStart()2127         public void ClearStart() {
2128           _hasBits0 &= ~1;
2129         }
2130 
2131         /// <summary>Field number for the "end" field.</summary>
2132         public const int EndFieldNumber = 2;
2133         private readonly static int EndDefaultValue = 0;
2134 
2135         private int end_;
2136         /// <summary>
2137         /// Exclusive.
2138         /// </summary>
2139         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2140         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2141         public int End {
2142           get { if ((_hasBits0 & 2) != 0) { return end_; } else { return EndDefaultValue; } }
2143           set {
2144             _hasBits0 |= 2;
2145             end_ = value;
2146           }
2147         }
2148         /// <summary>Gets whether the "end" field is set</summary>
2149         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2150         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2151         public bool HasEnd {
2152           get { return (_hasBits0 & 2) != 0; }
2153         }
2154         /// <summary>Clears the value of the "end" field</summary>
2155         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2156         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearEnd()2157         public void ClearEnd() {
2158           _hasBits0 &= ~2;
2159         }
2160 
2161         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2162         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)2163         public override bool Equals(object other) {
2164           return Equals(other as ReservedRange);
2165         }
2166 
2167         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2168         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(ReservedRange other)2169         public bool Equals(ReservedRange other) {
2170           if (ReferenceEquals(other, null)) {
2171             return false;
2172           }
2173           if (ReferenceEquals(other, this)) {
2174             return true;
2175           }
2176           if (Start != other.Start) return false;
2177           if (End != other.End) return false;
2178           return Equals(_unknownFields, other._unknownFields);
2179         }
2180 
2181         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2182         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()2183         public override int GetHashCode() {
2184           int hash = 1;
2185           if (HasStart) hash ^= Start.GetHashCode();
2186           if (HasEnd) hash ^= End.GetHashCode();
2187           if (_unknownFields != null) {
2188             hash ^= _unknownFields.GetHashCode();
2189           }
2190           return hash;
2191         }
2192 
2193         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2194         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()2195         public override string ToString() {
2196           return pb::JsonFormatter.ToDiagnosticString(this);
2197         }
2198 
2199         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2200         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)2201         public void WriteTo(pb::CodedOutputStream output) {
2202         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2203           output.WriteRawMessage(this);
2204         #else
2205           if (HasStart) {
2206             output.WriteRawTag(8);
2207             output.WriteInt32(Start);
2208           }
2209           if (HasEnd) {
2210             output.WriteRawTag(16);
2211             output.WriteInt32(End);
2212           }
2213           if (_unknownFields != null) {
2214             _unknownFields.WriteTo(output);
2215           }
2216         #endif
2217         }
2218 
2219         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2220         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2221         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)2222         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2223           if (HasStart) {
2224             output.WriteRawTag(8);
2225             output.WriteInt32(Start);
2226           }
2227           if (HasEnd) {
2228             output.WriteRawTag(16);
2229             output.WriteInt32(End);
2230           }
2231           if (_unknownFields != null) {
2232             _unknownFields.WriteTo(ref output);
2233           }
2234         }
2235         #endif
2236 
2237         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2238         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()2239         public int CalculateSize() {
2240           int size = 0;
2241           if (HasStart) {
2242             size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
2243           }
2244           if (HasEnd) {
2245             size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
2246           }
2247           if (_unknownFields != null) {
2248             size += _unknownFields.CalculateSize();
2249           }
2250           return size;
2251         }
2252 
2253         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2254         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(ReservedRange other)2255         public void MergeFrom(ReservedRange other) {
2256           if (other == null) {
2257             return;
2258           }
2259           if (other.HasStart) {
2260             Start = other.Start;
2261           }
2262           if (other.HasEnd) {
2263             End = other.End;
2264           }
2265           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2266         }
2267 
2268         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2269         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)2270         public void MergeFrom(pb::CodedInputStream input) {
2271         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2272           input.ReadRawMessage(this);
2273         #else
2274           uint tag;
2275           while ((tag = input.ReadTag()) != 0) {
2276           if ((tag & 7) == 4) {
2277             // Abort on any end group tag.
2278             return;
2279           }
2280           switch(tag) {
2281               default:
2282                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2283                 break;
2284               case 8: {
2285                 Start = input.ReadInt32();
2286                 break;
2287               }
2288               case 16: {
2289                 End = input.ReadInt32();
2290                 break;
2291               }
2292             }
2293           }
2294         #endif
2295         }
2296 
2297         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2298         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2299         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)2300         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2301           uint tag;
2302           while ((tag = input.ReadTag()) != 0) {
2303           if ((tag & 7) == 4) {
2304             // Abort on any end group tag.
2305             return;
2306           }
2307           switch(tag) {
2308               default:
2309                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2310                 break;
2311               case 8: {
2312                 Start = input.ReadInt32();
2313                 break;
2314               }
2315               case 16: {
2316                 End = input.ReadInt32();
2317                 break;
2318               }
2319             }
2320           }
2321         }
2322         #endif
2323 
2324       }
2325 
2326     }
2327     #endregion
2328 
2329   }
2330 
2331   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
2332   public sealed partial class ExtensionRangeOptions : pb::IExtendableMessage<ExtensionRangeOptions>
2333   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2334       , pb::IBufferMessage
2335   #endif
2336   {
2337     private static readonly pb::MessageParser<ExtensionRangeOptions> _parser = new pb::MessageParser<ExtensionRangeOptions>(() => new ExtensionRangeOptions());
2338     private pb::UnknownFieldSet _unknownFields;
2339     internal pb::ExtensionSet<ExtensionRangeOptions> _extensions;
2340     private pb::ExtensionSet<ExtensionRangeOptions> _Extensions { get { return _extensions; } }
2341     private int _hasBits0;
2342     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2343     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2344     public static pb::MessageParser<ExtensionRangeOptions> Parser { get { return _parser; } }
2345 
2346     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2347     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2348     public static pbr::MessageDescriptor Descriptor {
2349       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[3]; }
2350     }
2351 
2352     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2353     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2354     pbr::MessageDescriptor pb::IMessage.Descriptor {
2355       get { return Descriptor; }
2356     }
2357 
2358     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2359     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ExtensionRangeOptions()2360     public ExtensionRangeOptions() {
2361       OnConstruction();
2362     }
2363 
OnConstruction()2364     partial void OnConstruction();
2365 
2366     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2367     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ExtensionRangeOptions(ExtensionRangeOptions other)2368     public ExtensionRangeOptions(ExtensionRangeOptions other) : this() {
2369       _hasBits0 = other._hasBits0;
2370       uninterpretedOption_ = other.uninterpretedOption_.Clone();
2371       declaration_ = other.declaration_.Clone();
2372       features_ = other.features_ != null ? other.features_.Clone() : null;
2373       verification_ = other.verification_;
2374       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2375       _extensions = pb::ExtensionSet.Clone(other._extensions);
2376     }
2377 
2378     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2379     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()2380     public ExtensionRangeOptions Clone() {
2381       return new ExtensionRangeOptions(this);
2382     }
2383 
2384     /// <summary>Field number for the "uninterpreted_option" field.</summary>
2385     public const int UninterpretedOptionFieldNumber = 999;
2386     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
2387         = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
2388     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
2389     /// <summary>
2390     /// The parser stores options it doesn't recognize here. See above.
2391     /// </summary>
2392     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2393     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2394     public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
2395       get { return uninterpretedOption_; }
2396     }
2397 
2398     /// <summary>Field number for the "declaration" field.</summary>
2399     public const int DeclarationFieldNumber = 2;
2400     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.ExtensionRangeOptions.Types.Declaration> _repeated_declaration_codec
2401         = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.ExtensionRangeOptions.Types.Declaration.Parser);
2402     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.ExtensionRangeOptions.Types.Declaration> declaration_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.ExtensionRangeOptions.Types.Declaration>();
2403     /// <summary>
2404     /// For external users: DO NOT USE. We are in the process of open sourcing
2405     /// extension declaration and executing internal cleanups before it can be
2406     /// used externally.
2407     /// </summary>
2408     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2409     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2410     public pbc::RepeatedField<global::Google.Protobuf.Reflection.ExtensionRangeOptions.Types.Declaration> Declaration {
2411       get { return declaration_; }
2412     }
2413 
2414     /// <summary>Field number for the "features" field.</summary>
2415     public const int FeaturesFieldNumber = 50;
2416     private global::Google.Protobuf.Reflection.FeatureSet features_;
2417     /// <summary>
2418     /// Any features defined in the specific edition.
2419     /// </summary>
2420     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2421     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2422     public global::Google.Protobuf.Reflection.FeatureSet Features {
2423       get { return features_; }
2424       set {
2425         features_ = value;
2426       }
2427     }
2428 
2429     /// <summary>Field number for the "verification" field.</summary>
2430     public const int VerificationFieldNumber = 3;
2431     private readonly static global::Google.Protobuf.Reflection.ExtensionRangeOptions.Types.VerificationState VerificationDefaultValue = global::Google.Protobuf.Reflection.ExtensionRangeOptions.Types.VerificationState.Unverified;
2432 
2433     private global::Google.Protobuf.Reflection.ExtensionRangeOptions.Types.VerificationState verification_;
2434     /// <summary>
2435     /// The verification state of the range.
2436     /// TODO: flip the default to DECLARATION once all empty ranges
2437     /// are marked as UNVERIFIED.
2438     /// </summary>
2439     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2440     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2441     public global::Google.Protobuf.Reflection.ExtensionRangeOptions.Types.VerificationState Verification {
2442       get { if ((_hasBits0 & 1) != 0) { return verification_; } else { return VerificationDefaultValue; } }
2443       set {
2444         _hasBits0 |= 1;
2445         verification_ = value;
2446       }
2447     }
2448     /// <summary>Gets whether the "verification" field is set</summary>
2449     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2450     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2451     public bool HasVerification {
2452       get { return (_hasBits0 & 1) != 0; }
2453     }
2454     /// <summary>Clears the value of the "verification" field</summary>
2455     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2456     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearVerification()2457     public void ClearVerification() {
2458       _hasBits0 &= ~1;
2459     }
2460 
2461     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2462     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)2463     public override bool Equals(object other) {
2464       return Equals(other as ExtensionRangeOptions);
2465     }
2466 
2467     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2468     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(ExtensionRangeOptions other)2469     public bool Equals(ExtensionRangeOptions other) {
2470       if (ReferenceEquals(other, null)) {
2471         return false;
2472       }
2473       if (ReferenceEquals(other, this)) {
2474         return true;
2475       }
2476       if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
2477       if(!declaration_.Equals(other.declaration_)) return false;
2478       if (!object.Equals(Features, other.Features)) return false;
2479       if (Verification != other.Verification) return false;
2480       if (!Equals(_extensions, other._extensions)) {
2481         return false;
2482       }
2483       return Equals(_unknownFields, other._unknownFields);
2484     }
2485 
2486     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2487     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()2488     public override int GetHashCode() {
2489       int hash = 1;
2490       hash ^= uninterpretedOption_.GetHashCode();
2491       hash ^= declaration_.GetHashCode();
2492       if (features_ != null) hash ^= Features.GetHashCode();
2493       if (HasVerification) hash ^= Verification.GetHashCode();
2494       if (_extensions != null) {
2495         hash ^= _extensions.GetHashCode();
2496       }
2497       if (_unknownFields != null) {
2498         hash ^= _unknownFields.GetHashCode();
2499       }
2500       return hash;
2501     }
2502 
2503     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2504     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()2505     public override string ToString() {
2506       return pb::JsonFormatter.ToDiagnosticString(this);
2507     }
2508 
2509     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2510     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)2511     public void WriteTo(pb::CodedOutputStream output) {
2512     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2513       output.WriteRawMessage(this);
2514     #else
2515       declaration_.WriteTo(output, _repeated_declaration_codec);
2516       if (HasVerification) {
2517         output.WriteRawTag(24);
2518         output.WriteEnum((int) Verification);
2519       }
2520       if (features_ != null) {
2521         output.WriteRawTag(146, 3);
2522         output.WriteMessage(Features);
2523       }
2524       uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
2525       if (_extensions != null) {
2526         _extensions.WriteTo(output);
2527       }
2528       if (_unknownFields != null) {
2529         _unknownFields.WriteTo(output);
2530       }
2531     #endif
2532     }
2533 
2534     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2535     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2536     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)2537     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2538       declaration_.WriteTo(ref output, _repeated_declaration_codec);
2539       if (HasVerification) {
2540         output.WriteRawTag(24);
2541         output.WriteEnum((int) Verification);
2542       }
2543       if (features_ != null) {
2544         output.WriteRawTag(146, 3);
2545         output.WriteMessage(Features);
2546       }
2547       uninterpretedOption_.WriteTo(ref output, _repeated_uninterpretedOption_codec);
2548       if (_extensions != null) {
2549         _extensions.WriteTo(ref output);
2550       }
2551       if (_unknownFields != null) {
2552         _unknownFields.WriteTo(ref output);
2553       }
2554     }
2555     #endif
2556 
2557     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2558     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()2559     public int CalculateSize() {
2560       int size = 0;
2561       size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
2562       size += declaration_.CalculateSize(_repeated_declaration_codec);
2563       if (features_ != null) {
2564         size += 2 + pb::CodedOutputStream.ComputeMessageSize(Features);
2565       }
2566       if (HasVerification) {
2567         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Verification);
2568       }
2569       if (_extensions != null) {
2570         size += _extensions.CalculateSize();
2571       }
2572       if (_unknownFields != null) {
2573         size += _unknownFields.CalculateSize();
2574       }
2575       return size;
2576     }
2577 
2578     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2579     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(ExtensionRangeOptions other)2580     public void MergeFrom(ExtensionRangeOptions other) {
2581       if (other == null) {
2582         return;
2583       }
2584       uninterpretedOption_.Add(other.uninterpretedOption_);
2585       declaration_.Add(other.declaration_);
2586       if (other.features_ != null) {
2587         if (features_ == null) {
2588           Features = new global::Google.Protobuf.Reflection.FeatureSet();
2589         }
2590         Features.MergeFrom(other.Features);
2591       }
2592       if (other.HasVerification) {
2593         Verification = other.Verification;
2594       }
2595       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
2596       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2597     }
2598 
2599     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2600     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)2601     public void MergeFrom(pb::CodedInputStream input) {
2602     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2603       input.ReadRawMessage(this);
2604     #else
2605       uint tag;
2606       while ((tag = input.ReadTag()) != 0) {
2607       if ((tag & 7) == 4) {
2608         // Abort on any end group tag.
2609         return;
2610       }
2611       switch(tag) {
2612           default:
2613             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
2614               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2615             }
2616             break;
2617           case 18: {
2618             declaration_.AddEntriesFrom(input, _repeated_declaration_codec);
2619             break;
2620           }
2621           case 24: {
2622             Verification = (global::Google.Protobuf.Reflection.ExtensionRangeOptions.Types.VerificationState) input.ReadEnum();
2623             break;
2624           }
2625           case 402: {
2626             if (features_ == null) {
2627               Features = new global::Google.Protobuf.Reflection.FeatureSet();
2628             }
2629             input.ReadMessage(Features);
2630             break;
2631           }
2632           case 7994: {
2633             uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
2634             break;
2635           }
2636         }
2637       }
2638     #endif
2639     }
2640 
2641     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2642     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2643     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)2644     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2645       uint tag;
2646       while ((tag = input.ReadTag()) != 0) {
2647       if ((tag & 7) == 4) {
2648         // Abort on any end group tag.
2649         return;
2650       }
2651       switch(tag) {
2652           default:
2653             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
2654               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2655             }
2656             break;
2657           case 18: {
2658             declaration_.AddEntriesFrom(ref input, _repeated_declaration_codec);
2659             break;
2660           }
2661           case 24: {
2662             Verification = (global::Google.Protobuf.Reflection.ExtensionRangeOptions.Types.VerificationState) input.ReadEnum();
2663             break;
2664           }
2665           case 402: {
2666             if (features_ == null) {
2667               Features = new global::Google.Protobuf.Reflection.FeatureSet();
2668             }
2669             input.ReadMessage(Features);
2670             break;
2671           }
2672           case 7994: {
2673             uninterpretedOption_.AddEntriesFrom(ref input, _repeated_uninterpretedOption_codec);
2674             break;
2675           }
2676         }
2677       }
2678     }
2679     #endif
2680 
GetExtension(pb::Extension<ExtensionRangeOptions, TValue> extension)2681     public TValue GetExtension<TValue>(pb::Extension<ExtensionRangeOptions, TValue> extension) {
2682       return pb::ExtensionSet.Get(ref _extensions, extension);
2683     }
GetExtension(pb::RepeatedExtension<ExtensionRangeOptions, TValue> extension)2684     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<ExtensionRangeOptions, TValue> extension) {
2685       return pb::ExtensionSet.Get(ref _extensions, extension);
2686     }
GetOrInitializeExtension(pb::RepeatedExtension<ExtensionRangeOptions, TValue> extension)2687     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<ExtensionRangeOptions, TValue> extension) {
2688       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
2689     }
SetExtension(pb::Extension<ExtensionRangeOptions, TValue> extension, TValue value)2690     public void SetExtension<TValue>(pb::Extension<ExtensionRangeOptions, TValue> extension, TValue value) {
2691       pb::ExtensionSet.Set(ref _extensions, extension, value);
2692     }
HasExtension(pb::Extension<ExtensionRangeOptions, TValue> extension)2693     public bool HasExtension<TValue>(pb::Extension<ExtensionRangeOptions, TValue> extension) {
2694       return pb::ExtensionSet.Has(ref _extensions, extension);
2695     }
ClearExtension(pb::Extension<ExtensionRangeOptions, TValue> extension)2696     public void ClearExtension<TValue>(pb::Extension<ExtensionRangeOptions, TValue> extension) {
2697       pb::ExtensionSet.Clear(ref _extensions, extension);
2698     }
ClearExtension(pb::RepeatedExtension<ExtensionRangeOptions, TValue> extension)2699     public void ClearExtension<TValue>(pb::RepeatedExtension<ExtensionRangeOptions, TValue> extension) {
2700       pb::ExtensionSet.Clear(ref _extensions, extension);
2701     }
2702 
2703     #region Nested types
2704     /// <summary>Container for nested types declared in the ExtensionRangeOptions message type.</summary>
2705     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2706     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2707     public static partial class Types {
2708       /// <summary>
2709       /// The verification state of the extension range.
2710       /// </summary>
2711       public enum VerificationState {
2712         /// <summary>
2713         /// All the extensions of the range must be declared.
2714         /// </summary>
2715         [pbr::OriginalName("DECLARATION")] Declaration = 0,
2716         [pbr::OriginalName("UNVERIFIED")] Unverified = 1,
2717       }
2718 
2719       [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
2720       public sealed partial class Declaration : pb::IMessage<Declaration>
2721       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2722           , pb::IBufferMessage
2723       #endif
2724       {
2725         private static readonly pb::MessageParser<Declaration> _parser = new pb::MessageParser<Declaration>(() => new Declaration());
2726         private pb::UnknownFieldSet _unknownFields;
2727         private int _hasBits0;
2728         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2729         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2730         public static pb::MessageParser<Declaration> Parser { get { return _parser; } }
2731 
2732         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2733         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2734         public static pbr::MessageDescriptor Descriptor {
2735           get { return global::Google.Protobuf.Reflection.ExtensionRangeOptions.Descriptor.NestedTypes[0]; }
2736         }
2737 
2738         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2739         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2740         pbr::MessageDescriptor pb::IMessage.Descriptor {
2741           get { return Descriptor; }
2742         }
2743 
2744         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2745         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Declaration()2746         public Declaration() {
2747           OnConstruction();
2748         }
2749 
OnConstruction()2750         partial void OnConstruction();
2751 
2752         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2753         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Declaration(Declaration other)2754         public Declaration(Declaration other) : this() {
2755           _hasBits0 = other._hasBits0;
2756           number_ = other.number_;
2757           fullName_ = other.fullName_;
2758           type_ = other.type_;
2759           reserved_ = other.reserved_;
2760           repeated_ = other.repeated_;
2761           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2762         }
2763 
2764         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2765         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()2766         public Declaration Clone() {
2767           return new Declaration(this);
2768         }
2769 
2770         /// <summary>Field number for the "number" field.</summary>
2771         public const int NumberFieldNumber = 1;
2772         private readonly static int NumberDefaultValue = 0;
2773 
2774         private int number_;
2775         /// <summary>
2776         /// The extension number declared within the extension range.
2777         /// </summary>
2778         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2779         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2780         public int Number {
2781           get { if ((_hasBits0 & 1) != 0) { return number_; } else { return NumberDefaultValue; } }
2782           set {
2783             _hasBits0 |= 1;
2784             number_ = value;
2785           }
2786         }
2787         /// <summary>Gets whether the "number" field is set</summary>
2788         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2789         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2790         public bool HasNumber {
2791           get { return (_hasBits0 & 1) != 0; }
2792         }
2793         /// <summary>Clears the value of the "number" field</summary>
2794         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2795         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearNumber()2796         public void ClearNumber() {
2797           _hasBits0 &= ~1;
2798         }
2799 
2800         /// <summary>Field number for the "full_name" field.</summary>
2801         public const int FullNameFieldNumber = 2;
2802         private readonly static string FullNameDefaultValue = "";
2803 
2804         private string fullName_;
2805         /// <summary>
2806         /// The fully-qualified name of the extension field. There must be a leading
2807         /// dot in front of the full name.
2808         /// </summary>
2809         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2810         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2811         public string FullName {
2812           get { return fullName_ ?? FullNameDefaultValue; }
2813           set {
2814             fullName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2815           }
2816         }
2817         /// <summary>Gets whether the "full_name" field is set</summary>
2818         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2819         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2820         public bool HasFullName {
2821           get { return fullName_ != null; }
2822         }
2823         /// <summary>Clears the value of the "full_name" field</summary>
2824         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2825         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFullName()2826         public void ClearFullName() {
2827           fullName_ = null;
2828         }
2829 
2830         /// <summary>Field number for the "type" field.</summary>
2831         public const int TypeFieldNumber = 3;
2832         private readonly static string TypeDefaultValue = "";
2833 
2834         private string type_;
2835         /// <summary>
2836         /// The fully-qualified type name of the extension field. Unlike
2837         /// Metadata.type, Declaration.type must have a leading dot for messages
2838         /// and enums.
2839         /// </summary>
2840         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2841         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2842         public string Type {
2843           get { return type_ ?? TypeDefaultValue; }
2844           set {
2845             type_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2846           }
2847         }
2848         /// <summary>Gets whether the "type" field is set</summary>
2849         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2850         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2851         public bool HasType {
2852           get { return type_ != null; }
2853         }
2854         /// <summary>Clears the value of the "type" field</summary>
2855         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2856         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearType()2857         public void ClearType() {
2858           type_ = null;
2859         }
2860 
2861         /// <summary>Field number for the "reserved" field.</summary>
2862         public const int ReservedFieldNumber = 5;
2863         private readonly static bool ReservedDefaultValue = false;
2864 
2865         private bool reserved_;
2866         /// <summary>
2867         /// If true, indicates that the number is reserved in the extension range,
2868         /// and any extension field with the number will fail to compile. Set this
2869         /// when a declared extension field is deleted.
2870         /// </summary>
2871         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2872         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2873         public bool Reserved {
2874           get { if ((_hasBits0 & 2) != 0) { return reserved_; } else { return ReservedDefaultValue; } }
2875           set {
2876             _hasBits0 |= 2;
2877             reserved_ = value;
2878           }
2879         }
2880         /// <summary>Gets whether the "reserved" field is set</summary>
2881         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2882         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2883         public bool HasReserved {
2884           get { return (_hasBits0 & 2) != 0; }
2885         }
2886         /// <summary>Clears the value of the "reserved" field</summary>
2887         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2888         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearReserved()2889         public void ClearReserved() {
2890           _hasBits0 &= ~2;
2891         }
2892 
2893         /// <summary>Field number for the "repeated" field.</summary>
2894         public const int RepeatedFieldNumber = 6;
2895         private readonly static bool RepeatedDefaultValue = false;
2896 
2897         private bool repeated_;
2898         /// <summary>
2899         /// If true, indicates that the extension must be defined as repeated.
2900         /// Otherwise the extension must be defined as optional.
2901         /// </summary>
2902         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2903         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2904         public bool Repeated {
2905           get { if ((_hasBits0 & 4) != 0) { return repeated_; } else { return RepeatedDefaultValue; } }
2906           set {
2907             _hasBits0 |= 4;
2908             repeated_ = value;
2909           }
2910         }
2911         /// <summary>Gets whether the "repeated" field is set</summary>
2912         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2913         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2914         public bool HasRepeated {
2915           get { return (_hasBits0 & 4) != 0; }
2916         }
2917         /// <summary>Clears the value of the "repeated" field</summary>
2918         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2919         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRepeated()2920         public void ClearRepeated() {
2921           _hasBits0 &= ~4;
2922         }
2923 
2924         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2925         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)2926         public override bool Equals(object other) {
2927           return Equals(other as Declaration);
2928         }
2929 
2930         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2931         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(Declaration other)2932         public bool Equals(Declaration other) {
2933           if (ReferenceEquals(other, null)) {
2934             return false;
2935           }
2936           if (ReferenceEquals(other, this)) {
2937             return true;
2938           }
2939           if (Number != other.Number) return false;
2940           if (FullName != other.FullName) return false;
2941           if (Type != other.Type) return false;
2942           if (Reserved != other.Reserved) return false;
2943           if (Repeated != other.Repeated) return false;
2944           return Equals(_unknownFields, other._unknownFields);
2945         }
2946 
2947         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2948         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()2949         public override int GetHashCode() {
2950           int hash = 1;
2951           if (HasNumber) hash ^= Number.GetHashCode();
2952           if (HasFullName) hash ^= FullName.GetHashCode();
2953           if (HasType) hash ^= Type.GetHashCode();
2954           if (HasReserved) hash ^= Reserved.GetHashCode();
2955           if (HasRepeated) hash ^= Repeated.GetHashCode();
2956           if (_unknownFields != null) {
2957             hash ^= _unknownFields.GetHashCode();
2958           }
2959           return hash;
2960         }
2961 
2962         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2963         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()2964         public override string ToString() {
2965           return pb::JsonFormatter.ToDiagnosticString(this);
2966         }
2967 
2968         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2969         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)2970         public void WriteTo(pb::CodedOutputStream output) {
2971         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2972           output.WriteRawMessage(this);
2973         #else
2974           if (HasNumber) {
2975             output.WriteRawTag(8);
2976             output.WriteInt32(Number);
2977           }
2978           if (HasFullName) {
2979             output.WriteRawTag(18);
2980             output.WriteString(FullName);
2981           }
2982           if (HasType) {
2983             output.WriteRawTag(26);
2984             output.WriteString(Type);
2985           }
2986           if (HasReserved) {
2987             output.WriteRawTag(40);
2988             output.WriteBool(Reserved);
2989           }
2990           if (HasRepeated) {
2991             output.WriteRawTag(48);
2992             output.WriteBool(Repeated);
2993           }
2994           if (_unknownFields != null) {
2995             _unknownFields.WriteTo(output);
2996           }
2997         #endif
2998         }
2999 
3000         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3001         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3002         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3003         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3004           if (HasNumber) {
3005             output.WriteRawTag(8);
3006             output.WriteInt32(Number);
3007           }
3008           if (HasFullName) {
3009             output.WriteRawTag(18);
3010             output.WriteString(FullName);
3011           }
3012           if (HasType) {
3013             output.WriteRawTag(26);
3014             output.WriteString(Type);
3015           }
3016           if (HasReserved) {
3017             output.WriteRawTag(40);
3018             output.WriteBool(Reserved);
3019           }
3020           if (HasRepeated) {
3021             output.WriteRawTag(48);
3022             output.WriteBool(Repeated);
3023           }
3024           if (_unknownFields != null) {
3025             _unknownFields.WriteTo(ref output);
3026           }
3027         }
3028         #endif
3029 
3030         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3031         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()3032         public int CalculateSize() {
3033           int size = 0;
3034           if (HasNumber) {
3035             size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
3036           }
3037           if (HasFullName) {
3038             size += 1 + pb::CodedOutputStream.ComputeStringSize(FullName);
3039           }
3040           if (HasType) {
3041             size += 1 + pb::CodedOutputStream.ComputeStringSize(Type);
3042           }
3043           if (HasReserved) {
3044             size += 1 + 1;
3045           }
3046           if (HasRepeated) {
3047             size += 1 + 1;
3048           }
3049           if (_unknownFields != null) {
3050             size += _unknownFields.CalculateSize();
3051           }
3052           return size;
3053         }
3054 
3055         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3056         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(Declaration other)3057         public void MergeFrom(Declaration other) {
3058           if (other == null) {
3059             return;
3060           }
3061           if (other.HasNumber) {
3062             Number = other.Number;
3063           }
3064           if (other.HasFullName) {
3065             FullName = other.FullName;
3066           }
3067           if (other.HasType) {
3068             Type = other.Type;
3069           }
3070           if (other.HasReserved) {
3071             Reserved = other.Reserved;
3072           }
3073           if (other.HasRepeated) {
3074             Repeated = other.Repeated;
3075           }
3076           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3077         }
3078 
3079         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3080         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)3081         public void MergeFrom(pb::CodedInputStream input) {
3082         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3083           input.ReadRawMessage(this);
3084         #else
3085           uint tag;
3086           while ((tag = input.ReadTag()) != 0) {
3087           if ((tag & 7) == 4) {
3088             // Abort on any end group tag.
3089             return;
3090           }
3091           switch(tag) {
3092               default:
3093                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3094                 break;
3095               case 8: {
3096                 Number = input.ReadInt32();
3097                 break;
3098               }
3099               case 18: {
3100                 FullName = input.ReadString();
3101                 break;
3102               }
3103               case 26: {
3104                 Type = input.ReadString();
3105                 break;
3106               }
3107               case 40: {
3108                 Reserved = input.ReadBool();
3109                 break;
3110               }
3111               case 48: {
3112                 Repeated = input.ReadBool();
3113                 break;
3114               }
3115             }
3116           }
3117         #endif
3118         }
3119 
3120         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3121         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3122         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)3123         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3124           uint tag;
3125           while ((tag = input.ReadTag()) != 0) {
3126           if ((tag & 7) == 4) {
3127             // Abort on any end group tag.
3128             return;
3129           }
3130           switch(tag) {
3131               default:
3132                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3133                 break;
3134               case 8: {
3135                 Number = input.ReadInt32();
3136                 break;
3137               }
3138               case 18: {
3139                 FullName = input.ReadString();
3140                 break;
3141               }
3142               case 26: {
3143                 Type = input.ReadString();
3144                 break;
3145               }
3146               case 40: {
3147                 Reserved = input.ReadBool();
3148                 break;
3149               }
3150               case 48: {
3151                 Repeated = input.ReadBool();
3152                 break;
3153               }
3154             }
3155           }
3156         }
3157         #endif
3158 
3159       }
3160 
3161     }
3162     #endregion
3163 
3164   }
3165 
3166   /// <summary>
3167   /// Describes a field within a message.
3168   /// </summary>
3169   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
3170   public sealed partial class FieldDescriptorProto : pb::IMessage<FieldDescriptorProto>
3171   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3172       , pb::IBufferMessage
3173   #endif
3174   {
3175     private static readonly pb::MessageParser<FieldDescriptorProto> _parser = new pb::MessageParser<FieldDescriptorProto>(() => new FieldDescriptorProto());
3176     private pb::UnknownFieldSet _unknownFields;
3177     private int _hasBits0;
3178     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3179     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3180     public static pb::MessageParser<FieldDescriptorProto> Parser { get { return _parser; } }
3181 
3182     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3183     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3184     public static pbr::MessageDescriptor Descriptor {
3185       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[4]; }
3186     }
3187 
3188     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3189     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3190     pbr::MessageDescriptor pb::IMessage.Descriptor {
3191       get { return Descriptor; }
3192     }
3193 
3194     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3195     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FieldDescriptorProto()3196     public FieldDescriptorProto() {
3197       OnConstruction();
3198     }
3199 
OnConstruction()3200     partial void OnConstruction();
3201 
3202     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3203     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FieldDescriptorProto(FieldDescriptorProto other)3204     public FieldDescriptorProto(FieldDescriptorProto other) : this() {
3205       _hasBits0 = other._hasBits0;
3206       name_ = other.name_;
3207       number_ = other.number_;
3208       label_ = other.label_;
3209       type_ = other.type_;
3210       typeName_ = other.typeName_;
3211       extendee_ = other.extendee_;
3212       defaultValue_ = other.defaultValue_;
3213       oneofIndex_ = other.oneofIndex_;
3214       jsonName_ = other.jsonName_;
3215       options_ = other.options_ != null ? other.options_.Clone() : null;
3216       proto3Optional_ = other.proto3Optional_;
3217       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
3218     }
3219 
3220     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3221     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()3222     public FieldDescriptorProto Clone() {
3223       return new FieldDescriptorProto(this);
3224     }
3225 
3226     /// <summary>Field number for the "name" field.</summary>
3227     public const int NameFieldNumber = 1;
3228     private readonly static string NameDefaultValue = "";
3229 
3230     private string name_;
3231     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3232     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3233     public string Name {
3234       get { return name_ ?? NameDefaultValue; }
3235       set {
3236         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
3237       }
3238     }
3239     /// <summary>Gets whether the "name" field is set</summary>
3240     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3241     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3242     public bool HasName {
3243       get { return name_ != null; }
3244     }
3245     /// <summary>Clears the value of the "name" field</summary>
3246     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3247     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearName()3248     public void ClearName() {
3249       name_ = null;
3250     }
3251 
3252     /// <summary>Field number for the "number" field.</summary>
3253     public const int NumberFieldNumber = 3;
3254     private readonly static int NumberDefaultValue = 0;
3255 
3256     private int number_;
3257     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3258     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3259     public int Number {
3260       get { if ((_hasBits0 & 1) != 0) { return number_; } else { return NumberDefaultValue; } }
3261       set {
3262         _hasBits0 |= 1;
3263         number_ = value;
3264       }
3265     }
3266     /// <summary>Gets whether the "number" field is set</summary>
3267     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3268     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3269     public bool HasNumber {
3270       get { return (_hasBits0 & 1) != 0; }
3271     }
3272     /// <summary>Clears the value of the "number" field</summary>
3273     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3274     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearNumber()3275     public void ClearNumber() {
3276       _hasBits0 &= ~1;
3277     }
3278 
3279     /// <summary>Field number for the "label" field.</summary>
3280     public const int LabelFieldNumber = 4;
3281     private readonly static global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label LabelDefaultValue = global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label.Optional;
3282 
3283     private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label label_;
3284     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3285     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3286     public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label Label {
3287       get { if ((_hasBits0 & 2) != 0) { return label_; } else { return LabelDefaultValue; } }
3288       set {
3289         _hasBits0 |= 2;
3290         label_ = value;
3291       }
3292     }
3293     /// <summary>Gets whether the "label" field is set</summary>
3294     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3295     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3296     public bool HasLabel {
3297       get { return (_hasBits0 & 2) != 0; }
3298     }
3299     /// <summary>Clears the value of the "label" field</summary>
3300     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3301     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearLabel()3302     public void ClearLabel() {
3303       _hasBits0 &= ~2;
3304     }
3305 
3306     /// <summary>Field number for the "type" field.</summary>
3307     public const int TypeFieldNumber = 5;
3308     private readonly static global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type TypeDefaultValue = global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type.Double;
3309 
3310     private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type type_;
3311     /// <summary>
3312     /// If type_name is set, this need not be set.  If both this and type_name
3313     /// are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
3314     /// </summary>
3315     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3316     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3317     public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type Type {
3318       get { if ((_hasBits0 & 4) != 0) { return type_; } else { return TypeDefaultValue; } }
3319       set {
3320         _hasBits0 |= 4;
3321         type_ = value;
3322       }
3323     }
3324     /// <summary>Gets whether the "type" field is set</summary>
3325     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3326     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3327     public bool HasType {
3328       get { return (_hasBits0 & 4) != 0; }
3329     }
3330     /// <summary>Clears the value of the "type" field</summary>
3331     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3332     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearType()3333     public void ClearType() {
3334       _hasBits0 &= ~4;
3335     }
3336 
3337     /// <summary>Field number for the "type_name" field.</summary>
3338     public const int TypeNameFieldNumber = 6;
3339     private readonly static string TypeNameDefaultValue = "";
3340 
3341     private string typeName_;
3342     /// <summary>
3343     /// For message and enum types, this is the name of the type.  If the name
3344     /// starts with a '.', it is fully-qualified.  Otherwise, C++-like scoping
3345     /// rules are used to find the type (i.e. first the nested types within this
3346     /// message are searched, then within the parent, on up to the root
3347     /// namespace).
3348     /// </summary>
3349     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3350     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3351     public string TypeName {
3352       get { return typeName_ ?? TypeNameDefaultValue; }
3353       set {
3354         typeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
3355       }
3356     }
3357     /// <summary>Gets whether the "type_name" field is set</summary>
3358     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3359     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3360     public bool HasTypeName {
3361       get { return typeName_ != null; }
3362     }
3363     /// <summary>Clears the value of the "type_name" field</summary>
3364     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3365     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearTypeName()3366     public void ClearTypeName() {
3367       typeName_ = null;
3368     }
3369 
3370     /// <summary>Field number for the "extendee" field.</summary>
3371     public const int ExtendeeFieldNumber = 2;
3372     private readonly static string ExtendeeDefaultValue = "";
3373 
3374     private string extendee_;
3375     /// <summary>
3376     /// For extensions, this is the name of the type being extended.  It is
3377     /// resolved in the same manner as type_name.
3378     /// </summary>
3379     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3380     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3381     public string Extendee {
3382       get { return extendee_ ?? ExtendeeDefaultValue; }
3383       set {
3384         extendee_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
3385       }
3386     }
3387     /// <summary>Gets whether the "extendee" field is set</summary>
3388     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3389     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3390     public bool HasExtendee {
3391       get { return extendee_ != null; }
3392     }
3393     /// <summary>Clears the value of the "extendee" field</summary>
3394     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3395     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearExtendee()3396     public void ClearExtendee() {
3397       extendee_ = null;
3398     }
3399 
3400     /// <summary>Field number for the "default_value" field.</summary>
3401     public const int DefaultValueFieldNumber = 7;
3402     private readonly static string DefaultValueDefaultValue = "";
3403 
3404     private string defaultValue_;
3405     /// <summary>
3406     /// For numeric types, contains the original text representation of the value.
3407     /// For booleans, "true" or "false".
3408     /// For strings, contains the default text contents (not escaped in any way).
3409     /// For bytes, contains the C escaped value.  All bytes >= 128 are escaped.
3410     /// </summary>
3411     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3412     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3413     public string DefaultValue {
3414       get { return defaultValue_ ?? DefaultValueDefaultValue; }
3415       set {
3416         defaultValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
3417       }
3418     }
3419     /// <summary>Gets whether the "default_value" field is set</summary>
3420     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3421     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3422     public bool HasDefaultValue {
3423       get { return defaultValue_ != null; }
3424     }
3425     /// <summary>Clears the value of the "default_value" field</summary>
3426     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3427     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDefaultValue()3428     public void ClearDefaultValue() {
3429       defaultValue_ = null;
3430     }
3431 
3432     /// <summary>Field number for the "oneof_index" field.</summary>
3433     public const int OneofIndexFieldNumber = 9;
3434     private readonly static int OneofIndexDefaultValue = 0;
3435 
3436     private int oneofIndex_;
3437     /// <summary>
3438     /// If set, gives the index of a oneof in the containing type's oneof_decl
3439     /// list.  This field is a member of that oneof.
3440     /// </summary>
3441     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3442     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3443     public int OneofIndex {
3444       get { if ((_hasBits0 & 8) != 0) { return oneofIndex_; } else { return OneofIndexDefaultValue; } }
3445       set {
3446         _hasBits0 |= 8;
3447         oneofIndex_ = value;
3448       }
3449     }
3450     /// <summary>Gets whether the "oneof_index" field is set</summary>
3451     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3452     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3453     public bool HasOneofIndex {
3454       get { return (_hasBits0 & 8) != 0; }
3455     }
3456     /// <summary>Clears the value of the "oneof_index" field</summary>
3457     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3458     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOneofIndex()3459     public void ClearOneofIndex() {
3460       _hasBits0 &= ~8;
3461     }
3462 
3463     /// <summary>Field number for the "json_name" field.</summary>
3464     public const int JsonNameFieldNumber = 10;
3465     private readonly static string JsonNameDefaultValue = "";
3466 
3467     private string jsonName_;
3468     /// <summary>
3469     /// JSON name of this field. The value is set by protocol compiler. If the
3470     /// user has set a "json_name" option on this field, that option's value
3471     /// will be used. Otherwise, it's deduced from the field's name by converting
3472     /// it to camelCase.
3473     /// </summary>
3474     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3475     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3476     public string JsonName {
3477       get { return jsonName_ ?? JsonNameDefaultValue; }
3478       set {
3479         jsonName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
3480       }
3481     }
3482     /// <summary>Gets whether the "json_name" field is set</summary>
3483     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3484     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3485     public bool HasJsonName {
3486       get { return jsonName_ != null; }
3487     }
3488     /// <summary>Clears the value of the "json_name" field</summary>
3489     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3490     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearJsonName()3491     public void ClearJsonName() {
3492       jsonName_ = null;
3493     }
3494 
3495     /// <summary>Field number for the "options" field.</summary>
3496     public const int OptionsFieldNumber = 8;
3497     private global::Google.Protobuf.Reflection.FieldOptions options_;
3498     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3499     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3500     public global::Google.Protobuf.Reflection.FieldOptions Options {
3501       get { return options_; }
3502       set {
3503         options_ = value;
3504       }
3505     }
3506 
3507     /// <summary>Field number for the "proto3_optional" field.</summary>
3508     public const int Proto3OptionalFieldNumber = 17;
3509     private readonly static bool Proto3OptionalDefaultValue = false;
3510 
3511     private bool proto3Optional_;
3512     /// <summary>
3513     /// If true, this is a proto3 "optional". When a proto3 field is optional, it
3514     /// tracks presence regardless of field type.
3515     ///
3516     /// When proto3_optional is true, this field must belong to a oneof to signal
3517     /// to old proto3 clients that presence is tracked for this field. This oneof
3518     /// is known as a "synthetic" oneof, and this field must be its sole member
3519     /// (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs
3520     /// exist in the descriptor only, and do not generate any API. Synthetic oneofs
3521     /// must be ordered after all "real" oneofs.
3522     ///
3523     /// For message fields, proto3_optional doesn't create any semantic change,
3524     /// since non-repeated message fields always track presence. However it still
3525     /// indicates the semantic detail of whether the user wrote "optional" or not.
3526     /// This can be useful for round-tripping the .proto file. For consistency we
3527     /// give message fields a synthetic oneof also, even though it is not required
3528     /// to track presence. This is especially important because the parser can't
3529     /// tell if a field is a message or an enum, so it must always create a
3530     /// synthetic oneof.
3531     ///
3532     /// Proto2 optional fields do not set this flag, because they already indicate
3533     /// optional with `LABEL_OPTIONAL`.
3534     /// </summary>
3535     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3536     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3537     public bool Proto3Optional {
3538       get { if ((_hasBits0 & 16) != 0) { return proto3Optional_; } else { return Proto3OptionalDefaultValue; } }
3539       set {
3540         _hasBits0 |= 16;
3541         proto3Optional_ = value;
3542       }
3543     }
3544     /// <summary>Gets whether the "proto3_optional" field is set</summary>
3545     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3546     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3547     public bool HasProto3Optional {
3548       get { return (_hasBits0 & 16) != 0; }
3549     }
3550     /// <summary>Clears the value of the "proto3_optional" field</summary>
3551     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3552     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearProto3Optional()3553     public void ClearProto3Optional() {
3554       _hasBits0 &= ~16;
3555     }
3556 
3557     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3558     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)3559     public override bool Equals(object other) {
3560       return Equals(other as FieldDescriptorProto);
3561     }
3562 
3563     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3564     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(FieldDescriptorProto other)3565     public bool Equals(FieldDescriptorProto other) {
3566       if (ReferenceEquals(other, null)) {
3567         return false;
3568       }
3569       if (ReferenceEquals(other, this)) {
3570         return true;
3571       }
3572       if (Name != other.Name) return false;
3573       if (Number != other.Number) return false;
3574       if (Label != other.Label) return false;
3575       if (Type != other.Type) return false;
3576       if (TypeName != other.TypeName) return false;
3577       if (Extendee != other.Extendee) return false;
3578       if (DefaultValue != other.DefaultValue) return false;
3579       if (OneofIndex != other.OneofIndex) return false;
3580       if (JsonName != other.JsonName) return false;
3581       if (!object.Equals(Options, other.Options)) return false;
3582       if (Proto3Optional != other.Proto3Optional) return false;
3583       return Equals(_unknownFields, other._unknownFields);
3584     }
3585 
3586     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3587     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()3588     public override int GetHashCode() {
3589       int hash = 1;
3590       if (HasName) hash ^= Name.GetHashCode();
3591       if (HasNumber) hash ^= Number.GetHashCode();
3592       if (HasLabel) hash ^= Label.GetHashCode();
3593       if (HasType) hash ^= Type.GetHashCode();
3594       if (HasTypeName) hash ^= TypeName.GetHashCode();
3595       if (HasExtendee) hash ^= Extendee.GetHashCode();
3596       if (HasDefaultValue) hash ^= DefaultValue.GetHashCode();
3597       if (HasOneofIndex) hash ^= OneofIndex.GetHashCode();
3598       if (HasJsonName) hash ^= JsonName.GetHashCode();
3599       if (options_ != null) hash ^= Options.GetHashCode();
3600       if (HasProto3Optional) hash ^= Proto3Optional.GetHashCode();
3601       if (_unknownFields != null) {
3602         hash ^= _unknownFields.GetHashCode();
3603       }
3604       return hash;
3605     }
3606 
3607     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3608     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()3609     public override string ToString() {
3610       return pb::JsonFormatter.ToDiagnosticString(this);
3611     }
3612 
3613     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3614     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)3615     public void WriteTo(pb::CodedOutputStream output) {
3616     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3617       output.WriteRawMessage(this);
3618     #else
3619       if (HasName) {
3620         output.WriteRawTag(10);
3621         output.WriteString(Name);
3622       }
3623       if (HasExtendee) {
3624         output.WriteRawTag(18);
3625         output.WriteString(Extendee);
3626       }
3627       if (HasNumber) {
3628         output.WriteRawTag(24);
3629         output.WriteInt32(Number);
3630       }
3631       if (HasLabel) {
3632         output.WriteRawTag(32);
3633         output.WriteEnum((int) Label);
3634       }
3635       if (HasType) {
3636         output.WriteRawTag(40);
3637         output.WriteEnum((int) Type);
3638       }
3639       if (HasTypeName) {
3640         output.WriteRawTag(50);
3641         output.WriteString(TypeName);
3642       }
3643       if (HasDefaultValue) {
3644         output.WriteRawTag(58);
3645         output.WriteString(DefaultValue);
3646       }
3647       if (options_ != null) {
3648         output.WriteRawTag(66);
3649         output.WriteMessage(Options);
3650       }
3651       if (HasOneofIndex) {
3652         output.WriteRawTag(72);
3653         output.WriteInt32(OneofIndex);
3654       }
3655       if (HasJsonName) {
3656         output.WriteRawTag(82);
3657         output.WriteString(JsonName);
3658       }
3659       if (HasProto3Optional) {
3660         output.WriteRawTag(136, 1);
3661         output.WriteBool(Proto3Optional);
3662       }
3663       if (_unknownFields != null) {
3664         _unknownFields.WriteTo(output);
3665       }
3666     #endif
3667     }
3668 
3669     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3670     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3671     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3672     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3673       if (HasName) {
3674         output.WriteRawTag(10);
3675         output.WriteString(Name);
3676       }
3677       if (HasExtendee) {
3678         output.WriteRawTag(18);
3679         output.WriteString(Extendee);
3680       }
3681       if (HasNumber) {
3682         output.WriteRawTag(24);
3683         output.WriteInt32(Number);
3684       }
3685       if (HasLabel) {
3686         output.WriteRawTag(32);
3687         output.WriteEnum((int) Label);
3688       }
3689       if (HasType) {
3690         output.WriteRawTag(40);
3691         output.WriteEnum((int) Type);
3692       }
3693       if (HasTypeName) {
3694         output.WriteRawTag(50);
3695         output.WriteString(TypeName);
3696       }
3697       if (HasDefaultValue) {
3698         output.WriteRawTag(58);
3699         output.WriteString(DefaultValue);
3700       }
3701       if (options_ != null) {
3702         output.WriteRawTag(66);
3703         output.WriteMessage(Options);
3704       }
3705       if (HasOneofIndex) {
3706         output.WriteRawTag(72);
3707         output.WriteInt32(OneofIndex);
3708       }
3709       if (HasJsonName) {
3710         output.WriteRawTag(82);
3711         output.WriteString(JsonName);
3712       }
3713       if (HasProto3Optional) {
3714         output.WriteRawTag(136, 1);
3715         output.WriteBool(Proto3Optional);
3716       }
3717       if (_unknownFields != null) {
3718         _unknownFields.WriteTo(ref output);
3719       }
3720     }
3721     #endif
3722 
3723     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3724     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()3725     public int CalculateSize() {
3726       int size = 0;
3727       if (HasName) {
3728         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
3729       }
3730       if (HasNumber) {
3731         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
3732       }
3733       if (HasLabel) {
3734         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Label);
3735       }
3736       if (HasType) {
3737         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
3738       }
3739       if (HasTypeName) {
3740         size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeName);
3741       }
3742       if (HasExtendee) {
3743         size += 1 + pb::CodedOutputStream.ComputeStringSize(Extendee);
3744       }
3745       if (HasDefaultValue) {
3746         size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultValue);
3747       }
3748       if (HasOneofIndex) {
3749         size += 1 + pb::CodedOutputStream.ComputeInt32Size(OneofIndex);
3750       }
3751       if (HasJsonName) {
3752         size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonName);
3753       }
3754       if (options_ != null) {
3755         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
3756       }
3757       if (HasProto3Optional) {
3758         size += 2 + 1;
3759       }
3760       if (_unknownFields != null) {
3761         size += _unknownFields.CalculateSize();
3762       }
3763       return size;
3764     }
3765 
3766     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3767     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(FieldDescriptorProto other)3768     public void MergeFrom(FieldDescriptorProto other) {
3769       if (other == null) {
3770         return;
3771       }
3772       if (other.HasName) {
3773         Name = other.Name;
3774       }
3775       if (other.HasNumber) {
3776         Number = other.Number;
3777       }
3778       if (other.HasLabel) {
3779         Label = other.Label;
3780       }
3781       if (other.HasType) {
3782         Type = other.Type;
3783       }
3784       if (other.HasTypeName) {
3785         TypeName = other.TypeName;
3786       }
3787       if (other.HasExtendee) {
3788         Extendee = other.Extendee;
3789       }
3790       if (other.HasDefaultValue) {
3791         DefaultValue = other.DefaultValue;
3792       }
3793       if (other.HasOneofIndex) {
3794         OneofIndex = other.OneofIndex;
3795       }
3796       if (other.HasJsonName) {
3797         JsonName = other.JsonName;
3798       }
3799       if (other.options_ != null) {
3800         if (options_ == null) {
3801           Options = new global::Google.Protobuf.Reflection.FieldOptions();
3802         }
3803         Options.MergeFrom(other.Options);
3804       }
3805       if (other.HasProto3Optional) {
3806         Proto3Optional = other.Proto3Optional;
3807       }
3808       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3809     }
3810 
3811     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3812     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)3813     public void MergeFrom(pb::CodedInputStream input) {
3814     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3815       input.ReadRawMessage(this);
3816     #else
3817       uint tag;
3818       while ((tag = input.ReadTag()) != 0) {
3819       if ((tag & 7) == 4) {
3820         // Abort on any end group tag.
3821         return;
3822       }
3823       switch(tag) {
3824           default:
3825             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3826             break;
3827           case 10: {
3828             Name = input.ReadString();
3829             break;
3830           }
3831           case 18: {
3832             Extendee = input.ReadString();
3833             break;
3834           }
3835           case 24: {
3836             Number = input.ReadInt32();
3837             break;
3838           }
3839           case 32: {
3840             Label = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label) input.ReadEnum();
3841             break;
3842           }
3843           case 40: {
3844             Type = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type) input.ReadEnum();
3845             break;
3846           }
3847           case 50: {
3848             TypeName = input.ReadString();
3849             break;
3850           }
3851           case 58: {
3852             DefaultValue = input.ReadString();
3853             break;
3854           }
3855           case 66: {
3856             if (options_ == null) {
3857               Options = new global::Google.Protobuf.Reflection.FieldOptions();
3858             }
3859             input.ReadMessage(Options);
3860             break;
3861           }
3862           case 72: {
3863             OneofIndex = input.ReadInt32();
3864             break;
3865           }
3866           case 82: {
3867             JsonName = input.ReadString();
3868             break;
3869           }
3870           case 136: {
3871             Proto3Optional = input.ReadBool();
3872             break;
3873           }
3874         }
3875       }
3876     #endif
3877     }
3878 
3879     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3880     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3881     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)3882     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3883       uint tag;
3884       while ((tag = input.ReadTag()) != 0) {
3885       if ((tag & 7) == 4) {
3886         // Abort on any end group tag.
3887         return;
3888       }
3889       switch(tag) {
3890           default:
3891             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3892             break;
3893           case 10: {
3894             Name = input.ReadString();
3895             break;
3896           }
3897           case 18: {
3898             Extendee = input.ReadString();
3899             break;
3900           }
3901           case 24: {
3902             Number = input.ReadInt32();
3903             break;
3904           }
3905           case 32: {
3906             Label = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label) input.ReadEnum();
3907             break;
3908           }
3909           case 40: {
3910             Type = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type) input.ReadEnum();
3911             break;
3912           }
3913           case 50: {
3914             TypeName = input.ReadString();
3915             break;
3916           }
3917           case 58: {
3918             DefaultValue = input.ReadString();
3919             break;
3920           }
3921           case 66: {
3922             if (options_ == null) {
3923               Options = new global::Google.Protobuf.Reflection.FieldOptions();
3924             }
3925             input.ReadMessage(Options);
3926             break;
3927           }
3928           case 72: {
3929             OneofIndex = input.ReadInt32();
3930             break;
3931           }
3932           case 82: {
3933             JsonName = input.ReadString();
3934             break;
3935           }
3936           case 136: {
3937             Proto3Optional = input.ReadBool();
3938             break;
3939           }
3940         }
3941       }
3942     }
3943     #endif
3944 
3945     #region Nested types
3946     /// <summary>Container for nested types declared in the FieldDescriptorProto message type.</summary>
3947     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3948     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
3949     public static partial class Types {
3950       public enum Type {
3951         /// <summary>
3952         /// 0 is reserved for errors.
3953         /// Order is weird for historical reasons.
3954         /// </summary>
3955         [pbr::OriginalName("TYPE_DOUBLE")] Double = 1,
3956         [pbr::OriginalName("TYPE_FLOAT")] Float = 2,
3957         /// <summary>
3958         /// Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT64 if
3959         /// negative values are likely.
3960         /// </summary>
3961         [pbr::OriginalName("TYPE_INT64")] Int64 = 3,
3962         [pbr::OriginalName("TYPE_UINT64")] Uint64 = 4,
3963         /// <summary>
3964         /// Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT32 if
3965         /// negative values are likely.
3966         /// </summary>
3967         [pbr::OriginalName("TYPE_INT32")] Int32 = 5,
3968         [pbr::OriginalName("TYPE_FIXED64")] Fixed64 = 6,
3969         [pbr::OriginalName("TYPE_FIXED32")] Fixed32 = 7,
3970         [pbr::OriginalName("TYPE_BOOL")] Bool = 8,
3971         [pbr::OriginalName("TYPE_STRING")] String = 9,
3972         /// <summary>
3973         /// Tag-delimited aggregate.
3974         /// Group type is deprecated and not supported after google.protobuf. However, Proto3
3975         /// implementations should still be able to parse the group wire format and
3976         /// treat group fields as unknown fields.  In Editions, the group wire format
3977         /// can be enabled via the `message_encoding` feature.
3978         /// </summary>
3979         [pbr::OriginalName("TYPE_GROUP")] Group = 10,
3980         /// <summary>
3981         /// Length-delimited aggregate.
3982         /// </summary>
3983         [pbr::OriginalName("TYPE_MESSAGE")] Message = 11,
3984         /// <summary>
3985         /// New in version 2.
3986         /// </summary>
3987         [pbr::OriginalName("TYPE_BYTES")] Bytes = 12,
3988         [pbr::OriginalName("TYPE_UINT32")] Uint32 = 13,
3989         [pbr::OriginalName("TYPE_ENUM")] Enum = 14,
3990         [pbr::OriginalName("TYPE_SFIXED32")] Sfixed32 = 15,
3991         [pbr::OriginalName("TYPE_SFIXED64")] Sfixed64 = 16,
3992         /// <summary>
3993         /// Uses ZigZag encoding.
3994         /// </summary>
3995         [pbr::OriginalName("TYPE_SINT32")] Sint32 = 17,
3996         /// <summary>
3997         /// Uses ZigZag encoding.
3998         /// </summary>
3999         [pbr::OriginalName("TYPE_SINT64")] Sint64 = 18,
4000       }
4001 
4002       public enum Label {
4003         /// <summary>
4004         /// 0 is reserved for errors
4005         /// </summary>
4006         [pbr::OriginalName("LABEL_OPTIONAL")] Optional = 1,
4007         [pbr::OriginalName("LABEL_REPEATED")] Repeated = 3,
4008         /// <summary>
4009         /// The required label is only allowed in google.protobuf.  In proto3 and Editions
4010         /// it's explicitly prohibited.  In Editions, the `field_presence` feature
4011         /// can be used to get this behavior.
4012         /// </summary>
4013         [pbr::OriginalName("LABEL_REQUIRED")] Required = 2,
4014       }
4015 
4016     }
4017     #endregion
4018 
4019   }
4020 
4021   /// <summary>
4022   /// Describes a oneof.
4023   /// </summary>
4024   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
4025   public sealed partial class OneofDescriptorProto : pb::IMessage<OneofDescriptorProto>
4026   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4027       , pb::IBufferMessage
4028   #endif
4029   {
4030     private static readonly pb::MessageParser<OneofDescriptorProto> _parser = new pb::MessageParser<OneofDescriptorProto>(() => new OneofDescriptorProto());
4031     private pb::UnknownFieldSet _unknownFields;
4032     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4033     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4034     public static pb::MessageParser<OneofDescriptorProto> Parser { get { return _parser; } }
4035 
4036     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4037     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4038     public static pbr::MessageDescriptor Descriptor {
4039       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[5]; }
4040     }
4041 
4042     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4043     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4044     pbr::MessageDescriptor pb::IMessage.Descriptor {
4045       get { return Descriptor; }
4046     }
4047 
4048     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4049     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OneofDescriptorProto()4050     public OneofDescriptorProto() {
4051       OnConstruction();
4052     }
4053 
OnConstruction()4054     partial void OnConstruction();
4055 
4056     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4057     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OneofDescriptorProto(OneofDescriptorProto other)4058     public OneofDescriptorProto(OneofDescriptorProto other) : this() {
4059       name_ = other.name_;
4060       options_ = other.options_ != null ? other.options_.Clone() : null;
4061       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4062     }
4063 
4064     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4065     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()4066     public OneofDescriptorProto Clone() {
4067       return new OneofDescriptorProto(this);
4068     }
4069 
4070     /// <summary>Field number for the "name" field.</summary>
4071     public const int NameFieldNumber = 1;
4072     private readonly static string NameDefaultValue = "";
4073 
4074     private string name_;
4075     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4076     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4077     public string Name {
4078       get { return name_ ?? NameDefaultValue; }
4079       set {
4080         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
4081       }
4082     }
4083     /// <summary>Gets whether the "name" field is set</summary>
4084     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4085     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4086     public bool HasName {
4087       get { return name_ != null; }
4088     }
4089     /// <summary>Clears the value of the "name" field</summary>
4090     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4091     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearName()4092     public void ClearName() {
4093       name_ = null;
4094     }
4095 
4096     /// <summary>Field number for the "options" field.</summary>
4097     public const int OptionsFieldNumber = 2;
4098     private global::Google.Protobuf.Reflection.OneofOptions options_;
4099     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4100     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4101     public global::Google.Protobuf.Reflection.OneofOptions Options {
4102       get { return options_; }
4103       set {
4104         options_ = value;
4105       }
4106     }
4107 
4108     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4109     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)4110     public override bool Equals(object other) {
4111       return Equals(other as OneofDescriptorProto);
4112     }
4113 
4114     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4115     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(OneofDescriptorProto other)4116     public bool Equals(OneofDescriptorProto other) {
4117       if (ReferenceEquals(other, null)) {
4118         return false;
4119       }
4120       if (ReferenceEquals(other, this)) {
4121         return true;
4122       }
4123       if (Name != other.Name) return false;
4124       if (!object.Equals(Options, other.Options)) return false;
4125       return Equals(_unknownFields, other._unknownFields);
4126     }
4127 
4128     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4129     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()4130     public override int GetHashCode() {
4131       int hash = 1;
4132       if (HasName) hash ^= Name.GetHashCode();
4133       if (options_ != null) hash ^= Options.GetHashCode();
4134       if (_unknownFields != null) {
4135         hash ^= _unknownFields.GetHashCode();
4136       }
4137       return hash;
4138     }
4139 
4140     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4141     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()4142     public override string ToString() {
4143       return pb::JsonFormatter.ToDiagnosticString(this);
4144     }
4145 
4146     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4147     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)4148     public void WriteTo(pb::CodedOutputStream output) {
4149     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4150       output.WriteRawMessage(this);
4151     #else
4152       if (HasName) {
4153         output.WriteRawTag(10);
4154         output.WriteString(Name);
4155       }
4156       if (options_ != null) {
4157         output.WriteRawTag(18);
4158         output.WriteMessage(Options);
4159       }
4160       if (_unknownFields != null) {
4161         _unknownFields.WriteTo(output);
4162       }
4163     #endif
4164     }
4165 
4166     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4167     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4168     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)4169     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
4170       if (HasName) {
4171         output.WriteRawTag(10);
4172         output.WriteString(Name);
4173       }
4174       if (options_ != null) {
4175         output.WriteRawTag(18);
4176         output.WriteMessage(Options);
4177       }
4178       if (_unknownFields != null) {
4179         _unknownFields.WriteTo(ref output);
4180       }
4181     }
4182     #endif
4183 
4184     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4185     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()4186     public int CalculateSize() {
4187       int size = 0;
4188       if (HasName) {
4189         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
4190       }
4191       if (options_ != null) {
4192         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
4193       }
4194       if (_unknownFields != null) {
4195         size += _unknownFields.CalculateSize();
4196       }
4197       return size;
4198     }
4199 
4200     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4201     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(OneofDescriptorProto other)4202     public void MergeFrom(OneofDescriptorProto other) {
4203       if (other == null) {
4204         return;
4205       }
4206       if (other.HasName) {
4207         Name = other.Name;
4208       }
4209       if (other.options_ != null) {
4210         if (options_ == null) {
4211           Options = new global::Google.Protobuf.Reflection.OneofOptions();
4212         }
4213         Options.MergeFrom(other.Options);
4214       }
4215       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4216     }
4217 
4218     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4219     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)4220     public void MergeFrom(pb::CodedInputStream input) {
4221     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4222       input.ReadRawMessage(this);
4223     #else
4224       uint tag;
4225       while ((tag = input.ReadTag()) != 0) {
4226       if ((tag & 7) == 4) {
4227         // Abort on any end group tag.
4228         return;
4229       }
4230       switch(tag) {
4231           default:
4232             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4233             break;
4234           case 10: {
4235             Name = input.ReadString();
4236             break;
4237           }
4238           case 18: {
4239             if (options_ == null) {
4240               Options = new global::Google.Protobuf.Reflection.OneofOptions();
4241             }
4242             input.ReadMessage(Options);
4243             break;
4244           }
4245         }
4246       }
4247     #endif
4248     }
4249 
4250     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4251     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4252     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)4253     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
4254       uint tag;
4255       while ((tag = input.ReadTag()) != 0) {
4256       if ((tag & 7) == 4) {
4257         // Abort on any end group tag.
4258         return;
4259       }
4260       switch(tag) {
4261           default:
4262             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
4263             break;
4264           case 10: {
4265             Name = input.ReadString();
4266             break;
4267           }
4268           case 18: {
4269             if (options_ == null) {
4270               Options = new global::Google.Protobuf.Reflection.OneofOptions();
4271             }
4272             input.ReadMessage(Options);
4273             break;
4274           }
4275         }
4276       }
4277     }
4278     #endif
4279 
4280   }
4281 
4282   /// <summary>
4283   /// Describes an enum type.
4284   /// </summary>
4285   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
4286   public sealed partial class EnumDescriptorProto : pb::IMessage<EnumDescriptorProto>
4287   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4288       , pb::IBufferMessage
4289   #endif
4290   {
4291     private static readonly pb::MessageParser<EnumDescriptorProto> _parser = new pb::MessageParser<EnumDescriptorProto>(() => new EnumDescriptorProto());
4292     private pb::UnknownFieldSet _unknownFields;
4293     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4294     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4295     public static pb::MessageParser<EnumDescriptorProto> Parser { get { return _parser; } }
4296 
4297     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4298     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4299     public static pbr::MessageDescriptor Descriptor {
4300       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[6]; }
4301     }
4302 
4303     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4304     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4305     pbr::MessageDescriptor pb::IMessage.Descriptor {
4306       get { return Descriptor; }
4307     }
4308 
4309     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4310     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
EnumDescriptorProto()4311     public EnumDescriptorProto() {
4312       OnConstruction();
4313     }
4314 
OnConstruction()4315     partial void OnConstruction();
4316 
4317     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4318     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
EnumDescriptorProto(EnumDescriptorProto other)4319     public EnumDescriptorProto(EnumDescriptorProto other) : this() {
4320       name_ = other.name_;
4321       value_ = other.value_.Clone();
4322       options_ = other.options_ != null ? other.options_.Clone() : null;
4323       reservedRange_ = other.reservedRange_.Clone();
4324       reservedName_ = other.reservedName_.Clone();
4325       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4326     }
4327 
4328     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4329     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()4330     public EnumDescriptorProto Clone() {
4331       return new EnumDescriptorProto(this);
4332     }
4333 
4334     /// <summary>Field number for the "name" field.</summary>
4335     public const int NameFieldNumber = 1;
4336     private readonly static string NameDefaultValue = "";
4337 
4338     private string name_;
4339     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4340     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4341     public string Name {
4342       get { return name_ ?? NameDefaultValue; }
4343       set {
4344         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
4345       }
4346     }
4347     /// <summary>Gets whether the "name" field is set</summary>
4348     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4349     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4350     public bool HasName {
4351       get { return name_ != null; }
4352     }
4353     /// <summary>Clears the value of the "name" field</summary>
4354     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4355     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearName()4356     public void ClearName() {
4357       name_ = null;
4358     }
4359 
4360     /// <summary>Field number for the "value" field.</summary>
4361     public const int ValueFieldNumber = 2;
4362     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> _repeated_value_codec
4363         = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser);
4364     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> value_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto>();
4365     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4366     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4367     public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> Value {
4368       get { return value_; }
4369     }
4370 
4371     /// <summary>Field number for the "options" field.</summary>
4372     public const int OptionsFieldNumber = 3;
4373     private global::Google.Protobuf.Reflection.EnumOptions options_;
4374     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4375     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4376     public global::Google.Protobuf.Reflection.EnumOptions Options {
4377       get { return options_; }
4378       set {
4379         options_ = value;
4380       }
4381     }
4382 
4383     /// <summary>Field number for the "reserved_range" field.</summary>
4384     public const int ReservedRangeFieldNumber = 4;
4385     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto.Types.EnumReservedRange> _repeated_reservedRange_codec
4386         = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.EnumDescriptorProto.Types.EnumReservedRange.Parser);
4387     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto.Types.EnumReservedRange> reservedRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto.Types.EnumReservedRange>();
4388     /// <summary>
4389     /// Range of reserved numeric values. Reserved numeric values may not be used
4390     /// by enum values in the same enum declaration. Reserved ranges may not
4391     /// overlap.
4392     /// </summary>
4393     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4394     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4395     public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto.Types.EnumReservedRange> ReservedRange {
4396       get { return reservedRange_; }
4397     }
4398 
4399     /// <summary>Field number for the "reserved_name" field.</summary>
4400     public const int ReservedNameFieldNumber = 5;
4401     private static readonly pb::FieldCodec<string> _repeated_reservedName_codec
4402         = pb::FieldCodec.ForString(42);
4403     private readonly pbc::RepeatedField<string> reservedName_ = new pbc::RepeatedField<string>();
4404     /// <summary>
4405     /// Reserved enum value names, which may not be reused. A given name may only
4406     /// be reserved once.
4407     /// </summary>
4408     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4409     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4410     public pbc::RepeatedField<string> ReservedName {
4411       get { return reservedName_; }
4412     }
4413 
4414     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4415     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)4416     public override bool Equals(object other) {
4417       return Equals(other as EnumDescriptorProto);
4418     }
4419 
4420     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4421     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(EnumDescriptorProto other)4422     public bool Equals(EnumDescriptorProto other) {
4423       if (ReferenceEquals(other, null)) {
4424         return false;
4425       }
4426       if (ReferenceEquals(other, this)) {
4427         return true;
4428       }
4429       if (Name != other.Name) return false;
4430       if(!value_.Equals(other.value_)) return false;
4431       if (!object.Equals(Options, other.Options)) return false;
4432       if(!reservedRange_.Equals(other.reservedRange_)) return false;
4433       if(!reservedName_.Equals(other.reservedName_)) return false;
4434       return Equals(_unknownFields, other._unknownFields);
4435     }
4436 
4437     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4438     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()4439     public override int GetHashCode() {
4440       int hash = 1;
4441       if (HasName) hash ^= Name.GetHashCode();
4442       hash ^= value_.GetHashCode();
4443       if (options_ != null) hash ^= Options.GetHashCode();
4444       hash ^= reservedRange_.GetHashCode();
4445       hash ^= reservedName_.GetHashCode();
4446       if (_unknownFields != null) {
4447         hash ^= _unknownFields.GetHashCode();
4448       }
4449       return hash;
4450     }
4451 
4452     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4453     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()4454     public override string ToString() {
4455       return pb::JsonFormatter.ToDiagnosticString(this);
4456     }
4457 
4458     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4459     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)4460     public void WriteTo(pb::CodedOutputStream output) {
4461     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4462       output.WriteRawMessage(this);
4463     #else
4464       if (HasName) {
4465         output.WriteRawTag(10);
4466         output.WriteString(Name);
4467       }
4468       value_.WriteTo(output, _repeated_value_codec);
4469       if (options_ != null) {
4470         output.WriteRawTag(26);
4471         output.WriteMessage(Options);
4472       }
4473       reservedRange_.WriteTo(output, _repeated_reservedRange_codec);
4474       reservedName_.WriteTo(output, _repeated_reservedName_codec);
4475       if (_unknownFields != null) {
4476         _unknownFields.WriteTo(output);
4477       }
4478     #endif
4479     }
4480 
4481     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4482     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4483     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)4484     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
4485       if (HasName) {
4486         output.WriteRawTag(10);
4487         output.WriteString(Name);
4488       }
4489       value_.WriteTo(ref output, _repeated_value_codec);
4490       if (options_ != null) {
4491         output.WriteRawTag(26);
4492         output.WriteMessage(Options);
4493       }
4494       reservedRange_.WriteTo(ref output, _repeated_reservedRange_codec);
4495       reservedName_.WriteTo(ref output, _repeated_reservedName_codec);
4496       if (_unknownFields != null) {
4497         _unknownFields.WriteTo(ref output);
4498       }
4499     }
4500     #endif
4501 
4502     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4503     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()4504     public int CalculateSize() {
4505       int size = 0;
4506       if (HasName) {
4507         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
4508       }
4509       size += value_.CalculateSize(_repeated_value_codec);
4510       if (options_ != null) {
4511         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
4512       }
4513       size += reservedRange_.CalculateSize(_repeated_reservedRange_codec);
4514       size += reservedName_.CalculateSize(_repeated_reservedName_codec);
4515       if (_unknownFields != null) {
4516         size += _unknownFields.CalculateSize();
4517       }
4518       return size;
4519     }
4520 
4521     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4522     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(EnumDescriptorProto other)4523     public void MergeFrom(EnumDescriptorProto other) {
4524       if (other == null) {
4525         return;
4526       }
4527       if (other.HasName) {
4528         Name = other.Name;
4529       }
4530       value_.Add(other.value_);
4531       if (other.options_ != null) {
4532         if (options_ == null) {
4533           Options = new global::Google.Protobuf.Reflection.EnumOptions();
4534         }
4535         Options.MergeFrom(other.Options);
4536       }
4537       reservedRange_.Add(other.reservedRange_);
4538       reservedName_.Add(other.reservedName_);
4539       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4540     }
4541 
4542     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4543     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)4544     public void MergeFrom(pb::CodedInputStream input) {
4545     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4546       input.ReadRawMessage(this);
4547     #else
4548       uint tag;
4549       while ((tag = input.ReadTag()) != 0) {
4550       if ((tag & 7) == 4) {
4551         // Abort on any end group tag.
4552         return;
4553       }
4554       switch(tag) {
4555           default:
4556             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4557             break;
4558           case 10: {
4559             Name = input.ReadString();
4560             break;
4561           }
4562           case 18: {
4563             value_.AddEntriesFrom(input, _repeated_value_codec);
4564             break;
4565           }
4566           case 26: {
4567             if (options_ == null) {
4568               Options = new global::Google.Protobuf.Reflection.EnumOptions();
4569             }
4570             input.ReadMessage(Options);
4571             break;
4572           }
4573           case 34: {
4574             reservedRange_.AddEntriesFrom(input, _repeated_reservedRange_codec);
4575             break;
4576           }
4577           case 42: {
4578             reservedName_.AddEntriesFrom(input, _repeated_reservedName_codec);
4579             break;
4580           }
4581         }
4582       }
4583     #endif
4584     }
4585 
4586     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4587     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4588     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)4589     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
4590       uint tag;
4591       while ((tag = input.ReadTag()) != 0) {
4592       if ((tag & 7) == 4) {
4593         // Abort on any end group tag.
4594         return;
4595       }
4596       switch(tag) {
4597           default:
4598             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
4599             break;
4600           case 10: {
4601             Name = input.ReadString();
4602             break;
4603           }
4604           case 18: {
4605             value_.AddEntriesFrom(ref input, _repeated_value_codec);
4606             break;
4607           }
4608           case 26: {
4609             if (options_ == null) {
4610               Options = new global::Google.Protobuf.Reflection.EnumOptions();
4611             }
4612             input.ReadMessage(Options);
4613             break;
4614           }
4615           case 34: {
4616             reservedRange_.AddEntriesFrom(ref input, _repeated_reservedRange_codec);
4617             break;
4618           }
4619           case 42: {
4620             reservedName_.AddEntriesFrom(ref input, _repeated_reservedName_codec);
4621             break;
4622           }
4623         }
4624       }
4625     }
4626     #endif
4627 
4628     #region Nested types
4629     /// <summary>Container for nested types declared in the EnumDescriptorProto message type.</summary>
4630     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4631     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4632     public static partial class Types {
4633       /// <summary>
4634       /// Range of reserved numeric values. Reserved values may not be used by
4635       /// entries in the same enum. Reserved ranges may not overlap.
4636       ///
4637       /// Note that this is distinct from DescriptorProto.ReservedRange in that it
4638       /// is inclusive such that it can appropriately represent the entire int32
4639       /// domain.
4640       /// </summary>
4641       [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
4642       public sealed partial class EnumReservedRange : pb::IMessage<EnumReservedRange>
4643       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4644           , pb::IBufferMessage
4645       #endif
4646       {
4647         private static readonly pb::MessageParser<EnumReservedRange> _parser = new pb::MessageParser<EnumReservedRange>(() => new EnumReservedRange());
4648         private pb::UnknownFieldSet _unknownFields;
4649         private int _hasBits0;
4650         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4651         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4652         public static pb::MessageParser<EnumReservedRange> Parser { get { return _parser; } }
4653 
4654         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4655         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4656         public static pbr::MessageDescriptor Descriptor {
4657           get { return global::Google.Protobuf.Reflection.EnumDescriptorProto.Descriptor.NestedTypes[0]; }
4658         }
4659 
4660         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4661         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4662         pbr::MessageDescriptor pb::IMessage.Descriptor {
4663           get { return Descriptor; }
4664         }
4665 
4666         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4667         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
EnumReservedRange()4668         public EnumReservedRange() {
4669           OnConstruction();
4670         }
4671 
OnConstruction()4672         partial void OnConstruction();
4673 
4674         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4675         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
EnumReservedRange(EnumReservedRange other)4676         public EnumReservedRange(EnumReservedRange other) : this() {
4677           _hasBits0 = other._hasBits0;
4678           start_ = other.start_;
4679           end_ = other.end_;
4680           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4681         }
4682 
4683         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4684         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()4685         public EnumReservedRange Clone() {
4686           return new EnumReservedRange(this);
4687         }
4688 
4689         /// <summary>Field number for the "start" field.</summary>
4690         public const int StartFieldNumber = 1;
4691         private readonly static int StartDefaultValue = 0;
4692 
4693         private int start_;
4694         /// <summary>
4695         /// Inclusive.
4696         /// </summary>
4697         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4698         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4699         public int Start {
4700           get { if ((_hasBits0 & 1) != 0) { return start_; } else { return StartDefaultValue; } }
4701           set {
4702             _hasBits0 |= 1;
4703             start_ = value;
4704           }
4705         }
4706         /// <summary>Gets whether the "start" field is set</summary>
4707         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4708         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4709         public bool HasStart {
4710           get { return (_hasBits0 & 1) != 0; }
4711         }
4712         /// <summary>Clears the value of the "start" field</summary>
4713         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4714         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearStart()4715         public void ClearStart() {
4716           _hasBits0 &= ~1;
4717         }
4718 
4719         /// <summary>Field number for the "end" field.</summary>
4720         public const int EndFieldNumber = 2;
4721         private readonly static int EndDefaultValue = 0;
4722 
4723         private int end_;
4724         /// <summary>
4725         /// Inclusive.
4726         /// </summary>
4727         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4728         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4729         public int End {
4730           get { if ((_hasBits0 & 2) != 0) { return end_; } else { return EndDefaultValue; } }
4731           set {
4732             _hasBits0 |= 2;
4733             end_ = value;
4734           }
4735         }
4736         /// <summary>Gets whether the "end" field is set</summary>
4737         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4738         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4739         public bool HasEnd {
4740           get { return (_hasBits0 & 2) != 0; }
4741         }
4742         /// <summary>Clears the value of the "end" field</summary>
4743         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4744         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearEnd()4745         public void ClearEnd() {
4746           _hasBits0 &= ~2;
4747         }
4748 
4749         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4750         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)4751         public override bool Equals(object other) {
4752           return Equals(other as EnumReservedRange);
4753         }
4754 
4755         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4756         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(EnumReservedRange other)4757         public bool Equals(EnumReservedRange other) {
4758           if (ReferenceEquals(other, null)) {
4759             return false;
4760           }
4761           if (ReferenceEquals(other, this)) {
4762             return true;
4763           }
4764           if (Start != other.Start) return false;
4765           if (End != other.End) return false;
4766           return Equals(_unknownFields, other._unknownFields);
4767         }
4768 
4769         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4770         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()4771         public override int GetHashCode() {
4772           int hash = 1;
4773           if (HasStart) hash ^= Start.GetHashCode();
4774           if (HasEnd) hash ^= End.GetHashCode();
4775           if (_unknownFields != null) {
4776             hash ^= _unknownFields.GetHashCode();
4777           }
4778           return hash;
4779         }
4780 
4781         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4782         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()4783         public override string ToString() {
4784           return pb::JsonFormatter.ToDiagnosticString(this);
4785         }
4786 
4787         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4788         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)4789         public void WriteTo(pb::CodedOutputStream output) {
4790         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4791           output.WriteRawMessage(this);
4792         #else
4793           if (HasStart) {
4794             output.WriteRawTag(8);
4795             output.WriteInt32(Start);
4796           }
4797           if (HasEnd) {
4798             output.WriteRawTag(16);
4799             output.WriteInt32(End);
4800           }
4801           if (_unknownFields != null) {
4802             _unknownFields.WriteTo(output);
4803           }
4804         #endif
4805         }
4806 
4807         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4808         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4809         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)4810         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
4811           if (HasStart) {
4812             output.WriteRawTag(8);
4813             output.WriteInt32(Start);
4814           }
4815           if (HasEnd) {
4816             output.WriteRawTag(16);
4817             output.WriteInt32(End);
4818           }
4819           if (_unknownFields != null) {
4820             _unknownFields.WriteTo(ref output);
4821           }
4822         }
4823         #endif
4824 
4825         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4826         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()4827         public int CalculateSize() {
4828           int size = 0;
4829           if (HasStart) {
4830             size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
4831           }
4832           if (HasEnd) {
4833             size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
4834           }
4835           if (_unknownFields != null) {
4836             size += _unknownFields.CalculateSize();
4837           }
4838           return size;
4839         }
4840 
4841         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4842         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(EnumReservedRange other)4843         public void MergeFrom(EnumReservedRange other) {
4844           if (other == null) {
4845             return;
4846           }
4847           if (other.HasStart) {
4848             Start = other.Start;
4849           }
4850           if (other.HasEnd) {
4851             End = other.End;
4852           }
4853           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
4854         }
4855 
4856         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4857         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)4858         public void MergeFrom(pb::CodedInputStream input) {
4859         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4860           input.ReadRawMessage(this);
4861         #else
4862           uint tag;
4863           while ((tag = input.ReadTag()) != 0) {
4864           if ((tag & 7) == 4) {
4865             // Abort on any end group tag.
4866             return;
4867           }
4868           switch(tag) {
4869               default:
4870                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
4871                 break;
4872               case 8: {
4873                 Start = input.ReadInt32();
4874                 break;
4875               }
4876               case 16: {
4877                 End = input.ReadInt32();
4878                 break;
4879               }
4880             }
4881           }
4882         #endif
4883         }
4884 
4885         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4886         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4887         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)4888         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
4889           uint tag;
4890           while ((tag = input.ReadTag()) != 0) {
4891           if ((tag & 7) == 4) {
4892             // Abort on any end group tag.
4893             return;
4894           }
4895           switch(tag) {
4896               default:
4897                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
4898                 break;
4899               case 8: {
4900                 Start = input.ReadInt32();
4901                 break;
4902               }
4903               case 16: {
4904                 End = input.ReadInt32();
4905                 break;
4906               }
4907             }
4908           }
4909         }
4910         #endif
4911 
4912       }
4913 
4914     }
4915     #endregion
4916 
4917   }
4918 
4919   /// <summary>
4920   /// Describes a value within an enum.
4921   /// </summary>
4922   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
4923   public sealed partial class EnumValueDescriptorProto : pb::IMessage<EnumValueDescriptorProto>
4924   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
4925       , pb::IBufferMessage
4926   #endif
4927   {
4928     private static readonly pb::MessageParser<EnumValueDescriptorProto> _parser = new pb::MessageParser<EnumValueDescriptorProto>(() => new EnumValueDescriptorProto());
4929     private pb::UnknownFieldSet _unknownFields;
4930     private int _hasBits0;
4931     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4932     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4933     public static pb::MessageParser<EnumValueDescriptorProto> Parser { get { return _parser; } }
4934 
4935     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4936     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4937     public static pbr::MessageDescriptor Descriptor {
4938       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[7]; }
4939     }
4940 
4941     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4942     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4943     pbr::MessageDescriptor pb::IMessage.Descriptor {
4944       get { return Descriptor; }
4945     }
4946 
4947     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4948     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
EnumValueDescriptorProto()4949     public EnumValueDescriptorProto() {
4950       OnConstruction();
4951     }
4952 
OnConstruction()4953     partial void OnConstruction();
4954 
4955     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4956     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
EnumValueDescriptorProto(EnumValueDescriptorProto other)4957     public EnumValueDescriptorProto(EnumValueDescriptorProto other) : this() {
4958       _hasBits0 = other._hasBits0;
4959       name_ = other.name_;
4960       number_ = other.number_;
4961       options_ = other.options_ != null ? other.options_.Clone() : null;
4962       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
4963     }
4964 
4965     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4966     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()4967     public EnumValueDescriptorProto Clone() {
4968       return new EnumValueDescriptorProto(this);
4969     }
4970 
4971     /// <summary>Field number for the "name" field.</summary>
4972     public const int NameFieldNumber = 1;
4973     private readonly static string NameDefaultValue = "";
4974 
4975     private string name_;
4976     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4977     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4978     public string Name {
4979       get { return name_ ?? NameDefaultValue; }
4980       set {
4981         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
4982       }
4983     }
4984     /// <summary>Gets whether the "name" field is set</summary>
4985     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4986     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
4987     public bool HasName {
4988       get { return name_ != null; }
4989     }
4990     /// <summary>Clears the value of the "name" field</summary>
4991     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4992     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearName()4993     public void ClearName() {
4994       name_ = null;
4995     }
4996 
4997     /// <summary>Field number for the "number" field.</summary>
4998     public const int NumberFieldNumber = 2;
4999     private readonly static int NumberDefaultValue = 0;
5000 
5001     private int number_;
5002     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5003     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5004     public int Number {
5005       get { if ((_hasBits0 & 1) != 0) { return number_; } else { return NumberDefaultValue; } }
5006       set {
5007         _hasBits0 |= 1;
5008         number_ = value;
5009       }
5010     }
5011     /// <summary>Gets whether the "number" field is set</summary>
5012     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5013     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5014     public bool HasNumber {
5015       get { return (_hasBits0 & 1) != 0; }
5016     }
5017     /// <summary>Clears the value of the "number" field</summary>
5018     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5019     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearNumber()5020     public void ClearNumber() {
5021       _hasBits0 &= ~1;
5022     }
5023 
5024     /// <summary>Field number for the "options" field.</summary>
5025     public const int OptionsFieldNumber = 3;
5026     private global::Google.Protobuf.Reflection.EnumValueOptions options_;
5027     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5028     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5029     public global::Google.Protobuf.Reflection.EnumValueOptions Options {
5030       get { return options_; }
5031       set {
5032         options_ = value;
5033       }
5034     }
5035 
5036     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5037     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)5038     public override bool Equals(object other) {
5039       return Equals(other as EnumValueDescriptorProto);
5040     }
5041 
5042     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5043     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(EnumValueDescriptorProto other)5044     public bool Equals(EnumValueDescriptorProto other) {
5045       if (ReferenceEquals(other, null)) {
5046         return false;
5047       }
5048       if (ReferenceEquals(other, this)) {
5049         return true;
5050       }
5051       if (Name != other.Name) return false;
5052       if (Number != other.Number) return false;
5053       if (!object.Equals(Options, other.Options)) return false;
5054       return Equals(_unknownFields, other._unknownFields);
5055     }
5056 
5057     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5058     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()5059     public override int GetHashCode() {
5060       int hash = 1;
5061       if (HasName) hash ^= Name.GetHashCode();
5062       if (HasNumber) hash ^= Number.GetHashCode();
5063       if (options_ != null) hash ^= Options.GetHashCode();
5064       if (_unknownFields != null) {
5065         hash ^= _unknownFields.GetHashCode();
5066       }
5067       return hash;
5068     }
5069 
5070     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5071     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()5072     public override string ToString() {
5073       return pb::JsonFormatter.ToDiagnosticString(this);
5074     }
5075 
5076     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5077     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)5078     public void WriteTo(pb::CodedOutputStream output) {
5079     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5080       output.WriteRawMessage(this);
5081     #else
5082       if (HasName) {
5083         output.WriteRawTag(10);
5084         output.WriteString(Name);
5085       }
5086       if (HasNumber) {
5087         output.WriteRawTag(16);
5088         output.WriteInt32(Number);
5089       }
5090       if (options_ != null) {
5091         output.WriteRawTag(26);
5092         output.WriteMessage(Options);
5093       }
5094       if (_unknownFields != null) {
5095         _unknownFields.WriteTo(output);
5096       }
5097     #endif
5098     }
5099 
5100     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5101     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5102     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)5103     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5104       if (HasName) {
5105         output.WriteRawTag(10);
5106         output.WriteString(Name);
5107       }
5108       if (HasNumber) {
5109         output.WriteRawTag(16);
5110         output.WriteInt32(Number);
5111       }
5112       if (options_ != null) {
5113         output.WriteRawTag(26);
5114         output.WriteMessage(Options);
5115       }
5116       if (_unknownFields != null) {
5117         _unknownFields.WriteTo(ref output);
5118       }
5119     }
5120     #endif
5121 
5122     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5123     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()5124     public int CalculateSize() {
5125       int size = 0;
5126       if (HasName) {
5127         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
5128       }
5129       if (HasNumber) {
5130         size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
5131       }
5132       if (options_ != null) {
5133         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
5134       }
5135       if (_unknownFields != null) {
5136         size += _unknownFields.CalculateSize();
5137       }
5138       return size;
5139     }
5140 
5141     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5142     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(EnumValueDescriptorProto other)5143     public void MergeFrom(EnumValueDescriptorProto other) {
5144       if (other == null) {
5145         return;
5146       }
5147       if (other.HasName) {
5148         Name = other.Name;
5149       }
5150       if (other.HasNumber) {
5151         Number = other.Number;
5152       }
5153       if (other.options_ != null) {
5154         if (options_ == null) {
5155           Options = new global::Google.Protobuf.Reflection.EnumValueOptions();
5156         }
5157         Options.MergeFrom(other.Options);
5158       }
5159       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5160     }
5161 
5162     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5163     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)5164     public void MergeFrom(pb::CodedInputStream input) {
5165     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5166       input.ReadRawMessage(this);
5167     #else
5168       uint tag;
5169       while ((tag = input.ReadTag()) != 0) {
5170       if ((tag & 7) == 4) {
5171         // Abort on any end group tag.
5172         return;
5173       }
5174       switch(tag) {
5175           default:
5176             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5177             break;
5178           case 10: {
5179             Name = input.ReadString();
5180             break;
5181           }
5182           case 16: {
5183             Number = input.ReadInt32();
5184             break;
5185           }
5186           case 26: {
5187             if (options_ == null) {
5188               Options = new global::Google.Protobuf.Reflection.EnumValueOptions();
5189             }
5190             input.ReadMessage(Options);
5191             break;
5192           }
5193         }
5194       }
5195     #endif
5196     }
5197 
5198     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5199     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5200     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)5201     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
5202       uint tag;
5203       while ((tag = input.ReadTag()) != 0) {
5204       if ((tag & 7) == 4) {
5205         // Abort on any end group tag.
5206         return;
5207       }
5208       switch(tag) {
5209           default:
5210             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
5211             break;
5212           case 10: {
5213             Name = input.ReadString();
5214             break;
5215           }
5216           case 16: {
5217             Number = input.ReadInt32();
5218             break;
5219           }
5220           case 26: {
5221             if (options_ == null) {
5222               Options = new global::Google.Protobuf.Reflection.EnumValueOptions();
5223             }
5224             input.ReadMessage(Options);
5225             break;
5226           }
5227         }
5228       }
5229     }
5230     #endif
5231 
5232   }
5233 
5234   /// <summary>
5235   /// Describes a service.
5236   /// </summary>
5237   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
5238   public sealed partial class ServiceDescriptorProto : pb::IMessage<ServiceDescriptorProto>
5239   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5240       , pb::IBufferMessage
5241   #endif
5242   {
5243     private static readonly pb::MessageParser<ServiceDescriptorProto> _parser = new pb::MessageParser<ServiceDescriptorProto>(() => new ServiceDescriptorProto());
5244     private pb::UnknownFieldSet _unknownFields;
5245     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5246     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5247     public static pb::MessageParser<ServiceDescriptorProto> Parser { get { return _parser; } }
5248 
5249     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5250     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5251     public static pbr::MessageDescriptor Descriptor {
5252       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[8]; }
5253     }
5254 
5255     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5256     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5257     pbr::MessageDescriptor pb::IMessage.Descriptor {
5258       get { return Descriptor; }
5259     }
5260 
5261     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5262     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ServiceDescriptorProto()5263     public ServiceDescriptorProto() {
5264       OnConstruction();
5265     }
5266 
OnConstruction()5267     partial void OnConstruction();
5268 
5269     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5270     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ServiceDescriptorProto(ServiceDescriptorProto other)5271     public ServiceDescriptorProto(ServiceDescriptorProto other) : this() {
5272       name_ = other.name_;
5273       method_ = other.method_.Clone();
5274       options_ = other.options_ != null ? other.options_.Clone() : null;
5275       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5276     }
5277 
5278     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5279     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()5280     public ServiceDescriptorProto Clone() {
5281       return new ServiceDescriptorProto(this);
5282     }
5283 
5284     /// <summary>Field number for the "name" field.</summary>
5285     public const int NameFieldNumber = 1;
5286     private readonly static string NameDefaultValue = "";
5287 
5288     private string name_;
5289     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5290     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5291     public string Name {
5292       get { return name_ ?? NameDefaultValue; }
5293       set {
5294         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
5295       }
5296     }
5297     /// <summary>Gets whether the "name" field is set</summary>
5298     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5299     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5300     public bool HasName {
5301       get { return name_ != null; }
5302     }
5303     /// <summary>Clears the value of the "name" field</summary>
5304     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5305     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearName()5306     public void ClearName() {
5307       name_ = null;
5308     }
5309 
5310     /// <summary>Field number for the "method" field.</summary>
5311     public const int MethodFieldNumber = 2;
5312     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.MethodDescriptorProto> _repeated_method_codec
5313         = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.MethodDescriptorProto.Parser);
5314     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> method_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto>();
5315     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5316     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5317     public pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> Method {
5318       get { return method_; }
5319     }
5320 
5321     /// <summary>Field number for the "options" field.</summary>
5322     public const int OptionsFieldNumber = 3;
5323     private global::Google.Protobuf.Reflection.ServiceOptions options_;
5324     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5325     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5326     public global::Google.Protobuf.Reflection.ServiceOptions Options {
5327       get { return options_; }
5328       set {
5329         options_ = value;
5330       }
5331     }
5332 
5333     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5334     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)5335     public override bool Equals(object other) {
5336       return Equals(other as ServiceDescriptorProto);
5337     }
5338 
5339     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5340     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(ServiceDescriptorProto other)5341     public bool Equals(ServiceDescriptorProto other) {
5342       if (ReferenceEquals(other, null)) {
5343         return false;
5344       }
5345       if (ReferenceEquals(other, this)) {
5346         return true;
5347       }
5348       if (Name != other.Name) return false;
5349       if(!method_.Equals(other.method_)) return false;
5350       if (!object.Equals(Options, other.Options)) return false;
5351       return Equals(_unknownFields, other._unknownFields);
5352     }
5353 
5354     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5355     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()5356     public override int GetHashCode() {
5357       int hash = 1;
5358       if (HasName) hash ^= Name.GetHashCode();
5359       hash ^= method_.GetHashCode();
5360       if (options_ != null) hash ^= Options.GetHashCode();
5361       if (_unknownFields != null) {
5362         hash ^= _unknownFields.GetHashCode();
5363       }
5364       return hash;
5365     }
5366 
5367     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5368     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()5369     public override string ToString() {
5370       return pb::JsonFormatter.ToDiagnosticString(this);
5371     }
5372 
5373     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5374     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)5375     public void WriteTo(pb::CodedOutputStream output) {
5376     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5377       output.WriteRawMessage(this);
5378     #else
5379       if (HasName) {
5380         output.WriteRawTag(10);
5381         output.WriteString(Name);
5382       }
5383       method_.WriteTo(output, _repeated_method_codec);
5384       if (options_ != null) {
5385         output.WriteRawTag(26);
5386         output.WriteMessage(Options);
5387       }
5388       if (_unknownFields != null) {
5389         _unknownFields.WriteTo(output);
5390       }
5391     #endif
5392     }
5393 
5394     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5395     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5396     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)5397     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5398       if (HasName) {
5399         output.WriteRawTag(10);
5400         output.WriteString(Name);
5401       }
5402       method_.WriteTo(ref output, _repeated_method_codec);
5403       if (options_ != null) {
5404         output.WriteRawTag(26);
5405         output.WriteMessage(Options);
5406       }
5407       if (_unknownFields != null) {
5408         _unknownFields.WriteTo(ref output);
5409       }
5410     }
5411     #endif
5412 
5413     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5414     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()5415     public int CalculateSize() {
5416       int size = 0;
5417       if (HasName) {
5418         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
5419       }
5420       size += method_.CalculateSize(_repeated_method_codec);
5421       if (options_ != null) {
5422         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
5423       }
5424       if (_unknownFields != null) {
5425         size += _unknownFields.CalculateSize();
5426       }
5427       return size;
5428     }
5429 
5430     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5431     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(ServiceDescriptorProto other)5432     public void MergeFrom(ServiceDescriptorProto other) {
5433       if (other == null) {
5434         return;
5435       }
5436       if (other.HasName) {
5437         Name = other.Name;
5438       }
5439       method_.Add(other.method_);
5440       if (other.options_ != null) {
5441         if (options_ == null) {
5442           Options = new global::Google.Protobuf.Reflection.ServiceOptions();
5443         }
5444         Options.MergeFrom(other.Options);
5445       }
5446       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5447     }
5448 
5449     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5450     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)5451     public void MergeFrom(pb::CodedInputStream input) {
5452     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5453       input.ReadRawMessage(this);
5454     #else
5455       uint tag;
5456       while ((tag = input.ReadTag()) != 0) {
5457       if ((tag & 7) == 4) {
5458         // Abort on any end group tag.
5459         return;
5460       }
5461       switch(tag) {
5462           default:
5463             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5464             break;
5465           case 10: {
5466             Name = input.ReadString();
5467             break;
5468           }
5469           case 18: {
5470             method_.AddEntriesFrom(input, _repeated_method_codec);
5471             break;
5472           }
5473           case 26: {
5474             if (options_ == null) {
5475               Options = new global::Google.Protobuf.Reflection.ServiceOptions();
5476             }
5477             input.ReadMessage(Options);
5478             break;
5479           }
5480         }
5481       }
5482     #endif
5483     }
5484 
5485     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5486     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5487     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)5488     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
5489       uint tag;
5490       while ((tag = input.ReadTag()) != 0) {
5491       if ((tag & 7) == 4) {
5492         // Abort on any end group tag.
5493         return;
5494       }
5495       switch(tag) {
5496           default:
5497             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
5498             break;
5499           case 10: {
5500             Name = input.ReadString();
5501             break;
5502           }
5503           case 18: {
5504             method_.AddEntriesFrom(ref input, _repeated_method_codec);
5505             break;
5506           }
5507           case 26: {
5508             if (options_ == null) {
5509               Options = new global::Google.Protobuf.Reflection.ServiceOptions();
5510             }
5511             input.ReadMessage(Options);
5512             break;
5513           }
5514         }
5515       }
5516     }
5517     #endif
5518 
5519   }
5520 
5521   /// <summary>
5522   /// Describes a method of a service.
5523   /// </summary>
5524   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
5525   public sealed partial class MethodDescriptorProto : pb::IMessage<MethodDescriptorProto>
5526   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5527       , pb::IBufferMessage
5528   #endif
5529   {
5530     private static readonly pb::MessageParser<MethodDescriptorProto> _parser = new pb::MessageParser<MethodDescriptorProto>(() => new MethodDescriptorProto());
5531     private pb::UnknownFieldSet _unknownFields;
5532     private int _hasBits0;
5533     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5534     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5535     public static pb::MessageParser<MethodDescriptorProto> Parser { get { return _parser; } }
5536 
5537     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5538     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5539     public static pbr::MessageDescriptor Descriptor {
5540       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[9]; }
5541     }
5542 
5543     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5544     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5545     pbr::MessageDescriptor pb::IMessage.Descriptor {
5546       get { return Descriptor; }
5547     }
5548 
5549     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5550     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MethodDescriptorProto()5551     public MethodDescriptorProto() {
5552       OnConstruction();
5553     }
5554 
OnConstruction()5555     partial void OnConstruction();
5556 
5557     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5558     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MethodDescriptorProto(MethodDescriptorProto other)5559     public MethodDescriptorProto(MethodDescriptorProto other) : this() {
5560       _hasBits0 = other._hasBits0;
5561       name_ = other.name_;
5562       inputType_ = other.inputType_;
5563       outputType_ = other.outputType_;
5564       options_ = other.options_ != null ? other.options_.Clone() : null;
5565       clientStreaming_ = other.clientStreaming_;
5566       serverStreaming_ = other.serverStreaming_;
5567       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5568     }
5569 
5570     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5571     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()5572     public MethodDescriptorProto Clone() {
5573       return new MethodDescriptorProto(this);
5574     }
5575 
5576     /// <summary>Field number for the "name" field.</summary>
5577     public const int NameFieldNumber = 1;
5578     private readonly static string NameDefaultValue = "";
5579 
5580     private string name_;
5581     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5582     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5583     public string Name {
5584       get { return name_ ?? NameDefaultValue; }
5585       set {
5586         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
5587       }
5588     }
5589     /// <summary>Gets whether the "name" field is set</summary>
5590     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5591     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5592     public bool HasName {
5593       get { return name_ != null; }
5594     }
5595     /// <summary>Clears the value of the "name" field</summary>
5596     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5597     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearName()5598     public void ClearName() {
5599       name_ = null;
5600     }
5601 
5602     /// <summary>Field number for the "input_type" field.</summary>
5603     public const int InputTypeFieldNumber = 2;
5604     private readonly static string InputTypeDefaultValue = "";
5605 
5606     private string inputType_;
5607     /// <summary>
5608     /// Input and output type names.  These are resolved in the same way as
5609     /// FieldDescriptorProto.type_name, but must refer to a message type.
5610     /// </summary>
5611     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5612     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5613     public string InputType {
5614       get { return inputType_ ?? InputTypeDefaultValue; }
5615       set {
5616         inputType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
5617       }
5618     }
5619     /// <summary>Gets whether the "input_type" field is set</summary>
5620     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5621     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5622     public bool HasInputType {
5623       get { return inputType_ != null; }
5624     }
5625     /// <summary>Clears the value of the "input_type" field</summary>
5626     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5627     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearInputType()5628     public void ClearInputType() {
5629       inputType_ = null;
5630     }
5631 
5632     /// <summary>Field number for the "output_type" field.</summary>
5633     public const int OutputTypeFieldNumber = 3;
5634     private readonly static string OutputTypeDefaultValue = "";
5635 
5636     private string outputType_;
5637     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5638     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5639     public string OutputType {
5640       get { return outputType_ ?? OutputTypeDefaultValue; }
5641       set {
5642         outputType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
5643       }
5644     }
5645     /// <summary>Gets whether the "output_type" field is set</summary>
5646     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5647     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5648     public bool HasOutputType {
5649       get { return outputType_ != null; }
5650     }
5651     /// <summary>Clears the value of the "output_type" field</summary>
5652     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5653     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOutputType()5654     public void ClearOutputType() {
5655       outputType_ = null;
5656     }
5657 
5658     /// <summary>Field number for the "options" field.</summary>
5659     public const int OptionsFieldNumber = 4;
5660     private global::Google.Protobuf.Reflection.MethodOptions options_;
5661     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5662     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5663     public global::Google.Protobuf.Reflection.MethodOptions Options {
5664       get { return options_; }
5665       set {
5666         options_ = value;
5667       }
5668     }
5669 
5670     /// <summary>Field number for the "client_streaming" field.</summary>
5671     public const int ClientStreamingFieldNumber = 5;
5672     private readonly static bool ClientStreamingDefaultValue = false;
5673 
5674     private bool clientStreaming_;
5675     /// <summary>
5676     /// Identifies if client streams multiple client messages
5677     /// </summary>
5678     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5679     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5680     public bool ClientStreaming {
5681       get { if ((_hasBits0 & 1) != 0) { return clientStreaming_; } else { return ClientStreamingDefaultValue; } }
5682       set {
5683         _hasBits0 |= 1;
5684         clientStreaming_ = value;
5685       }
5686     }
5687     /// <summary>Gets whether the "client_streaming" field is set</summary>
5688     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5689     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5690     public bool HasClientStreaming {
5691       get { return (_hasBits0 & 1) != 0; }
5692     }
5693     /// <summary>Clears the value of the "client_streaming" field</summary>
5694     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5695     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearClientStreaming()5696     public void ClearClientStreaming() {
5697       _hasBits0 &= ~1;
5698     }
5699 
5700     /// <summary>Field number for the "server_streaming" field.</summary>
5701     public const int ServerStreamingFieldNumber = 6;
5702     private readonly static bool ServerStreamingDefaultValue = false;
5703 
5704     private bool serverStreaming_;
5705     /// <summary>
5706     /// Identifies if server streams multiple server messages
5707     /// </summary>
5708     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5709     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5710     public bool ServerStreaming {
5711       get { if ((_hasBits0 & 2) != 0) { return serverStreaming_; } else { return ServerStreamingDefaultValue; } }
5712       set {
5713         _hasBits0 |= 2;
5714         serverStreaming_ = value;
5715       }
5716     }
5717     /// <summary>Gets whether the "server_streaming" field is set</summary>
5718     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5719     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
5720     public bool HasServerStreaming {
5721       get { return (_hasBits0 & 2) != 0; }
5722     }
5723     /// <summary>Clears the value of the "server_streaming" field</summary>
5724     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5725     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearServerStreaming()5726     public void ClearServerStreaming() {
5727       _hasBits0 &= ~2;
5728     }
5729 
5730     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5731     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)5732     public override bool Equals(object other) {
5733       return Equals(other as MethodDescriptorProto);
5734     }
5735 
5736     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5737     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(MethodDescriptorProto other)5738     public bool Equals(MethodDescriptorProto other) {
5739       if (ReferenceEquals(other, null)) {
5740         return false;
5741       }
5742       if (ReferenceEquals(other, this)) {
5743         return true;
5744       }
5745       if (Name != other.Name) return false;
5746       if (InputType != other.InputType) return false;
5747       if (OutputType != other.OutputType) return false;
5748       if (!object.Equals(Options, other.Options)) return false;
5749       if (ClientStreaming != other.ClientStreaming) return false;
5750       if (ServerStreaming != other.ServerStreaming) return false;
5751       return Equals(_unknownFields, other._unknownFields);
5752     }
5753 
5754     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5755     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()5756     public override int GetHashCode() {
5757       int hash = 1;
5758       if (HasName) hash ^= Name.GetHashCode();
5759       if (HasInputType) hash ^= InputType.GetHashCode();
5760       if (HasOutputType) hash ^= OutputType.GetHashCode();
5761       if (options_ != null) hash ^= Options.GetHashCode();
5762       if (HasClientStreaming) hash ^= ClientStreaming.GetHashCode();
5763       if (HasServerStreaming) hash ^= ServerStreaming.GetHashCode();
5764       if (_unknownFields != null) {
5765         hash ^= _unknownFields.GetHashCode();
5766       }
5767       return hash;
5768     }
5769 
5770     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5771     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()5772     public override string ToString() {
5773       return pb::JsonFormatter.ToDiagnosticString(this);
5774     }
5775 
5776     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5777     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)5778     public void WriteTo(pb::CodedOutputStream output) {
5779     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5780       output.WriteRawMessage(this);
5781     #else
5782       if (HasName) {
5783         output.WriteRawTag(10);
5784         output.WriteString(Name);
5785       }
5786       if (HasInputType) {
5787         output.WriteRawTag(18);
5788         output.WriteString(InputType);
5789       }
5790       if (HasOutputType) {
5791         output.WriteRawTag(26);
5792         output.WriteString(OutputType);
5793       }
5794       if (options_ != null) {
5795         output.WriteRawTag(34);
5796         output.WriteMessage(Options);
5797       }
5798       if (HasClientStreaming) {
5799         output.WriteRawTag(40);
5800         output.WriteBool(ClientStreaming);
5801       }
5802       if (HasServerStreaming) {
5803         output.WriteRawTag(48);
5804         output.WriteBool(ServerStreaming);
5805       }
5806       if (_unknownFields != null) {
5807         _unknownFields.WriteTo(output);
5808       }
5809     #endif
5810     }
5811 
5812     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5813     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5814     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)5815     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
5816       if (HasName) {
5817         output.WriteRawTag(10);
5818         output.WriteString(Name);
5819       }
5820       if (HasInputType) {
5821         output.WriteRawTag(18);
5822         output.WriteString(InputType);
5823       }
5824       if (HasOutputType) {
5825         output.WriteRawTag(26);
5826         output.WriteString(OutputType);
5827       }
5828       if (options_ != null) {
5829         output.WriteRawTag(34);
5830         output.WriteMessage(Options);
5831       }
5832       if (HasClientStreaming) {
5833         output.WriteRawTag(40);
5834         output.WriteBool(ClientStreaming);
5835       }
5836       if (HasServerStreaming) {
5837         output.WriteRawTag(48);
5838         output.WriteBool(ServerStreaming);
5839       }
5840       if (_unknownFields != null) {
5841         _unknownFields.WriteTo(ref output);
5842       }
5843     }
5844     #endif
5845 
5846     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5847     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()5848     public int CalculateSize() {
5849       int size = 0;
5850       if (HasName) {
5851         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
5852       }
5853       if (HasInputType) {
5854         size += 1 + pb::CodedOutputStream.ComputeStringSize(InputType);
5855       }
5856       if (HasOutputType) {
5857         size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputType);
5858       }
5859       if (options_ != null) {
5860         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
5861       }
5862       if (HasClientStreaming) {
5863         size += 1 + 1;
5864       }
5865       if (HasServerStreaming) {
5866         size += 1 + 1;
5867       }
5868       if (_unknownFields != null) {
5869         size += _unknownFields.CalculateSize();
5870       }
5871       return size;
5872     }
5873 
5874     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5875     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(MethodDescriptorProto other)5876     public void MergeFrom(MethodDescriptorProto other) {
5877       if (other == null) {
5878         return;
5879       }
5880       if (other.HasName) {
5881         Name = other.Name;
5882       }
5883       if (other.HasInputType) {
5884         InputType = other.InputType;
5885       }
5886       if (other.HasOutputType) {
5887         OutputType = other.OutputType;
5888       }
5889       if (other.options_ != null) {
5890         if (options_ == null) {
5891           Options = new global::Google.Protobuf.Reflection.MethodOptions();
5892         }
5893         Options.MergeFrom(other.Options);
5894       }
5895       if (other.HasClientStreaming) {
5896         ClientStreaming = other.ClientStreaming;
5897       }
5898       if (other.HasServerStreaming) {
5899         ServerStreaming = other.ServerStreaming;
5900       }
5901       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5902     }
5903 
5904     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5905     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)5906     public void MergeFrom(pb::CodedInputStream input) {
5907     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5908       input.ReadRawMessage(this);
5909     #else
5910       uint tag;
5911       while ((tag = input.ReadTag()) != 0) {
5912       if ((tag & 7) == 4) {
5913         // Abort on any end group tag.
5914         return;
5915       }
5916       switch(tag) {
5917           default:
5918             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
5919             break;
5920           case 10: {
5921             Name = input.ReadString();
5922             break;
5923           }
5924           case 18: {
5925             InputType = input.ReadString();
5926             break;
5927           }
5928           case 26: {
5929             OutputType = input.ReadString();
5930             break;
5931           }
5932           case 34: {
5933             if (options_ == null) {
5934               Options = new global::Google.Protobuf.Reflection.MethodOptions();
5935             }
5936             input.ReadMessage(Options);
5937             break;
5938           }
5939           case 40: {
5940             ClientStreaming = input.ReadBool();
5941             break;
5942           }
5943           case 48: {
5944             ServerStreaming = input.ReadBool();
5945             break;
5946           }
5947         }
5948       }
5949     #endif
5950     }
5951 
5952     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
5953     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5954     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)5955     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
5956       uint tag;
5957       while ((tag = input.ReadTag()) != 0) {
5958       if ((tag & 7) == 4) {
5959         // Abort on any end group tag.
5960         return;
5961       }
5962       switch(tag) {
5963           default:
5964             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
5965             break;
5966           case 10: {
5967             Name = input.ReadString();
5968             break;
5969           }
5970           case 18: {
5971             InputType = input.ReadString();
5972             break;
5973           }
5974           case 26: {
5975             OutputType = input.ReadString();
5976             break;
5977           }
5978           case 34: {
5979             if (options_ == null) {
5980               Options = new global::Google.Protobuf.Reflection.MethodOptions();
5981             }
5982             input.ReadMessage(Options);
5983             break;
5984           }
5985           case 40: {
5986             ClientStreaming = input.ReadBool();
5987             break;
5988           }
5989           case 48: {
5990             ServerStreaming = input.ReadBool();
5991             break;
5992           }
5993         }
5994       }
5995     }
5996     #endif
5997 
5998   }
5999 
6000   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
6001   public sealed partial class FileOptions : pb::IExtendableMessage<FileOptions>
6002   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6003       , pb::IBufferMessage
6004   #endif
6005   {
6006     private static readonly pb::MessageParser<FileOptions> _parser = new pb::MessageParser<FileOptions>(() => new FileOptions());
6007     private pb::UnknownFieldSet _unknownFields;
6008     internal pb::ExtensionSet<FileOptions> _extensions;
6009     private pb::ExtensionSet<FileOptions> _Extensions { get { return _extensions; } }
6010     private int _hasBits0;
6011     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6012     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6013     public static pb::MessageParser<FileOptions> Parser { get { return _parser; } }
6014 
6015     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6016     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6017     public static pbr::MessageDescriptor Descriptor {
6018       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[10]; }
6019     }
6020 
6021     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6022     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6023     pbr::MessageDescriptor pb::IMessage.Descriptor {
6024       get { return Descriptor; }
6025     }
6026 
6027     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6028     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FileOptions()6029     public FileOptions() {
6030       OnConstruction();
6031     }
6032 
OnConstruction()6033     partial void OnConstruction();
6034 
6035     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6036     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FileOptions(FileOptions other)6037     public FileOptions(FileOptions other) : this() {
6038       _hasBits0 = other._hasBits0;
6039       javaPackage_ = other.javaPackage_;
6040       javaOuterClassname_ = other.javaOuterClassname_;
6041       javaMultipleFiles_ = other.javaMultipleFiles_;
6042       javaGenerateEqualsAndHash_ = other.javaGenerateEqualsAndHash_;
6043       javaStringCheckUtf8_ = other.javaStringCheckUtf8_;
6044       optimizeFor_ = other.optimizeFor_;
6045       goPackage_ = other.goPackage_;
6046       ccGenericServices_ = other.ccGenericServices_;
6047       javaGenericServices_ = other.javaGenericServices_;
6048       pyGenericServices_ = other.pyGenericServices_;
6049       deprecated_ = other.deprecated_;
6050       ccEnableArenas_ = other.ccEnableArenas_;
6051       objcClassPrefix_ = other.objcClassPrefix_;
6052       csharpNamespace_ = other.csharpNamespace_;
6053       swiftPrefix_ = other.swiftPrefix_;
6054       phpClassPrefix_ = other.phpClassPrefix_;
6055       phpNamespace_ = other.phpNamespace_;
6056       phpMetadataNamespace_ = other.phpMetadataNamespace_;
6057       rubyPackage_ = other.rubyPackage_;
6058       features_ = other.features_ != null ? other.features_.Clone() : null;
6059       uninterpretedOption_ = other.uninterpretedOption_.Clone();
6060       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
6061       _extensions = pb::ExtensionSet.Clone(other._extensions);
6062     }
6063 
6064     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6065     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()6066     public FileOptions Clone() {
6067       return new FileOptions(this);
6068     }
6069 
6070     /// <summary>Field number for the "java_package" field.</summary>
6071     public const int JavaPackageFieldNumber = 1;
6072     private readonly static string JavaPackageDefaultValue = "";
6073 
6074     private string javaPackage_;
6075     /// <summary>
6076     /// Sets the Java package where classes generated from this .proto will be
6077     /// placed.  By default, the proto package is used, but this is often
6078     /// inappropriate because proto packages do not normally start with backwards
6079     /// domain names.
6080     /// </summary>
6081     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6082     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6083     public string JavaPackage {
6084       get { return javaPackage_ ?? JavaPackageDefaultValue; }
6085       set {
6086         javaPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
6087       }
6088     }
6089     /// <summary>Gets whether the "java_package" field is set</summary>
6090     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6091     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6092     public bool HasJavaPackage {
6093       get { return javaPackage_ != null; }
6094     }
6095     /// <summary>Clears the value of the "java_package" field</summary>
6096     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6097     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearJavaPackage()6098     public void ClearJavaPackage() {
6099       javaPackage_ = null;
6100     }
6101 
6102     /// <summary>Field number for the "java_outer_classname" field.</summary>
6103     public const int JavaOuterClassnameFieldNumber = 8;
6104     private readonly static string JavaOuterClassnameDefaultValue = "";
6105 
6106     private string javaOuterClassname_;
6107     /// <summary>
6108     /// Controls the name of the wrapper Java class generated for the .proto file.
6109     /// That class will always contain the .proto file's getDescriptor() method as
6110     /// well as any top-level extensions defined in the .proto file.
6111     /// If java_multiple_files is disabled, then all the other classes from the
6112     /// .proto file will be nested inside the single wrapper outer class.
6113     /// </summary>
6114     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6115     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6116     public string JavaOuterClassname {
6117       get { return javaOuterClassname_ ?? JavaOuterClassnameDefaultValue; }
6118       set {
6119         javaOuterClassname_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
6120       }
6121     }
6122     /// <summary>Gets whether the "java_outer_classname" field is set</summary>
6123     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6124     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6125     public bool HasJavaOuterClassname {
6126       get { return javaOuterClassname_ != null; }
6127     }
6128     /// <summary>Clears the value of the "java_outer_classname" field</summary>
6129     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6130     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearJavaOuterClassname()6131     public void ClearJavaOuterClassname() {
6132       javaOuterClassname_ = null;
6133     }
6134 
6135     /// <summary>Field number for the "java_multiple_files" field.</summary>
6136     public const int JavaMultipleFilesFieldNumber = 10;
6137     private readonly static bool JavaMultipleFilesDefaultValue = false;
6138 
6139     private bool javaMultipleFiles_;
6140     /// <summary>
6141     /// If enabled, then the Java code generator will generate a separate .java
6142     /// file for each top-level message, enum, and service defined in the .proto
6143     /// file.  Thus, these types will *not* be nested inside the wrapper class
6144     /// named by java_outer_classname.  However, the wrapper class will still be
6145     /// generated to contain the file's getDescriptor() method as well as any
6146     /// top-level extensions defined in the file.
6147     /// </summary>
6148     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6149     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6150     public bool JavaMultipleFiles {
6151       get { if ((_hasBits0 & 2) != 0) { return javaMultipleFiles_; } else { return JavaMultipleFilesDefaultValue; } }
6152       set {
6153         _hasBits0 |= 2;
6154         javaMultipleFiles_ = value;
6155       }
6156     }
6157     /// <summary>Gets whether the "java_multiple_files" field is set</summary>
6158     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6159     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6160     public bool HasJavaMultipleFiles {
6161       get { return (_hasBits0 & 2) != 0; }
6162     }
6163     /// <summary>Clears the value of the "java_multiple_files" field</summary>
6164     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6165     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearJavaMultipleFiles()6166     public void ClearJavaMultipleFiles() {
6167       _hasBits0 &= ~2;
6168     }
6169 
6170     /// <summary>Field number for the "java_generate_equals_and_hash" field.</summary>
6171     public const int JavaGenerateEqualsAndHashFieldNumber = 20;
6172     private readonly static bool JavaGenerateEqualsAndHashDefaultValue = false;
6173 
6174     private bool javaGenerateEqualsAndHash_;
6175     /// <summary>
6176     /// This option does nothing.
6177     /// </summary>
6178     [global::System.ObsoleteAttribute]
6179     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6180     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6181     public bool JavaGenerateEqualsAndHash {
6182       get { if ((_hasBits0 & 32) != 0) { return javaGenerateEqualsAndHash_; } else { return JavaGenerateEqualsAndHashDefaultValue; } }
6183       set {
6184         _hasBits0 |= 32;
6185         javaGenerateEqualsAndHash_ = value;
6186       }
6187     }
6188     /// <summary>Gets whether the "java_generate_equals_and_hash" field is set</summary>
6189     [global::System.ObsoleteAttribute]
6190     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6191     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6192     public bool HasJavaGenerateEqualsAndHash {
6193       get { return (_hasBits0 & 32) != 0; }
6194     }
6195     /// <summary>Clears the value of the "java_generate_equals_and_hash" field</summary>
6196     [global::System.ObsoleteAttribute]
6197     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6198     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearJavaGenerateEqualsAndHash()6199     public void ClearJavaGenerateEqualsAndHash() {
6200       _hasBits0 &= ~32;
6201     }
6202 
6203     /// <summary>Field number for the "java_string_check_utf8" field.</summary>
6204     public const int JavaStringCheckUtf8FieldNumber = 27;
6205     private readonly static bool JavaStringCheckUtf8DefaultValue = false;
6206 
6207     private bool javaStringCheckUtf8_;
6208     /// <summary>
6209     /// A proto2 file can set this to true to opt in to UTF-8 checking for Java,
6210     /// which will throw an exception if invalid UTF-8 is parsed from the wire or
6211     /// assigned to a string field.
6212     ///
6213     /// TODO: clarify exactly what kinds of field types this option
6214     /// applies to, and update these docs accordingly.
6215     ///
6216     /// Proto3 files already perform these checks. Setting the option explicitly to
6217     /// false has no effect: it cannot be used to opt proto3 files out of UTF-8
6218     /// checks.
6219     /// </summary>
6220     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6221     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6222     public bool JavaStringCheckUtf8 {
6223       get { if ((_hasBits0 & 128) != 0) { return javaStringCheckUtf8_; } else { return JavaStringCheckUtf8DefaultValue; } }
6224       set {
6225         _hasBits0 |= 128;
6226         javaStringCheckUtf8_ = value;
6227       }
6228     }
6229     /// <summary>Gets whether the "java_string_check_utf8" field is set</summary>
6230     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6231     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6232     public bool HasJavaStringCheckUtf8 {
6233       get { return (_hasBits0 & 128) != 0; }
6234     }
6235     /// <summary>Clears the value of the "java_string_check_utf8" field</summary>
6236     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6237     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearJavaStringCheckUtf8()6238     public void ClearJavaStringCheckUtf8() {
6239       _hasBits0 &= ~128;
6240     }
6241 
6242     /// <summary>Field number for the "optimize_for" field.</summary>
6243     public const int OptimizeForFieldNumber = 9;
6244     private readonly static global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode OptimizeForDefaultValue = global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode.Speed;
6245 
6246     private global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode optimizeFor_;
6247     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6248     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6249     public global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode OptimizeFor {
6250       get { if ((_hasBits0 & 1) != 0) { return optimizeFor_; } else { return OptimizeForDefaultValue; } }
6251       set {
6252         _hasBits0 |= 1;
6253         optimizeFor_ = value;
6254       }
6255     }
6256     /// <summary>Gets whether the "optimize_for" field is set</summary>
6257     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6258     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6259     public bool HasOptimizeFor {
6260       get { return (_hasBits0 & 1) != 0; }
6261     }
6262     /// <summary>Clears the value of the "optimize_for" field</summary>
6263     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6264     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearOptimizeFor()6265     public void ClearOptimizeFor() {
6266       _hasBits0 &= ~1;
6267     }
6268 
6269     /// <summary>Field number for the "go_package" field.</summary>
6270     public const int GoPackageFieldNumber = 11;
6271     private readonly static string GoPackageDefaultValue = "";
6272 
6273     private string goPackage_;
6274     /// <summary>
6275     /// Sets the Go package where structs generated from this .proto will be
6276     /// placed. If omitted, the Go package will be derived from the following:
6277     ///   - The basename of the package import path, if provided.
6278     ///   - Otherwise, the package statement in the .proto file, if present.
6279     ///   - Otherwise, the basename of the .proto file, without extension.
6280     /// </summary>
6281     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6282     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6283     public string GoPackage {
6284       get { return goPackage_ ?? GoPackageDefaultValue; }
6285       set {
6286         goPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
6287       }
6288     }
6289     /// <summary>Gets whether the "go_package" field is set</summary>
6290     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6291     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6292     public bool HasGoPackage {
6293       get { return goPackage_ != null; }
6294     }
6295     /// <summary>Clears the value of the "go_package" field</summary>
6296     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6297     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearGoPackage()6298     public void ClearGoPackage() {
6299       goPackage_ = null;
6300     }
6301 
6302     /// <summary>Field number for the "cc_generic_services" field.</summary>
6303     public const int CcGenericServicesFieldNumber = 16;
6304     private readonly static bool CcGenericServicesDefaultValue = false;
6305 
6306     private bool ccGenericServices_;
6307     /// <summary>
6308     /// Should generic services be generated in each language?  "Generic" services
6309     /// are not specific to any particular RPC system.  They are generated by the
6310     /// main code generators in each language (without additional plugins).
6311     /// Generic services were the only kind of service generation supported by
6312     /// early versions of google.protobuf.
6313     ///
6314     /// Generic services are now considered deprecated in favor of using plugins
6315     /// that generate code specific to your particular RPC system.  Therefore,
6316     /// these default to false.  Old code which depends on generic services should
6317     /// explicitly set them to true.
6318     /// </summary>
6319     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6320     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6321     public bool CcGenericServices {
6322       get { if ((_hasBits0 & 4) != 0) { return ccGenericServices_; } else { return CcGenericServicesDefaultValue; } }
6323       set {
6324         _hasBits0 |= 4;
6325         ccGenericServices_ = value;
6326       }
6327     }
6328     /// <summary>Gets whether the "cc_generic_services" field is set</summary>
6329     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6330     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6331     public bool HasCcGenericServices {
6332       get { return (_hasBits0 & 4) != 0; }
6333     }
6334     /// <summary>Clears the value of the "cc_generic_services" field</summary>
6335     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6336     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearCcGenericServices()6337     public void ClearCcGenericServices() {
6338       _hasBits0 &= ~4;
6339     }
6340 
6341     /// <summary>Field number for the "java_generic_services" field.</summary>
6342     public const int JavaGenericServicesFieldNumber = 17;
6343     private readonly static bool JavaGenericServicesDefaultValue = false;
6344 
6345     private bool javaGenericServices_;
6346     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6347     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6348     public bool JavaGenericServices {
6349       get { if ((_hasBits0 & 8) != 0) { return javaGenericServices_; } else { return JavaGenericServicesDefaultValue; } }
6350       set {
6351         _hasBits0 |= 8;
6352         javaGenericServices_ = value;
6353       }
6354     }
6355     /// <summary>Gets whether the "java_generic_services" field is set</summary>
6356     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6357     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6358     public bool HasJavaGenericServices {
6359       get { return (_hasBits0 & 8) != 0; }
6360     }
6361     /// <summary>Clears the value of the "java_generic_services" field</summary>
6362     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6363     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearJavaGenericServices()6364     public void ClearJavaGenericServices() {
6365       _hasBits0 &= ~8;
6366     }
6367 
6368     /// <summary>Field number for the "py_generic_services" field.</summary>
6369     public const int PyGenericServicesFieldNumber = 18;
6370     private readonly static bool PyGenericServicesDefaultValue = false;
6371 
6372     private bool pyGenericServices_;
6373     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6374     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6375     public bool PyGenericServices {
6376       get { if ((_hasBits0 & 16) != 0) { return pyGenericServices_; } else { return PyGenericServicesDefaultValue; } }
6377       set {
6378         _hasBits0 |= 16;
6379         pyGenericServices_ = value;
6380       }
6381     }
6382     /// <summary>Gets whether the "py_generic_services" field is set</summary>
6383     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6384     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6385     public bool HasPyGenericServices {
6386       get { return (_hasBits0 & 16) != 0; }
6387     }
6388     /// <summary>Clears the value of the "py_generic_services" field</summary>
6389     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6390     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearPyGenericServices()6391     public void ClearPyGenericServices() {
6392       _hasBits0 &= ~16;
6393     }
6394 
6395     /// <summary>Field number for the "deprecated" field.</summary>
6396     public const int DeprecatedFieldNumber = 23;
6397     private readonly static bool DeprecatedDefaultValue = false;
6398 
6399     private bool deprecated_;
6400     /// <summary>
6401     /// Is this file deprecated?
6402     /// Depending on the target platform, this can emit Deprecated annotations
6403     /// for everything in the file, or it will be completely ignored; in the very
6404     /// least, this is a formalization for deprecating files.
6405     /// </summary>
6406     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6407     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6408     public bool Deprecated {
6409       get { if ((_hasBits0 & 64) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } }
6410       set {
6411         _hasBits0 |= 64;
6412         deprecated_ = value;
6413       }
6414     }
6415     /// <summary>Gets whether the "deprecated" field is set</summary>
6416     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6417     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6418     public bool HasDeprecated {
6419       get { return (_hasBits0 & 64) != 0; }
6420     }
6421     /// <summary>Clears the value of the "deprecated" field</summary>
6422     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6423     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDeprecated()6424     public void ClearDeprecated() {
6425       _hasBits0 &= ~64;
6426     }
6427 
6428     /// <summary>Field number for the "cc_enable_arenas" field.</summary>
6429     public const int CcEnableArenasFieldNumber = 31;
6430     private readonly static bool CcEnableArenasDefaultValue = true;
6431 
6432     private bool ccEnableArenas_;
6433     /// <summary>
6434     /// Enables the use of arenas for the proto messages in this file. This applies
6435     /// only to generated classes for C++.
6436     /// </summary>
6437     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6438     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6439     public bool CcEnableArenas {
6440       get { if ((_hasBits0 & 256) != 0) { return ccEnableArenas_; } else { return CcEnableArenasDefaultValue; } }
6441       set {
6442         _hasBits0 |= 256;
6443         ccEnableArenas_ = value;
6444       }
6445     }
6446     /// <summary>Gets whether the "cc_enable_arenas" field is set</summary>
6447     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6448     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6449     public bool HasCcEnableArenas {
6450       get { return (_hasBits0 & 256) != 0; }
6451     }
6452     /// <summary>Clears the value of the "cc_enable_arenas" field</summary>
6453     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6454     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearCcEnableArenas()6455     public void ClearCcEnableArenas() {
6456       _hasBits0 &= ~256;
6457     }
6458 
6459     /// <summary>Field number for the "objc_class_prefix" field.</summary>
6460     public const int ObjcClassPrefixFieldNumber = 36;
6461     private readonly static string ObjcClassPrefixDefaultValue = "";
6462 
6463     private string objcClassPrefix_;
6464     /// <summary>
6465     /// Sets the objective c class prefix which is prepended to all objective c
6466     /// generated classes from this .proto. There is no default.
6467     /// </summary>
6468     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6469     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6470     public string ObjcClassPrefix {
6471       get { return objcClassPrefix_ ?? ObjcClassPrefixDefaultValue; }
6472       set {
6473         objcClassPrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
6474       }
6475     }
6476     /// <summary>Gets whether the "objc_class_prefix" field is set</summary>
6477     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6478     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6479     public bool HasObjcClassPrefix {
6480       get { return objcClassPrefix_ != null; }
6481     }
6482     /// <summary>Clears the value of the "objc_class_prefix" field</summary>
6483     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6484     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearObjcClassPrefix()6485     public void ClearObjcClassPrefix() {
6486       objcClassPrefix_ = null;
6487     }
6488 
6489     /// <summary>Field number for the "csharp_namespace" field.</summary>
6490     public const int CsharpNamespaceFieldNumber = 37;
6491     private readonly static string CsharpNamespaceDefaultValue = "";
6492 
6493     private string csharpNamespace_;
6494     /// <summary>
6495     /// Namespace for generated classes; defaults to the package.
6496     /// </summary>
6497     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6498     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6499     public string CsharpNamespace {
6500       get { return csharpNamespace_ ?? CsharpNamespaceDefaultValue; }
6501       set {
6502         csharpNamespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
6503       }
6504     }
6505     /// <summary>Gets whether the "csharp_namespace" field is set</summary>
6506     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6507     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6508     public bool HasCsharpNamespace {
6509       get { return csharpNamespace_ != null; }
6510     }
6511     /// <summary>Clears the value of the "csharp_namespace" field</summary>
6512     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6513     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearCsharpNamespace()6514     public void ClearCsharpNamespace() {
6515       csharpNamespace_ = null;
6516     }
6517 
6518     /// <summary>Field number for the "swift_prefix" field.</summary>
6519     public const int SwiftPrefixFieldNumber = 39;
6520     private readonly static string SwiftPrefixDefaultValue = "";
6521 
6522     private string swiftPrefix_;
6523     /// <summary>
6524     /// By default Swift generators will take the proto package and CamelCase it
6525     /// replacing '.' with underscore and use that to prefix the types/symbols
6526     /// defined. When this options is provided, they will use this value instead
6527     /// to prefix the types/symbols defined.
6528     /// </summary>
6529     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6530     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6531     public string SwiftPrefix {
6532       get { return swiftPrefix_ ?? SwiftPrefixDefaultValue; }
6533       set {
6534         swiftPrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
6535       }
6536     }
6537     /// <summary>Gets whether the "swift_prefix" field is set</summary>
6538     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6539     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6540     public bool HasSwiftPrefix {
6541       get { return swiftPrefix_ != null; }
6542     }
6543     /// <summary>Clears the value of the "swift_prefix" field</summary>
6544     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6545     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearSwiftPrefix()6546     public void ClearSwiftPrefix() {
6547       swiftPrefix_ = null;
6548     }
6549 
6550     /// <summary>Field number for the "php_class_prefix" field.</summary>
6551     public const int PhpClassPrefixFieldNumber = 40;
6552     private readonly static string PhpClassPrefixDefaultValue = "";
6553 
6554     private string phpClassPrefix_;
6555     /// <summary>
6556     /// Sets the php class prefix which is prepended to all php generated classes
6557     /// from this .proto. Default is empty.
6558     /// </summary>
6559     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6560     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6561     public string PhpClassPrefix {
6562       get { return phpClassPrefix_ ?? PhpClassPrefixDefaultValue; }
6563       set {
6564         phpClassPrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
6565       }
6566     }
6567     /// <summary>Gets whether the "php_class_prefix" field is set</summary>
6568     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6569     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6570     public bool HasPhpClassPrefix {
6571       get { return phpClassPrefix_ != null; }
6572     }
6573     /// <summary>Clears the value of the "php_class_prefix" field</summary>
6574     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6575     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearPhpClassPrefix()6576     public void ClearPhpClassPrefix() {
6577       phpClassPrefix_ = null;
6578     }
6579 
6580     /// <summary>Field number for the "php_namespace" field.</summary>
6581     public const int PhpNamespaceFieldNumber = 41;
6582     private readonly static string PhpNamespaceDefaultValue = "";
6583 
6584     private string phpNamespace_;
6585     /// <summary>
6586     /// Use this option to change the namespace of php generated classes. Default
6587     /// is empty. When this option is empty, the package name will be used for
6588     /// determining the namespace.
6589     /// </summary>
6590     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6591     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6592     public string PhpNamespace {
6593       get { return phpNamespace_ ?? PhpNamespaceDefaultValue; }
6594       set {
6595         phpNamespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
6596       }
6597     }
6598     /// <summary>Gets whether the "php_namespace" field is set</summary>
6599     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6600     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6601     public bool HasPhpNamespace {
6602       get { return phpNamespace_ != null; }
6603     }
6604     /// <summary>Clears the value of the "php_namespace" field</summary>
6605     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6606     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearPhpNamespace()6607     public void ClearPhpNamespace() {
6608       phpNamespace_ = null;
6609     }
6610 
6611     /// <summary>Field number for the "php_metadata_namespace" field.</summary>
6612     public const int PhpMetadataNamespaceFieldNumber = 44;
6613     private readonly static string PhpMetadataNamespaceDefaultValue = "";
6614 
6615     private string phpMetadataNamespace_;
6616     /// <summary>
6617     /// Use this option to change the namespace of php generated metadata classes.
6618     /// Default is empty. When this option is empty, the proto file name will be
6619     /// used for determining the namespace.
6620     /// </summary>
6621     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6622     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6623     public string PhpMetadataNamespace {
6624       get { return phpMetadataNamespace_ ?? PhpMetadataNamespaceDefaultValue; }
6625       set {
6626         phpMetadataNamespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
6627       }
6628     }
6629     /// <summary>Gets whether the "php_metadata_namespace" field is set</summary>
6630     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6631     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6632     public bool HasPhpMetadataNamespace {
6633       get { return phpMetadataNamespace_ != null; }
6634     }
6635     /// <summary>Clears the value of the "php_metadata_namespace" field</summary>
6636     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6637     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearPhpMetadataNamespace()6638     public void ClearPhpMetadataNamespace() {
6639       phpMetadataNamespace_ = null;
6640     }
6641 
6642     /// <summary>Field number for the "ruby_package" field.</summary>
6643     public const int RubyPackageFieldNumber = 45;
6644     private readonly static string RubyPackageDefaultValue = "";
6645 
6646     private string rubyPackage_;
6647     /// <summary>
6648     /// Use this option to change the package of ruby generated classes. Default
6649     /// is empty. When this option is not set, the package name will be used for
6650     /// determining the ruby package.
6651     /// </summary>
6652     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6653     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6654     public string RubyPackage {
6655       get { return rubyPackage_ ?? RubyPackageDefaultValue; }
6656       set {
6657         rubyPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
6658       }
6659     }
6660     /// <summary>Gets whether the "ruby_package" field is set</summary>
6661     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6662     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6663     public bool HasRubyPackage {
6664       get { return rubyPackage_ != null; }
6665     }
6666     /// <summary>Clears the value of the "ruby_package" field</summary>
6667     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6668     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRubyPackage()6669     public void ClearRubyPackage() {
6670       rubyPackage_ = null;
6671     }
6672 
6673     /// <summary>Field number for the "features" field.</summary>
6674     public const int FeaturesFieldNumber = 50;
6675     private global::Google.Protobuf.Reflection.FeatureSet features_;
6676     /// <summary>
6677     /// Any features defined in the specific edition.
6678     /// </summary>
6679     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6680     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6681     public global::Google.Protobuf.Reflection.FeatureSet Features {
6682       get { return features_; }
6683       set {
6684         features_ = value;
6685       }
6686     }
6687 
6688     /// <summary>Field number for the "uninterpreted_option" field.</summary>
6689     public const int UninterpretedOptionFieldNumber = 999;
6690     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
6691         = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
6692     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
6693     /// <summary>
6694     /// The parser stores options it doesn't recognize here.
6695     /// See the documentation for the "Options" section above.
6696     /// </summary>
6697     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6698     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
6699     public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
6700       get { return uninterpretedOption_; }
6701     }
6702 
6703     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6704     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)6705     public override bool Equals(object other) {
6706       return Equals(other as FileOptions);
6707     }
6708 
6709     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6710     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(FileOptions other)6711     public bool Equals(FileOptions other) {
6712       if (ReferenceEquals(other, null)) {
6713         return false;
6714       }
6715       if (ReferenceEquals(other, this)) {
6716         return true;
6717       }
6718       if (JavaPackage != other.JavaPackage) return false;
6719       if (JavaOuterClassname != other.JavaOuterClassname) return false;
6720       if (JavaMultipleFiles != other.JavaMultipleFiles) return false;
6721       if (JavaGenerateEqualsAndHash != other.JavaGenerateEqualsAndHash) return false;
6722       if (JavaStringCheckUtf8 != other.JavaStringCheckUtf8) return false;
6723       if (OptimizeFor != other.OptimizeFor) return false;
6724       if (GoPackage != other.GoPackage) return false;
6725       if (CcGenericServices != other.CcGenericServices) return false;
6726       if (JavaGenericServices != other.JavaGenericServices) return false;
6727       if (PyGenericServices != other.PyGenericServices) return false;
6728       if (Deprecated != other.Deprecated) return false;
6729       if (CcEnableArenas != other.CcEnableArenas) return false;
6730       if (ObjcClassPrefix != other.ObjcClassPrefix) return false;
6731       if (CsharpNamespace != other.CsharpNamespace) return false;
6732       if (SwiftPrefix != other.SwiftPrefix) return false;
6733       if (PhpClassPrefix != other.PhpClassPrefix) return false;
6734       if (PhpNamespace != other.PhpNamespace) return false;
6735       if (PhpMetadataNamespace != other.PhpMetadataNamespace) return false;
6736       if (RubyPackage != other.RubyPackage) return false;
6737       if (!object.Equals(Features, other.Features)) return false;
6738       if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
6739       if (!Equals(_extensions, other._extensions)) {
6740         return false;
6741       }
6742       return Equals(_unknownFields, other._unknownFields);
6743     }
6744 
6745     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6746     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()6747     public override int GetHashCode() {
6748       int hash = 1;
6749       if (HasJavaPackage) hash ^= JavaPackage.GetHashCode();
6750       if (HasJavaOuterClassname) hash ^= JavaOuterClassname.GetHashCode();
6751       if (HasJavaMultipleFiles) hash ^= JavaMultipleFiles.GetHashCode();
6752       if (HasJavaGenerateEqualsAndHash) hash ^= JavaGenerateEqualsAndHash.GetHashCode();
6753       if (HasJavaStringCheckUtf8) hash ^= JavaStringCheckUtf8.GetHashCode();
6754       if (HasOptimizeFor) hash ^= OptimizeFor.GetHashCode();
6755       if (HasGoPackage) hash ^= GoPackage.GetHashCode();
6756       if (HasCcGenericServices) hash ^= CcGenericServices.GetHashCode();
6757       if (HasJavaGenericServices) hash ^= JavaGenericServices.GetHashCode();
6758       if (HasPyGenericServices) hash ^= PyGenericServices.GetHashCode();
6759       if (HasDeprecated) hash ^= Deprecated.GetHashCode();
6760       if (HasCcEnableArenas) hash ^= CcEnableArenas.GetHashCode();
6761       if (HasObjcClassPrefix) hash ^= ObjcClassPrefix.GetHashCode();
6762       if (HasCsharpNamespace) hash ^= CsharpNamespace.GetHashCode();
6763       if (HasSwiftPrefix) hash ^= SwiftPrefix.GetHashCode();
6764       if (HasPhpClassPrefix) hash ^= PhpClassPrefix.GetHashCode();
6765       if (HasPhpNamespace) hash ^= PhpNamespace.GetHashCode();
6766       if (HasPhpMetadataNamespace) hash ^= PhpMetadataNamespace.GetHashCode();
6767       if (HasRubyPackage) hash ^= RubyPackage.GetHashCode();
6768       if (features_ != null) hash ^= Features.GetHashCode();
6769       hash ^= uninterpretedOption_.GetHashCode();
6770       if (_extensions != null) {
6771         hash ^= _extensions.GetHashCode();
6772       }
6773       if (_unknownFields != null) {
6774         hash ^= _unknownFields.GetHashCode();
6775       }
6776       return hash;
6777     }
6778 
6779     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6780     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()6781     public override string ToString() {
6782       return pb::JsonFormatter.ToDiagnosticString(this);
6783     }
6784 
6785     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6786     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)6787     public void WriteTo(pb::CodedOutputStream output) {
6788     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6789       output.WriteRawMessage(this);
6790     #else
6791       if (HasJavaPackage) {
6792         output.WriteRawTag(10);
6793         output.WriteString(JavaPackage);
6794       }
6795       if (HasJavaOuterClassname) {
6796         output.WriteRawTag(66);
6797         output.WriteString(JavaOuterClassname);
6798       }
6799       if (HasOptimizeFor) {
6800         output.WriteRawTag(72);
6801         output.WriteEnum((int) OptimizeFor);
6802       }
6803       if (HasJavaMultipleFiles) {
6804         output.WriteRawTag(80);
6805         output.WriteBool(JavaMultipleFiles);
6806       }
6807       if (HasGoPackage) {
6808         output.WriteRawTag(90);
6809         output.WriteString(GoPackage);
6810       }
6811       if (HasCcGenericServices) {
6812         output.WriteRawTag(128, 1);
6813         output.WriteBool(CcGenericServices);
6814       }
6815       if (HasJavaGenericServices) {
6816         output.WriteRawTag(136, 1);
6817         output.WriteBool(JavaGenericServices);
6818       }
6819       if (HasPyGenericServices) {
6820         output.WriteRawTag(144, 1);
6821         output.WriteBool(PyGenericServices);
6822       }
6823       if (HasJavaGenerateEqualsAndHash) {
6824         output.WriteRawTag(160, 1);
6825         output.WriteBool(JavaGenerateEqualsAndHash);
6826       }
6827       if (HasDeprecated) {
6828         output.WriteRawTag(184, 1);
6829         output.WriteBool(Deprecated);
6830       }
6831       if (HasJavaStringCheckUtf8) {
6832         output.WriteRawTag(216, 1);
6833         output.WriteBool(JavaStringCheckUtf8);
6834       }
6835       if (HasCcEnableArenas) {
6836         output.WriteRawTag(248, 1);
6837         output.WriteBool(CcEnableArenas);
6838       }
6839       if (HasObjcClassPrefix) {
6840         output.WriteRawTag(162, 2);
6841         output.WriteString(ObjcClassPrefix);
6842       }
6843       if (HasCsharpNamespace) {
6844         output.WriteRawTag(170, 2);
6845         output.WriteString(CsharpNamespace);
6846       }
6847       if (HasSwiftPrefix) {
6848         output.WriteRawTag(186, 2);
6849         output.WriteString(SwiftPrefix);
6850       }
6851       if (HasPhpClassPrefix) {
6852         output.WriteRawTag(194, 2);
6853         output.WriteString(PhpClassPrefix);
6854       }
6855       if (HasPhpNamespace) {
6856         output.WriteRawTag(202, 2);
6857         output.WriteString(PhpNamespace);
6858       }
6859       if (HasPhpMetadataNamespace) {
6860         output.WriteRawTag(226, 2);
6861         output.WriteString(PhpMetadataNamespace);
6862       }
6863       if (HasRubyPackage) {
6864         output.WriteRawTag(234, 2);
6865         output.WriteString(RubyPackage);
6866       }
6867       if (features_ != null) {
6868         output.WriteRawTag(146, 3);
6869         output.WriteMessage(Features);
6870       }
6871       uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
6872       if (_extensions != null) {
6873         _extensions.WriteTo(output);
6874       }
6875       if (_unknownFields != null) {
6876         _unknownFields.WriteTo(output);
6877       }
6878     #endif
6879     }
6880 
6881     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6882     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6883     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)6884     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
6885       if (HasJavaPackage) {
6886         output.WriteRawTag(10);
6887         output.WriteString(JavaPackage);
6888       }
6889       if (HasJavaOuterClassname) {
6890         output.WriteRawTag(66);
6891         output.WriteString(JavaOuterClassname);
6892       }
6893       if (HasOptimizeFor) {
6894         output.WriteRawTag(72);
6895         output.WriteEnum((int) OptimizeFor);
6896       }
6897       if (HasJavaMultipleFiles) {
6898         output.WriteRawTag(80);
6899         output.WriteBool(JavaMultipleFiles);
6900       }
6901       if (HasGoPackage) {
6902         output.WriteRawTag(90);
6903         output.WriteString(GoPackage);
6904       }
6905       if (HasCcGenericServices) {
6906         output.WriteRawTag(128, 1);
6907         output.WriteBool(CcGenericServices);
6908       }
6909       if (HasJavaGenericServices) {
6910         output.WriteRawTag(136, 1);
6911         output.WriteBool(JavaGenericServices);
6912       }
6913       if (HasPyGenericServices) {
6914         output.WriteRawTag(144, 1);
6915         output.WriteBool(PyGenericServices);
6916       }
6917       if (HasJavaGenerateEqualsAndHash) {
6918         output.WriteRawTag(160, 1);
6919         output.WriteBool(JavaGenerateEqualsAndHash);
6920       }
6921       if (HasDeprecated) {
6922         output.WriteRawTag(184, 1);
6923         output.WriteBool(Deprecated);
6924       }
6925       if (HasJavaStringCheckUtf8) {
6926         output.WriteRawTag(216, 1);
6927         output.WriteBool(JavaStringCheckUtf8);
6928       }
6929       if (HasCcEnableArenas) {
6930         output.WriteRawTag(248, 1);
6931         output.WriteBool(CcEnableArenas);
6932       }
6933       if (HasObjcClassPrefix) {
6934         output.WriteRawTag(162, 2);
6935         output.WriteString(ObjcClassPrefix);
6936       }
6937       if (HasCsharpNamespace) {
6938         output.WriteRawTag(170, 2);
6939         output.WriteString(CsharpNamespace);
6940       }
6941       if (HasSwiftPrefix) {
6942         output.WriteRawTag(186, 2);
6943         output.WriteString(SwiftPrefix);
6944       }
6945       if (HasPhpClassPrefix) {
6946         output.WriteRawTag(194, 2);
6947         output.WriteString(PhpClassPrefix);
6948       }
6949       if (HasPhpNamespace) {
6950         output.WriteRawTag(202, 2);
6951         output.WriteString(PhpNamespace);
6952       }
6953       if (HasPhpMetadataNamespace) {
6954         output.WriteRawTag(226, 2);
6955         output.WriteString(PhpMetadataNamespace);
6956       }
6957       if (HasRubyPackage) {
6958         output.WriteRawTag(234, 2);
6959         output.WriteString(RubyPackage);
6960       }
6961       if (features_ != null) {
6962         output.WriteRawTag(146, 3);
6963         output.WriteMessage(Features);
6964       }
6965       uninterpretedOption_.WriteTo(ref output, _repeated_uninterpretedOption_codec);
6966       if (_extensions != null) {
6967         _extensions.WriteTo(ref output);
6968       }
6969       if (_unknownFields != null) {
6970         _unknownFields.WriteTo(ref output);
6971       }
6972     }
6973     #endif
6974 
6975     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6976     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()6977     public int CalculateSize() {
6978       int size = 0;
6979       if (HasJavaPackage) {
6980         size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaPackage);
6981       }
6982       if (HasJavaOuterClassname) {
6983         size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaOuterClassname);
6984       }
6985       if (HasJavaMultipleFiles) {
6986         size += 1 + 1;
6987       }
6988       if (HasJavaGenerateEqualsAndHash) {
6989         size += 2 + 1;
6990       }
6991       if (HasJavaStringCheckUtf8) {
6992         size += 2 + 1;
6993       }
6994       if (HasOptimizeFor) {
6995         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OptimizeFor);
6996       }
6997       if (HasGoPackage) {
6998         size += 1 + pb::CodedOutputStream.ComputeStringSize(GoPackage);
6999       }
7000       if (HasCcGenericServices) {
7001         size += 2 + 1;
7002       }
7003       if (HasJavaGenericServices) {
7004         size += 2 + 1;
7005       }
7006       if (HasPyGenericServices) {
7007         size += 2 + 1;
7008       }
7009       if (HasDeprecated) {
7010         size += 2 + 1;
7011       }
7012       if (HasCcEnableArenas) {
7013         size += 2 + 1;
7014       }
7015       if (HasObjcClassPrefix) {
7016         size += 2 + pb::CodedOutputStream.ComputeStringSize(ObjcClassPrefix);
7017       }
7018       if (HasCsharpNamespace) {
7019         size += 2 + pb::CodedOutputStream.ComputeStringSize(CsharpNamespace);
7020       }
7021       if (HasSwiftPrefix) {
7022         size += 2 + pb::CodedOutputStream.ComputeStringSize(SwiftPrefix);
7023       }
7024       if (HasPhpClassPrefix) {
7025         size += 2 + pb::CodedOutputStream.ComputeStringSize(PhpClassPrefix);
7026       }
7027       if (HasPhpNamespace) {
7028         size += 2 + pb::CodedOutputStream.ComputeStringSize(PhpNamespace);
7029       }
7030       if (HasPhpMetadataNamespace) {
7031         size += 2 + pb::CodedOutputStream.ComputeStringSize(PhpMetadataNamespace);
7032       }
7033       if (HasRubyPackage) {
7034         size += 2 + pb::CodedOutputStream.ComputeStringSize(RubyPackage);
7035       }
7036       if (features_ != null) {
7037         size += 2 + pb::CodedOutputStream.ComputeMessageSize(Features);
7038       }
7039       size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
7040       if (_extensions != null) {
7041         size += _extensions.CalculateSize();
7042       }
7043       if (_unknownFields != null) {
7044         size += _unknownFields.CalculateSize();
7045       }
7046       return size;
7047     }
7048 
7049     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7050     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(FileOptions other)7051     public void MergeFrom(FileOptions other) {
7052       if (other == null) {
7053         return;
7054       }
7055       if (other.HasJavaPackage) {
7056         JavaPackage = other.JavaPackage;
7057       }
7058       if (other.HasJavaOuterClassname) {
7059         JavaOuterClassname = other.JavaOuterClassname;
7060       }
7061       if (other.HasJavaMultipleFiles) {
7062         JavaMultipleFiles = other.JavaMultipleFiles;
7063       }
7064       if (other.HasJavaGenerateEqualsAndHash) {
7065         JavaGenerateEqualsAndHash = other.JavaGenerateEqualsAndHash;
7066       }
7067       if (other.HasJavaStringCheckUtf8) {
7068         JavaStringCheckUtf8 = other.JavaStringCheckUtf8;
7069       }
7070       if (other.HasOptimizeFor) {
7071         OptimizeFor = other.OptimizeFor;
7072       }
7073       if (other.HasGoPackage) {
7074         GoPackage = other.GoPackage;
7075       }
7076       if (other.HasCcGenericServices) {
7077         CcGenericServices = other.CcGenericServices;
7078       }
7079       if (other.HasJavaGenericServices) {
7080         JavaGenericServices = other.JavaGenericServices;
7081       }
7082       if (other.HasPyGenericServices) {
7083         PyGenericServices = other.PyGenericServices;
7084       }
7085       if (other.HasDeprecated) {
7086         Deprecated = other.Deprecated;
7087       }
7088       if (other.HasCcEnableArenas) {
7089         CcEnableArenas = other.CcEnableArenas;
7090       }
7091       if (other.HasObjcClassPrefix) {
7092         ObjcClassPrefix = other.ObjcClassPrefix;
7093       }
7094       if (other.HasCsharpNamespace) {
7095         CsharpNamespace = other.CsharpNamespace;
7096       }
7097       if (other.HasSwiftPrefix) {
7098         SwiftPrefix = other.SwiftPrefix;
7099       }
7100       if (other.HasPhpClassPrefix) {
7101         PhpClassPrefix = other.PhpClassPrefix;
7102       }
7103       if (other.HasPhpNamespace) {
7104         PhpNamespace = other.PhpNamespace;
7105       }
7106       if (other.HasPhpMetadataNamespace) {
7107         PhpMetadataNamespace = other.PhpMetadataNamespace;
7108       }
7109       if (other.HasRubyPackage) {
7110         RubyPackage = other.RubyPackage;
7111       }
7112       if (other.features_ != null) {
7113         if (features_ == null) {
7114           Features = new global::Google.Protobuf.Reflection.FeatureSet();
7115         }
7116         Features.MergeFrom(other.Features);
7117       }
7118       uninterpretedOption_.Add(other.uninterpretedOption_);
7119       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
7120       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7121     }
7122 
7123     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7124     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)7125     public void MergeFrom(pb::CodedInputStream input) {
7126     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7127       input.ReadRawMessage(this);
7128     #else
7129       uint tag;
7130       while ((tag = input.ReadTag()) != 0) {
7131       if ((tag & 7) == 4) {
7132         // Abort on any end group tag.
7133         return;
7134       }
7135       switch(tag) {
7136           default:
7137             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
7138               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7139             }
7140             break;
7141           case 10: {
7142             JavaPackage = input.ReadString();
7143             break;
7144           }
7145           case 66: {
7146             JavaOuterClassname = input.ReadString();
7147             break;
7148           }
7149           case 72: {
7150             OptimizeFor = (global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) input.ReadEnum();
7151             break;
7152           }
7153           case 80: {
7154             JavaMultipleFiles = input.ReadBool();
7155             break;
7156           }
7157           case 90: {
7158             GoPackage = input.ReadString();
7159             break;
7160           }
7161           case 128: {
7162             CcGenericServices = input.ReadBool();
7163             break;
7164           }
7165           case 136: {
7166             JavaGenericServices = input.ReadBool();
7167             break;
7168           }
7169           case 144: {
7170             PyGenericServices = input.ReadBool();
7171             break;
7172           }
7173           case 160: {
7174             JavaGenerateEqualsAndHash = input.ReadBool();
7175             break;
7176           }
7177           case 184: {
7178             Deprecated = input.ReadBool();
7179             break;
7180           }
7181           case 216: {
7182             JavaStringCheckUtf8 = input.ReadBool();
7183             break;
7184           }
7185           case 248: {
7186             CcEnableArenas = input.ReadBool();
7187             break;
7188           }
7189           case 290: {
7190             ObjcClassPrefix = input.ReadString();
7191             break;
7192           }
7193           case 298: {
7194             CsharpNamespace = input.ReadString();
7195             break;
7196           }
7197           case 314: {
7198             SwiftPrefix = input.ReadString();
7199             break;
7200           }
7201           case 322: {
7202             PhpClassPrefix = input.ReadString();
7203             break;
7204           }
7205           case 330: {
7206             PhpNamespace = input.ReadString();
7207             break;
7208           }
7209           case 354: {
7210             PhpMetadataNamespace = input.ReadString();
7211             break;
7212           }
7213           case 362: {
7214             RubyPackage = input.ReadString();
7215             break;
7216           }
7217           case 402: {
7218             if (features_ == null) {
7219               Features = new global::Google.Protobuf.Reflection.FeatureSet();
7220             }
7221             input.ReadMessage(Features);
7222             break;
7223           }
7224           case 7994: {
7225             uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
7226             break;
7227           }
7228         }
7229       }
7230     #endif
7231     }
7232 
7233     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7234     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7235     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7236     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7237       uint tag;
7238       while ((tag = input.ReadTag()) != 0) {
7239       if ((tag & 7) == 4) {
7240         // Abort on any end group tag.
7241         return;
7242       }
7243       switch(tag) {
7244           default:
7245             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
7246               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7247             }
7248             break;
7249           case 10: {
7250             JavaPackage = input.ReadString();
7251             break;
7252           }
7253           case 66: {
7254             JavaOuterClassname = input.ReadString();
7255             break;
7256           }
7257           case 72: {
7258             OptimizeFor = (global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) input.ReadEnum();
7259             break;
7260           }
7261           case 80: {
7262             JavaMultipleFiles = input.ReadBool();
7263             break;
7264           }
7265           case 90: {
7266             GoPackage = input.ReadString();
7267             break;
7268           }
7269           case 128: {
7270             CcGenericServices = input.ReadBool();
7271             break;
7272           }
7273           case 136: {
7274             JavaGenericServices = input.ReadBool();
7275             break;
7276           }
7277           case 144: {
7278             PyGenericServices = input.ReadBool();
7279             break;
7280           }
7281           case 160: {
7282             JavaGenerateEqualsAndHash = input.ReadBool();
7283             break;
7284           }
7285           case 184: {
7286             Deprecated = input.ReadBool();
7287             break;
7288           }
7289           case 216: {
7290             JavaStringCheckUtf8 = input.ReadBool();
7291             break;
7292           }
7293           case 248: {
7294             CcEnableArenas = input.ReadBool();
7295             break;
7296           }
7297           case 290: {
7298             ObjcClassPrefix = input.ReadString();
7299             break;
7300           }
7301           case 298: {
7302             CsharpNamespace = input.ReadString();
7303             break;
7304           }
7305           case 314: {
7306             SwiftPrefix = input.ReadString();
7307             break;
7308           }
7309           case 322: {
7310             PhpClassPrefix = input.ReadString();
7311             break;
7312           }
7313           case 330: {
7314             PhpNamespace = input.ReadString();
7315             break;
7316           }
7317           case 354: {
7318             PhpMetadataNamespace = input.ReadString();
7319             break;
7320           }
7321           case 362: {
7322             RubyPackage = input.ReadString();
7323             break;
7324           }
7325           case 402: {
7326             if (features_ == null) {
7327               Features = new global::Google.Protobuf.Reflection.FeatureSet();
7328             }
7329             input.ReadMessage(Features);
7330             break;
7331           }
7332           case 7994: {
7333             uninterpretedOption_.AddEntriesFrom(ref input, _repeated_uninterpretedOption_codec);
7334             break;
7335           }
7336         }
7337       }
7338     }
7339     #endif
7340 
GetExtension(pb::Extension<FileOptions, TValue> extension)7341     public TValue GetExtension<TValue>(pb::Extension<FileOptions, TValue> extension) {
7342       return pb::ExtensionSet.Get(ref _extensions, extension);
7343     }
GetExtension(pb::RepeatedExtension<FileOptions, TValue> extension)7344     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<FileOptions, TValue> extension) {
7345       return pb::ExtensionSet.Get(ref _extensions, extension);
7346     }
GetOrInitializeExtension(pb::RepeatedExtension<FileOptions, TValue> extension)7347     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<FileOptions, TValue> extension) {
7348       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
7349     }
SetExtension(pb::Extension<FileOptions, TValue> extension, TValue value)7350     public void SetExtension<TValue>(pb::Extension<FileOptions, TValue> extension, TValue value) {
7351       pb::ExtensionSet.Set(ref _extensions, extension, value);
7352     }
HasExtension(pb::Extension<FileOptions, TValue> extension)7353     public bool HasExtension<TValue>(pb::Extension<FileOptions, TValue> extension) {
7354       return pb::ExtensionSet.Has(ref _extensions, extension);
7355     }
ClearExtension(pb::Extension<FileOptions, TValue> extension)7356     public void ClearExtension<TValue>(pb::Extension<FileOptions, TValue> extension) {
7357       pb::ExtensionSet.Clear(ref _extensions, extension);
7358     }
ClearExtension(pb::RepeatedExtension<FileOptions, TValue> extension)7359     public void ClearExtension<TValue>(pb::RepeatedExtension<FileOptions, TValue> extension) {
7360       pb::ExtensionSet.Clear(ref _extensions, extension);
7361     }
7362 
7363     #region Nested types
7364     /// <summary>Container for nested types declared in the FileOptions message type.</summary>
7365     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7366     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7367     public static partial class Types {
7368       /// <summary>
7369       /// Generated classes can be optimized for speed or code size.
7370       /// </summary>
7371       public enum OptimizeMode {
7372         /// <summary>
7373         /// Generate complete code for parsing, serialization,
7374         /// </summary>
7375         [pbr::OriginalName("SPEED")] Speed = 1,
7376         /// <summary>
7377         /// etc.
7378         /// </summary>
7379         [pbr::OriginalName("CODE_SIZE")] CodeSize = 2,
7380         /// <summary>
7381         /// Generate code using MessageLite and the lite runtime.
7382         /// </summary>
7383         [pbr::OriginalName("LITE_RUNTIME")] LiteRuntime = 3,
7384       }
7385 
7386     }
7387     #endregion
7388 
7389   }
7390 
7391   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
7392   public sealed partial class MessageOptions : pb::IExtendableMessage<MessageOptions>
7393   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7394       , pb::IBufferMessage
7395   #endif
7396   {
7397     private static readonly pb::MessageParser<MessageOptions> _parser = new pb::MessageParser<MessageOptions>(() => new MessageOptions());
7398     private pb::UnknownFieldSet _unknownFields;
7399     internal pb::ExtensionSet<MessageOptions> _extensions;
7400     private pb::ExtensionSet<MessageOptions> _Extensions { get { return _extensions; } }
7401     private int _hasBits0;
7402     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7403     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7404     public static pb::MessageParser<MessageOptions> Parser { get { return _parser; } }
7405 
7406     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7407     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7408     public static pbr::MessageDescriptor Descriptor {
7409       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[11]; }
7410     }
7411 
7412     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7413     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7414     pbr::MessageDescriptor pb::IMessage.Descriptor {
7415       get { return Descriptor; }
7416     }
7417 
7418     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7419     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageOptions()7420     public MessageOptions() {
7421       OnConstruction();
7422     }
7423 
OnConstruction()7424     partial void OnConstruction();
7425 
7426     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7427     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MessageOptions(MessageOptions other)7428     public MessageOptions(MessageOptions other) : this() {
7429       _hasBits0 = other._hasBits0;
7430       messageSetWireFormat_ = other.messageSetWireFormat_;
7431       noStandardDescriptorAccessor_ = other.noStandardDescriptorAccessor_;
7432       deprecated_ = other.deprecated_;
7433       mapEntry_ = other.mapEntry_;
7434       deprecatedLegacyJsonFieldConflicts_ = other.deprecatedLegacyJsonFieldConflicts_;
7435       features_ = other.features_ != null ? other.features_.Clone() : null;
7436       uninterpretedOption_ = other.uninterpretedOption_.Clone();
7437       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
7438       _extensions = pb::ExtensionSet.Clone(other._extensions);
7439     }
7440 
7441     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7442     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()7443     public MessageOptions Clone() {
7444       return new MessageOptions(this);
7445     }
7446 
7447     /// <summary>Field number for the "message_set_wire_format" field.</summary>
7448     public const int MessageSetWireFormatFieldNumber = 1;
7449     private readonly static bool MessageSetWireFormatDefaultValue = false;
7450 
7451     private bool messageSetWireFormat_;
7452     /// <summary>
7453     /// Set true to use the old proto1 MessageSet wire format for extensions.
7454     /// This is provided for backwards-compatibility with the MessageSet wire
7455     /// format.  You should not use this for any other reason:  It's less
7456     /// efficient, has fewer features, and is more complicated.
7457     ///
7458     /// The message must be defined exactly as follows:
7459     ///   message Foo {
7460     ///     option message_set_wire_format = true;
7461     ///     extensions 4 to max;
7462     ///   }
7463     /// Note that the message cannot have any defined fields; MessageSets only
7464     /// have extensions.
7465     ///
7466     /// All extensions of your type must be singular messages; e.g. they cannot
7467     /// be int32s, enums, or repeated messages.
7468     ///
7469     /// Because this is an option, the above two restrictions are not enforced by
7470     /// the protocol compiler.
7471     /// </summary>
7472     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7473     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7474     public bool MessageSetWireFormat {
7475       get { if ((_hasBits0 & 1) != 0) { return messageSetWireFormat_; } else { return MessageSetWireFormatDefaultValue; } }
7476       set {
7477         _hasBits0 |= 1;
7478         messageSetWireFormat_ = value;
7479       }
7480     }
7481     /// <summary>Gets whether the "message_set_wire_format" field is set</summary>
7482     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7483     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7484     public bool HasMessageSetWireFormat {
7485       get { return (_hasBits0 & 1) != 0; }
7486     }
7487     /// <summary>Clears the value of the "message_set_wire_format" field</summary>
7488     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7489     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearMessageSetWireFormat()7490     public void ClearMessageSetWireFormat() {
7491       _hasBits0 &= ~1;
7492     }
7493 
7494     /// <summary>Field number for the "no_standard_descriptor_accessor" field.</summary>
7495     public const int NoStandardDescriptorAccessorFieldNumber = 2;
7496     private readonly static bool NoStandardDescriptorAccessorDefaultValue = false;
7497 
7498     private bool noStandardDescriptorAccessor_;
7499     /// <summary>
7500     /// Disables the generation of the standard "descriptor()" accessor, which can
7501     /// conflict with a field of the same name.  This is meant to make migration
7502     /// from proto1 easier; new code should avoid fields named "descriptor".
7503     /// </summary>
7504     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7505     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7506     public bool NoStandardDescriptorAccessor {
7507       get { if ((_hasBits0 & 2) != 0) { return noStandardDescriptorAccessor_; } else { return NoStandardDescriptorAccessorDefaultValue; } }
7508       set {
7509         _hasBits0 |= 2;
7510         noStandardDescriptorAccessor_ = value;
7511       }
7512     }
7513     /// <summary>Gets whether the "no_standard_descriptor_accessor" field is set</summary>
7514     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7515     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7516     public bool HasNoStandardDescriptorAccessor {
7517       get { return (_hasBits0 & 2) != 0; }
7518     }
7519     /// <summary>Clears the value of the "no_standard_descriptor_accessor" field</summary>
7520     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7521     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearNoStandardDescriptorAccessor()7522     public void ClearNoStandardDescriptorAccessor() {
7523       _hasBits0 &= ~2;
7524     }
7525 
7526     /// <summary>Field number for the "deprecated" field.</summary>
7527     public const int DeprecatedFieldNumber = 3;
7528     private readonly static bool DeprecatedDefaultValue = false;
7529 
7530     private bool deprecated_;
7531     /// <summary>
7532     /// Is this message deprecated?
7533     /// Depending on the target platform, this can emit Deprecated annotations
7534     /// for the message, or it will be completely ignored; in the very least,
7535     /// this is a formalization for deprecating messages.
7536     /// </summary>
7537     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7538     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7539     public bool Deprecated {
7540       get { if ((_hasBits0 & 4) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } }
7541       set {
7542         _hasBits0 |= 4;
7543         deprecated_ = value;
7544       }
7545     }
7546     /// <summary>Gets whether the "deprecated" field is set</summary>
7547     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7548     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7549     public bool HasDeprecated {
7550       get { return (_hasBits0 & 4) != 0; }
7551     }
7552     /// <summary>Clears the value of the "deprecated" field</summary>
7553     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7554     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDeprecated()7555     public void ClearDeprecated() {
7556       _hasBits0 &= ~4;
7557     }
7558 
7559     /// <summary>Field number for the "map_entry" field.</summary>
7560     public const int MapEntryFieldNumber = 7;
7561     private readonly static bool MapEntryDefaultValue = false;
7562 
7563     private bool mapEntry_;
7564     /// <summary>
7565     /// Whether the message is an automatically generated map entry type for the
7566     /// maps field.
7567     ///
7568     /// For maps fields:
7569     ///     map&lt;KeyType, ValueType> map_field = 1;
7570     /// The parsed descriptor looks like:
7571     ///     message MapFieldEntry {
7572     ///         option map_entry = true;
7573     ///         optional KeyType key = 1;
7574     ///         optional ValueType value = 2;
7575     ///     }
7576     ///     repeated MapFieldEntry map_field = 1;
7577     ///
7578     /// Implementations may choose not to generate the map_entry=true message, but
7579     /// use a native map in the target language to hold the keys and values.
7580     /// The reflection APIs in such implementations still need to work as
7581     /// if the field is a repeated message field.
7582     ///
7583     /// NOTE: Do not set the option in .proto files. Always use the maps syntax
7584     /// instead. The option should only be implicitly set by the proto compiler
7585     /// parser.
7586     /// </summary>
7587     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7588     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7589     public bool MapEntry {
7590       get { if ((_hasBits0 & 8) != 0) { return mapEntry_; } else { return MapEntryDefaultValue; } }
7591       set {
7592         _hasBits0 |= 8;
7593         mapEntry_ = value;
7594       }
7595     }
7596     /// <summary>Gets whether the "map_entry" field is set</summary>
7597     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7598     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7599     public bool HasMapEntry {
7600       get { return (_hasBits0 & 8) != 0; }
7601     }
7602     /// <summary>Clears the value of the "map_entry" field</summary>
7603     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7604     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearMapEntry()7605     public void ClearMapEntry() {
7606       _hasBits0 &= ~8;
7607     }
7608 
7609     /// <summary>Field number for the "deprecated_legacy_json_field_conflicts" field.</summary>
7610     public const int DeprecatedLegacyJsonFieldConflictsFieldNumber = 11;
7611     private readonly static bool DeprecatedLegacyJsonFieldConflictsDefaultValue = false;
7612 
7613     private bool deprecatedLegacyJsonFieldConflicts_;
7614     /// <summary>
7615     /// Enable the legacy handling of JSON field name conflicts.  This lowercases
7616     /// and strips underscored from the fields before comparison in proto3 only.
7617     /// The new behavior takes `json_name` into account and applies to proto2 as
7618     /// well.
7619     ///
7620     /// This should only be used as a temporary measure against broken builds due
7621     /// to the change in behavior for JSON field name conflicts.
7622     ///
7623     /// TODO This is legacy behavior we plan to remove once downstream
7624     /// teams have had time to migrate.
7625     /// </summary>
7626     [global::System.ObsoleteAttribute]
7627     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7628     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7629     public bool DeprecatedLegacyJsonFieldConflicts {
7630       get { if ((_hasBits0 & 16) != 0) { return deprecatedLegacyJsonFieldConflicts_; } else { return DeprecatedLegacyJsonFieldConflictsDefaultValue; } }
7631       set {
7632         _hasBits0 |= 16;
7633         deprecatedLegacyJsonFieldConflicts_ = value;
7634       }
7635     }
7636     /// <summary>Gets whether the "deprecated_legacy_json_field_conflicts" field is set</summary>
7637     [global::System.ObsoleteAttribute]
7638     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7639     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7640     public bool HasDeprecatedLegacyJsonFieldConflicts {
7641       get { return (_hasBits0 & 16) != 0; }
7642     }
7643     /// <summary>Clears the value of the "deprecated_legacy_json_field_conflicts" field</summary>
7644     [global::System.ObsoleteAttribute]
7645     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7646     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDeprecatedLegacyJsonFieldConflicts()7647     public void ClearDeprecatedLegacyJsonFieldConflicts() {
7648       _hasBits0 &= ~16;
7649     }
7650 
7651     /// <summary>Field number for the "features" field.</summary>
7652     public const int FeaturesFieldNumber = 12;
7653     private global::Google.Protobuf.Reflection.FeatureSet features_;
7654     /// <summary>
7655     /// Any features defined in the specific edition.
7656     /// </summary>
7657     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7658     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7659     public global::Google.Protobuf.Reflection.FeatureSet Features {
7660       get { return features_; }
7661       set {
7662         features_ = value;
7663       }
7664     }
7665 
7666     /// <summary>Field number for the "uninterpreted_option" field.</summary>
7667     public const int UninterpretedOptionFieldNumber = 999;
7668     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
7669         = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
7670     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
7671     /// <summary>
7672     /// The parser stores options it doesn't recognize here. See above.
7673     /// </summary>
7674     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7675     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
7676     public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
7677       get { return uninterpretedOption_; }
7678     }
7679 
7680     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7681     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)7682     public override bool Equals(object other) {
7683       return Equals(other as MessageOptions);
7684     }
7685 
7686     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7687     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(MessageOptions other)7688     public bool Equals(MessageOptions other) {
7689       if (ReferenceEquals(other, null)) {
7690         return false;
7691       }
7692       if (ReferenceEquals(other, this)) {
7693         return true;
7694       }
7695       if (MessageSetWireFormat != other.MessageSetWireFormat) return false;
7696       if (NoStandardDescriptorAccessor != other.NoStandardDescriptorAccessor) return false;
7697       if (Deprecated != other.Deprecated) return false;
7698       if (MapEntry != other.MapEntry) return false;
7699       if (DeprecatedLegacyJsonFieldConflicts != other.DeprecatedLegacyJsonFieldConflicts) return false;
7700       if (!object.Equals(Features, other.Features)) return false;
7701       if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
7702       if (!Equals(_extensions, other._extensions)) {
7703         return false;
7704       }
7705       return Equals(_unknownFields, other._unknownFields);
7706     }
7707 
7708     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7709     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()7710     public override int GetHashCode() {
7711       int hash = 1;
7712       if (HasMessageSetWireFormat) hash ^= MessageSetWireFormat.GetHashCode();
7713       if (HasNoStandardDescriptorAccessor) hash ^= NoStandardDescriptorAccessor.GetHashCode();
7714       if (HasDeprecated) hash ^= Deprecated.GetHashCode();
7715       if (HasMapEntry) hash ^= MapEntry.GetHashCode();
7716       if (HasDeprecatedLegacyJsonFieldConflicts) hash ^= DeprecatedLegacyJsonFieldConflicts.GetHashCode();
7717       if (features_ != null) hash ^= Features.GetHashCode();
7718       hash ^= uninterpretedOption_.GetHashCode();
7719       if (_extensions != null) {
7720         hash ^= _extensions.GetHashCode();
7721       }
7722       if (_unknownFields != null) {
7723         hash ^= _unknownFields.GetHashCode();
7724       }
7725       return hash;
7726     }
7727 
7728     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7729     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()7730     public override string ToString() {
7731       return pb::JsonFormatter.ToDiagnosticString(this);
7732     }
7733 
7734     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7735     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)7736     public void WriteTo(pb::CodedOutputStream output) {
7737     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7738       output.WriteRawMessage(this);
7739     #else
7740       if (HasMessageSetWireFormat) {
7741         output.WriteRawTag(8);
7742         output.WriteBool(MessageSetWireFormat);
7743       }
7744       if (HasNoStandardDescriptorAccessor) {
7745         output.WriteRawTag(16);
7746         output.WriteBool(NoStandardDescriptorAccessor);
7747       }
7748       if (HasDeprecated) {
7749         output.WriteRawTag(24);
7750         output.WriteBool(Deprecated);
7751       }
7752       if (HasMapEntry) {
7753         output.WriteRawTag(56);
7754         output.WriteBool(MapEntry);
7755       }
7756       if (HasDeprecatedLegacyJsonFieldConflicts) {
7757         output.WriteRawTag(88);
7758         output.WriteBool(DeprecatedLegacyJsonFieldConflicts);
7759       }
7760       if (features_ != null) {
7761         output.WriteRawTag(98);
7762         output.WriteMessage(Features);
7763       }
7764       uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
7765       if (_extensions != null) {
7766         _extensions.WriteTo(output);
7767       }
7768       if (_unknownFields != null) {
7769         _unknownFields.WriteTo(output);
7770       }
7771     #endif
7772     }
7773 
7774     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7775     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7776     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)7777     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
7778       if (HasMessageSetWireFormat) {
7779         output.WriteRawTag(8);
7780         output.WriteBool(MessageSetWireFormat);
7781       }
7782       if (HasNoStandardDescriptorAccessor) {
7783         output.WriteRawTag(16);
7784         output.WriteBool(NoStandardDescriptorAccessor);
7785       }
7786       if (HasDeprecated) {
7787         output.WriteRawTag(24);
7788         output.WriteBool(Deprecated);
7789       }
7790       if (HasMapEntry) {
7791         output.WriteRawTag(56);
7792         output.WriteBool(MapEntry);
7793       }
7794       if (HasDeprecatedLegacyJsonFieldConflicts) {
7795         output.WriteRawTag(88);
7796         output.WriteBool(DeprecatedLegacyJsonFieldConflicts);
7797       }
7798       if (features_ != null) {
7799         output.WriteRawTag(98);
7800         output.WriteMessage(Features);
7801       }
7802       uninterpretedOption_.WriteTo(ref output, _repeated_uninterpretedOption_codec);
7803       if (_extensions != null) {
7804         _extensions.WriteTo(ref output);
7805       }
7806       if (_unknownFields != null) {
7807         _unknownFields.WriteTo(ref output);
7808       }
7809     }
7810     #endif
7811 
7812     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7813     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()7814     public int CalculateSize() {
7815       int size = 0;
7816       if (HasMessageSetWireFormat) {
7817         size += 1 + 1;
7818       }
7819       if (HasNoStandardDescriptorAccessor) {
7820         size += 1 + 1;
7821       }
7822       if (HasDeprecated) {
7823         size += 1 + 1;
7824       }
7825       if (HasMapEntry) {
7826         size += 1 + 1;
7827       }
7828       if (HasDeprecatedLegacyJsonFieldConflicts) {
7829         size += 1 + 1;
7830       }
7831       if (features_ != null) {
7832         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Features);
7833       }
7834       size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
7835       if (_extensions != null) {
7836         size += _extensions.CalculateSize();
7837       }
7838       if (_unknownFields != null) {
7839         size += _unknownFields.CalculateSize();
7840       }
7841       return size;
7842     }
7843 
7844     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7845     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(MessageOptions other)7846     public void MergeFrom(MessageOptions other) {
7847       if (other == null) {
7848         return;
7849       }
7850       if (other.HasMessageSetWireFormat) {
7851         MessageSetWireFormat = other.MessageSetWireFormat;
7852       }
7853       if (other.HasNoStandardDescriptorAccessor) {
7854         NoStandardDescriptorAccessor = other.NoStandardDescriptorAccessor;
7855       }
7856       if (other.HasDeprecated) {
7857         Deprecated = other.Deprecated;
7858       }
7859       if (other.HasMapEntry) {
7860         MapEntry = other.MapEntry;
7861       }
7862       if (other.HasDeprecatedLegacyJsonFieldConflicts) {
7863         DeprecatedLegacyJsonFieldConflicts = other.DeprecatedLegacyJsonFieldConflicts;
7864       }
7865       if (other.features_ != null) {
7866         if (features_ == null) {
7867           Features = new global::Google.Protobuf.Reflection.FeatureSet();
7868         }
7869         Features.MergeFrom(other.Features);
7870       }
7871       uninterpretedOption_.Add(other.uninterpretedOption_);
7872       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
7873       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
7874     }
7875 
7876     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7877     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)7878     public void MergeFrom(pb::CodedInputStream input) {
7879     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7880       input.ReadRawMessage(this);
7881     #else
7882       uint tag;
7883       while ((tag = input.ReadTag()) != 0) {
7884       if ((tag & 7) == 4) {
7885         // Abort on any end group tag.
7886         return;
7887       }
7888       switch(tag) {
7889           default:
7890             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
7891               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
7892             }
7893             break;
7894           case 8: {
7895             MessageSetWireFormat = input.ReadBool();
7896             break;
7897           }
7898           case 16: {
7899             NoStandardDescriptorAccessor = input.ReadBool();
7900             break;
7901           }
7902           case 24: {
7903             Deprecated = input.ReadBool();
7904             break;
7905           }
7906           case 56: {
7907             MapEntry = input.ReadBool();
7908             break;
7909           }
7910           case 88: {
7911             DeprecatedLegacyJsonFieldConflicts = input.ReadBool();
7912             break;
7913           }
7914           case 98: {
7915             if (features_ == null) {
7916               Features = new global::Google.Protobuf.Reflection.FeatureSet();
7917             }
7918             input.ReadMessage(Features);
7919             break;
7920           }
7921           case 7994: {
7922             uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
7923             break;
7924           }
7925         }
7926       }
7927     #endif
7928     }
7929 
7930     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
7931     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
7932     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)7933     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
7934       uint tag;
7935       while ((tag = input.ReadTag()) != 0) {
7936       if ((tag & 7) == 4) {
7937         // Abort on any end group tag.
7938         return;
7939       }
7940       switch(tag) {
7941           default:
7942             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
7943               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
7944             }
7945             break;
7946           case 8: {
7947             MessageSetWireFormat = input.ReadBool();
7948             break;
7949           }
7950           case 16: {
7951             NoStandardDescriptorAccessor = input.ReadBool();
7952             break;
7953           }
7954           case 24: {
7955             Deprecated = input.ReadBool();
7956             break;
7957           }
7958           case 56: {
7959             MapEntry = input.ReadBool();
7960             break;
7961           }
7962           case 88: {
7963             DeprecatedLegacyJsonFieldConflicts = input.ReadBool();
7964             break;
7965           }
7966           case 98: {
7967             if (features_ == null) {
7968               Features = new global::Google.Protobuf.Reflection.FeatureSet();
7969             }
7970             input.ReadMessage(Features);
7971             break;
7972           }
7973           case 7994: {
7974             uninterpretedOption_.AddEntriesFrom(ref input, _repeated_uninterpretedOption_codec);
7975             break;
7976           }
7977         }
7978       }
7979     }
7980     #endif
7981 
GetExtension(pb::Extension<MessageOptions, TValue> extension)7982     public TValue GetExtension<TValue>(pb::Extension<MessageOptions, TValue> extension) {
7983       return pb::ExtensionSet.Get(ref _extensions, extension);
7984     }
GetExtension(pb::RepeatedExtension<MessageOptions, TValue> extension)7985     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<MessageOptions, TValue> extension) {
7986       return pb::ExtensionSet.Get(ref _extensions, extension);
7987     }
GetOrInitializeExtension(pb::RepeatedExtension<MessageOptions, TValue> extension)7988     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<MessageOptions, TValue> extension) {
7989       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
7990     }
SetExtension(pb::Extension<MessageOptions, TValue> extension, TValue value)7991     public void SetExtension<TValue>(pb::Extension<MessageOptions, TValue> extension, TValue value) {
7992       pb::ExtensionSet.Set(ref _extensions, extension, value);
7993     }
HasExtension(pb::Extension<MessageOptions, TValue> extension)7994     public bool HasExtension<TValue>(pb::Extension<MessageOptions, TValue> extension) {
7995       return pb::ExtensionSet.Has(ref _extensions, extension);
7996     }
ClearExtension(pb::Extension<MessageOptions, TValue> extension)7997     public void ClearExtension<TValue>(pb::Extension<MessageOptions, TValue> extension) {
7998       pb::ExtensionSet.Clear(ref _extensions, extension);
7999     }
ClearExtension(pb::RepeatedExtension<MessageOptions, TValue> extension)8000     public void ClearExtension<TValue>(pb::RepeatedExtension<MessageOptions, TValue> extension) {
8001       pb::ExtensionSet.Clear(ref _extensions, extension);
8002     }
8003 
8004   }
8005 
8006   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
8007   public sealed partial class FieldOptions : pb::IExtendableMessage<FieldOptions>
8008   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8009       , pb::IBufferMessage
8010   #endif
8011   {
8012     private static readonly pb::MessageParser<FieldOptions> _parser = new pb::MessageParser<FieldOptions>(() => new FieldOptions());
8013     private pb::UnknownFieldSet _unknownFields;
8014     internal pb::ExtensionSet<FieldOptions> _extensions;
8015     private pb::ExtensionSet<FieldOptions> _Extensions { get { return _extensions; } }
8016     private int _hasBits0;
8017     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8018     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8019     public static pb::MessageParser<FieldOptions> Parser { get { return _parser; } }
8020 
8021     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8022     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8023     public static pbr::MessageDescriptor Descriptor {
8024       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[12]; }
8025     }
8026 
8027     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8028     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8029     pbr::MessageDescriptor pb::IMessage.Descriptor {
8030       get { return Descriptor; }
8031     }
8032 
8033     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8034     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FieldOptions()8035     public FieldOptions() {
8036       OnConstruction();
8037     }
8038 
OnConstruction()8039     partial void OnConstruction();
8040 
8041     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8042     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FieldOptions(FieldOptions other)8043     public FieldOptions(FieldOptions other) : this() {
8044       _hasBits0 = other._hasBits0;
8045       ctype_ = other.ctype_;
8046       packed_ = other.packed_;
8047       jstype_ = other.jstype_;
8048       lazy_ = other.lazy_;
8049       unverifiedLazy_ = other.unverifiedLazy_;
8050       deprecated_ = other.deprecated_;
8051       weak_ = other.weak_;
8052       debugRedact_ = other.debugRedact_;
8053       retention_ = other.retention_;
8054       targets_ = other.targets_.Clone();
8055       editionDefaults_ = other.editionDefaults_.Clone();
8056       features_ = other.features_ != null ? other.features_.Clone() : null;
8057       featureSupport_ = other.featureSupport_ != null ? other.featureSupport_.Clone() : null;
8058       uninterpretedOption_ = other.uninterpretedOption_.Clone();
8059       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
8060       _extensions = pb::ExtensionSet.Clone(other._extensions);
8061     }
8062 
8063     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8064     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()8065     public FieldOptions Clone() {
8066       return new FieldOptions(this);
8067     }
8068 
8069     /// <summary>Field number for the "ctype" field.</summary>
8070     public const int CtypeFieldNumber = 1;
8071     private readonly static global::Google.Protobuf.Reflection.FieldOptions.Types.CType CtypeDefaultValue = global::Google.Protobuf.Reflection.FieldOptions.Types.CType.String;
8072 
8073     private global::Google.Protobuf.Reflection.FieldOptions.Types.CType ctype_;
8074     /// <summary>
8075     /// NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.
8076     /// The ctype option instructs the C++ code generator to use a different
8077     /// representation of the field than it normally would.  See the specific
8078     /// options below.  This option is only implemented to support use of
8079     /// [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
8080     /// type "bytes" in the open source release.
8081     /// TODO: make ctype actually deprecated.
8082     /// </summary>
8083     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8084     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8085     public global::Google.Protobuf.Reflection.FieldOptions.Types.CType Ctype {
8086       get { if ((_hasBits0 & 1) != 0) { return ctype_; } else { return CtypeDefaultValue; } }
8087       set {
8088         _hasBits0 |= 1;
8089         ctype_ = value;
8090       }
8091     }
8092     /// <summary>Gets whether the "ctype" field is set</summary>
8093     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8094     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8095     public bool HasCtype {
8096       get { return (_hasBits0 & 1) != 0; }
8097     }
8098     /// <summary>Clears the value of the "ctype" field</summary>
8099     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8100     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearCtype()8101     public void ClearCtype() {
8102       _hasBits0 &= ~1;
8103     }
8104 
8105     /// <summary>Field number for the "packed" field.</summary>
8106     public const int PackedFieldNumber = 2;
8107     private readonly static bool PackedDefaultValue = false;
8108 
8109     private bool packed_;
8110     /// <summary>
8111     /// The packed option can be enabled for repeated primitive fields to enable
8112     /// a more efficient representation on the wire. Rather than repeatedly
8113     /// writing the tag and type for each element, the entire array is encoded as
8114     /// a single length-delimited blob. In proto3, only explicit setting it to
8115     /// false will avoid using packed encoding.  This option is prohibited in
8116     /// Editions, but the `repeated_field_encoding` feature can be used to control
8117     /// the behavior.
8118     /// </summary>
8119     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8120     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8121     public bool Packed {
8122       get { if ((_hasBits0 & 2) != 0) { return packed_; } else { return PackedDefaultValue; } }
8123       set {
8124         _hasBits0 |= 2;
8125         packed_ = value;
8126       }
8127     }
8128     /// <summary>Gets whether the "packed" field is set</summary>
8129     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8130     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8131     public bool HasPacked {
8132       get { return (_hasBits0 & 2) != 0; }
8133     }
8134     /// <summary>Clears the value of the "packed" field</summary>
8135     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8136     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearPacked()8137     public void ClearPacked() {
8138       _hasBits0 &= ~2;
8139     }
8140 
8141     /// <summary>Field number for the "jstype" field.</summary>
8142     public const int JstypeFieldNumber = 6;
8143     private readonly static global::Google.Protobuf.Reflection.FieldOptions.Types.JSType JstypeDefaultValue = global::Google.Protobuf.Reflection.FieldOptions.Types.JSType.JsNormal;
8144 
8145     private global::Google.Protobuf.Reflection.FieldOptions.Types.JSType jstype_;
8146     /// <summary>
8147     /// The jstype option determines the JavaScript type used for values of the
8148     /// field.  The option is permitted only for 64 bit integral and fixed types
8149     /// (int64, uint64, sint64, fixed64, sfixed64).  A field with jstype JS_STRING
8150     /// is represented as JavaScript string, which avoids loss of precision that
8151     /// can happen when a large value is converted to a floating point JavaScript.
8152     /// Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
8153     /// use the JavaScript "number" type.  The behavior of the default option
8154     /// JS_NORMAL is implementation dependent.
8155     ///
8156     /// This option is an enum to permit additional types to be added, e.g.
8157     /// goog.math.Integer.
8158     /// </summary>
8159     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8160     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8161     public global::Google.Protobuf.Reflection.FieldOptions.Types.JSType Jstype {
8162       get { if ((_hasBits0 & 16) != 0) { return jstype_; } else { return JstypeDefaultValue; } }
8163       set {
8164         _hasBits0 |= 16;
8165         jstype_ = value;
8166       }
8167     }
8168     /// <summary>Gets whether the "jstype" field is set</summary>
8169     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8170     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8171     public bool HasJstype {
8172       get { return (_hasBits0 & 16) != 0; }
8173     }
8174     /// <summary>Clears the value of the "jstype" field</summary>
8175     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8176     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearJstype()8177     public void ClearJstype() {
8178       _hasBits0 &= ~16;
8179     }
8180 
8181     /// <summary>Field number for the "lazy" field.</summary>
8182     public const int LazyFieldNumber = 5;
8183     private readonly static bool LazyDefaultValue = false;
8184 
8185     private bool lazy_;
8186     /// <summary>
8187     /// Should this field be parsed lazily?  Lazy applies only to message-type
8188     /// fields.  It means that when the outer message is initially parsed, the
8189     /// inner message's contents will not be parsed but instead stored in encoded
8190     /// form.  The inner message will actually be parsed when it is first accessed.
8191     ///
8192     /// This is only a hint.  Implementations are free to choose whether to use
8193     /// eager or lazy parsing regardless of the value of this option.  However,
8194     /// setting this option true suggests that the protocol author believes that
8195     /// using lazy parsing on this field is worth the additional bookkeeping
8196     /// overhead typically needed to implement it.
8197     ///
8198     /// This option does not affect the public interface of any generated code;
8199     /// all method signatures remain the same.  Furthermore, thread-safety of the
8200     /// interface is not affected by this option; const methods remain safe to
8201     /// call from multiple threads concurrently, while non-const methods continue
8202     /// to require exclusive access.
8203     ///
8204     /// Note that lazy message fields are still eagerly verified to check
8205     /// ill-formed wireformat or missing required fields. Calling IsInitialized()
8206     /// on the outer message would fail if the inner message has missing required
8207     /// fields. Failed verification would result in parsing failure (except when
8208     /// uninitialized messages are acceptable).
8209     /// </summary>
8210     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8211     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8212     public bool Lazy {
8213       get { if ((_hasBits0 & 8) != 0) { return lazy_; } else { return LazyDefaultValue; } }
8214       set {
8215         _hasBits0 |= 8;
8216         lazy_ = value;
8217       }
8218     }
8219     /// <summary>Gets whether the "lazy" field is set</summary>
8220     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8221     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8222     public bool HasLazy {
8223       get { return (_hasBits0 & 8) != 0; }
8224     }
8225     /// <summary>Clears the value of the "lazy" field</summary>
8226     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8227     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearLazy()8228     public void ClearLazy() {
8229       _hasBits0 &= ~8;
8230     }
8231 
8232     /// <summary>Field number for the "unverified_lazy" field.</summary>
8233     public const int UnverifiedLazyFieldNumber = 15;
8234     private readonly static bool UnverifiedLazyDefaultValue = false;
8235 
8236     private bool unverifiedLazy_;
8237     /// <summary>
8238     /// unverified_lazy does no correctness checks on the byte stream. This should
8239     /// only be used where lazy with verification is prohibitive for performance
8240     /// reasons.
8241     /// </summary>
8242     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8243     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8244     public bool UnverifiedLazy {
8245       get { if ((_hasBits0 & 64) != 0) { return unverifiedLazy_; } else { return UnverifiedLazyDefaultValue; } }
8246       set {
8247         _hasBits0 |= 64;
8248         unverifiedLazy_ = value;
8249       }
8250     }
8251     /// <summary>Gets whether the "unverified_lazy" field is set</summary>
8252     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8253     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8254     public bool HasUnverifiedLazy {
8255       get { return (_hasBits0 & 64) != 0; }
8256     }
8257     /// <summary>Clears the value of the "unverified_lazy" field</summary>
8258     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8259     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearUnverifiedLazy()8260     public void ClearUnverifiedLazy() {
8261       _hasBits0 &= ~64;
8262     }
8263 
8264     /// <summary>Field number for the "deprecated" field.</summary>
8265     public const int DeprecatedFieldNumber = 3;
8266     private readonly static bool DeprecatedDefaultValue = false;
8267 
8268     private bool deprecated_;
8269     /// <summary>
8270     /// Is this field deprecated?
8271     /// Depending on the target platform, this can emit Deprecated annotations
8272     /// for accessors, or it will be completely ignored; in the very least, this
8273     /// is a formalization for deprecating fields.
8274     /// </summary>
8275     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8276     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8277     public bool Deprecated {
8278       get { if ((_hasBits0 & 4) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } }
8279       set {
8280         _hasBits0 |= 4;
8281         deprecated_ = value;
8282       }
8283     }
8284     /// <summary>Gets whether the "deprecated" field is set</summary>
8285     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8286     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8287     public bool HasDeprecated {
8288       get { return (_hasBits0 & 4) != 0; }
8289     }
8290     /// <summary>Clears the value of the "deprecated" field</summary>
8291     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8292     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDeprecated()8293     public void ClearDeprecated() {
8294       _hasBits0 &= ~4;
8295     }
8296 
8297     /// <summary>Field number for the "weak" field.</summary>
8298     public const int WeakFieldNumber = 10;
8299     private readonly static bool WeakDefaultValue = false;
8300 
8301     private bool weak_;
8302     /// <summary>
8303     /// For Google-internal migration only. Do not use.
8304     /// </summary>
8305     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8306     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8307     public bool Weak {
8308       get { if ((_hasBits0 & 32) != 0) { return weak_; } else { return WeakDefaultValue; } }
8309       set {
8310         _hasBits0 |= 32;
8311         weak_ = value;
8312       }
8313     }
8314     /// <summary>Gets whether the "weak" field is set</summary>
8315     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8316     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8317     public bool HasWeak {
8318       get { return (_hasBits0 & 32) != 0; }
8319     }
8320     /// <summary>Clears the value of the "weak" field</summary>
8321     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8322     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearWeak()8323     public void ClearWeak() {
8324       _hasBits0 &= ~32;
8325     }
8326 
8327     /// <summary>Field number for the "debug_redact" field.</summary>
8328     public const int DebugRedactFieldNumber = 16;
8329     private readonly static bool DebugRedactDefaultValue = false;
8330 
8331     private bool debugRedact_;
8332     /// <summary>
8333     /// Indicate that the field value should not be printed out when using debug
8334     /// formats, e.g. when the field contains sensitive credentials.
8335     /// </summary>
8336     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8337     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8338     public bool DebugRedact {
8339       get { if ((_hasBits0 & 128) != 0) { return debugRedact_; } else { return DebugRedactDefaultValue; } }
8340       set {
8341         _hasBits0 |= 128;
8342         debugRedact_ = value;
8343       }
8344     }
8345     /// <summary>Gets whether the "debug_redact" field is set</summary>
8346     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8347     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8348     public bool HasDebugRedact {
8349       get { return (_hasBits0 & 128) != 0; }
8350     }
8351     /// <summary>Clears the value of the "debug_redact" field</summary>
8352     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8353     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDebugRedact()8354     public void ClearDebugRedact() {
8355       _hasBits0 &= ~128;
8356     }
8357 
8358     /// <summary>Field number for the "retention" field.</summary>
8359     public const int RetentionFieldNumber = 17;
8360     private readonly static global::Google.Protobuf.Reflection.FieldOptions.Types.OptionRetention RetentionDefaultValue = global::Google.Protobuf.Reflection.FieldOptions.Types.OptionRetention.RetentionUnknown;
8361 
8362     private global::Google.Protobuf.Reflection.FieldOptions.Types.OptionRetention retention_;
8363     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8364     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8365     public global::Google.Protobuf.Reflection.FieldOptions.Types.OptionRetention Retention {
8366       get { if ((_hasBits0 & 256) != 0) { return retention_; } else { return RetentionDefaultValue; } }
8367       set {
8368         _hasBits0 |= 256;
8369         retention_ = value;
8370       }
8371     }
8372     /// <summary>Gets whether the "retention" field is set</summary>
8373     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8374     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8375     public bool HasRetention {
8376       get { return (_hasBits0 & 256) != 0; }
8377     }
8378     /// <summary>Clears the value of the "retention" field</summary>
8379     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8380     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRetention()8381     public void ClearRetention() {
8382       _hasBits0 &= ~256;
8383     }
8384 
8385     /// <summary>Field number for the "targets" field.</summary>
8386     public const int TargetsFieldNumber = 19;
8387     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldOptions.Types.OptionTargetType> _repeated_targets_codec
8388         = pb::FieldCodec.ForEnum(152, x => (int) x, x => (global::Google.Protobuf.Reflection.FieldOptions.Types.OptionTargetType) x);
8389     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldOptions.Types.OptionTargetType> targets_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldOptions.Types.OptionTargetType>();
8390     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8391     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8392     public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldOptions.Types.OptionTargetType> Targets {
8393       get { return targets_; }
8394     }
8395 
8396     /// <summary>Field number for the "edition_defaults" field.</summary>
8397     public const int EditionDefaultsFieldNumber = 20;
8398     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldOptions.Types.EditionDefault> _repeated_editionDefaults_codec
8399         = pb::FieldCodec.ForMessage(162, global::Google.Protobuf.Reflection.FieldOptions.Types.EditionDefault.Parser);
8400     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldOptions.Types.EditionDefault> editionDefaults_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldOptions.Types.EditionDefault>();
8401     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8402     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8403     public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldOptions.Types.EditionDefault> EditionDefaults {
8404       get { return editionDefaults_; }
8405     }
8406 
8407     /// <summary>Field number for the "features" field.</summary>
8408     public const int FeaturesFieldNumber = 21;
8409     private global::Google.Protobuf.Reflection.FeatureSet features_;
8410     /// <summary>
8411     /// Any features defined in the specific edition.
8412     /// </summary>
8413     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8414     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8415     public global::Google.Protobuf.Reflection.FeatureSet Features {
8416       get { return features_; }
8417       set {
8418         features_ = value;
8419       }
8420     }
8421 
8422     /// <summary>Field number for the "feature_support" field.</summary>
8423     public const int FeatureSupportFieldNumber = 22;
8424     private global::Google.Protobuf.Reflection.FieldOptions.Types.FeatureSupport featureSupport_;
8425     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8426     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8427     public global::Google.Protobuf.Reflection.FieldOptions.Types.FeatureSupport FeatureSupport {
8428       get { return featureSupport_; }
8429       set {
8430         featureSupport_ = value;
8431       }
8432     }
8433 
8434     /// <summary>Field number for the "uninterpreted_option" field.</summary>
8435     public const int UninterpretedOptionFieldNumber = 999;
8436     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
8437         = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
8438     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
8439     /// <summary>
8440     /// The parser stores options it doesn't recognize here. See above.
8441     /// </summary>
8442     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8443     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8444     public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
8445       get { return uninterpretedOption_; }
8446     }
8447 
8448     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8449     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)8450     public override bool Equals(object other) {
8451       return Equals(other as FieldOptions);
8452     }
8453 
8454     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8455     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(FieldOptions other)8456     public bool Equals(FieldOptions other) {
8457       if (ReferenceEquals(other, null)) {
8458         return false;
8459       }
8460       if (ReferenceEquals(other, this)) {
8461         return true;
8462       }
8463       if (Ctype != other.Ctype) return false;
8464       if (Packed != other.Packed) return false;
8465       if (Jstype != other.Jstype) return false;
8466       if (Lazy != other.Lazy) return false;
8467       if (UnverifiedLazy != other.UnverifiedLazy) return false;
8468       if (Deprecated != other.Deprecated) return false;
8469       if (Weak != other.Weak) return false;
8470       if (DebugRedact != other.DebugRedact) return false;
8471       if (Retention != other.Retention) return false;
8472       if(!targets_.Equals(other.targets_)) return false;
8473       if(!editionDefaults_.Equals(other.editionDefaults_)) return false;
8474       if (!object.Equals(Features, other.Features)) return false;
8475       if (!object.Equals(FeatureSupport, other.FeatureSupport)) return false;
8476       if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
8477       if (!Equals(_extensions, other._extensions)) {
8478         return false;
8479       }
8480       return Equals(_unknownFields, other._unknownFields);
8481     }
8482 
8483     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8484     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()8485     public override int GetHashCode() {
8486       int hash = 1;
8487       if (HasCtype) hash ^= Ctype.GetHashCode();
8488       if (HasPacked) hash ^= Packed.GetHashCode();
8489       if (HasJstype) hash ^= Jstype.GetHashCode();
8490       if (HasLazy) hash ^= Lazy.GetHashCode();
8491       if (HasUnverifiedLazy) hash ^= UnverifiedLazy.GetHashCode();
8492       if (HasDeprecated) hash ^= Deprecated.GetHashCode();
8493       if (HasWeak) hash ^= Weak.GetHashCode();
8494       if (HasDebugRedact) hash ^= DebugRedact.GetHashCode();
8495       if (HasRetention) hash ^= Retention.GetHashCode();
8496       hash ^= targets_.GetHashCode();
8497       hash ^= editionDefaults_.GetHashCode();
8498       if (features_ != null) hash ^= Features.GetHashCode();
8499       if (featureSupport_ != null) hash ^= FeatureSupport.GetHashCode();
8500       hash ^= uninterpretedOption_.GetHashCode();
8501       if (_extensions != null) {
8502         hash ^= _extensions.GetHashCode();
8503       }
8504       if (_unknownFields != null) {
8505         hash ^= _unknownFields.GetHashCode();
8506       }
8507       return hash;
8508     }
8509 
8510     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8511     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()8512     public override string ToString() {
8513       return pb::JsonFormatter.ToDiagnosticString(this);
8514     }
8515 
8516     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8517     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)8518     public void WriteTo(pb::CodedOutputStream output) {
8519     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8520       output.WriteRawMessage(this);
8521     #else
8522       if (HasCtype) {
8523         output.WriteRawTag(8);
8524         output.WriteEnum((int) Ctype);
8525       }
8526       if (HasPacked) {
8527         output.WriteRawTag(16);
8528         output.WriteBool(Packed);
8529       }
8530       if (HasDeprecated) {
8531         output.WriteRawTag(24);
8532         output.WriteBool(Deprecated);
8533       }
8534       if (HasLazy) {
8535         output.WriteRawTag(40);
8536         output.WriteBool(Lazy);
8537       }
8538       if (HasJstype) {
8539         output.WriteRawTag(48);
8540         output.WriteEnum((int) Jstype);
8541       }
8542       if (HasWeak) {
8543         output.WriteRawTag(80);
8544         output.WriteBool(Weak);
8545       }
8546       if (HasUnverifiedLazy) {
8547         output.WriteRawTag(120);
8548         output.WriteBool(UnverifiedLazy);
8549       }
8550       if (HasDebugRedact) {
8551         output.WriteRawTag(128, 1);
8552         output.WriteBool(DebugRedact);
8553       }
8554       if (HasRetention) {
8555         output.WriteRawTag(136, 1);
8556         output.WriteEnum((int) Retention);
8557       }
8558       targets_.WriteTo(output, _repeated_targets_codec);
8559       editionDefaults_.WriteTo(output, _repeated_editionDefaults_codec);
8560       if (features_ != null) {
8561         output.WriteRawTag(170, 1);
8562         output.WriteMessage(Features);
8563       }
8564       if (featureSupport_ != null) {
8565         output.WriteRawTag(178, 1);
8566         output.WriteMessage(FeatureSupport);
8567       }
8568       uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
8569       if (_extensions != null) {
8570         _extensions.WriteTo(output);
8571       }
8572       if (_unknownFields != null) {
8573         _unknownFields.WriteTo(output);
8574       }
8575     #endif
8576     }
8577 
8578     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8579     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8580     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)8581     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
8582       if (HasCtype) {
8583         output.WriteRawTag(8);
8584         output.WriteEnum((int) Ctype);
8585       }
8586       if (HasPacked) {
8587         output.WriteRawTag(16);
8588         output.WriteBool(Packed);
8589       }
8590       if (HasDeprecated) {
8591         output.WriteRawTag(24);
8592         output.WriteBool(Deprecated);
8593       }
8594       if (HasLazy) {
8595         output.WriteRawTag(40);
8596         output.WriteBool(Lazy);
8597       }
8598       if (HasJstype) {
8599         output.WriteRawTag(48);
8600         output.WriteEnum((int) Jstype);
8601       }
8602       if (HasWeak) {
8603         output.WriteRawTag(80);
8604         output.WriteBool(Weak);
8605       }
8606       if (HasUnverifiedLazy) {
8607         output.WriteRawTag(120);
8608         output.WriteBool(UnverifiedLazy);
8609       }
8610       if (HasDebugRedact) {
8611         output.WriteRawTag(128, 1);
8612         output.WriteBool(DebugRedact);
8613       }
8614       if (HasRetention) {
8615         output.WriteRawTag(136, 1);
8616         output.WriteEnum((int) Retention);
8617       }
8618       targets_.WriteTo(ref output, _repeated_targets_codec);
8619       editionDefaults_.WriteTo(ref output, _repeated_editionDefaults_codec);
8620       if (features_ != null) {
8621         output.WriteRawTag(170, 1);
8622         output.WriteMessage(Features);
8623       }
8624       if (featureSupport_ != null) {
8625         output.WriteRawTag(178, 1);
8626         output.WriteMessage(FeatureSupport);
8627       }
8628       uninterpretedOption_.WriteTo(ref output, _repeated_uninterpretedOption_codec);
8629       if (_extensions != null) {
8630         _extensions.WriteTo(ref output);
8631       }
8632       if (_unknownFields != null) {
8633         _unknownFields.WriteTo(ref output);
8634       }
8635     }
8636     #endif
8637 
8638     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8639     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()8640     public int CalculateSize() {
8641       int size = 0;
8642       if (HasCtype) {
8643         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Ctype);
8644       }
8645       if (HasPacked) {
8646         size += 1 + 1;
8647       }
8648       if (HasJstype) {
8649         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Jstype);
8650       }
8651       if (HasLazy) {
8652         size += 1 + 1;
8653       }
8654       if (HasUnverifiedLazy) {
8655         size += 1 + 1;
8656       }
8657       if (HasDeprecated) {
8658         size += 1 + 1;
8659       }
8660       if (HasWeak) {
8661         size += 1 + 1;
8662       }
8663       if (HasDebugRedact) {
8664         size += 2 + 1;
8665       }
8666       if (HasRetention) {
8667         size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) Retention);
8668       }
8669       size += targets_.CalculateSize(_repeated_targets_codec);
8670       size += editionDefaults_.CalculateSize(_repeated_editionDefaults_codec);
8671       if (features_ != null) {
8672         size += 2 + pb::CodedOutputStream.ComputeMessageSize(Features);
8673       }
8674       if (featureSupport_ != null) {
8675         size += 2 + pb::CodedOutputStream.ComputeMessageSize(FeatureSupport);
8676       }
8677       size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
8678       if (_extensions != null) {
8679         size += _extensions.CalculateSize();
8680       }
8681       if (_unknownFields != null) {
8682         size += _unknownFields.CalculateSize();
8683       }
8684       return size;
8685     }
8686 
8687     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8688     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(FieldOptions other)8689     public void MergeFrom(FieldOptions other) {
8690       if (other == null) {
8691         return;
8692       }
8693       if (other.HasCtype) {
8694         Ctype = other.Ctype;
8695       }
8696       if (other.HasPacked) {
8697         Packed = other.Packed;
8698       }
8699       if (other.HasJstype) {
8700         Jstype = other.Jstype;
8701       }
8702       if (other.HasLazy) {
8703         Lazy = other.Lazy;
8704       }
8705       if (other.HasUnverifiedLazy) {
8706         UnverifiedLazy = other.UnverifiedLazy;
8707       }
8708       if (other.HasDeprecated) {
8709         Deprecated = other.Deprecated;
8710       }
8711       if (other.HasWeak) {
8712         Weak = other.Weak;
8713       }
8714       if (other.HasDebugRedact) {
8715         DebugRedact = other.DebugRedact;
8716       }
8717       if (other.HasRetention) {
8718         Retention = other.Retention;
8719       }
8720       targets_.Add(other.targets_);
8721       editionDefaults_.Add(other.editionDefaults_);
8722       if (other.features_ != null) {
8723         if (features_ == null) {
8724           Features = new global::Google.Protobuf.Reflection.FeatureSet();
8725         }
8726         Features.MergeFrom(other.Features);
8727       }
8728       if (other.featureSupport_ != null) {
8729         if (featureSupport_ == null) {
8730           FeatureSupport = new global::Google.Protobuf.Reflection.FieldOptions.Types.FeatureSupport();
8731         }
8732         FeatureSupport.MergeFrom(other.FeatureSupport);
8733       }
8734       uninterpretedOption_.Add(other.uninterpretedOption_);
8735       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
8736       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
8737     }
8738 
8739     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8740     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)8741     public void MergeFrom(pb::CodedInputStream input) {
8742     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8743       input.ReadRawMessage(this);
8744     #else
8745       uint tag;
8746       while ((tag = input.ReadTag()) != 0) {
8747       if ((tag & 7) == 4) {
8748         // Abort on any end group tag.
8749         return;
8750       }
8751       switch(tag) {
8752           default:
8753             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
8754               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
8755             }
8756             break;
8757           case 8: {
8758             Ctype = (global::Google.Protobuf.Reflection.FieldOptions.Types.CType) input.ReadEnum();
8759             break;
8760           }
8761           case 16: {
8762             Packed = input.ReadBool();
8763             break;
8764           }
8765           case 24: {
8766             Deprecated = input.ReadBool();
8767             break;
8768           }
8769           case 40: {
8770             Lazy = input.ReadBool();
8771             break;
8772           }
8773           case 48: {
8774             Jstype = (global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) input.ReadEnum();
8775             break;
8776           }
8777           case 80: {
8778             Weak = input.ReadBool();
8779             break;
8780           }
8781           case 120: {
8782             UnverifiedLazy = input.ReadBool();
8783             break;
8784           }
8785           case 128: {
8786             DebugRedact = input.ReadBool();
8787             break;
8788           }
8789           case 136: {
8790             Retention = (global::Google.Protobuf.Reflection.FieldOptions.Types.OptionRetention) input.ReadEnum();
8791             break;
8792           }
8793           case 154:
8794           case 152: {
8795             targets_.AddEntriesFrom(input, _repeated_targets_codec);
8796             break;
8797           }
8798           case 162: {
8799             editionDefaults_.AddEntriesFrom(input, _repeated_editionDefaults_codec);
8800             break;
8801           }
8802           case 170: {
8803             if (features_ == null) {
8804               Features = new global::Google.Protobuf.Reflection.FeatureSet();
8805             }
8806             input.ReadMessage(Features);
8807             break;
8808           }
8809           case 178: {
8810             if (featureSupport_ == null) {
8811               FeatureSupport = new global::Google.Protobuf.Reflection.FieldOptions.Types.FeatureSupport();
8812             }
8813             input.ReadMessage(FeatureSupport);
8814             break;
8815           }
8816           case 7994: {
8817             uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
8818             break;
8819           }
8820         }
8821       }
8822     #endif
8823     }
8824 
8825     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8826     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8827     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)8828     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
8829       uint tag;
8830       while ((tag = input.ReadTag()) != 0) {
8831       if ((tag & 7) == 4) {
8832         // Abort on any end group tag.
8833         return;
8834       }
8835       switch(tag) {
8836           default:
8837             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
8838               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
8839             }
8840             break;
8841           case 8: {
8842             Ctype = (global::Google.Protobuf.Reflection.FieldOptions.Types.CType) input.ReadEnum();
8843             break;
8844           }
8845           case 16: {
8846             Packed = input.ReadBool();
8847             break;
8848           }
8849           case 24: {
8850             Deprecated = input.ReadBool();
8851             break;
8852           }
8853           case 40: {
8854             Lazy = input.ReadBool();
8855             break;
8856           }
8857           case 48: {
8858             Jstype = (global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) input.ReadEnum();
8859             break;
8860           }
8861           case 80: {
8862             Weak = input.ReadBool();
8863             break;
8864           }
8865           case 120: {
8866             UnverifiedLazy = input.ReadBool();
8867             break;
8868           }
8869           case 128: {
8870             DebugRedact = input.ReadBool();
8871             break;
8872           }
8873           case 136: {
8874             Retention = (global::Google.Protobuf.Reflection.FieldOptions.Types.OptionRetention) input.ReadEnum();
8875             break;
8876           }
8877           case 154:
8878           case 152: {
8879             targets_.AddEntriesFrom(ref input, _repeated_targets_codec);
8880             break;
8881           }
8882           case 162: {
8883             editionDefaults_.AddEntriesFrom(ref input, _repeated_editionDefaults_codec);
8884             break;
8885           }
8886           case 170: {
8887             if (features_ == null) {
8888               Features = new global::Google.Protobuf.Reflection.FeatureSet();
8889             }
8890             input.ReadMessage(Features);
8891             break;
8892           }
8893           case 178: {
8894             if (featureSupport_ == null) {
8895               FeatureSupport = new global::Google.Protobuf.Reflection.FieldOptions.Types.FeatureSupport();
8896             }
8897             input.ReadMessage(FeatureSupport);
8898             break;
8899           }
8900           case 7994: {
8901             uninterpretedOption_.AddEntriesFrom(ref input, _repeated_uninterpretedOption_codec);
8902             break;
8903           }
8904         }
8905       }
8906     }
8907     #endif
8908 
GetExtension(pb::Extension<FieldOptions, TValue> extension)8909     public TValue GetExtension<TValue>(pb::Extension<FieldOptions, TValue> extension) {
8910       return pb::ExtensionSet.Get(ref _extensions, extension);
8911     }
GetExtension(pb::RepeatedExtension<FieldOptions, TValue> extension)8912     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<FieldOptions, TValue> extension) {
8913       return pb::ExtensionSet.Get(ref _extensions, extension);
8914     }
GetOrInitializeExtension(pb::RepeatedExtension<FieldOptions, TValue> extension)8915     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<FieldOptions, TValue> extension) {
8916       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
8917     }
SetExtension(pb::Extension<FieldOptions, TValue> extension, TValue value)8918     public void SetExtension<TValue>(pb::Extension<FieldOptions, TValue> extension, TValue value) {
8919       pb::ExtensionSet.Set(ref _extensions, extension, value);
8920     }
HasExtension(pb::Extension<FieldOptions, TValue> extension)8921     public bool HasExtension<TValue>(pb::Extension<FieldOptions, TValue> extension) {
8922       return pb::ExtensionSet.Has(ref _extensions, extension);
8923     }
ClearExtension(pb::Extension<FieldOptions, TValue> extension)8924     public void ClearExtension<TValue>(pb::Extension<FieldOptions, TValue> extension) {
8925       pb::ExtensionSet.Clear(ref _extensions, extension);
8926     }
ClearExtension(pb::RepeatedExtension<FieldOptions, TValue> extension)8927     public void ClearExtension<TValue>(pb::RepeatedExtension<FieldOptions, TValue> extension) {
8928       pb::ExtensionSet.Clear(ref _extensions, extension);
8929     }
8930 
8931     #region Nested types
8932     /// <summary>Container for nested types declared in the FieldOptions message type.</summary>
8933     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
8934     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
8935     public static partial class Types {
8936       public enum CType {
8937         /// <summary>
8938         /// Default mode.
8939         /// </summary>
8940         [pbr::OriginalName("STRING")] String = 0,
8941         /// <summary>
8942         /// The option [ctype=CORD] may be applied to a non-repeated field of type
8943         /// "bytes". It indicates that in C++, the data should be stored in a Cord
8944         /// instead of a string.  For very large strings, this may reduce memory
8945         /// fragmentation. It may also allow better performance when parsing from a
8946         /// Cord, or when parsing with aliasing enabled, as the parsed Cord may then
8947         /// alias the original buffer.
8948         /// </summary>
8949         [pbr::OriginalName("CORD")] Cord = 1,
8950         [pbr::OriginalName("STRING_PIECE")] StringPiece = 2,
8951       }
8952 
8953       public enum JSType {
8954         /// <summary>
8955         /// Use the default type.
8956         /// </summary>
8957         [pbr::OriginalName("JS_NORMAL")] JsNormal = 0,
8958         /// <summary>
8959         /// Use JavaScript strings.
8960         /// </summary>
8961         [pbr::OriginalName("JS_STRING")] JsString = 1,
8962         /// <summary>
8963         /// Use JavaScript numbers.
8964         /// </summary>
8965         [pbr::OriginalName("JS_NUMBER")] JsNumber = 2,
8966       }
8967 
8968       /// <summary>
8969       /// If set to RETENTION_SOURCE, the option will be omitted from the binary.
8970       /// </summary>
8971       public enum OptionRetention {
8972         [pbr::OriginalName("RETENTION_UNKNOWN")] RetentionUnknown = 0,
8973         [pbr::OriginalName("RETENTION_RUNTIME")] RetentionRuntime = 1,
8974         [pbr::OriginalName("RETENTION_SOURCE")] RetentionSource = 2,
8975       }
8976 
8977       /// <summary>
8978       /// This indicates the types of entities that the field may apply to when used
8979       /// as an option. If it is unset, then the field may be freely used as an
8980       /// option on any kind of entity.
8981       /// </summary>
8982       public enum OptionTargetType {
8983         [pbr::OriginalName("TARGET_TYPE_UNKNOWN")] TargetTypeUnknown = 0,
8984         [pbr::OriginalName("TARGET_TYPE_FILE")] TargetTypeFile = 1,
8985         [pbr::OriginalName("TARGET_TYPE_EXTENSION_RANGE")] TargetTypeExtensionRange = 2,
8986         [pbr::OriginalName("TARGET_TYPE_MESSAGE")] TargetTypeMessage = 3,
8987         [pbr::OriginalName("TARGET_TYPE_FIELD")] TargetTypeField = 4,
8988         [pbr::OriginalName("TARGET_TYPE_ONEOF")] TargetTypeOneof = 5,
8989         [pbr::OriginalName("TARGET_TYPE_ENUM")] TargetTypeEnum = 6,
8990         [pbr::OriginalName("TARGET_TYPE_ENUM_ENTRY")] TargetTypeEnumEntry = 7,
8991         [pbr::OriginalName("TARGET_TYPE_SERVICE")] TargetTypeService = 8,
8992         [pbr::OriginalName("TARGET_TYPE_METHOD")] TargetTypeMethod = 9,
8993       }
8994 
8995       [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
8996       public sealed partial class EditionDefault : pb::IMessage<EditionDefault>
8997       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
8998           , pb::IBufferMessage
8999       #endif
9000       {
9001         private static readonly pb::MessageParser<EditionDefault> _parser = new pb::MessageParser<EditionDefault>(() => new EditionDefault());
9002         private pb::UnknownFieldSet _unknownFields;
9003         private int _hasBits0;
9004         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9005         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9006         public static pb::MessageParser<EditionDefault> Parser { get { return _parser; } }
9007 
9008         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9009         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9010         public static pbr::MessageDescriptor Descriptor {
9011           get { return global::Google.Protobuf.Reflection.FieldOptions.Descriptor.NestedTypes[0]; }
9012         }
9013 
9014         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9015         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9016         pbr::MessageDescriptor pb::IMessage.Descriptor {
9017           get { return Descriptor; }
9018         }
9019 
9020         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9021         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
EditionDefault()9022         public EditionDefault() {
9023           OnConstruction();
9024         }
9025 
OnConstruction()9026         partial void OnConstruction();
9027 
9028         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9029         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
EditionDefault(EditionDefault other)9030         public EditionDefault(EditionDefault other) : this() {
9031           _hasBits0 = other._hasBits0;
9032           edition_ = other.edition_;
9033           value_ = other.value_;
9034           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
9035         }
9036 
9037         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9038         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()9039         public EditionDefault Clone() {
9040           return new EditionDefault(this);
9041         }
9042 
9043         /// <summary>Field number for the "edition" field.</summary>
9044         public const int EditionFieldNumber = 3;
9045         private readonly static global::Google.Protobuf.Reflection.Edition EditionDefaultValue = global::Google.Protobuf.Reflection.Edition.Unknown;
9046 
9047         private global::Google.Protobuf.Reflection.Edition edition_;
9048         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9049         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9050         public global::Google.Protobuf.Reflection.Edition Edition {
9051           get { if ((_hasBits0 & 1) != 0) { return edition_; } else { return EditionDefaultValue; } }
9052           set {
9053             _hasBits0 |= 1;
9054             edition_ = value;
9055           }
9056         }
9057         /// <summary>Gets whether the "edition" field is set</summary>
9058         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9059         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9060         public bool HasEdition {
9061           get { return (_hasBits0 & 1) != 0; }
9062         }
9063         /// <summary>Clears the value of the "edition" field</summary>
9064         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9065         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearEdition()9066         public void ClearEdition() {
9067           _hasBits0 &= ~1;
9068         }
9069 
9070         /// <summary>Field number for the "value" field.</summary>
9071         public const int ValueFieldNumber = 2;
9072         private readonly static string ValueDefaultValue = "";
9073 
9074         private string value_;
9075         /// <summary>
9076         /// Textproto value.
9077         /// </summary>
9078         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9079         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9080         public string Value {
9081           get { return value_ ?? ValueDefaultValue; }
9082           set {
9083             value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
9084           }
9085         }
9086         /// <summary>Gets whether the "value" field is set</summary>
9087         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9088         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9089         public bool HasValue {
9090           get { return value_ != null; }
9091         }
9092         /// <summary>Clears the value of the "value" field</summary>
9093         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9094         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearValue()9095         public void ClearValue() {
9096           value_ = null;
9097         }
9098 
9099         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9100         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)9101         public override bool Equals(object other) {
9102           return Equals(other as EditionDefault);
9103         }
9104 
9105         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9106         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(EditionDefault other)9107         public bool Equals(EditionDefault other) {
9108           if (ReferenceEquals(other, null)) {
9109             return false;
9110           }
9111           if (ReferenceEquals(other, this)) {
9112             return true;
9113           }
9114           if (Edition != other.Edition) return false;
9115           if (Value != other.Value) return false;
9116           return Equals(_unknownFields, other._unknownFields);
9117         }
9118 
9119         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9120         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()9121         public override int GetHashCode() {
9122           int hash = 1;
9123           if (HasEdition) hash ^= Edition.GetHashCode();
9124           if (HasValue) hash ^= Value.GetHashCode();
9125           if (_unknownFields != null) {
9126             hash ^= _unknownFields.GetHashCode();
9127           }
9128           return hash;
9129         }
9130 
9131         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9132         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()9133         public override string ToString() {
9134           return pb::JsonFormatter.ToDiagnosticString(this);
9135         }
9136 
9137         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9138         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)9139         public void WriteTo(pb::CodedOutputStream output) {
9140         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9141           output.WriteRawMessage(this);
9142         #else
9143           if (HasValue) {
9144             output.WriteRawTag(18);
9145             output.WriteString(Value);
9146           }
9147           if (HasEdition) {
9148             output.WriteRawTag(24);
9149             output.WriteEnum((int) Edition);
9150           }
9151           if (_unknownFields != null) {
9152             _unknownFields.WriteTo(output);
9153           }
9154         #endif
9155         }
9156 
9157         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9158         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9159         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)9160         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
9161           if (HasValue) {
9162             output.WriteRawTag(18);
9163             output.WriteString(Value);
9164           }
9165           if (HasEdition) {
9166             output.WriteRawTag(24);
9167             output.WriteEnum((int) Edition);
9168           }
9169           if (_unknownFields != null) {
9170             _unknownFields.WriteTo(ref output);
9171           }
9172         }
9173         #endif
9174 
9175         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9176         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()9177         public int CalculateSize() {
9178           int size = 0;
9179           if (HasEdition) {
9180             size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Edition);
9181           }
9182           if (HasValue) {
9183             size += 1 + pb::CodedOutputStream.ComputeStringSize(Value);
9184           }
9185           if (_unknownFields != null) {
9186             size += _unknownFields.CalculateSize();
9187           }
9188           return size;
9189         }
9190 
9191         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9192         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(EditionDefault other)9193         public void MergeFrom(EditionDefault other) {
9194           if (other == null) {
9195             return;
9196           }
9197           if (other.HasEdition) {
9198             Edition = other.Edition;
9199           }
9200           if (other.HasValue) {
9201             Value = other.Value;
9202           }
9203           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
9204         }
9205 
9206         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9207         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)9208         public void MergeFrom(pb::CodedInputStream input) {
9209         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9210           input.ReadRawMessage(this);
9211         #else
9212           uint tag;
9213           while ((tag = input.ReadTag()) != 0) {
9214           if ((tag & 7) == 4) {
9215             // Abort on any end group tag.
9216             return;
9217           }
9218           switch(tag) {
9219               default:
9220                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
9221                 break;
9222               case 18: {
9223                 Value = input.ReadString();
9224                 break;
9225               }
9226               case 24: {
9227                 Edition = (global::Google.Protobuf.Reflection.Edition) input.ReadEnum();
9228                 break;
9229               }
9230             }
9231           }
9232         #endif
9233         }
9234 
9235         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9236         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9237         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)9238         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
9239           uint tag;
9240           while ((tag = input.ReadTag()) != 0) {
9241           if ((tag & 7) == 4) {
9242             // Abort on any end group tag.
9243             return;
9244           }
9245           switch(tag) {
9246               default:
9247                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
9248                 break;
9249               case 18: {
9250                 Value = input.ReadString();
9251                 break;
9252               }
9253               case 24: {
9254                 Edition = (global::Google.Protobuf.Reflection.Edition) input.ReadEnum();
9255                 break;
9256               }
9257             }
9258           }
9259         }
9260         #endif
9261 
9262       }
9263 
9264       /// <summary>
9265       /// Information about the support window of a feature.
9266       /// </summary>
9267       [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
9268       public sealed partial class FeatureSupport : pb::IMessage<FeatureSupport>
9269       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9270           , pb::IBufferMessage
9271       #endif
9272       {
9273         private static readonly pb::MessageParser<FeatureSupport> _parser = new pb::MessageParser<FeatureSupport>(() => new FeatureSupport());
9274         private pb::UnknownFieldSet _unknownFields;
9275         private int _hasBits0;
9276         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9277         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9278         public static pb::MessageParser<FeatureSupport> Parser { get { return _parser; } }
9279 
9280         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9281         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9282         public static pbr::MessageDescriptor Descriptor {
9283           get { return global::Google.Protobuf.Reflection.FieldOptions.Descriptor.NestedTypes[1]; }
9284         }
9285 
9286         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9287         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9288         pbr::MessageDescriptor pb::IMessage.Descriptor {
9289           get { return Descriptor; }
9290         }
9291 
9292         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9293         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FeatureSupport()9294         public FeatureSupport() {
9295           OnConstruction();
9296         }
9297 
OnConstruction()9298         partial void OnConstruction();
9299 
9300         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9301         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FeatureSupport(FeatureSupport other)9302         public FeatureSupport(FeatureSupport other) : this() {
9303           _hasBits0 = other._hasBits0;
9304           editionIntroduced_ = other.editionIntroduced_;
9305           editionDeprecated_ = other.editionDeprecated_;
9306           deprecationWarning_ = other.deprecationWarning_;
9307           editionRemoved_ = other.editionRemoved_;
9308           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
9309         }
9310 
9311         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9312         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()9313         public FeatureSupport Clone() {
9314           return new FeatureSupport(this);
9315         }
9316 
9317         /// <summary>Field number for the "edition_introduced" field.</summary>
9318         public const int EditionIntroducedFieldNumber = 1;
9319         private readonly static global::Google.Protobuf.Reflection.Edition EditionIntroducedDefaultValue = global::Google.Protobuf.Reflection.Edition.Unknown;
9320 
9321         private global::Google.Protobuf.Reflection.Edition editionIntroduced_;
9322         /// <summary>
9323         /// The edition that this feature was first available in.  In editions
9324         /// earlier than this one, the default assigned to EDITION_LEGACY will be
9325         /// used, and proto files will not be able to override it.
9326         /// </summary>
9327         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9328         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9329         public global::Google.Protobuf.Reflection.Edition EditionIntroduced {
9330           get { if ((_hasBits0 & 1) != 0) { return editionIntroduced_; } else { return EditionIntroducedDefaultValue; } }
9331           set {
9332             _hasBits0 |= 1;
9333             editionIntroduced_ = value;
9334           }
9335         }
9336         /// <summary>Gets whether the "edition_introduced" field is set</summary>
9337         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9338         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9339         public bool HasEditionIntroduced {
9340           get { return (_hasBits0 & 1) != 0; }
9341         }
9342         /// <summary>Clears the value of the "edition_introduced" field</summary>
9343         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9344         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearEditionIntroduced()9345         public void ClearEditionIntroduced() {
9346           _hasBits0 &= ~1;
9347         }
9348 
9349         /// <summary>Field number for the "edition_deprecated" field.</summary>
9350         public const int EditionDeprecatedFieldNumber = 2;
9351         private readonly static global::Google.Protobuf.Reflection.Edition EditionDeprecatedDefaultValue = global::Google.Protobuf.Reflection.Edition.Unknown;
9352 
9353         private global::Google.Protobuf.Reflection.Edition editionDeprecated_;
9354         /// <summary>
9355         /// The edition this feature becomes deprecated in.  Using this after this
9356         /// edition may trigger warnings.
9357         /// </summary>
9358         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9359         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9360         public global::Google.Protobuf.Reflection.Edition EditionDeprecated {
9361           get { if ((_hasBits0 & 2) != 0) { return editionDeprecated_; } else { return EditionDeprecatedDefaultValue; } }
9362           set {
9363             _hasBits0 |= 2;
9364             editionDeprecated_ = value;
9365           }
9366         }
9367         /// <summary>Gets whether the "edition_deprecated" field is set</summary>
9368         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9369         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9370         public bool HasEditionDeprecated {
9371           get { return (_hasBits0 & 2) != 0; }
9372         }
9373         /// <summary>Clears the value of the "edition_deprecated" field</summary>
9374         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9375         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearEditionDeprecated()9376         public void ClearEditionDeprecated() {
9377           _hasBits0 &= ~2;
9378         }
9379 
9380         /// <summary>Field number for the "deprecation_warning" field.</summary>
9381         public const int DeprecationWarningFieldNumber = 3;
9382         private readonly static string DeprecationWarningDefaultValue = "";
9383 
9384         private string deprecationWarning_;
9385         /// <summary>
9386         /// The deprecation warning text if this feature is used after the edition it
9387         /// was marked deprecated in.
9388         /// </summary>
9389         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9390         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9391         public string DeprecationWarning {
9392           get { return deprecationWarning_ ?? DeprecationWarningDefaultValue; }
9393           set {
9394             deprecationWarning_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
9395           }
9396         }
9397         /// <summary>Gets whether the "deprecation_warning" field is set</summary>
9398         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9399         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9400         public bool HasDeprecationWarning {
9401           get { return deprecationWarning_ != null; }
9402         }
9403         /// <summary>Clears the value of the "deprecation_warning" field</summary>
9404         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9405         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDeprecationWarning()9406         public void ClearDeprecationWarning() {
9407           deprecationWarning_ = null;
9408         }
9409 
9410         /// <summary>Field number for the "edition_removed" field.</summary>
9411         public const int EditionRemovedFieldNumber = 4;
9412         private readonly static global::Google.Protobuf.Reflection.Edition EditionRemovedDefaultValue = global::Google.Protobuf.Reflection.Edition.Unknown;
9413 
9414         private global::Google.Protobuf.Reflection.Edition editionRemoved_;
9415         /// <summary>
9416         /// The edition this feature is no longer available in.  In editions after
9417         /// this one, the last default assigned will be used, and proto files will
9418         /// not be able to override it.
9419         /// </summary>
9420         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9421         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9422         public global::Google.Protobuf.Reflection.Edition EditionRemoved {
9423           get { if ((_hasBits0 & 4) != 0) { return editionRemoved_; } else { return EditionRemovedDefaultValue; } }
9424           set {
9425             _hasBits0 |= 4;
9426             editionRemoved_ = value;
9427           }
9428         }
9429         /// <summary>Gets whether the "edition_removed" field is set</summary>
9430         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9431         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9432         public bool HasEditionRemoved {
9433           get { return (_hasBits0 & 4) != 0; }
9434         }
9435         /// <summary>Clears the value of the "edition_removed" field</summary>
9436         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9437         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearEditionRemoved()9438         public void ClearEditionRemoved() {
9439           _hasBits0 &= ~4;
9440         }
9441 
9442         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9443         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)9444         public override bool Equals(object other) {
9445           return Equals(other as FeatureSupport);
9446         }
9447 
9448         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9449         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(FeatureSupport other)9450         public bool Equals(FeatureSupport other) {
9451           if (ReferenceEquals(other, null)) {
9452             return false;
9453           }
9454           if (ReferenceEquals(other, this)) {
9455             return true;
9456           }
9457           if (EditionIntroduced != other.EditionIntroduced) return false;
9458           if (EditionDeprecated != other.EditionDeprecated) return false;
9459           if (DeprecationWarning != other.DeprecationWarning) return false;
9460           if (EditionRemoved != other.EditionRemoved) return false;
9461           return Equals(_unknownFields, other._unknownFields);
9462         }
9463 
9464         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9465         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()9466         public override int GetHashCode() {
9467           int hash = 1;
9468           if (HasEditionIntroduced) hash ^= EditionIntroduced.GetHashCode();
9469           if (HasEditionDeprecated) hash ^= EditionDeprecated.GetHashCode();
9470           if (HasDeprecationWarning) hash ^= DeprecationWarning.GetHashCode();
9471           if (HasEditionRemoved) hash ^= EditionRemoved.GetHashCode();
9472           if (_unknownFields != null) {
9473             hash ^= _unknownFields.GetHashCode();
9474           }
9475           return hash;
9476         }
9477 
9478         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9479         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()9480         public override string ToString() {
9481           return pb::JsonFormatter.ToDiagnosticString(this);
9482         }
9483 
9484         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9485         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)9486         public void WriteTo(pb::CodedOutputStream output) {
9487         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9488           output.WriteRawMessage(this);
9489         #else
9490           if (HasEditionIntroduced) {
9491             output.WriteRawTag(8);
9492             output.WriteEnum((int) EditionIntroduced);
9493           }
9494           if (HasEditionDeprecated) {
9495             output.WriteRawTag(16);
9496             output.WriteEnum((int) EditionDeprecated);
9497           }
9498           if (HasDeprecationWarning) {
9499             output.WriteRawTag(26);
9500             output.WriteString(DeprecationWarning);
9501           }
9502           if (HasEditionRemoved) {
9503             output.WriteRawTag(32);
9504             output.WriteEnum((int) EditionRemoved);
9505           }
9506           if (_unknownFields != null) {
9507             _unknownFields.WriteTo(output);
9508           }
9509         #endif
9510         }
9511 
9512         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9513         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9514         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)9515         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
9516           if (HasEditionIntroduced) {
9517             output.WriteRawTag(8);
9518             output.WriteEnum((int) EditionIntroduced);
9519           }
9520           if (HasEditionDeprecated) {
9521             output.WriteRawTag(16);
9522             output.WriteEnum((int) EditionDeprecated);
9523           }
9524           if (HasDeprecationWarning) {
9525             output.WriteRawTag(26);
9526             output.WriteString(DeprecationWarning);
9527           }
9528           if (HasEditionRemoved) {
9529             output.WriteRawTag(32);
9530             output.WriteEnum((int) EditionRemoved);
9531           }
9532           if (_unknownFields != null) {
9533             _unknownFields.WriteTo(ref output);
9534           }
9535         }
9536         #endif
9537 
9538         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9539         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()9540         public int CalculateSize() {
9541           int size = 0;
9542           if (HasEditionIntroduced) {
9543             size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EditionIntroduced);
9544           }
9545           if (HasEditionDeprecated) {
9546             size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EditionDeprecated);
9547           }
9548           if (HasDeprecationWarning) {
9549             size += 1 + pb::CodedOutputStream.ComputeStringSize(DeprecationWarning);
9550           }
9551           if (HasEditionRemoved) {
9552             size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EditionRemoved);
9553           }
9554           if (_unknownFields != null) {
9555             size += _unknownFields.CalculateSize();
9556           }
9557           return size;
9558         }
9559 
9560         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9561         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(FeatureSupport other)9562         public void MergeFrom(FeatureSupport other) {
9563           if (other == null) {
9564             return;
9565           }
9566           if (other.HasEditionIntroduced) {
9567             EditionIntroduced = other.EditionIntroduced;
9568           }
9569           if (other.HasEditionDeprecated) {
9570             EditionDeprecated = other.EditionDeprecated;
9571           }
9572           if (other.HasDeprecationWarning) {
9573             DeprecationWarning = other.DeprecationWarning;
9574           }
9575           if (other.HasEditionRemoved) {
9576             EditionRemoved = other.EditionRemoved;
9577           }
9578           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
9579         }
9580 
9581         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9582         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)9583         public void MergeFrom(pb::CodedInputStream input) {
9584         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9585           input.ReadRawMessage(this);
9586         #else
9587           uint tag;
9588           while ((tag = input.ReadTag()) != 0) {
9589           if ((tag & 7) == 4) {
9590             // Abort on any end group tag.
9591             return;
9592           }
9593           switch(tag) {
9594               default:
9595                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
9596                 break;
9597               case 8: {
9598                 EditionIntroduced = (global::Google.Protobuf.Reflection.Edition) input.ReadEnum();
9599                 break;
9600               }
9601               case 16: {
9602                 EditionDeprecated = (global::Google.Protobuf.Reflection.Edition) input.ReadEnum();
9603                 break;
9604               }
9605               case 26: {
9606                 DeprecationWarning = input.ReadString();
9607                 break;
9608               }
9609               case 32: {
9610                 EditionRemoved = (global::Google.Protobuf.Reflection.Edition) input.ReadEnum();
9611                 break;
9612               }
9613             }
9614           }
9615         #endif
9616         }
9617 
9618         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9619         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9620         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)9621         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
9622           uint tag;
9623           while ((tag = input.ReadTag()) != 0) {
9624           if ((tag & 7) == 4) {
9625             // Abort on any end group tag.
9626             return;
9627           }
9628           switch(tag) {
9629               default:
9630                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
9631                 break;
9632               case 8: {
9633                 EditionIntroduced = (global::Google.Protobuf.Reflection.Edition) input.ReadEnum();
9634                 break;
9635               }
9636               case 16: {
9637                 EditionDeprecated = (global::Google.Protobuf.Reflection.Edition) input.ReadEnum();
9638                 break;
9639               }
9640               case 26: {
9641                 DeprecationWarning = input.ReadString();
9642                 break;
9643               }
9644               case 32: {
9645                 EditionRemoved = (global::Google.Protobuf.Reflection.Edition) input.ReadEnum();
9646                 break;
9647               }
9648             }
9649           }
9650         }
9651         #endif
9652 
9653       }
9654 
9655     }
9656     #endregion
9657 
9658   }
9659 
9660   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
9661   public sealed partial class OneofOptions : pb::IExtendableMessage<OneofOptions>
9662   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9663       , pb::IBufferMessage
9664   #endif
9665   {
9666     private static readonly pb::MessageParser<OneofOptions> _parser = new pb::MessageParser<OneofOptions>(() => new OneofOptions());
9667     private pb::UnknownFieldSet _unknownFields;
9668     internal pb::ExtensionSet<OneofOptions> _extensions;
9669     private pb::ExtensionSet<OneofOptions> _Extensions { get { return _extensions; } }
9670     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9671     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9672     public static pb::MessageParser<OneofOptions> Parser { get { return _parser; } }
9673 
9674     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9675     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9676     public static pbr::MessageDescriptor Descriptor {
9677       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[13]; }
9678     }
9679 
9680     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9681     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9682     pbr::MessageDescriptor pb::IMessage.Descriptor {
9683       get { return Descriptor; }
9684     }
9685 
9686     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9687     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OneofOptions()9688     public OneofOptions() {
9689       OnConstruction();
9690     }
9691 
OnConstruction()9692     partial void OnConstruction();
9693 
9694     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9695     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
OneofOptions(OneofOptions other)9696     public OneofOptions(OneofOptions other) : this() {
9697       features_ = other.features_ != null ? other.features_.Clone() : null;
9698       uninterpretedOption_ = other.uninterpretedOption_.Clone();
9699       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
9700       _extensions = pb::ExtensionSet.Clone(other._extensions);
9701     }
9702 
9703     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9704     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()9705     public OneofOptions Clone() {
9706       return new OneofOptions(this);
9707     }
9708 
9709     /// <summary>Field number for the "features" field.</summary>
9710     public const int FeaturesFieldNumber = 1;
9711     private global::Google.Protobuf.Reflection.FeatureSet features_;
9712     /// <summary>
9713     /// Any features defined in the specific edition.
9714     /// </summary>
9715     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9716     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9717     public global::Google.Protobuf.Reflection.FeatureSet Features {
9718       get { return features_; }
9719       set {
9720         features_ = value;
9721       }
9722     }
9723 
9724     /// <summary>Field number for the "uninterpreted_option" field.</summary>
9725     public const int UninterpretedOptionFieldNumber = 999;
9726     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
9727         = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
9728     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
9729     /// <summary>
9730     /// The parser stores options it doesn't recognize here. See above.
9731     /// </summary>
9732     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9733     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9734     public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
9735       get { return uninterpretedOption_; }
9736     }
9737 
9738     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9739     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)9740     public override bool Equals(object other) {
9741       return Equals(other as OneofOptions);
9742     }
9743 
9744     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9745     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(OneofOptions other)9746     public bool Equals(OneofOptions other) {
9747       if (ReferenceEquals(other, null)) {
9748         return false;
9749       }
9750       if (ReferenceEquals(other, this)) {
9751         return true;
9752       }
9753       if (!object.Equals(Features, other.Features)) return false;
9754       if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
9755       if (!Equals(_extensions, other._extensions)) {
9756         return false;
9757       }
9758       return Equals(_unknownFields, other._unknownFields);
9759     }
9760 
9761     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9762     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()9763     public override int GetHashCode() {
9764       int hash = 1;
9765       if (features_ != null) hash ^= Features.GetHashCode();
9766       hash ^= uninterpretedOption_.GetHashCode();
9767       if (_extensions != null) {
9768         hash ^= _extensions.GetHashCode();
9769       }
9770       if (_unknownFields != null) {
9771         hash ^= _unknownFields.GetHashCode();
9772       }
9773       return hash;
9774     }
9775 
9776     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9777     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()9778     public override string ToString() {
9779       return pb::JsonFormatter.ToDiagnosticString(this);
9780     }
9781 
9782     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9783     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)9784     public void WriteTo(pb::CodedOutputStream output) {
9785     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9786       output.WriteRawMessage(this);
9787     #else
9788       if (features_ != null) {
9789         output.WriteRawTag(10);
9790         output.WriteMessage(Features);
9791       }
9792       uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
9793       if (_extensions != null) {
9794         _extensions.WriteTo(output);
9795       }
9796       if (_unknownFields != null) {
9797         _unknownFields.WriteTo(output);
9798       }
9799     #endif
9800     }
9801 
9802     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9803     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9804     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)9805     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
9806       if (features_ != null) {
9807         output.WriteRawTag(10);
9808         output.WriteMessage(Features);
9809       }
9810       uninterpretedOption_.WriteTo(ref output, _repeated_uninterpretedOption_codec);
9811       if (_extensions != null) {
9812         _extensions.WriteTo(ref output);
9813       }
9814       if (_unknownFields != null) {
9815         _unknownFields.WriteTo(ref output);
9816       }
9817     }
9818     #endif
9819 
9820     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9821     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()9822     public int CalculateSize() {
9823       int size = 0;
9824       if (features_ != null) {
9825         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Features);
9826       }
9827       size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
9828       if (_extensions != null) {
9829         size += _extensions.CalculateSize();
9830       }
9831       if (_unknownFields != null) {
9832         size += _unknownFields.CalculateSize();
9833       }
9834       return size;
9835     }
9836 
9837     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9838     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(OneofOptions other)9839     public void MergeFrom(OneofOptions other) {
9840       if (other == null) {
9841         return;
9842       }
9843       if (other.features_ != null) {
9844         if (features_ == null) {
9845           Features = new global::Google.Protobuf.Reflection.FeatureSet();
9846         }
9847         Features.MergeFrom(other.Features);
9848       }
9849       uninterpretedOption_.Add(other.uninterpretedOption_);
9850       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
9851       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
9852     }
9853 
9854     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9855     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)9856     public void MergeFrom(pb::CodedInputStream input) {
9857     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9858       input.ReadRawMessage(this);
9859     #else
9860       uint tag;
9861       while ((tag = input.ReadTag()) != 0) {
9862       if ((tag & 7) == 4) {
9863         // Abort on any end group tag.
9864         return;
9865       }
9866       switch(tag) {
9867           default:
9868             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
9869               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
9870             }
9871             break;
9872           case 10: {
9873             if (features_ == null) {
9874               Features = new global::Google.Protobuf.Reflection.FeatureSet();
9875             }
9876             input.ReadMessage(Features);
9877             break;
9878           }
9879           case 7994: {
9880             uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
9881             break;
9882           }
9883         }
9884       }
9885     #endif
9886     }
9887 
9888     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9889     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9890     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)9891     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
9892       uint tag;
9893       while ((tag = input.ReadTag()) != 0) {
9894       if ((tag & 7) == 4) {
9895         // Abort on any end group tag.
9896         return;
9897       }
9898       switch(tag) {
9899           default:
9900             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
9901               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
9902             }
9903             break;
9904           case 10: {
9905             if (features_ == null) {
9906               Features = new global::Google.Protobuf.Reflection.FeatureSet();
9907             }
9908             input.ReadMessage(Features);
9909             break;
9910           }
9911           case 7994: {
9912             uninterpretedOption_.AddEntriesFrom(ref input, _repeated_uninterpretedOption_codec);
9913             break;
9914           }
9915         }
9916       }
9917     }
9918     #endif
9919 
GetExtension(pb::Extension<OneofOptions, TValue> extension)9920     public TValue GetExtension<TValue>(pb::Extension<OneofOptions, TValue> extension) {
9921       return pb::ExtensionSet.Get(ref _extensions, extension);
9922     }
GetExtension(pb::RepeatedExtension<OneofOptions, TValue> extension)9923     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<OneofOptions, TValue> extension) {
9924       return pb::ExtensionSet.Get(ref _extensions, extension);
9925     }
GetOrInitializeExtension(pb::RepeatedExtension<OneofOptions, TValue> extension)9926     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<OneofOptions, TValue> extension) {
9927       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
9928     }
SetExtension(pb::Extension<OneofOptions, TValue> extension, TValue value)9929     public void SetExtension<TValue>(pb::Extension<OneofOptions, TValue> extension, TValue value) {
9930       pb::ExtensionSet.Set(ref _extensions, extension, value);
9931     }
HasExtension(pb::Extension<OneofOptions, TValue> extension)9932     public bool HasExtension<TValue>(pb::Extension<OneofOptions, TValue> extension) {
9933       return pb::ExtensionSet.Has(ref _extensions, extension);
9934     }
ClearExtension(pb::Extension<OneofOptions, TValue> extension)9935     public void ClearExtension<TValue>(pb::Extension<OneofOptions, TValue> extension) {
9936       pb::ExtensionSet.Clear(ref _extensions, extension);
9937     }
ClearExtension(pb::RepeatedExtension<OneofOptions, TValue> extension)9938     public void ClearExtension<TValue>(pb::RepeatedExtension<OneofOptions, TValue> extension) {
9939       pb::ExtensionSet.Clear(ref _extensions, extension);
9940     }
9941 
9942   }
9943 
9944   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
9945   public sealed partial class EnumOptions : pb::IExtendableMessage<EnumOptions>
9946   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
9947       , pb::IBufferMessage
9948   #endif
9949   {
9950     private static readonly pb::MessageParser<EnumOptions> _parser = new pb::MessageParser<EnumOptions>(() => new EnumOptions());
9951     private pb::UnknownFieldSet _unknownFields;
9952     internal pb::ExtensionSet<EnumOptions> _extensions;
9953     private pb::ExtensionSet<EnumOptions> _Extensions { get { return _extensions; } }
9954     private int _hasBits0;
9955     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9956     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9957     public static pb::MessageParser<EnumOptions> Parser { get { return _parser; } }
9958 
9959     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9960     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9961     public static pbr::MessageDescriptor Descriptor {
9962       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[14]; }
9963     }
9964 
9965     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9966     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
9967     pbr::MessageDescriptor pb::IMessage.Descriptor {
9968       get { return Descriptor; }
9969     }
9970 
9971     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9972     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
EnumOptions()9973     public EnumOptions() {
9974       OnConstruction();
9975     }
9976 
OnConstruction()9977     partial void OnConstruction();
9978 
9979     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9980     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
EnumOptions(EnumOptions other)9981     public EnumOptions(EnumOptions other) : this() {
9982       _hasBits0 = other._hasBits0;
9983       allowAlias_ = other.allowAlias_;
9984       deprecated_ = other.deprecated_;
9985       deprecatedLegacyJsonFieldConflicts_ = other.deprecatedLegacyJsonFieldConflicts_;
9986       features_ = other.features_ != null ? other.features_.Clone() : null;
9987       uninterpretedOption_ = other.uninterpretedOption_.Clone();
9988       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
9989       _extensions = pb::ExtensionSet.Clone(other._extensions);
9990     }
9991 
9992     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
9993     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()9994     public EnumOptions Clone() {
9995       return new EnumOptions(this);
9996     }
9997 
9998     /// <summary>Field number for the "allow_alias" field.</summary>
9999     public const int AllowAliasFieldNumber = 2;
10000     private readonly static bool AllowAliasDefaultValue = false;
10001 
10002     private bool allowAlias_;
10003     /// <summary>
10004     /// Set this option to true to allow mapping different tag names to the same
10005     /// value.
10006     /// </summary>
10007     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10008     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10009     public bool AllowAlias {
10010       get { if ((_hasBits0 & 1) != 0) { return allowAlias_; } else { return AllowAliasDefaultValue; } }
10011       set {
10012         _hasBits0 |= 1;
10013         allowAlias_ = value;
10014       }
10015     }
10016     /// <summary>Gets whether the "allow_alias" field is set</summary>
10017     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10018     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10019     public bool HasAllowAlias {
10020       get { return (_hasBits0 & 1) != 0; }
10021     }
10022     /// <summary>Clears the value of the "allow_alias" field</summary>
10023     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10024     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearAllowAlias()10025     public void ClearAllowAlias() {
10026       _hasBits0 &= ~1;
10027     }
10028 
10029     /// <summary>Field number for the "deprecated" field.</summary>
10030     public const int DeprecatedFieldNumber = 3;
10031     private readonly static bool DeprecatedDefaultValue = false;
10032 
10033     private bool deprecated_;
10034     /// <summary>
10035     /// Is this enum deprecated?
10036     /// Depending on the target platform, this can emit Deprecated annotations
10037     /// for the enum, or it will be completely ignored; in the very least, this
10038     /// is a formalization for deprecating enums.
10039     /// </summary>
10040     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10041     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10042     public bool Deprecated {
10043       get { if ((_hasBits0 & 2) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } }
10044       set {
10045         _hasBits0 |= 2;
10046         deprecated_ = value;
10047       }
10048     }
10049     /// <summary>Gets whether the "deprecated" field is set</summary>
10050     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10051     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10052     public bool HasDeprecated {
10053       get { return (_hasBits0 & 2) != 0; }
10054     }
10055     /// <summary>Clears the value of the "deprecated" field</summary>
10056     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10057     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDeprecated()10058     public void ClearDeprecated() {
10059       _hasBits0 &= ~2;
10060     }
10061 
10062     /// <summary>Field number for the "deprecated_legacy_json_field_conflicts" field.</summary>
10063     public const int DeprecatedLegacyJsonFieldConflictsFieldNumber = 6;
10064     private readonly static bool DeprecatedLegacyJsonFieldConflictsDefaultValue = false;
10065 
10066     private bool deprecatedLegacyJsonFieldConflicts_;
10067     /// <summary>
10068     /// Enable the legacy handling of JSON field name conflicts.  This lowercases
10069     /// and strips underscored from the fields before comparison in proto3 only.
10070     /// The new behavior takes `json_name` into account and applies to proto2 as
10071     /// well.
10072     /// TODO Remove this legacy behavior once downstream teams have
10073     /// had time to migrate.
10074     /// </summary>
10075     [global::System.ObsoleteAttribute]
10076     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10077     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10078     public bool DeprecatedLegacyJsonFieldConflicts {
10079       get { if ((_hasBits0 & 4) != 0) { return deprecatedLegacyJsonFieldConflicts_; } else { return DeprecatedLegacyJsonFieldConflictsDefaultValue; } }
10080       set {
10081         _hasBits0 |= 4;
10082         deprecatedLegacyJsonFieldConflicts_ = value;
10083       }
10084     }
10085     /// <summary>Gets whether the "deprecated_legacy_json_field_conflicts" field is set</summary>
10086     [global::System.ObsoleteAttribute]
10087     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10088     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10089     public bool HasDeprecatedLegacyJsonFieldConflicts {
10090       get { return (_hasBits0 & 4) != 0; }
10091     }
10092     /// <summary>Clears the value of the "deprecated_legacy_json_field_conflicts" field</summary>
10093     [global::System.ObsoleteAttribute]
10094     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10095     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDeprecatedLegacyJsonFieldConflicts()10096     public void ClearDeprecatedLegacyJsonFieldConflicts() {
10097       _hasBits0 &= ~4;
10098     }
10099 
10100     /// <summary>Field number for the "features" field.</summary>
10101     public const int FeaturesFieldNumber = 7;
10102     private global::Google.Protobuf.Reflection.FeatureSet features_;
10103     /// <summary>
10104     /// Any features defined in the specific edition.
10105     /// </summary>
10106     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10107     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10108     public global::Google.Protobuf.Reflection.FeatureSet Features {
10109       get { return features_; }
10110       set {
10111         features_ = value;
10112       }
10113     }
10114 
10115     /// <summary>Field number for the "uninterpreted_option" field.</summary>
10116     public const int UninterpretedOptionFieldNumber = 999;
10117     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
10118         = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
10119     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
10120     /// <summary>
10121     /// The parser stores options it doesn't recognize here. See above.
10122     /// </summary>
10123     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10124     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10125     public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
10126       get { return uninterpretedOption_; }
10127     }
10128 
10129     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10130     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)10131     public override bool Equals(object other) {
10132       return Equals(other as EnumOptions);
10133     }
10134 
10135     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10136     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(EnumOptions other)10137     public bool Equals(EnumOptions other) {
10138       if (ReferenceEquals(other, null)) {
10139         return false;
10140       }
10141       if (ReferenceEquals(other, this)) {
10142         return true;
10143       }
10144       if (AllowAlias != other.AllowAlias) return false;
10145       if (Deprecated != other.Deprecated) return false;
10146       if (DeprecatedLegacyJsonFieldConflicts != other.DeprecatedLegacyJsonFieldConflicts) return false;
10147       if (!object.Equals(Features, other.Features)) return false;
10148       if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
10149       if (!Equals(_extensions, other._extensions)) {
10150         return false;
10151       }
10152       return Equals(_unknownFields, other._unknownFields);
10153     }
10154 
10155     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10156     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()10157     public override int GetHashCode() {
10158       int hash = 1;
10159       if (HasAllowAlias) hash ^= AllowAlias.GetHashCode();
10160       if (HasDeprecated) hash ^= Deprecated.GetHashCode();
10161       if (HasDeprecatedLegacyJsonFieldConflicts) hash ^= DeprecatedLegacyJsonFieldConflicts.GetHashCode();
10162       if (features_ != null) hash ^= Features.GetHashCode();
10163       hash ^= uninterpretedOption_.GetHashCode();
10164       if (_extensions != null) {
10165         hash ^= _extensions.GetHashCode();
10166       }
10167       if (_unknownFields != null) {
10168         hash ^= _unknownFields.GetHashCode();
10169       }
10170       return hash;
10171     }
10172 
10173     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10174     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()10175     public override string ToString() {
10176       return pb::JsonFormatter.ToDiagnosticString(this);
10177     }
10178 
10179     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10180     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)10181     public void WriteTo(pb::CodedOutputStream output) {
10182     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10183       output.WriteRawMessage(this);
10184     #else
10185       if (HasAllowAlias) {
10186         output.WriteRawTag(16);
10187         output.WriteBool(AllowAlias);
10188       }
10189       if (HasDeprecated) {
10190         output.WriteRawTag(24);
10191         output.WriteBool(Deprecated);
10192       }
10193       if (HasDeprecatedLegacyJsonFieldConflicts) {
10194         output.WriteRawTag(48);
10195         output.WriteBool(DeprecatedLegacyJsonFieldConflicts);
10196       }
10197       if (features_ != null) {
10198         output.WriteRawTag(58);
10199         output.WriteMessage(Features);
10200       }
10201       uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
10202       if (_extensions != null) {
10203         _extensions.WriteTo(output);
10204       }
10205       if (_unknownFields != null) {
10206         _unknownFields.WriteTo(output);
10207       }
10208     #endif
10209     }
10210 
10211     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10212     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10213     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)10214     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
10215       if (HasAllowAlias) {
10216         output.WriteRawTag(16);
10217         output.WriteBool(AllowAlias);
10218       }
10219       if (HasDeprecated) {
10220         output.WriteRawTag(24);
10221         output.WriteBool(Deprecated);
10222       }
10223       if (HasDeprecatedLegacyJsonFieldConflicts) {
10224         output.WriteRawTag(48);
10225         output.WriteBool(DeprecatedLegacyJsonFieldConflicts);
10226       }
10227       if (features_ != null) {
10228         output.WriteRawTag(58);
10229         output.WriteMessage(Features);
10230       }
10231       uninterpretedOption_.WriteTo(ref output, _repeated_uninterpretedOption_codec);
10232       if (_extensions != null) {
10233         _extensions.WriteTo(ref output);
10234       }
10235       if (_unknownFields != null) {
10236         _unknownFields.WriteTo(ref output);
10237       }
10238     }
10239     #endif
10240 
10241     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10242     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()10243     public int CalculateSize() {
10244       int size = 0;
10245       if (HasAllowAlias) {
10246         size += 1 + 1;
10247       }
10248       if (HasDeprecated) {
10249         size += 1 + 1;
10250       }
10251       if (HasDeprecatedLegacyJsonFieldConflicts) {
10252         size += 1 + 1;
10253       }
10254       if (features_ != null) {
10255         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Features);
10256       }
10257       size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
10258       if (_extensions != null) {
10259         size += _extensions.CalculateSize();
10260       }
10261       if (_unknownFields != null) {
10262         size += _unknownFields.CalculateSize();
10263       }
10264       return size;
10265     }
10266 
10267     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10268     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(EnumOptions other)10269     public void MergeFrom(EnumOptions other) {
10270       if (other == null) {
10271         return;
10272       }
10273       if (other.HasAllowAlias) {
10274         AllowAlias = other.AllowAlias;
10275       }
10276       if (other.HasDeprecated) {
10277         Deprecated = other.Deprecated;
10278       }
10279       if (other.HasDeprecatedLegacyJsonFieldConflicts) {
10280         DeprecatedLegacyJsonFieldConflicts = other.DeprecatedLegacyJsonFieldConflicts;
10281       }
10282       if (other.features_ != null) {
10283         if (features_ == null) {
10284           Features = new global::Google.Protobuf.Reflection.FeatureSet();
10285         }
10286         Features.MergeFrom(other.Features);
10287       }
10288       uninterpretedOption_.Add(other.uninterpretedOption_);
10289       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
10290       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
10291     }
10292 
10293     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10294     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)10295     public void MergeFrom(pb::CodedInputStream input) {
10296     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10297       input.ReadRawMessage(this);
10298     #else
10299       uint tag;
10300       while ((tag = input.ReadTag()) != 0) {
10301       if ((tag & 7) == 4) {
10302         // Abort on any end group tag.
10303         return;
10304       }
10305       switch(tag) {
10306           default:
10307             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
10308               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
10309             }
10310             break;
10311           case 16: {
10312             AllowAlias = input.ReadBool();
10313             break;
10314           }
10315           case 24: {
10316             Deprecated = input.ReadBool();
10317             break;
10318           }
10319           case 48: {
10320             DeprecatedLegacyJsonFieldConflicts = input.ReadBool();
10321             break;
10322           }
10323           case 58: {
10324             if (features_ == null) {
10325               Features = new global::Google.Protobuf.Reflection.FeatureSet();
10326             }
10327             input.ReadMessage(Features);
10328             break;
10329           }
10330           case 7994: {
10331             uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
10332             break;
10333           }
10334         }
10335       }
10336     #endif
10337     }
10338 
10339     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10340     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10341     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)10342     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
10343       uint tag;
10344       while ((tag = input.ReadTag()) != 0) {
10345       if ((tag & 7) == 4) {
10346         // Abort on any end group tag.
10347         return;
10348       }
10349       switch(tag) {
10350           default:
10351             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
10352               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
10353             }
10354             break;
10355           case 16: {
10356             AllowAlias = input.ReadBool();
10357             break;
10358           }
10359           case 24: {
10360             Deprecated = input.ReadBool();
10361             break;
10362           }
10363           case 48: {
10364             DeprecatedLegacyJsonFieldConflicts = input.ReadBool();
10365             break;
10366           }
10367           case 58: {
10368             if (features_ == null) {
10369               Features = new global::Google.Protobuf.Reflection.FeatureSet();
10370             }
10371             input.ReadMessage(Features);
10372             break;
10373           }
10374           case 7994: {
10375             uninterpretedOption_.AddEntriesFrom(ref input, _repeated_uninterpretedOption_codec);
10376             break;
10377           }
10378         }
10379       }
10380     }
10381     #endif
10382 
GetExtension(pb::Extension<EnumOptions, TValue> extension)10383     public TValue GetExtension<TValue>(pb::Extension<EnumOptions, TValue> extension) {
10384       return pb::ExtensionSet.Get(ref _extensions, extension);
10385     }
GetExtension(pb::RepeatedExtension<EnumOptions, TValue> extension)10386     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<EnumOptions, TValue> extension) {
10387       return pb::ExtensionSet.Get(ref _extensions, extension);
10388     }
GetOrInitializeExtension(pb::RepeatedExtension<EnumOptions, TValue> extension)10389     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<EnumOptions, TValue> extension) {
10390       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
10391     }
SetExtension(pb::Extension<EnumOptions, TValue> extension, TValue value)10392     public void SetExtension<TValue>(pb::Extension<EnumOptions, TValue> extension, TValue value) {
10393       pb::ExtensionSet.Set(ref _extensions, extension, value);
10394     }
HasExtension(pb::Extension<EnumOptions, TValue> extension)10395     public bool HasExtension<TValue>(pb::Extension<EnumOptions, TValue> extension) {
10396       return pb::ExtensionSet.Has(ref _extensions, extension);
10397     }
ClearExtension(pb::Extension<EnumOptions, TValue> extension)10398     public void ClearExtension<TValue>(pb::Extension<EnumOptions, TValue> extension) {
10399       pb::ExtensionSet.Clear(ref _extensions, extension);
10400     }
ClearExtension(pb::RepeatedExtension<EnumOptions, TValue> extension)10401     public void ClearExtension<TValue>(pb::RepeatedExtension<EnumOptions, TValue> extension) {
10402       pb::ExtensionSet.Clear(ref _extensions, extension);
10403     }
10404 
10405   }
10406 
10407   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
10408   public sealed partial class EnumValueOptions : pb::IExtendableMessage<EnumValueOptions>
10409   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10410       , pb::IBufferMessage
10411   #endif
10412   {
10413     private static readonly pb::MessageParser<EnumValueOptions> _parser = new pb::MessageParser<EnumValueOptions>(() => new EnumValueOptions());
10414     private pb::UnknownFieldSet _unknownFields;
10415     internal pb::ExtensionSet<EnumValueOptions> _extensions;
10416     private pb::ExtensionSet<EnumValueOptions> _Extensions { get { return _extensions; } }
10417     private int _hasBits0;
10418     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10419     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10420     public static pb::MessageParser<EnumValueOptions> Parser { get { return _parser; } }
10421 
10422     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10423     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10424     public static pbr::MessageDescriptor Descriptor {
10425       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[15]; }
10426     }
10427 
10428     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10429     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10430     pbr::MessageDescriptor pb::IMessage.Descriptor {
10431       get { return Descriptor; }
10432     }
10433 
10434     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10435     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
EnumValueOptions()10436     public EnumValueOptions() {
10437       OnConstruction();
10438     }
10439 
OnConstruction()10440     partial void OnConstruction();
10441 
10442     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10443     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
EnumValueOptions(EnumValueOptions other)10444     public EnumValueOptions(EnumValueOptions other) : this() {
10445       _hasBits0 = other._hasBits0;
10446       deprecated_ = other.deprecated_;
10447       features_ = other.features_ != null ? other.features_.Clone() : null;
10448       debugRedact_ = other.debugRedact_;
10449       featureSupport_ = other.featureSupport_ != null ? other.featureSupport_.Clone() : null;
10450       uninterpretedOption_ = other.uninterpretedOption_.Clone();
10451       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
10452       _extensions = pb::ExtensionSet.Clone(other._extensions);
10453     }
10454 
10455     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10456     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()10457     public EnumValueOptions Clone() {
10458       return new EnumValueOptions(this);
10459     }
10460 
10461     /// <summary>Field number for the "deprecated" field.</summary>
10462     public const int DeprecatedFieldNumber = 1;
10463     private readonly static bool DeprecatedDefaultValue = false;
10464 
10465     private bool deprecated_;
10466     /// <summary>
10467     /// Is this enum value deprecated?
10468     /// Depending on the target platform, this can emit Deprecated annotations
10469     /// for the enum value, or it will be completely ignored; in the very least,
10470     /// this is a formalization for deprecating enum values.
10471     /// </summary>
10472     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10473     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10474     public bool Deprecated {
10475       get { if ((_hasBits0 & 1) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } }
10476       set {
10477         _hasBits0 |= 1;
10478         deprecated_ = value;
10479       }
10480     }
10481     /// <summary>Gets whether the "deprecated" field is set</summary>
10482     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10483     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10484     public bool HasDeprecated {
10485       get { return (_hasBits0 & 1) != 0; }
10486     }
10487     /// <summary>Clears the value of the "deprecated" field</summary>
10488     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10489     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDeprecated()10490     public void ClearDeprecated() {
10491       _hasBits0 &= ~1;
10492     }
10493 
10494     /// <summary>Field number for the "features" field.</summary>
10495     public const int FeaturesFieldNumber = 2;
10496     private global::Google.Protobuf.Reflection.FeatureSet features_;
10497     /// <summary>
10498     /// Any features defined in the specific edition.
10499     /// </summary>
10500     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10501     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10502     public global::Google.Protobuf.Reflection.FeatureSet Features {
10503       get { return features_; }
10504       set {
10505         features_ = value;
10506       }
10507     }
10508 
10509     /// <summary>Field number for the "debug_redact" field.</summary>
10510     public const int DebugRedactFieldNumber = 3;
10511     private readonly static bool DebugRedactDefaultValue = false;
10512 
10513     private bool debugRedact_;
10514     /// <summary>
10515     /// Indicate that fields annotated with this enum value should not be printed
10516     /// out when using debug formats, e.g. when the field contains sensitive
10517     /// credentials.
10518     /// </summary>
10519     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10520     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10521     public bool DebugRedact {
10522       get { if ((_hasBits0 & 2) != 0) { return debugRedact_; } else { return DebugRedactDefaultValue; } }
10523       set {
10524         _hasBits0 |= 2;
10525         debugRedact_ = value;
10526       }
10527     }
10528     /// <summary>Gets whether the "debug_redact" field is set</summary>
10529     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10530     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10531     public bool HasDebugRedact {
10532       get { return (_hasBits0 & 2) != 0; }
10533     }
10534     /// <summary>Clears the value of the "debug_redact" field</summary>
10535     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10536     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDebugRedact()10537     public void ClearDebugRedact() {
10538       _hasBits0 &= ~2;
10539     }
10540 
10541     /// <summary>Field number for the "feature_support" field.</summary>
10542     public const int FeatureSupportFieldNumber = 4;
10543     private global::Google.Protobuf.Reflection.FieldOptions.Types.FeatureSupport featureSupport_;
10544     /// <summary>
10545     /// Information about the support window of a feature value.
10546     /// </summary>
10547     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10548     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10549     public global::Google.Protobuf.Reflection.FieldOptions.Types.FeatureSupport FeatureSupport {
10550       get { return featureSupport_; }
10551       set {
10552         featureSupport_ = value;
10553       }
10554     }
10555 
10556     /// <summary>Field number for the "uninterpreted_option" field.</summary>
10557     public const int UninterpretedOptionFieldNumber = 999;
10558     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
10559         = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
10560     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
10561     /// <summary>
10562     /// The parser stores options it doesn't recognize here. See above.
10563     /// </summary>
10564     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10565     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10566     public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
10567       get { return uninterpretedOption_; }
10568     }
10569 
10570     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10571     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)10572     public override bool Equals(object other) {
10573       return Equals(other as EnumValueOptions);
10574     }
10575 
10576     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10577     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(EnumValueOptions other)10578     public bool Equals(EnumValueOptions other) {
10579       if (ReferenceEquals(other, null)) {
10580         return false;
10581       }
10582       if (ReferenceEquals(other, this)) {
10583         return true;
10584       }
10585       if (Deprecated != other.Deprecated) return false;
10586       if (!object.Equals(Features, other.Features)) return false;
10587       if (DebugRedact != other.DebugRedact) return false;
10588       if (!object.Equals(FeatureSupport, other.FeatureSupport)) return false;
10589       if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
10590       if (!Equals(_extensions, other._extensions)) {
10591         return false;
10592       }
10593       return Equals(_unknownFields, other._unknownFields);
10594     }
10595 
10596     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10597     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()10598     public override int GetHashCode() {
10599       int hash = 1;
10600       if (HasDeprecated) hash ^= Deprecated.GetHashCode();
10601       if (features_ != null) hash ^= Features.GetHashCode();
10602       if (HasDebugRedact) hash ^= DebugRedact.GetHashCode();
10603       if (featureSupport_ != null) hash ^= FeatureSupport.GetHashCode();
10604       hash ^= uninterpretedOption_.GetHashCode();
10605       if (_extensions != null) {
10606         hash ^= _extensions.GetHashCode();
10607       }
10608       if (_unknownFields != null) {
10609         hash ^= _unknownFields.GetHashCode();
10610       }
10611       return hash;
10612     }
10613 
10614     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10615     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()10616     public override string ToString() {
10617       return pb::JsonFormatter.ToDiagnosticString(this);
10618     }
10619 
10620     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10621     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)10622     public void WriteTo(pb::CodedOutputStream output) {
10623     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10624       output.WriteRawMessage(this);
10625     #else
10626       if (HasDeprecated) {
10627         output.WriteRawTag(8);
10628         output.WriteBool(Deprecated);
10629       }
10630       if (features_ != null) {
10631         output.WriteRawTag(18);
10632         output.WriteMessage(Features);
10633       }
10634       if (HasDebugRedact) {
10635         output.WriteRawTag(24);
10636         output.WriteBool(DebugRedact);
10637       }
10638       if (featureSupport_ != null) {
10639         output.WriteRawTag(34);
10640         output.WriteMessage(FeatureSupport);
10641       }
10642       uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
10643       if (_extensions != null) {
10644         _extensions.WriteTo(output);
10645       }
10646       if (_unknownFields != null) {
10647         _unknownFields.WriteTo(output);
10648       }
10649     #endif
10650     }
10651 
10652     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10653     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10654     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)10655     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
10656       if (HasDeprecated) {
10657         output.WriteRawTag(8);
10658         output.WriteBool(Deprecated);
10659       }
10660       if (features_ != null) {
10661         output.WriteRawTag(18);
10662         output.WriteMessage(Features);
10663       }
10664       if (HasDebugRedact) {
10665         output.WriteRawTag(24);
10666         output.WriteBool(DebugRedact);
10667       }
10668       if (featureSupport_ != null) {
10669         output.WriteRawTag(34);
10670         output.WriteMessage(FeatureSupport);
10671       }
10672       uninterpretedOption_.WriteTo(ref output, _repeated_uninterpretedOption_codec);
10673       if (_extensions != null) {
10674         _extensions.WriteTo(ref output);
10675       }
10676       if (_unknownFields != null) {
10677         _unknownFields.WriteTo(ref output);
10678       }
10679     }
10680     #endif
10681 
10682     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10683     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()10684     public int CalculateSize() {
10685       int size = 0;
10686       if (HasDeprecated) {
10687         size += 1 + 1;
10688       }
10689       if (features_ != null) {
10690         size += 1 + pb::CodedOutputStream.ComputeMessageSize(Features);
10691       }
10692       if (HasDebugRedact) {
10693         size += 1 + 1;
10694       }
10695       if (featureSupport_ != null) {
10696         size += 1 + pb::CodedOutputStream.ComputeMessageSize(FeatureSupport);
10697       }
10698       size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
10699       if (_extensions != null) {
10700         size += _extensions.CalculateSize();
10701       }
10702       if (_unknownFields != null) {
10703         size += _unknownFields.CalculateSize();
10704       }
10705       return size;
10706     }
10707 
10708     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10709     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(EnumValueOptions other)10710     public void MergeFrom(EnumValueOptions other) {
10711       if (other == null) {
10712         return;
10713       }
10714       if (other.HasDeprecated) {
10715         Deprecated = other.Deprecated;
10716       }
10717       if (other.features_ != null) {
10718         if (features_ == null) {
10719           Features = new global::Google.Protobuf.Reflection.FeatureSet();
10720         }
10721         Features.MergeFrom(other.Features);
10722       }
10723       if (other.HasDebugRedact) {
10724         DebugRedact = other.DebugRedact;
10725       }
10726       if (other.featureSupport_ != null) {
10727         if (featureSupport_ == null) {
10728           FeatureSupport = new global::Google.Protobuf.Reflection.FieldOptions.Types.FeatureSupport();
10729         }
10730         FeatureSupport.MergeFrom(other.FeatureSupport);
10731       }
10732       uninterpretedOption_.Add(other.uninterpretedOption_);
10733       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
10734       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
10735     }
10736 
10737     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10738     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)10739     public void MergeFrom(pb::CodedInputStream input) {
10740     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10741       input.ReadRawMessage(this);
10742     #else
10743       uint tag;
10744       while ((tag = input.ReadTag()) != 0) {
10745       if ((tag & 7) == 4) {
10746         // Abort on any end group tag.
10747         return;
10748       }
10749       switch(tag) {
10750           default:
10751             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
10752               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
10753             }
10754             break;
10755           case 8: {
10756             Deprecated = input.ReadBool();
10757             break;
10758           }
10759           case 18: {
10760             if (features_ == null) {
10761               Features = new global::Google.Protobuf.Reflection.FeatureSet();
10762             }
10763             input.ReadMessage(Features);
10764             break;
10765           }
10766           case 24: {
10767             DebugRedact = input.ReadBool();
10768             break;
10769           }
10770           case 34: {
10771             if (featureSupport_ == null) {
10772               FeatureSupport = new global::Google.Protobuf.Reflection.FieldOptions.Types.FeatureSupport();
10773             }
10774             input.ReadMessage(FeatureSupport);
10775             break;
10776           }
10777           case 7994: {
10778             uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
10779             break;
10780           }
10781         }
10782       }
10783     #endif
10784     }
10785 
10786     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10787     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10788     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)10789     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
10790       uint tag;
10791       while ((tag = input.ReadTag()) != 0) {
10792       if ((tag & 7) == 4) {
10793         // Abort on any end group tag.
10794         return;
10795       }
10796       switch(tag) {
10797           default:
10798             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
10799               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
10800             }
10801             break;
10802           case 8: {
10803             Deprecated = input.ReadBool();
10804             break;
10805           }
10806           case 18: {
10807             if (features_ == null) {
10808               Features = new global::Google.Protobuf.Reflection.FeatureSet();
10809             }
10810             input.ReadMessage(Features);
10811             break;
10812           }
10813           case 24: {
10814             DebugRedact = input.ReadBool();
10815             break;
10816           }
10817           case 34: {
10818             if (featureSupport_ == null) {
10819               FeatureSupport = new global::Google.Protobuf.Reflection.FieldOptions.Types.FeatureSupport();
10820             }
10821             input.ReadMessage(FeatureSupport);
10822             break;
10823           }
10824           case 7994: {
10825             uninterpretedOption_.AddEntriesFrom(ref input, _repeated_uninterpretedOption_codec);
10826             break;
10827           }
10828         }
10829       }
10830     }
10831     #endif
10832 
GetExtension(pb::Extension<EnumValueOptions, TValue> extension)10833     public TValue GetExtension<TValue>(pb::Extension<EnumValueOptions, TValue> extension) {
10834       return pb::ExtensionSet.Get(ref _extensions, extension);
10835     }
GetExtension(pb::RepeatedExtension<EnumValueOptions, TValue> extension)10836     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<EnumValueOptions, TValue> extension) {
10837       return pb::ExtensionSet.Get(ref _extensions, extension);
10838     }
GetOrInitializeExtension(pb::RepeatedExtension<EnumValueOptions, TValue> extension)10839     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<EnumValueOptions, TValue> extension) {
10840       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
10841     }
SetExtension(pb::Extension<EnumValueOptions, TValue> extension, TValue value)10842     public void SetExtension<TValue>(pb::Extension<EnumValueOptions, TValue> extension, TValue value) {
10843       pb::ExtensionSet.Set(ref _extensions, extension, value);
10844     }
HasExtension(pb::Extension<EnumValueOptions, TValue> extension)10845     public bool HasExtension<TValue>(pb::Extension<EnumValueOptions, TValue> extension) {
10846       return pb::ExtensionSet.Has(ref _extensions, extension);
10847     }
ClearExtension(pb::Extension<EnumValueOptions, TValue> extension)10848     public void ClearExtension<TValue>(pb::Extension<EnumValueOptions, TValue> extension) {
10849       pb::ExtensionSet.Clear(ref _extensions, extension);
10850     }
ClearExtension(pb::RepeatedExtension<EnumValueOptions, TValue> extension)10851     public void ClearExtension<TValue>(pb::RepeatedExtension<EnumValueOptions, TValue> extension) {
10852       pb::ExtensionSet.Clear(ref _extensions, extension);
10853     }
10854 
10855   }
10856 
10857   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
10858   public sealed partial class ServiceOptions : pb::IExtendableMessage<ServiceOptions>
10859   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
10860       , pb::IBufferMessage
10861   #endif
10862   {
10863     private static readonly pb::MessageParser<ServiceOptions> _parser = new pb::MessageParser<ServiceOptions>(() => new ServiceOptions());
10864     private pb::UnknownFieldSet _unknownFields;
10865     internal pb::ExtensionSet<ServiceOptions> _extensions;
10866     private pb::ExtensionSet<ServiceOptions> _Extensions { get { return _extensions; } }
10867     private int _hasBits0;
10868     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10869     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10870     public static pb::MessageParser<ServiceOptions> Parser { get { return _parser; } }
10871 
10872     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10873     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10874     public static pbr::MessageDescriptor Descriptor {
10875       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[16]; }
10876     }
10877 
10878     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10879     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10880     pbr::MessageDescriptor pb::IMessage.Descriptor {
10881       get { return Descriptor; }
10882     }
10883 
10884     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10885     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ServiceOptions()10886     public ServiceOptions() {
10887       OnConstruction();
10888     }
10889 
OnConstruction()10890     partial void OnConstruction();
10891 
10892     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10893     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ServiceOptions(ServiceOptions other)10894     public ServiceOptions(ServiceOptions other) : this() {
10895       _hasBits0 = other._hasBits0;
10896       features_ = other.features_ != null ? other.features_.Clone() : null;
10897       deprecated_ = other.deprecated_;
10898       uninterpretedOption_ = other.uninterpretedOption_.Clone();
10899       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
10900       _extensions = pb::ExtensionSet.Clone(other._extensions);
10901     }
10902 
10903     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10904     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()10905     public ServiceOptions Clone() {
10906       return new ServiceOptions(this);
10907     }
10908 
10909     /// <summary>Field number for the "features" field.</summary>
10910     public const int FeaturesFieldNumber = 34;
10911     private global::Google.Protobuf.Reflection.FeatureSet features_;
10912     /// <summary>
10913     /// Any features defined in the specific edition.
10914     /// </summary>
10915     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10916     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10917     public global::Google.Protobuf.Reflection.FeatureSet Features {
10918       get { return features_; }
10919       set {
10920         features_ = value;
10921       }
10922     }
10923 
10924     /// <summary>Field number for the "deprecated" field.</summary>
10925     public const int DeprecatedFieldNumber = 33;
10926     private readonly static bool DeprecatedDefaultValue = false;
10927 
10928     private bool deprecated_;
10929     /// <summary>
10930     /// Is this service deprecated?
10931     /// Depending on the target platform, this can emit Deprecated annotations
10932     /// for the service, or it will be completely ignored; in the very least,
10933     /// this is a formalization for deprecating services.
10934     /// </summary>
10935     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10936     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10937     public bool Deprecated {
10938       get { if ((_hasBits0 & 1) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } }
10939       set {
10940         _hasBits0 |= 1;
10941         deprecated_ = value;
10942       }
10943     }
10944     /// <summary>Gets whether the "deprecated" field is set</summary>
10945     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10946     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10947     public bool HasDeprecated {
10948       get { return (_hasBits0 & 1) != 0; }
10949     }
10950     /// <summary>Clears the value of the "deprecated" field</summary>
10951     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10952     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDeprecated()10953     public void ClearDeprecated() {
10954       _hasBits0 &= ~1;
10955     }
10956 
10957     /// <summary>Field number for the "uninterpreted_option" field.</summary>
10958     public const int UninterpretedOptionFieldNumber = 999;
10959     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
10960         = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
10961     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
10962     /// <summary>
10963     /// The parser stores options it doesn't recognize here. See above.
10964     /// </summary>
10965     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10966     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
10967     public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
10968       get { return uninterpretedOption_; }
10969     }
10970 
10971     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10972     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)10973     public override bool Equals(object other) {
10974       return Equals(other as ServiceOptions);
10975     }
10976 
10977     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10978     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(ServiceOptions other)10979     public bool Equals(ServiceOptions other) {
10980       if (ReferenceEquals(other, null)) {
10981         return false;
10982       }
10983       if (ReferenceEquals(other, this)) {
10984         return true;
10985       }
10986       if (!object.Equals(Features, other.Features)) return false;
10987       if (Deprecated != other.Deprecated) return false;
10988       if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
10989       if (!Equals(_extensions, other._extensions)) {
10990         return false;
10991       }
10992       return Equals(_unknownFields, other._unknownFields);
10993     }
10994 
10995     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
10996     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()10997     public override int GetHashCode() {
10998       int hash = 1;
10999       if (features_ != null) hash ^= Features.GetHashCode();
11000       if (HasDeprecated) hash ^= Deprecated.GetHashCode();
11001       hash ^= uninterpretedOption_.GetHashCode();
11002       if (_extensions != null) {
11003         hash ^= _extensions.GetHashCode();
11004       }
11005       if (_unknownFields != null) {
11006         hash ^= _unknownFields.GetHashCode();
11007       }
11008       return hash;
11009     }
11010 
11011     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11012     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()11013     public override string ToString() {
11014       return pb::JsonFormatter.ToDiagnosticString(this);
11015     }
11016 
11017     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11018     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)11019     public void WriteTo(pb::CodedOutputStream output) {
11020     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11021       output.WriteRawMessage(this);
11022     #else
11023       if (HasDeprecated) {
11024         output.WriteRawTag(136, 2);
11025         output.WriteBool(Deprecated);
11026       }
11027       if (features_ != null) {
11028         output.WriteRawTag(146, 2);
11029         output.WriteMessage(Features);
11030       }
11031       uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
11032       if (_extensions != null) {
11033         _extensions.WriteTo(output);
11034       }
11035       if (_unknownFields != null) {
11036         _unknownFields.WriteTo(output);
11037       }
11038     #endif
11039     }
11040 
11041     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11042     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11043     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)11044     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
11045       if (HasDeprecated) {
11046         output.WriteRawTag(136, 2);
11047         output.WriteBool(Deprecated);
11048       }
11049       if (features_ != null) {
11050         output.WriteRawTag(146, 2);
11051         output.WriteMessage(Features);
11052       }
11053       uninterpretedOption_.WriteTo(ref output, _repeated_uninterpretedOption_codec);
11054       if (_extensions != null) {
11055         _extensions.WriteTo(ref output);
11056       }
11057       if (_unknownFields != null) {
11058         _unknownFields.WriteTo(ref output);
11059       }
11060     }
11061     #endif
11062 
11063     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11064     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()11065     public int CalculateSize() {
11066       int size = 0;
11067       if (features_ != null) {
11068         size += 2 + pb::CodedOutputStream.ComputeMessageSize(Features);
11069       }
11070       if (HasDeprecated) {
11071         size += 2 + 1;
11072       }
11073       size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
11074       if (_extensions != null) {
11075         size += _extensions.CalculateSize();
11076       }
11077       if (_unknownFields != null) {
11078         size += _unknownFields.CalculateSize();
11079       }
11080       return size;
11081     }
11082 
11083     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11084     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(ServiceOptions other)11085     public void MergeFrom(ServiceOptions other) {
11086       if (other == null) {
11087         return;
11088       }
11089       if (other.features_ != null) {
11090         if (features_ == null) {
11091           Features = new global::Google.Protobuf.Reflection.FeatureSet();
11092         }
11093         Features.MergeFrom(other.Features);
11094       }
11095       if (other.HasDeprecated) {
11096         Deprecated = other.Deprecated;
11097       }
11098       uninterpretedOption_.Add(other.uninterpretedOption_);
11099       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
11100       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
11101     }
11102 
11103     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11104     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)11105     public void MergeFrom(pb::CodedInputStream input) {
11106     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11107       input.ReadRawMessage(this);
11108     #else
11109       uint tag;
11110       while ((tag = input.ReadTag()) != 0) {
11111       if ((tag & 7) == 4) {
11112         // Abort on any end group tag.
11113         return;
11114       }
11115       switch(tag) {
11116           default:
11117             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
11118               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
11119             }
11120             break;
11121           case 264: {
11122             Deprecated = input.ReadBool();
11123             break;
11124           }
11125           case 274: {
11126             if (features_ == null) {
11127               Features = new global::Google.Protobuf.Reflection.FeatureSet();
11128             }
11129             input.ReadMessage(Features);
11130             break;
11131           }
11132           case 7994: {
11133             uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
11134             break;
11135           }
11136         }
11137       }
11138     #endif
11139     }
11140 
11141     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11142     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11143     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)11144     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
11145       uint tag;
11146       while ((tag = input.ReadTag()) != 0) {
11147       if ((tag & 7) == 4) {
11148         // Abort on any end group tag.
11149         return;
11150       }
11151       switch(tag) {
11152           default:
11153             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
11154               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
11155             }
11156             break;
11157           case 264: {
11158             Deprecated = input.ReadBool();
11159             break;
11160           }
11161           case 274: {
11162             if (features_ == null) {
11163               Features = new global::Google.Protobuf.Reflection.FeatureSet();
11164             }
11165             input.ReadMessage(Features);
11166             break;
11167           }
11168           case 7994: {
11169             uninterpretedOption_.AddEntriesFrom(ref input, _repeated_uninterpretedOption_codec);
11170             break;
11171           }
11172         }
11173       }
11174     }
11175     #endif
11176 
GetExtension(pb::Extension<ServiceOptions, TValue> extension)11177     public TValue GetExtension<TValue>(pb::Extension<ServiceOptions, TValue> extension) {
11178       return pb::ExtensionSet.Get(ref _extensions, extension);
11179     }
GetExtension(pb::RepeatedExtension<ServiceOptions, TValue> extension)11180     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<ServiceOptions, TValue> extension) {
11181       return pb::ExtensionSet.Get(ref _extensions, extension);
11182     }
GetOrInitializeExtension(pb::RepeatedExtension<ServiceOptions, TValue> extension)11183     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<ServiceOptions, TValue> extension) {
11184       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
11185     }
SetExtension(pb::Extension<ServiceOptions, TValue> extension, TValue value)11186     public void SetExtension<TValue>(pb::Extension<ServiceOptions, TValue> extension, TValue value) {
11187       pb::ExtensionSet.Set(ref _extensions, extension, value);
11188     }
HasExtension(pb::Extension<ServiceOptions, TValue> extension)11189     public bool HasExtension<TValue>(pb::Extension<ServiceOptions, TValue> extension) {
11190       return pb::ExtensionSet.Has(ref _extensions, extension);
11191     }
ClearExtension(pb::Extension<ServiceOptions, TValue> extension)11192     public void ClearExtension<TValue>(pb::Extension<ServiceOptions, TValue> extension) {
11193       pb::ExtensionSet.Clear(ref _extensions, extension);
11194     }
ClearExtension(pb::RepeatedExtension<ServiceOptions, TValue> extension)11195     public void ClearExtension<TValue>(pb::RepeatedExtension<ServiceOptions, TValue> extension) {
11196       pb::ExtensionSet.Clear(ref _extensions, extension);
11197     }
11198 
11199   }
11200 
11201   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
11202   public sealed partial class MethodOptions : pb::IExtendableMessage<MethodOptions>
11203   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11204       , pb::IBufferMessage
11205   #endif
11206   {
11207     private static readonly pb::MessageParser<MethodOptions> _parser = new pb::MessageParser<MethodOptions>(() => new MethodOptions());
11208     private pb::UnknownFieldSet _unknownFields;
11209     internal pb::ExtensionSet<MethodOptions> _extensions;
11210     private pb::ExtensionSet<MethodOptions> _Extensions { get { return _extensions; } }
11211     private int _hasBits0;
11212     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11213     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11214     public static pb::MessageParser<MethodOptions> Parser { get { return _parser; } }
11215 
11216     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11217     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11218     public static pbr::MessageDescriptor Descriptor {
11219       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[17]; }
11220     }
11221 
11222     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11223     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11224     pbr::MessageDescriptor pb::IMessage.Descriptor {
11225       get { return Descriptor; }
11226     }
11227 
11228     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11229     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MethodOptions()11230     public MethodOptions() {
11231       OnConstruction();
11232     }
11233 
OnConstruction()11234     partial void OnConstruction();
11235 
11236     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11237     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MethodOptions(MethodOptions other)11238     public MethodOptions(MethodOptions other) : this() {
11239       _hasBits0 = other._hasBits0;
11240       deprecated_ = other.deprecated_;
11241       idempotencyLevel_ = other.idempotencyLevel_;
11242       features_ = other.features_ != null ? other.features_.Clone() : null;
11243       uninterpretedOption_ = other.uninterpretedOption_.Clone();
11244       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
11245       _extensions = pb::ExtensionSet.Clone(other._extensions);
11246     }
11247 
11248     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11249     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()11250     public MethodOptions Clone() {
11251       return new MethodOptions(this);
11252     }
11253 
11254     /// <summary>Field number for the "deprecated" field.</summary>
11255     public const int DeprecatedFieldNumber = 33;
11256     private readonly static bool DeprecatedDefaultValue = false;
11257 
11258     private bool deprecated_;
11259     /// <summary>
11260     /// Is this method deprecated?
11261     /// Depending on the target platform, this can emit Deprecated annotations
11262     /// for the method, or it will be completely ignored; in the very least,
11263     /// this is a formalization for deprecating methods.
11264     /// </summary>
11265     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11266     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11267     public bool Deprecated {
11268       get { if ((_hasBits0 & 1) != 0) { return deprecated_; } else { return DeprecatedDefaultValue; } }
11269       set {
11270         _hasBits0 |= 1;
11271         deprecated_ = value;
11272       }
11273     }
11274     /// <summary>Gets whether the "deprecated" field is set</summary>
11275     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11276     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11277     public bool HasDeprecated {
11278       get { return (_hasBits0 & 1) != 0; }
11279     }
11280     /// <summary>Clears the value of the "deprecated" field</summary>
11281     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11282     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDeprecated()11283     public void ClearDeprecated() {
11284       _hasBits0 &= ~1;
11285     }
11286 
11287     /// <summary>Field number for the "idempotency_level" field.</summary>
11288     public const int IdempotencyLevelFieldNumber = 34;
11289     private readonly static global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel IdempotencyLevelDefaultValue = global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel.IdempotencyUnknown;
11290 
11291     private global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel idempotencyLevel_;
11292     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11293     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11294     public global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel IdempotencyLevel {
11295       get { if ((_hasBits0 & 2) != 0) { return idempotencyLevel_; } else { return IdempotencyLevelDefaultValue; } }
11296       set {
11297         _hasBits0 |= 2;
11298         idempotencyLevel_ = value;
11299       }
11300     }
11301     /// <summary>Gets whether the "idempotency_level" field is set</summary>
11302     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11303     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11304     public bool HasIdempotencyLevel {
11305       get { return (_hasBits0 & 2) != 0; }
11306     }
11307     /// <summary>Clears the value of the "idempotency_level" field</summary>
11308     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11309     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearIdempotencyLevel()11310     public void ClearIdempotencyLevel() {
11311       _hasBits0 &= ~2;
11312     }
11313 
11314     /// <summary>Field number for the "features" field.</summary>
11315     public const int FeaturesFieldNumber = 35;
11316     private global::Google.Protobuf.Reflection.FeatureSet features_;
11317     /// <summary>
11318     /// Any features defined in the specific edition.
11319     /// </summary>
11320     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11321     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11322     public global::Google.Protobuf.Reflection.FeatureSet Features {
11323       get { return features_; }
11324       set {
11325         features_ = value;
11326       }
11327     }
11328 
11329     /// <summary>Field number for the "uninterpreted_option" field.</summary>
11330     public const int UninterpretedOptionFieldNumber = 999;
11331     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
11332         = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
11333     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
11334     /// <summary>
11335     /// The parser stores options it doesn't recognize here. See above.
11336     /// </summary>
11337     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11338     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11339     public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
11340       get { return uninterpretedOption_; }
11341     }
11342 
11343     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11344     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)11345     public override bool Equals(object other) {
11346       return Equals(other as MethodOptions);
11347     }
11348 
11349     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11350     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(MethodOptions other)11351     public bool Equals(MethodOptions other) {
11352       if (ReferenceEquals(other, null)) {
11353         return false;
11354       }
11355       if (ReferenceEquals(other, this)) {
11356         return true;
11357       }
11358       if (Deprecated != other.Deprecated) return false;
11359       if (IdempotencyLevel != other.IdempotencyLevel) return false;
11360       if (!object.Equals(Features, other.Features)) return false;
11361       if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
11362       if (!Equals(_extensions, other._extensions)) {
11363         return false;
11364       }
11365       return Equals(_unknownFields, other._unknownFields);
11366     }
11367 
11368     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11369     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()11370     public override int GetHashCode() {
11371       int hash = 1;
11372       if (HasDeprecated) hash ^= Deprecated.GetHashCode();
11373       if (HasIdempotencyLevel) hash ^= IdempotencyLevel.GetHashCode();
11374       if (features_ != null) hash ^= Features.GetHashCode();
11375       hash ^= uninterpretedOption_.GetHashCode();
11376       if (_extensions != null) {
11377         hash ^= _extensions.GetHashCode();
11378       }
11379       if (_unknownFields != null) {
11380         hash ^= _unknownFields.GetHashCode();
11381       }
11382       return hash;
11383     }
11384 
11385     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11386     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()11387     public override string ToString() {
11388       return pb::JsonFormatter.ToDiagnosticString(this);
11389     }
11390 
11391     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11392     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)11393     public void WriteTo(pb::CodedOutputStream output) {
11394     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11395       output.WriteRawMessage(this);
11396     #else
11397       if (HasDeprecated) {
11398         output.WriteRawTag(136, 2);
11399         output.WriteBool(Deprecated);
11400       }
11401       if (HasIdempotencyLevel) {
11402         output.WriteRawTag(144, 2);
11403         output.WriteEnum((int) IdempotencyLevel);
11404       }
11405       if (features_ != null) {
11406         output.WriteRawTag(154, 2);
11407         output.WriteMessage(Features);
11408       }
11409       uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
11410       if (_extensions != null) {
11411         _extensions.WriteTo(output);
11412       }
11413       if (_unknownFields != null) {
11414         _unknownFields.WriteTo(output);
11415       }
11416     #endif
11417     }
11418 
11419     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11420     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11421     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)11422     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
11423       if (HasDeprecated) {
11424         output.WriteRawTag(136, 2);
11425         output.WriteBool(Deprecated);
11426       }
11427       if (HasIdempotencyLevel) {
11428         output.WriteRawTag(144, 2);
11429         output.WriteEnum((int) IdempotencyLevel);
11430       }
11431       if (features_ != null) {
11432         output.WriteRawTag(154, 2);
11433         output.WriteMessage(Features);
11434       }
11435       uninterpretedOption_.WriteTo(ref output, _repeated_uninterpretedOption_codec);
11436       if (_extensions != null) {
11437         _extensions.WriteTo(ref output);
11438       }
11439       if (_unknownFields != null) {
11440         _unknownFields.WriteTo(ref output);
11441       }
11442     }
11443     #endif
11444 
11445     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11446     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()11447     public int CalculateSize() {
11448       int size = 0;
11449       if (HasDeprecated) {
11450         size += 2 + 1;
11451       }
11452       if (HasIdempotencyLevel) {
11453         size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) IdempotencyLevel);
11454       }
11455       if (features_ != null) {
11456         size += 2 + pb::CodedOutputStream.ComputeMessageSize(Features);
11457       }
11458       size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
11459       if (_extensions != null) {
11460         size += _extensions.CalculateSize();
11461       }
11462       if (_unknownFields != null) {
11463         size += _unknownFields.CalculateSize();
11464       }
11465       return size;
11466     }
11467 
11468     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11469     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(MethodOptions other)11470     public void MergeFrom(MethodOptions other) {
11471       if (other == null) {
11472         return;
11473       }
11474       if (other.HasDeprecated) {
11475         Deprecated = other.Deprecated;
11476       }
11477       if (other.HasIdempotencyLevel) {
11478         IdempotencyLevel = other.IdempotencyLevel;
11479       }
11480       if (other.features_ != null) {
11481         if (features_ == null) {
11482           Features = new global::Google.Protobuf.Reflection.FeatureSet();
11483         }
11484         Features.MergeFrom(other.Features);
11485       }
11486       uninterpretedOption_.Add(other.uninterpretedOption_);
11487       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
11488       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
11489     }
11490 
11491     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11492     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)11493     public void MergeFrom(pb::CodedInputStream input) {
11494     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11495       input.ReadRawMessage(this);
11496     #else
11497       uint tag;
11498       while ((tag = input.ReadTag()) != 0) {
11499       if ((tag & 7) == 4) {
11500         // Abort on any end group tag.
11501         return;
11502       }
11503       switch(tag) {
11504           default:
11505             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
11506               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
11507             }
11508             break;
11509           case 264: {
11510             Deprecated = input.ReadBool();
11511             break;
11512           }
11513           case 272: {
11514             IdempotencyLevel = (global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel) input.ReadEnum();
11515             break;
11516           }
11517           case 282: {
11518             if (features_ == null) {
11519               Features = new global::Google.Protobuf.Reflection.FeatureSet();
11520             }
11521             input.ReadMessage(Features);
11522             break;
11523           }
11524           case 7994: {
11525             uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
11526             break;
11527           }
11528         }
11529       }
11530     #endif
11531     }
11532 
11533     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11534     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11535     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)11536     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
11537       uint tag;
11538       while ((tag = input.ReadTag()) != 0) {
11539       if ((tag & 7) == 4) {
11540         // Abort on any end group tag.
11541         return;
11542       }
11543       switch(tag) {
11544           default:
11545             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
11546               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
11547             }
11548             break;
11549           case 264: {
11550             Deprecated = input.ReadBool();
11551             break;
11552           }
11553           case 272: {
11554             IdempotencyLevel = (global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel) input.ReadEnum();
11555             break;
11556           }
11557           case 282: {
11558             if (features_ == null) {
11559               Features = new global::Google.Protobuf.Reflection.FeatureSet();
11560             }
11561             input.ReadMessage(Features);
11562             break;
11563           }
11564           case 7994: {
11565             uninterpretedOption_.AddEntriesFrom(ref input, _repeated_uninterpretedOption_codec);
11566             break;
11567           }
11568         }
11569       }
11570     }
11571     #endif
11572 
GetExtension(pb::Extension<MethodOptions, TValue> extension)11573     public TValue GetExtension<TValue>(pb::Extension<MethodOptions, TValue> extension) {
11574       return pb::ExtensionSet.Get(ref _extensions, extension);
11575     }
GetExtension(pb::RepeatedExtension<MethodOptions, TValue> extension)11576     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<MethodOptions, TValue> extension) {
11577       return pb::ExtensionSet.Get(ref _extensions, extension);
11578     }
GetOrInitializeExtension(pb::RepeatedExtension<MethodOptions, TValue> extension)11579     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<MethodOptions, TValue> extension) {
11580       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
11581     }
SetExtension(pb::Extension<MethodOptions, TValue> extension, TValue value)11582     public void SetExtension<TValue>(pb::Extension<MethodOptions, TValue> extension, TValue value) {
11583       pb::ExtensionSet.Set(ref _extensions, extension, value);
11584     }
HasExtension(pb::Extension<MethodOptions, TValue> extension)11585     public bool HasExtension<TValue>(pb::Extension<MethodOptions, TValue> extension) {
11586       return pb::ExtensionSet.Has(ref _extensions, extension);
11587     }
ClearExtension(pb::Extension<MethodOptions, TValue> extension)11588     public void ClearExtension<TValue>(pb::Extension<MethodOptions, TValue> extension) {
11589       pb::ExtensionSet.Clear(ref _extensions, extension);
11590     }
ClearExtension(pb::RepeatedExtension<MethodOptions, TValue> extension)11591     public void ClearExtension<TValue>(pb::RepeatedExtension<MethodOptions, TValue> extension) {
11592       pb::ExtensionSet.Clear(ref _extensions, extension);
11593     }
11594 
11595     #region Nested types
11596     /// <summary>Container for nested types declared in the MethodOptions message type.</summary>
11597     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11598     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11599     public static partial class Types {
11600       /// <summary>
11601       /// Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
11602       /// or neither? HTTP based RPC implementation may choose GET verb for safe
11603       /// methods, and PUT verb for idempotent methods instead of the default POST.
11604       /// </summary>
11605       public enum IdempotencyLevel {
11606         [pbr::OriginalName("IDEMPOTENCY_UNKNOWN")] IdempotencyUnknown = 0,
11607         /// <summary>
11608         /// implies idempotent
11609         /// </summary>
11610         [pbr::OriginalName("NO_SIDE_EFFECTS")] NoSideEffects = 1,
11611         /// <summary>
11612         /// idempotent, but may have side effects
11613         /// </summary>
11614         [pbr::OriginalName("IDEMPOTENT")] Idempotent = 2,
11615       }
11616 
11617     }
11618     #endregion
11619 
11620   }
11621 
11622   /// <summary>
11623   /// A message representing a option the parser does not recognize. This only
11624   /// appears in options protos created by the compiler::Parser class.
11625   /// DescriptorPool resolves these when building Descriptor objects. Therefore,
11626   /// options protos in descriptor objects (e.g. returned by Descriptor::options(),
11627   /// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
11628   /// in them.
11629   /// </summary>
11630   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
11631   public sealed partial class UninterpretedOption : pb::IMessage<UninterpretedOption>
11632   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11633       , pb::IBufferMessage
11634   #endif
11635   {
11636     private static readonly pb::MessageParser<UninterpretedOption> _parser = new pb::MessageParser<UninterpretedOption>(() => new UninterpretedOption());
11637     private pb::UnknownFieldSet _unknownFields;
11638     private int _hasBits0;
11639     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11640     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11641     public static pb::MessageParser<UninterpretedOption> Parser { get { return _parser; } }
11642 
11643     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11644     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11645     public static pbr::MessageDescriptor Descriptor {
11646       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[18]; }
11647     }
11648 
11649     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11650     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11651     pbr::MessageDescriptor pb::IMessage.Descriptor {
11652       get { return Descriptor; }
11653     }
11654 
11655     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11656     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
UninterpretedOption()11657     public UninterpretedOption() {
11658       OnConstruction();
11659     }
11660 
OnConstruction()11661     partial void OnConstruction();
11662 
11663     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11664     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
UninterpretedOption(UninterpretedOption other)11665     public UninterpretedOption(UninterpretedOption other) : this() {
11666       _hasBits0 = other._hasBits0;
11667       name_ = other.name_.Clone();
11668       identifierValue_ = other.identifierValue_;
11669       positiveIntValue_ = other.positiveIntValue_;
11670       negativeIntValue_ = other.negativeIntValue_;
11671       doubleValue_ = other.doubleValue_;
11672       stringValue_ = other.stringValue_;
11673       aggregateValue_ = other.aggregateValue_;
11674       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
11675     }
11676 
11677     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11678     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()11679     public UninterpretedOption Clone() {
11680       return new UninterpretedOption(this);
11681     }
11682 
11683     /// <summary>Field number for the "name" field.</summary>
11684     public const int NameFieldNumber = 2;
11685     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> _repeated_name_codec
11686         = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart.Parser);
11687     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> name_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart>();
11688     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11689     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11690     public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> Name {
11691       get { return name_; }
11692     }
11693 
11694     /// <summary>Field number for the "identifier_value" field.</summary>
11695     public const int IdentifierValueFieldNumber = 3;
11696     private readonly static string IdentifierValueDefaultValue = "";
11697 
11698     private string identifierValue_;
11699     /// <summary>
11700     /// The value of the uninterpreted option, in whatever type the tokenizer
11701     /// identified it as during parsing. Exactly one of these should be set.
11702     /// </summary>
11703     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11704     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11705     public string IdentifierValue {
11706       get { return identifierValue_ ?? IdentifierValueDefaultValue; }
11707       set {
11708         identifierValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
11709       }
11710     }
11711     /// <summary>Gets whether the "identifier_value" field is set</summary>
11712     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11713     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11714     public bool HasIdentifierValue {
11715       get { return identifierValue_ != null; }
11716     }
11717     /// <summary>Clears the value of the "identifier_value" field</summary>
11718     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11719     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearIdentifierValue()11720     public void ClearIdentifierValue() {
11721       identifierValue_ = null;
11722     }
11723 
11724     /// <summary>Field number for the "positive_int_value" field.</summary>
11725     public const int PositiveIntValueFieldNumber = 4;
11726     private readonly static ulong PositiveIntValueDefaultValue = 0UL;
11727 
11728     private ulong positiveIntValue_;
11729     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11730     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11731     public ulong PositiveIntValue {
11732       get { if ((_hasBits0 & 1) != 0) { return positiveIntValue_; } else { return PositiveIntValueDefaultValue; } }
11733       set {
11734         _hasBits0 |= 1;
11735         positiveIntValue_ = value;
11736       }
11737     }
11738     /// <summary>Gets whether the "positive_int_value" field is set</summary>
11739     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11740     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11741     public bool HasPositiveIntValue {
11742       get { return (_hasBits0 & 1) != 0; }
11743     }
11744     /// <summary>Clears the value of the "positive_int_value" field</summary>
11745     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11746     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearPositiveIntValue()11747     public void ClearPositiveIntValue() {
11748       _hasBits0 &= ~1;
11749     }
11750 
11751     /// <summary>Field number for the "negative_int_value" field.</summary>
11752     public const int NegativeIntValueFieldNumber = 5;
11753     private readonly static long NegativeIntValueDefaultValue = 0L;
11754 
11755     private long negativeIntValue_;
11756     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11757     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11758     public long NegativeIntValue {
11759       get { if ((_hasBits0 & 2) != 0) { return negativeIntValue_; } else { return NegativeIntValueDefaultValue; } }
11760       set {
11761         _hasBits0 |= 2;
11762         negativeIntValue_ = value;
11763       }
11764     }
11765     /// <summary>Gets whether the "negative_int_value" field is set</summary>
11766     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11767     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11768     public bool HasNegativeIntValue {
11769       get { return (_hasBits0 & 2) != 0; }
11770     }
11771     /// <summary>Clears the value of the "negative_int_value" field</summary>
11772     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11773     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearNegativeIntValue()11774     public void ClearNegativeIntValue() {
11775       _hasBits0 &= ~2;
11776     }
11777 
11778     /// <summary>Field number for the "double_value" field.</summary>
11779     public const int DoubleValueFieldNumber = 6;
11780     private readonly static double DoubleValueDefaultValue = 0D;
11781 
11782     private double doubleValue_;
11783     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11784     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11785     public double DoubleValue {
11786       get { if ((_hasBits0 & 4) != 0) { return doubleValue_; } else { return DoubleValueDefaultValue; } }
11787       set {
11788         _hasBits0 |= 4;
11789         doubleValue_ = value;
11790       }
11791     }
11792     /// <summary>Gets whether the "double_value" field is set</summary>
11793     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11794     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11795     public bool HasDoubleValue {
11796       get { return (_hasBits0 & 4) != 0; }
11797     }
11798     /// <summary>Clears the value of the "double_value" field</summary>
11799     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11800     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearDoubleValue()11801     public void ClearDoubleValue() {
11802       _hasBits0 &= ~4;
11803     }
11804 
11805     /// <summary>Field number for the "string_value" field.</summary>
11806     public const int StringValueFieldNumber = 7;
11807     private readonly static pb::ByteString StringValueDefaultValue = pb::ByteString.Empty;
11808 
11809     private pb::ByteString stringValue_;
11810     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11811     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11812     public pb::ByteString StringValue {
11813       get { return stringValue_ ?? StringValueDefaultValue; }
11814       set {
11815         stringValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
11816       }
11817     }
11818     /// <summary>Gets whether the "string_value" field is set</summary>
11819     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11820     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11821     public bool HasStringValue {
11822       get { return stringValue_ != null; }
11823     }
11824     /// <summary>Clears the value of the "string_value" field</summary>
11825     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11826     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearStringValue()11827     public void ClearStringValue() {
11828       stringValue_ = null;
11829     }
11830 
11831     /// <summary>Field number for the "aggregate_value" field.</summary>
11832     public const int AggregateValueFieldNumber = 8;
11833     private readonly static string AggregateValueDefaultValue = "";
11834 
11835     private string aggregateValue_;
11836     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11837     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11838     public string AggregateValue {
11839       get { return aggregateValue_ ?? AggregateValueDefaultValue; }
11840       set {
11841         aggregateValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
11842       }
11843     }
11844     /// <summary>Gets whether the "aggregate_value" field is set</summary>
11845     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11846     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
11847     public bool HasAggregateValue {
11848       get { return aggregateValue_ != null; }
11849     }
11850     /// <summary>Clears the value of the "aggregate_value" field</summary>
11851     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11852     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearAggregateValue()11853     public void ClearAggregateValue() {
11854       aggregateValue_ = null;
11855     }
11856 
11857     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11858     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)11859     public override bool Equals(object other) {
11860       return Equals(other as UninterpretedOption);
11861     }
11862 
11863     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11864     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(UninterpretedOption other)11865     public bool Equals(UninterpretedOption other) {
11866       if (ReferenceEquals(other, null)) {
11867         return false;
11868       }
11869       if (ReferenceEquals(other, this)) {
11870         return true;
11871       }
11872       if(!name_.Equals(other.name_)) return false;
11873       if (IdentifierValue != other.IdentifierValue) return false;
11874       if (PositiveIntValue != other.PositiveIntValue) return false;
11875       if (NegativeIntValue != other.NegativeIntValue) return false;
11876       if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(DoubleValue, other.DoubleValue)) return false;
11877       if (StringValue != other.StringValue) return false;
11878       if (AggregateValue != other.AggregateValue) return false;
11879       return Equals(_unknownFields, other._unknownFields);
11880     }
11881 
11882     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11883     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()11884     public override int GetHashCode() {
11885       int hash = 1;
11886       hash ^= name_.GetHashCode();
11887       if (HasIdentifierValue) hash ^= IdentifierValue.GetHashCode();
11888       if (HasPositiveIntValue) hash ^= PositiveIntValue.GetHashCode();
11889       if (HasNegativeIntValue) hash ^= NegativeIntValue.GetHashCode();
11890       if (HasDoubleValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleValue);
11891       if (HasStringValue) hash ^= StringValue.GetHashCode();
11892       if (HasAggregateValue) hash ^= AggregateValue.GetHashCode();
11893       if (_unknownFields != null) {
11894         hash ^= _unknownFields.GetHashCode();
11895       }
11896       return hash;
11897     }
11898 
11899     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11900     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()11901     public override string ToString() {
11902       return pb::JsonFormatter.ToDiagnosticString(this);
11903     }
11904 
11905     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11906     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)11907     public void WriteTo(pb::CodedOutputStream output) {
11908     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11909       output.WriteRawMessage(this);
11910     #else
11911       name_.WriteTo(output, _repeated_name_codec);
11912       if (HasIdentifierValue) {
11913         output.WriteRawTag(26);
11914         output.WriteString(IdentifierValue);
11915       }
11916       if (HasPositiveIntValue) {
11917         output.WriteRawTag(32);
11918         output.WriteUInt64(PositiveIntValue);
11919       }
11920       if (HasNegativeIntValue) {
11921         output.WriteRawTag(40);
11922         output.WriteInt64(NegativeIntValue);
11923       }
11924       if (HasDoubleValue) {
11925         output.WriteRawTag(49);
11926         output.WriteDouble(DoubleValue);
11927       }
11928       if (HasStringValue) {
11929         output.WriteRawTag(58);
11930         output.WriteBytes(StringValue);
11931       }
11932       if (HasAggregateValue) {
11933         output.WriteRawTag(66);
11934         output.WriteString(AggregateValue);
11935       }
11936       if (_unknownFields != null) {
11937         _unknownFields.WriteTo(output);
11938       }
11939     #endif
11940     }
11941 
11942     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
11943     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11944     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)11945     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
11946       name_.WriteTo(ref output, _repeated_name_codec);
11947       if (HasIdentifierValue) {
11948         output.WriteRawTag(26);
11949         output.WriteString(IdentifierValue);
11950       }
11951       if (HasPositiveIntValue) {
11952         output.WriteRawTag(32);
11953         output.WriteUInt64(PositiveIntValue);
11954       }
11955       if (HasNegativeIntValue) {
11956         output.WriteRawTag(40);
11957         output.WriteInt64(NegativeIntValue);
11958       }
11959       if (HasDoubleValue) {
11960         output.WriteRawTag(49);
11961         output.WriteDouble(DoubleValue);
11962       }
11963       if (HasStringValue) {
11964         output.WriteRawTag(58);
11965         output.WriteBytes(StringValue);
11966       }
11967       if (HasAggregateValue) {
11968         output.WriteRawTag(66);
11969         output.WriteString(AggregateValue);
11970       }
11971       if (_unknownFields != null) {
11972         _unknownFields.WriteTo(ref output);
11973       }
11974     }
11975     #endif
11976 
11977     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
11978     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()11979     public int CalculateSize() {
11980       int size = 0;
11981       size += name_.CalculateSize(_repeated_name_codec);
11982       if (HasIdentifierValue) {
11983         size += 1 + pb::CodedOutputStream.ComputeStringSize(IdentifierValue);
11984       }
11985       if (HasPositiveIntValue) {
11986         size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PositiveIntValue);
11987       }
11988       if (HasNegativeIntValue) {
11989         size += 1 + pb::CodedOutputStream.ComputeInt64Size(NegativeIntValue);
11990       }
11991       if (HasDoubleValue) {
11992         size += 1 + 8;
11993       }
11994       if (HasStringValue) {
11995         size += 1 + pb::CodedOutputStream.ComputeBytesSize(StringValue);
11996       }
11997       if (HasAggregateValue) {
11998         size += 1 + pb::CodedOutputStream.ComputeStringSize(AggregateValue);
11999       }
12000       if (_unknownFields != null) {
12001         size += _unknownFields.CalculateSize();
12002       }
12003       return size;
12004     }
12005 
12006     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12007     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(UninterpretedOption other)12008     public void MergeFrom(UninterpretedOption other) {
12009       if (other == null) {
12010         return;
12011       }
12012       name_.Add(other.name_);
12013       if (other.HasIdentifierValue) {
12014         IdentifierValue = other.IdentifierValue;
12015       }
12016       if (other.HasPositiveIntValue) {
12017         PositiveIntValue = other.PositiveIntValue;
12018       }
12019       if (other.HasNegativeIntValue) {
12020         NegativeIntValue = other.NegativeIntValue;
12021       }
12022       if (other.HasDoubleValue) {
12023         DoubleValue = other.DoubleValue;
12024       }
12025       if (other.HasStringValue) {
12026         StringValue = other.StringValue;
12027       }
12028       if (other.HasAggregateValue) {
12029         AggregateValue = other.AggregateValue;
12030       }
12031       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
12032     }
12033 
12034     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12035     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)12036     public void MergeFrom(pb::CodedInputStream input) {
12037     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12038       input.ReadRawMessage(this);
12039     #else
12040       uint tag;
12041       while ((tag = input.ReadTag()) != 0) {
12042       if ((tag & 7) == 4) {
12043         // Abort on any end group tag.
12044         return;
12045       }
12046       switch(tag) {
12047           default:
12048             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
12049             break;
12050           case 18: {
12051             name_.AddEntriesFrom(input, _repeated_name_codec);
12052             break;
12053           }
12054           case 26: {
12055             IdentifierValue = input.ReadString();
12056             break;
12057           }
12058           case 32: {
12059             PositiveIntValue = input.ReadUInt64();
12060             break;
12061           }
12062           case 40: {
12063             NegativeIntValue = input.ReadInt64();
12064             break;
12065           }
12066           case 49: {
12067             DoubleValue = input.ReadDouble();
12068             break;
12069           }
12070           case 58: {
12071             StringValue = input.ReadBytes();
12072             break;
12073           }
12074           case 66: {
12075             AggregateValue = input.ReadString();
12076             break;
12077           }
12078         }
12079       }
12080     #endif
12081     }
12082 
12083     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12084     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12085     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)12086     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
12087       uint tag;
12088       while ((tag = input.ReadTag()) != 0) {
12089       if ((tag & 7) == 4) {
12090         // Abort on any end group tag.
12091         return;
12092       }
12093       switch(tag) {
12094           default:
12095             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
12096             break;
12097           case 18: {
12098             name_.AddEntriesFrom(ref input, _repeated_name_codec);
12099             break;
12100           }
12101           case 26: {
12102             IdentifierValue = input.ReadString();
12103             break;
12104           }
12105           case 32: {
12106             PositiveIntValue = input.ReadUInt64();
12107             break;
12108           }
12109           case 40: {
12110             NegativeIntValue = input.ReadInt64();
12111             break;
12112           }
12113           case 49: {
12114             DoubleValue = input.ReadDouble();
12115             break;
12116           }
12117           case 58: {
12118             StringValue = input.ReadBytes();
12119             break;
12120           }
12121           case 66: {
12122             AggregateValue = input.ReadString();
12123             break;
12124           }
12125         }
12126       }
12127     }
12128     #endif
12129 
12130     #region Nested types
12131     /// <summary>Container for nested types declared in the UninterpretedOption message type.</summary>
12132     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12133     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12134     public static partial class Types {
12135       /// <summary>
12136       /// The name of the uninterpreted option.  Each string represents a segment in
12137       /// a dot-separated name.  is_extension is true iff a segment represents an
12138       /// extension (denoted with parentheses in options specs in .proto files).
12139       /// E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents
12140       /// "foo.(bar.baz).moo".
12141       /// </summary>
12142       [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
12143       public sealed partial class NamePart : pb::IMessage<NamePart>
12144       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12145           , pb::IBufferMessage
12146       #endif
12147       {
12148         private static readonly pb::MessageParser<NamePart> _parser = new pb::MessageParser<NamePart>(() => new NamePart());
12149         private pb::UnknownFieldSet _unknownFields;
12150         private int _hasBits0;
12151         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12152         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12153         public static pb::MessageParser<NamePart> Parser { get { return _parser; } }
12154 
12155         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12156         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12157         public static pbr::MessageDescriptor Descriptor {
12158           get { return global::Google.Protobuf.Reflection.UninterpretedOption.Descriptor.NestedTypes[0]; }
12159         }
12160 
12161         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12162         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12163         pbr::MessageDescriptor pb::IMessage.Descriptor {
12164           get { return Descriptor; }
12165         }
12166 
12167         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12168         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NamePart()12169         public NamePart() {
12170           OnConstruction();
12171         }
12172 
OnConstruction()12173         partial void OnConstruction();
12174 
12175         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12176         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
NamePart(NamePart other)12177         public NamePart(NamePart other) : this() {
12178           _hasBits0 = other._hasBits0;
12179           namePart_ = other.namePart_;
12180           isExtension_ = other.isExtension_;
12181           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
12182         }
12183 
12184         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12185         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()12186         public NamePart Clone() {
12187           return new NamePart(this);
12188         }
12189 
12190         /// <summary>Field number for the "name_part" field.</summary>
12191         public const int NamePart_FieldNumber = 1;
12192         private readonly static string NamePart_DefaultValue = "";
12193 
12194         private string namePart_;
12195         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12196         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12197         public string NamePart_ {
12198           get { return namePart_ ?? NamePart_DefaultValue; }
12199           set {
12200             namePart_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
12201           }
12202         }
12203         /// <summary>Gets whether the "name_part" field is set</summary>
12204         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12205         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12206         public bool HasNamePart_ {
12207           get { return namePart_ != null; }
12208         }
12209         /// <summary>Clears the value of the "name_part" field</summary>
12210         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12211         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearNamePart_()12212         public void ClearNamePart_() {
12213           namePart_ = null;
12214         }
12215 
12216         /// <summary>Field number for the "is_extension" field.</summary>
12217         public const int IsExtensionFieldNumber = 2;
12218         private readonly static bool IsExtensionDefaultValue = false;
12219 
12220         private bool isExtension_;
12221         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12222         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12223         public bool IsExtension {
12224           get { if ((_hasBits0 & 1) != 0) { return isExtension_; } else { return IsExtensionDefaultValue; } }
12225           set {
12226             _hasBits0 |= 1;
12227             isExtension_ = value;
12228           }
12229         }
12230         /// <summary>Gets whether the "is_extension" field is set</summary>
12231         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12232         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12233         public bool HasIsExtension {
12234           get { return (_hasBits0 & 1) != 0; }
12235         }
12236         /// <summary>Clears the value of the "is_extension" field</summary>
12237         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12238         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearIsExtension()12239         public void ClearIsExtension() {
12240           _hasBits0 &= ~1;
12241         }
12242 
12243         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12244         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)12245         public override bool Equals(object other) {
12246           return Equals(other as NamePart);
12247         }
12248 
12249         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12250         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(NamePart other)12251         public bool Equals(NamePart other) {
12252           if (ReferenceEquals(other, null)) {
12253             return false;
12254           }
12255           if (ReferenceEquals(other, this)) {
12256             return true;
12257           }
12258           if (NamePart_ != other.NamePart_) return false;
12259           if (IsExtension != other.IsExtension) return false;
12260           return Equals(_unknownFields, other._unknownFields);
12261         }
12262 
12263         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12264         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()12265         public override int GetHashCode() {
12266           int hash = 1;
12267           if (HasNamePart_) hash ^= NamePart_.GetHashCode();
12268           if (HasIsExtension) hash ^= IsExtension.GetHashCode();
12269           if (_unknownFields != null) {
12270             hash ^= _unknownFields.GetHashCode();
12271           }
12272           return hash;
12273         }
12274 
12275         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12276         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()12277         public override string ToString() {
12278           return pb::JsonFormatter.ToDiagnosticString(this);
12279         }
12280 
12281         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12282         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)12283         public void WriteTo(pb::CodedOutputStream output) {
12284         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12285           output.WriteRawMessage(this);
12286         #else
12287           if (HasNamePart_) {
12288             output.WriteRawTag(10);
12289             output.WriteString(NamePart_);
12290           }
12291           if (HasIsExtension) {
12292             output.WriteRawTag(16);
12293             output.WriteBool(IsExtension);
12294           }
12295           if (_unknownFields != null) {
12296             _unknownFields.WriteTo(output);
12297           }
12298         #endif
12299         }
12300 
12301         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12302         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12303         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)12304         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
12305           if (HasNamePart_) {
12306             output.WriteRawTag(10);
12307             output.WriteString(NamePart_);
12308           }
12309           if (HasIsExtension) {
12310             output.WriteRawTag(16);
12311             output.WriteBool(IsExtension);
12312           }
12313           if (_unknownFields != null) {
12314             _unknownFields.WriteTo(ref output);
12315           }
12316         }
12317         #endif
12318 
12319         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12320         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()12321         public int CalculateSize() {
12322           int size = 0;
12323           if (HasNamePart_) {
12324             size += 1 + pb::CodedOutputStream.ComputeStringSize(NamePart_);
12325           }
12326           if (HasIsExtension) {
12327             size += 1 + 1;
12328           }
12329           if (_unknownFields != null) {
12330             size += _unknownFields.CalculateSize();
12331           }
12332           return size;
12333         }
12334 
12335         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12336         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(NamePart other)12337         public void MergeFrom(NamePart other) {
12338           if (other == null) {
12339             return;
12340           }
12341           if (other.HasNamePart_) {
12342             NamePart_ = other.NamePart_;
12343           }
12344           if (other.HasIsExtension) {
12345             IsExtension = other.IsExtension;
12346           }
12347           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
12348         }
12349 
12350         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12351         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)12352         public void MergeFrom(pb::CodedInputStream input) {
12353         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12354           input.ReadRawMessage(this);
12355         #else
12356           uint tag;
12357           while ((tag = input.ReadTag()) != 0) {
12358           if ((tag & 7) == 4) {
12359             // Abort on any end group tag.
12360             return;
12361           }
12362           switch(tag) {
12363               default:
12364                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
12365                 break;
12366               case 10: {
12367                 NamePart_ = input.ReadString();
12368                 break;
12369               }
12370               case 16: {
12371                 IsExtension = input.ReadBool();
12372                 break;
12373               }
12374             }
12375           }
12376         #endif
12377         }
12378 
12379         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12380         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12381         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)12382         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
12383           uint tag;
12384           while ((tag = input.ReadTag()) != 0) {
12385           if ((tag & 7) == 4) {
12386             // Abort on any end group tag.
12387             return;
12388           }
12389           switch(tag) {
12390               default:
12391                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
12392                 break;
12393               case 10: {
12394                 NamePart_ = input.ReadString();
12395                 break;
12396               }
12397               case 16: {
12398                 IsExtension = input.ReadBool();
12399                 break;
12400               }
12401             }
12402           }
12403         }
12404         #endif
12405 
12406       }
12407 
12408     }
12409     #endregion
12410 
12411   }
12412 
12413   /// <summary>
12414   /// TODO Enums in C++ gencode (and potentially other languages) are
12415   /// not well scoped.  This means that each of the feature enums below can clash
12416   /// with each other.  The short names we've chosen maximize call-site
12417   /// readability, but leave us very open to this scenario.  A future feature will
12418   /// be designed and implemented to handle this, hopefully before we ever hit a
12419   /// conflict here.
12420   /// </summary>
12421   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
12422   public sealed partial class FeatureSet : pb::IExtendableMessage<FeatureSet>
12423   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12424       , pb::IBufferMessage
12425   #endif
12426   {
12427     private static readonly pb::MessageParser<FeatureSet> _parser = new pb::MessageParser<FeatureSet>(() => new FeatureSet());
12428     private pb::UnknownFieldSet _unknownFields;
12429     internal pb::ExtensionSet<FeatureSet> _extensions;
12430     private pb::ExtensionSet<FeatureSet> _Extensions { get { return _extensions; } }
12431     private int _hasBits0;
12432     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12433     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12434     public static pb::MessageParser<FeatureSet> Parser { get { return _parser; } }
12435 
12436     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12437     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12438     public static pbr::MessageDescriptor Descriptor {
12439       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[19]; }
12440     }
12441 
12442     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12443     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12444     pbr::MessageDescriptor pb::IMessage.Descriptor {
12445       get { return Descriptor; }
12446     }
12447 
12448     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12449     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FeatureSet()12450     public FeatureSet() {
12451       OnConstruction();
12452     }
12453 
OnConstruction()12454     partial void OnConstruction();
12455 
12456     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12457     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FeatureSet(FeatureSet other)12458     public FeatureSet(FeatureSet other) : this() {
12459       _hasBits0 = other._hasBits0;
12460       fieldPresence_ = other.fieldPresence_;
12461       enumType_ = other.enumType_;
12462       repeatedFieldEncoding_ = other.repeatedFieldEncoding_;
12463       utf8Validation_ = other.utf8Validation_;
12464       messageEncoding_ = other.messageEncoding_;
12465       jsonFormat_ = other.jsonFormat_;
12466       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
12467       _extensions = pb::ExtensionSet.Clone(other._extensions);
12468     }
12469 
12470     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12471     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()12472     public FeatureSet Clone() {
12473       return new FeatureSet(this);
12474     }
12475 
12476     /// <summary>Field number for the "field_presence" field.</summary>
12477     public const int FieldPresenceFieldNumber = 1;
12478     private readonly static global::Google.Protobuf.Reflection.FeatureSet.Types.FieldPresence FieldPresenceDefaultValue = global::Google.Protobuf.Reflection.FeatureSet.Types.FieldPresence.Unknown;
12479 
12480     private global::Google.Protobuf.Reflection.FeatureSet.Types.FieldPresence fieldPresence_;
12481     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12482     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12483     public global::Google.Protobuf.Reflection.FeatureSet.Types.FieldPresence FieldPresence {
12484       get { if ((_hasBits0 & 1) != 0) { return fieldPresence_; } else { return FieldPresenceDefaultValue; } }
12485       set {
12486         _hasBits0 |= 1;
12487         fieldPresence_ = value;
12488       }
12489     }
12490     /// <summary>Gets whether the "field_presence" field is set</summary>
12491     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12492     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12493     public bool HasFieldPresence {
12494       get { return (_hasBits0 & 1) != 0; }
12495     }
12496     /// <summary>Clears the value of the "field_presence" field</summary>
12497     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12498     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearFieldPresence()12499     public void ClearFieldPresence() {
12500       _hasBits0 &= ~1;
12501     }
12502 
12503     /// <summary>Field number for the "enum_type" field.</summary>
12504     public const int EnumTypeFieldNumber = 2;
12505     private readonly static global::Google.Protobuf.Reflection.FeatureSet.Types.EnumType EnumTypeDefaultValue = global::Google.Protobuf.Reflection.FeatureSet.Types.EnumType.Unknown;
12506 
12507     private global::Google.Protobuf.Reflection.FeatureSet.Types.EnumType enumType_;
12508     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12509     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12510     public global::Google.Protobuf.Reflection.FeatureSet.Types.EnumType EnumType {
12511       get { if ((_hasBits0 & 2) != 0) { return enumType_; } else { return EnumTypeDefaultValue; } }
12512       set {
12513         _hasBits0 |= 2;
12514         enumType_ = value;
12515       }
12516     }
12517     /// <summary>Gets whether the "enum_type" field is set</summary>
12518     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12519     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12520     public bool HasEnumType {
12521       get { return (_hasBits0 & 2) != 0; }
12522     }
12523     /// <summary>Clears the value of the "enum_type" field</summary>
12524     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12525     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearEnumType()12526     public void ClearEnumType() {
12527       _hasBits0 &= ~2;
12528     }
12529 
12530     /// <summary>Field number for the "repeated_field_encoding" field.</summary>
12531     public const int RepeatedFieldEncodingFieldNumber = 3;
12532     private readonly static global::Google.Protobuf.Reflection.FeatureSet.Types.RepeatedFieldEncoding RepeatedFieldEncodingDefaultValue = global::Google.Protobuf.Reflection.FeatureSet.Types.RepeatedFieldEncoding.Unknown;
12533 
12534     private global::Google.Protobuf.Reflection.FeatureSet.Types.RepeatedFieldEncoding repeatedFieldEncoding_;
12535     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12536     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12537     public global::Google.Protobuf.Reflection.FeatureSet.Types.RepeatedFieldEncoding RepeatedFieldEncoding {
12538       get { if ((_hasBits0 & 4) != 0) { return repeatedFieldEncoding_; } else { return RepeatedFieldEncodingDefaultValue; } }
12539       set {
12540         _hasBits0 |= 4;
12541         repeatedFieldEncoding_ = value;
12542       }
12543     }
12544     /// <summary>Gets whether the "repeated_field_encoding" field is set</summary>
12545     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12546     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12547     public bool HasRepeatedFieldEncoding {
12548       get { return (_hasBits0 & 4) != 0; }
12549     }
12550     /// <summary>Clears the value of the "repeated_field_encoding" field</summary>
12551     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12552     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearRepeatedFieldEncoding()12553     public void ClearRepeatedFieldEncoding() {
12554       _hasBits0 &= ~4;
12555     }
12556 
12557     /// <summary>Field number for the "utf8_validation" field.</summary>
12558     public const int Utf8ValidationFieldNumber = 4;
12559     private readonly static global::Google.Protobuf.Reflection.FeatureSet.Types.Utf8Validation Utf8ValidationDefaultValue = global::Google.Protobuf.Reflection.FeatureSet.Types.Utf8Validation.Unknown;
12560 
12561     private global::Google.Protobuf.Reflection.FeatureSet.Types.Utf8Validation utf8Validation_;
12562     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12563     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12564     public global::Google.Protobuf.Reflection.FeatureSet.Types.Utf8Validation Utf8Validation {
12565       get { if ((_hasBits0 & 8) != 0) { return utf8Validation_; } else { return Utf8ValidationDefaultValue; } }
12566       set {
12567         _hasBits0 |= 8;
12568         utf8Validation_ = value;
12569       }
12570     }
12571     /// <summary>Gets whether the "utf8_validation" field is set</summary>
12572     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12573     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12574     public bool HasUtf8Validation {
12575       get { return (_hasBits0 & 8) != 0; }
12576     }
12577     /// <summary>Clears the value of the "utf8_validation" field</summary>
12578     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12579     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearUtf8Validation()12580     public void ClearUtf8Validation() {
12581       _hasBits0 &= ~8;
12582     }
12583 
12584     /// <summary>Field number for the "message_encoding" field.</summary>
12585     public const int MessageEncodingFieldNumber = 5;
12586     private readonly static global::Google.Protobuf.Reflection.FeatureSet.Types.MessageEncoding MessageEncodingDefaultValue = global::Google.Protobuf.Reflection.FeatureSet.Types.MessageEncoding.Unknown;
12587 
12588     private global::Google.Protobuf.Reflection.FeatureSet.Types.MessageEncoding messageEncoding_;
12589     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12590     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12591     public global::Google.Protobuf.Reflection.FeatureSet.Types.MessageEncoding MessageEncoding {
12592       get { if ((_hasBits0 & 16) != 0) { return messageEncoding_; } else { return MessageEncodingDefaultValue; } }
12593       set {
12594         _hasBits0 |= 16;
12595         messageEncoding_ = value;
12596       }
12597     }
12598     /// <summary>Gets whether the "message_encoding" field is set</summary>
12599     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12600     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12601     public bool HasMessageEncoding {
12602       get { return (_hasBits0 & 16) != 0; }
12603     }
12604     /// <summary>Clears the value of the "message_encoding" field</summary>
12605     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12606     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearMessageEncoding()12607     public void ClearMessageEncoding() {
12608       _hasBits0 &= ~16;
12609     }
12610 
12611     /// <summary>Field number for the "json_format" field.</summary>
12612     public const int JsonFormatFieldNumber = 6;
12613     private readonly static global::Google.Protobuf.Reflection.FeatureSet.Types.JsonFormat JsonFormatDefaultValue = global::Google.Protobuf.Reflection.FeatureSet.Types.JsonFormat.Unknown;
12614 
12615     private global::Google.Protobuf.Reflection.FeatureSet.Types.JsonFormat jsonFormat_;
12616     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12617     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12618     public global::Google.Protobuf.Reflection.FeatureSet.Types.JsonFormat JsonFormat {
12619       get { if ((_hasBits0 & 32) != 0) { return jsonFormat_; } else { return JsonFormatDefaultValue; } }
12620       set {
12621         _hasBits0 |= 32;
12622         jsonFormat_ = value;
12623       }
12624     }
12625     /// <summary>Gets whether the "json_format" field is set</summary>
12626     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12627     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12628     public bool HasJsonFormat {
12629       get { return (_hasBits0 & 32) != 0; }
12630     }
12631     /// <summary>Clears the value of the "json_format" field</summary>
12632     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12633     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearJsonFormat()12634     public void ClearJsonFormat() {
12635       _hasBits0 &= ~32;
12636     }
12637 
12638     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12639     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)12640     public override bool Equals(object other) {
12641       return Equals(other as FeatureSet);
12642     }
12643 
12644     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12645     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(FeatureSet other)12646     public bool Equals(FeatureSet other) {
12647       if (ReferenceEquals(other, null)) {
12648         return false;
12649       }
12650       if (ReferenceEquals(other, this)) {
12651         return true;
12652       }
12653       if (FieldPresence != other.FieldPresence) return false;
12654       if (EnumType != other.EnumType) return false;
12655       if (RepeatedFieldEncoding != other.RepeatedFieldEncoding) return false;
12656       if (Utf8Validation != other.Utf8Validation) return false;
12657       if (MessageEncoding != other.MessageEncoding) return false;
12658       if (JsonFormat != other.JsonFormat) return false;
12659       if (!Equals(_extensions, other._extensions)) {
12660         return false;
12661       }
12662       return Equals(_unknownFields, other._unknownFields);
12663     }
12664 
12665     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12666     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()12667     public override int GetHashCode() {
12668       int hash = 1;
12669       if (HasFieldPresence) hash ^= FieldPresence.GetHashCode();
12670       if (HasEnumType) hash ^= EnumType.GetHashCode();
12671       if (HasRepeatedFieldEncoding) hash ^= RepeatedFieldEncoding.GetHashCode();
12672       if (HasUtf8Validation) hash ^= Utf8Validation.GetHashCode();
12673       if (HasMessageEncoding) hash ^= MessageEncoding.GetHashCode();
12674       if (HasJsonFormat) hash ^= JsonFormat.GetHashCode();
12675       if (_extensions != null) {
12676         hash ^= _extensions.GetHashCode();
12677       }
12678       if (_unknownFields != null) {
12679         hash ^= _unknownFields.GetHashCode();
12680       }
12681       return hash;
12682     }
12683 
12684     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12685     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()12686     public override string ToString() {
12687       return pb::JsonFormatter.ToDiagnosticString(this);
12688     }
12689 
12690     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12691     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)12692     public void WriteTo(pb::CodedOutputStream output) {
12693     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12694       output.WriteRawMessage(this);
12695     #else
12696       if (HasFieldPresence) {
12697         output.WriteRawTag(8);
12698         output.WriteEnum((int) FieldPresence);
12699       }
12700       if (HasEnumType) {
12701         output.WriteRawTag(16);
12702         output.WriteEnum((int) EnumType);
12703       }
12704       if (HasRepeatedFieldEncoding) {
12705         output.WriteRawTag(24);
12706         output.WriteEnum((int) RepeatedFieldEncoding);
12707       }
12708       if (HasUtf8Validation) {
12709         output.WriteRawTag(32);
12710         output.WriteEnum((int) Utf8Validation);
12711       }
12712       if (HasMessageEncoding) {
12713         output.WriteRawTag(40);
12714         output.WriteEnum((int) MessageEncoding);
12715       }
12716       if (HasJsonFormat) {
12717         output.WriteRawTag(48);
12718         output.WriteEnum((int) JsonFormat);
12719       }
12720       if (_extensions != null) {
12721         _extensions.WriteTo(output);
12722       }
12723       if (_unknownFields != null) {
12724         _unknownFields.WriteTo(output);
12725       }
12726     #endif
12727     }
12728 
12729     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12730     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12731     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)12732     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
12733       if (HasFieldPresence) {
12734         output.WriteRawTag(8);
12735         output.WriteEnum((int) FieldPresence);
12736       }
12737       if (HasEnumType) {
12738         output.WriteRawTag(16);
12739         output.WriteEnum((int) EnumType);
12740       }
12741       if (HasRepeatedFieldEncoding) {
12742         output.WriteRawTag(24);
12743         output.WriteEnum((int) RepeatedFieldEncoding);
12744       }
12745       if (HasUtf8Validation) {
12746         output.WriteRawTag(32);
12747         output.WriteEnum((int) Utf8Validation);
12748       }
12749       if (HasMessageEncoding) {
12750         output.WriteRawTag(40);
12751         output.WriteEnum((int) MessageEncoding);
12752       }
12753       if (HasJsonFormat) {
12754         output.WriteRawTag(48);
12755         output.WriteEnum((int) JsonFormat);
12756       }
12757       if (_extensions != null) {
12758         _extensions.WriteTo(ref output);
12759       }
12760       if (_unknownFields != null) {
12761         _unknownFields.WriteTo(ref output);
12762       }
12763     }
12764     #endif
12765 
12766     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12767     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()12768     public int CalculateSize() {
12769       int size = 0;
12770       if (HasFieldPresence) {
12771         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FieldPresence);
12772       }
12773       if (HasEnumType) {
12774         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumType);
12775       }
12776       if (HasRepeatedFieldEncoding) {
12777         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) RepeatedFieldEncoding);
12778       }
12779       if (HasUtf8Validation) {
12780         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Utf8Validation);
12781       }
12782       if (HasMessageEncoding) {
12783         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MessageEncoding);
12784       }
12785       if (HasJsonFormat) {
12786         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) JsonFormat);
12787       }
12788       if (_extensions != null) {
12789         size += _extensions.CalculateSize();
12790       }
12791       if (_unknownFields != null) {
12792         size += _unknownFields.CalculateSize();
12793       }
12794       return size;
12795     }
12796 
12797     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12798     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(FeatureSet other)12799     public void MergeFrom(FeatureSet other) {
12800       if (other == null) {
12801         return;
12802       }
12803       if (other.HasFieldPresence) {
12804         FieldPresence = other.FieldPresence;
12805       }
12806       if (other.HasEnumType) {
12807         EnumType = other.EnumType;
12808       }
12809       if (other.HasRepeatedFieldEncoding) {
12810         RepeatedFieldEncoding = other.RepeatedFieldEncoding;
12811       }
12812       if (other.HasUtf8Validation) {
12813         Utf8Validation = other.Utf8Validation;
12814       }
12815       if (other.HasMessageEncoding) {
12816         MessageEncoding = other.MessageEncoding;
12817       }
12818       if (other.HasJsonFormat) {
12819         JsonFormat = other.JsonFormat;
12820       }
12821       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
12822       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
12823     }
12824 
12825     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12826     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)12827     public void MergeFrom(pb::CodedInputStream input) {
12828     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12829       input.ReadRawMessage(this);
12830     #else
12831       uint tag;
12832       while ((tag = input.ReadTag()) != 0) {
12833       if ((tag & 7) == 4) {
12834         // Abort on any end group tag.
12835         return;
12836       }
12837       switch(tag) {
12838           default:
12839             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
12840               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
12841             }
12842             break;
12843           case 8: {
12844             FieldPresence = (global::Google.Protobuf.Reflection.FeatureSet.Types.FieldPresence) input.ReadEnum();
12845             break;
12846           }
12847           case 16: {
12848             EnumType = (global::Google.Protobuf.Reflection.FeatureSet.Types.EnumType) input.ReadEnum();
12849             break;
12850           }
12851           case 24: {
12852             RepeatedFieldEncoding = (global::Google.Protobuf.Reflection.FeatureSet.Types.RepeatedFieldEncoding) input.ReadEnum();
12853             break;
12854           }
12855           case 32: {
12856             Utf8Validation = (global::Google.Protobuf.Reflection.FeatureSet.Types.Utf8Validation) input.ReadEnum();
12857             break;
12858           }
12859           case 40: {
12860             MessageEncoding = (global::Google.Protobuf.Reflection.FeatureSet.Types.MessageEncoding) input.ReadEnum();
12861             break;
12862           }
12863           case 48: {
12864             JsonFormat = (global::Google.Protobuf.Reflection.FeatureSet.Types.JsonFormat) input.ReadEnum();
12865             break;
12866           }
12867         }
12868       }
12869     #endif
12870     }
12871 
12872     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12873     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12874     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)12875     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
12876       uint tag;
12877       while ((tag = input.ReadTag()) != 0) {
12878       if ((tag & 7) == 4) {
12879         // Abort on any end group tag.
12880         return;
12881       }
12882       switch(tag) {
12883           default:
12884             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
12885               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
12886             }
12887             break;
12888           case 8: {
12889             FieldPresence = (global::Google.Protobuf.Reflection.FeatureSet.Types.FieldPresence) input.ReadEnum();
12890             break;
12891           }
12892           case 16: {
12893             EnumType = (global::Google.Protobuf.Reflection.FeatureSet.Types.EnumType) input.ReadEnum();
12894             break;
12895           }
12896           case 24: {
12897             RepeatedFieldEncoding = (global::Google.Protobuf.Reflection.FeatureSet.Types.RepeatedFieldEncoding) input.ReadEnum();
12898             break;
12899           }
12900           case 32: {
12901             Utf8Validation = (global::Google.Protobuf.Reflection.FeatureSet.Types.Utf8Validation) input.ReadEnum();
12902             break;
12903           }
12904           case 40: {
12905             MessageEncoding = (global::Google.Protobuf.Reflection.FeatureSet.Types.MessageEncoding) input.ReadEnum();
12906             break;
12907           }
12908           case 48: {
12909             JsonFormat = (global::Google.Protobuf.Reflection.FeatureSet.Types.JsonFormat) input.ReadEnum();
12910             break;
12911           }
12912         }
12913       }
12914     }
12915     #endif
12916 
GetExtension(pb::Extension<FeatureSet, TValue> extension)12917     public TValue GetExtension<TValue>(pb::Extension<FeatureSet, TValue> extension) {
12918       return pb::ExtensionSet.Get(ref _extensions, extension);
12919     }
GetExtension(pb::RepeatedExtension<FeatureSet, TValue> extension)12920     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<FeatureSet, TValue> extension) {
12921       return pb::ExtensionSet.Get(ref _extensions, extension);
12922     }
GetOrInitializeExtension(pb::RepeatedExtension<FeatureSet, TValue> extension)12923     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<FeatureSet, TValue> extension) {
12924       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
12925     }
SetExtension(pb::Extension<FeatureSet, TValue> extension, TValue value)12926     public void SetExtension<TValue>(pb::Extension<FeatureSet, TValue> extension, TValue value) {
12927       pb::ExtensionSet.Set(ref _extensions, extension, value);
12928     }
HasExtension(pb::Extension<FeatureSet, TValue> extension)12929     public bool HasExtension<TValue>(pb::Extension<FeatureSet, TValue> extension) {
12930       return pb::ExtensionSet.Has(ref _extensions, extension);
12931     }
ClearExtension(pb::Extension<FeatureSet, TValue> extension)12932     public void ClearExtension<TValue>(pb::Extension<FeatureSet, TValue> extension) {
12933       pb::ExtensionSet.Clear(ref _extensions, extension);
12934     }
ClearExtension(pb::RepeatedExtension<FeatureSet, TValue> extension)12935     public void ClearExtension<TValue>(pb::RepeatedExtension<FeatureSet, TValue> extension) {
12936       pb::ExtensionSet.Clear(ref _extensions, extension);
12937     }
12938 
12939     #region Nested types
12940     /// <summary>Container for nested types declared in the FeatureSet message type.</summary>
12941     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
12942     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
12943     public static partial class Types {
12944       public enum FieldPresence {
12945         [pbr::OriginalName("FIELD_PRESENCE_UNKNOWN")] Unknown = 0,
12946         [pbr::OriginalName("EXPLICIT")] Explicit = 1,
12947         [pbr::OriginalName("IMPLICIT")] Implicit = 2,
12948         [pbr::OriginalName("LEGACY_REQUIRED")] LegacyRequired = 3,
12949       }
12950 
12951       public enum EnumType {
12952         [pbr::OriginalName("ENUM_TYPE_UNKNOWN")] Unknown = 0,
12953         [pbr::OriginalName("OPEN")] Open = 1,
12954         [pbr::OriginalName("CLOSED")] Closed = 2,
12955       }
12956 
12957       public enum RepeatedFieldEncoding {
12958         [pbr::OriginalName("REPEATED_FIELD_ENCODING_UNKNOWN")] Unknown = 0,
12959         [pbr::OriginalName("PACKED")] Packed = 1,
12960         [pbr::OriginalName("EXPANDED")] Expanded = 2,
12961       }
12962 
12963       public enum Utf8Validation {
12964         [pbr::OriginalName("UTF8_VALIDATION_UNKNOWN")] Unknown = 0,
12965         [pbr::OriginalName("VERIFY")] Verify = 2,
12966         [pbr::OriginalName("NONE")] None = 3,
12967       }
12968 
12969       public enum MessageEncoding {
12970         [pbr::OriginalName("MESSAGE_ENCODING_UNKNOWN")] Unknown = 0,
12971         [pbr::OriginalName("LENGTH_PREFIXED")] LengthPrefixed = 1,
12972         [pbr::OriginalName("DELIMITED")] Delimited = 2,
12973       }
12974 
12975       public enum JsonFormat {
12976         [pbr::OriginalName("JSON_FORMAT_UNKNOWN")] Unknown = 0,
12977         [pbr::OriginalName("ALLOW")] Allow = 1,
12978         [pbr::OriginalName("LEGACY_BEST_EFFORT")] LegacyBestEffort = 2,
12979       }
12980 
12981     }
12982     #endregion
12983 
12984   }
12985 
12986   /// <summary>
12987   /// A compiled specification for the defaults of a set of features.  These
12988   /// messages are generated from FeatureSet extensions and can be used to seed
12989   /// feature resolution. The resolution with this object becomes a simple search
12990   /// for the closest matching edition, followed by proto merges.
12991   /// </summary>
12992   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
12993   public sealed partial class FeatureSetDefaults : pb::IMessage<FeatureSetDefaults>
12994   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
12995       , pb::IBufferMessage
12996   #endif
12997   {
12998     private static readonly pb::MessageParser<FeatureSetDefaults> _parser = new pb::MessageParser<FeatureSetDefaults>(() => new FeatureSetDefaults());
12999     private pb::UnknownFieldSet _unknownFields;
13000     private int _hasBits0;
13001     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13002     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13003     public static pb::MessageParser<FeatureSetDefaults> Parser { get { return _parser; } }
13004 
13005     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13006     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13007     public static pbr::MessageDescriptor Descriptor {
13008       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[20]; }
13009     }
13010 
13011     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13012     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13013     pbr::MessageDescriptor pb::IMessage.Descriptor {
13014       get { return Descriptor; }
13015     }
13016 
13017     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13018     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FeatureSetDefaults()13019     public FeatureSetDefaults() {
13020       OnConstruction();
13021     }
13022 
OnConstruction()13023     partial void OnConstruction();
13024 
13025     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13026     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FeatureSetDefaults(FeatureSetDefaults other)13027     public FeatureSetDefaults(FeatureSetDefaults other) : this() {
13028       _hasBits0 = other._hasBits0;
13029       defaults_ = other.defaults_.Clone();
13030       minimumEdition_ = other.minimumEdition_;
13031       maximumEdition_ = other.maximumEdition_;
13032       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
13033     }
13034 
13035     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13036     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()13037     public FeatureSetDefaults Clone() {
13038       return new FeatureSetDefaults(this);
13039     }
13040 
13041     /// <summary>Field number for the "defaults" field.</summary>
13042     public const int DefaultsFieldNumber = 1;
13043     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FeatureSetDefaults.Types.FeatureSetEditionDefault> _repeated_defaults_codec
13044         = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.FeatureSetDefaults.Types.FeatureSetEditionDefault.Parser);
13045     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FeatureSetDefaults.Types.FeatureSetEditionDefault> defaults_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FeatureSetDefaults.Types.FeatureSetEditionDefault>();
13046     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13047     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13048     public pbc::RepeatedField<global::Google.Protobuf.Reflection.FeatureSetDefaults.Types.FeatureSetEditionDefault> Defaults {
13049       get { return defaults_; }
13050     }
13051 
13052     /// <summary>Field number for the "minimum_edition" field.</summary>
13053     public const int MinimumEditionFieldNumber = 4;
13054     private readonly static global::Google.Protobuf.Reflection.Edition MinimumEditionDefaultValue = global::Google.Protobuf.Reflection.Edition.Unknown;
13055 
13056     private global::Google.Protobuf.Reflection.Edition minimumEdition_;
13057     /// <summary>
13058     /// The minimum supported edition (inclusive) when this was constructed.
13059     /// Editions before this will not have defaults.
13060     /// </summary>
13061     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13062     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13063     public global::Google.Protobuf.Reflection.Edition MinimumEdition {
13064       get { if ((_hasBits0 & 1) != 0) { return minimumEdition_; } else { return MinimumEditionDefaultValue; } }
13065       set {
13066         _hasBits0 |= 1;
13067         minimumEdition_ = value;
13068       }
13069     }
13070     /// <summary>Gets whether the "minimum_edition" field is set</summary>
13071     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13072     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13073     public bool HasMinimumEdition {
13074       get { return (_hasBits0 & 1) != 0; }
13075     }
13076     /// <summary>Clears the value of the "minimum_edition" field</summary>
13077     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13078     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearMinimumEdition()13079     public void ClearMinimumEdition() {
13080       _hasBits0 &= ~1;
13081     }
13082 
13083     /// <summary>Field number for the "maximum_edition" field.</summary>
13084     public const int MaximumEditionFieldNumber = 5;
13085     private readonly static global::Google.Protobuf.Reflection.Edition MaximumEditionDefaultValue = global::Google.Protobuf.Reflection.Edition.Unknown;
13086 
13087     private global::Google.Protobuf.Reflection.Edition maximumEdition_;
13088     /// <summary>
13089     /// The maximum known edition (inclusive) when this was constructed. Editions
13090     /// after this will not have reliable defaults.
13091     /// </summary>
13092     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13093     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13094     public global::Google.Protobuf.Reflection.Edition MaximumEdition {
13095       get { if ((_hasBits0 & 2) != 0) { return maximumEdition_; } else { return MaximumEditionDefaultValue; } }
13096       set {
13097         _hasBits0 |= 2;
13098         maximumEdition_ = value;
13099       }
13100     }
13101     /// <summary>Gets whether the "maximum_edition" field is set</summary>
13102     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13103     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13104     public bool HasMaximumEdition {
13105       get { return (_hasBits0 & 2) != 0; }
13106     }
13107     /// <summary>Clears the value of the "maximum_edition" field</summary>
13108     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13109     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearMaximumEdition()13110     public void ClearMaximumEdition() {
13111       _hasBits0 &= ~2;
13112     }
13113 
13114     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13115     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)13116     public override bool Equals(object other) {
13117       return Equals(other as FeatureSetDefaults);
13118     }
13119 
13120     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13121     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(FeatureSetDefaults other)13122     public bool Equals(FeatureSetDefaults other) {
13123       if (ReferenceEquals(other, null)) {
13124         return false;
13125       }
13126       if (ReferenceEquals(other, this)) {
13127         return true;
13128       }
13129       if(!defaults_.Equals(other.defaults_)) return false;
13130       if (MinimumEdition != other.MinimumEdition) return false;
13131       if (MaximumEdition != other.MaximumEdition) return false;
13132       return Equals(_unknownFields, other._unknownFields);
13133     }
13134 
13135     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13136     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()13137     public override int GetHashCode() {
13138       int hash = 1;
13139       hash ^= defaults_.GetHashCode();
13140       if (HasMinimumEdition) hash ^= MinimumEdition.GetHashCode();
13141       if (HasMaximumEdition) hash ^= MaximumEdition.GetHashCode();
13142       if (_unknownFields != null) {
13143         hash ^= _unknownFields.GetHashCode();
13144       }
13145       return hash;
13146     }
13147 
13148     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13149     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()13150     public override string ToString() {
13151       return pb::JsonFormatter.ToDiagnosticString(this);
13152     }
13153 
13154     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13155     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)13156     public void WriteTo(pb::CodedOutputStream output) {
13157     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13158       output.WriteRawMessage(this);
13159     #else
13160       defaults_.WriteTo(output, _repeated_defaults_codec);
13161       if (HasMinimumEdition) {
13162         output.WriteRawTag(32);
13163         output.WriteEnum((int) MinimumEdition);
13164       }
13165       if (HasMaximumEdition) {
13166         output.WriteRawTag(40);
13167         output.WriteEnum((int) MaximumEdition);
13168       }
13169       if (_unknownFields != null) {
13170         _unknownFields.WriteTo(output);
13171       }
13172     #endif
13173     }
13174 
13175     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13176     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13177     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)13178     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
13179       defaults_.WriteTo(ref output, _repeated_defaults_codec);
13180       if (HasMinimumEdition) {
13181         output.WriteRawTag(32);
13182         output.WriteEnum((int) MinimumEdition);
13183       }
13184       if (HasMaximumEdition) {
13185         output.WriteRawTag(40);
13186         output.WriteEnum((int) MaximumEdition);
13187       }
13188       if (_unknownFields != null) {
13189         _unknownFields.WriteTo(ref output);
13190       }
13191     }
13192     #endif
13193 
13194     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13195     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()13196     public int CalculateSize() {
13197       int size = 0;
13198       size += defaults_.CalculateSize(_repeated_defaults_codec);
13199       if (HasMinimumEdition) {
13200         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MinimumEdition);
13201       }
13202       if (HasMaximumEdition) {
13203         size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MaximumEdition);
13204       }
13205       if (_unknownFields != null) {
13206         size += _unknownFields.CalculateSize();
13207       }
13208       return size;
13209     }
13210 
13211     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13212     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(FeatureSetDefaults other)13213     public void MergeFrom(FeatureSetDefaults other) {
13214       if (other == null) {
13215         return;
13216       }
13217       defaults_.Add(other.defaults_);
13218       if (other.HasMinimumEdition) {
13219         MinimumEdition = other.MinimumEdition;
13220       }
13221       if (other.HasMaximumEdition) {
13222         MaximumEdition = other.MaximumEdition;
13223       }
13224       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
13225     }
13226 
13227     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13228     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)13229     public void MergeFrom(pb::CodedInputStream input) {
13230     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13231       input.ReadRawMessage(this);
13232     #else
13233       uint tag;
13234       while ((tag = input.ReadTag()) != 0) {
13235       if ((tag & 7) == 4) {
13236         // Abort on any end group tag.
13237         return;
13238       }
13239       switch(tag) {
13240           default:
13241             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
13242             break;
13243           case 10: {
13244             defaults_.AddEntriesFrom(input, _repeated_defaults_codec);
13245             break;
13246           }
13247           case 32: {
13248             MinimumEdition = (global::Google.Protobuf.Reflection.Edition) input.ReadEnum();
13249             break;
13250           }
13251           case 40: {
13252             MaximumEdition = (global::Google.Protobuf.Reflection.Edition) input.ReadEnum();
13253             break;
13254           }
13255         }
13256       }
13257     #endif
13258     }
13259 
13260     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13261     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13262     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)13263     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
13264       uint tag;
13265       while ((tag = input.ReadTag()) != 0) {
13266       if ((tag & 7) == 4) {
13267         // Abort on any end group tag.
13268         return;
13269       }
13270       switch(tag) {
13271           default:
13272             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
13273             break;
13274           case 10: {
13275             defaults_.AddEntriesFrom(ref input, _repeated_defaults_codec);
13276             break;
13277           }
13278           case 32: {
13279             MinimumEdition = (global::Google.Protobuf.Reflection.Edition) input.ReadEnum();
13280             break;
13281           }
13282           case 40: {
13283             MaximumEdition = (global::Google.Protobuf.Reflection.Edition) input.ReadEnum();
13284             break;
13285           }
13286         }
13287       }
13288     }
13289     #endif
13290 
13291     #region Nested types
13292     /// <summary>Container for nested types declared in the FeatureSetDefaults message type.</summary>
13293     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13294     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13295     public static partial class Types {
13296       /// <summary>
13297       /// A map from every known edition with a unique set of defaults to its
13298       /// defaults. Not all editions may be contained here.  For a given edition,
13299       /// the defaults at the closest matching edition ordered at or before it should
13300       /// be used.  This field must be in strict ascending order by edition.
13301       /// </summary>
13302       [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
13303       public sealed partial class FeatureSetEditionDefault : pb::IMessage<FeatureSetEditionDefault>
13304       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13305           , pb::IBufferMessage
13306       #endif
13307       {
13308         private static readonly pb::MessageParser<FeatureSetEditionDefault> _parser = new pb::MessageParser<FeatureSetEditionDefault>(() => new FeatureSetEditionDefault());
13309         private pb::UnknownFieldSet _unknownFields;
13310         private int _hasBits0;
13311         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13312         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13313         public static pb::MessageParser<FeatureSetEditionDefault> Parser { get { return _parser; } }
13314 
13315         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13316         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13317         public static pbr::MessageDescriptor Descriptor {
13318           get { return global::Google.Protobuf.Reflection.FeatureSetDefaults.Descriptor.NestedTypes[0]; }
13319         }
13320 
13321         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13322         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13323         pbr::MessageDescriptor pb::IMessage.Descriptor {
13324           get { return Descriptor; }
13325         }
13326 
13327         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13328         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FeatureSetEditionDefault()13329         public FeatureSetEditionDefault() {
13330           OnConstruction();
13331         }
13332 
OnConstruction()13333         partial void OnConstruction();
13334 
13335         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13336         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
FeatureSetEditionDefault(FeatureSetEditionDefault other)13337         public FeatureSetEditionDefault(FeatureSetEditionDefault other) : this() {
13338           _hasBits0 = other._hasBits0;
13339           edition_ = other.edition_;
13340           overridableFeatures_ = other.overridableFeatures_ != null ? other.overridableFeatures_.Clone() : null;
13341           fixedFeatures_ = other.fixedFeatures_ != null ? other.fixedFeatures_.Clone() : null;
13342           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
13343         }
13344 
13345         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13346         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()13347         public FeatureSetEditionDefault Clone() {
13348           return new FeatureSetEditionDefault(this);
13349         }
13350 
13351         /// <summary>Field number for the "edition" field.</summary>
13352         public const int EditionFieldNumber = 3;
13353         private readonly static global::Google.Protobuf.Reflection.Edition EditionDefaultValue = global::Google.Protobuf.Reflection.Edition.Unknown;
13354 
13355         private global::Google.Protobuf.Reflection.Edition edition_;
13356         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13357         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13358         public global::Google.Protobuf.Reflection.Edition Edition {
13359           get { if ((_hasBits0 & 1) != 0) { return edition_; } else { return EditionDefaultValue; } }
13360           set {
13361             _hasBits0 |= 1;
13362             edition_ = value;
13363           }
13364         }
13365         /// <summary>Gets whether the "edition" field is set</summary>
13366         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13367         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13368         public bool HasEdition {
13369           get { return (_hasBits0 & 1) != 0; }
13370         }
13371         /// <summary>Clears the value of the "edition" field</summary>
13372         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13373         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearEdition()13374         public void ClearEdition() {
13375           _hasBits0 &= ~1;
13376         }
13377 
13378         /// <summary>Field number for the "overridable_features" field.</summary>
13379         public const int OverridableFeaturesFieldNumber = 4;
13380         private global::Google.Protobuf.Reflection.FeatureSet overridableFeatures_;
13381         /// <summary>
13382         /// Defaults of features that can be overridden in this edition.
13383         /// </summary>
13384         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13385         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13386         public global::Google.Protobuf.Reflection.FeatureSet OverridableFeatures {
13387           get { return overridableFeatures_; }
13388           set {
13389             overridableFeatures_ = value;
13390           }
13391         }
13392 
13393         /// <summary>Field number for the "fixed_features" field.</summary>
13394         public const int FixedFeaturesFieldNumber = 5;
13395         private global::Google.Protobuf.Reflection.FeatureSet fixedFeatures_;
13396         /// <summary>
13397         /// Defaults of features that can't be overridden in this edition.
13398         /// </summary>
13399         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13400         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13401         public global::Google.Protobuf.Reflection.FeatureSet FixedFeatures {
13402           get { return fixedFeatures_; }
13403           set {
13404             fixedFeatures_ = value;
13405           }
13406         }
13407 
13408         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13409         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)13410         public override bool Equals(object other) {
13411           return Equals(other as FeatureSetEditionDefault);
13412         }
13413 
13414         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13415         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(FeatureSetEditionDefault other)13416         public bool Equals(FeatureSetEditionDefault other) {
13417           if (ReferenceEquals(other, null)) {
13418             return false;
13419           }
13420           if (ReferenceEquals(other, this)) {
13421             return true;
13422           }
13423           if (Edition != other.Edition) return false;
13424           if (!object.Equals(OverridableFeatures, other.OverridableFeatures)) return false;
13425           if (!object.Equals(FixedFeatures, other.FixedFeatures)) return false;
13426           return Equals(_unknownFields, other._unknownFields);
13427         }
13428 
13429         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13430         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()13431         public override int GetHashCode() {
13432           int hash = 1;
13433           if (HasEdition) hash ^= Edition.GetHashCode();
13434           if (overridableFeatures_ != null) hash ^= OverridableFeatures.GetHashCode();
13435           if (fixedFeatures_ != null) hash ^= FixedFeatures.GetHashCode();
13436           if (_unknownFields != null) {
13437             hash ^= _unknownFields.GetHashCode();
13438           }
13439           return hash;
13440         }
13441 
13442         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13443         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()13444         public override string ToString() {
13445           return pb::JsonFormatter.ToDiagnosticString(this);
13446         }
13447 
13448         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13449         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)13450         public void WriteTo(pb::CodedOutputStream output) {
13451         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13452           output.WriteRawMessage(this);
13453         #else
13454           if (HasEdition) {
13455             output.WriteRawTag(24);
13456             output.WriteEnum((int) Edition);
13457           }
13458           if (overridableFeatures_ != null) {
13459             output.WriteRawTag(34);
13460             output.WriteMessage(OverridableFeatures);
13461           }
13462           if (fixedFeatures_ != null) {
13463             output.WriteRawTag(42);
13464             output.WriteMessage(FixedFeatures);
13465           }
13466           if (_unknownFields != null) {
13467             _unknownFields.WriteTo(output);
13468           }
13469         #endif
13470         }
13471 
13472         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13473         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13474         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)13475         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
13476           if (HasEdition) {
13477             output.WriteRawTag(24);
13478             output.WriteEnum((int) Edition);
13479           }
13480           if (overridableFeatures_ != null) {
13481             output.WriteRawTag(34);
13482             output.WriteMessage(OverridableFeatures);
13483           }
13484           if (fixedFeatures_ != null) {
13485             output.WriteRawTag(42);
13486             output.WriteMessage(FixedFeatures);
13487           }
13488           if (_unknownFields != null) {
13489             _unknownFields.WriteTo(ref output);
13490           }
13491         }
13492         #endif
13493 
13494         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13495         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()13496         public int CalculateSize() {
13497           int size = 0;
13498           if (HasEdition) {
13499             size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Edition);
13500           }
13501           if (overridableFeatures_ != null) {
13502             size += 1 + pb::CodedOutputStream.ComputeMessageSize(OverridableFeatures);
13503           }
13504           if (fixedFeatures_ != null) {
13505             size += 1 + pb::CodedOutputStream.ComputeMessageSize(FixedFeatures);
13506           }
13507           if (_unknownFields != null) {
13508             size += _unknownFields.CalculateSize();
13509           }
13510           return size;
13511         }
13512 
13513         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13514         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(FeatureSetEditionDefault other)13515         public void MergeFrom(FeatureSetEditionDefault other) {
13516           if (other == null) {
13517             return;
13518           }
13519           if (other.HasEdition) {
13520             Edition = other.Edition;
13521           }
13522           if (other.overridableFeatures_ != null) {
13523             if (overridableFeatures_ == null) {
13524               OverridableFeatures = new global::Google.Protobuf.Reflection.FeatureSet();
13525             }
13526             OverridableFeatures.MergeFrom(other.OverridableFeatures);
13527           }
13528           if (other.fixedFeatures_ != null) {
13529             if (fixedFeatures_ == null) {
13530               FixedFeatures = new global::Google.Protobuf.Reflection.FeatureSet();
13531             }
13532             FixedFeatures.MergeFrom(other.FixedFeatures);
13533           }
13534           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
13535         }
13536 
13537         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13538         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)13539         public void MergeFrom(pb::CodedInputStream input) {
13540         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13541           input.ReadRawMessage(this);
13542         #else
13543           uint tag;
13544           while ((tag = input.ReadTag()) != 0) {
13545           if ((tag & 7) == 4) {
13546             // Abort on any end group tag.
13547             return;
13548           }
13549           switch(tag) {
13550               default:
13551                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
13552                 break;
13553               case 24: {
13554                 Edition = (global::Google.Protobuf.Reflection.Edition) input.ReadEnum();
13555                 break;
13556               }
13557               case 34: {
13558                 if (overridableFeatures_ == null) {
13559                   OverridableFeatures = new global::Google.Protobuf.Reflection.FeatureSet();
13560                 }
13561                 input.ReadMessage(OverridableFeatures);
13562                 break;
13563               }
13564               case 42: {
13565                 if (fixedFeatures_ == null) {
13566                   FixedFeatures = new global::Google.Protobuf.Reflection.FeatureSet();
13567                 }
13568                 input.ReadMessage(FixedFeatures);
13569                 break;
13570               }
13571             }
13572           }
13573         #endif
13574         }
13575 
13576         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13577         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13578         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)13579         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
13580           uint tag;
13581           while ((tag = input.ReadTag()) != 0) {
13582           if ((tag & 7) == 4) {
13583             // Abort on any end group tag.
13584             return;
13585           }
13586           switch(tag) {
13587               default:
13588                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
13589                 break;
13590               case 24: {
13591                 Edition = (global::Google.Protobuf.Reflection.Edition) input.ReadEnum();
13592                 break;
13593               }
13594               case 34: {
13595                 if (overridableFeatures_ == null) {
13596                   OverridableFeatures = new global::Google.Protobuf.Reflection.FeatureSet();
13597                 }
13598                 input.ReadMessage(OverridableFeatures);
13599                 break;
13600               }
13601               case 42: {
13602                 if (fixedFeatures_ == null) {
13603                   FixedFeatures = new global::Google.Protobuf.Reflection.FeatureSet();
13604                 }
13605                 input.ReadMessage(FixedFeatures);
13606                 break;
13607               }
13608             }
13609           }
13610         }
13611         #endif
13612 
13613       }
13614 
13615     }
13616     #endregion
13617 
13618   }
13619 
13620   /// <summary>
13621   /// Encapsulates information about the original source file from which a
13622   /// FileDescriptorProto was generated.
13623   /// </summary>
13624   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
13625   public sealed partial class SourceCodeInfo : pb::IExtendableMessage<SourceCodeInfo>
13626   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13627       , pb::IBufferMessage
13628   #endif
13629   {
13630     private static readonly pb::MessageParser<SourceCodeInfo> _parser = new pb::MessageParser<SourceCodeInfo>(() => new SourceCodeInfo());
13631     private pb::UnknownFieldSet _unknownFields;
13632     internal pb::ExtensionSet<SourceCodeInfo> _extensions;
13633     private pb::ExtensionSet<SourceCodeInfo> _Extensions { get { return _extensions; } }
13634     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13635     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13636     public static pb::MessageParser<SourceCodeInfo> Parser { get { return _parser; } }
13637 
13638     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13639     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13640     public static pbr::MessageDescriptor Descriptor {
13641       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[21]; }
13642     }
13643 
13644     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13645     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13646     pbr::MessageDescriptor pb::IMessage.Descriptor {
13647       get { return Descriptor; }
13648     }
13649 
13650     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13651     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
SourceCodeInfo()13652     public SourceCodeInfo() {
13653       OnConstruction();
13654     }
13655 
OnConstruction()13656     partial void OnConstruction();
13657 
13658     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13659     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
SourceCodeInfo(SourceCodeInfo other)13660     public SourceCodeInfo(SourceCodeInfo other) : this() {
13661       location_ = other.location_.Clone();
13662       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
13663       _extensions = pb::ExtensionSet.Clone(other._extensions);
13664     }
13665 
13666     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13667     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()13668     public SourceCodeInfo Clone() {
13669       return new SourceCodeInfo(this);
13670     }
13671 
13672     /// <summary>Field number for the "location" field.</summary>
13673     public const int LocationFieldNumber = 1;
13674     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> _repeated_location_codec
13675         = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location.Parser);
13676     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> location_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location>();
13677     /// <summary>
13678     /// A Location identifies a piece of source code in a .proto file which
13679     /// corresponds to a particular definition.  This information is intended
13680     /// to be useful to IDEs, code indexers, documentation generators, and similar
13681     /// tools.
13682     ///
13683     /// For example, say we have a file like:
13684     ///   message Foo {
13685     ///     optional string foo = 1;
13686     ///   }
13687     /// Let's look at just the field definition:
13688     ///   optional string foo = 1;
13689     ///   ^       ^^     ^^  ^  ^^^
13690     ///   a       bc     de  f  ghi
13691     /// We have the following locations:
13692     ///   span   path               represents
13693     ///   [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
13694     ///   [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
13695     ///   [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
13696     ///   [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
13697     ///   [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
13698     ///
13699     /// Notes:
13700     /// - A location may refer to a repeated field itself (i.e. not to any
13701     ///   particular index within it).  This is used whenever a set of elements are
13702     ///   logically enclosed in a single code segment.  For example, an entire
13703     ///   extend block (possibly containing multiple extension definitions) will
13704     ///   have an outer location whose path refers to the "extensions" repeated
13705     ///   field without an index.
13706     /// - Multiple locations may have the same path.  This happens when a single
13707     ///   logical declaration is spread out across multiple places.  The most
13708     ///   obvious example is the "extend" block again -- there may be multiple
13709     ///   extend blocks in the same scope, each of which will have the same path.
13710     /// - A location's span is not always a subset of its parent's span.  For
13711     ///   example, the "extendee" of an extension declaration appears at the
13712     ///   beginning of the "extend" block and is shared by all extensions within
13713     ///   the block.
13714     /// - Just because a location's span is a subset of some other location's span
13715     ///   does not mean that it is a descendant.  For example, a "group" defines
13716     ///   both a type and a field in a single declaration.  Thus, the locations
13717     ///   corresponding to the type and field and their components will overlap.
13718     /// - Code which tries to interpret locations should probably be designed to
13719     ///   ignore those that it doesn't understand, as more types of locations could
13720     ///   be recorded in the future.
13721     /// </summary>
13722     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13723     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13724     public pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> Location {
13725       get { return location_; }
13726     }
13727 
13728     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13729     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)13730     public override bool Equals(object other) {
13731       return Equals(other as SourceCodeInfo);
13732     }
13733 
13734     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13735     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(SourceCodeInfo other)13736     public bool Equals(SourceCodeInfo other) {
13737       if (ReferenceEquals(other, null)) {
13738         return false;
13739       }
13740       if (ReferenceEquals(other, this)) {
13741         return true;
13742       }
13743       if(!location_.Equals(other.location_)) return false;
13744       if (!Equals(_extensions, other._extensions)) {
13745         return false;
13746       }
13747       return Equals(_unknownFields, other._unknownFields);
13748     }
13749 
13750     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13751     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()13752     public override int GetHashCode() {
13753       int hash = 1;
13754       hash ^= location_.GetHashCode();
13755       if (_extensions != null) {
13756         hash ^= _extensions.GetHashCode();
13757       }
13758       if (_unknownFields != null) {
13759         hash ^= _unknownFields.GetHashCode();
13760       }
13761       return hash;
13762     }
13763 
13764     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13765     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()13766     public override string ToString() {
13767       return pb::JsonFormatter.ToDiagnosticString(this);
13768     }
13769 
13770     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13771     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)13772     public void WriteTo(pb::CodedOutputStream output) {
13773     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13774       output.WriteRawMessage(this);
13775     #else
13776       location_.WriteTo(output, _repeated_location_codec);
13777       if (_extensions != null) {
13778         _extensions.WriteTo(output);
13779       }
13780       if (_unknownFields != null) {
13781         _unknownFields.WriteTo(output);
13782       }
13783     #endif
13784     }
13785 
13786     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13787     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13788     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)13789     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
13790       location_.WriteTo(ref output, _repeated_location_codec);
13791       if (_extensions != null) {
13792         _extensions.WriteTo(ref output);
13793       }
13794       if (_unknownFields != null) {
13795         _unknownFields.WriteTo(ref output);
13796       }
13797     }
13798     #endif
13799 
13800     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13801     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()13802     public int CalculateSize() {
13803       int size = 0;
13804       size += location_.CalculateSize(_repeated_location_codec);
13805       if (_extensions != null) {
13806         size += _extensions.CalculateSize();
13807       }
13808       if (_unknownFields != null) {
13809         size += _unknownFields.CalculateSize();
13810       }
13811       return size;
13812     }
13813 
13814     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13815     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(SourceCodeInfo other)13816     public void MergeFrom(SourceCodeInfo other) {
13817       if (other == null) {
13818         return;
13819       }
13820       location_.Add(other.location_);
13821       pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
13822       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
13823     }
13824 
13825     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13826     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)13827     public void MergeFrom(pb::CodedInputStream input) {
13828     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13829       input.ReadRawMessage(this);
13830     #else
13831       uint tag;
13832       while ((tag = input.ReadTag()) != 0) {
13833       if ((tag & 7) == 4) {
13834         // Abort on any end group tag.
13835         return;
13836       }
13837       switch(tag) {
13838           default:
13839             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
13840               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
13841             }
13842             break;
13843           case 10: {
13844             location_.AddEntriesFrom(input, _repeated_location_codec);
13845             break;
13846           }
13847         }
13848       }
13849     #endif
13850     }
13851 
13852     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13853     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13854     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)13855     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
13856       uint tag;
13857       while ((tag = input.ReadTag()) != 0) {
13858       if ((tag & 7) == 4) {
13859         // Abort on any end group tag.
13860         return;
13861       }
13862       switch(tag) {
13863           default:
13864             if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
13865               _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
13866             }
13867             break;
13868           case 10: {
13869             location_.AddEntriesFrom(ref input, _repeated_location_codec);
13870             break;
13871           }
13872         }
13873       }
13874     }
13875     #endif
13876 
GetExtension(pb::Extension<SourceCodeInfo, TValue> extension)13877     public TValue GetExtension<TValue>(pb::Extension<SourceCodeInfo, TValue> extension) {
13878       return pb::ExtensionSet.Get(ref _extensions, extension);
13879     }
GetExtension(pb::RepeatedExtension<SourceCodeInfo, TValue> extension)13880     public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<SourceCodeInfo, TValue> extension) {
13881       return pb::ExtensionSet.Get(ref _extensions, extension);
13882     }
GetOrInitializeExtension(pb::RepeatedExtension<SourceCodeInfo, TValue> extension)13883     public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<SourceCodeInfo, TValue> extension) {
13884       return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
13885     }
SetExtension(pb::Extension<SourceCodeInfo, TValue> extension, TValue value)13886     public void SetExtension<TValue>(pb::Extension<SourceCodeInfo, TValue> extension, TValue value) {
13887       pb::ExtensionSet.Set(ref _extensions, extension, value);
13888     }
HasExtension(pb::Extension<SourceCodeInfo, TValue> extension)13889     public bool HasExtension<TValue>(pb::Extension<SourceCodeInfo, TValue> extension) {
13890       return pb::ExtensionSet.Has(ref _extensions, extension);
13891     }
ClearExtension(pb::Extension<SourceCodeInfo, TValue> extension)13892     public void ClearExtension<TValue>(pb::Extension<SourceCodeInfo, TValue> extension) {
13893       pb::ExtensionSet.Clear(ref _extensions, extension);
13894     }
ClearExtension(pb::RepeatedExtension<SourceCodeInfo, TValue> extension)13895     public void ClearExtension<TValue>(pb::RepeatedExtension<SourceCodeInfo, TValue> extension) {
13896       pb::ExtensionSet.Clear(ref _extensions, extension);
13897     }
13898 
13899     #region Nested types
13900     /// <summary>Container for nested types declared in the SourceCodeInfo message type.</summary>
13901     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13902     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13903     public static partial class Types {
13904       [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
13905       public sealed partial class Location : pb::IMessage<Location>
13906       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
13907           , pb::IBufferMessage
13908       #endif
13909       {
13910         private static readonly pb::MessageParser<Location> _parser = new pb::MessageParser<Location>(() => new Location());
13911         private pb::UnknownFieldSet _unknownFields;
13912         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13913         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13914         public static pb::MessageParser<Location> Parser { get { return _parser; } }
13915 
13916         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13917         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13918         public static pbr::MessageDescriptor Descriptor {
13919           get { return global::Google.Protobuf.Reflection.SourceCodeInfo.Descriptor.NestedTypes[0]; }
13920         }
13921 
13922         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13923         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13924         pbr::MessageDescriptor pb::IMessage.Descriptor {
13925           get { return Descriptor; }
13926         }
13927 
13928         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13929         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Location()13930         public Location() {
13931           OnConstruction();
13932         }
13933 
OnConstruction()13934         partial void OnConstruction();
13935 
13936         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13937         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Location(Location other)13938         public Location(Location other) : this() {
13939           path_ = other.path_.Clone();
13940           span_ = other.span_.Clone();
13941           leadingComments_ = other.leadingComments_;
13942           trailingComments_ = other.trailingComments_;
13943           leadingDetachedComments_ = other.leadingDetachedComments_.Clone();
13944           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
13945         }
13946 
13947         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13948         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()13949         public Location Clone() {
13950           return new Location(this);
13951         }
13952 
13953         /// <summary>Field number for the "path" field.</summary>
13954         public const int PathFieldNumber = 1;
13955         private static readonly pb::FieldCodec<int> _repeated_path_codec
13956             = pb::FieldCodec.ForInt32(10);
13957         private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField<int>();
13958         /// <summary>
13959         /// Identifies which part of the FileDescriptorProto was defined at this
13960         /// location.
13961         ///
13962         /// Each element is a field number or an index.  They form a path from
13963         /// the root FileDescriptorProto to the place where the definition appears.
13964         /// For example, this path:
13965         ///   [ 4, 3, 2, 7, 1 ]
13966         /// refers to:
13967         ///   file.message_type(3)  // 4, 3
13968         ///       .field(7)         // 2, 7
13969         ///       .name()           // 1
13970         /// This is because FileDescriptorProto.message_type has field number 4:
13971         ///   repeated DescriptorProto message_type = 4;
13972         /// and DescriptorProto.field has field number 2:
13973         ///   repeated FieldDescriptorProto field = 2;
13974         /// and FieldDescriptorProto.name has field number 1:
13975         ///   optional string name = 1;
13976         ///
13977         /// Thus, the above path gives the location of a field name.  If we removed
13978         /// the last element:
13979         ///   [ 4, 3, 2, 7 ]
13980         /// this path refers to the whole field declaration (from the beginning
13981         /// of the label to the terminating semicolon).
13982         /// </summary>
13983         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
13984         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
13985         public pbc::RepeatedField<int> Path {
13986           get { return path_; }
13987         }
13988 
13989         /// <summary>Field number for the "span" field.</summary>
13990         public const int SpanFieldNumber = 2;
13991         private static readonly pb::FieldCodec<int> _repeated_span_codec
13992             = pb::FieldCodec.ForInt32(18);
13993         private readonly pbc::RepeatedField<int> span_ = new pbc::RepeatedField<int>();
13994         /// <summary>
13995         /// Always has exactly three or four elements: start line, start column,
13996         /// end line (optional, otherwise assumed same as start line), end column.
13997         /// These are packed into a single field for efficiency.  Note that line
13998         /// and column numbers are zero-based -- typically you will want to add
13999         /// 1 to each before displaying to a user.
14000         /// </summary>
14001         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14002         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14003         public pbc::RepeatedField<int> Span {
14004           get { return span_; }
14005         }
14006 
14007         /// <summary>Field number for the "leading_comments" field.</summary>
14008         public const int LeadingCommentsFieldNumber = 3;
14009         private readonly static string LeadingCommentsDefaultValue = "";
14010 
14011         private string leadingComments_;
14012         /// <summary>
14013         /// If this SourceCodeInfo represents a complete declaration, these are any
14014         /// comments appearing before and after the declaration which appear to be
14015         /// attached to the declaration.
14016         ///
14017         /// A series of line comments appearing on consecutive lines, with no other
14018         /// tokens appearing on those lines, will be treated as a single comment.
14019         ///
14020         /// leading_detached_comments will keep paragraphs of comments that appear
14021         /// before (but not connected to) the current element. Each paragraph,
14022         /// separated by empty lines, will be one comment element in the repeated
14023         /// field.
14024         ///
14025         /// Only the comment content is provided; comment markers (e.g. //) are
14026         /// stripped out.  For block comments, leading whitespace and an asterisk
14027         /// will be stripped from the beginning of each line other than the first.
14028         /// Newlines are included in the output.
14029         ///
14030         /// Examples:
14031         ///
14032         ///   optional int32 foo = 1;  // Comment attached to foo.
14033         ///   // Comment attached to bar.
14034         ///   optional int32 bar = 2;
14035         ///
14036         ///   optional string baz = 3;
14037         ///   // Comment attached to baz.
14038         ///   // Another line attached to baz.
14039         ///
14040         ///   // Comment attached to moo.
14041         ///   //
14042         ///   // Another line attached to moo.
14043         ///   optional double moo = 4;
14044         ///
14045         ///   // Detached comment for corge. This is not leading or trailing comments
14046         ///   // to moo or corge because there are blank lines separating it from
14047         ///   // both.
14048         ///
14049         ///   // Detached comment for corge paragraph 2.
14050         ///
14051         ///   optional string corge = 5;
14052         ///   /* Block comment attached
14053         ///    * to corge.  Leading asterisks
14054         ///    * will be removed. */
14055         ///   /* Block comment attached to
14056         ///    * grault. */
14057         ///   optional int32 grault = 6;
14058         ///
14059         ///   // ignored detached comments.
14060         /// </summary>
14061         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14062         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14063         public string LeadingComments {
14064           get { return leadingComments_ ?? LeadingCommentsDefaultValue; }
14065           set {
14066             leadingComments_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
14067           }
14068         }
14069         /// <summary>Gets whether the "leading_comments" field is set</summary>
14070         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14071         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14072         public bool HasLeadingComments {
14073           get { return leadingComments_ != null; }
14074         }
14075         /// <summary>Clears the value of the "leading_comments" field</summary>
14076         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14077         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearLeadingComments()14078         public void ClearLeadingComments() {
14079           leadingComments_ = null;
14080         }
14081 
14082         /// <summary>Field number for the "trailing_comments" field.</summary>
14083         public const int TrailingCommentsFieldNumber = 4;
14084         private readonly static string TrailingCommentsDefaultValue = "";
14085 
14086         private string trailingComments_;
14087         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14088         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14089         public string TrailingComments {
14090           get { return trailingComments_ ?? TrailingCommentsDefaultValue; }
14091           set {
14092             trailingComments_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
14093           }
14094         }
14095         /// <summary>Gets whether the "trailing_comments" field is set</summary>
14096         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14097         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14098         public bool HasTrailingComments {
14099           get { return trailingComments_ != null; }
14100         }
14101         /// <summary>Clears the value of the "trailing_comments" field</summary>
14102         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14103         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearTrailingComments()14104         public void ClearTrailingComments() {
14105           trailingComments_ = null;
14106         }
14107 
14108         /// <summary>Field number for the "leading_detached_comments" field.</summary>
14109         public const int LeadingDetachedCommentsFieldNumber = 6;
14110         private static readonly pb::FieldCodec<string> _repeated_leadingDetachedComments_codec
14111             = pb::FieldCodec.ForString(50);
14112         private readonly pbc::RepeatedField<string> leadingDetachedComments_ = new pbc::RepeatedField<string>();
14113         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14114         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14115         public pbc::RepeatedField<string> LeadingDetachedComments {
14116           get { return leadingDetachedComments_; }
14117         }
14118 
14119         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14120         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)14121         public override bool Equals(object other) {
14122           return Equals(other as Location);
14123         }
14124 
14125         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14126         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(Location other)14127         public bool Equals(Location other) {
14128           if (ReferenceEquals(other, null)) {
14129             return false;
14130           }
14131           if (ReferenceEquals(other, this)) {
14132             return true;
14133           }
14134           if(!path_.Equals(other.path_)) return false;
14135           if(!span_.Equals(other.span_)) return false;
14136           if (LeadingComments != other.LeadingComments) return false;
14137           if (TrailingComments != other.TrailingComments) return false;
14138           if(!leadingDetachedComments_.Equals(other.leadingDetachedComments_)) return false;
14139           return Equals(_unknownFields, other._unknownFields);
14140         }
14141 
14142         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14143         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()14144         public override int GetHashCode() {
14145           int hash = 1;
14146           hash ^= path_.GetHashCode();
14147           hash ^= span_.GetHashCode();
14148           if (HasLeadingComments) hash ^= LeadingComments.GetHashCode();
14149           if (HasTrailingComments) hash ^= TrailingComments.GetHashCode();
14150           hash ^= leadingDetachedComments_.GetHashCode();
14151           if (_unknownFields != null) {
14152             hash ^= _unknownFields.GetHashCode();
14153           }
14154           return hash;
14155         }
14156 
14157         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14158         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()14159         public override string ToString() {
14160           return pb::JsonFormatter.ToDiagnosticString(this);
14161         }
14162 
14163         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14164         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)14165         public void WriteTo(pb::CodedOutputStream output) {
14166         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14167           output.WriteRawMessage(this);
14168         #else
14169           path_.WriteTo(output, _repeated_path_codec);
14170           span_.WriteTo(output, _repeated_span_codec);
14171           if (HasLeadingComments) {
14172             output.WriteRawTag(26);
14173             output.WriteString(LeadingComments);
14174           }
14175           if (HasTrailingComments) {
14176             output.WriteRawTag(34);
14177             output.WriteString(TrailingComments);
14178           }
14179           leadingDetachedComments_.WriteTo(output, _repeated_leadingDetachedComments_codec);
14180           if (_unknownFields != null) {
14181             _unknownFields.WriteTo(output);
14182           }
14183         #endif
14184         }
14185 
14186         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14187         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14188         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)14189         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
14190           path_.WriteTo(ref output, _repeated_path_codec);
14191           span_.WriteTo(ref output, _repeated_span_codec);
14192           if (HasLeadingComments) {
14193             output.WriteRawTag(26);
14194             output.WriteString(LeadingComments);
14195           }
14196           if (HasTrailingComments) {
14197             output.WriteRawTag(34);
14198             output.WriteString(TrailingComments);
14199           }
14200           leadingDetachedComments_.WriteTo(ref output, _repeated_leadingDetachedComments_codec);
14201           if (_unknownFields != null) {
14202             _unknownFields.WriteTo(ref output);
14203           }
14204         }
14205         #endif
14206 
14207         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14208         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()14209         public int CalculateSize() {
14210           int size = 0;
14211           size += path_.CalculateSize(_repeated_path_codec);
14212           size += span_.CalculateSize(_repeated_span_codec);
14213           if (HasLeadingComments) {
14214             size += 1 + pb::CodedOutputStream.ComputeStringSize(LeadingComments);
14215           }
14216           if (HasTrailingComments) {
14217             size += 1 + pb::CodedOutputStream.ComputeStringSize(TrailingComments);
14218           }
14219           size += leadingDetachedComments_.CalculateSize(_repeated_leadingDetachedComments_codec);
14220           if (_unknownFields != null) {
14221             size += _unknownFields.CalculateSize();
14222           }
14223           return size;
14224         }
14225 
14226         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14227         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(Location other)14228         public void MergeFrom(Location other) {
14229           if (other == null) {
14230             return;
14231           }
14232           path_.Add(other.path_);
14233           span_.Add(other.span_);
14234           if (other.HasLeadingComments) {
14235             LeadingComments = other.LeadingComments;
14236           }
14237           if (other.HasTrailingComments) {
14238             TrailingComments = other.TrailingComments;
14239           }
14240           leadingDetachedComments_.Add(other.leadingDetachedComments_);
14241           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
14242         }
14243 
14244         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14245         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)14246         public void MergeFrom(pb::CodedInputStream input) {
14247         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14248           input.ReadRawMessage(this);
14249         #else
14250           uint tag;
14251           while ((tag = input.ReadTag()) != 0) {
14252           if ((tag & 7) == 4) {
14253             // Abort on any end group tag.
14254             return;
14255           }
14256           switch(tag) {
14257               default:
14258                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
14259                 break;
14260               case 10:
14261               case 8: {
14262                 path_.AddEntriesFrom(input, _repeated_path_codec);
14263                 break;
14264               }
14265               case 18:
14266               case 16: {
14267                 span_.AddEntriesFrom(input, _repeated_span_codec);
14268                 break;
14269               }
14270               case 26: {
14271                 LeadingComments = input.ReadString();
14272                 break;
14273               }
14274               case 34: {
14275                 TrailingComments = input.ReadString();
14276                 break;
14277               }
14278               case 50: {
14279                 leadingDetachedComments_.AddEntriesFrom(input, _repeated_leadingDetachedComments_codec);
14280                 break;
14281               }
14282             }
14283           }
14284         #endif
14285         }
14286 
14287         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14288         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14289         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)14290         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
14291           uint tag;
14292           while ((tag = input.ReadTag()) != 0) {
14293           if ((tag & 7) == 4) {
14294             // Abort on any end group tag.
14295             return;
14296           }
14297           switch(tag) {
14298               default:
14299                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
14300                 break;
14301               case 10:
14302               case 8: {
14303                 path_.AddEntriesFrom(ref input, _repeated_path_codec);
14304                 break;
14305               }
14306               case 18:
14307               case 16: {
14308                 span_.AddEntriesFrom(ref input, _repeated_span_codec);
14309                 break;
14310               }
14311               case 26: {
14312                 LeadingComments = input.ReadString();
14313                 break;
14314               }
14315               case 34: {
14316                 TrailingComments = input.ReadString();
14317                 break;
14318               }
14319               case 50: {
14320                 leadingDetachedComments_.AddEntriesFrom(ref input, _repeated_leadingDetachedComments_codec);
14321                 break;
14322               }
14323             }
14324           }
14325         }
14326         #endif
14327 
14328       }
14329 
14330     }
14331     #endregion
14332 
14333   }
14334 
14335   /// <summary>
14336   /// Describes the relationship between generated code and its original source
14337   /// file. A GeneratedCodeInfo message is associated with only one generated
14338   /// source file, but may contain references to different source .proto files.
14339   /// </summary>
14340   [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
14341   public sealed partial class GeneratedCodeInfo : pb::IMessage<GeneratedCodeInfo>
14342   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14343       , pb::IBufferMessage
14344   #endif
14345   {
14346     private static readonly pb::MessageParser<GeneratedCodeInfo> _parser = new pb::MessageParser<GeneratedCodeInfo>(() => new GeneratedCodeInfo());
14347     private pb::UnknownFieldSet _unknownFields;
14348     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14349     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14350     public static pb::MessageParser<GeneratedCodeInfo> Parser { get { return _parser; } }
14351 
14352     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14353     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14354     public static pbr::MessageDescriptor Descriptor {
14355       get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[22]; }
14356     }
14357 
14358     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14359     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14360     pbr::MessageDescriptor pb::IMessage.Descriptor {
14361       get { return Descriptor; }
14362     }
14363 
14364     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14365     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GeneratedCodeInfo()14366     public GeneratedCodeInfo() {
14367       OnConstruction();
14368     }
14369 
OnConstruction()14370     partial void OnConstruction();
14371 
14372     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14373     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GeneratedCodeInfo(GeneratedCodeInfo other)14374     public GeneratedCodeInfo(GeneratedCodeInfo other) : this() {
14375       annotation_ = other.annotation_.Clone();
14376       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
14377     }
14378 
14379     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14380     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()14381     public GeneratedCodeInfo Clone() {
14382       return new GeneratedCodeInfo(this);
14383     }
14384 
14385     /// <summary>Field number for the "annotation" field.</summary>
14386     public const int AnnotationFieldNumber = 1;
14387     private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation> _repeated_annotation_codec
14388         = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation.Parser);
14389     private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation> annotation_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation>();
14390     /// <summary>
14391     /// An Annotation connects some span of text in generated code to an element
14392     /// of its generating .proto file.
14393     /// </summary>
14394     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14395     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14396     public pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation> Annotation {
14397       get { return annotation_; }
14398     }
14399 
14400     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14401     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)14402     public override bool Equals(object other) {
14403       return Equals(other as GeneratedCodeInfo);
14404     }
14405 
14406     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14407     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(GeneratedCodeInfo other)14408     public bool Equals(GeneratedCodeInfo other) {
14409       if (ReferenceEquals(other, null)) {
14410         return false;
14411       }
14412       if (ReferenceEquals(other, this)) {
14413         return true;
14414       }
14415       if(!annotation_.Equals(other.annotation_)) return false;
14416       return Equals(_unknownFields, other._unknownFields);
14417     }
14418 
14419     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14420     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()14421     public override int GetHashCode() {
14422       int hash = 1;
14423       hash ^= annotation_.GetHashCode();
14424       if (_unknownFields != null) {
14425         hash ^= _unknownFields.GetHashCode();
14426       }
14427       return hash;
14428     }
14429 
14430     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14431     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()14432     public override string ToString() {
14433       return pb::JsonFormatter.ToDiagnosticString(this);
14434     }
14435 
14436     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14437     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)14438     public void WriteTo(pb::CodedOutputStream output) {
14439     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14440       output.WriteRawMessage(this);
14441     #else
14442       annotation_.WriteTo(output, _repeated_annotation_codec);
14443       if (_unknownFields != null) {
14444         _unknownFields.WriteTo(output);
14445       }
14446     #endif
14447     }
14448 
14449     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14450     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14451     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)14452     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
14453       annotation_.WriteTo(ref output, _repeated_annotation_codec);
14454       if (_unknownFields != null) {
14455         _unknownFields.WriteTo(ref output);
14456       }
14457     }
14458     #endif
14459 
14460     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14461     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()14462     public int CalculateSize() {
14463       int size = 0;
14464       size += annotation_.CalculateSize(_repeated_annotation_codec);
14465       if (_unknownFields != null) {
14466         size += _unknownFields.CalculateSize();
14467       }
14468       return size;
14469     }
14470 
14471     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14472     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(GeneratedCodeInfo other)14473     public void MergeFrom(GeneratedCodeInfo other) {
14474       if (other == null) {
14475         return;
14476       }
14477       annotation_.Add(other.annotation_);
14478       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
14479     }
14480 
14481     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14482     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)14483     public void MergeFrom(pb::CodedInputStream input) {
14484     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14485       input.ReadRawMessage(this);
14486     #else
14487       uint tag;
14488       while ((tag = input.ReadTag()) != 0) {
14489       if ((tag & 7) == 4) {
14490         // Abort on any end group tag.
14491         return;
14492       }
14493       switch(tag) {
14494           default:
14495             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
14496             break;
14497           case 10: {
14498             annotation_.AddEntriesFrom(input, _repeated_annotation_codec);
14499             break;
14500           }
14501         }
14502       }
14503     #endif
14504     }
14505 
14506     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14507     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14508     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)14509     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
14510       uint tag;
14511       while ((tag = input.ReadTag()) != 0) {
14512       if ((tag & 7) == 4) {
14513         // Abort on any end group tag.
14514         return;
14515       }
14516       switch(tag) {
14517           default:
14518             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
14519             break;
14520           case 10: {
14521             annotation_.AddEntriesFrom(ref input, _repeated_annotation_codec);
14522             break;
14523           }
14524         }
14525       }
14526     }
14527     #endif
14528 
14529     #region Nested types
14530     /// <summary>Container for nested types declared in the GeneratedCodeInfo message type.</summary>
14531     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14532     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14533     public static partial class Types {
14534       [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
14535       public sealed partial class Annotation : pb::IMessage<Annotation>
14536       #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14537           , pb::IBufferMessage
14538       #endif
14539       {
14540         private static readonly pb::MessageParser<Annotation> _parser = new pb::MessageParser<Annotation>(() => new Annotation());
14541         private pb::UnknownFieldSet _unknownFields;
14542         private int _hasBits0;
14543         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14544         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14545         public static pb::MessageParser<Annotation> Parser { get { return _parser; } }
14546 
14547         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14548         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14549         public static pbr::MessageDescriptor Descriptor {
14550           get { return global::Google.Protobuf.Reflection.GeneratedCodeInfo.Descriptor.NestedTypes[0]; }
14551         }
14552 
14553         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14554         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14555         pbr::MessageDescriptor pb::IMessage.Descriptor {
14556           get { return Descriptor; }
14557         }
14558 
14559         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14560         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Annotation()14561         public Annotation() {
14562           OnConstruction();
14563         }
14564 
OnConstruction()14565         partial void OnConstruction();
14566 
14567         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14568         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Annotation(Annotation other)14569         public Annotation(Annotation other) : this() {
14570           _hasBits0 = other._hasBits0;
14571           path_ = other.path_.Clone();
14572           sourceFile_ = other.sourceFile_;
14573           begin_ = other.begin_;
14574           end_ = other.end_;
14575           semantic_ = other.semantic_;
14576           _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
14577         }
14578 
14579         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14580         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()14581         public Annotation Clone() {
14582           return new Annotation(this);
14583         }
14584 
14585         /// <summary>Field number for the "path" field.</summary>
14586         public const int PathFieldNumber = 1;
14587         private static readonly pb::FieldCodec<int> _repeated_path_codec
14588             = pb::FieldCodec.ForInt32(10);
14589         private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField<int>();
14590         /// <summary>
14591         /// Identifies the element in the original source .proto file. This field
14592         /// is formatted the same as SourceCodeInfo.Location.path.
14593         /// </summary>
14594         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14595         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14596         public pbc::RepeatedField<int> Path {
14597           get { return path_; }
14598         }
14599 
14600         /// <summary>Field number for the "source_file" field.</summary>
14601         public const int SourceFileFieldNumber = 2;
14602         private readonly static string SourceFileDefaultValue = "";
14603 
14604         private string sourceFile_;
14605         /// <summary>
14606         /// Identifies the filesystem path to the original source .proto.
14607         /// </summary>
14608         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14609         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14610         public string SourceFile {
14611           get { return sourceFile_ ?? SourceFileDefaultValue; }
14612           set {
14613             sourceFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
14614           }
14615         }
14616         /// <summary>Gets whether the "source_file" field is set</summary>
14617         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14618         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14619         public bool HasSourceFile {
14620           get { return sourceFile_ != null; }
14621         }
14622         /// <summary>Clears the value of the "source_file" field</summary>
14623         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14624         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearSourceFile()14625         public void ClearSourceFile() {
14626           sourceFile_ = null;
14627         }
14628 
14629         /// <summary>Field number for the "begin" field.</summary>
14630         public const int BeginFieldNumber = 3;
14631         private readonly static int BeginDefaultValue = 0;
14632 
14633         private int begin_;
14634         /// <summary>
14635         /// Identifies the starting offset in bytes in the generated code
14636         /// that relates to the identified object.
14637         /// </summary>
14638         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14639         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14640         public int Begin {
14641           get { if ((_hasBits0 & 1) != 0) { return begin_; } else { return BeginDefaultValue; } }
14642           set {
14643             _hasBits0 |= 1;
14644             begin_ = value;
14645           }
14646         }
14647         /// <summary>Gets whether the "begin" field is set</summary>
14648         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14649         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14650         public bool HasBegin {
14651           get { return (_hasBits0 & 1) != 0; }
14652         }
14653         /// <summary>Clears the value of the "begin" field</summary>
14654         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14655         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearBegin()14656         public void ClearBegin() {
14657           _hasBits0 &= ~1;
14658         }
14659 
14660         /// <summary>Field number for the "end" field.</summary>
14661         public const int EndFieldNumber = 4;
14662         private readonly static int EndDefaultValue = 0;
14663 
14664         private int end_;
14665         /// <summary>
14666         /// Identifies the ending offset in bytes in the generated code that
14667         /// relates to the identified object. The end offset should be one past
14668         /// the last relevant byte (so the length of the text = end - begin).
14669         /// </summary>
14670         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14671         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14672         public int End {
14673           get { if ((_hasBits0 & 2) != 0) { return end_; } else { return EndDefaultValue; } }
14674           set {
14675             _hasBits0 |= 2;
14676             end_ = value;
14677           }
14678         }
14679         /// <summary>Gets whether the "end" field is set</summary>
14680         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14681         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14682         public bool HasEnd {
14683           get { return (_hasBits0 & 2) != 0; }
14684         }
14685         /// <summary>Clears the value of the "end" field</summary>
14686         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14687         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearEnd()14688         public void ClearEnd() {
14689           _hasBits0 &= ~2;
14690         }
14691 
14692         /// <summary>Field number for the "semantic" field.</summary>
14693         public const int SemanticFieldNumber = 5;
14694         private readonly static global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation.Types.Semantic SemanticDefaultValue = global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation.Types.Semantic.None;
14695 
14696         private global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation.Types.Semantic semantic_;
14697         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14698         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14699         public global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation.Types.Semantic Semantic {
14700           get { if ((_hasBits0 & 4) != 0) { return semantic_; } else { return SemanticDefaultValue; } }
14701           set {
14702             _hasBits0 |= 4;
14703             semantic_ = value;
14704           }
14705         }
14706         /// <summary>Gets whether the "semantic" field is set</summary>
14707         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14708         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14709         public bool HasSemantic {
14710           get { return (_hasBits0 & 4) != 0; }
14711         }
14712         /// <summary>Clears the value of the "semantic" field</summary>
14713         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14714         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ClearSemantic()14715         public void ClearSemantic() {
14716           _hasBits0 &= ~4;
14717         }
14718 
14719         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14720         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)14721         public override bool Equals(object other) {
14722           return Equals(other as Annotation);
14723         }
14724 
14725         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14726         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(Annotation other)14727         public bool Equals(Annotation other) {
14728           if (ReferenceEquals(other, null)) {
14729             return false;
14730           }
14731           if (ReferenceEquals(other, this)) {
14732             return true;
14733           }
14734           if(!path_.Equals(other.path_)) return false;
14735           if (SourceFile != other.SourceFile) return false;
14736           if (Begin != other.Begin) return false;
14737           if (End != other.End) return false;
14738           if (Semantic != other.Semantic) return false;
14739           return Equals(_unknownFields, other._unknownFields);
14740         }
14741 
14742         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14743         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()14744         public override int GetHashCode() {
14745           int hash = 1;
14746           hash ^= path_.GetHashCode();
14747           if (HasSourceFile) hash ^= SourceFile.GetHashCode();
14748           if (HasBegin) hash ^= Begin.GetHashCode();
14749           if (HasEnd) hash ^= End.GetHashCode();
14750           if (HasSemantic) hash ^= Semantic.GetHashCode();
14751           if (_unknownFields != null) {
14752             hash ^= _unknownFields.GetHashCode();
14753           }
14754           return hash;
14755         }
14756 
14757         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14758         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()14759         public override string ToString() {
14760           return pb::JsonFormatter.ToDiagnosticString(this);
14761         }
14762 
14763         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14764         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)14765         public void WriteTo(pb::CodedOutputStream output) {
14766         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14767           output.WriteRawMessage(this);
14768         #else
14769           path_.WriteTo(output, _repeated_path_codec);
14770           if (HasSourceFile) {
14771             output.WriteRawTag(18);
14772             output.WriteString(SourceFile);
14773           }
14774           if (HasBegin) {
14775             output.WriteRawTag(24);
14776             output.WriteInt32(Begin);
14777           }
14778           if (HasEnd) {
14779             output.WriteRawTag(32);
14780             output.WriteInt32(End);
14781           }
14782           if (HasSemantic) {
14783             output.WriteRawTag(40);
14784             output.WriteEnum((int) Semantic);
14785           }
14786           if (_unknownFields != null) {
14787             _unknownFields.WriteTo(output);
14788           }
14789         #endif
14790         }
14791 
14792         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14793         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14794         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)14795         void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
14796           path_.WriteTo(ref output, _repeated_path_codec);
14797           if (HasSourceFile) {
14798             output.WriteRawTag(18);
14799             output.WriteString(SourceFile);
14800           }
14801           if (HasBegin) {
14802             output.WriteRawTag(24);
14803             output.WriteInt32(Begin);
14804           }
14805           if (HasEnd) {
14806             output.WriteRawTag(32);
14807             output.WriteInt32(End);
14808           }
14809           if (HasSemantic) {
14810             output.WriteRawTag(40);
14811             output.WriteEnum((int) Semantic);
14812           }
14813           if (_unknownFields != null) {
14814             _unknownFields.WriteTo(ref output);
14815           }
14816         }
14817         #endif
14818 
14819         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14820         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()14821         public int CalculateSize() {
14822           int size = 0;
14823           size += path_.CalculateSize(_repeated_path_codec);
14824           if (HasSourceFile) {
14825             size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceFile);
14826           }
14827           if (HasBegin) {
14828             size += 1 + pb::CodedOutputStream.ComputeInt32Size(Begin);
14829           }
14830           if (HasEnd) {
14831             size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
14832           }
14833           if (HasSemantic) {
14834             size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Semantic);
14835           }
14836           if (_unknownFields != null) {
14837             size += _unknownFields.CalculateSize();
14838           }
14839           return size;
14840         }
14841 
14842         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14843         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(Annotation other)14844         public void MergeFrom(Annotation other) {
14845           if (other == null) {
14846             return;
14847           }
14848           path_.Add(other.path_);
14849           if (other.HasSourceFile) {
14850             SourceFile = other.SourceFile;
14851           }
14852           if (other.HasBegin) {
14853             Begin = other.Begin;
14854           }
14855           if (other.HasEnd) {
14856             End = other.End;
14857           }
14858           if (other.HasSemantic) {
14859             Semantic = other.Semantic;
14860           }
14861           _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
14862         }
14863 
14864         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14865         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)14866         public void MergeFrom(pb::CodedInputStream input) {
14867         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14868           input.ReadRawMessage(this);
14869         #else
14870           uint tag;
14871           while ((tag = input.ReadTag()) != 0) {
14872           if ((tag & 7) == 4) {
14873             // Abort on any end group tag.
14874             return;
14875           }
14876           switch(tag) {
14877               default:
14878                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
14879                 break;
14880               case 10:
14881               case 8: {
14882                 path_.AddEntriesFrom(input, _repeated_path_codec);
14883                 break;
14884               }
14885               case 18: {
14886                 SourceFile = input.ReadString();
14887                 break;
14888               }
14889               case 24: {
14890                 Begin = input.ReadInt32();
14891                 break;
14892               }
14893               case 32: {
14894                 End = input.ReadInt32();
14895                 break;
14896               }
14897               case 40: {
14898                 Semantic = (global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation.Types.Semantic) input.ReadEnum();
14899                 break;
14900               }
14901             }
14902           }
14903         #endif
14904         }
14905 
14906         #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
14907         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14908         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)14909         void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
14910           uint tag;
14911           while ((tag = input.ReadTag()) != 0) {
14912           if ((tag & 7) == 4) {
14913             // Abort on any end group tag.
14914             return;
14915           }
14916           switch(tag) {
14917               default:
14918                 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
14919                 break;
14920               case 10:
14921               case 8: {
14922                 path_.AddEntriesFrom(ref input, _repeated_path_codec);
14923                 break;
14924               }
14925               case 18: {
14926                 SourceFile = input.ReadString();
14927                 break;
14928               }
14929               case 24: {
14930                 Begin = input.ReadInt32();
14931                 break;
14932               }
14933               case 32: {
14934                 End = input.ReadInt32();
14935                 break;
14936               }
14937               case 40: {
14938                 Semantic = (global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation.Types.Semantic) input.ReadEnum();
14939                 break;
14940               }
14941             }
14942           }
14943         }
14944         #endif
14945 
14946         #region Nested types
14947         /// <summary>Container for nested types declared in the Annotation message type.</summary>
14948         [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
14949         [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
14950         public static partial class Types {
14951           /// <summary>
14952           /// Represents the identified object's effect on the element in the original
14953           /// .proto file.
14954           /// </summary>
14955           public enum Semantic {
14956             /// <summary>
14957             /// There is no effect or the effect is indescribable.
14958             /// </summary>
14959             [pbr::OriginalName("NONE")] None = 0,
14960             /// <summary>
14961             /// The element is set or otherwise mutated.
14962             /// </summary>
14963             [pbr::OriginalName("SET")] Set = 1,
14964             /// <summary>
14965             /// An alias to the element is returned.
14966             /// </summary>
14967             [pbr::OriginalName("ALIAS")] Alias = 2,
14968           }
14969 
14970         }
14971         #endregion
14972 
14973       }
14974 
14975     }
14976     #endregion
14977 
14978   }
14979 
14980   #endregion
14981 
14982 }
14983 
14984 #endregion Designer generated code
14985