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