| // <auto-generated> |
| // Generated by the protocol buffer compiler. DO NOT EDIT! |
| // source: google/protobuf/unittest_features.proto |
| // </auto-generated> |
| #pragma warning disable 1591, 0612, 3021, 8981 |
| #region Designer generated code |
| |
| using pb = global::Google.Protobuf; |
| using pbc = global::Google.Protobuf.Collections; |
| using pbr = global::Google.Protobuf.Reflection; |
| using scg = global::System.Collections.Generic; |
| namespace Pb { |
| |
| /// <summary>Holder for reflection information generated from google/protobuf/unittest_features.proto</summary> |
| public static partial class UnittestFeaturesReflection { |
| |
| #region Descriptor |
| /// <summary>File descriptor for google/protobuf/unittest_features.proto</summary> |
| public static pbr::FileDescriptor Descriptor { |
| get { return descriptor; } |
| } |
| private static pbr::FileDescriptor descriptor; |
| |
| static UnittestFeaturesReflection() { |
| byte[] descriptorData = global::System.Convert.FromBase64String( |
| string.Concat( |
| "Cidnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfZmVhdHVyZXMucHJvdG8SAnBi", |
| "GiBnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvci5wcm90byKiAQoLVGVzdE1l", |
| "c3NhZ2UaTQoGTmVzdGVkMkMKC3Rlc3RfbmVzdGVkEhsuZ29vZ2xlLnByb3Rv", |
| "YnVmLkZlYXR1cmVTZXQYjU4gASgLMhAucGIuVGVzdEZlYXR1cmVzMkQKDHRl", |
| "c3RfbWVzc2FnZRIbLmdvb2dsZS5wcm90b2J1Zi5GZWF0dXJlU2V0GI5OIAEo", |
| "CzIQLnBiLlRlc3RGZWF0dXJlcyL9CgoMVGVzdEZlYXR1cmVzElEKEGludF9m", |
| "aWxlX2ZlYXR1cmUYASABKAVCN4gBAZgBAaIBBxICLTIY5geiAQcSAi0zGOcH", |
| "ogEGEgExGOgHogEHEgEyGJ2NBqIBBxIBMxiejQYSNAobaW50X2V4dGVuc2lv", |
| "bl9yYW5nZV9mZWF0dXJlGAIgASgFQg+IAQGYAQKiAQYSATEY5gcSLAoTaW50", |
| "X21lc3NhZ2VfZmVhdHVyZRgDIAEoBUIPiAEBmAEDogEGEgExGOYHEioKEWlu", |
| "dF9maWVsZF9mZWF0dXJlGAQgASgFQg+IAQGYAQSiAQYSATEY5gcSKgoRaW50", |
| "X29uZW9mX2ZlYXR1cmUYBSABKAVCD4gBAZgBBaIBBhIBMRjmBxIpChBpbnRf", |
| "ZW51bV9mZWF0dXJlGAYgASgFQg+IAQGYAQaiAQYSATEY5gcSLwoWaW50X2Vu", |
| "dW1fZW50cnlfZmVhdHVyZRgHIAEoBUIPiAEBmAEHogEGEgExGOYHEiwKE2lu", |
| "dF9zZXJ2aWNlX2ZlYXR1cmUYCCABKAVCD4gBAZgBCKIBBhIBMRjmBxIrChJp", |
| "bnRfbWV0aG9kX2ZlYXR1cmUYCSABKAVCD4gBAZgBCaIBBhIBMRjmBxJFChRp", |
| "bnRfbXVsdGlwbGVfZmVhdHVyZRgKIAEoBUIniAEBmAEBmAEEmAEDmAEGmAEH", |
| "mAEImAEJmAEFmAECogEGEgExGOYHEjwKEmJvb2xfZmllbGRfZmVhdHVyZRgL", |
| "IAEoCEIgiAEBmAEEogEKEgVmYWxzZRjmB6IBChIEdHJ1ZRidjQYSOgoTZmxv", |
| "YXRfZmllbGRfZmVhdHVyZRgMIAEoAkIdiAEBmAEEogEIEgMxLjEY5geiAQkS", |
| "AzEuMhidjQYSzAEKFW1lc3NhZ2VfZmllbGRfZmVhdHVyZRgNIAEoCzIfLnBi", |
| "LlRlc3RGZWF0dXJlcy5NZXNzYWdlRmVhdHVyZUKLAYgBAZgBBKIBEhIMaW50", |
| "X2ZpZWxkOiAyGJ2NBqIBGhIUc3RyaW5nX2ZpZWxkOiAnMjAyNCcYno0GogFI", |
| "EkNib29sX2ZpZWxkOiB0cnVlIGludF9maWVsZDogMSBmbG9hdF9maWVsZDog", |
| "MS41IHN0cmluZ19maWVsZDogJzIwMjMnGOgHogEFEgAY5gcSnAEKEmVudW1f", |
| "ZmllbGRfZmVhdHVyZRgOIAEoDjIcLnBiLlRlc3RGZWF0dXJlcy5FbnVtRmVh", |
| "dHVyZUJiiAEBmAEEogEeEhlURVNUX0VOVU1fRkVBVFVSRV9VTktOT1dOGOYH", |
| "ogEQEgtFTlVNX1ZBTFVFMRjoB6IBERILRU5VTV9WQUxVRTIYnY0GogEREgtF", |
| "TlVNX1ZBTFVFMxiejQYSQwoSaW50X3NvdXJjZV9mZWF0dXJlGA8gASgFQieI", |
| "AQKYAQGYAQSYAQOYAQaYAQeYAQiYAQmYAQWYAQKiAQYSATEY5gcSSwoVc3Ry", |
| "aW5nX3NvdXJjZV9mZWF0dXJlGBAgASgJQiyIAQKYAQGYAQSYAQOYAQaYAQeY", |
| "AQiYAQmYAQWYAQKiAQsSBicyMDIzJxjmBxpiCg5NZXNzYWdlRmVhdHVyZRIS", |
| "Cgpib29sX2ZpZWxkGAEgASgIEhEKCWludF9maWVsZBgCIAEoBRITCgtmbG9h", |
| "dF9maWVsZBgDIAEoAhIUCgxzdHJpbmdfZmllbGQYBCABKAkigQEKC0VudW1G", |
| "ZWF0dXJlEh0KGVRFU1RfRU5VTV9GRUFUVVJFX1VOS05PV04QABIPCgtFTlVN", |
| "X1ZBTFVFMRABEg8KC0VOVU1fVkFMVUUyEAISDwoLRU5VTV9WQUxVRTMQAxIP", |
| "CgtFTlVNX1ZBTFVFNBAEEg8KC0VOVU1fVkFMVUU1EAU6PAoEdGVzdBIbLmdv", |
| "b2dsZS5wcm90b2J1Zi5GZWF0dXJlU2V0GI9OIAEoCzIQLnBiLlRlc3RGZWF0", |
| "dXJlcw==")); |
| descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| new pbr::FileDescriptor[] { global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, }, |
| new pbr::GeneratedClrTypeInfo(null, new pb::Extension[] { UnittestFeaturesExtensions.Test }, new pbr::GeneratedClrTypeInfo[] { |
| 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)}), |
| new pbr::GeneratedClrTypeInfo(typeof(global::Pb.TestFeatures), global::Pb.TestFeatures.Parser, new[]{ "IntFileFeature", "IntExtensionRangeFeature", "IntMessageFeature", "IntFieldFeature", "IntOneofFeature", "IntEnumFeature", "IntEnumEntryFeature", "IntServiceFeature", "IntMethodFeature", "IntMultipleFeature", "BoolFieldFeature", "FloatFieldFeature", "MessageFieldFeature", "EnumFieldFeature", "IntSourceFeature", "StringSourceFeature" }, null, new[]{ typeof(global::Pb.TestFeatures.Types.EnumFeature) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Pb.TestFeatures.Types.MessageFeature), global::Pb.TestFeatures.Types.MessageFeature.Parser, new[]{ "BoolField", "IntField", "FloatField", "StringField" }, null, null, null, null)}) |
| })); |
| } |
| #endregion |
| |
| } |
| /// <summary>Holder for extension identifiers generated from the top level of google/protobuf/unittest_features.proto</summary> |
| public static partial class UnittestFeaturesExtensions { |
| public static readonly pb::Extension<global::Google.Protobuf.Reflection.FeatureSet, global::Pb.TestFeatures> Test = |
| new pb::Extension<global::Google.Protobuf.Reflection.FeatureSet, global::Pb.TestFeatures>(9999, pb::FieldCodec.ForMessage(79994, global::Pb.TestFeatures.Parser)); |
| } |
| |
| #region Messages |
| [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] |
| public sealed partial class TestMessage : pb::IMessage<TestMessage> |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| , pb::IBufferMessage |
| #endif |
| { |
| private static readonly pb::MessageParser<TestMessage> _parser = new pb::MessageParser<TestMessage>(() => new TestMessage()); |
| private pb::UnknownFieldSet _unknownFields; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public static pb::MessageParser<TestMessage> Parser { get { return _parser; } } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public static pbr::MessageDescriptor Descriptor { |
| get { return global::Pb.UnittestFeaturesReflection.Descriptor.MessageTypes[0]; } |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| pbr::MessageDescriptor pb::IMessage.Descriptor { |
| get { return Descriptor; } |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public TestMessage() { |
| OnConstruction(); |
| } |
| |
| partial void OnConstruction(); |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public TestMessage(TestMessage other) : this() { |
| _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public TestMessage Clone() { |
| return new TestMessage(this); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public override bool Equals(object other) { |
| return Equals(other as TestMessage); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool Equals(TestMessage other) { |
| if (ReferenceEquals(other, null)) { |
| return false; |
| } |
| if (ReferenceEquals(other, this)) { |
| return true; |
| } |
| return Equals(_unknownFields, other._unknownFields); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public override int GetHashCode() { |
| int hash = 1; |
| if (_unknownFields != null) { |
| hash ^= _unknownFields.GetHashCode(); |
| } |
| return hash; |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public override string ToString() { |
| return pb::JsonFormatter.ToDiagnosticString(this); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void WriteTo(pb::CodedOutputStream output) { |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| output.WriteRawMessage(this); |
| #else |
| if (_unknownFields != null) { |
| _unknownFields.WriteTo(output); |
| } |
| #endif |
| } |
| |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| if (_unknownFields != null) { |
| _unknownFields.WriteTo(ref output); |
| } |
| } |
| #endif |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public int CalculateSize() { |
| int size = 0; |
| if (_unknownFields != null) { |
| size += _unknownFields.CalculateSize(); |
| } |
| return size; |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void MergeFrom(TestMessage other) { |
| if (other == null) { |
| return; |
| } |
| _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void MergeFrom(pb::CodedInputStream input) { |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| input.ReadRawMessage(this); |
| #else |
| uint tag; |
| while ((tag = input.ReadTag()) != 0) { |
| switch(tag) { |
| default: |
| _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| break; |
| } |
| } |
| #endif |
| } |
| |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| uint tag; |
| while ((tag = input.ReadTag()) != 0) { |
| switch(tag) { |
| default: |
| _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| break; |
| } |
| } |
| } |
| #endif |
| |
| #region Nested types |
| /// <summary>Container for nested types declared in the TestMessage message type.</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public static partial class Types { |
| [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] |
| public sealed partial class Nested : pb::IMessage<Nested> |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| , pb::IBufferMessage |
| #endif |
| { |
| private static readonly pb::MessageParser<Nested> _parser = new pb::MessageParser<Nested>(() => new Nested()); |
| private pb::UnknownFieldSet _unknownFields; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public static pb::MessageParser<Nested> Parser { get { return _parser; } } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public static pbr::MessageDescriptor Descriptor { |
| get { return global::Pb.TestMessage.Descriptor.NestedTypes[0]; } |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| pbr::MessageDescriptor pb::IMessage.Descriptor { |
| get { return Descriptor; } |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public Nested() { |
| OnConstruction(); |
| } |
| |
| partial void OnConstruction(); |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public Nested(Nested other) : this() { |
| _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public Nested Clone() { |
| return new Nested(this); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public override bool Equals(object other) { |
| return Equals(other as Nested); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool Equals(Nested other) { |
| if (ReferenceEquals(other, null)) { |
| return false; |
| } |
| if (ReferenceEquals(other, this)) { |
| return true; |
| } |
| return Equals(_unknownFields, other._unknownFields); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public override int GetHashCode() { |
| int hash = 1; |
| if (_unknownFields != null) { |
| hash ^= _unknownFields.GetHashCode(); |
| } |
| return hash; |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public override string ToString() { |
| return pb::JsonFormatter.ToDiagnosticString(this); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void WriteTo(pb::CodedOutputStream output) { |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| output.WriteRawMessage(this); |
| #else |
| if (_unknownFields != null) { |
| _unknownFields.WriteTo(output); |
| } |
| #endif |
| } |
| |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| if (_unknownFields != null) { |
| _unknownFields.WriteTo(ref output); |
| } |
| } |
| #endif |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public int CalculateSize() { |
| int size = 0; |
| if (_unknownFields != null) { |
| size += _unknownFields.CalculateSize(); |
| } |
| return size; |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void MergeFrom(Nested other) { |
| if (other == null) { |
| return; |
| } |
| _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void MergeFrom(pb::CodedInputStream input) { |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| input.ReadRawMessage(this); |
| #else |
| uint tag; |
| while ((tag = input.ReadTag()) != 0) { |
| switch(tag) { |
| default: |
| _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| break; |
| } |
| } |
| #endif |
| } |
| |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| uint tag; |
| while ((tag = input.ReadTag()) != 0) { |
| switch(tag) { |
| default: |
| _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| break; |
| } |
| } |
| } |
| #endif |
| |
| #region Extensions |
| /// <summary>Container for extensions for other messages declared in the Nested message type.</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public static partial class Extensions { |
| public static readonly pb::Extension<global::Google.Protobuf.Reflection.FeatureSet, global::Pb.TestFeatures> TestNested = |
| new pb::Extension<global::Google.Protobuf.Reflection.FeatureSet, global::Pb.TestFeatures>(9997, pb::FieldCodec.ForMessage(79978, global::Pb.TestFeatures.Parser)); |
| } |
| #endregion |
| |
| } |
| |
| } |
| #endregion |
| |
| #region Extensions |
| /// <summary>Container for extensions for other messages declared in the TestMessage message type.</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public static partial class Extensions { |
| public static readonly pb::Extension<global::Google.Protobuf.Reflection.FeatureSet, global::Pb.TestFeatures> TestMessage = |
| new pb::Extension<global::Google.Protobuf.Reflection.FeatureSet, global::Pb.TestFeatures>(9998, pb::FieldCodec.ForMessage(79986, global::Pb.TestFeatures.Parser)); |
| } |
| #endregion |
| |
| } |
| |
| [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] |
| public sealed partial class TestFeatures : pb::IMessage<TestFeatures> |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| , pb::IBufferMessage |
| #endif |
| { |
| private static readonly pb::MessageParser<TestFeatures> _parser = new pb::MessageParser<TestFeatures>(() => new TestFeatures()); |
| private pb::UnknownFieldSet _unknownFields; |
| private int _hasBits0; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public static pb::MessageParser<TestFeatures> Parser { get { return _parser; } } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public static pbr::MessageDescriptor Descriptor { |
| get { return global::Pb.UnittestFeaturesReflection.Descriptor.MessageTypes[1]; } |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| pbr::MessageDescriptor pb::IMessage.Descriptor { |
| get { return Descriptor; } |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public TestFeatures() { |
| OnConstruction(); |
| } |
| |
| partial void OnConstruction(); |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public TestFeatures(TestFeatures other) : this() { |
| _hasBits0 = other._hasBits0; |
| intFileFeature_ = other.intFileFeature_; |
| intExtensionRangeFeature_ = other.intExtensionRangeFeature_; |
| intMessageFeature_ = other.intMessageFeature_; |
| intFieldFeature_ = other.intFieldFeature_; |
| intOneofFeature_ = other.intOneofFeature_; |
| intEnumFeature_ = other.intEnumFeature_; |
| intEnumEntryFeature_ = other.intEnumEntryFeature_; |
| intServiceFeature_ = other.intServiceFeature_; |
| intMethodFeature_ = other.intMethodFeature_; |
| intMultipleFeature_ = other.intMultipleFeature_; |
| boolFieldFeature_ = other.boolFieldFeature_; |
| floatFieldFeature_ = other.floatFieldFeature_; |
| messageFieldFeature_ = other.messageFieldFeature_ != null ? other.messageFieldFeature_.Clone() : null; |
| enumFieldFeature_ = other.enumFieldFeature_; |
| intSourceFeature_ = other.intSourceFeature_; |
| stringSourceFeature_ = other.stringSourceFeature_; |
| _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public TestFeatures Clone() { |
| return new TestFeatures(this); |
| } |
| |
| /// <summary>Field number for the "int_file_feature" field.</summary> |
| public const int IntFileFeatureFieldNumber = 1; |
| private readonly static int IntFileFeatureDefaultValue = 0; |
| |
| private int intFileFeature_; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public int IntFileFeature { |
| get { if ((_hasBits0 & 1) != 0) { return intFileFeature_; } else { return IntFileFeatureDefaultValue; } } |
| set { |
| _hasBits0 |= 1; |
| intFileFeature_ = value; |
| } |
| } |
| /// <summary>Gets whether the "int_file_feature" field is set</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool HasIntFileFeature { |
| get { return (_hasBits0 & 1) != 0; } |
| } |
| /// <summary>Clears the value of the "int_file_feature" field</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void ClearIntFileFeature() { |
| _hasBits0 &= ~1; |
| } |
| |
| /// <summary>Field number for the "int_extension_range_feature" field.</summary> |
| public const int IntExtensionRangeFeatureFieldNumber = 2; |
| private readonly static int IntExtensionRangeFeatureDefaultValue = 0; |
| |
| private int intExtensionRangeFeature_; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public int IntExtensionRangeFeature { |
| get { if ((_hasBits0 & 2) != 0) { return intExtensionRangeFeature_; } else { return IntExtensionRangeFeatureDefaultValue; } } |
| set { |
| _hasBits0 |= 2; |
| intExtensionRangeFeature_ = value; |
| } |
| } |
| /// <summary>Gets whether the "int_extension_range_feature" field is set</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool HasIntExtensionRangeFeature { |
| get { return (_hasBits0 & 2) != 0; } |
| } |
| /// <summary>Clears the value of the "int_extension_range_feature" field</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void ClearIntExtensionRangeFeature() { |
| _hasBits0 &= ~2; |
| } |
| |
| /// <summary>Field number for the "int_message_feature" field.</summary> |
| public const int IntMessageFeatureFieldNumber = 3; |
| private readonly static int IntMessageFeatureDefaultValue = 0; |
| |
| private int intMessageFeature_; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public int IntMessageFeature { |
| get { if ((_hasBits0 & 4) != 0) { return intMessageFeature_; } else { return IntMessageFeatureDefaultValue; } } |
| set { |
| _hasBits0 |= 4; |
| intMessageFeature_ = value; |
| } |
| } |
| /// <summary>Gets whether the "int_message_feature" field is set</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool HasIntMessageFeature { |
| get { return (_hasBits0 & 4) != 0; } |
| } |
| /// <summary>Clears the value of the "int_message_feature" field</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void ClearIntMessageFeature() { |
| _hasBits0 &= ~4; |
| } |
| |
| /// <summary>Field number for the "int_field_feature" field.</summary> |
| public const int IntFieldFeatureFieldNumber = 4; |
| private readonly static int IntFieldFeatureDefaultValue = 0; |
| |
| private int intFieldFeature_; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public int IntFieldFeature { |
| get { if ((_hasBits0 & 8) != 0) { return intFieldFeature_; } else { return IntFieldFeatureDefaultValue; } } |
| set { |
| _hasBits0 |= 8; |
| intFieldFeature_ = value; |
| } |
| } |
| /// <summary>Gets whether the "int_field_feature" field is set</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool HasIntFieldFeature { |
| get { return (_hasBits0 & 8) != 0; } |
| } |
| /// <summary>Clears the value of the "int_field_feature" field</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void ClearIntFieldFeature() { |
| _hasBits0 &= ~8; |
| } |
| |
| /// <summary>Field number for the "int_oneof_feature" field.</summary> |
| public const int IntOneofFeatureFieldNumber = 5; |
| private readonly static int IntOneofFeatureDefaultValue = 0; |
| |
| private int intOneofFeature_; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public int IntOneofFeature { |
| get { if ((_hasBits0 & 16) != 0) { return intOneofFeature_; } else { return IntOneofFeatureDefaultValue; } } |
| set { |
| _hasBits0 |= 16; |
| intOneofFeature_ = value; |
| } |
| } |
| /// <summary>Gets whether the "int_oneof_feature" field is set</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool HasIntOneofFeature { |
| get { return (_hasBits0 & 16) != 0; } |
| } |
| /// <summary>Clears the value of the "int_oneof_feature" field</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void ClearIntOneofFeature() { |
| _hasBits0 &= ~16; |
| } |
| |
| /// <summary>Field number for the "int_enum_feature" field.</summary> |
| public const int IntEnumFeatureFieldNumber = 6; |
| private readonly static int IntEnumFeatureDefaultValue = 0; |
| |
| private int intEnumFeature_; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public int IntEnumFeature { |
| get { if ((_hasBits0 & 32) != 0) { return intEnumFeature_; } else { return IntEnumFeatureDefaultValue; } } |
| set { |
| _hasBits0 |= 32; |
| intEnumFeature_ = value; |
| } |
| } |
| /// <summary>Gets whether the "int_enum_feature" field is set</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool HasIntEnumFeature { |
| get { return (_hasBits0 & 32) != 0; } |
| } |
| /// <summary>Clears the value of the "int_enum_feature" field</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void ClearIntEnumFeature() { |
| _hasBits0 &= ~32; |
| } |
| |
| /// <summary>Field number for the "int_enum_entry_feature" field.</summary> |
| public const int IntEnumEntryFeatureFieldNumber = 7; |
| private readonly static int IntEnumEntryFeatureDefaultValue = 0; |
| |
| private int intEnumEntryFeature_; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public int IntEnumEntryFeature { |
| get { if ((_hasBits0 & 64) != 0) { return intEnumEntryFeature_; } else { return IntEnumEntryFeatureDefaultValue; } } |
| set { |
| _hasBits0 |= 64; |
| intEnumEntryFeature_ = value; |
| } |
| } |
| /// <summary>Gets whether the "int_enum_entry_feature" field is set</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool HasIntEnumEntryFeature { |
| get { return (_hasBits0 & 64) != 0; } |
| } |
| /// <summary>Clears the value of the "int_enum_entry_feature" field</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void ClearIntEnumEntryFeature() { |
| _hasBits0 &= ~64; |
| } |
| |
| /// <summary>Field number for the "int_service_feature" field.</summary> |
| public const int IntServiceFeatureFieldNumber = 8; |
| private readonly static int IntServiceFeatureDefaultValue = 0; |
| |
| private int intServiceFeature_; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public int IntServiceFeature { |
| get { if ((_hasBits0 & 128) != 0) { return intServiceFeature_; } else { return IntServiceFeatureDefaultValue; } } |
| set { |
| _hasBits0 |= 128; |
| intServiceFeature_ = value; |
| } |
| } |
| /// <summary>Gets whether the "int_service_feature" field is set</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool HasIntServiceFeature { |
| get { return (_hasBits0 & 128) != 0; } |
| } |
| /// <summary>Clears the value of the "int_service_feature" field</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void ClearIntServiceFeature() { |
| _hasBits0 &= ~128; |
| } |
| |
| /// <summary>Field number for the "int_method_feature" field.</summary> |
| public const int IntMethodFeatureFieldNumber = 9; |
| private readonly static int IntMethodFeatureDefaultValue = 0; |
| |
| private int intMethodFeature_; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public int IntMethodFeature { |
| get { if ((_hasBits0 & 256) != 0) { return intMethodFeature_; } else { return IntMethodFeatureDefaultValue; } } |
| set { |
| _hasBits0 |= 256; |
| intMethodFeature_ = value; |
| } |
| } |
| /// <summary>Gets whether the "int_method_feature" field is set</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool HasIntMethodFeature { |
| get { return (_hasBits0 & 256) != 0; } |
| } |
| /// <summary>Clears the value of the "int_method_feature" field</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void ClearIntMethodFeature() { |
| _hasBits0 &= ~256; |
| } |
| |
| /// <summary>Field number for the "int_multiple_feature" field.</summary> |
| public const int IntMultipleFeatureFieldNumber = 10; |
| private readonly static int IntMultipleFeatureDefaultValue = 0; |
| |
| private int intMultipleFeature_; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public int IntMultipleFeature { |
| get { if ((_hasBits0 & 512) != 0) { return intMultipleFeature_; } else { return IntMultipleFeatureDefaultValue; } } |
| set { |
| _hasBits0 |= 512; |
| intMultipleFeature_ = value; |
| } |
| } |
| /// <summary>Gets whether the "int_multiple_feature" field is set</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool HasIntMultipleFeature { |
| get { return (_hasBits0 & 512) != 0; } |
| } |
| /// <summary>Clears the value of the "int_multiple_feature" field</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void ClearIntMultipleFeature() { |
| _hasBits0 &= ~512; |
| } |
| |
| /// <summary>Field number for the "bool_field_feature" field.</summary> |
| public const int BoolFieldFeatureFieldNumber = 11; |
| private readonly static bool BoolFieldFeatureDefaultValue = false; |
| |
| private bool boolFieldFeature_; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool BoolFieldFeature { |
| get { if ((_hasBits0 & 1024) != 0) { return boolFieldFeature_; } else { return BoolFieldFeatureDefaultValue; } } |
| set { |
| _hasBits0 |= 1024; |
| boolFieldFeature_ = value; |
| } |
| } |
| /// <summary>Gets whether the "bool_field_feature" field is set</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool HasBoolFieldFeature { |
| get { return (_hasBits0 & 1024) != 0; } |
| } |
| /// <summary>Clears the value of the "bool_field_feature" field</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void ClearBoolFieldFeature() { |
| _hasBits0 &= ~1024; |
| } |
| |
| /// <summary>Field number for the "float_field_feature" field.</summary> |
| public const int FloatFieldFeatureFieldNumber = 12; |
| private readonly static float FloatFieldFeatureDefaultValue = 0F; |
| |
| private float floatFieldFeature_; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public float FloatFieldFeature { |
| get { if ((_hasBits0 & 2048) != 0) { return floatFieldFeature_; } else { return FloatFieldFeatureDefaultValue; } } |
| set { |
| _hasBits0 |= 2048; |
| floatFieldFeature_ = value; |
| } |
| } |
| /// <summary>Gets whether the "float_field_feature" field is set</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool HasFloatFieldFeature { |
| get { return (_hasBits0 & 2048) != 0; } |
| } |
| /// <summary>Clears the value of the "float_field_feature" field</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void ClearFloatFieldFeature() { |
| _hasBits0 &= ~2048; |
| } |
| |
| /// <summary>Field number for the "message_field_feature" field.</summary> |
| public const int MessageFieldFeatureFieldNumber = 13; |
| private global::Pb.TestFeatures.Types.MessageFeature messageFieldFeature_; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public global::Pb.TestFeatures.Types.MessageFeature MessageFieldFeature { |
| get { return messageFieldFeature_; } |
| set { |
| messageFieldFeature_ = value; |
| } |
| } |
| |
| /// <summary>Field number for the "enum_field_feature" field.</summary> |
| public const int EnumFieldFeatureFieldNumber = 14; |
| private readonly static global::Pb.TestFeatures.Types.EnumFeature EnumFieldFeatureDefaultValue = global::Pb.TestFeatures.Types.EnumFeature.TestEnumFeatureUnknown; |
| |
| private global::Pb.TestFeatures.Types.EnumFeature enumFieldFeature_; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public global::Pb.TestFeatures.Types.EnumFeature EnumFieldFeature { |
| get { if ((_hasBits0 & 4096) != 0) { return enumFieldFeature_; } else { return EnumFieldFeatureDefaultValue; } } |
| set { |
| _hasBits0 |= 4096; |
| enumFieldFeature_ = value; |
| } |
| } |
| /// <summary>Gets whether the "enum_field_feature" field is set</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool HasEnumFieldFeature { |
| get { return (_hasBits0 & 4096) != 0; } |
| } |
| /// <summary>Clears the value of the "enum_field_feature" field</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void ClearEnumFieldFeature() { |
| _hasBits0 &= ~4096; |
| } |
| |
| /// <summary>Field number for the "int_source_feature" field.</summary> |
| public const int IntSourceFeatureFieldNumber = 15; |
| private readonly static int IntSourceFeatureDefaultValue = 0; |
| |
| private int intSourceFeature_; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public int IntSourceFeature { |
| get { if ((_hasBits0 & 8192) != 0) { return intSourceFeature_; } else { return IntSourceFeatureDefaultValue; } } |
| set { |
| _hasBits0 |= 8192; |
| intSourceFeature_ = value; |
| } |
| } |
| /// <summary>Gets whether the "int_source_feature" field is set</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool HasIntSourceFeature { |
| get { return (_hasBits0 & 8192) != 0; } |
| } |
| /// <summary>Clears the value of the "int_source_feature" field</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void ClearIntSourceFeature() { |
| _hasBits0 &= ~8192; |
| } |
| |
| /// <summary>Field number for the "string_source_feature" field.</summary> |
| public const int StringSourceFeatureFieldNumber = 16; |
| private readonly static string StringSourceFeatureDefaultValue = ""; |
| |
| private string stringSourceFeature_; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public string StringSourceFeature { |
| get { return stringSourceFeature_ ?? StringSourceFeatureDefaultValue; } |
| set { |
| stringSourceFeature_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| } |
| } |
| /// <summary>Gets whether the "string_source_feature" field is set</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool HasStringSourceFeature { |
| get { return stringSourceFeature_ != null; } |
| } |
| /// <summary>Clears the value of the "string_source_feature" field</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void ClearStringSourceFeature() { |
| stringSourceFeature_ = null; |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public override bool Equals(object other) { |
| return Equals(other as TestFeatures); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool Equals(TestFeatures other) { |
| if (ReferenceEquals(other, null)) { |
| return false; |
| } |
| if (ReferenceEquals(other, this)) { |
| return true; |
| } |
| if (IntFileFeature != other.IntFileFeature) return false; |
| if (IntExtensionRangeFeature != other.IntExtensionRangeFeature) return false; |
| if (IntMessageFeature != other.IntMessageFeature) return false; |
| if (IntFieldFeature != other.IntFieldFeature) return false; |
| if (IntOneofFeature != other.IntOneofFeature) return false; |
| if (IntEnumFeature != other.IntEnumFeature) return false; |
| if (IntEnumEntryFeature != other.IntEnumEntryFeature) return false; |
| if (IntServiceFeature != other.IntServiceFeature) return false; |
| if (IntMethodFeature != other.IntMethodFeature) return false; |
| if (IntMultipleFeature != other.IntMultipleFeature) return false; |
| if (BoolFieldFeature != other.BoolFieldFeature) return false; |
| if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(FloatFieldFeature, other.FloatFieldFeature)) return false; |
| if (!object.Equals(MessageFieldFeature, other.MessageFieldFeature)) return false; |
| if (EnumFieldFeature != other.EnumFieldFeature) return false; |
| if (IntSourceFeature != other.IntSourceFeature) return false; |
| if (StringSourceFeature != other.StringSourceFeature) return false; |
| return Equals(_unknownFields, other._unknownFields); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public override int GetHashCode() { |
| int hash = 1; |
| if (HasIntFileFeature) hash ^= IntFileFeature.GetHashCode(); |
| if (HasIntExtensionRangeFeature) hash ^= IntExtensionRangeFeature.GetHashCode(); |
| if (HasIntMessageFeature) hash ^= IntMessageFeature.GetHashCode(); |
| if (HasIntFieldFeature) hash ^= IntFieldFeature.GetHashCode(); |
| if (HasIntOneofFeature) hash ^= IntOneofFeature.GetHashCode(); |
| if (HasIntEnumFeature) hash ^= IntEnumFeature.GetHashCode(); |
| if (HasIntEnumEntryFeature) hash ^= IntEnumEntryFeature.GetHashCode(); |
| if (HasIntServiceFeature) hash ^= IntServiceFeature.GetHashCode(); |
| if (HasIntMethodFeature) hash ^= IntMethodFeature.GetHashCode(); |
| if (HasIntMultipleFeature) hash ^= IntMultipleFeature.GetHashCode(); |
| if (HasBoolFieldFeature) hash ^= BoolFieldFeature.GetHashCode(); |
| if (HasFloatFieldFeature) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FloatFieldFeature); |
| if (messageFieldFeature_ != null) hash ^= MessageFieldFeature.GetHashCode(); |
| if (HasEnumFieldFeature) hash ^= EnumFieldFeature.GetHashCode(); |
| if (HasIntSourceFeature) hash ^= IntSourceFeature.GetHashCode(); |
| if (HasStringSourceFeature) hash ^= StringSourceFeature.GetHashCode(); |
| if (_unknownFields != null) { |
| hash ^= _unknownFields.GetHashCode(); |
| } |
| return hash; |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public override string ToString() { |
| return pb::JsonFormatter.ToDiagnosticString(this); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void WriteTo(pb::CodedOutputStream output) { |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| output.WriteRawMessage(this); |
| #else |
| if (HasIntFileFeature) { |
| output.WriteRawTag(8); |
| output.WriteInt32(IntFileFeature); |
| } |
| if (HasIntExtensionRangeFeature) { |
| output.WriteRawTag(16); |
| output.WriteInt32(IntExtensionRangeFeature); |
| } |
| if (HasIntMessageFeature) { |
| output.WriteRawTag(24); |
| output.WriteInt32(IntMessageFeature); |
| } |
| if (HasIntFieldFeature) { |
| output.WriteRawTag(32); |
| output.WriteInt32(IntFieldFeature); |
| } |
| if (HasIntOneofFeature) { |
| output.WriteRawTag(40); |
| output.WriteInt32(IntOneofFeature); |
| } |
| if (HasIntEnumFeature) { |
| output.WriteRawTag(48); |
| output.WriteInt32(IntEnumFeature); |
| } |
| if (HasIntEnumEntryFeature) { |
| output.WriteRawTag(56); |
| output.WriteInt32(IntEnumEntryFeature); |
| } |
| if (HasIntServiceFeature) { |
| output.WriteRawTag(64); |
| output.WriteInt32(IntServiceFeature); |
| } |
| if (HasIntMethodFeature) { |
| output.WriteRawTag(72); |
| output.WriteInt32(IntMethodFeature); |
| } |
| if (HasIntMultipleFeature) { |
| output.WriteRawTag(80); |
| output.WriteInt32(IntMultipleFeature); |
| } |
| if (HasBoolFieldFeature) { |
| output.WriteRawTag(88); |
| output.WriteBool(BoolFieldFeature); |
| } |
| if (HasFloatFieldFeature) { |
| output.WriteRawTag(101); |
| output.WriteFloat(FloatFieldFeature); |
| } |
| if (messageFieldFeature_ != null) { |
| output.WriteRawTag(106); |
| output.WriteMessage(MessageFieldFeature); |
| } |
| if (HasEnumFieldFeature) { |
| output.WriteRawTag(112); |
| output.WriteEnum((int) EnumFieldFeature); |
| } |
| if (HasIntSourceFeature) { |
| output.WriteRawTag(120); |
| output.WriteInt32(IntSourceFeature); |
| } |
| if (HasStringSourceFeature) { |
| output.WriteRawTag(130, 1); |
| output.WriteString(StringSourceFeature); |
| } |
| if (_unknownFields != null) { |
| _unknownFields.WriteTo(output); |
| } |
| #endif |
| } |
| |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| if (HasIntFileFeature) { |
| output.WriteRawTag(8); |
| output.WriteInt32(IntFileFeature); |
| } |
| if (HasIntExtensionRangeFeature) { |
| output.WriteRawTag(16); |
| output.WriteInt32(IntExtensionRangeFeature); |
| } |
| if (HasIntMessageFeature) { |
| output.WriteRawTag(24); |
| output.WriteInt32(IntMessageFeature); |
| } |
| if (HasIntFieldFeature) { |
| output.WriteRawTag(32); |
| output.WriteInt32(IntFieldFeature); |
| } |
| if (HasIntOneofFeature) { |
| output.WriteRawTag(40); |
| output.WriteInt32(IntOneofFeature); |
| } |
| if (HasIntEnumFeature) { |
| output.WriteRawTag(48); |
| output.WriteInt32(IntEnumFeature); |
| } |
| if (HasIntEnumEntryFeature) { |
| output.WriteRawTag(56); |
| output.WriteInt32(IntEnumEntryFeature); |
| } |
| if (HasIntServiceFeature) { |
| output.WriteRawTag(64); |
| output.WriteInt32(IntServiceFeature); |
| } |
| if (HasIntMethodFeature) { |
| output.WriteRawTag(72); |
| output.WriteInt32(IntMethodFeature); |
| } |
| if (HasIntMultipleFeature) { |
| output.WriteRawTag(80); |
| output.WriteInt32(IntMultipleFeature); |
| } |
| if (HasBoolFieldFeature) { |
| output.WriteRawTag(88); |
| output.WriteBool(BoolFieldFeature); |
| } |
| if (HasFloatFieldFeature) { |
| output.WriteRawTag(101); |
| output.WriteFloat(FloatFieldFeature); |
| } |
| if (messageFieldFeature_ != null) { |
| output.WriteRawTag(106); |
| output.WriteMessage(MessageFieldFeature); |
| } |
| if (HasEnumFieldFeature) { |
| output.WriteRawTag(112); |
| output.WriteEnum((int) EnumFieldFeature); |
| } |
| if (HasIntSourceFeature) { |
| output.WriteRawTag(120); |
| output.WriteInt32(IntSourceFeature); |
| } |
| if (HasStringSourceFeature) { |
| output.WriteRawTag(130, 1); |
| output.WriteString(StringSourceFeature); |
| } |
| if (_unknownFields != null) { |
| _unknownFields.WriteTo(ref output); |
| } |
| } |
| #endif |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public int CalculateSize() { |
| int size = 0; |
| if (HasIntFileFeature) { |
| size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntFileFeature); |
| } |
| if (HasIntExtensionRangeFeature) { |
| size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntExtensionRangeFeature); |
| } |
| if (HasIntMessageFeature) { |
| size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntMessageFeature); |
| } |
| if (HasIntFieldFeature) { |
| size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntFieldFeature); |
| } |
| if (HasIntOneofFeature) { |
| size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntOneofFeature); |
| } |
| if (HasIntEnumFeature) { |
| size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntEnumFeature); |
| } |
| if (HasIntEnumEntryFeature) { |
| size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntEnumEntryFeature); |
| } |
| if (HasIntServiceFeature) { |
| size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntServiceFeature); |
| } |
| if (HasIntMethodFeature) { |
| size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntMethodFeature); |
| } |
| if (HasIntMultipleFeature) { |
| size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntMultipleFeature); |
| } |
| if (HasBoolFieldFeature) { |
| size += 1 + 1; |
| } |
| if (HasFloatFieldFeature) { |
| size += 1 + 4; |
| } |
| if (messageFieldFeature_ != null) { |
| size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageFieldFeature); |
| } |
| if (HasEnumFieldFeature) { |
| size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumFieldFeature); |
| } |
| if (HasIntSourceFeature) { |
| size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntSourceFeature); |
| } |
| if (HasStringSourceFeature) { |
| size += 2 + pb::CodedOutputStream.ComputeStringSize(StringSourceFeature); |
| } |
| if (_unknownFields != null) { |
| size += _unknownFields.CalculateSize(); |
| } |
| return size; |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void MergeFrom(TestFeatures other) { |
| if (other == null) { |
| return; |
| } |
| if (other.HasIntFileFeature) { |
| IntFileFeature = other.IntFileFeature; |
| } |
| if (other.HasIntExtensionRangeFeature) { |
| IntExtensionRangeFeature = other.IntExtensionRangeFeature; |
| } |
| if (other.HasIntMessageFeature) { |
| IntMessageFeature = other.IntMessageFeature; |
| } |
| if (other.HasIntFieldFeature) { |
| IntFieldFeature = other.IntFieldFeature; |
| } |
| if (other.HasIntOneofFeature) { |
| IntOneofFeature = other.IntOneofFeature; |
| } |
| if (other.HasIntEnumFeature) { |
| IntEnumFeature = other.IntEnumFeature; |
| } |
| if (other.HasIntEnumEntryFeature) { |
| IntEnumEntryFeature = other.IntEnumEntryFeature; |
| } |
| if (other.HasIntServiceFeature) { |
| IntServiceFeature = other.IntServiceFeature; |
| } |
| if (other.HasIntMethodFeature) { |
| IntMethodFeature = other.IntMethodFeature; |
| } |
| if (other.HasIntMultipleFeature) { |
| IntMultipleFeature = other.IntMultipleFeature; |
| } |
| if (other.HasBoolFieldFeature) { |
| BoolFieldFeature = other.BoolFieldFeature; |
| } |
| if (other.HasFloatFieldFeature) { |
| FloatFieldFeature = other.FloatFieldFeature; |
| } |
| if (other.messageFieldFeature_ != null) { |
| if (messageFieldFeature_ == null) { |
| MessageFieldFeature = new global::Pb.TestFeatures.Types.MessageFeature(); |
| } |
| MessageFieldFeature.MergeFrom(other.MessageFieldFeature); |
| } |
| if (other.HasEnumFieldFeature) { |
| EnumFieldFeature = other.EnumFieldFeature; |
| } |
| if (other.HasIntSourceFeature) { |
| IntSourceFeature = other.IntSourceFeature; |
| } |
| if (other.HasStringSourceFeature) { |
| StringSourceFeature = other.StringSourceFeature; |
| } |
| _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void MergeFrom(pb::CodedInputStream input) { |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| input.ReadRawMessage(this); |
| #else |
| uint tag; |
| while ((tag = input.ReadTag()) != 0) { |
| switch(tag) { |
| default: |
| _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| break; |
| case 8: { |
| IntFileFeature = input.ReadInt32(); |
| break; |
| } |
| case 16: { |
| IntExtensionRangeFeature = input.ReadInt32(); |
| break; |
| } |
| case 24: { |
| IntMessageFeature = input.ReadInt32(); |
| break; |
| } |
| case 32: { |
| IntFieldFeature = input.ReadInt32(); |
| break; |
| } |
| case 40: { |
| IntOneofFeature = input.ReadInt32(); |
| break; |
| } |
| case 48: { |
| IntEnumFeature = input.ReadInt32(); |
| break; |
| } |
| case 56: { |
| IntEnumEntryFeature = input.ReadInt32(); |
| break; |
| } |
| case 64: { |
| IntServiceFeature = input.ReadInt32(); |
| break; |
| } |
| case 72: { |
| IntMethodFeature = input.ReadInt32(); |
| break; |
| } |
| case 80: { |
| IntMultipleFeature = input.ReadInt32(); |
| break; |
| } |
| case 88: { |
| BoolFieldFeature = input.ReadBool(); |
| break; |
| } |
| case 101: { |
| FloatFieldFeature = input.ReadFloat(); |
| break; |
| } |
| case 106: { |
| if (messageFieldFeature_ == null) { |
| MessageFieldFeature = new global::Pb.TestFeatures.Types.MessageFeature(); |
| } |
| input.ReadMessage(MessageFieldFeature); |
| break; |
| } |
| case 112: { |
| EnumFieldFeature = (global::Pb.TestFeatures.Types.EnumFeature) input.ReadEnum(); |
| break; |
| } |
| case 120: { |
| IntSourceFeature = input.ReadInt32(); |
| break; |
| } |
| case 130: { |
| StringSourceFeature = input.ReadString(); |
| break; |
| } |
| } |
| } |
| #endif |
| } |
| |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| uint tag; |
| while ((tag = input.ReadTag()) != 0) { |
| switch(tag) { |
| default: |
| _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| break; |
| case 8: { |
| IntFileFeature = input.ReadInt32(); |
| break; |
| } |
| case 16: { |
| IntExtensionRangeFeature = input.ReadInt32(); |
| break; |
| } |
| case 24: { |
| IntMessageFeature = input.ReadInt32(); |
| break; |
| } |
| case 32: { |
| IntFieldFeature = input.ReadInt32(); |
| break; |
| } |
| case 40: { |
| IntOneofFeature = input.ReadInt32(); |
| break; |
| } |
| case 48: { |
| IntEnumFeature = input.ReadInt32(); |
| break; |
| } |
| case 56: { |
| IntEnumEntryFeature = input.ReadInt32(); |
| break; |
| } |
| case 64: { |
| IntServiceFeature = input.ReadInt32(); |
| break; |
| } |
| case 72: { |
| IntMethodFeature = input.ReadInt32(); |
| break; |
| } |
| case 80: { |
| IntMultipleFeature = input.ReadInt32(); |
| break; |
| } |
| case 88: { |
| BoolFieldFeature = input.ReadBool(); |
| break; |
| } |
| case 101: { |
| FloatFieldFeature = input.ReadFloat(); |
| break; |
| } |
| case 106: { |
| if (messageFieldFeature_ == null) { |
| MessageFieldFeature = new global::Pb.TestFeatures.Types.MessageFeature(); |
| } |
| input.ReadMessage(MessageFieldFeature); |
| break; |
| } |
| case 112: { |
| EnumFieldFeature = (global::Pb.TestFeatures.Types.EnumFeature) input.ReadEnum(); |
| break; |
| } |
| case 120: { |
| IntSourceFeature = input.ReadInt32(); |
| break; |
| } |
| case 130: { |
| StringSourceFeature = input.ReadString(); |
| break; |
| } |
| } |
| } |
| } |
| #endif |
| |
| #region Nested types |
| /// <summary>Container for nested types declared in the TestFeatures message type.</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public static partial class Types { |
| public enum EnumFeature { |
| [pbr::OriginalName("TEST_ENUM_FEATURE_UNKNOWN")] TestEnumFeatureUnknown = 0, |
| [pbr::OriginalName("ENUM_VALUE1")] EnumValue1 = 1, |
| [pbr::OriginalName("ENUM_VALUE2")] EnumValue2 = 2, |
| [pbr::OriginalName("ENUM_VALUE3")] EnumValue3 = 3, |
| [pbr::OriginalName("ENUM_VALUE4")] EnumValue4 = 4, |
| [pbr::OriginalName("ENUM_VALUE5")] EnumValue5 = 5, |
| } |
| |
| [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] |
| public sealed partial class MessageFeature : pb::IMessage<MessageFeature> |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| , pb::IBufferMessage |
| #endif |
| { |
| private static readonly pb::MessageParser<MessageFeature> _parser = new pb::MessageParser<MessageFeature>(() => new MessageFeature()); |
| private pb::UnknownFieldSet _unknownFields; |
| private int _hasBits0; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public static pb::MessageParser<MessageFeature> Parser { get { return _parser; } } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public static pbr::MessageDescriptor Descriptor { |
| get { return global::Pb.TestFeatures.Descriptor.NestedTypes[0]; } |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| pbr::MessageDescriptor pb::IMessage.Descriptor { |
| get { return Descriptor; } |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public MessageFeature() { |
| OnConstruction(); |
| } |
| |
| partial void OnConstruction(); |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public MessageFeature(MessageFeature other) : this() { |
| _hasBits0 = other._hasBits0; |
| boolField_ = other.boolField_; |
| intField_ = other.intField_; |
| floatField_ = other.floatField_; |
| stringField_ = other.stringField_; |
| _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public MessageFeature Clone() { |
| return new MessageFeature(this); |
| } |
| |
| /// <summary>Field number for the "bool_field" field.</summary> |
| public const int BoolFieldFieldNumber = 1; |
| private readonly static bool BoolFieldDefaultValue = false; |
| |
| private bool boolField_; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool BoolField { |
| get { if ((_hasBits0 & 1) != 0) { return boolField_; } else { return BoolFieldDefaultValue; } } |
| set { |
| _hasBits0 |= 1; |
| boolField_ = value; |
| } |
| } |
| /// <summary>Gets whether the "bool_field" field is set</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool HasBoolField { |
| get { return (_hasBits0 & 1) != 0; } |
| } |
| /// <summary>Clears the value of the "bool_field" field</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void ClearBoolField() { |
| _hasBits0 &= ~1; |
| } |
| |
| /// <summary>Field number for the "int_field" field.</summary> |
| public const int IntFieldFieldNumber = 2; |
| private readonly static int IntFieldDefaultValue = 0; |
| |
| private int intField_; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public int IntField { |
| get { if ((_hasBits0 & 2) != 0) { return intField_; } else { return IntFieldDefaultValue; } } |
| set { |
| _hasBits0 |= 2; |
| intField_ = value; |
| } |
| } |
| /// <summary>Gets whether the "int_field" field is set</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool HasIntField { |
| get { return (_hasBits0 & 2) != 0; } |
| } |
| /// <summary>Clears the value of the "int_field" field</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void ClearIntField() { |
| _hasBits0 &= ~2; |
| } |
| |
| /// <summary>Field number for the "float_field" field.</summary> |
| public const int FloatFieldFieldNumber = 3; |
| private readonly static float FloatFieldDefaultValue = 0F; |
| |
| private float floatField_; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public float FloatField { |
| get { if ((_hasBits0 & 4) != 0) { return floatField_; } else { return FloatFieldDefaultValue; } } |
| set { |
| _hasBits0 |= 4; |
| floatField_ = value; |
| } |
| } |
| /// <summary>Gets whether the "float_field" field is set</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool HasFloatField { |
| get { return (_hasBits0 & 4) != 0; } |
| } |
| /// <summary>Clears the value of the "float_field" field</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void ClearFloatField() { |
| _hasBits0 &= ~4; |
| } |
| |
| /// <summary>Field number for the "string_field" field.</summary> |
| public const int StringFieldFieldNumber = 4; |
| private readonly static string StringFieldDefaultValue = ""; |
| |
| private string stringField_; |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public string StringField { |
| get { return stringField_ ?? StringFieldDefaultValue; } |
| set { |
| stringField_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| } |
| } |
| /// <summary>Gets whether the "string_field" field is set</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool HasStringField { |
| get { return stringField_ != null; } |
| } |
| /// <summary>Clears the value of the "string_field" field</summary> |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void ClearStringField() { |
| stringField_ = null; |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public override bool Equals(object other) { |
| return Equals(other as MessageFeature); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public bool Equals(MessageFeature other) { |
| if (ReferenceEquals(other, null)) { |
| return false; |
| } |
| if (ReferenceEquals(other, this)) { |
| return true; |
| } |
| if (BoolField != other.BoolField) return false; |
| if (IntField != other.IntField) return false; |
| if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(FloatField, other.FloatField)) return false; |
| if (StringField != other.StringField) return false; |
| return Equals(_unknownFields, other._unknownFields); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public override int GetHashCode() { |
| int hash = 1; |
| if (HasBoolField) hash ^= BoolField.GetHashCode(); |
| if (HasIntField) hash ^= IntField.GetHashCode(); |
| if (HasFloatField) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FloatField); |
| if (HasStringField) hash ^= StringField.GetHashCode(); |
| if (_unknownFields != null) { |
| hash ^= _unknownFields.GetHashCode(); |
| } |
| return hash; |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public override string ToString() { |
| return pb::JsonFormatter.ToDiagnosticString(this); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void WriteTo(pb::CodedOutputStream output) { |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| output.WriteRawMessage(this); |
| #else |
| if (HasBoolField) { |
| output.WriteRawTag(8); |
| output.WriteBool(BoolField); |
| } |
| if (HasIntField) { |
| output.WriteRawTag(16); |
| output.WriteInt32(IntField); |
| } |
| if (HasFloatField) { |
| output.WriteRawTag(29); |
| output.WriteFloat(FloatField); |
| } |
| if (HasStringField) { |
| output.WriteRawTag(34); |
| output.WriteString(StringField); |
| } |
| if (_unknownFields != null) { |
| _unknownFields.WriteTo(output); |
| } |
| #endif |
| } |
| |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| if (HasBoolField) { |
| output.WriteRawTag(8); |
| output.WriteBool(BoolField); |
| } |
| if (HasIntField) { |
| output.WriteRawTag(16); |
| output.WriteInt32(IntField); |
| } |
| if (HasFloatField) { |
| output.WriteRawTag(29); |
| output.WriteFloat(FloatField); |
| } |
| if (HasStringField) { |
| output.WriteRawTag(34); |
| output.WriteString(StringField); |
| } |
| if (_unknownFields != null) { |
| _unknownFields.WriteTo(ref output); |
| } |
| } |
| #endif |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public int CalculateSize() { |
| int size = 0; |
| if (HasBoolField) { |
| size += 1 + 1; |
| } |
| if (HasIntField) { |
| size += 1 + pb::CodedOutputStream.ComputeInt32Size(IntField); |
| } |
| if (HasFloatField) { |
| size += 1 + 4; |
| } |
| if (HasStringField) { |
| size += 1 + pb::CodedOutputStream.ComputeStringSize(StringField); |
| } |
| if (_unknownFields != null) { |
| size += _unknownFields.CalculateSize(); |
| } |
| return size; |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void MergeFrom(MessageFeature other) { |
| if (other == null) { |
| return; |
| } |
| if (other.HasBoolField) { |
| BoolField = other.BoolField; |
| } |
| if (other.HasIntField) { |
| IntField = other.IntField; |
| } |
| if (other.HasFloatField) { |
| FloatField = other.FloatField; |
| } |
| if (other.HasStringField) { |
| StringField = other.StringField; |
| } |
| _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| } |
| |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| public void MergeFrom(pb::CodedInputStream input) { |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| input.ReadRawMessage(this); |
| #else |
| uint tag; |
| while ((tag = input.ReadTag()) != 0) { |
| switch(tag) { |
| default: |
| _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| break; |
| case 8: { |
| BoolField = input.ReadBool(); |
| break; |
| } |
| case 16: { |
| IntField = input.ReadInt32(); |
| break; |
| } |
| case 29: { |
| FloatField = input.ReadFloat(); |
| break; |
| } |
| case 34: { |
| StringField = input.ReadString(); |
| break; |
| } |
| } |
| } |
| #endif |
| } |
| |
| #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| uint tag; |
| while ((tag = input.ReadTag()) != 0) { |
| switch(tag) { |
| default: |
| _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| break; |
| case 8: { |
| BoolField = input.ReadBool(); |
| break; |
| } |
| case 16: { |
| IntField = input.ReadInt32(); |
| break; |
| } |
| case 29: { |
| FloatField = input.ReadFloat(); |
| break; |
| } |
| case 34: { |
| StringField = input.ReadString(); |
| break; |
| } |
| } |
| } |
| } |
| #endif |
| |
| } |
| |
| } |
| #endregion |
| |
| } |
| |
| #endregion |
| |
| } |
| |
| #endregion Designer generated code |