csharptest | 50a89c1 | 2011-08-12 17:33:02 -0500 | [diff] [blame] | 1 | // Generated by ProtoGen, Version=2.3.0.277, Culture=neutral, PublicKeyToken=17b3b1f090c3ea48. DO NOT EDIT!
|
csharptest | 4a594ca | 2011-09-09 15:53:10 -0500 | [diff] [blame] | 2 | #pragma warning disable 1591, 0612
|
csharptest | c98edda | 2011-08-19 10:13:25 -0500 | [diff] [blame] | 3 | #region Designer generated code
|
csharptest | 50a89c1 | 2011-08-12 17:33:02 -0500 | [diff] [blame] | 4 |
|
| 5 | using pb = global::Google.ProtocolBuffers;
|
| 6 | using pbc = global::Google.ProtocolBuffers.Collections;
|
| 7 | using pbd = global::Google.ProtocolBuffers.Descriptors;
|
| 8 | using scg = global::System.Collections.Generic;
|
| 9 | namespace UnitTest.Issues.TestProtos {
|
| 10 |
|
| 11 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 12 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 13 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
| 14 | public static partial class UnitTestExtrasIssuesProtoFile {
|
| 15 |
|
| 16 | #region Extension registration
|
| 17 | public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
|
| 18 | }
|
| 19 | #endregion
|
| 20 | #region Static variables
|
| 21 | internal static pbd::MessageDescriptor internal__static_unittest_issues_A__Descriptor;
|
| 22 | internal static pb::FieldAccess.FieldAccessorTable<global::UnitTest.Issues.TestProtos.A, global::UnitTest.Issues.TestProtos.A.Builder> internal__static_unittest_issues_A__FieldAccessorTable;
|
| 23 | internal static pbd::MessageDescriptor internal__static_unittest_issues_B__Descriptor;
|
| 24 | internal static pb::FieldAccess.FieldAccessorTable<global::UnitTest.Issues.TestProtos.B, global::UnitTest.Issues.TestProtos.B.Builder> internal__static_unittest_issues_B__FieldAccessorTable;
|
| 25 | internal static pbd::MessageDescriptor internal__static_unittest_issues_AB__Descriptor;
|
| 26 | internal static pb::FieldAccess.FieldAccessorTable<global::UnitTest.Issues.TestProtos.AB, global::UnitTest.Issues.TestProtos.AB.Builder> internal__static_unittest_issues_AB__FieldAccessorTable;
|
csharptest | 1851676 | 2011-08-12 17:49:41 -0500 | [diff] [blame] | 27 | internal static pbd::MessageDescriptor internal__static_unittest_issues_NumberField__Descriptor;
|
| 28 | internal static pb::FieldAccess.FieldAccessorTable<global::UnitTest.Issues.TestProtos.NumberField, global::UnitTest.Issues.TestProtos.NumberField.Builder> internal__static_unittest_issues_NumberField__FieldAccessorTable;
|
csharptest | a105eac | 2011-09-09 13:39:54 -0500 | [diff] [blame] | 29 | internal static pbd::MessageDescriptor internal__static_unittest_issues_NegativeEnumMessage__Descriptor;
|
| 30 | internal static pb::FieldAccess.FieldAccessorTable<global::UnitTest.Issues.TestProtos.NegativeEnumMessage, global::UnitTest.Issues.TestProtos.NegativeEnumMessage.Builder> internal__static_unittest_issues_NegativeEnumMessage__FieldAccessorTable;
|
csharptest | 4a594ca | 2011-09-09 15:53:10 -0500 | [diff] [blame] | 31 | internal static pbd::MessageDescriptor internal__static_unittest_issues_DeprecatedChild__Descriptor;
|
| 32 | internal static pb::FieldAccess.FieldAccessorTable<global::UnitTest.Issues.TestProtos.DeprecatedChild, global::UnitTest.Issues.TestProtos.DeprecatedChild.Builder> internal__static_unittest_issues_DeprecatedChild__FieldAccessorTable;
|
| 33 | internal static pbd::MessageDescriptor internal__static_unittest_issues_DeprecatedFieldsMessage__Descriptor;
|
| 34 | internal static pb::FieldAccess.FieldAccessorTable<global::UnitTest.Issues.TestProtos.DeprecatedFieldsMessage, global::UnitTest.Issues.TestProtos.DeprecatedFieldsMessage.Builder> internal__static_unittest_issues_DeprecatedFieldsMessage__FieldAccessorTable;
|
csharptest | 50a89c1 | 2011-08-12 17:33:02 -0500 | [diff] [blame] | 35 | #endregion
|
| 36 | #region Descriptor
|
| 37 | public static pbd::FileDescriptor Descriptor {
|
| 38 | get { return descriptor; }
|
| 39 | }
|
| 40 | private static pbd::FileDescriptor descriptor;
|
| 41 |
|
| 42 | static UnitTestExtrasIssuesProtoFile() {
|
| 43 | byte[] descriptorData = global::System.Convert.FromBase64String(
|
| 44 | "ChxleHRlc3QvdW5pdHRlc3RfaXNzdWVzLnByb3RvEg91bml0dGVzdF9pc3N1" +
|
| 45 | "ZXMaJGdvb2dsZS9wcm90b2J1Zi9jc2hhcnBfb3B0aW9ucy5wcm90byIPCgFB" +
|
| 46 | "EgoKAl9BGAEgASgFIg8KAUISCgoCQl8YASABKAUiEQoCQUISCwoDYV9iGAEg" +
|
csharptest | a105eac | 2011-09-09 13:39:54 -0500 | [diff] [blame] | 47 | "ASgFIhoKC051bWJlckZpZWxkEgsKA18wMRgBIAEoBSKsAQoTTmVnYXRpdmVF" +
|
| 48 | "bnVtTWVzc2FnZRIsCgV2YWx1ZRgBIAEoDjIdLnVuaXR0ZXN0X2lzc3Vlcy5O" +
|
| 49 | "ZWdhdGl2ZUVudW0SLQoGdmFsdWVzGAIgAygOMh0udW5pdHRlc3RfaXNzdWVz" +
|
| 50 | "Lk5lZ2F0aXZlRW51bRI4Cg1wYWNrZWRfdmFsdWVzGAMgAygOMh0udW5pdHRl" +
|
csharptest | 026f2b4 | 2011-09-16 13:19:42 -0500 | [diff] [blame] | 51 | "c3RfaXNzdWVzLk5lZ2F0aXZlRW51bUICEAEiEQoPRGVwcmVjYXRlZENoaWxk" +
|
| 52 | "IrkCChdEZXByZWNhdGVkRmllbGRzTWVzc2FnZRIaCg5QcmltaXRpdmVWYWx1" +
|
| 53 | "ZRgBIAEoBUICGAESGgoOUHJpbWl0aXZlQXJyYXkYAiADKAVCAhgBEjoKDE1l" +
|
| 54 | "c3NhZ2VWYWx1ZRgDIAEoCzIgLnVuaXR0ZXN0X2lzc3Vlcy5EZXByZWNhdGVk" +
|
| 55 | "Q2hpbGRCAhgBEjoKDE1lc3NhZ2VBcnJheRgEIAMoCzIgLnVuaXR0ZXN0X2lz" +
|
| 56 | "c3Vlcy5EZXByZWNhdGVkQ2hpbGRCAhgBEjYKCUVudW1WYWx1ZRgFIAEoDjIf" +
|
| 57 | "LnVuaXR0ZXN0X2lzc3Vlcy5EZXByZWNhdGVkRW51bUICGAESNgoJRW51bUFy" +
|
| 58 | "cmF5GAYgAygOMh8udW5pdHRlc3RfaXNzdWVzLkRlcHJlY2F0ZWRFbnVtQgIY" +
|
| 59 | "ASpHCgxOZWdhdGl2ZUVudW0SFgoJRml2ZUJlbG93EPv//////////wESFQoI" +
|
| 60 | "TWludXNPbmUQ////////////ARIICgRaZXJvEAAqGQoORGVwcmVjYXRlZEVu" +
|
| 61 | "dW0SBwoDb25lEAFCQEgBwj47ChpVbml0VGVzdC5Jc3N1ZXMuVGVzdFByb3Rv" +
|
| 62 | "cxIdVW5pdFRlc3RFeHRyYXNJc3N1ZXNQcm90b0ZpbGU=");
|
csharptest | 50a89c1 | 2011-08-12 17:33:02 -0500 | [diff] [blame] | 63 | pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
|
| 64 | descriptor = root;
|
| 65 | internal__static_unittest_issues_A__Descriptor = Descriptor.MessageTypes[0];
|
| 66 | internal__static_unittest_issues_A__FieldAccessorTable =
|
| 67 | new pb::FieldAccess.FieldAccessorTable<global::UnitTest.Issues.TestProtos.A, global::UnitTest.Issues.TestProtos.A.Builder>(internal__static_unittest_issues_A__Descriptor,
|
| 68 | new string[] { "A_", });
|
| 69 | internal__static_unittest_issues_B__Descriptor = Descriptor.MessageTypes[1];
|
| 70 | internal__static_unittest_issues_B__FieldAccessorTable =
|
| 71 | new pb::FieldAccess.FieldAccessorTable<global::UnitTest.Issues.TestProtos.B, global::UnitTest.Issues.TestProtos.B.Builder>(internal__static_unittest_issues_B__Descriptor,
|
| 72 | new string[] { "B_", });
|
| 73 | internal__static_unittest_issues_AB__Descriptor = Descriptor.MessageTypes[2];
|
| 74 | internal__static_unittest_issues_AB__FieldAccessorTable =
|
| 75 | new pb::FieldAccess.FieldAccessorTable<global::UnitTest.Issues.TestProtos.AB, global::UnitTest.Issues.TestProtos.AB.Builder>(internal__static_unittest_issues_AB__Descriptor,
|
| 76 | new string[] { "AB_", });
|
csharptest | 1851676 | 2011-08-12 17:49:41 -0500 | [diff] [blame] | 77 | internal__static_unittest_issues_NumberField__Descriptor = Descriptor.MessageTypes[3];
|
| 78 | internal__static_unittest_issues_NumberField__FieldAccessorTable =
|
| 79 | new pb::FieldAccess.FieldAccessorTable<global::UnitTest.Issues.TestProtos.NumberField, global::UnitTest.Issues.TestProtos.NumberField.Builder>(internal__static_unittest_issues_NumberField__Descriptor,
|
| 80 | new string[] { "_01", });
|
csharptest | a105eac | 2011-09-09 13:39:54 -0500 | [diff] [blame] | 81 | internal__static_unittest_issues_NegativeEnumMessage__Descriptor = Descriptor.MessageTypes[4];
|
| 82 | internal__static_unittest_issues_NegativeEnumMessage__FieldAccessorTable =
|
| 83 | new pb::FieldAccess.FieldAccessorTable<global::UnitTest.Issues.TestProtos.NegativeEnumMessage, global::UnitTest.Issues.TestProtos.NegativeEnumMessage.Builder>(internal__static_unittest_issues_NegativeEnumMessage__Descriptor,
|
| 84 | new string[] { "Value", "Values", "PackedValues", });
|
csharptest | 026f2b4 | 2011-09-16 13:19:42 -0500 | [diff] [blame] | 85 | internal__static_unittest_issues_DeprecatedChild__Descriptor = Descriptor.MessageTypes[5];
|
csharptest | 4a594ca | 2011-09-09 15:53:10 -0500 | [diff] [blame] | 86 | internal__static_unittest_issues_DeprecatedChild__FieldAccessorTable =
|
| 87 | new pb::FieldAccess.FieldAccessorTable<global::UnitTest.Issues.TestProtos.DeprecatedChild, global::UnitTest.Issues.TestProtos.DeprecatedChild.Builder>(internal__static_unittest_issues_DeprecatedChild__Descriptor,
|
| 88 | new string[] { });
|
csharptest | 026f2b4 | 2011-09-16 13:19:42 -0500 | [diff] [blame] | 89 | internal__static_unittest_issues_DeprecatedFieldsMessage__Descriptor = Descriptor.MessageTypes[6];
|
csharptest | 4a594ca | 2011-09-09 15:53:10 -0500 | [diff] [blame] | 90 | internal__static_unittest_issues_DeprecatedFieldsMessage__FieldAccessorTable =
|
| 91 | new pb::FieldAccess.FieldAccessorTable<global::UnitTest.Issues.TestProtos.DeprecatedFieldsMessage, global::UnitTest.Issues.TestProtos.DeprecatedFieldsMessage.Builder>(internal__static_unittest_issues_DeprecatedFieldsMessage__Descriptor,
|
| 92 | new string[] { "PrimitiveValue", "PrimitiveArray", "MessageValue", "MessageArray", "EnumValue", "EnumArray", });
|
csharptest | 50a89c1 | 2011-08-12 17:33:02 -0500 | [diff] [blame] | 93 | pb::ExtensionRegistry registry = pb::ExtensionRegistry.CreateInstance();
|
| 94 | RegisterAllExtensions(registry);
|
| 95 | global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.RegisterAllExtensions(registry);
|
| 96 | return registry;
|
| 97 | };
|
| 98 | pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
|
| 99 | new pbd::FileDescriptor[] {
|
| 100 | global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor,
|
| 101 | }, assigner);
|
| 102 | }
|
| 103 | #endregion
|
| 104 |
|
| 105 | }
|
csharptest | a105eac | 2011-09-09 13:39:54 -0500 | [diff] [blame] | 106 | #region Enums
|
| 107 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 108 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
| 109 | public enum NegativeEnum {
|
| 110 | FiveBelow = -5,
|
| 111 | MinusOne = -1,
|
| 112 | Zero = 0,
|
| 113 | }
|
| 114 |
|
csharptest | 026f2b4 | 2011-09-16 13:19:42 -0500 | [diff] [blame] | 115 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 116 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
csharptest | 4a594ca | 2011-09-09 15:53:10 -0500 | [diff] [blame] | 117 | public enum DeprecatedEnum {
|
| 118 | one = 1,
|
| 119 | }
|
| 120 |
|
csharptest | a105eac | 2011-09-09 13:39:54 -0500 | [diff] [blame] | 121 | #endregion
|
| 122 |
|
csharptest | 50a89c1 | 2011-08-12 17:33:02 -0500 | [diff] [blame] | 123 | #region Messages
|
| 124 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 125 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 126 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
| 127 | public sealed partial class A : pb::GeneratedMessage<A, A.Builder> {
|
csharptest | 17fb8f2 | 2011-09-23 11:36:39 -0500 | [diff] [blame^] | 128 | private A() { }
|
csharptest | 50a89c1 | 2011-08-12 17:33:02 -0500 | [diff] [blame] | 129 | private static readonly A defaultInstance = new Builder().BuildPartial();
|
| 130 | private static readonly string[] _aFieldNames = new string[] { "_A" };
|
| 131 | private static readonly uint[] _aFieldTags = new uint[] { 8 };
|
| 132 | public static A DefaultInstance {
|
| 133 | get { return defaultInstance; }
|
| 134 | }
|
| 135 |
|
| 136 | public override A DefaultInstanceForType {
|
| 137 | get { return defaultInstance; }
|
| 138 | }
|
| 139 |
|
| 140 | protected override A ThisMessage {
|
| 141 | get { return this; }
|
| 142 | }
|
| 143 |
|
| 144 | public static pbd::MessageDescriptor Descriptor {
|
| 145 | get { return global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.internal__static_unittest_issues_A__Descriptor; }
|
| 146 | }
|
| 147 |
|
| 148 | protected override pb::FieldAccess.FieldAccessorTable<A, A.Builder> InternalFieldAccessors {
|
| 149 | get { return global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.internal__static_unittest_issues_A__FieldAccessorTable; }
|
| 150 | }
|
| 151 |
|
| 152 | public const int A_FieldNumber = 1;
|
| 153 | private bool hasA_;
|
| 154 | private int a_;
|
| 155 | public bool HasA_ {
|
| 156 | get { return hasA_; }
|
| 157 | }
|
csharptest | 50a89c1 | 2011-08-12 17:33:02 -0500 | [diff] [blame] | 158 | public int A_ {
|
| 159 | get { return a_; }
|
| 160 | }
|
| 161 |
|
| 162 | public override bool IsInitialized {
|
| 163 | get {
|
| 164 | return true;
|
| 165 | }
|
| 166 | }
|
| 167 |
|
| 168 | public override void WriteTo(pb::ICodedOutputStream output) {
|
| 169 | int size = SerializedSize;
|
| 170 | string[] field_names = _aFieldNames;
|
| 171 | if (hasA_) {
|
| 172 | output.WriteInt32(1, field_names[0], A_);
|
| 173 | }
|
| 174 | UnknownFields.WriteTo(output);
|
| 175 | }
|
| 176 |
|
| 177 | private int memoizedSerializedSize = -1;
|
| 178 | public override int SerializedSize {
|
| 179 | get {
|
| 180 | int size = memoizedSerializedSize;
|
| 181 | if (size != -1) return size;
|
| 182 |
|
| 183 | size = 0;
|
| 184 | if (hasA_) {
|
| 185 | size += pb::CodedOutputStream.ComputeInt32Size(1, A_);
|
| 186 | }
|
| 187 | size += UnknownFields.SerializedSize;
|
| 188 | memoizedSerializedSize = size;
|
| 189 | return size;
|
| 190 | }
|
| 191 | }
|
| 192 |
|
| 193 | public static A ParseFrom(pb::ByteString data) {
|
| 194 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 195 | }
|
| 196 | public static A ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 197 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 198 | }
|
| 199 | public static A ParseFrom(byte[] data) {
|
| 200 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 201 | }
|
| 202 | public static A ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 203 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 204 | }
|
| 205 | public static A ParseFrom(global::System.IO.Stream input) {
|
| 206 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 207 | }
|
| 208 | public static A ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 209 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 210 | }
|
| 211 | public static A ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 212 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 213 | }
|
| 214 | public static A ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 215 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 216 | }
|
| 217 | public static A ParseFrom(pb::ICodedInputStream input) {
|
| 218 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 219 | }
|
| 220 | public static A ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 221 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 222 | }
|
| 223 | public static Builder CreateBuilder() { return new Builder(); }
|
| 224 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 225 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 226 | public static Builder CreateBuilder(A prototype) {
|
| 227 | return (Builder) new Builder().MergeFrom(prototype);
|
| 228 | }
|
| 229 |
|
| 230 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 231 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 232 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
| 233 | public sealed partial class Builder : pb::GeneratedBuilder<A, Builder> {
|
| 234 | protected override Builder ThisBuilder {
|
| 235 | get { return this; }
|
| 236 | }
|
| 237 | public Builder() {}
|
| 238 |
|
| 239 | A result = new A();
|
| 240 |
|
| 241 | protected override A MessageBeingBuilt {
|
| 242 | get { return result; }
|
| 243 | }
|
| 244 |
|
| 245 | public override Builder Clear() {
|
| 246 | result = new A();
|
| 247 | return this;
|
| 248 | }
|
| 249 |
|
| 250 | public override Builder Clone() {
|
| 251 | return new Builder().MergeFrom(result);
|
| 252 | }
|
| 253 |
|
| 254 | public override pbd::MessageDescriptor DescriptorForType {
|
| 255 | get { return global::UnitTest.Issues.TestProtos.A.Descriptor; }
|
| 256 | }
|
| 257 |
|
| 258 | public override A DefaultInstanceForType {
|
| 259 | get { return global::UnitTest.Issues.TestProtos.A.DefaultInstance; }
|
| 260 | }
|
| 261 |
|
| 262 | public override A BuildPartial() {
|
| 263 | if (result == null) {
|
| 264 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 265 | }
|
| 266 | A returnMe = result;
|
| 267 | result = null;
|
| 268 | return returnMe;
|
| 269 | }
|
| 270 |
|
| 271 | public override Builder MergeFrom(pb::IMessage other) {
|
| 272 | if (other is A) {
|
| 273 | return MergeFrom((A) other);
|
| 274 | } else {
|
| 275 | base.MergeFrom(other);
|
| 276 | return this;
|
| 277 | }
|
| 278 | }
|
| 279 |
|
| 280 | public override Builder MergeFrom(A other) {
|
| 281 | if (other == global::UnitTest.Issues.TestProtos.A.DefaultInstance) return this;
|
| 282 | if (other.HasA_) {
|
| 283 | A_ = other.A_;
|
| 284 | }
|
| 285 | this.MergeUnknownFields(other.UnknownFields);
|
| 286 | return this;
|
| 287 | }
|
| 288 |
|
| 289 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
| 290 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 291 | }
|
| 292 |
|
| 293 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 294 | pb::UnknownFieldSet.Builder unknownFields = null;
|
| 295 | uint tag;
|
| 296 | string field_name;
|
| 297 | while (input.ReadTag(out tag, out field_name)) {
|
| 298 | if(tag == 0 && field_name != null) {
|
| 299 | int field_ordinal = global::System.Array.BinarySearch(_aFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 300 | if(field_ordinal >= 0)
|
| 301 | tag = _aFieldTags[field_ordinal];
|
| 302 | else {
|
| 303 | if (unknownFields == null) {
|
| 304 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 305 | }
|
| 306 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
|
| 307 | continue;
|
| 308 | }
|
| 309 | }
|
| 310 | switch (tag) {
|
| 311 | case 0: {
|
| 312 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
| 313 | }
|
| 314 | default: {
|
| 315 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 316 | if (unknownFields != null) {
|
| 317 | this.UnknownFields = unknownFields.Build();
|
| 318 | }
|
| 319 | return this;
|
| 320 | }
|
| 321 | if (unknownFields == null) {
|
| 322 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 323 | }
|
| 324 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
|
| 325 | break;
|
| 326 | }
|
| 327 | case 8: {
|
| 328 | result.hasA_ = input.ReadInt32(ref result.a_);
|
| 329 | break;
|
| 330 | }
|
| 331 | }
|
| 332 | }
|
| 333 |
|
| 334 | if (unknownFields != null) {
|
| 335 | this.UnknownFields = unknownFields.Build();
|
| 336 | }
|
| 337 | return this;
|
| 338 | }
|
| 339 |
|
| 340 |
|
| 341 | public bool HasA_ {
|
| 342 | get { return result.hasA_; }
|
| 343 | }
|
csharptest | 50a89c1 | 2011-08-12 17:33:02 -0500 | [diff] [blame] | 344 | public int A_ {
|
| 345 | get { return result.A_; }
|
| 346 | set { SetA_(value); }
|
| 347 | }
|
csharptest | 50a89c1 | 2011-08-12 17:33:02 -0500 | [diff] [blame] | 348 | public Builder SetA_(int value) {
|
| 349 | result.hasA_ = true;
|
| 350 | result.a_ = value;
|
| 351 | return this;
|
| 352 | }
|
| 353 | public Builder ClearA_() {
|
| 354 | result.hasA_ = false;
|
| 355 | result.a_ = 0;
|
| 356 | return this;
|
| 357 | }
|
| 358 | }
|
| 359 | static A() {
|
| 360 | object.ReferenceEquals(global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.Descriptor, null);
|
| 361 | }
|
| 362 | }
|
| 363 |
|
| 364 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 365 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 366 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
| 367 | public sealed partial class B : pb::GeneratedMessage<B, B.Builder> {
|
csharptest | 17fb8f2 | 2011-09-23 11:36:39 -0500 | [diff] [blame^] | 368 | private B() { }
|
csharptest | 50a89c1 | 2011-08-12 17:33:02 -0500 | [diff] [blame] | 369 | private static readonly B defaultInstance = new Builder().BuildPartial();
|
| 370 | private static readonly string[] _bFieldNames = new string[] { "B_" };
|
| 371 | private static readonly uint[] _bFieldTags = new uint[] { 8 };
|
| 372 | public static B DefaultInstance {
|
| 373 | get { return defaultInstance; }
|
| 374 | }
|
| 375 |
|
| 376 | public override B DefaultInstanceForType {
|
| 377 | get { return defaultInstance; }
|
| 378 | }
|
| 379 |
|
| 380 | protected override B ThisMessage {
|
| 381 | get { return this; }
|
| 382 | }
|
| 383 |
|
| 384 | public static pbd::MessageDescriptor Descriptor {
|
| 385 | get { return global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.internal__static_unittest_issues_B__Descriptor; }
|
| 386 | }
|
| 387 |
|
| 388 | protected override pb::FieldAccess.FieldAccessorTable<B, B.Builder> InternalFieldAccessors {
|
| 389 | get { return global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.internal__static_unittest_issues_B__FieldAccessorTable; }
|
| 390 | }
|
| 391 |
|
| 392 | public const int B_FieldNumber = 1;
|
| 393 | private bool hasB_;
|
| 394 | private int b_;
|
| 395 | public bool HasB_ {
|
| 396 | get { return hasB_; }
|
| 397 | }
|
| 398 | public int B_ {
|
| 399 | get { return b_; }
|
| 400 | }
|
| 401 |
|
| 402 | public override bool IsInitialized {
|
| 403 | get {
|
| 404 | return true;
|
| 405 | }
|
| 406 | }
|
| 407 |
|
| 408 | public override void WriteTo(pb::ICodedOutputStream output) {
|
| 409 | int size = SerializedSize;
|
| 410 | string[] field_names = _bFieldNames;
|
| 411 | if (hasB_) {
|
| 412 | output.WriteInt32(1, field_names[0], B_);
|
| 413 | }
|
| 414 | UnknownFields.WriteTo(output);
|
| 415 | }
|
| 416 |
|
| 417 | private int memoizedSerializedSize = -1;
|
| 418 | public override int SerializedSize {
|
| 419 | get {
|
| 420 | int size = memoizedSerializedSize;
|
| 421 | if (size != -1) return size;
|
| 422 |
|
| 423 | size = 0;
|
| 424 | if (hasB_) {
|
| 425 | size += pb::CodedOutputStream.ComputeInt32Size(1, B_);
|
| 426 | }
|
| 427 | size += UnknownFields.SerializedSize;
|
| 428 | memoizedSerializedSize = size;
|
| 429 | return size;
|
| 430 | }
|
| 431 | }
|
| 432 |
|
| 433 | public static B ParseFrom(pb::ByteString data) {
|
| 434 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 435 | }
|
| 436 | public static B ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 437 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 438 | }
|
| 439 | public static B ParseFrom(byte[] data) {
|
| 440 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 441 | }
|
| 442 | public static B ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 443 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 444 | }
|
| 445 | public static B ParseFrom(global::System.IO.Stream input) {
|
| 446 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 447 | }
|
| 448 | public static B ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 449 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 450 | }
|
| 451 | public static B ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 452 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 453 | }
|
| 454 | public static B ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 455 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 456 | }
|
| 457 | public static B ParseFrom(pb::ICodedInputStream input) {
|
| 458 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 459 | }
|
| 460 | public static B ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 461 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 462 | }
|
| 463 | public static Builder CreateBuilder() { return new Builder(); }
|
| 464 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 465 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 466 | public static Builder CreateBuilder(B prototype) {
|
| 467 | return (Builder) new Builder().MergeFrom(prototype);
|
| 468 | }
|
| 469 |
|
| 470 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 471 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 472 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
| 473 | public sealed partial class Builder : pb::GeneratedBuilder<B, Builder> {
|
| 474 | protected override Builder ThisBuilder {
|
| 475 | get { return this; }
|
| 476 | }
|
| 477 | public Builder() {}
|
| 478 |
|
| 479 | B result = new B();
|
| 480 |
|
| 481 | protected override B MessageBeingBuilt {
|
| 482 | get { return result; }
|
| 483 | }
|
| 484 |
|
| 485 | public override Builder Clear() {
|
| 486 | result = new B();
|
| 487 | return this;
|
| 488 | }
|
| 489 |
|
| 490 | public override Builder Clone() {
|
| 491 | return new Builder().MergeFrom(result);
|
| 492 | }
|
| 493 |
|
| 494 | public override pbd::MessageDescriptor DescriptorForType {
|
| 495 | get { return global::UnitTest.Issues.TestProtos.B.Descriptor; }
|
| 496 | }
|
| 497 |
|
| 498 | public override B DefaultInstanceForType {
|
| 499 | get { return global::UnitTest.Issues.TestProtos.B.DefaultInstance; }
|
| 500 | }
|
| 501 |
|
| 502 | public override B BuildPartial() {
|
| 503 | if (result == null) {
|
| 504 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 505 | }
|
| 506 | B returnMe = result;
|
| 507 | result = null;
|
| 508 | return returnMe;
|
| 509 | }
|
| 510 |
|
| 511 | public override Builder MergeFrom(pb::IMessage other) {
|
| 512 | if (other is B) {
|
| 513 | return MergeFrom((B) other);
|
| 514 | } else {
|
| 515 | base.MergeFrom(other);
|
| 516 | return this;
|
| 517 | }
|
| 518 | }
|
| 519 |
|
| 520 | public override Builder MergeFrom(B other) {
|
| 521 | if (other == global::UnitTest.Issues.TestProtos.B.DefaultInstance) return this;
|
| 522 | if (other.HasB_) {
|
| 523 | B_ = other.B_;
|
| 524 | }
|
| 525 | this.MergeUnknownFields(other.UnknownFields);
|
| 526 | return this;
|
| 527 | }
|
| 528 |
|
| 529 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
| 530 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 531 | }
|
| 532 |
|
| 533 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 534 | pb::UnknownFieldSet.Builder unknownFields = null;
|
| 535 | uint tag;
|
| 536 | string field_name;
|
| 537 | while (input.ReadTag(out tag, out field_name)) {
|
| 538 | if(tag == 0 && field_name != null) {
|
| 539 | int field_ordinal = global::System.Array.BinarySearch(_bFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 540 | if(field_ordinal >= 0)
|
| 541 | tag = _bFieldTags[field_ordinal];
|
| 542 | else {
|
| 543 | if (unknownFields == null) {
|
| 544 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 545 | }
|
| 546 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
|
| 547 | continue;
|
| 548 | }
|
| 549 | }
|
| 550 | switch (tag) {
|
| 551 | case 0: {
|
| 552 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
| 553 | }
|
| 554 | default: {
|
| 555 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 556 | if (unknownFields != null) {
|
| 557 | this.UnknownFields = unknownFields.Build();
|
| 558 | }
|
| 559 | return this;
|
| 560 | }
|
| 561 | if (unknownFields == null) {
|
| 562 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 563 | }
|
| 564 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
|
| 565 | break;
|
| 566 | }
|
| 567 | case 8: {
|
| 568 | result.hasB_ = input.ReadInt32(ref result.b_);
|
| 569 | break;
|
| 570 | }
|
| 571 | }
|
| 572 | }
|
| 573 |
|
| 574 | if (unknownFields != null) {
|
| 575 | this.UnknownFields = unknownFields.Build();
|
| 576 | }
|
| 577 | return this;
|
| 578 | }
|
| 579 |
|
| 580 |
|
| 581 | public bool HasB_ {
|
| 582 | get { return result.hasB_; }
|
| 583 | }
|
| 584 | public int B_ {
|
| 585 | get { return result.B_; }
|
| 586 | set { SetB_(value); }
|
| 587 | }
|
| 588 | public Builder SetB_(int value) {
|
| 589 | result.hasB_ = true;
|
| 590 | result.b_ = value;
|
| 591 | return this;
|
| 592 | }
|
| 593 | public Builder ClearB_() {
|
| 594 | result.hasB_ = false;
|
| 595 | result.b_ = 0;
|
| 596 | return this;
|
| 597 | }
|
| 598 | }
|
| 599 | static B() {
|
| 600 | object.ReferenceEquals(global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.Descriptor, null);
|
| 601 | }
|
| 602 | }
|
| 603 |
|
| 604 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 605 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 606 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
| 607 | public sealed partial class AB : pb::GeneratedMessage<AB, AB.Builder> {
|
csharptest | 17fb8f2 | 2011-09-23 11:36:39 -0500 | [diff] [blame^] | 608 | private AB() { }
|
csharptest | 50a89c1 | 2011-08-12 17:33:02 -0500 | [diff] [blame] | 609 | private static readonly AB defaultInstance = new Builder().BuildPartial();
|
| 610 | private static readonly string[] _aBFieldNames = new string[] { "a_b" };
|
| 611 | private static readonly uint[] _aBFieldTags = new uint[] { 8 };
|
| 612 | public static AB DefaultInstance {
|
| 613 | get { return defaultInstance; }
|
| 614 | }
|
| 615 |
|
| 616 | public override AB DefaultInstanceForType {
|
| 617 | get { return defaultInstance; }
|
| 618 | }
|
| 619 |
|
| 620 | protected override AB ThisMessage {
|
| 621 | get { return this; }
|
| 622 | }
|
| 623 |
|
| 624 | public static pbd::MessageDescriptor Descriptor {
|
| 625 | get { return global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.internal__static_unittest_issues_AB__Descriptor; }
|
| 626 | }
|
| 627 |
|
| 628 | protected override pb::FieldAccess.FieldAccessorTable<AB, AB.Builder> InternalFieldAccessors {
|
| 629 | get { return global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.internal__static_unittest_issues_AB__FieldAccessorTable; }
|
| 630 | }
|
| 631 |
|
| 632 | public const int AB_FieldNumber = 1;
|
| 633 | private bool hasAB_;
|
| 634 | private int aB_;
|
| 635 | public bool HasAB_ {
|
| 636 | get { return hasAB_; }
|
| 637 | }
|
| 638 | public int AB_ {
|
| 639 | get { return aB_; }
|
| 640 | }
|
| 641 |
|
| 642 | public override bool IsInitialized {
|
| 643 | get {
|
| 644 | return true;
|
| 645 | }
|
| 646 | }
|
| 647 |
|
| 648 | public override void WriteTo(pb::ICodedOutputStream output) {
|
| 649 | int size = SerializedSize;
|
| 650 | string[] field_names = _aBFieldNames;
|
| 651 | if (hasAB_) {
|
| 652 | output.WriteInt32(1, field_names[0], AB_);
|
| 653 | }
|
| 654 | UnknownFields.WriteTo(output);
|
| 655 | }
|
| 656 |
|
| 657 | private int memoizedSerializedSize = -1;
|
| 658 | public override int SerializedSize {
|
| 659 | get {
|
| 660 | int size = memoizedSerializedSize;
|
| 661 | if (size != -1) return size;
|
| 662 |
|
| 663 | size = 0;
|
| 664 | if (hasAB_) {
|
| 665 | size += pb::CodedOutputStream.ComputeInt32Size(1, AB_);
|
| 666 | }
|
| 667 | size += UnknownFields.SerializedSize;
|
| 668 | memoizedSerializedSize = size;
|
| 669 | return size;
|
| 670 | }
|
| 671 | }
|
| 672 |
|
| 673 | public static AB ParseFrom(pb::ByteString data) {
|
| 674 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 675 | }
|
| 676 | public static AB ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 677 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 678 | }
|
| 679 | public static AB ParseFrom(byte[] data) {
|
| 680 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 681 | }
|
| 682 | public static AB ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 683 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 684 | }
|
| 685 | public static AB ParseFrom(global::System.IO.Stream input) {
|
| 686 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 687 | }
|
| 688 | public static AB ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 689 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 690 | }
|
| 691 | public static AB ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 692 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 693 | }
|
| 694 | public static AB ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 695 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 696 | }
|
| 697 | public static AB ParseFrom(pb::ICodedInputStream input) {
|
| 698 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 699 | }
|
| 700 | public static AB ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 701 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 702 | }
|
| 703 | public static Builder CreateBuilder() { return new Builder(); }
|
| 704 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 705 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 706 | public static Builder CreateBuilder(AB prototype) {
|
| 707 | return (Builder) new Builder().MergeFrom(prototype);
|
| 708 | }
|
| 709 |
|
| 710 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 711 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 712 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
| 713 | public sealed partial class Builder : pb::GeneratedBuilder<AB, Builder> {
|
| 714 | protected override Builder ThisBuilder {
|
| 715 | get { return this; }
|
| 716 | }
|
| 717 | public Builder() {}
|
| 718 |
|
| 719 | AB result = new AB();
|
| 720 |
|
| 721 | protected override AB MessageBeingBuilt {
|
| 722 | get { return result; }
|
| 723 | }
|
| 724 |
|
| 725 | public override Builder Clear() {
|
| 726 | result = new AB();
|
| 727 | return this;
|
| 728 | }
|
| 729 |
|
| 730 | public override Builder Clone() {
|
| 731 | return new Builder().MergeFrom(result);
|
| 732 | }
|
| 733 |
|
| 734 | public override pbd::MessageDescriptor DescriptorForType {
|
| 735 | get { return global::UnitTest.Issues.TestProtos.AB.Descriptor; }
|
| 736 | }
|
| 737 |
|
| 738 | public override AB DefaultInstanceForType {
|
| 739 | get { return global::UnitTest.Issues.TestProtos.AB.DefaultInstance; }
|
| 740 | }
|
| 741 |
|
| 742 | public override AB BuildPartial() {
|
| 743 | if (result == null) {
|
| 744 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 745 | }
|
| 746 | AB returnMe = result;
|
| 747 | result = null;
|
| 748 | return returnMe;
|
| 749 | }
|
| 750 |
|
| 751 | public override Builder MergeFrom(pb::IMessage other) {
|
| 752 | if (other is AB) {
|
| 753 | return MergeFrom((AB) other);
|
| 754 | } else {
|
| 755 | base.MergeFrom(other);
|
| 756 | return this;
|
| 757 | }
|
| 758 | }
|
| 759 |
|
| 760 | public override Builder MergeFrom(AB other) {
|
| 761 | if (other == global::UnitTest.Issues.TestProtos.AB.DefaultInstance) return this;
|
| 762 | if (other.HasAB_) {
|
| 763 | AB_ = other.AB_;
|
| 764 | }
|
| 765 | this.MergeUnknownFields(other.UnknownFields);
|
| 766 | return this;
|
| 767 | }
|
| 768 |
|
| 769 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
| 770 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 771 | }
|
| 772 |
|
| 773 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 774 | pb::UnknownFieldSet.Builder unknownFields = null;
|
| 775 | uint tag;
|
| 776 | string field_name;
|
| 777 | while (input.ReadTag(out tag, out field_name)) {
|
| 778 | if(tag == 0 && field_name != null) {
|
| 779 | int field_ordinal = global::System.Array.BinarySearch(_aBFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 780 | if(field_ordinal >= 0)
|
| 781 | tag = _aBFieldTags[field_ordinal];
|
| 782 | else {
|
| 783 | if (unknownFields == null) {
|
| 784 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 785 | }
|
| 786 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
|
| 787 | continue;
|
| 788 | }
|
| 789 | }
|
| 790 | switch (tag) {
|
| 791 | case 0: {
|
| 792 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
| 793 | }
|
| 794 | default: {
|
| 795 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 796 | if (unknownFields != null) {
|
| 797 | this.UnknownFields = unknownFields.Build();
|
| 798 | }
|
| 799 | return this;
|
| 800 | }
|
| 801 | if (unknownFields == null) {
|
| 802 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 803 | }
|
| 804 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
|
| 805 | break;
|
| 806 | }
|
| 807 | case 8: {
|
| 808 | result.hasAB_ = input.ReadInt32(ref result.aB_);
|
| 809 | break;
|
| 810 | }
|
| 811 | }
|
| 812 | }
|
| 813 |
|
| 814 | if (unknownFields != null) {
|
| 815 | this.UnknownFields = unknownFields.Build();
|
| 816 | }
|
| 817 | return this;
|
| 818 | }
|
| 819 |
|
| 820 |
|
| 821 | public bool HasAB_ {
|
| 822 | get { return result.hasAB_; }
|
| 823 | }
|
| 824 | public int AB_ {
|
| 825 | get { return result.AB_; }
|
| 826 | set { SetAB_(value); }
|
| 827 | }
|
| 828 | public Builder SetAB_(int value) {
|
| 829 | result.hasAB_ = true;
|
| 830 | result.aB_ = value;
|
| 831 | return this;
|
| 832 | }
|
| 833 | public Builder ClearAB_() {
|
| 834 | result.hasAB_ = false;
|
| 835 | result.aB_ = 0;
|
| 836 | return this;
|
| 837 | }
|
| 838 | }
|
| 839 | static AB() {
|
| 840 | object.ReferenceEquals(global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.Descriptor, null);
|
| 841 | }
|
| 842 | }
|
| 843 |
|
csharptest | 1851676 | 2011-08-12 17:49:41 -0500 | [diff] [blame] | 844 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 845 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 846 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
| 847 | public sealed partial class NumberField : pb::GeneratedMessage<NumberField, NumberField.Builder> {
|
csharptest | 17fb8f2 | 2011-09-23 11:36:39 -0500 | [diff] [blame^] | 848 | private NumberField() { }
|
csharptest | 1851676 | 2011-08-12 17:49:41 -0500 | [diff] [blame] | 849 | private static readonly NumberField defaultInstance = new Builder().BuildPartial();
|
| 850 | private static readonly string[] _numberFieldFieldNames = new string[] { "_01" };
|
| 851 | private static readonly uint[] _numberFieldFieldTags = new uint[] { 8 };
|
| 852 | public static NumberField DefaultInstance {
|
| 853 | get { return defaultInstance; }
|
| 854 | }
|
| 855 |
|
| 856 | public override NumberField DefaultInstanceForType {
|
| 857 | get { return defaultInstance; }
|
| 858 | }
|
| 859 |
|
| 860 | protected override NumberField ThisMessage {
|
| 861 | get { return this; }
|
| 862 | }
|
| 863 |
|
| 864 | public static pbd::MessageDescriptor Descriptor {
|
| 865 | get { return global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.internal__static_unittest_issues_NumberField__Descriptor; }
|
| 866 | }
|
| 867 |
|
| 868 | protected override pb::FieldAccess.FieldAccessorTable<NumberField, NumberField.Builder> InternalFieldAccessors {
|
| 869 | get { return global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.internal__static_unittest_issues_NumberField__FieldAccessorTable; }
|
| 870 | }
|
| 871 |
|
| 872 | [global::System.CLSCompliant(false)]
|
| 873 | public const int _01FieldNumber = 1;
|
| 874 | private bool has_01;
|
| 875 | private int _01_;
|
| 876 | public bool Has_01 {
|
| 877 | get { return has_01; }
|
| 878 | }
|
| 879 | [global::System.CLSCompliant(false)]
|
| 880 | public int _01 {
|
| 881 | get { return _01_; }
|
| 882 | }
|
| 883 |
|
| 884 | public override bool IsInitialized {
|
| 885 | get {
|
| 886 | return true;
|
| 887 | }
|
| 888 | }
|
| 889 |
|
| 890 | public override void WriteTo(pb::ICodedOutputStream output) {
|
| 891 | int size = SerializedSize;
|
| 892 | string[] field_names = _numberFieldFieldNames;
|
| 893 | if (has_01) {
|
| 894 | output.WriteInt32(1, field_names[0], _01);
|
| 895 | }
|
| 896 | UnknownFields.WriteTo(output);
|
| 897 | }
|
| 898 |
|
| 899 | private int memoizedSerializedSize = -1;
|
| 900 | public override int SerializedSize {
|
| 901 | get {
|
| 902 | int size = memoizedSerializedSize;
|
| 903 | if (size != -1) return size;
|
| 904 |
|
| 905 | size = 0;
|
| 906 | if (has_01) {
|
| 907 | size += pb::CodedOutputStream.ComputeInt32Size(1, _01);
|
| 908 | }
|
| 909 | size += UnknownFields.SerializedSize;
|
| 910 | memoizedSerializedSize = size;
|
| 911 | return size;
|
| 912 | }
|
| 913 | }
|
| 914 |
|
| 915 | public static NumberField ParseFrom(pb::ByteString data) {
|
| 916 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 917 | }
|
| 918 | public static NumberField ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 919 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 920 | }
|
| 921 | public static NumberField ParseFrom(byte[] data) {
|
| 922 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 923 | }
|
| 924 | public static NumberField ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 925 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 926 | }
|
| 927 | public static NumberField ParseFrom(global::System.IO.Stream input) {
|
| 928 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 929 | }
|
| 930 | public static NumberField ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 931 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 932 | }
|
| 933 | public static NumberField ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 934 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 935 | }
|
| 936 | public static NumberField ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 937 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 938 | }
|
| 939 | public static NumberField ParseFrom(pb::ICodedInputStream input) {
|
| 940 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 941 | }
|
| 942 | public static NumberField ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 943 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 944 | }
|
| 945 | public static Builder CreateBuilder() { return new Builder(); }
|
| 946 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 947 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 948 | public static Builder CreateBuilder(NumberField prototype) {
|
| 949 | return (Builder) new Builder().MergeFrom(prototype);
|
| 950 | }
|
| 951 |
|
| 952 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 953 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 954 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
| 955 | public sealed partial class Builder : pb::GeneratedBuilder<NumberField, Builder> {
|
| 956 | protected override Builder ThisBuilder {
|
| 957 | get { return this; }
|
| 958 | }
|
| 959 | public Builder() {}
|
| 960 |
|
| 961 | NumberField result = new NumberField();
|
| 962 |
|
| 963 | protected override NumberField MessageBeingBuilt {
|
| 964 | get { return result; }
|
| 965 | }
|
| 966 |
|
| 967 | public override Builder Clear() {
|
| 968 | result = new NumberField();
|
| 969 | return this;
|
| 970 | }
|
| 971 |
|
| 972 | public override Builder Clone() {
|
| 973 | return new Builder().MergeFrom(result);
|
| 974 | }
|
| 975 |
|
| 976 | public override pbd::MessageDescriptor DescriptorForType {
|
| 977 | get { return global::UnitTest.Issues.TestProtos.NumberField.Descriptor; }
|
| 978 | }
|
| 979 |
|
| 980 | public override NumberField DefaultInstanceForType {
|
| 981 | get { return global::UnitTest.Issues.TestProtos.NumberField.DefaultInstance; }
|
| 982 | }
|
| 983 |
|
| 984 | public override NumberField BuildPartial() {
|
| 985 | if (result == null) {
|
| 986 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 987 | }
|
| 988 | NumberField returnMe = result;
|
| 989 | result = null;
|
| 990 | return returnMe;
|
| 991 | }
|
| 992 |
|
| 993 | public override Builder MergeFrom(pb::IMessage other) {
|
| 994 | if (other is NumberField) {
|
| 995 | return MergeFrom((NumberField) other);
|
| 996 | } else {
|
| 997 | base.MergeFrom(other);
|
| 998 | return this;
|
| 999 | }
|
| 1000 | }
|
| 1001 |
|
| 1002 | public override Builder MergeFrom(NumberField other) {
|
| 1003 | if (other == global::UnitTest.Issues.TestProtos.NumberField.DefaultInstance) return this;
|
| 1004 | if (other.Has_01) {
|
| 1005 | _01 = other._01;
|
| 1006 | }
|
| 1007 | this.MergeUnknownFields(other.UnknownFields);
|
| 1008 | return this;
|
| 1009 | }
|
| 1010 |
|
| 1011 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
| 1012 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 1013 | }
|
| 1014 |
|
| 1015 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1016 | pb::UnknownFieldSet.Builder unknownFields = null;
|
| 1017 | uint tag;
|
| 1018 | string field_name;
|
| 1019 | while (input.ReadTag(out tag, out field_name)) {
|
| 1020 | if(tag == 0 && field_name != null) {
|
| 1021 | int field_ordinal = global::System.Array.BinarySearch(_numberFieldFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 1022 | if(field_ordinal >= 0)
|
| 1023 | tag = _numberFieldFieldTags[field_ordinal];
|
| 1024 | else {
|
| 1025 | if (unknownFields == null) {
|
| 1026 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 1027 | }
|
| 1028 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
|
| 1029 | continue;
|
| 1030 | }
|
| 1031 | }
|
| 1032 | switch (tag) {
|
| 1033 | case 0: {
|
| 1034 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
| 1035 | }
|
| 1036 | default: {
|
| 1037 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 1038 | if (unknownFields != null) {
|
| 1039 | this.UnknownFields = unknownFields.Build();
|
| 1040 | }
|
| 1041 | return this;
|
| 1042 | }
|
| 1043 | if (unknownFields == null) {
|
| 1044 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 1045 | }
|
| 1046 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
|
| 1047 | break;
|
| 1048 | }
|
| 1049 | case 8: {
|
| 1050 | result.has_01 = input.ReadInt32(ref result._01_);
|
| 1051 | break;
|
| 1052 | }
|
| 1053 | }
|
| 1054 | }
|
| 1055 |
|
| 1056 | if (unknownFields != null) {
|
| 1057 | this.UnknownFields = unknownFields.Build();
|
| 1058 | }
|
| 1059 | return this;
|
| 1060 | }
|
| 1061 |
|
| 1062 |
|
| 1063 | public bool Has_01 {
|
| 1064 | get { return result.has_01; }
|
| 1065 | }
|
| 1066 | [global::System.CLSCompliant(false)]
|
| 1067 | public int _01 {
|
| 1068 | get { return result._01; }
|
| 1069 | set { Set_01(value); }
|
| 1070 | }
|
| 1071 | [global::System.CLSCompliant(false)]
|
| 1072 | public Builder Set_01(int value) {
|
| 1073 | result.has_01 = true;
|
| 1074 | result._01_ = value;
|
| 1075 | return this;
|
| 1076 | }
|
| 1077 | public Builder Clear_01() {
|
| 1078 | result.has_01 = false;
|
| 1079 | result._01_ = 0;
|
| 1080 | return this;
|
| 1081 | }
|
| 1082 | }
|
| 1083 | static NumberField() {
|
| 1084 | object.ReferenceEquals(global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.Descriptor, null);
|
| 1085 | }
|
| 1086 | }
|
| 1087 |
|
csharptest | a105eac | 2011-09-09 13:39:54 -0500 | [diff] [blame] | 1088 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1089 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1090 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
| 1091 | public sealed partial class NegativeEnumMessage : pb::GeneratedMessage<NegativeEnumMessage, NegativeEnumMessage.Builder> {
|
csharptest | 17fb8f2 | 2011-09-23 11:36:39 -0500 | [diff] [blame^] | 1092 | private NegativeEnumMessage() { }
|
csharptest | a105eac | 2011-09-09 13:39:54 -0500 | [diff] [blame] | 1093 | private static readonly NegativeEnumMessage defaultInstance = new Builder().BuildPartial();
|
| 1094 | private static readonly string[] _negativeEnumMessageFieldNames = new string[] { "packed_values", "value", "values" };
|
| 1095 | private static readonly uint[] _negativeEnumMessageFieldTags = new uint[] { 26, 8, 16 };
|
| 1096 | public static NegativeEnumMessage DefaultInstance {
|
| 1097 | get { return defaultInstance; }
|
| 1098 | }
|
| 1099 |
|
| 1100 | public override NegativeEnumMessage DefaultInstanceForType {
|
| 1101 | get { return defaultInstance; }
|
| 1102 | }
|
| 1103 |
|
| 1104 | protected override NegativeEnumMessage ThisMessage {
|
| 1105 | get { return this; }
|
| 1106 | }
|
| 1107 |
|
| 1108 | public static pbd::MessageDescriptor Descriptor {
|
| 1109 | get { return global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.internal__static_unittest_issues_NegativeEnumMessage__Descriptor; }
|
| 1110 | }
|
| 1111 |
|
| 1112 | protected override pb::FieldAccess.FieldAccessorTable<NegativeEnumMessage, NegativeEnumMessage.Builder> InternalFieldAccessors {
|
| 1113 | get { return global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.internal__static_unittest_issues_NegativeEnumMessage__FieldAccessorTable; }
|
| 1114 | }
|
| 1115 |
|
| 1116 | public const int ValueFieldNumber = 1;
|
| 1117 | private bool hasValue;
|
| 1118 | private global::UnitTest.Issues.TestProtos.NegativeEnum value_ = global::UnitTest.Issues.TestProtos.NegativeEnum.FiveBelow;
|
| 1119 | public bool HasValue {
|
| 1120 | get { return hasValue; }
|
| 1121 | }
|
| 1122 | public global::UnitTest.Issues.TestProtos.NegativeEnum Value {
|
| 1123 | get { return value_; }
|
| 1124 | }
|
| 1125 |
|
| 1126 | public const int ValuesFieldNumber = 2;
|
| 1127 | private pbc::PopsicleList<global::UnitTest.Issues.TestProtos.NegativeEnum> values_ = new pbc::PopsicleList<global::UnitTest.Issues.TestProtos.NegativeEnum>();
|
| 1128 | public scg::IList<global::UnitTest.Issues.TestProtos.NegativeEnum> ValuesList {
|
| 1129 | get { return pbc::Lists.AsReadOnly(values_); }
|
| 1130 | }
|
| 1131 | public int ValuesCount {
|
| 1132 | get { return values_.Count; }
|
| 1133 | }
|
| 1134 | public global::UnitTest.Issues.TestProtos.NegativeEnum GetValues(int index) {
|
| 1135 | return values_[index];
|
| 1136 | }
|
| 1137 |
|
| 1138 | public const int PackedValuesFieldNumber = 3;
|
| 1139 | private int packedValuesMemoizedSerializedSize;
|
| 1140 | private pbc::PopsicleList<global::UnitTest.Issues.TestProtos.NegativeEnum> packedValues_ = new pbc::PopsicleList<global::UnitTest.Issues.TestProtos.NegativeEnum>();
|
| 1141 | public scg::IList<global::UnitTest.Issues.TestProtos.NegativeEnum> PackedValuesList {
|
| 1142 | get { return pbc::Lists.AsReadOnly(packedValues_); }
|
| 1143 | }
|
| 1144 | public int PackedValuesCount {
|
| 1145 | get { return packedValues_.Count; }
|
| 1146 | }
|
| 1147 | public global::UnitTest.Issues.TestProtos.NegativeEnum GetPackedValues(int index) {
|
| 1148 | return packedValues_[index];
|
| 1149 | }
|
| 1150 |
|
| 1151 | public override bool IsInitialized {
|
| 1152 | get {
|
| 1153 | return true;
|
| 1154 | }
|
| 1155 | }
|
| 1156 |
|
| 1157 | public override void WriteTo(pb::ICodedOutputStream output) {
|
| 1158 | int size = SerializedSize;
|
| 1159 | string[] field_names = _negativeEnumMessageFieldNames;
|
| 1160 | if (hasValue) {
|
| 1161 | output.WriteEnum(1, field_names[1], (int) Value, Value);
|
| 1162 | }
|
| 1163 | if (values_.Count > 0) {
|
| 1164 | output.WriteEnumArray(2, field_names[2], values_);
|
| 1165 | }
|
| 1166 | if (packedValues_.Count > 0) {
|
| 1167 | output.WritePackedEnumArray(3, field_names[0], packedValuesMemoizedSerializedSize, packedValues_);
|
| 1168 | }
|
| 1169 | UnknownFields.WriteTo(output);
|
| 1170 | }
|
| 1171 |
|
| 1172 | private int memoizedSerializedSize = -1;
|
| 1173 | public override int SerializedSize {
|
| 1174 | get {
|
| 1175 | int size = memoizedSerializedSize;
|
| 1176 | if (size != -1) return size;
|
| 1177 |
|
| 1178 | size = 0;
|
| 1179 | if (hasValue) {
|
| 1180 | size += pb::CodedOutputStream.ComputeEnumSize(1, (int) Value);
|
| 1181 | }
|
| 1182 | {
|
| 1183 | int dataSize = 0;
|
| 1184 | if (values_.Count > 0) {
|
| 1185 | foreach (global::UnitTest.Issues.TestProtos.NegativeEnum element in values_) {
|
| 1186 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
|
| 1187 | }
|
| 1188 | size += dataSize;
|
| 1189 | size += 1 * values_.Count;
|
| 1190 | }
|
| 1191 | }
|
| 1192 | {
|
| 1193 | int dataSize = 0;
|
| 1194 | if (packedValues_.Count > 0) {
|
| 1195 | foreach (global::UnitTest.Issues.TestProtos.NegativeEnum element in packedValues_) {
|
| 1196 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
|
| 1197 | }
|
| 1198 | size += dataSize;
|
| 1199 | size += 1;
|
| 1200 | size += pb::CodedOutputStream.ComputeRawVarint32Size((uint) dataSize);
|
| 1201 | }
|
| 1202 | packedValuesMemoizedSerializedSize = dataSize;
|
| 1203 | }
|
| 1204 | size += UnknownFields.SerializedSize;
|
| 1205 | memoizedSerializedSize = size;
|
| 1206 | return size;
|
| 1207 | }
|
| 1208 | }
|
| 1209 |
|
| 1210 | public static NegativeEnumMessage ParseFrom(pb::ByteString data) {
|
| 1211 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1212 | }
|
| 1213 | public static NegativeEnumMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 1214 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1215 | }
|
| 1216 | public static NegativeEnumMessage ParseFrom(byte[] data) {
|
| 1217 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1218 | }
|
| 1219 | public static NegativeEnumMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 1220 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1221 | }
|
| 1222 | public static NegativeEnumMessage ParseFrom(global::System.IO.Stream input) {
|
| 1223 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1224 | }
|
| 1225 | public static NegativeEnumMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1226 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1227 | }
|
| 1228 | public static NegativeEnumMessage ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 1229 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 1230 | }
|
| 1231 | public static NegativeEnumMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1232 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 1233 | }
|
| 1234 | public static NegativeEnumMessage ParseFrom(pb::ICodedInputStream input) {
|
| 1235 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1236 | }
|
| 1237 | public static NegativeEnumMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1238 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1239 | }
|
| 1240 | public static Builder CreateBuilder() { return new Builder(); }
|
| 1241 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 1242 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 1243 | public static Builder CreateBuilder(NegativeEnumMessage prototype) {
|
| 1244 | return (Builder) new Builder().MergeFrom(prototype);
|
| 1245 | }
|
| 1246 |
|
| 1247 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1248 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1249 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
| 1250 | public sealed partial class Builder : pb::GeneratedBuilder<NegativeEnumMessage, Builder> {
|
| 1251 | protected override Builder ThisBuilder {
|
| 1252 | get { return this; }
|
| 1253 | }
|
| 1254 | public Builder() {}
|
| 1255 |
|
| 1256 | NegativeEnumMessage result = new NegativeEnumMessage();
|
| 1257 |
|
| 1258 | protected override NegativeEnumMessage MessageBeingBuilt {
|
| 1259 | get { return result; }
|
| 1260 | }
|
| 1261 |
|
| 1262 | public override Builder Clear() {
|
| 1263 | result = new NegativeEnumMessage();
|
| 1264 | return this;
|
| 1265 | }
|
| 1266 |
|
| 1267 | public override Builder Clone() {
|
| 1268 | return new Builder().MergeFrom(result);
|
| 1269 | }
|
| 1270 |
|
| 1271 | public override pbd::MessageDescriptor DescriptorForType {
|
| 1272 | get { return global::UnitTest.Issues.TestProtos.NegativeEnumMessage.Descriptor; }
|
| 1273 | }
|
| 1274 |
|
| 1275 | public override NegativeEnumMessage DefaultInstanceForType {
|
| 1276 | get { return global::UnitTest.Issues.TestProtos.NegativeEnumMessage.DefaultInstance; }
|
| 1277 | }
|
| 1278 |
|
| 1279 | public override NegativeEnumMessage BuildPartial() {
|
| 1280 | if (result == null) {
|
| 1281 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 1282 | }
|
| 1283 | result.values_.MakeReadOnly();
|
| 1284 | result.packedValues_.MakeReadOnly();
|
| 1285 | NegativeEnumMessage returnMe = result;
|
| 1286 | result = null;
|
| 1287 | return returnMe;
|
| 1288 | }
|
| 1289 |
|
| 1290 | public override Builder MergeFrom(pb::IMessage other) {
|
| 1291 | if (other is NegativeEnumMessage) {
|
| 1292 | return MergeFrom((NegativeEnumMessage) other);
|
| 1293 | } else {
|
| 1294 | base.MergeFrom(other);
|
| 1295 | return this;
|
| 1296 | }
|
| 1297 | }
|
| 1298 |
|
| 1299 | public override Builder MergeFrom(NegativeEnumMessage other) {
|
| 1300 | if (other == global::UnitTest.Issues.TestProtos.NegativeEnumMessage.DefaultInstance) return this;
|
| 1301 | if (other.HasValue) {
|
| 1302 | Value = other.Value;
|
| 1303 | }
|
| 1304 | if (other.values_.Count != 0) {
|
csharptest | 784bf0c | 2011-09-16 13:22:12 -0500 | [diff] [blame] | 1305 | result.values_.Add(other.values_);
|
csharptest | a105eac | 2011-09-09 13:39:54 -0500 | [diff] [blame] | 1306 | }
|
| 1307 | if (other.packedValues_.Count != 0) {
|
csharptest | 784bf0c | 2011-09-16 13:22:12 -0500 | [diff] [blame] | 1308 | result.packedValues_.Add(other.packedValues_);
|
csharptest | a105eac | 2011-09-09 13:39:54 -0500 | [diff] [blame] | 1309 | }
|
| 1310 | this.MergeUnknownFields(other.UnknownFields);
|
| 1311 | return this;
|
| 1312 | }
|
| 1313 |
|
| 1314 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
| 1315 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 1316 | }
|
| 1317 |
|
| 1318 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1319 | pb::UnknownFieldSet.Builder unknownFields = null;
|
| 1320 | uint tag;
|
| 1321 | string field_name;
|
| 1322 | while (input.ReadTag(out tag, out field_name)) {
|
| 1323 | if(tag == 0 && field_name != null) {
|
| 1324 | int field_ordinal = global::System.Array.BinarySearch(_negativeEnumMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 1325 | if(field_ordinal >= 0)
|
| 1326 | tag = _negativeEnumMessageFieldTags[field_ordinal];
|
| 1327 | else {
|
| 1328 | if (unknownFields == null) {
|
| 1329 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 1330 | }
|
| 1331 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
|
| 1332 | continue;
|
| 1333 | }
|
| 1334 | }
|
| 1335 | switch (tag) {
|
| 1336 | case 0: {
|
| 1337 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
| 1338 | }
|
| 1339 | default: {
|
| 1340 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 1341 | if (unknownFields != null) {
|
| 1342 | this.UnknownFields = unknownFields.Build();
|
| 1343 | }
|
| 1344 | return this;
|
| 1345 | }
|
| 1346 | if (unknownFields == null) {
|
| 1347 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 1348 | }
|
| 1349 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
|
| 1350 | break;
|
| 1351 | }
|
| 1352 | case 8: {
|
| 1353 | object unknown;
|
| 1354 | if(input.ReadEnum(ref result.value_, out unknown)) {
|
| 1355 | result.hasValue = true;
|
| 1356 | } else if(unknown is int) {
|
| 1357 | if (unknownFields == null) {
|
| 1358 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 1359 | }
|
| 1360 | unknownFields.MergeVarintField(1, (ulong)(int)unknown);
|
| 1361 | }
|
| 1362 | break;
|
| 1363 | }
|
| 1364 | case 18:
|
| 1365 | case 16: {
|
| 1366 | scg::ICollection<object> unknownItems;
|
| 1367 | input.ReadEnumArray<global::UnitTest.Issues.TestProtos.NegativeEnum>(tag, field_name, result.values_, out unknownItems);
|
| 1368 | if (unknownItems != null) {
|
| 1369 | if (unknownFields == null) {
|
| 1370 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 1371 | }
|
| 1372 | foreach (object rawValue in unknownItems)
|
| 1373 | if (rawValue is int)
|
| 1374 | unknownFields.MergeVarintField(2, (ulong)(int)rawValue);
|
| 1375 | }
|
| 1376 | break;
|
| 1377 | }
|
| 1378 | case 26:
|
| 1379 | case 24: {
|
| 1380 | scg::ICollection<object> unknownItems;
|
| 1381 | input.ReadEnumArray<global::UnitTest.Issues.TestProtos.NegativeEnum>(tag, field_name, result.packedValues_, out unknownItems);
|
| 1382 | if (unknownItems != null) {
|
| 1383 | if (unknownFields == null) {
|
| 1384 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 1385 | }
|
| 1386 | foreach (object rawValue in unknownItems)
|
| 1387 | if (rawValue is int)
|
| 1388 | unknownFields.MergeVarintField(3, (ulong)(int)rawValue);
|
| 1389 | }
|
| 1390 | break;
|
| 1391 | }
|
| 1392 | }
|
| 1393 | }
|
| 1394 |
|
| 1395 | if (unknownFields != null) {
|
| 1396 | this.UnknownFields = unknownFields.Build();
|
| 1397 | }
|
| 1398 | return this;
|
| 1399 | }
|
| 1400 |
|
| 1401 |
|
| 1402 | public bool HasValue {
|
| 1403 | get { return result.hasValue; }
|
| 1404 | }
|
| 1405 | public global::UnitTest.Issues.TestProtos.NegativeEnum Value {
|
| 1406 | get { return result.Value; }
|
| 1407 | set { SetValue(value); }
|
| 1408 | }
|
| 1409 | public Builder SetValue(global::UnitTest.Issues.TestProtos.NegativeEnum value) {
|
| 1410 | result.hasValue = true;
|
| 1411 | result.value_ = value;
|
| 1412 | return this;
|
| 1413 | }
|
| 1414 | public Builder ClearValue() {
|
| 1415 | result.hasValue = false;
|
| 1416 | result.value_ = global::UnitTest.Issues.TestProtos.NegativeEnum.FiveBelow;
|
| 1417 | return this;
|
| 1418 | }
|
| 1419 |
|
| 1420 | public pbc::IPopsicleList<global::UnitTest.Issues.TestProtos.NegativeEnum> ValuesList {
|
| 1421 | get { return result.values_; }
|
| 1422 | }
|
| 1423 | public int ValuesCount {
|
| 1424 | get { return result.ValuesCount; }
|
| 1425 | }
|
| 1426 | public global::UnitTest.Issues.TestProtos.NegativeEnum GetValues(int index) {
|
| 1427 | return result.GetValues(index);
|
| 1428 | }
|
| 1429 | public Builder SetValues(int index, global::UnitTest.Issues.TestProtos.NegativeEnum value) {
|
| 1430 | result.values_[index] = value;
|
| 1431 | return this;
|
| 1432 | }
|
| 1433 | public Builder AddValues(global::UnitTest.Issues.TestProtos.NegativeEnum value) {
|
| 1434 | result.values_.Add(value);
|
| 1435 | return this;
|
| 1436 | }
|
| 1437 | public Builder AddRangeValues(scg::IEnumerable<global::UnitTest.Issues.TestProtos.NegativeEnum> values) {
|
csharptest | 784bf0c | 2011-09-16 13:22:12 -0500 | [diff] [blame] | 1438 | result.values_.Add(values);
|
csharptest | a105eac | 2011-09-09 13:39:54 -0500 | [diff] [blame] | 1439 | return this;
|
| 1440 | }
|
| 1441 | public Builder ClearValues() {
|
| 1442 | result.values_.Clear();
|
| 1443 | return this;
|
| 1444 | }
|
| 1445 |
|
| 1446 | public pbc::IPopsicleList<global::UnitTest.Issues.TestProtos.NegativeEnum> PackedValuesList {
|
| 1447 | get { return result.packedValues_; }
|
| 1448 | }
|
| 1449 | public int PackedValuesCount {
|
| 1450 | get { return result.PackedValuesCount; }
|
| 1451 | }
|
| 1452 | public global::UnitTest.Issues.TestProtos.NegativeEnum GetPackedValues(int index) {
|
| 1453 | return result.GetPackedValues(index);
|
| 1454 | }
|
| 1455 | public Builder SetPackedValues(int index, global::UnitTest.Issues.TestProtos.NegativeEnum value) {
|
| 1456 | result.packedValues_[index] = value;
|
| 1457 | return this;
|
| 1458 | }
|
| 1459 | public Builder AddPackedValues(global::UnitTest.Issues.TestProtos.NegativeEnum value) {
|
| 1460 | result.packedValues_.Add(value);
|
| 1461 | return this;
|
| 1462 | }
|
| 1463 | public Builder AddRangePackedValues(scg::IEnumerable<global::UnitTest.Issues.TestProtos.NegativeEnum> values) {
|
csharptest | 784bf0c | 2011-09-16 13:22:12 -0500 | [diff] [blame] | 1464 | result.packedValues_.Add(values);
|
csharptest | a105eac | 2011-09-09 13:39:54 -0500 | [diff] [blame] | 1465 | return this;
|
| 1466 | }
|
| 1467 | public Builder ClearPackedValues() {
|
| 1468 | result.packedValues_.Clear();
|
| 1469 | return this;
|
| 1470 | }
|
| 1471 | }
|
| 1472 | static NegativeEnumMessage() {
|
| 1473 | object.ReferenceEquals(global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.Descriptor, null);
|
| 1474 | }
|
| 1475 | }
|
| 1476 |
|
csharptest | 026f2b4 | 2011-09-16 13:19:42 -0500 | [diff] [blame] | 1477 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1478 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1479 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
csharptest | 4a594ca | 2011-09-09 15:53:10 -0500 | [diff] [blame] | 1480 | public sealed partial class DeprecatedChild : pb::GeneratedMessage<DeprecatedChild, DeprecatedChild.Builder> {
|
csharptest | 17fb8f2 | 2011-09-23 11:36:39 -0500 | [diff] [blame^] | 1481 | private DeprecatedChild() { }
|
csharptest | 4a594ca | 2011-09-09 15:53:10 -0500 | [diff] [blame] | 1482 | private static readonly DeprecatedChild defaultInstance = new Builder().BuildPartial();
|
| 1483 | private static readonly string[] _deprecatedChildFieldNames = new string[] { };
|
| 1484 | private static readonly uint[] _deprecatedChildFieldTags = new uint[] { };
|
| 1485 | public static DeprecatedChild DefaultInstance {
|
| 1486 | get { return defaultInstance; }
|
| 1487 | }
|
| 1488 |
|
| 1489 | public override DeprecatedChild DefaultInstanceForType {
|
| 1490 | get { return defaultInstance; }
|
| 1491 | }
|
| 1492 |
|
| 1493 | protected override DeprecatedChild ThisMessage {
|
| 1494 | get { return this; }
|
| 1495 | }
|
| 1496 |
|
| 1497 | public static pbd::MessageDescriptor Descriptor {
|
| 1498 | get { return global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.internal__static_unittest_issues_DeprecatedChild__Descriptor; }
|
| 1499 | }
|
| 1500 |
|
| 1501 | protected override pb::FieldAccess.FieldAccessorTable<DeprecatedChild, DeprecatedChild.Builder> InternalFieldAccessors {
|
| 1502 | get { return global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.internal__static_unittest_issues_DeprecatedChild__FieldAccessorTable; }
|
| 1503 | }
|
| 1504 |
|
| 1505 | public override bool IsInitialized {
|
| 1506 | get {
|
| 1507 | return true;
|
| 1508 | }
|
| 1509 | }
|
| 1510 |
|
| 1511 | public override void WriteTo(pb::ICodedOutputStream output) {
|
| 1512 | int size = SerializedSize;
|
| 1513 | string[] field_names = _deprecatedChildFieldNames;
|
| 1514 | UnknownFields.WriteTo(output);
|
| 1515 | }
|
| 1516 |
|
| 1517 | private int memoizedSerializedSize = -1;
|
| 1518 | public override int SerializedSize {
|
| 1519 | get {
|
| 1520 | int size = memoizedSerializedSize;
|
| 1521 | if (size != -1) return size;
|
| 1522 |
|
| 1523 | size = 0;
|
| 1524 | size += UnknownFields.SerializedSize;
|
| 1525 | memoizedSerializedSize = size;
|
| 1526 | return size;
|
| 1527 | }
|
| 1528 | }
|
| 1529 |
|
| 1530 | public static DeprecatedChild ParseFrom(pb::ByteString data) {
|
| 1531 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1532 | }
|
| 1533 | public static DeprecatedChild ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 1534 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1535 | }
|
| 1536 | public static DeprecatedChild ParseFrom(byte[] data) {
|
| 1537 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1538 | }
|
| 1539 | public static DeprecatedChild ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 1540 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1541 | }
|
| 1542 | public static DeprecatedChild ParseFrom(global::System.IO.Stream input) {
|
| 1543 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1544 | }
|
| 1545 | public static DeprecatedChild ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1546 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1547 | }
|
| 1548 | public static DeprecatedChild ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 1549 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 1550 | }
|
| 1551 | public static DeprecatedChild ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1552 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 1553 | }
|
| 1554 | public static DeprecatedChild ParseFrom(pb::ICodedInputStream input) {
|
| 1555 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1556 | }
|
| 1557 | public static DeprecatedChild ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1558 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1559 | }
|
| 1560 | public static Builder CreateBuilder() { return new Builder(); }
|
| 1561 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 1562 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 1563 | public static Builder CreateBuilder(DeprecatedChild prototype) {
|
| 1564 | return (Builder) new Builder().MergeFrom(prototype);
|
| 1565 | }
|
| 1566 |
|
| 1567 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1568 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1569 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
| 1570 | public sealed partial class Builder : pb::GeneratedBuilder<DeprecatedChild, Builder> {
|
| 1571 | protected override Builder ThisBuilder {
|
| 1572 | get { return this; }
|
| 1573 | }
|
| 1574 | public Builder() {}
|
| 1575 |
|
| 1576 | DeprecatedChild result = new DeprecatedChild();
|
| 1577 |
|
| 1578 | protected override DeprecatedChild MessageBeingBuilt {
|
| 1579 | get { return result; }
|
| 1580 | }
|
| 1581 |
|
| 1582 | public override Builder Clear() {
|
| 1583 | result = new DeprecatedChild();
|
| 1584 | return this;
|
| 1585 | }
|
| 1586 |
|
| 1587 | public override Builder Clone() {
|
| 1588 | return new Builder().MergeFrom(result);
|
| 1589 | }
|
| 1590 |
|
| 1591 | public override pbd::MessageDescriptor DescriptorForType {
|
| 1592 | get { return global::UnitTest.Issues.TestProtos.DeprecatedChild.Descriptor; }
|
| 1593 | }
|
| 1594 |
|
| 1595 | public override DeprecatedChild DefaultInstanceForType {
|
| 1596 | get { return global::UnitTest.Issues.TestProtos.DeprecatedChild.DefaultInstance; }
|
| 1597 | }
|
| 1598 |
|
| 1599 | public override DeprecatedChild BuildPartial() {
|
| 1600 | if (result == null) {
|
| 1601 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 1602 | }
|
| 1603 | DeprecatedChild returnMe = result;
|
| 1604 | result = null;
|
| 1605 | return returnMe;
|
| 1606 | }
|
| 1607 |
|
| 1608 | public override Builder MergeFrom(pb::IMessage other) {
|
| 1609 | if (other is DeprecatedChild) {
|
| 1610 | return MergeFrom((DeprecatedChild) other);
|
| 1611 | } else {
|
| 1612 | base.MergeFrom(other);
|
| 1613 | return this;
|
| 1614 | }
|
| 1615 | }
|
| 1616 |
|
| 1617 | public override Builder MergeFrom(DeprecatedChild other) {
|
| 1618 | if (other == global::UnitTest.Issues.TestProtos.DeprecatedChild.DefaultInstance) return this;
|
| 1619 | this.MergeUnknownFields(other.UnknownFields);
|
| 1620 | return this;
|
| 1621 | }
|
| 1622 |
|
| 1623 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
| 1624 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 1625 | }
|
| 1626 |
|
| 1627 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1628 | pb::UnknownFieldSet.Builder unknownFields = null;
|
| 1629 | uint tag;
|
| 1630 | string field_name;
|
| 1631 | while (input.ReadTag(out tag, out field_name)) {
|
| 1632 | if(tag == 0 && field_name != null) {
|
| 1633 | int field_ordinal = global::System.Array.BinarySearch(_deprecatedChildFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 1634 | if(field_ordinal >= 0)
|
| 1635 | tag = _deprecatedChildFieldTags[field_ordinal];
|
| 1636 | else {
|
| 1637 | if (unknownFields == null) {
|
| 1638 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 1639 | }
|
| 1640 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
|
| 1641 | continue;
|
| 1642 | }
|
| 1643 | }
|
| 1644 | switch (tag) {
|
| 1645 | case 0: {
|
| 1646 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
| 1647 | }
|
| 1648 | default: {
|
| 1649 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 1650 | if (unknownFields != null) {
|
| 1651 | this.UnknownFields = unknownFields.Build();
|
| 1652 | }
|
| 1653 | return this;
|
| 1654 | }
|
| 1655 | if (unknownFields == null) {
|
| 1656 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 1657 | }
|
| 1658 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
|
| 1659 | break;
|
| 1660 | }
|
| 1661 | }
|
| 1662 | }
|
| 1663 |
|
| 1664 | if (unknownFields != null) {
|
| 1665 | this.UnknownFields = unknownFields.Build();
|
| 1666 | }
|
| 1667 | return this;
|
| 1668 | }
|
| 1669 |
|
| 1670 | }
|
| 1671 | static DeprecatedChild() {
|
| 1672 | object.ReferenceEquals(global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.Descriptor, null);
|
| 1673 | }
|
| 1674 | }
|
| 1675 |
|
| 1676 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1677 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1678 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
| 1679 | public sealed partial class DeprecatedFieldsMessage : pb::GeneratedMessage<DeprecatedFieldsMessage, DeprecatedFieldsMessage.Builder> {
|
csharptest | 17fb8f2 | 2011-09-23 11:36:39 -0500 | [diff] [blame^] | 1680 | private DeprecatedFieldsMessage() { }
|
csharptest | 4a594ca | 2011-09-09 15:53:10 -0500 | [diff] [blame] | 1681 | private static readonly DeprecatedFieldsMessage defaultInstance = new Builder().BuildPartial();
|
| 1682 | private static readonly string[] _deprecatedFieldsMessageFieldNames = new string[] { "EnumArray", "EnumValue", "MessageArray", "MessageValue", "PrimitiveArray", "PrimitiveValue" };
|
| 1683 | private static readonly uint[] _deprecatedFieldsMessageFieldTags = new uint[] { 48, 40, 34, 26, 16, 8 };
|
| 1684 | public static DeprecatedFieldsMessage DefaultInstance {
|
| 1685 | get { return defaultInstance; }
|
| 1686 | }
|
| 1687 |
|
| 1688 | public override DeprecatedFieldsMessage DefaultInstanceForType {
|
| 1689 | get { return defaultInstance; }
|
| 1690 | }
|
| 1691 |
|
| 1692 | protected override DeprecatedFieldsMessage ThisMessage {
|
| 1693 | get { return this; }
|
| 1694 | }
|
| 1695 |
|
| 1696 | public static pbd::MessageDescriptor Descriptor {
|
| 1697 | get { return global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.internal__static_unittest_issues_DeprecatedFieldsMessage__Descriptor; }
|
| 1698 | }
|
| 1699 |
|
| 1700 | protected override pb::FieldAccess.FieldAccessorTable<DeprecatedFieldsMessage, DeprecatedFieldsMessage.Builder> InternalFieldAccessors {
|
| 1701 | get { return global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.internal__static_unittest_issues_DeprecatedFieldsMessage__FieldAccessorTable; }
|
| 1702 | }
|
| 1703 |
|
| 1704 | public const int PrimitiveValueFieldNumber = 1;
|
| 1705 | private bool hasPrimitiveValue;
|
| 1706 | private int primitiveValue_;
|
| 1707 | [global::System.ObsoleteAttribute()]
|
| 1708 | public bool HasPrimitiveValue {
|
| 1709 | get { return hasPrimitiveValue; }
|
| 1710 | }
|
| 1711 | [global::System.ObsoleteAttribute()]
|
| 1712 | public int PrimitiveValue {
|
| 1713 | get { return primitiveValue_; }
|
| 1714 | }
|
| 1715 |
|
| 1716 | public const int PrimitiveArrayFieldNumber = 2;
|
| 1717 | private pbc::PopsicleList<int> primitiveArray_ = new pbc::PopsicleList<int>();
|
| 1718 | [global::System.ObsoleteAttribute()]
|
| 1719 | public scg::IList<int> PrimitiveArrayList {
|
| 1720 | get { return pbc::Lists.AsReadOnly(primitiveArray_); }
|
| 1721 | }
|
| 1722 | [global::System.ObsoleteAttribute()]
|
| 1723 | public int PrimitiveArrayCount {
|
| 1724 | get { return primitiveArray_.Count; }
|
| 1725 | }
|
| 1726 | [global::System.ObsoleteAttribute()]
|
| 1727 | public int GetPrimitiveArray(int index) {
|
| 1728 | return primitiveArray_[index];
|
| 1729 | }
|
| 1730 |
|
| 1731 | public const int MessageValueFieldNumber = 3;
|
| 1732 | private bool hasMessageValue;
|
| 1733 | private global::UnitTest.Issues.TestProtos.DeprecatedChild messageValue_ = global::UnitTest.Issues.TestProtos.DeprecatedChild.DefaultInstance;
|
| 1734 | [global::System.ObsoleteAttribute()]
|
| 1735 | public bool HasMessageValue {
|
| 1736 | get { return hasMessageValue; }
|
| 1737 | }
|
| 1738 | [global::System.ObsoleteAttribute()]
|
| 1739 | public global::UnitTest.Issues.TestProtos.DeprecatedChild MessageValue {
|
| 1740 | get { return messageValue_; }
|
| 1741 | }
|
| 1742 |
|
| 1743 | public const int MessageArrayFieldNumber = 4;
|
| 1744 | private pbc::PopsicleList<global::UnitTest.Issues.TestProtos.DeprecatedChild> messageArray_ = new pbc::PopsicleList<global::UnitTest.Issues.TestProtos.DeprecatedChild>();
|
| 1745 | [global::System.ObsoleteAttribute()]
|
| 1746 | public scg::IList<global::UnitTest.Issues.TestProtos.DeprecatedChild> MessageArrayList {
|
| 1747 | get { return messageArray_; }
|
| 1748 | }
|
| 1749 | [global::System.ObsoleteAttribute()]
|
| 1750 | public int MessageArrayCount {
|
| 1751 | get { return messageArray_.Count; }
|
| 1752 | }
|
| 1753 | [global::System.ObsoleteAttribute()]
|
| 1754 | public global::UnitTest.Issues.TestProtos.DeprecatedChild GetMessageArray(int index) {
|
| 1755 | return messageArray_[index];
|
| 1756 | }
|
| 1757 |
|
| 1758 | public const int EnumValueFieldNumber = 5;
|
| 1759 | private bool hasEnumValue;
|
| 1760 | private global::UnitTest.Issues.TestProtos.DeprecatedEnum enumValue_ = global::UnitTest.Issues.TestProtos.DeprecatedEnum.one;
|
| 1761 | [global::System.ObsoleteAttribute()]
|
| 1762 | public bool HasEnumValue {
|
| 1763 | get { return hasEnumValue; }
|
| 1764 | }
|
| 1765 | [global::System.ObsoleteAttribute()]
|
| 1766 | public global::UnitTest.Issues.TestProtos.DeprecatedEnum EnumValue {
|
| 1767 | get { return enumValue_; }
|
| 1768 | }
|
| 1769 |
|
| 1770 | public const int EnumArrayFieldNumber = 6;
|
| 1771 | private pbc::PopsicleList<global::UnitTest.Issues.TestProtos.DeprecatedEnum> enumArray_ = new pbc::PopsicleList<global::UnitTest.Issues.TestProtos.DeprecatedEnum>();
|
| 1772 | [global::System.ObsoleteAttribute()]
|
| 1773 | public scg::IList<global::UnitTest.Issues.TestProtos.DeprecatedEnum> EnumArrayList {
|
| 1774 | get { return pbc::Lists.AsReadOnly(enumArray_); }
|
| 1775 | }
|
| 1776 | [global::System.ObsoleteAttribute()]
|
| 1777 | public int EnumArrayCount {
|
| 1778 | get { return enumArray_.Count; }
|
| 1779 | }
|
| 1780 | [global::System.ObsoleteAttribute()]
|
| 1781 | public global::UnitTest.Issues.TestProtos.DeprecatedEnum GetEnumArray(int index) {
|
| 1782 | return enumArray_[index];
|
| 1783 | }
|
| 1784 |
|
| 1785 | public override bool IsInitialized {
|
| 1786 | get {
|
| 1787 | return true;
|
| 1788 | }
|
| 1789 | }
|
| 1790 |
|
| 1791 | public override void WriteTo(pb::ICodedOutputStream output) {
|
| 1792 | int size = SerializedSize;
|
| 1793 | string[] field_names = _deprecatedFieldsMessageFieldNames;
|
| 1794 | if (hasPrimitiveValue) {
|
| 1795 | output.WriteInt32(1, field_names[5], PrimitiveValue);
|
| 1796 | }
|
| 1797 | if (primitiveArray_.Count > 0) {
|
| 1798 | output.WriteInt32Array(2, field_names[4], primitiveArray_);
|
| 1799 | }
|
| 1800 | if (hasMessageValue) {
|
| 1801 | output.WriteMessage(3, field_names[3], MessageValue);
|
| 1802 | }
|
| 1803 | if (messageArray_.Count > 0) {
|
| 1804 | output.WriteMessageArray(4, field_names[2], messageArray_);
|
| 1805 | }
|
| 1806 | if (hasEnumValue) {
|
| 1807 | output.WriteEnum(5, field_names[1], (int) EnumValue, EnumValue);
|
| 1808 | }
|
| 1809 | if (enumArray_.Count > 0) {
|
| 1810 | output.WriteEnumArray(6, field_names[0], enumArray_);
|
| 1811 | }
|
| 1812 | UnknownFields.WriteTo(output);
|
| 1813 | }
|
| 1814 |
|
| 1815 | private int memoizedSerializedSize = -1;
|
| 1816 | public override int SerializedSize {
|
| 1817 | get {
|
| 1818 | int size = memoizedSerializedSize;
|
| 1819 | if (size != -1) return size;
|
| 1820 |
|
| 1821 | size = 0;
|
| 1822 | if (hasPrimitiveValue) {
|
| 1823 | size += pb::CodedOutputStream.ComputeInt32Size(1, PrimitiveValue);
|
| 1824 | }
|
| 1825 | {
|
| 1826 | int dataSize = 0;
|
| 1827 | foreach (int element in PrimitiveArrayList) {
|
| 1828 | dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
|
| 1829 | }
|
| 1830 | size += dataSize;
|
| 1831 | size += 1 * primitiveArray_.Count;
|
| 1832 | }
|
| 1833 | if (hasMessageValue) {
|
| 1834 | size += pb::CodedOutputStream.ComputeMessageSize(3, MessageValue);
|
| 1835 | }
|
| 1836 | foreach (global::UnitTest.Issues.TestProtos.DeprecatedChild element in MessageArrayList) {
|
| 1837 | size += pb::CodedOutputStream.ComputeMessageSize(4, element);
|
| 1838 | }
|
| 1839 | if (hasEnumValue) {
|
| 1840 | size += pb::CodedOutputStream.ComputeEnumSize(5, (int) EnumValue);
|
| 1841 | }
|
| 1842 | {
|
| 1843 | int dataSize = 0;
|
| 1844 | if (enumArray_.Count > 0) {
|
| 1845 | foreach (global::UnitTest.Issues.TestProtos.DeprecatedEnum element in enumArray_) {
|
| 1846 | dataSize += pb::CodedOutputStream.ComputeEnumSizeNoTag((int) element);
|
| 1847 | }
|
| 1848 | size += dataSize;
|
| 1849 | size += 1 * enumArray_.Count;
|
| 1850 | }
|
| 1851 | }
|
| 1852 | size += UnknownFields.SerializedSize;
|
| 1853 | memoizedSerializedSize = size;
|
| 1854 | return size;
|
| 1855 | }
|
| 1856 | }
|
| 1857 |
|
| 1858 | public static DeprecatedFieldsMessage ParseFrom(pb::ByteString data) {
|
| 1859 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1860 | }
|
| 1861 | public static DeprecatedFieldsMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
|
| 1862 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1863 | }
|
| 1864 | public static DeprecatedFieldsMessage ParseFrom(byte[] data) {
|
| 1865 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
|
| 1866 | }
|
| 1867 | public static DeprecatedFieldsMessage ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
|
| 1868 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
|
| 1869 | }
|
| 1870 | public static DeprecatedFieldsMessage ParseFrom(global::System.IO.Stream input) {
|
| 1871 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1872 | }
|
| 1873 | public static DeprecatedFieldsMessage ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1874 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1875 | }
|
| 1876 | public static DeprecatedFieldsMessage ParseDelimitedFrom(global::System.IO.Stream input) {
|
| 1877 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
|
| 1878 | }
|
| 1879 | public static DeprecatedFieldsMessage ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1880 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
|
| 1881 | }
|
| 1882 | public static DeprecatedFieldsMessage ParseFrom(pb::ICodedInputStream input) {
|
| 1883 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
|
| 1884 | }
|
| 1885 | public static DeprecatedFieldsMessage ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1886 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
|
| 1887 | }
|
| 1888 | public static Builder CreateBuilder() { return new Builder(); }
|
| 1889 | public override Builder ToBuilder() { return CreateBuilder(this); }
|
| 1890 | public override Builder CreateBuilderForType() { return new Builder(); }
|
| 1891 | public static Builder CreateBuilder(DeprecatedFieldsMessage prototype) {
|
| 1892 | return (Builder) new Builder().MergeFrom(prototype);
|
| 1893 | }
|
| 1894 |
|
| 1895 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
| 1896 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
| 1897 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
|
| 1898 | public sealed partial class Builder : pb::GeneratedBuilder<DeprecatedFieldsMessage, Builder> {
|
| 1899 | protected override Builder ThisBuilder {
|
| 1900 | get { return this; }
|
| 1901 | }
|
| 1902 | public Builder() {}
|
| 1903 |
|
| 1904 | DeprecatedFieldsMessage result = new DeprecatedFieldsMessage();
|
| 1905 |
|
| 1906 | protected override DeprecatedFieldsMessage MessageBeingBuilt {
|
| 1907 | get { return result; }
|
| 1908 | }
|
| 1909 |
|
| 1910 | public override Builder Clear() {
|
| 1911 | result = new DeprecatedFieldsMessage();
|
| 1912 | return this;
|
| 1913 | }
|
| 1914 |
|
| 1915 | public override Builder Clone() {
|
| 1916 | return new Builder().MergeFrom(result);
|
| 1917 | }
|
| 1918 |
|
| 1919 | public override pbd::MessageDescriptor DescriptorForType {
|
| 1920 | get { return global::UnitTest.Issues.TestProtos.DeprecatedFieldsMessage.Descriptor; }
|
| 1921 | }
|
| 1922 |
|
| 1923 | public override DeprecatedFieldsMessage DefaultInstanceForType {
|
| 1924 | get { return global::UnitTest.Issues.TestProtos.DeprecatedFieldsMessage.DefaultInstance; }
|
| 1925 | }
|
| 1926 |
|
| 1927 | public override DeprecatedFieldsMessage BuildPartial() {
|
| 1928 | if (result == null) {
|
| 1929 | throw new global::System.InvalidOperationException("build() has already been called on this Builder");
|
| 1930 | }
|
| 1931 | result.primitiveArray_.MakeReadOnly();
|
| 1932 | result.messageArray_.MakeReadOnly();
|
| 1933 | result.enumArray_.MakeReadOnly();
|
| 1934 | DeprecatedFieldsMessage returnMe = result;
|
| 1935 | result = null;
|
| 1936 | return returnMe;
|
| 1937 | }
|
| 1938 |
|
| 1939 | public override Builder MergeFrom(pb::IMessage other) {
|
| 1940 | if (other is DeprecatedFieldsMessage) {
|
| 1941 | return MergeFrom((DeprecatedFieldsMessage) other);
|
| 1942 | } else {
|
| 1943 | base.MergeFrom(other);
|
| 1944 | return this;
|
| 1945 | }
|
| 1946 | }
|
| 1947 |
|
| 1948 | public override Builder MergeFrom(DeprecatedFieldsMessage other) {
|
| 1949 | if (other == global::UnitTest.Issues.TestProtos.DeprecatedFieldsMessage.DefaultInstance) return this;
|
| 1950 | if (other.HasPrimitiveValue) {
|
| 1951 | PrimitiveValue = other.PrimitiveValue;
|
| 1952 | }
|
| 1953 | if (other.primitiveArray_.Count != 0) {
|
csharptest | 784bf0c | 2011-09-16 13:22:12 -0500 | [diff] [blame] | 1954 | result.primitiveArray_.Add(other.primitiveArray_);
|
csharptest | 4a594ca | 2011-09-09 15:53:10 -0500 | [diff] [blame] | 1955 | }
|
| 1956 | if (other.HasMessageValue) {
|
| 1957 | MergeMessageValue(other.MessageValue);
|
| 1958 | }
|
| 1959 | if (other.messageArray_.Count != 0) {
|
csharptest | 784bf0c | 2011-09-16 13:22:12 -0500 | [diff] [blame] | 1960 | result.messageArray_.Add(other.messageArray_);
|
csharptest | 4a594ca | 2011-09-09 15:53:10 -0500 | [diff] [blame] | 1961 | }
|
| 1962 | if (other.HasEnumValue) {
|
| 1963 | EnumValue = other.EnumValue;
|
| 1964 | }
|
| 1965 | if (other.enumArray_.Count != 0) {
|
csharptest | 784bf0c | 2011-09-16 13:22:12 -0500 | [diff] [blame] | 1966 | result.enumArray_.Add(other.enumArray_);
|
csharptest | 4a594ca | 2011-09-09 15:53:10 -0500 | [diff] [blame] | 1967 | }
|
| 1968 | this.MergeUnknownFields(other.UnknownFields);
|
| 1969 | return this;
|
| 1970 | }
|
| 1971 |
|
| 1972 | public override Builder MergeFrom(pb::ICodedInputStream input) {
|
| 1973 | return MergeFrom(input, pb::ExtensionRegistry.Empty);
|
| 1974 | }
|
| 1975 |
|
| 1976 | public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
|
| 1977 | pb::UnknownFieldSet.Builder unknownFields = null;
|
| 1978 | uint tag;
|
| 1979 | string field_name;
|
| 1980 | while (input.ReadTag(out tag, out field_name)) {
|
| 1981 | if(tag == 0 && field_name != null) {
|
| 1982 | int field_ordinal = global::System.Array.BinarySearch(_deprecatedFieldsMessageFieldNames, field_name, global::System.StringComparer.Ordinal);
|
| 1983 | if(field_ordinal >= 0)
|
| 1984 | tag = _deprecatedFieldsMessageFieldTags[field_ordinal];
|
| 1985 | else {
|
| 1986 | if (unknownFields == null) {
|
| 1987 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 1988 | }
|
| 1989 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
|
| 1990 | continue;
|
| 1991 | }
|
| 1992 | }
|
| 1993 | switch (tag) {
|
| 1994 | case 0: {
|
| 1995 | throw pb::InvalidProtocolBufferException.InvalidTag();
|
| 1996 | }
|
| 1997 | default: {
|
| 1998 | if (pb::WireFormat.IsEndGroupTag(tag)) {
|
| 1999 | if (unknownFields != null) {
|
| 2000 | this.UnknownFields = unknownFields.Build();
|
| 2001 | }
|
| 2002 | return this;
|
| 2003 | }
|
| 2004 | if (unknownFields == null) {
|
| 2005 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 2006 | }
|
| 2007 | ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
|
| 2008 | break;
|
| 2009 | }
|
| 2010 | case 8: {
|
| 2011 | result.hasPrimitiveValue = input.ReadInt32(ref result.primitiveValue_);
|
| 2012 | break;
|
| 2013 | }
|
| 2014 | case 18:
|
| 2015 | case 16: {
|
| 2016 | input.ReadInt32Array(tag, field_name, result.primitiveArray_);
|
| 2017 | break;
|
| 2018 | }
|
| 2019 | case 26: {
|
| 2020 | global::UnitTest.Issues.TestProtos.DeprecatedChild.Builder subBuilder = global::UnitTest.Issues.TestProtos.DeprecatedChild.CreateBuilder();
|
| 2021 | if (result.hasMessageValue) {
|
| 2022 | subBuilder.MergeFrom(MessageValue);
|
| 2023 | }
|
| 2024 | input.ReadMessage(subBuilder, extensionRegistry);
|
| 2025 | MessageValue = subBuilder.BuildPartial();
|
| 2026 | break;
|
| 2027 | }
|
| 2028 | case 34: {
|
| 2029 | input.ReadMessageArray(tag, field_name, result.messageArray_, global::UnitTest.Issues.TestProtos.DeprecatedChild.DefaultInstance, extensionRegistry);
|
| 2030 | break;
|
| 2031 | }
|
| 2032 | case 40: {
|
| 2033 | object unknown;
|
| 2034 | if(input.ReadEnum(ref result.enumValue_, out unknown)) {
|
| 2035 | result.hasEnumValue = true;
|
| 2036 | } else if(unknown is int) {
|
| 2037 | if (unknownFields == null) {
|
| 2038 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 2039 | }
|
| 2040 | unknownFields.MergeVarintField(5, (ulong)(int)unknown);
|
| 2041 | }
|
| 2042 | break;
|
| 2043 | }
|
| 2044 | case 50:
|
| 2045 | case 48: {
|
| 2046 | scg::ICollection<object> unknownItems;
|
| 2047 | input.ReadEnumArray<global::UnitTest.Issues.TestProtos.DeprecatedEnum>(tag, field_name, result.enumArray_, out unknownItems);
|
| 2048 | if (unknownItems != null) {
|
| 2049 | if (unknownFields == null) {
|
| 2050 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
|
| 2051 | }
|
| 2052 | foreach (object rawValue in unknownItems)
|
| 2053 | if (rawValue is int)
|
| 2054 | unknownFields.MergeVarintField(6, (ulong)(int)rawValue);
|
| 2055 | }
|
| 2056 | break;
|
| 2057 | }
|
| 2058 | }
|
| 2059 | }
|
| 2060 |
|
| 2061 | if (unknownFields != null) {
|
| 2062 | this.UnknownFields = unknownFields.Build();
|
| 2063 | }
|
| 2064 | return this;
|
| 2065 | }
|
| 2066 |
|
| 2067 |
|
| 2068 | [global::System.ObsoleteAttribute()]
|
| 2069 | public bool HasPrimitiveValue {
|
| 2070 | get { return result.hasPrimitiveValue; }
|
| 2071 | }
|
| 2072 | [global::System.ObsoleteAttribute()]
|
| 2073 | public int PrimitiveValue {
|
| 2074 | get { return result.PrimitiveValue; }
|
| 2075 | set { SetPrimitiveValue(value); }
|
| 2076 | }
|
| 2077 | [global::System.ObsoleteAttribute()]
|
| 2078 | public Builder SetPrimitiveValue(int value) {
|
| 2079 | result.hasPrimitiveValue = true;
|
| 2080 | result.primitiveValue_ = value;
|
| 2081 | return this;
|
| 2082 | }
|
| 2083 | [global::System.ObsoleteAttribute()]
|
| 2084 | public Builder ClearPrimitiveValue() {
|
| 2085 | result.hasPrimitiveValue = false;
|
| 2086 | result.primitiveValue_ = 0;
|
| 2087 | return this;
|
| 2088 | }
|
| 2089 |
|
| 2090 | [global::System.ObsoleteAttribute()]
|
| 2091 | public pbc::IPopsicleList<int> PrimitiveArrayList {
|
| 2092 | get { return result.primitiveArray_; }
|
| 2093 | }
|
| 2094 | [global::System.ObsoleteAttribute()]
|
| 2095 | public int PrimitiveArrayCount {
|
| 2096 | get { return result.PrimitiveArrayCount; }
|
| 2097 | }
|
| 2098 | [global::System.ObsoleteAttribute()]
|
| 2099 | public int GetPrimitiveArray(int index) {
|
| 2100 | return result.GetPrimitiveArray(index);
|
| 2101 | }
|
| 2102 | [global::System.ObsoleteAttribute()]
|
| 2103 | public Builder SetPrimitiveArray(int index, int value) {
|
| 2104 | result.primitiveArray_[index] = value;
|
| 2105 | return this;
|
| 2106 | }
|
| 2107 | [global::System.ObsoleteAttribute()]
|
| 2108 | public Builder AddPrimitiveArray(int value) {
|
| 2109 | result.primitiveArray_.Add(value);
|
| 2110 | return this;
|
| 2111 | }
|
| 2112 | [global::System.ObsoleteAttribute()]
|
| 2113 | public Builder AddRangePrimitiveArray(scg::IEnumerable<int> values) {
|
csharptest | 784bf0c | 2011-09-16 13:22:12 -0500 | [diff] [blame] | 2114 | result.primitiveArray_.Add(values);
|
csharptest | 4a594ca | 2011-09-09 15:53:10 -0500 | [diff] [blame] | 2115 | return this;
|
| 2116 | }
|
| 2117 | [global::System.ObsoleteAttribute()]
|
| 2118 | public Builder ClearPrimitiveArray() {
|
| 2119 | result.primitiveArray_.Clear();
|
| 2120 | return this;
|
| 2121 | }
|
| 2122 |
|
| 2123 | [global::System.ObsoleteAttribute()]
|
| 2124 | public bool HasMessageValue {
|
| 2125 | get { return result.hasMessageValue; }
|
| 2126 | }
|
| 2127 | [global::System.ObsoleteAttribute()]
|
| 2128 | public global::UnitTest.Issues.TestProtos.DeprecatedChild MessageValue {
|
| 2129 | get { return result.MessageValue; }
|
| 2130 | set { SetMessageValue(value); }
|
| 2131 | }
|
| 2132 | [global::System.ObsoleteAttribute()]
|
| 2133 | public Builder SetMessageValue(global::UnitTest.Issues.TestProtos.DeprecatedChild value) {
|
| 2134 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 2135 | result.hasMessageValue = true;
|
| 2136 | result.messageValue_ = value;
|
| 2137 | return this;
|
| 2138 | }
|
| 2139 | [global::System.ObsoleteAttribute()]
|
| 2140 | public Builder SetMessageValue(global::UnitTest.Issues.TestProtos.DeprecatedChild.Builder builderForValue) {
|
| 2141 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 2142 | result.hasMessageValue = true;
|
| 2143 | result.messageValue_ = builderForValue.Build();
|
| 2144 | return this;
|
| 2145 | }
|
| 2146 | [global::System.ObsoleteAttribute()]
|
| 2147 | public Builder MergeMessageValue(global::UnitTest.Issues.TestProtos.DeprecatedChild value) {
|
| 2148 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 2149 | if (result.hasMessageValue &&
|
| 2150 | result.messageValue_ != global::UnitTest.Issues.TestProtos.DeprecatedChild.DefaultInstance) {
|
| 2151 | result.messageValue_ = global::UnitTest.Issues.TestProtos.DeprecatedChild.CreateBuilder(result.messageValue_).MergeFrom(value).BuildPartial();
|
| 2152 | } else {
|
| 2153 | result.messageValue_ = value;
|
| 2154 | }
|
| 2155 | result.hasMessageValue = true;
|
| 2156 | return this;
|
| 2157 | }
|
| 2158 | [global::System.ObsoleteAttribute()]
|
| 2159 | public Builder ClearMessageValue() {
|
| 2160 | result.hasMessageValue = false;
|
| 2161 | result.messageValue_ = global::UnitTest.Issues.TestProtos.DeprecatedChild.DefaultInstance;
|
| 2162 | return this;
|
| 2163 | }
|
| 2164 |
|
| 2165 | [global::System.ObsoleteAttribute()]
|
| 2166 | public pbc::IPopsicleList<global::UnitTest.Issues.TestProtos.DeprecatedChild> MessageArrayList {
|
| 2167 | get { return result.messageArray_; }
|
| 2168 | }
|
| 2169 | [global::System.ObsoleteAttribute()]
|
| 2170 | public int MessageArrayCount {
|
| 2171 | get { return result.MessageArrayCount; }
|
| 2172 | }
|
| 2173 | [global::System.ObsoleteAttribute()]
|
| 2174 | public global::UnitTest.Issues.TestProtos.DeprecatedChild GetMessageArray(int index) {
|
| 2175 | return result.GetMessageArray(index);
|
| 2176 | }
|
| 2177 | [global::System.ObsoleteAttribute()]
|
| 2178 | public Builder SetMessageArray(int index, global::UnitTest.Issues.TestProtos.DeprecatedChild value) {
|
| 2179 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 2180 | result.messageArray_[index] = value;
|
| 2181 | return this;
|
| 2182 | }
|
| 2183 | [global::System.ObsoleteAttribute()]
|
| 2184 | public Builder SetMessageArray(int index, global::UnitTest.Issues.TestProtos.DeprecatedChild.Builder builderForValue) {
|
| 2185 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 2186 | result.messageArray_[index] = builderForValue.Build();
|
| 2187 | return this;
|
| 2188 | }
|
| 2189 | [global::System.ObsoleteAttribute()]
|
| 2190 | public Builder AddMessageArray(global::UnitTest.Issues.TestProtos.DeprecatedChild value) {
|
| 2191 | pb::ThrowHelper.ThrowIfNull(value, "value");
|
| 2192 | result.messageArray_.Add(value);
|
| 2193 | return this;
|
| 2194 | }
|
| 2195 | [global::System.ObsoleteAttribute()]
|
| 2196 | public Builder AddMessageArray(global::UnitTest.Issues.TestProtos.DeprecatedChild.Builder builderForValue) {
|
| 2197 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
|
| 2198 | result.messageArray_.Add(builderForValue.Build());
|
| 2199 | return this;
|
| 2200 | }
|
| 2201 | [global::System.ObsoleteAttribute()]
|
| 2202 | public Builder AddRangeMessageArray(scg::IEnumerable<global::UnitTest.Issues.TestProtos.DeprecatedChild> values) {
|
csharptest | 784bf0c | 2011-09-16 13:22:12 -0500 | [diff] [blame] | 2203 | result.messageArray_.Add(values);
|
csharptest | 4a594ca | 2011-09-09 15:53:10 -0500 | [diff] [blame] | 2204 | return this;
|
| 2205 | }
|
| 2206 | [global::System.ObsoleteAttribute()]
|
| 2207 | public Builder ClearMessageArray() {
|
| 2208 | result.messageArray_.Clear();
|
| 2209 | return this;
|
| 2210 | }
|
| 2211 |
|
| 2212 | [global::System.ObsoleteAttribute()]
|
| 2213 | public bool HasEnumValue {
|
| 2214 | get { return result.hasEnumValue; }
|
| 2215 | }
|
| 2216 | [global::System.ObsoleteAttribute()]
|
| 2217 | public global::UnitTest.Issues.TestProtos.DeprecatedEnum EnumValue {
|
| 2218 | get { return result.EnumValue; }
|
| 2219 | set { SetEnumValue(value); }
|
| 2220 | }
|
| 2221 | [global::System.ObsoleteAttribute()]
|
| 2222 | public Builder SetEnumValue(global::UnitTest.Issues.TestProtos.DeprecatedEnum value) {
|
| 2223 | result.hasEnumValue = true;
|
| 2224 | result.enumValue_ = value;
|
| 2225 | return this;
|
| 2226 | }
|
| 2227 | [global::System.ObsoleteAttribute()]
|
| 2228 | public Builder ClearEnumValue() {
|
| 2229 | result.hasEnumValue = false;
|
| 2230 | result.enumValue_ = global::UnitTest.Issues.TestProtos.DeprecatedEnum.one;
|
| 2231 | return this;
|
| 2232 | }
|
| 2233 |
|
| 2234 | [global::System.ObsoleteAttribute()]
|
| 2235 | public pbc::IPopsicleList<global::UnitTest.Issues.TestProtos.DeprecatedEnum> EnumArrayList {
|
| 2236 | get { return result.enumArray_; }
|
| 2237 | }
|
| 2238 | [global::System.ObsoleteAttribute()]
|
| 2239 | public int EnumArrayCount {
|
| 2240 | get { return result.EnumArrayCount; }
|
| 2241 | }
|
| 2242 | [global::System.ObsoleteAttribute()]
|
| 2243 | public global::UnitTest.Issues.TestProtos.DeprecatedEnum GetEnumArray(int index) {
|
| 2244 | return result.GetEnumArray(index);
|
| 2245 | }
|
| 2246 | [global::System.ObsoleteAttribute()]
|
| 2247 | public Builder SetEnumArray(int index, global::UnitTest.Issues.TestProtos.DeprecatedEnum value) {
|
| 2248 | result.enumArray_[index] = value;
|
| 2249 | return this;
|
| 2250 | }
|
| 2251 | [global::System.ObsoleteAttribute()]
|
| 2252 | public Builder AddEnumArray(global::UnitTest.Issues.TestProtos.DeprecatedEnum value) {
|
| 2253 | result.enumArray_.Add(value);
|
| 2254 | return this;
|
| 2255 | }
|
| 2256 | [global::System.ObsoleteAttribute()]
|
| 2257 | public Builder AddRangeEnumArray(scg::IEnumerable<global::UnitTest.Issues.TestProtos.DeprecatedEnum> values) {
|
csharptest | 784bf0c | 2011-09-16 13:22:12 -0500 | [diff] [blame] | 2258 | result.enumArray_.Add(values);
|
csharptest | 4a594ca | 2011-09-09 15:53:10 -0500 | [diff] [blame] | 2259 | return this;
|
| 2260 | }
|
| 2261 | [global::System.ObsoleteAttribute()]
|
| 2262 | public Builder ClearEnumArray() {
|
| 2263 | result.enumArray_.Clear();
|
| 2264 | return this;
|
| 2265 | }
|
| 2266 | }
|
| 2267 | static DeprecatedFieldsMessage() {
|
| 2268 | object.ReferenceEquals(global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.Descriptor, null);
|
| 2269 | }
|
| 2270 | }
|
| 2271 |
|
csharptest | 50a89c1 | 2011-08-12 17:33:02 -0500 | [diff] [blame] | 2272 | #endregion
|
| 2273 |
|
| 2274 | }
|
csharptest | c98edda | 2011-08-19 10:13:25 -0500 | [diff] [blame] | 2275 |
|
| 2276 | #endregion Designer generated code
|