| // Generated by ProtoGen, Version=2.4.1.555, Culture=neutral, PublicKeyToken=55f7125234beb589. DO NOT EDIT! | |
| #pragma warning disable 1591, 0612, 3021 | |
| #region Designer generated code | |
| using pb = global::Google.ProtocolBuffers; | |
| using pbc = global::Google.ProtocolBuffers.Collections; | |
| using pbd = global::Google.ProtocolBuffers.Descriptors; | |
| using scg = global::System.Collections.Generic; | |
| namespace Google.ProtocolBuffers.TestProtos { | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| public static partial class UnitTestExtrasProtoFile { | |
| #region Extension registration | |
| public static void RegisterAllExtensions(pb::ExtensionRegistry registry) { | |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedInt32Extension); | |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedInt64Extension); | |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedUint32Extension); | |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedUint64Extension); | |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedSint32Extension); | |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedSint64Extension); | |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedFixed32Extension); | |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedFixed64Extension); | |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedSfixed32Extension); | |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedSfixed64Extension); | |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedFloatExtension); | |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedDoubleExtension); | |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedBoolExtension); | |
| registry.Add(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedEnumExtension); | |
| } | |
| #endregion | |
| #region Extensions | |
| public const int UnpackedInt32ExtensionFieldNumber = 90; | |
| public static pb::GeneratedExtensionBase<scg::IList<int>> UnpackedInt32Extension; | |
| public const int UnpackedInt64ExtensionFieldNumber = 91; | |
| public static pb::GeneratedExtensionBase<scg::IList<long>> UnpackedInt64Extension; | |
| public const int UnpackedUint32ExtensionFieldNumber = 92; | |
| [global::System.CLSCompliant(false)] | |
| public static pb::GeneratedExtensionBase<scg::IList<uint>> UnpackedUint32Extension; | |
| public const int UnpackedUint64ExtensionFieldNumber = 93; | |
| [global::System.CLSCompliant(false)] | |
| public static pb::GeneratedExtensionBase<scg::IList<ulong>> UnpackedUint64Extension; | |
| public const int UnpackedSint32ExtensionFieldNumber = 94; | |
| public static pb::GeneratedExtensionBase<scg::IList<int>> UnpackedSint32Extension; | |
| public const int UnpackedSint64ExtensionFieldNumber = 95; | |
| public static pb::GeneratedExtensionBase<scg::IList<long>> UnpackedSint64Extension; | |
| public const int UnpackedFixed32ExtensionFieldNumber = 96; | |
| [global::System.CLSCompliant(false)] | |
| public static pb::GeneratedExtensionBase<scg::IList<uint>> UnpackedFixed32Extension; | |
| public const int UnpackedFixed64ExtensionFieldNumber = 97; | |
| [global::System.CLSCompliant(false)] | |
| public static pb::GeneratedExtensionBase<scg::IList<ulong>> UnpackedFixed64Extension; | |
| public const int UnpackedSfixed32ExtensionFieldNumber = 98; | |
| public static pb::GeneratedExtensionBase<scg::IList<int>> UnpackedSfixed32Extension; | |
| public const int UnpackedSfixed64ExtensionFieldNumber = 99; | |
| public static pb::GeneratedExtensionBase<scg::IList<long>> UnpackedSfixed64Extension; | |
| public const int UnpackedFloatExtensionFieldNumber = 100; | |
| public static pb::GeneratedExtensionBase<scg::IList<float>> UnpackedFloatExtension; | |
| public const int UnpackedDoubleExtensionFieldNumber = 101; | |
| public static pb::GeneratedExtensionBase<scg::IList<double>> UnpackedDoubleExtension; | |
| public const int UnpackedBoolExtensionFieldNumber = 102; | |
| public static pb::GeneratedExtensionBase<scg::IList<bool>> UnpackedBoolExtension; | |
| public const int UnpackedEnumExtensionFieldNumber = 103; | |
| public static pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.UnpackedExtensionsForeignEnum>> UnpackedEnumExtension; | |
| #endregion | |
| #region Static variables | |
| internal static pbd::MessageDescriptor internal__static_protobuf_unittest_extra_TestUnpackedExtensions__Descriptor; | |
| internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions, global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions.Builder> internal__static_protobuf_unittest_extra_TestUnpackedExtensions__FieldAccessorTable; | |
| #endregion | |
| #region Descriptor | |
| public static pbd::FileDescriptor Descriptor { | |
| get { return descriptor; } | |
| } | |
| private static pbd::FileDescriptor descriptor; | |
| static UnitTestExtrasProtoFile() { | |
| byte[] descriptorData = global::System.Convert.FromBase64String( | |
| string.Concat( | |
| "ChxleHRlc3QvdW5pdHRlc3RfZXh0cmFzLnByb3RvEhdwcm90b2J1Zl91bml0", | |
| "dGVzdF9leHRyYRokZ29vZ2xlL3Byb3RvYnVmL2NzaGFycF9vcHRpb25zLnBy", | |
| "b3RvIiIKFlRlc3RVbnBhY2tlZEV4dGVuc2lvbnMqCAgBEICAgIACKlIKHVVu", | |
| "cGFja2VkRXh0ZW5zaW9uc0ZvcmVpZ25FbnVtEg8KC0ZPUkVJR05fRk9PEAQS", | |
| "DwoLRk9SRUlHTl9CQVIQBRIPCgtGT1JFSUdOX0JBWhAGOlEKGHVucGFja2Vk", | |
| "X2ludDMyX2V4dGVuc2lvbhIvLnByb3RvYnVmX3VuaXR0ZXN0X2V4dHJhLlRl", | |
| "c3RVbnBhY2tlZEV4dGVuc2lvbnMYWiADKAU6UQoYdW5wYWNrZWRfaW50NjRf", | |
| "ZXh0ZW5zaW9uEi8ucHJvdG9idWZfdW5pdHRlc3RfZXh0cmEuVGVzdFVucGFj", | |
| "a2VkRXh0ZW5zaW9ucxhbIAMoAzpSChl1bnBhY2tlZF91aW50MzJfZXh0ZW5z", | |
| "aW9uEi8ucHJvdG9idWZfdW5pdHRlc3RfZXh0cmEuVGVzdFVucGFja2VkRXh0", | |
| "ZW5zaW9ucxhcIAMoDTpSChl1bnBhY2tlZF91aW50NjRfZXh0ZW5zaW9uEi8u", | |
| "cHJvdG9idWZfdW5pdHRlc3RfZXh0cmEuVGVzdFVucGFja2VkRXh0ZW5zaW9u", | |
| "cxhdIAMoBDpSChl1bnBhY2tlZF9zaW50MzJfZXh0ZW5zaW9uEi8ucHJvdG9i", | |
| "dWZfdW5pdHRlc3RfZXh0cmEuVGVzdFVucGFja2VkRXh0ZW5zaW9ucxheIAMo", | |
| "ETpSChl1bnBhY2tlZF9zaW50NjRfZXh0ZW5zaW9uEi8ucHJvdG9idWZfdW5p", | |
| "dHRlc3RfZXh0cmEuVGVzdFVucGFja2VkRXh0ZW5zaW9ucxhfIAMoEjpTChp1", | |
| "bnBhY2tlZF9maXhlZDMyX2V4dGVuc2lvbhIvLnByb3RvYnVmX3VuaXR0ZXN0", | |
| "X2V4dHJhLlRlc3RVbnBhY2tlZEV4dGVuc2lvbnMYYCADKAc6UwoadW5wYWNr", | |
| "ZWRfZml4ZWQ2NF9leHRlbnNpb24SLy5wcm90b2J1Zl91bml0dGVzdF9leHRy", | |
| "YS5UZXN0VW5wYWNrZWRFeHRlbnNpb25zGGEgAygGOlQKG3VucGFja2VkX3Nm", | |
| "aXhlZDMyX2V4dGVuc2lvbhIvLnByb3RvYnVmX3VuaXR0ZXN0X2V4dHJhLlRl", | |
| "c3RVbnBhY2tlZEV4dGVuc2lvbnMYYiADKA86VAobdW5wYWNrZWRfc2ZpeGVk", | |
| "NjRfZXh0ZW5zaW9uEi8ucHJvdG9idWZfdW5pdHRlc3RfZXh0cmEuVGVzdFVu", | |
| "cGFja2VkRXh0ZW5zaW9ucxhjIAMoEDpRChh1bnBhY2tlZF9mbG9hdF9leHRl", | |
| "bnNpb24SLy5wcm90b2J1Zl91bml0dGVzdF9leHRyYS5UZXN0VW5wYWNrZWRF", | |
| "eHRlbnNpb25zGGQgAygCOlIKGXVucGFja2VkX2RvdWJsZV9leHRlbnNpb24S", | |
| "Ly5wcm90b2J1Zl91bml0dGVzdF9leHRyYS5UZXN0VW5wYWNrZWRFeHRlbnNp", | |
| "b25zGGUgAygBOlAKF3VucGFja2VkX2Jvb2xfZXh0ZW5zaW9uEi8ucHJvdG9i", | |
| "dWZfdW5pdHRlc3RfZXh0cmEuVGVzdFVucGFja2VkRXh0ZW5zaW9ucxhmIAMo", | |
| "CDqIAQoXdW5wYWNrZWRfZW51bV9leHRlbnNpb24SLy5wcm90b2J1Zl91bml0", | |
| "dGVzdF9leHRyYS5UZXN0VW5wYWNrZWRFeHRlbnNpb25zGGcgAygOMjYucHJv", | |
| "dG9idWZfdW5pdHRlc3RfZXh0cmEuVW5wYWNrZWRFeHRlbnNpb25zRm9yZWln", | |
| "bkVudW1CVgoTY29tLmdvb2dsZS5wcm90b2J1ZsI+PgohR29vZ2xlLlByb3Rv", | |
| "Y29sQnVmZmVycy5UZXN0UHJvdG9zEhdVbml0VGVzdEV4dHJhc1Byb3RvRmls", | |
| "ZUgB")); | |
| pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) { | |
| descriptor = root; | |
| internal__static_protobuf_unittest_extra_TestUnpackedExtensions__Descriptor = Descriptor.MessageTypes[0]; | |
| internal__static_protobuf_unittest_extra_TestUnpackedExtensions__FieldAccessorTable = | |
| new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions, global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions.Builder>(internal__static_protobuf_unittest_extra_TestUnpackedExtensions__Descriptor, | |
| new string[] { }); | |
| global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedInt32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.Descriptor.Extensions[0]); | |
| global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedInt64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.Descriptor.Extensions[1]); | |
| global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedUint32Extension = pb::GeneratedRepeatExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.Descriptor.Extensions[2]); | |
| global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedUint64Extension = pb::GeneratedRepeatExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.Descriptor.Extensions[3]); | |
| global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedSint32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.Descriptor.Extensions[4]); | |
| global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedSint64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.Descriptor.Extensions[5]); | |
| global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedFixed32Extension = pb::GeneratedRepeatExtension<uint>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.Descriptor.Extensions[6]); | |
| global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedFixed64Extension = pb::GeneratedRepeatExtension<ulong>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.Descriptor.Extensions[7]); | |
| global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedSfixed32Extension = pb::GeneratedRepeatExtension<int>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.Descriptor.Extensions[8]); | |
| global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedSfixed64Extension = pb::GeneratedRepeatExtension<long>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.Descriptor.Extensions[9]); | |
| global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedFloatExtension = pb::GeneratedRepeatExtension<float>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.Descriptor.Extensions[10]); | |
| global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedDoubleExtension = pb::GeneratedRepeatExtension<double>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.Descriptor.Extensions[11]); | |
| global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedBoolExtension = pb::GeneratedRepeatExtension<bool>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.Descriptor.Extensions[12]); | |
| global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.UnpackedEnumExtension = pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.UnpackedExtensionsForeignEnum>.CreateInstance(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.Descriptor.Extensions[13]); | |
| pb::ExtensionRegistry registry = pb::ExtensionRegistry.CreateInstance(); | |
| RegisterAllExtensions(registry); | |
| global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.RegisterAllExtensions(registry); | |
| return registry; | |
| }; | |
| pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, | |
| new pbd::FileDescriptor[] { | |
| global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, | |
| }, assigner); | |
| } | |
| #endregion | |
| } | |
| #region Enums | |
| public enum UnpackedExtensionsForeignEnum { | |
| FOREIGN_FOO = 4, | |
| FOREIGN_BAR = 5, | |
| FOREIGN_BAZ = 6, | |
| } | |
| #endregion | |
| #region Messages | |
| [global::System.SerializableAttribute()] | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| public sealed partial class TestUnpackedExtensions : pb::ExtendableMessage<TestUnpackedExtensions, TestUnpackedExtensions.Builder> { | |
| private TestUnpackedExtensions() { } | |
| private static readonly TestUnpackedExtensions defaultInstance = new TestUnpackedExtensions().MakeReadOnly(); | |
| private static readonly string[] _testUnpackedExtensionsFieldNames = new string[] { }; | |
| private static readonly uint[] _testUnpackedExtensionsFieldTags = new uint[] { }; | |
| public static TestUnpackedExtensions DefaultInstance { | |
| get { return defaultInstance; } | |
| } | |
| public override TestUnpackedExtensions DefaultInstanceForType { | |
| get { return DefaultInstance; } | |
| } | |
| protected override TestUnpackedExtensions ThisMessage { | |
| get { return this; } | |
| } | |
| public static pbd::MessageDescriptor Descriptor { | |
| get { return global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.internal__static_protobuf_unittest_extra_TestUnpackedExtensions__Descriptor; } | |
| } | |
| protected override pb::FieldAccess.FieldAccessorTable<TestUnpackedExtensions, TestUnpackedExtensions.Builder> InternalFieldAccessors { | |
| get { return global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.internal__static_protobuf_unittest_extra_TestUnpackedExtensions__FieldAccessorTable; } | |
| } | |
| public override bool IsInitialized { | |
| get { | |
| if (!ExtensionsAreInitialized) return false; | |
| return true; | |
| } | |
| } | |
| public override void WriteTo(pb::ICodedOutputStream output) { | |
| CalcSerializedSize(); | |
| string[] field_names = _testUnpackedExtensionsFieldNames; | |
| pb::ExtendableMessage<TestUnpackedExtensions, TestUnpackedExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this); | |
| extensionWriter.WriteUntil(536870912, output); | |
| UnknownFields.WriteTo(output); | |
| } | |
| private int memoizedSerializedSize = -1; | |
| public override int SerializedSize { | |
| get { | |
| int size = memoizedSerializedSize; | |
| if (size != -1) return size; | |
| return CalcSerializedSize(); | |
| } | |
| } | |
| private int CalcSerializedSize() { | |
| int size = memoizedSerializedSize; | |
| if (size != -1) return size; | |
| size = 0; | |
| size += ExtensionsSerializedSize; | |
| size += UnknownFields.SerializedSize; | |
| memoizedSerializedSize = size; | |
| return size; | |
| } | |
| public static TestUnpackedExtensions ParseFrom(pb::ByteString data) { | |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | |
| } | |
| public static TestUnpackedExtensions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { | |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | |
| } | |
| public static TestUnpackedExtensions ParseFrom(byte[] data) { | |
| return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | |
| } | |
| public static TestUnpackedExtensions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { | |
| return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | |
| } | |
| public static TestUnpackedExtensions ParseFrom(global::System.IO.Stream input) { | |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | |
| } | |
| public static TestUnpackedExtensions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | |
| } | |
| public static TestUnpackedExtensions ParseDelimitedFrom(global::System.IO.Stream input) { | |
| return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); | |
| } | |
| public static TestUnpackedExtensions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | |
| return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); | |
| } | |
| public static TestUnpackedExtensions ParseFrom(pb::ICodedInputStream input) { | |
| return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | |
| } | |
| public static TestUnpackedExtensions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | |
| return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | |
| } | |
| private TestUnpackedExtensions MakeReadOnly() { | |
| return this; | |
| } | |
| public static Builder CreateBuilder() { return new Builder(); } | |
| public override Builder ToBuilder() { return CreateBuilder(this); } | |
| public override Builder CreateBuilderForType() { return new Builder(); } | |
| public static Builder CreateBuilder(TestUnpackedExtensions prototype) { | |
| return new Builder(prototype); | |
| } | |
| [global::System.SerializableAttribute()] | |
| [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| public sealed partial class Builder : pb::ExtendableBuilder<TestUnpackedExtensions, Builder> { | |
| protected override Builder ThisBuilder { | |
| get { return this; } | |
| } | |
| public Builder() { | |
| result = DefaultInstance; | |
| resultIsReadOnly = true; | |
| } | |
| internal Builder(TestUnpackedExtensions cloneFrom) { | |
| result = cloneFrom; | |
| resultIsReadOnly = true; | |
| } | |
| private bool resultIsReadOnly; | |
| private TestUnpackedExtensions result; | |
| private TestUnpackedExtensions PrepareBuilder() { | |
| if (resultIsReadOnly) { | |
| TestUnpackedExtensions original = result; | |
| result = new TestUnpackedExtensions(); | |
| resultIsReadOnly = false; | |
| MergeFrom(original); | |
| } | |
| return result; | |
| } | |
| public override bool IsInitialized { | |
| get { return result.IsInitialized; } | |
| } | |
| protected override TestUnpackedExtensions MessageBeingBuilt { | |
| get { return PrepareBuilder(); } | |
| } | |
| public override Builder Clear() { | |
| result = DefaultInstance; | |
| resultIsReadOnly = true; | |
| return this; | |
| } | |
| public override Builder Clone() { | |
| if (resultIsReadOnly) { | |
| return new Builder(result); | |
| } else { | |
| return new Builder().MergeFrom(result); | |
| } | |
| } | |
| public override pbd::MessageDescriptor DescriptorForType { | |
| get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions.Descriptor; } | |
| } | |
| public override TestUnpackedExtensions DefaultInstanceForType { | |
| get { return global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions.DefaultInstance; } | |
| } | |
| public override TestUnpackedExtensions BuildPartial() { | |
| if (resultIsReadOnly) { | |
| return result; | |
| } | |
| resultIsReadOnly = true; | |
| return result.MakeReadOnly(); | |
| } | |
| public override Builder MergeFrom(pb::IMessage other) { | |
| if (other is TestUnpackedExtensions) { | |
| return MergeFrom((TestUnpackedExtensions) other); | |
| } else { | |
| base.MergeFrom(other); | |
| return this; | |
| } | |
| } | |
| public override Builder MergeFrom(TestUnpackedExtensions other) { | |
| if (other == global::Google.ProtocolBuffers.TestProtos.TestUnpackedExtensions.DefaultInstance) return this; | |
| PrepareBuilder(); | |
| this.MergeExtensionFields(other); | |
| this.MergeUnknownFields(other.UnknownFields); | |
| return this; | |
| } | |
| public override Builder MergeFrom(pb::ICodedInputStream input) { | |
| return MergeFrom(input, pb::ExtensionRegistry.Empty); | |
| } | |
| public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | |
| PrepareBuilder(); | |
| pb::UnknownFieldSet.Builder unknownFields = null; | |
| uint tag; | |
| string field_name; | |
| while (input.ReadTag(out tag, out field_name)) { | |
| if(tag == 0 && field_name != null) { | |
| int field_ordinal = global::System.Array.BinarySearch(_testUnpackedExtensionsFieldNames, field_name, global::System.StringComparer.Ordinal); | |
| if(field_ordinal >= 0) | |
| tag = _testUnpackedExtensionsFieldTags[field_ordinal]; | |
| else { | |
| if (unknownFields == null) { | |
| unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); | |
| } | |
| ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); | |
| continue; | |
| } | |
| } | |
| switch (tag) { | |
| case 0: { | |
| throw pb::InvalidProtocolBufferException.InvalidTag(); | |
| } | |
| default: { | |
| if (pb::WireFormat.IsEndGroupTag(tag)) { | |
| if (unknownFields != null) { | |
| this.UnknownFields = unknownFields.Build(); | |
| } | |
| return this; | |
| } | |
| if (unknownFields == null) { | |
| unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); | |
| } | |
| ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); | |
| break; | |
| } | |
| } | |
| } | |
| if (unknownFields != null) { | |
| this.UnknownFields = unknownFields.Build(); | |
| } | |
| return this; | |
| } | |
| } | |
| static TestUnpackedExtensions() { | |
| object.ReferenceEquals(global::Google.ProtocolBuffers.TestProtos.UnitTestExtrasProtoFile.Descriptor, null); | |
| } | |
| } | |
| #endregion | |
| } | |
| #endregion Designer generated code |