123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: unittest_issues.proto
- #pragma warning disable 1591, 0612, 3021
- #region Designer generated code
- using pb = global::Google.Protobuf;
- using pbc = global::Google.Protobuf.Collections;
- using pbd = global::Google.Protobuf.Descriptors;
- using scg = global::System.Collections.Generic;
- namespace UnitTest.Issues.TestProtos {
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class UnittestIssues {
- #region Static variables
- internal static pb::FieldAccess.FieldAccessorTable internal__static_unittest_issues_Issue307__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_unittest_issues_Issue307_NestedOnce__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_unittest_issues_Issue307_NestedOnce_NestedTwice__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_unittest_issues_NegativeEnumMessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_unittest_issues_DeprecatedChild__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_unittest_issues_DeprecatedFieldsMessage__FieldAccessorTable;
- internal static pb::FieldAccess.FieldAccessorTable internal__static_unittest_issues_ItemField__FieldAccessorTable;
- #endregion
- #region Descriptor
- public static pbd::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbd::FileDescriptor descriptor;
- static UnittestIssues() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "ChV1bml0dGVzdF9pc3N1ZXMucHJvdG8SD3VuaXR0ZXN0X2lzc3VlcyInCghJ",
- "c3N1ZTMwNxobCgpOZXN0ZWRPbmNlGg0KC05lc3RlZFR3aWNlIrABChNOZWdh",
- "dGl2ZUVudW1NZXNzYWdlEiwKBXZhbHVlGAEgASgOMh0udW5pdHRlc3RfaXNz",
- "dWVzLk5lZ2F0aXZlRW51bRIxCgZ2YWx1ZXMYAiADKA4yHS51bml0dGVzdF9p",
- "c3N1ZXMuTmVnYXRpdmVFbnVtQgIQABI4Cg1wYWNrZWRfdmFsdWVzGAMgAygO",
- "Mh0udW5pdHRlc3RfaXNzdWVzLk5lZ2F0aXZlRW51bUICEAEiEQoPRGVwcmVj",
- "YXRlZENoaWxkIrkCChdEZXByZWNhdGVkRmllbGRzTWVzc2FnZRIaCg5Qcmlt",
- "aXRpdmVWYWx1ZRgBIAEoBUICGAESGgoOUHJpbWl0aXZlQXJyYXkYAiADKAVC",
- "AhgBEjoKDE1lc3NhZ2VWYWx1ZRgDIAEoCzIgLnVuaXR0ZXN0X2lzc3Vlcy5E",
- "ZXByZWNhdGVkQ2hpbGRCAhgBEjoKDE1lc3NhZ2VBcnJheRgEIAMoCzIgLnVu",
- "aXR0ZXN0X2lzc3Vlcy5EZXByZWNhdGVkQ2hpbGRCAhgBEjYKCUVudW1WYWx1",
- "ZRgFIAEoDjIfLnVuaXR0ZXN0X2lzc3Vlcy5EZXByZWNhdGVkRW51bUICGAES",
- "NgoJRW51bUFycmF5GAYgAygOMh8udW5pdHRlc3RfaXNzdWVzLkRlcHJlY2F0",
- "ZWRFbnVtQgIYASIZCglJdGVtRmllbGQSDAoEaXRlbRgBIAEoBSpVCgxOZWdh",
- "dGl2ZUVudW0SFgoSTkVHQVRJVkVfRU5VTV9aRVJPEAASFgoJRml2ZUJlbG93",
- "EPv//////////wESFQoITWludXNPbmUQ////////////ASouCg5EZXByZWNh",
- "dGVkRW51bRITCg9ERVBSRUNBVEVEX1pFUk8QABIHCgNvbmUQAUIfSAGqAhpV",
- "bml0VGVzdC5Jc3N1ZXMuVGVzdFByb3Rvc2IGcHJvdG8z"));
- descriptor = pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
- new pbd::FileDescriptor[] {
- });
- internal__static_unittest_issues_Issue307__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::UnitTest.Issues.TestProtos.Issue307), descriptor.MessageTypes[0],
- new string[] { }, new string[] { });
- internal__static_unittest_issues_Issue307_NestedOnce__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce), descriptor.MessageTypes[0].NestedTypes[0],
- new string[] { }, new string[] { });
- internal__static_unittest_issues_Issue307_NestedOnce_NestedTwice__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce.Types.NestedTwice), descriptor.MessageTypes[0].NestedTypes[0].NestedTypes[0],
- new string[] { }, new string[] { });
- internal__static_unittest_issues_NegativeEnumMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::UnitTest.Issues.TestProtos.NegativeEnumMessage), descriptor.MessageTypes[1],
- new string[] { "Value", "Values", "PackedValues", }, new string[] { });
- internal__static_unittest_issues_DeprecatedChild__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::UnitTest.Issues.TestProtos.DeprecatedChild), descriptor.MessageTypes[2],
- new string[] { }, new string[] { });
- internal__static_unittest_issues_DeprecatedFieldsMessage__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::UnitTest.Issues.TestProtos.DeprecatedFieldsMessage), descriptor.MessageTypes[3],
- new string[] { "PrimitiveValue", "PrimitiveArray", "MessageValue", "MessageArray", "EnumValue", "EnumArray", }, new string[] { });
- internal__static_unittest_issues_ItemField__FieldAccessorTable =
- new pb::FieldAccess.FieldAccessorTable(typeof(global::UnitTest.Issues.TestProtos.ItemField), descriptor.MessageTypes[4],
- new string[] { "Item", }, new string[] { });
- }
- #endregion
- }
- #region Enums
- public enum NegativeEnum {
- NEGATIVE_ENUM_ZERO = 0,
- FiveBelow = -5,
- MinusOne = -1,
- }
- public enum DeprecatedEnum {
- DEPRECATED_ZERO = 0,
- one = 1,
- }
- #endregion
- #region Messages
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class Issue307 : pb::IMessage<Issue307> {
- private static readonly pb::MessageParser<Issue307> _parser = new pb::MessageParser<Issue307>(() => new Issue307());
- public static pb::MessageParser<Issue307> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { };
- private static readonly uint[] _fieldTags = new uint[] { };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::UnitTest.Issues.TestProtos.UnittestIssues.Descriptor.MessageTypes[0]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::UnitTest.Issues.TestProtos.UnittestIssues.internal__static_unittest_issues_Issue307__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public Issue307() {
- OnConstruction();
- }
- partial void OnConstruction();
- public Issue307(Issue307 other) : this() {
- }
- public Issue307 Clone() {
- return new Issue307(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public override bool Equals(object other) {
- return Equals(other as Issue307);
- }
- public bool Equals(Issue307 other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- }
- public int CalculateSize() {
- int size = 0;
- return size;
- }
- public void MergeFrom(Issue307 other) {
- if (other == null) {
- return;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- }
- }
- }
- #region Nested types
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class NestedOnce : pb::IMessage<NestedOnce> {
- private static readonly pb::MessageParser<NestedOnce> _parser = new pb::MessageParser<NestedOnce>(() => new NestedOnce());
- public static pb::MessageParser<NestedOnce> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { };
- private static readonly uint[] _fieldTags = new uint[] { };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::UnitTest.Issues.TestProtos.Issue307.Descriptor.NestedTypes[0]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::UnitTest.Issues.TestProtos.UnittestIssues.internal__static_unittest_issues_Issue307_NestedOnce__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public NestedOnce() {
- OnConstruction();
- }
- partial void OnConstruction();
- public NestedOnce(NestedOnce other) : this() {
- }
- public NestedOnce Clone() {
- return new NestedOnce(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public override bool Equals(object other) {
- return Equals(other as NestedOnce);
- }
- public bool Equals(NestedOnce other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- }
- public int CalculateSize() {
- int size = 0;
- return size;
- }
- public void MergeFrom(NestedOnce other) {
- if (other == null) {
- return;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- }
- }
- }
- #region Nested types
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class NestedTwice : pb::IMessage<NestedTwice> {
- private static readonly pb::MessageParser<NestedTwice> _parser = new pb::MessageParser<NestedTwice>(() => new NestedTwice());
- public static pb::MessageParser<NestedTwice> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { };
- private static readonly uint[] _fieldTags = new uint[] { };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce.Descriptor.NestedTypes[0]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::UnitTest.Issues.TestProtos.UnittestIssues.internal__static_unittest_issues_Issue307_NestedOnce_NestedTwice__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public NestedTwice() {
- OnConstruction();
- }
- partial void OnConstruction();
- public NestedTwice(NestedTwice other) : this() {
- }
- public NestedTwice Clone() {
- return new NestedTwice(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public override bool Equals(object other) {
- return Equals(other as NestedTwice);
- }
- public bool Equals(NestedTwice other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- }
- public int CalculateSize() {
- int size = 0;
- return size;
- }
- public void MergeFrom(NestedTwice other) {
- if (other == null) {
- return;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- }
- }
- }
- }
- }
- #endregion
- }
- }
- #endregion
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class NegativeEnumMessage : pb::IMessage<NegativeEnumMessage> {
- private static readonly pb::MessageParser<NegativeEnumMessage> _parser = new pb::MessageParser<NegativeEnumMessage>(() => new NegativeEnumMessage());
- public static pb::MessageParser<NegativeEnumMessage> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "packed_values", "value", "values" };
- private static readonly uint[] _fieldTags = new uint[] { 26, 8, 16 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::UnitTest.Issues.TestProtos.UnittestIssues.Descriptor.MessageTypes[1]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::UnitTest.Issues.TestProtos.UnittestIssues.internal__static_unittest_issues_NegativeEnumMessage__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public NegativeEnumMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- public NegativeEnumMessage(NegativeEnumMessage other) : this() {
- value_ = other.value_;
- values_ = other.values_.Clone();
- packedValues_ = other.packedValues_.Clone();
- }
- public NegativeEnumMessage Clone() {
- return new NegativeEnumMessage(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- values_.Freeze();
- packedValues_.Freeze();
- }
- public const int ValueFieldNumber = 1;
- private global::UnitTest.Issues.TestProtos.NegativeEnum value_ = global::UnitTest.Issues.TestProtos.NegativeEnum.NEGATIVE_ENUM_ZERO;
- public global::UnitTest.Issues.TestProtos.NegativeEnum Value {
- get { return value_; }
- set {
- pb::Freezable.CheckMutable(this);
- value_ = value;
- }
- }
- public const int ValuesFieldNumber = 2;
- private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.NegativeEnum> _repeated_values_codec
- = pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::UnitTest.Issues.TestProtos.NegativeEnum) x);private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> values_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum>();
- public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> Values {
- get { return values_; }
- }
- public const int PackedValuesFieldNumber = 3;
- private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.NegativeEnum> _repeated_packedValues_codec
- = pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::UnitTest.Issues.TestProtos.NegativeEnum) x);private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> packedValues_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum>();
- public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> PackedValues {
- get { return packedValues_; }
- }
- public override bool Equals(object other) {
- return Equals(other as NegativeEnumMessage);
- }
- public bool Equals(NegativeEnumMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Value != other.Value) return false;
- if(!values_.Equals(other.values_)) return false;
- if(!packedValues_.Equals(other.packedValues_)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Value != global::UnitTest.Issues.TestProtos.NegativeEnum.NEGATIVE_ENUM_ZERO) hash ^= Value.GetHashCode();
- hash ^= values_.GetHashCode();
- hash ^= packedValues_.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Value != global::UnitTest.Issues.TestProtos.NegativeEnum.NEGATIVE_ENUM_ZERO) {
- output.WriteRawTag(8);
- output.WriteEnum((int) Value);
- }
- values_.WriteTo(output, _repeated_values_codec);
- packedValues_.WriteTo(output, _repeated_packedValues_codec);
- }
- public int CalculateSize() {
- int size = 0;
- if (Value != global::UnitTest.Issues.TestProtos.NegativeEnum.NEGATIVE_ENUM_ZERO) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Value);
- }
- size += values_.CalculateSize(_repeated_values_codec);
- size += packedValues_.CalculateSize(_repeated_packedValues_codec);
- return size;
- }
- public void MergeFrom(NegativeEnumMessage other) {
- if (other == null) {
- return;
- }
- if (other.Value != global::UnitTest.Issues.TestProtos.NegativeEnum.NEGATIVE_ENUM_ZERO) {
- Value = other.Value;
- }
- values_.Add(other.values_);
- packedValues_.Add(other.packedValues_);
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- value_ = (global::UnitTest.Issues.TestProtos.NegativeEnum) input.ReadEnum();
- break;
- }
- case 18:
- case 16: {
- values_.AddEntriesFrom(input, _repeated_values_codec);
- break;
- }
- case 26:
- case 24: {
- packedValues_.AddEntriesFrom(input, _repeated_packedValues_codec);
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class DeprecatedChild : pb::IMessage<DeprecatedChild> {
- private static readonly pb::MessageParser<DeprecatedChild> _parser = new pb::MessageParser<DeprecatedChild>(() => new DeprecatedChild());
- public static pb::MessageParser<DeprecatedChild> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { };
- private static readonly uint[] _fieldTags = new uint[] { };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::UnitTest.Issues.TestProtos.UnittestIssues.Descriptor.MessageTypes[2]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::UnitTest.Issues.TestProtos.UnittestIssues.internal__static_unittest_issues_DeprecatedChild__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public DeprecatedChild() {
- OnConstruction();
- }
- partial void OnConstruction();
- public DeprecatedChild(DeprecatedChild other) : this() {
- }
- public DeprecatedChild Clone() {
- return new DeprecatedChild(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public override bool Equals(object other) {
- return Equals(other as DeprecatedChild);
- }
- public bool Equals(DeprecatedChild other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- }
- public int CalculateSize() {
- int size = 0;
- return size;
- }
- public void MergeFrom(DeprecatedChild other) {
- if (other == null) {
- return;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class DeprecatedFieldsMessage : pb::IMessage<DeprecatedFieldsMessage> {
- private static readonly pb::MessageParser<DeprecatedFieldsMessage> _parser = new pb::MessageParser<DeprecatedFieldsMessage>(() => new DeprecatedFieldsMessage());
- public static pb::MessageParser<DeprecatedFieldsMessage> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "EnumArray", "EnumValue", "MessageArray", "MessageValue", "PrimitiveArray", "PrimitiveValue" };
- private static readonly uint[] _fieldTags = new uint[] { 50, 40, 34, 26, 18, 8 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::UnitTest.Issues.TestProtos.UnittestIssues.Descriptor.MessageTypes[3]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::UnitTest.Issues.TestProtos.UnittestIssues.internal__static_unittest_issues_DeprecatedFieldsMessage__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public DeprecatedFieldsMessage() {
- OnConstruction();
- }
- partial void OnConstruction();
- public DeprecatedFieldsMessage(DeprecatedFieldsMessage other) : this() {
- primitiveValue_ = other.primitiveValue_;
- primitiveArray_ = other.primitiveArray_.Clone();
- MessageValue = other.messageValue_ != null ? other.MessageValue.Clone() : null;
- messageArray_ = other.messageArray_.Clone();
- enumValue_ = other.enumValue_;
- enumArray_ = other.enumArray_.Clone();
- }
- public DeprecatedFieldsMessage Clone() {
- return new DeprecatedFieldsMessage(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- primitiveArray_.Freeze();
- if (messageValue_ != null) MessageValue.Freeze();
- messageArray_.Freeze();
- enumArray_.Freeze();
- }
- public const int PrimitiveValueFieldNumber = 1;
- private int primitiveValue_;
- [global::System.ObsoleteAttribute()]
- public int PrimitiveValue {
- get { return primitiveValue_; }
- set {
- pb::Freezable.CheckMutable(this);
- primitiveValue_ = value;
- }
- }
- public const int PrimitiveArrayFieldNumber = 2;
- private static readonly pb::FieldCodec<int> _repeated_primitiveArray_codec
- = pb::FieldCodec.ForInt32(18);
- private readonly pbc::RepeatedField<int> primitiveArray_ = new pbc::RepeatedField<int>();
- [global::System.ObsoleteAttribute()]
- public pbc::RepeatedField<int> PrimitiveArray {
- get { return primitiveArray_; }
- }
- public const int MessageValueFieldNumber = 3;
- private global::UnitTest.Issues.TestProtos.DeprecatedChild messageValue_;
- [global::System.ObsoleteAttribute()]
- public global::UnitTest.Issues.TestProtos.DeprecatedChild MessageValue {
- get { return messageValue_; }
- set {
- pb::Freezable.CheckMutable(this);
- messageValue_ = value;
- }
- }
- public const int MessageArrayFieldNumber = 4;
- private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.DeprecatedChild> _repeated_messageArray_codec
- = pb::FieldCodec.ForMessage(34, global::UnitTest.Issues.TestProtos.DeprecatedChild.Parser);
- private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedChild> messageArray_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedChild>();
- [global::System.ObsoleteAttribute()]
- public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedChild> MessageArray {
- get { return messageArray_; }
- }
- public const int EnumValueFieldNumber = 5;
- private global::UnitTest.Issues.TestProtos.DeprecatedEnum enumValue_ = global::UnitTest.Issues.TestProtos.DeprecatedEnum.DEPRECATED_ZERO;
- [global::System.ObsoleteAttribute()]
- public global::UnitTest.Issues.TestProtos.DeprecatedEnum EnumValue {
- get { return enumValue_; }
- set {
- pb::Freezable.CheckMutable(this);
- enumValue_ = value;
- }
- }
- public const int EnumArrayFieldNumber = 6;
- private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.DeprecatedEnum> _repeated_enumArray_codec
- = pb::FieldCodec.ForEnum(50, x => (int) x, x => (global::UnitTest.Issues.TestProtos.DeprecatedEnum) x);private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedEnum> enumArray_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedEnum>();
- [global::System.ObsoleteAttribute()]
- public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedEnum> EnumArray {
- get { return enumArray_; }
- }
- public override bool Equals(object other) {
- return Equals(other as DeprecatedFieldsMessage);
- }
- public bool Equals(DeprecatedFieldsMessage other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (PrimitiveValue != other.PrimitiveValue) return false;
- if(!primitiveArray_.Equals(other.primitiveArray_)) return false;
- if (!object.Equals(MessageValue, other.MessageValue)) return false;
- if(!messageArray_.Equals(other.messageArray_)) return false;
- if (EnumValue != other.EnumValue) return false;
- if(!enumArray_.Equals(other.enumArray_)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (PrimitiveValue != 0) hash ^= PrimitiveValue.GetHashCode();
- hash ^= primitiveArray_.GetHashCode();
- if (messageValue_ != null) hash ^= MessageValue.GetHashCode();
- hash ^= messageArray_.GetHashCode();
- if (EnumValue != global::UnitTest.Issues.TestProtos.DeprecatedEnum.DEPRECATED_ZERO) hash ^= EnumValue.GetHashCode();
- hash ^= enumArray_.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (PrimitiveValue != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(PrimitiveValue);
- }
- primitiveArray_.WriteTo(output, _repeated_primitiveArray_codec);
- if (messageValue_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(MessageValue);
- }
- messageArray_.WriteTo(output, _repeated_messageArray_codec);
- if (EnumValue != global::UnitTest.Issues.TestProtos.DeprecatedEnum.DEPRECATED_ZERO) {
- output.WriteRawTag(40);
- output.WriteEnum((int) EnumValue);
- }
- enumArray_.WriteTo(output, _repeated_enumArray_codec);
- }
- public int CalculateSize() {
- int size = 0;
- if (PrimitiveValue != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrimitiveValue);
- }
- size += primitiveArray_.CalculateSize(_repeated_primitiveArray_codec);
- if (messageValue_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageValue);
- }
- size += messageArray_.CalculateSize(_repeated_messageArray_codec);
- if (EnumValue != global::UnitTest.Issues.TestProtos.DeprecatedEnum.DEPRECATED_ZERO) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumValue);
- }
- size += enumArray_.CalculateSize(_repeated_enumArray_codec);
- return size;
- }
- public void MergeFrom(DeprecatedFieldsMessage other) {
- if (other == null) {
- return;
- }
- if (other.PrimitiveValue != 0) {
- PrimitiveValue = other.PrimitiveValue;
- }
- primitiveArray_.Add(other.primitiveArray_);
- if (other.messageValue_ != null) {
- if (messageValue_ == null) {
- messageValue_ = new global::UnitTest.Issues.TestProtos.DeprecatedChild();
- }
- MessageValue.MergeFrom(other.MessageValue);
- }
- messageArray_.Add(other.messageArray_);
- if (other.EnumValue != global::UnitTest.Issues.TestProtos.DeprecatedEnum.DEPRECATED_ZERO) {
- EnumValue = other.EnumValue;
- }
- enumArray_.Add(other.enumArray_);
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- PrimitiveValue = input.ReadInt32();
- break;
- }
- case 18:
- case 16: {
- primitiveArray_.AddEntriesFrom(input, _repeated_primitiveArray_codec);
- break;
- }
- case 26: {
- if (messageValue_ == null) {
- messageValue_ = new global::UnitTest.Issues.TestProtos.DeprecatedChild();
- }
- input.ReadMessage(messageValue_);
- break;
- }
- case 34: {
- messageArray_.AddEntriesFrom(input, _repeated_messageArray_codec);
- break;
- }
- case 40: {
- enumValue_ = (global::UnitTest.Issues.TestProtos.DeprecatedEnum) input.ReadEnum();
- break;
- }
- case 50:
- case 48: {
- enumArray_.AddEntriesFrom(input, _repeated_enumArray_codec);
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public sealed partial class ItemField : pb::IMessage<ItemField> {
- private static readonly pb::MessageParser<ItemField> _parser = new pb::MessageParser<ItemField>(() => new ItemField());
- public static pb::MessageParser<ItemField> Parser { get { return _parser; } }
- private static readonly string[] _fieldNames = new string[] { "item" };
- private static readonly uint[] _fieldTags = new uint[] { 8 };
- public static pbd::MessageDescriptor Descriptor {
- get { return global::UnitTest.Issues.TestProtos.UnittestIssues.Descriptor.MessageTypes[4]; }
- }
- public pb::FieldAccess.FieldAccessorTable Fields {
- get { return global::UnitTest.Issues.TestProtos.UnittestIssues.internal__static_unittest_issues_ItemField__FieldAccessorTable; }
- }
- private bool _frozen = false;
- public bool IsFrozen { get { return _frozen; } }
- public ItemField() {
- OnConstruction();
- }
- partial void OnConstruction();
- public ItemField(ItemField other) : this() {
- item_ = other.item_;
- }
- public ItemField Clone() {
- return new ItemField(this);
- }
- public void Freeze() {
- if (IsFrozen) {
- return;
- }
- _frozen = true;
- }
- public const int ItemFieldNumber = 1;
- private int item_;
- public int Item {
- get { return item_; }
- set {
- pb::Freezable.CheckMutable(this);
- item_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as ItemField);
- }
- public bool Equals(ItemField other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Item != other.Item) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Item != 0) hash ^= Item.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.Default.Format(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Item != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Item);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Item != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Item);
- }
- return size;
- }
- public void MergeFrom(ItemField other) {
- if (other == null) {
- return;
- }
- if (other.Item != 0) {
- Item = other.Item;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while (input.ReadTag(out tag)) {
- switch(tag) {
- case 0:
- throw pb::InvalidProtocolBufferException.InvalidTag();
- default:
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- return;
- }
- break;
- case 8: {
- Item = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- #endregion
- }
- #endregion Designer generated code
|