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