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