1 // <auto-generated> 2 // Generated by the protocol buffer compiler. DO NOT EDIT! 3 // source: google/protobuf/unittest_features.proto 4 // </auto-generated> 5 #pragma warning disable 1591, 0612, 3021, 8981 6 #region Designer generated code 7 8 using pb = global::Google.Protobuf; 9 using pbc = global::Google.Protobuf.Collections; 10 using pbr = global::Google.Protobuf.Reflection; 11 using scg = global::System.Collections.Generic; 12 namespace Pb { 13 14 /// <summary>Holder for reflection information generated from google/protobuf/unittest_features.proto</summary> 15 public static partial class UnittestFeaturesReflection { 16 17 #region Descriptor 18 /// <summary>File descriptor for google/protobuf/unittest_features.proto</summary> 19 public static pbr::FileDescriptor Descriptor { 20 get { return descriptor; } 21 } 22 private static pbr::FileDescriptor descriptor; 23 UnittestFeaturesReflection()24 static UnittestFeaturesReflection() { 25 byte[] descriptorData = global::System.Convert.FromBase64String( 26 string.Concat( 27 "Cidnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfZmVhdHVyZXMucHJvdG8SAnBi", 28 "GiBnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvci5wcm90byKiAQoLVGVzdE1l", 29 "c3NhZ2UaTQoGTmVzdGVkMkMKC3Rlc3RfbmVzdGVkEhsuZ29vZ2xlLnByb3Rv", 30 "YnVmLkZlYXR1cmVTZXQYjU4gASgLMhAucGIuVGVzdEZlYXR1cmVzMkQKDHRl", 31 "c3RfbWVzc2FnZRIbLmdvb2dsZS5wcm90b2J1Zi5GZWF0dXJlU2V0GI5OIAEo", 32 "CzIQLnBiLlRlc3RGZWF0dXJlcyKsDAoMVGVzdEZlYXR1cmVzEnsKDGZpbGVf", 33 "ZmVhdHVyZRgBIAEoDjIPLnBiLkVudW1GZWF0dXJlQlSIAQGYAQGiAQsSBlZB", 34 "TFVFMRiEB6IBCxIGVkFMVUUyGOcHogELEgZWQUxVRTMY6AeiAQwSBlZBTFVF", 35 "NBidjQaiAQwSBlZBTFVFNRiejQayAQMI6AcSTAoXZXh0ZW5zaW9uX3Jhbmdl", 36 "X2ZlYXR1cmUYAiABKA4yDy5wYi5FbnVtRmVhdHVyZUIaiAEBmAECogELEgZW", 37 "QUxVRTEYhAeyAQMI6AcSRAoPbWVzc2FnZV9mZWF0dXJlGAMgASgOMg8ucGIu", 38 "RW51bUZlYXR1cmVCGogBAZgBA6IBCxIGVkFMVUUxGIQHsgEDCOgHEkIKDWZp", 39 "ZWxkX2ZlYXR1cmUYBCABKA4yDy5wYi5FbnVtRmVhdHVyZUIaiAEBmAEEogEL", 40 "EgZWQUxVRTEYhAeyAQMI6AcSQgoNb25lb2ZfZmVhdHVyZRgFIAEoDjIPLnBi", 41 "LkVudW1GZWF0dXJlQhqIAQGYAQWiAQsSBlZBTFVFMRiEB7IBAwjoBxJBCgxl", 42 "bnVtX2ZlYXR1cmUYBiABKA4yDy5wYi5FbnVtRmVhdHVyZUIaiAEBmAEGogEL", 43 "EgZWQUxVRTEYhAeyAQMI6AcSRwoSZW51bV9lbnRyeV9mZWF0dXJlGAcgASgO", 44 "Mg8ucGIuRW51bUZlYXR1cmVCGogBAZgBB6IBCxIGVkFMVUUxGIQHsgEDCOgH", 45 "EkQKD3NlcnZpY2VfZmVhdHVyZRgIIAEoDjIPLnBiLkVudW1GZWF0dXJlQhqI", 46 "AQGYAQiiAQsSBlZBTFVFMRiEB7IBAwjoBxJDCg5tZXRob2RfZmVhdHVyZRgJ", 47 "IAEoDjIPLnBiLkVudW1GZWF0dXJlQhqIAQGYAQmiAQsSBlZBTFVFMRiEB7IB", 48 "AwjoBxJdChBtdWx0aXBsZV9mZWF0dXJlGAogASgOMg8ucGIuRW51bUZlYXR1", 49 "cmVCMogBAZgBAZgBBJgBA5gBBpgBB5gBCJgBCZgBBZgBAqIBCxIGVkFMVUUx", 50 "GIQHsgEDCOgHEkIKEmJvb2xfZmllbGRfZmVhdHVyZRgLIAEoCEImiAEBmAEE", 51 "ogEKEgVmYWxzZRiEB6IBChIEdHJ1ZRidjQayAQMI6AcSWwoOc291cmNlX2Zl", 52 "YXR1cmUYDyABKA4yDy5wYi5FbnVtRmVhdHVyZUIyiAECmAEBmAEEmAEDmAEG", 53 "mAEHmAEImAEJmAEFmAECogELEgZWQUxVRTEYhAeyAQMI6AcSXAoPc291cmNl", 54 "X2ZlYXR1cmUyGBAgASgOMg8ucGIuRW51bUZlYXR1cmVCMogBApgBAZgBBJgB", 55 "A5gBBpgBB5gBCJgBCZgBBZgBAqIBCxIGVkFMVUUxGIQHsgEDCOgHEo0BCg9y", 56 "ZW1vdmVkX2ZlYXR1cmUYESABKA4yDy5wYi5FbnVtRmVhdHVyZUJjiAEBmAEB", 57 "mAEEogELEgZWQUxVRTEYhAeiAQsSBlZBTFVFMhjoB6IBCxIGVkFMVUUzGOkH", 58 "sgEtCOgHEOgHGiJDdXN0b20gZmVhdHVyZSBkZXByZWNhdGlvbiB3YXJuaW5n", 59 "IOkHElQKDmZ1dHVyZV9mZWF0dXJlGBIgASgOMg8ucGIuRW51bUZlYXR1cmVC", 60 "K4gBAZgBAZgBBKIBCxIGVkFMVUUxGIQHogELEgZWQUxVRTIY6QeyAQMI6QcS", 61 "VwoObGVnYWN5X2ZlYXR1cmUYEyABKA4yDy5wYi5FbnVtRmVhdHVyZUIuiAEB", 62 "mAEBmAEEogELEgZWQUxVRTEYhAeiAQsSBlZBTFVFMhjoB7IBBgjnByDoBxLO", 63 "AQoWdmFsdWVfbGlmZXRpbWVfZmVhdHVyZRgUIAEoDjIYLnBiLlZhbHVlTGlm", 64 "ZXRpbWVGZWF0dXJlQpMBiAEBmAEBogEdEhhWQUxVRV9MSUZFVElNRV9JTkhF", 65 "UklURUQYhAeiARoSFVZBTFVFX0xJRkVUSU1FX0ZVVFVSRRjoB6IBGxIVVkFM", 66 "VUVfTElGRVRJTUVfRlVUVVJFGJ+NBrIBLwjoBxCejQYaIkN1c3RvbSBmZWF0", 67 "dXJlIGRlcHJlY2F0aW9uIHdhcm5pbmcgn40GKuYBCgtFbnVtRmVhdHVyZRId", 68 "ChlURVNUX0VOVU1fRkVBVFVSRV9VTktOT1dOEAASCgoGVkFMVUUxEAESCgoG", 69 "VkFMVUUyEAISCgoGVkFMVUUzEAMSCgoGVkFMVUU0EAQSCgoGVkFMVUU1EAUS", 70 "CgoGVkFMVUU2EAYSCgoGVkFMVUU3EAcSCgoGVkFMVUU4EAgSCgoGVkFMVUU5", 71 "EAkSCwoHVkFMVUUxMBAKEgsKB1ZBTFVFMTEQCxILCgdWQUxVRTEyEAwSCwoH", 72 "VkFMVUUxMxANEgsKB1ZBTFVFMTQQDhILCgdWQUxVRTE1EA8q4AIKFFZhbHVl", 73 "TGlmZXRpbWVGZWF0dXJlEh8KG1RFU1RfVkFMVUVfTElGRVRJTUVfVU5LTk9X", 74 "ThAAEhwKGFZBTFVFX0xJRkVUSU1FX0lOSEVSSVRFRBABEk4KFlZBTFVFX0xJ", 75 "RkVUSU1FX1NVUFBPUlQQAhoyIjAInY0GEJ6NBhoiQ3VzdG9tIGZlYXR1cmUg", 76 "ZGVwcmVjYXRpb24gd2FybmluZyCfjQYSJAocVkFMVUVfTElGRVRJTUVfRU1Q", 77 "VFlfU1VQUE9SVBADGgIiABIhChVWQUxVRV9MSUZFVElNRV9GVVRVUkUQBBoG", 78 "IgQInY0GEkkKGVZBTFVFX0xJRkVUSU1FX0RFUFJFQ0FURUQQBRoqIigQnY0G", 79 "GiJDdXN0b20gZmVhdHVyZSBkZXByZWNhdGlvbiB3YXJuaW5nEiUKFlZBTFVF", 80 "X0xJRkVUSU1FX1JFTU9WRUQQBhoJIgcQ6AcgnY0GOjwKBHRlc3QSGy5nb29n", 81 "bGUucHJvdG9idWYuRmVhdHVyZVNldBiPTiABKAsyEC5wYi5UZXN0RmVhdHVy", 82 "ZXNiCGVkaXRpb25zcOgH")); 83 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, 84 new pbr::FileDescriptor[] { global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, }, 85 new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Pb.EnumFeature), typeof(global::Pb.ValueLifetimeFeature), }, new pb::Extension[] { UnittestFeaturesExtensions.Test }, new pbr::GeneratedClrTypeInfo[] { 86 new pbr::GeneratedClrTypeInfo(typeof(global::Pb.TestMessage), global::Pb.TestMessage.Parser, null, null, null, new pb::Extension[] { global::Pb.TestMessage.Extensions.TestMessage }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Pb.TestMessage.Types.Nested), global::Pb.TestMessage.Types.Nested.Parser, null, null, null, new pb::Extension[] { global::Pb.TestMessage.Types.Nested.Extensions.TestNested }, null)}), 87 new pbr::GeneratedClrTypeInfo(typeof(global::Pb.TestFeatures), global::Pb.TestFeatures.Parser, new[]{ "FileFeature", "ExtensionRangeFeature", "MessageFeature", "FieldFeature", "OneofFeature", "EnumFeature", "EnumEntryFeature", "ServiceFeature", "MethodFeature", "MultipleFeature", "BoolFieldFeature", "SourceFeature", "SourceFeature2", "RemovedFeature", "FutureFeature", "LegacyFeature", "ValueLifetimeFeature" }, null, null, null, null) 88 })); 89 } 90 #endregion 91 92 } 93 /// <summary>Holder for extension identifiers generated from the top level of google/protobuf/unittest_features.proto</summary> 94 public static partial class UnittestFeaturesExtensions { 95 public static readonly pb::Extension<global::Google.Protobuf.Reflection.FeatureSet, global::Pb.TestFeatures> Test = 96 new pb::Extension<global::Google.Protobuf.Reflection.FeatureSet, global::Pb.TestFeatures>(9999, pb::FieldCodec.ForMessage(79994, global::Pb.TestFeatures.Parser)); 97 } 98 99 #region Enums 100 public enum EnumFeature { 101 [pbr::OriginalName("TEST_ENUM_FEATURE_UNKNOWN")] TestEnumFeatureUnknown = 0, 102 [pbr::OriginalName("VALUE1")] Value1 = 1, 103 [pbr::OriginalName("VALUE2")] Value2 = 2, 104 [pbr::OriginalName("VALUE3")] Value3 = 3, 105 [pbr::OriginalName("VALUE4")] Value4 = 4, 106 [pbr::OriginalName("VALUE5")] Value5 = 5, 107 [pbr::OriginalName("VALUE6")] Value6 = 6, 108 [pbr::OriginalName("VALUE7")] Value7 = 7, 109 [pbr::OriginalName("VALUE8")] Value8 = 8, 110 [pbr::OriginalName("VALUE9")] Value9 = 9, 111 [pbr::OriginalName("VALUE10")] Value10 = 10, 112 [pbr::OriginalName("VALUE11")] Value11 = 11, 113 [pbr::OriginalName("VALUE12")] Value12 = 12, 114 [pbr::OriginalName("VALUE13")] Value13 = 13, 115 [pbr::OriginalName("VALUE14")] Value14 = 14, 116 [pbr::OriginalName("VALUE15")] Value15 = 15, 117 } 118 119 public enum ValueLifetimeFeature { 120 [pbr::OriginalName("TEST_VALUE_LIFETIME_UNKNOWN")] TestValueLifetimeUnknown = 0, 121 [pbr::OriginalName("VALUE_LIFETIME_INHERITED")] ValueLifetimeInherited = 1, 122 [pbr::OriginalName("VALUE_LIFETIME_SUPPORT")] ValueLifetimeSupport = 2, 123 [pbr::OriginalName("VALUE_LIFETIME_EMPTY_SUPPORT")] ValueLifetimeEmptySupport = 3, 124 [pbr::OriginalName("VALUE_LIFETIME_FUTURE")] ValueLifetimeFuture = 4, 125 [pbr::OriginalName("VALUE_LIFETIME_DEPRECATED")] ValueLifetimeDeprecated = 5, 126 [pbr::OriginalName("VALUE_LIFETIME_REMOVED")] ValueLifetimeRemoved = 6, 127 } 128 129 #endregion 130 131 #region Messages 132 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 133 public sealed partial class TestMessage : pb::IMessage<TestMessage> 134 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 135 , pb::IBufferMessage 136 #endif 137 { 138 private static readonly pb::MessageParser<TestMessage> _parser = new pb::MessageParser<TestMessage>(() => new TestMessage()); 139 private pb::UnknownFieldSet _unknownFields; 140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 141 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 142 public static pb::MessageParser<TestMessage> Parser { get { return _parser; } } 143 144 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 145 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 146 public static pbr::MessageDescriptor Descriptor { 147 get { return global::Pb.UnittestFeaturesReflection.Descriptor.MessageTypes[0]; } 148 } 149 150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 151 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 152 pbr::MessageDescriptor pb::IMessage.Descriptor { 153 get { return Descriptor; } 154 } 155 156 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 157 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestMessage()158 public TestMessage() { 159 OnConstruction(); 160 } 161 OnConstruction()162 partial void OnConstruction(); 163 164 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 165 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestMessage(TestMessage other)166 public TestMessage(TestMessage other) : this() { 167 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 168 } 169 170 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 171 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()172 public TestMessage Clone() { 173 return new TestMessage(this); 174 } 175 176 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 177 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)178 public override bool Equals(object other) { 179 return Equals(other as TestMessage); 180 } 181 182 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 183 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestMessage other)184 public bool Equals(TestMessage other) { 185 if (ReferenceEquals(other, null)) { 186 return false; 187 } 188 if (ReferenceEquals(other, this)) { 189 return true; 190 } 191 return Equals(_unknownFields, other._unknownFields); 192 } 193 194 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 195 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()196 public override int GetHashCode() { 197 int hash = 1; 198 if (_unknownFields != null) { 199 hash ^= _unknownFields.GetHashCode(); 200 } 201 return hash; 202 } 203 204 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 205 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()206 public override string ToString() { 207 return pb::JsonFormatter.ToDiagnosticString(this); 208 } 209 210 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 211 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)212 public void WriteTo(pb::CodedOutputStream output) { 213 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 214 output.WriteRawMessage(this); 215 #else 216 if (_unknownFields != null) { 217 _unknownFields.WriteTo(output); 218 } 219 #endif 220 } 221 222 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 223 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 224 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)225 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 226 if (_unknownFields != null) { 227 _unknownFields.WriteTo(ref output); 228 } 229 } 230 #endif 231 232 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 233 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()234 public int CalculateSize() { 235 int size = 0; 236 if (_unknownFields != null) { 237 size += _unknownFields.CalculateSize(); 238 } 239 return size; 240 } 241 242 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 243 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestMessage other)244 public void MergeFrom(TestMessage other) { 245 if (other == null) { 246 return; 247 } 248 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 249 } 250 251 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 252 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)253 public void MergeFrom(pb::CodedInputStream input) { 254 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 255 input.ReadRawMessage(this); 256 #else 257 uint tag; 258 while ((tag = input.ReadTag()) != 0) { 259 if ((tag & 7) == 4) { 260 // Abort on any end group tag. 261 return; 262 } 263 switch(tag) { 264 default: 265 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 266 break; 267 } 268 } 269 #endif 270 } 271 272 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 273 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 274 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)275 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 276 uint tag; 277 while ((tag = input.ReadTag()) != 0) { 278 if ((tag & 7) == 4) { 279 // Abort on any end group tag. 280 return; 281 } 282 switch(tag) { 283 default: 284 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 285 break; 286 } 287 } 288 } 289 #endif 290 291 #region Nested types 292 /// <summary>Container for nested types declared in the TestMessage message type.</summary> 293 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 294 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 295 public static partial class Types { 296 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 297 public sealed partial class Nested : pb::IMessage<Nested> 298 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 299 , pb::IBufferMessage 300 #endif 301 { 302 private static readonly pb::MessageParser<Nested> _parser = new pb::MessageParser<Nested>(() => new Nested()); 303 private pb::UnknownFieldSet _unknownFields; 304 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 305 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 306 public static pb::MessageParser<Nested> Parser { get { return _parser; } } 307 308 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 309 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 310 public static pbr::MessageDescriptor Descriptor { 311 get { return global::Pb.TestMessage.Descriptor.NestedTypes[0]; } 312 } 313 314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 315 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 316 pbr::MessageDescriptor pb::IMessage.Descriptor { 317 get { return Descriptor; } 318 } 319 320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 321 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Nested()322 public Nested() { 323 OnConstruction(); 324 } 325 OnConstruction()326 partial void OnConstruction(); 327 328 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 329 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Nested(Nested other)330 public Nested(Nested other) : this() { 331 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 332 } 333 334 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 335 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()336 public Nested Clone() { 337 return new Nested(this); 338 } 339 340 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 341 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)342 public override bool Equals(object other) { 343 return Equals(other as Nested); 344 } 345 346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 347 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(Nested other)348 public bool Equals(Nested other) { 349 if (ReferenceEquals(other, null)) { 350 return false; 351 } 352 if (ReferenceEquals(other, this)) { 353 return true; 354 } 355 return Equals(_unknownFields, other._unknownFields); 356 } 357 358 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 359 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()360 public override int GetHashCode() { 361 int hash = 1; 362 if (_unknownFields != null) { 363 hash ^= _unknownFields.GetHashCode(); 364 } 365 return hash; 366 } 367 368 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 369 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()370 public override string ToString() { 371 return pb::JsonFormatter.ToDiagnosticString(this); 372 } 373 374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 375 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)376 public void WriteTo(pb::CodedOutputStream output) { 377 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 378 output.WriteRawMessage(this); 379 #else 380 if (_unknownFields != null) { 381 _unknownFields.WriteTo(output); 382 } 383 #endif 384 } 385 386 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 387 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 388 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)389 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 390 if (_unknownFields != null) { 391 _unknownFields.WriteTo(ref output); 392 } 393 } 394 #endif 395 396 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 397 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()398 public int CalculateSize() { 399 int size = 0; 400 if (_unknownFields != null) { 401 size += _unknownFields.CalculateSize(); 402 } 403 return size; 404 } 405 406 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 407 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(Nested other)408 public void MergeFrom(Nested other) { 409 if (other == null) { 410 return; 411 } 412 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 413 } 414 415 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 416 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)417 public void MergeFrom(pb::CodedInputStream input) { 418 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 419 input.ReadRawMessage(this); 420 #else 421 uint tag; 422 while ((tag = input.ReadTag()) != 0) { 423 if ((tag & 7) == 4) { 424 // Abort on any end group tag. 425 return; 426 } 427 switch(tag) { 428 default: 429 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 430 break; 431 } 432 } 433 #endif 434 } 435 436 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 437 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 438 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)439 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 440 uint tag; 441 while ((tag = input.ReadTag()) != 0) { 442 if ((tag & 7) == 4) { 443 // Abort on any end group tag. 444 return; 445 } 446 switch(tag) { 447 default: 448 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 449 break; 450 } 451 } 452 } 453 #endif 454 455 #region Extensions 456 /// <summary>Container for extensions for other messages declared in the Nested message type.</summary> 457 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 458 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 459 public static partial class Extensions { 460 public static readonly pb::Extension<global::Google.Protobuf.Reflection.FeatureSet, global::Pb.TestFeatures> TestNested = 461 new pb::Extension<global::Google.Protobuf.Reflection.FeatureSet, global::Pb.TestFeatures>(9997, pb::FieldCodec.ForMessage(79978, global::Pb.TestFeatures.Parser)); 462 } 463 #endregion 464 465 } 466 467 } 468 #endregion 469 470 #region Extensions 471 /// <summary>Container for extensions for other messages declared in the TestMessage message type.</summary> 472 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 473 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 474 public static partial class Extensions { 475 public static readonly pb::Extension<global::Google.Protobuf.Reflection.FeatureSet, global::Pb.TestFeatures> TestMessage = 476 new pb::Extension<global::Google.Protobuf.Reflection.FeatureSet, global::Pb.TestFeatures>(9998, pb::FieldCodec.ForMessage(79986, global::Pb.TestFeatures.Parser)); 477 } 478 #endregion 479 480 } 481 482 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 483 public sealed partial class TestFeatures : pb::IMessage<TestFeatures> 484 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 485 , pb::IBufferMessage 486 #endif 487 { 488 private static readonly pb::MessageParser<TestFeatures> _parser = new pb::MessageParser<TestFeatures>(() => new TestFeatures()); 489 private pb::UnknownFieldSet _unknownFields; 490 private int _hasBits0; 491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 492 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 493 public static pb::MessageParser<TestFeatures> Parser { get { return _parser; } } 494 495 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 496 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 497 public static pbr::MessageDescriptor Descriptor { 498 get { return global::Pb.UnittestFeaturesReflection.Descriptor.MessageTypes[1]; } 499 } 500 501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 502 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 503 pbr::MessageDescriptor pb::IMessage.Descriptor { 504 get { return Descriptor; } 505 } 506 507 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 508 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestFeatures()509 public TestFeatures() { 510 OnConstruction(); 511 } 512 OnConstruction()513 partial void OnConstruction(); 514 515 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 516 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] TestFeatures(TestFeatures other)517 public TestFeatures(TestFeatures other) : this() { 518 _hasBits0 = other._hasBits0; 519 fileFeature_ = other.fileFeature_; 520 extensionRangeFeature_ = other.extensionRangeFeature_; 521 messageFeature_ = other.messageFeature_; 522 fieldFeature_ = other.fieldFeature_; 523 oneofFeature_ = other.oneofFeature_; 524 enumFeature_ = other.enumFeature_; 525 enumEntryFeature_ = other.enumEntryFeature_; 526 serviceFeature_ = other.serviceFeature_; 527 methodFeature_ = other.methodFeature_; 528 multipleFeature_ = other.multipleFeature_; 529 boolFieldFeature_ = other.boolFieldFeature_; 530 sourceFeature_ = other.sourceFeature_; 531 sourceFeature2_ = other.sourceFeature2_; 532 removedFeature_ = other.removedFeature_; 533 futureFeature_ = other.futureFeature_; 534 legacyFeature_ = other.legacyFeature_; 535 valueLifetimeFeature_ = other.valueLifetimeFeature_; 536 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 537 } 538 539 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 540 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()541 public TestFeatures Clone() { 542 return new TestFeatures(this); 543 } 544 545 /// <summary>Field number for the "file_feature" field.</summary> 546 public const int FileFeatureFieldNumber = 1; 547 private readonly static global::Pb.EnumFeature FileFeatureDefaultValue = global::Pb.EnumFeature.TestEnumFeatureUnknown; 548 549 private global::Pb.EnumFeature fileFeature_; 550 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 551 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 552 public global::Pb.EnumFeature FileFeature { 553 get { if ((_hasBits0 & 1) != 0) { return fileFeature_; } else { return FileFeatureDefaultValue; } } 554 set { 555 _hasBits0 |= 1; 556 fileFeature_ = value; 557 } 558 } 559 /// <summary>Gets whether the "file_feature" field is set</summary> 560 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 561 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 562 public bool HasFileFeature { 563 get { return (_hasBits0 & 1) != 0; } 564 } 565 /// <summary>Clears the value of the "file_feature" field</summary> 566 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 567 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFileFeature()568 public void ClearFileFeature() { 569 _hasBits0 &= ~1; 570 } 571 572 /// <summary>Field number for the "extension_range_feature" field.</summary> 573 public const int ExtensionRangeFeatureFieldNumber = 2; 574 private readonly static global::Pb.EnumFeature ExtensionRangeFeatureDefaultValue = global::Pb.EnumFeature.TestEnumFeatureUnknown; 575 576 private global::Pb.EnumFeature extensionRangeFeature_; 577 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 578 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 579 public global::Pb.EnumFeature ExtensionRangeFeature { 580 get { if ((_hasBits0 & 2) != 0) { return extensionRangeFeature_; } else { return ExtensionRangeFeatureDefaultValue; } } 581 set { 582 _hasBits0 |= 2; 583 extensionRangeFeature_ = value; 584 } 585 } 586 /// <summary>Gets whether the "extension_range_feature" field is set</summary> 587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 588 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 589 public bool HasExtensionRangeFeature { 590 get { return (_hasBits0 & 2) != 0; } 591 } 592 /// <summary>Clears the value of the "extension_range_feature" field</summary> 593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 594 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearExtensionRangeFeature()595 public void ClearExtensionRangeFeature() { 596 _hasBits0 &= ~2; 597 } 598 599 /// <summary>Field number for the "message_feature" field.</summary> 600 public const int MessageFeatureFieldNumber = 3; 601 private readonly static global::Pb.EnumFeature MessageFeatureDefaultValue = global::Pb.EnumFeature.TestEnumFeatureUnknown; 602 603 private global::Pb.EnumFeature messageFeature_; 604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 605 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 606 public global::Pb.EnumFeature MessageFeature { 607 get { if ((_hasBits0 & 4) != 0) { return messageFeature_; } else { return MessageFeatureDefaultValue; } } 608 set { 609 _hasBits0 |= 4; 610 messageFeature_ = value; 611 } 612 } 613 /// <summary>Gets whether the "message_feature" field is set</summary> 614 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 615 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 616 public bool HasMessageFeature { 617 get { return (_hasBits0 & 4) != 0; } 618 } 619 /// <summary>Clears the value of the "message_feature" field</summary> 620 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 621 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearMessageFeature()622 public void ClearMessageFeature() { 623 _hasBits0 &= ~4; 624 } 625 626 /// <summary>Field number for the "field_feature" field.</summary> 627 public const int FieldFeatureFieldNumber = 4; 628 private readonly static global::Pb.EnumFeature FieldFeatureDefaultValue = global::Pb.EnumFeature.TestEnumFeatureUnknown; 629 630 private global::Pb.EnumFeature fieldFeature_; 631 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 632 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 633 public global::Pb.EnumFeature FieldFeature { 634 get { if ((_hasBits0 & 8) != 0) { return fieldFeature_; } else { return FieldFeatureDefaultValue; } } 635 set { 636 _hasBits0 |= 8; 637 fieldFeature_ = value; 638 } 639 } 640 /// <summary>Gets whether the "field_feature" field is set</summary> 641 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 642 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 643 public bool HasFieldFeature { 644 get { return (_hasBits0 & 8) != 0; } 645 } 646 /// <summary>Clears the value of the "field_feature" field</summary> 647 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 648 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFieldFeature()649 public void ClearFieldFeature() { 650 _hasBits0 &= ~8; 651 } 652 653 /// <summary>Field number for the "oneof_feature" field.</summary> 654 public const int OneofFeatureFieldNumber = 5; 655 private readonly static global::Pb.EnumFeature OneofFeatureDefaultValue = global::Pb.EnumFeature.TestEnumFeatureUnknown; 656 657 private global::Pb.EnumFeature oneofFeature_; 658 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 659 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 660 public global::Pb.EnumFeature OneofFeature { 661 get { if ((_hasBits0 & 16) != 0) { return oneofFeature_; } else { return OneofFeatureDefaultValue; } } 662 set { 663 _hasBits0 |= 16; 664 oneofFeature_ = value; 665 } 666 } 667 /// <summary>Gets whether the "oneof_feature" field is set</summary> 668 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 669 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 670 public bool HasOneofFeature { 671 get { return (_hasBits0 & 16) != 0; } 672 } 673 /// <summary>Clears the value of the "oneof_feature" field</summary> 674 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 675 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearOneofFeature()676 public void ClearOneofFeature() { 677 _hasBits0 &= ~16; 678 } 679 680 /// <summary>Field number for the "enum_feature" field.</summary> 681 public const int EnumFeatureFieldNumber = 6; 682 private readonly static global::Pb.EnumFeature EnumFeatureDefaultValue = global::Pb.EnumFeature.TestEnumFeatureUnknown; 683 684 private global::Pb.EnumFeature enumFeature_; 685 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 686 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 687 public global::Pb.EnumFeature EnumFeature { 688 get { if ((_hasBits0 & 32) != 0) { return enumFeature_; } else { return EnumFeatureDefaultValue; } } 689 set { 690 _hasBits0 |= 32; 691 enumFeature_ = value; 692 } 693 } 694 /// <summary>Gets whether the "enum_feature" field is set</summary> 695 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 696 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 697 public bool HasEnumFeature { 698 get { return (_hasBits0 & 32) != 0; } 699 } 700 /// <summary>Clears the value of the "enum_feature" field</summary> 701 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 702 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearEnumFeature()703 public void ClearEnumFeature() { 704 _hasBits0 &= ~32; 705 } 706 707 /// <summary>Field number for the "enum_entry_feature" field.</summary> 708 public const int EnumEntryFeatureFieldNumber = 7; 709 private readonly static global::Pb.EnumFeature EnumEntryFeatureDefaultValue = global::Pb.EnumFeature.TestEnumFeatureUnknown; 710 711 private global::Pb.EnumFeature enumEntryFeature_; 712 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 713 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 714 public global::Pb.EnumFeature EnumEntryFeature { 715 get { if ((_hasBits0 & 64) != 0) { return enumEntryFeature_; } else { return EnumEntryFeatureDefaultValue; } } 716 set { 717 _hasBits0 |= 64; 718 enumEntryFeature_ = value; 719 } 720 } 721 /// <summary>Gets whether the "enum_entry_feature" field is set</summary> 722 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 723 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 724 public bool HasEnumEntryFeature { 725 get { return (_hasBits0 & 64) != 0; } 726 } 727 /// <summary>Clears the value of the "enum_entry_feature" field</summary> 728 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 729 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearEnumEntryFeature()730 public void ClearEnumEntryFeature() { 731 _hasBits0 &= ~64; 732 } 733 734 /// <summary>Field number for the "service_feature" field.</summary> 735 public const int ServiceFeatureFieldNumber = 8; 736 private readonly static global::Pb.EnumFeature ServiceFeatureDefaultValue = global::Pb.EnumFeature.TestEnumFeatureUnknown; 737 738 private global::Pb.EnumFeature serviceFeature_; 739 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 740 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 741 public global::Pb.EnumFeature ServiceFeature { 742 get { if ((_hasBits0 & 128) != 0) { return serviceFeature_; } else { return ServiceFeatureDefaultValue; } } 743 set { 744 _hasBits0 |= 128; 745 serviceFeature_ = value; 746 } 747 } 748 /// <summary>Gets whether the "service_feature" field is set</summary> 749 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 750 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 751 public bool HasServiceFeature { 752 get { return (_hasBits0 & 128) != 0; } 753 } 754 /// <summary>Clears the value of the "service_feature" field</summary> 755 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 756 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearServiceFeature()757 public void ClearServiceFeature() { 758 _hasBits0 &= ~128; 759 } 760 761 /// <summary>Field number for the "method_feature" field.</summary> 762 public const int MethodFeatureFieldNumber = 9; 763 private readonly static global::Pb.EnumFeature MethodFeatureDefaultValue = global::Pb.EnumFeature.TestEnumFeatureUnknown; 764 765 private global::Pb.EnumFeature methodFeature_; 766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 767 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 768 public global::Pb.EnumFeature MethodFeature { 769 get { if ((_hasBits0 & 256) != 0) { return methodFeature_; } else { return MethodFeatureDefaultValue; } } 770 set { 771 _hasBits0 |= 256; 772 methodFeature_ = value; 773 } 774 } 775 /// <summary>Gets whether the "method_feature" field is set</summary> 776 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 777 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 778 public bool HasMethodFeature { 779 get { return (_hasBits0 & 256) != 0; } 780 } 781 /// <summary>Clears the value of the "method_feature" field</summary> 782 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 783 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearMethodFeature()784 public void ClearMethodFeature() { 785 _hasBits0 &= ~256; 786 } 787 788 /// <summary>Field number for the "multiple_feature" field.</summary> 789 public const int MultipleFeatureFieldNumber = 10; 790 private readonly static global::Pb.EnumFeature MultipleFeatureDefaultValue = global::Pb.EnumFeature.TestEnumFeatureUnknown; 791 792 private global::Pb.EnumFeature multipleFeature_; 793 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 794 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 795 public global::Pb.EnumFeature MultipleFeature { 796 get { if ((_hasBits0 & 512) != 0) { return multipleFeature_; } else { return MultipleFeatureDefaultValue; } } 797 set { 798 _hasBits0 |= 512; 799 multipleFeature_ = value; 800 } 801 } 802 /// <summary>Gets whether the "multiple_feature" field is set</summary> 803 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 804 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 805 public bool HasMultipleFeature { 806 get { return (_hasBits0 & 512) != 0; } 807 } 808 /// <summary>Clears the value of the "multiple_feature" field</summary> 809 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 810 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearMultipleFeature()811 public void ClearMultipleFeature() { 812 _hasBits0 &= ~512; 813 } 814 815 /// <summary>Field number for the "bool_field_feature" field.</summary> 816 public const int BoolFieldFeatureFieldNumber = 11; 817 private readonly static bool BoolFieldFeatureDefaultValue = false; 818 819 private bool boolFieldFeature_; 820 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 821 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 822 public bool BoolFieldFeature { 823 get { if ((_hasBits0 & 1024) != 0) { return boolFieldFeature_; } else { return BoolFieldFeatureDefaultValue; } } 824 set { 825 _hasBits0 |= 1024; 826 boolFieldFeature_ = value; 827 } 828 } 829 /// <summary>Gets whether the "bool_field_feature" field is set</summary> 830 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 831 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 832 public bool HasBoolFieldFeature { 833 get { return (_hasBits0 & 1024) != 0; } 834 } 835 /// <summary>Clears the value of the "bool_field_feature" field</summary> 836 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 837 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearBoolFieldFeature()838 public void ClearBoolFieldFeature() { 839 _hasBits0 &= ~1024; 840 } 841 842 /// <summary>Field number for the "source_feature" field.</summary> 843 public const int SourceFeatureFieldNumber = 15; 844 private readonly static global::Pb.EnumFeature SourceFeatureDefaultValue = global::Pb.EnumFeature.TestEnumFeatureUnknown; 845 846 private global::Pb.EnumFeature sourceFeature_; 847 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 848 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 849 public global::Pb.EnumFeature SourceFeature { 850 get { if ((_hasBits0 & 2048) != 0) { return sourceFeature_; } else { return SourceFeatureDefaultValue; } } 851 set { 852 _hasBits0 |= 2048; 853 sourceFeature_ = value; 854 } 855 } 856 /// <summary>Gets whether the "source_feature" field is set</summary> 857 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 858 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 859 public bool HasSourceFeature { 860 get { return (_hasBits0 & 2048) != 0; } 861 } 862 /// <summary>Clears the value of the "source_feature" field</summary> 863 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 864 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearSourceFeature()865 public void ClearSourceFeature() { 866 _hasBits0 &= ~2048; 867 } 868 869 /// <summary>Field number for the "source_feature2" field.</summary> 870 public const int SourceFeature2FieldNumber = 16; 871 private readonly static global::Pb.EnumFeature SourceFeature2DefaultValue = global::Pb.EnumFeature.TestEnumFeatureUnknown; 872 873 private global::Pb.EnumFeature sourceFeature2_; 874 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 875 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 876 public global::Pb.EnumFeature SourceFeature2 { 877 get { if ((_hasBits0 & 4096) != 0) { return sourceFeature2_; } else { return SourceFeature2DefaultValue; } } 878 set { 879 _hasBits0 |= 4096; 880 sourceFeature2_ = value; 881 } 882 } 883 /// <summary>Gets whether the "source_feature2" field is set</summary> 884 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 885 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 886 public bool HasSourceFeature2 { 887 get { return (_hasBits0 & 4096) != 0; } 888 } 889 /// <summary>Clears the value of the "source_feature2" field</summary> 890 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 891 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearSourceFeature2()892 public void ClearSourceFeature2() { 893 _hasBits0 &= ~4096; 894 } 895 896 /// <summary>Field number for the "removed_feature" field.</summary> 897 public const int RemovedFeatureFieldNumber = 17; 898 private readonly static global::Pb.EnumFeature RemovedFeatureDefaultValue = global::Pb.EnumFeature.TestEnumFeatureUnknown; 899 900 private global::Pb.EnumFeature removedFeature_; 901 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 902 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 903 public global::Pb.EnumFeature RemovedFeature { 904 get { if ((_hasBits0 & 8192) != 0) { return removedFeature_; } else { return RemovedFeatureDefaultValue; } } 905 set { 906 _hasBits0 |= 8192; 907 removedFeature_ = value; 908 } 909 } 910 /// <summary>Gets whether the "removed_feature" field is set</summary> 911 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 912 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 913 public bool HasRemovedFeature { 914 get { return (_hasBits0 & 8192) != 0; } 915 } 916 /// <summary>Clears the value of the "removed_feature" field</summary> 917 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 918 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearRemovedFeature()919 public void ClearRemovedFeature() { 920 _hasBits0 &= ~8192; 921 } 922 923 /// <summary>Field number for the "future_feature" field.</summary> 924 public const int FutureFeatureFieldNumber = 18; 925 private readonly static global::Pb.EnumFeature FutureFeatureDefaultValue = global::Pb.EnumFeature.TestEnumFeatureUnknown; 926 927 private global::Pb.EnumFeature futureFeature_; 928 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 929 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 930 public global::Pb.EnumFeature FutureFeature { 931 get { if ((_hasBits0 & 16384) != 0) { return futureFeature_; } else { return FutureFeatureDefaultValue; } } 932 set { 933 _hasBits0 |= 16384; 934 futureFeature_ = value; 935 } 936 } 937 /// <summary>Gets whether the "future_feature" field is set</summary> 938 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 939 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 940 public bool HasFutureFeature { 941 get { return (_hasBits0 & 16384) != 0; } 942 } 943 /// <summary>Clears the value of the "future_feature" field</summary> 944 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 945 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearFutureFeature()946 public void ClearFutureFeature() { 947 _hasBits0 &= ~16384; 948 } 949 950 /// <summary>Field number for the "legacy_feature" field.</summary> 951 public const int LegacyFeatureFieldNumber = 19; 952 private readonly static global::Pb.EnumFeature LegacyFeatureDefaultValue = global::Pb.EnumFeature.TestEnumFeatureUnknown; 953 954 private global::Pb.EnumFeature legacyFeature_; 955 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 956 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 957 public global::Pb.EnumFeature LegacyFeature { 958 get { if ((_hasBits0 & 32768) != 0) { return legacyFeature_; } else { return LegacyFeatureDefaultValue; } } 959 set { 960 _hasBits0 |= 32768; 961 legacyFeature_ = value; 962 } 963 } 964 /// <summary>Gets whether the "legacy_feature" field is set</summary> 965 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 966 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 967 public bool HasLegacyFeature { 968 get { return (_hasBits0 & 32768) != 0; } 969 } 970 /// <summary>Clears the value of the "legacy_feature" field</summary> 971 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 972 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearLegacyFeature()973 public void ClearLegacyFeature() { 974 _hasBits0 &= ~32768; 975 } 976 977 /// <summary>Field number for the "value_lifetime_feature" field.</summary> 978 public const int ValueLifetimeFeatureFieldNumber = 20; 979 private readonly static global::Pb.ValueLifetimeFeature ValueLifetimeFeatureDefaultValue = global::Pb.ValueLifetimeFeature.TestValueLifetimeUnknown; 980 981 private global::Pb.ValueLifetimeFeature valueLifetimeFeature_; 982 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 983 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 984 public global::Pb.ValueLifetimeFeature ValueLifetimeFeature { 985 get { if ((_hasBits0 & 65536) != 0) { return valueLifetimeFeature_; } else { return ValueLifetimeFeatureDefaultValue; } } 986 set { 987 _hasBits0 |= 65536; 988 valueLifetimeFeature_ = value; 989 } 990 } 991 /// <summary>Gets whether the "value_lifetime_feature" field is set</summary> 992 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 993 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 994 public bool HasValueLifetimeFeature { 995 get { return (_hasBits0 & 65536) != 0; } 996 } 997 /// <summary>Clears the value of the "value_lifetime_feature" field</summary> 998 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 999 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearValueLifetimeFeature()1000 public void ClearValueLifetimeFeature() { 1001 _hasBits0 &= ~65536; 1002 } 1003 1004 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1005 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)1006 public override bool Equals(object other) { 1007 return Equals(other as TestFeatures); 1008 } 1009 1010 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1011 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(TestFeatures other)1012 public bool Equals(TestFeatures other) { 1013 if (ReferenceEquals(other, null)) { 1014 return false; 1015 } 1016 if (ReferenceEquals(other, this)) { 1017 return true; 1018 } 1019 if (FileFeature != other.FileFeature) return false; 1020 if (ExtensionRangeFeature != other.ExtensionRangeFeature) return false; 1021 if (MessageFeature != other.MessageFeature) return false; 1022 if (FieldFeature != other.FieldFeature) return false; 1023 if (OneofFeature != other.OneofFeature) return false; 1024 if (EnumFeature != other.EnumFeature) return false; 1025 if (EnumEntryFeature != other.EnumEntryFeature) return false; 1026 if (ServiceFeature != other.ServiceFeature) return false; 1027 if (MethodFeature != other.MethodFeature) return false; 1028 if (MultipleFeature != other.MultipleFeature) return false; 1029 if (BoolFieldFeature != other.BoolFieldFeature) return false; 1030 if (SourceFeature != other.SourceFeature) return false; 1031 if (SourceFeature2 != other.SourceFeature2) return false; 1032 if (RemovedFeature != other.RemovedFeature) return false; 1033 if (FutureFeature != other.FutureFeature) return false; 1034 if (LegacyFeature != other.LegacyFeature) return false; 1035 if (ValueLifetimeFeature != other.ValueLifetimeFeature) return false; 1036 return Equals(_unknownFields, other._unknownFields); 1037 } 1038 1039 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1040 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()1041 public override int GetHashCode() { 1042 int hash = 1; 1043 if (HasFileFeature) hash ^= FileFeature.GetHashCode(); 1044 if (HasExtensionRangeFeature) hash ^= ExtensionRangeFeature.GetHashCode(); 1045 if (HasMessageFeature) hash ^= MessageFeature.GetHashCode(); 1046 if (HasFieldFeature) hash ^= FieldFeature.GetHashCode(); 1047 if (HasOneofFeature) hash ^= OneofFeature.GetHashCode(); 1048 if (HasEnumFeature) hash ^= EnumFeature.GetHashCode(); 1049 if (HasEnumEntryFeature) hash ^= EnumEntryFeature.GetHashCode(); 1050 if (HasServiceFeature) hash ^= ServiceFeature.GetHashCode(); 1051 if (HasMethodFeature) hash ^= MethodFeature.GetHashCode(); 1052 if (HasMultipleFeature) hash ^= MultipleFeature.GetHashCode(); 1053 if (HasBoolFieldFeature) hash ^= BoolFieldFeature.GetHashCode(); 1054 if (HasSourceFeature) hash ^= SourceFeature.GetHashCode(); 1055 if (HasSourceFeature2) hash ^= SourceFeature2.GetHashCode(); 1056 if (HasRemovedFeature) hash ^= RemovedFeature.GetHashCode(); 1057 if (HasFutureFeature) hash ^= FutureFeature.GetHashCode(); 1058 if (HasLegacyFeature) hash ^= LegacyFeature.GetHashCode(); 1059 if (HasValueLifetimeFeature) hash ^= ValueLifetimeFeature.GetHashCode(); 1060 if (_unknownFields != null) { 1061 hash ^= _unknownFields.GetHashCode(); 1062 } 1063 return hash; 1064 } 1065 1066 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1067 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()1068 public override string ToString() { 1069 return pb::JsonFormatter.ToDiagnosticString(this); 1070 } 1071 1072 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1073 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)1074 public void WriteTo(pb::CodedOutputStream output) { 1075 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1076 output.WriteRawMessage(this); 1077 #else 1078 if (HasFileFeature) { 1079 output.WriteRawTag(8); 1080 output.WriteEnum((int) FileFeature); 1081 } 1082 if (HasExtensionRangeFeature) { 1083 output.WriteRawTag(16); 1084 output.WriteEnum((int) ExtensionRangeFeature); 1085 } 1086 if (HasMessageFeature) { 1087 output.WriteRawTag(24); 1088 output.WriteEnum((int) MessageFeature); 1089 } 1090 if (HasFieldFeature) { 1091 output.WriteRawTag(32); 1092 output.WriteEnum((int) FieldFeature); 1093 } 1094 if (HasOneofFeature) { 1095 output.WriteRawTag(40); 1096 output.WriteEnum((int) OneofFeature); 1097 } 1098 if (HasEnumFeature) { 1099 output.WriteRawTag(48); 1100 output.WriteEnum((int) EnumFeature); 1101 } 1102 if (HasEnumEntryFeature) { 1103 output.WriteRawTag(56); 1104 output.WriteEnum((int) EnumEntryFeature); 1105 } 1106 if (HasServiceFeature) { 1107 output.WriteRawTag(64); 1108 output.WriteEnum((int) ServiceFeature); 1109 } 1110 if (HasMethodFeature) { 1111 output.WriteRawTag(72); 1112 output.WriteEnum((int) MethodFeature); 1113 } 1114 if (HasMultipleFeature) { 1115 output.WriteRawTag(80); 1116 output.WriteEnum((int) MultipleFeature); 1117 } 1118 if (HasBoolFieldFeature) { 1119 output.WriteRawTag(88); 1120 output.WriteBool(BoolFieldFeature); 1121 } 1122 if (HasSourceFeature) { 1123 output.WriteRawTag(120); 1124 output.WriteEnum((int) SourceFeature); 1125 } 1126 if (HasSourceFeature2) { 1127 output.WriteRawTag(128, 1); 1128 output.WriteEnum((int) SourceFeature2); 1129 } 1130 if (HasRemovedFeature) { 1131 output.WriteRawTag(136, 1); 1132 output.WriteEnum((int) RemovedFeature); 1133 } 1134 if (HasFutureFeature) { 1135 output.WriteRawTag(144, 1); 1136 output.WriteEnum((int) FutureFeature); 1137 } 1138 if (HasLegacyFeature) { 1139 output.WriteRawTag(152, 1); 1140 output.WriteEnum((int) LegacyFeature); 1141 } 1142 if (HasValueLifetimeFeature) { 1143 output.WriteRawTag(160, 1); 1144 output.WriteEnum((int) ValueLifetimeFeature); 1145 } 1146 if (_unknownFields != null) { 1147 _unknownFields.WriteTo(output); 1148 } 1149 #endif 1150 } 1151 1152 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1154 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1155 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 1156 if (HasFileFeature) { 1157 output.WriteRawTag(8); 1158 output.WriteEnum((int) FileFeature); 1159 } 1160 if (HasExtensionRangeFeature) { 1161 output.WriteRawTag(16); 1162 output.WriteEnum((int) ExtensionRangeFeature); 1163 } 1164 if (HasMessageFeature) { 1165 output.WriteRawTag(24); 1166 output.WriteEnum((int) MessageFeature); 1167 } 1168 if (HasFieldFeature) { 1169 output.WriteRawTag(32); 1170 output.WriteEnum((int) FieldFeature); 1171 } 1172 if (HasOneofFeature) { 1173 output.WriteRawTag(40); 1174 output.WriteEnum((int) OneofFeature); 1175 } 1176 if (HasEnumFeature) { 1177 output.WriteRawTag(48); 1178 output.WriteEnum((int) EnumFeature); 1179 } 1180 if (HasEnumEntryFeature) { 1181 output.WriteRawTag(56); 1182 output.WriteEnum((int) EnumEntryFeature); 1183 } 1184 if (HasServiceFeature) { 1185 output.WriteRawTag(64); 1186 output.WriteEnum((int) ServiceFeature); 1187 } 1188 if (HasMethodFeature) { 1189 output.WriteRawTag(72); 1190 output.WriteEnum((int) MethodFeature); 1191 } 1192 if (HasMultipleFeature) { 1193 output.WriteRawTag(80); 1194 output.WriteEnum((int) MultipleFeature); 1195 } 1196 if (HasBoolFieldFeature) { 1197 output.WriteRawTag(88); 1198 output.WriteBool(BoolFieldFeature); 1199 } 1200 if (HasSourceFeature) { 1201 output.WriteRawTag(120); 1202 output.WriteEnum((int) SourceFeature); 1203 } 1204 if (HasSourceFeature2) { 1205 output.WriteRawTag(128, 1); 1206 output.WriteEnum((int) SourceFeature2); 1207 } 1208 if (HasRemovedFeature) { 1209 output.WriteRawTag(136, 1); 1210 output.WriteEnum((int) RemovedFeature); 1211 } 1212 if (HasFutureFeature) { 1213 output.WriteRawTag(144, 1); 1214 output.WriteEnum((int) FutureFeature); 1215 } 1216 if (HasLegacyFeature) { 1217 output.WriteRawTag(152, 1); 1218 output.WriteEnum((int) LegacyFeature); 1219 } 1220 if (HasValueLifetimeFeature) { 1221 output.WriteRawTag(160, 1); 1222 output.WriteEnum((int) ValueLifetimeFeature); 1223 } 1224 if (_unknownFields != null) { 1225 _unknownFields.WriteTo(ref output); 1226 } 1227 } 1228 #endif 1229 1230 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1231 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()1232 public int CalculateSize() { 1233 int size = 0; 1234 if (HasFileFeature) { 1235 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FileFeature); 1236 } 1237 if (HasExtensionRangeFeature) { 1238 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ExtensionRangeFeature); 1239 } 1240 if (HasMessageFeature) { 1241 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MessageFeature); 1242 } 1243 if (HasFieldFeature) { 1244 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FieldFeature); 1245 } 1246 if (HasOneofFeature) { 1247 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OneofFeature); 1248 } 1249 if (HasEnumFeature) { 1250 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumFeature); 1251 } 1252 if (HasEnumEntryFeature) { 1253 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumEntryFeature); 1254 } 1255 if (HasServiceFeature) { 1256 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ServiceFeature); 1257 } 1258 if (HasMethodFeature) { 1259 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MethodFeature); 1260 } 1261 if (HasMultipleFeature) { 1262 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MultipleFeature); 1263 } 1264 if (HasBoolFieldFeature) { 1265 size += 1 + 1; 1266 } 1267 if (HasSourceFeature) { 1268 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SourceFeature); 1269 } 1270 if (HasSourceFeature2) { 1271 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) SourceFeature2); 1272 } 1273 if (HasRemovedFeature) { 1274 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) RemovedFeature); 1275 } 1276 if (HasFutureFeature) { 1277 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) FutureFeature); 1278 } 1279 if (HasLegacyFeature) { 1280 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) LegacyFeature); 1281 } 1282 if (HasValueLifetimeFeature) { 1283 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) ValueLifetimeFeature); 1284 } 1285 if (_unknownFields != null) { 1286 size += _unknownFields.CalculateSize(); 1287 } 1288 return size; 1289 } 1290 1291 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1292 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(TestFeatures other)1293 public void MergeFrom(TestFeatures other) { 1294 if (other == null) { 1295 return; 1296 } 1297 if (other.HasFileFeature) { 1298 FileFeature = other.FileFeature; 1299 } 1300 if (other.HasExtensionRangeFeature) { 1301 ExtensionRangeFeature = other.ExtensionRangeFeature; 1302 } 1303 if (other.HasMessageFeature) { 1304 MessageFeature = other.MessageFeature; 1305 } 1306 if (other.HasFieldFeature) { 1307 FieldFeature = other.FieldFeature; 1308 } 1309 if (other.HasOneofFeature) { 1310 OneofFeature = other.OneofFeature; 1311 } 1312 if (other.HasEnumFeature) { 1313 EnumFeature = other.EnumFeature; 1314 } 1315 if (other.HasEnumEntryFeature) { 1316 EnumEntryFeature = other.EnumEntryFeature; 1317 } 1318 if (other.HasServiceFeature) { 1319 ServiceFeature = other.ServiceFeature; 1320 } 1321 if (other.HasMethodFeature) { 1322 MethodFeature = other.MethodFeature; 1323 } 1324 if (other.HasMultipleFeature) { 1325 MultipleFeature = other.MultipleFeature; 1326 } 1327 if (other.HasBoolFieldFeature) { 1328 BoolFieldFeature = other.BoolFieldFeature; 1329 } 1330 if (other.HasSourceFeature) { 1331 SourceFeature = other.SourceFeature; 1332 } 1333 if (other.HasSourceFeature2) { 1334 SourceFeature2 = other.SourceFeature2; 1335 } 1336 if (other.HasRemovedFeature) { 1337 RemovedFeature = other.RemovedFeature; 1338 } 1339 if (other.HasFutureFeature) { 1340 FutureFeature = other.FutureFeature; 1341 } 1342 if (other.HasLegacyFeature) { 1343 LegacyFeature = other.LegacyFeature; 1344 } 1345 if (other.HasValueLifetimeFeature) { 1346 ValueLifetimeFeature = other.ValueLifetimeFeature; 1347 } 1348 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1349 } 1350 1351 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1352 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)1353 public void MergeFrom(pb::CodedInputStream input) { 1354 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1355 input.ReadRawMessage(this); 1356 #else 1357 uint tag; 1358 while ((tag = input.ReadTag()) != 0) { 1359 if ((tag & 7) == 4) { 1360 // Abort on any end group tag. 1361 return; 1362 } 1363 switch(tag) { 1364 default: 1365 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 1366 break; 1367 case 8: { 1368 FileFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1369 break; 1370 } 1371 case 16: { 1372 ExtensionRangeFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1373 break; 1374 } 1375 case 24: { 1376 MessageFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1377 break; 1378 } 1379 case 32: { 1380 FieldFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1381 break; 1382 } 1383 case 40: { 1384 OneofFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1385 break; 1386 } 1387 case 48: { 1388 EnumFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1389 break; 1390 } 1391 case 56: { 1392 EnumEntryFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1393 break; 1394 } 1395 case 64: { 1396 ServiceFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1397 break; 1398 } 1399 case 72: { 1400 MethodFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1401 break; 1402 } 1403 case 80: { 1404 MultipleFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1405 break; 1406 } 1407 case 88: { 1408 BoolFieldFeature = input.ReadBool(); 1409 break; 1410 } 1411 case 120: { 1412 SourceFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1413 break; 1414 } 1415 case 128: { 1416 SourceFeature2 = (global::Pb.EnumFeature) input.ReadEnum(); 1417 break; 1418 } 1419 case 136: { 1420 RemovedFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1421 break; 1422 } 1423 case 144: { 1424 FutureFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1425 break; 1426 } 1427 case 152: { 1428 LegacyFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1429 break; 1430 } 1431 case 160: { 1432 ValueLifetimeFeature = (global::Pb.ValueLifetimeFeature) input.ReadEnum(); 1433 break; 1434 } 1435 } 1436 } 1437 #endif 1438 } 1439 1440 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1441 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1442 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1443 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 1444 uint tag; 1445 while ((tag = input.ReadTag()) != 0) { 1446 if ((tag & 7) == 4) { 1447 // Abort on any end group tag. 1448 return; 1449 } 1450 switch(tag) { 1451 default: 1452 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 1453 break; 1454 case 8: { 1455 FileFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1456 break; 1457 } 1458 case 16: { 1459 ExtensionRangeFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1460 break; 1461 } 1462 case 24: { 1463 MessageFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1464 break; 1465 } 1466 case 32: { 1467 FieldFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1468 break; 1469 } 1470 case 40: { 1471 OneofFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1472 break; 1473 } 1474 case 48: { 1475 EnumFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1476 break; 1477 } 1478 case 56: { 1479 EnumEntryFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1480 break; 1481 } 1482 case 64: { 1483 ServiceFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1484 break; 1485 } 1486 case 72: { 1487 MethodFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1488 break; 1489 } 1490 case 80: { 1491 MultipleFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1492 break; 1493 } 1494 case 88: { 1495 BoolFieldFeature = input.ReadBool(); 1496 break; 1497 } 1498 case 120: { 1499 SourceFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1500 break; 1501 } 1502 case 128: { 1503 SourceFeature2 = (global::Pb.EnumFeature) input.ReadEnum(); 1504 break; 1505 } 1506 case 136: { 1507 RemovedFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1508 break; 1509 } 1510 case 144: { 1511 FutureFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1512 break; 1513 } 1514 case 152: { 1515 LegacyFeature = (global::Pb.EnumFeature) input.ReadEnum(); 1516 break; 1517 } 1518 case 160: { 1519 ValueLifetimeFeature = (global::Pb.ValueLifetimeFeature) input.ReadEnum(); 1520 break; 1521 } 1522 } 1523 } 1524 } 1525 #endif 1526 1527 } 1528 1529 #endregion 1530 1531 } 1532 1533 #endregion Designer generated code 1534