|
|
@ -1,5 +1,5 @@ |
|
|
|
// Generated by ProtoGen, Version=2.3.0.277, Culture=neutral, PublicKeyToken=17b3b1f090c3ea48. DO NOT EDIT! |
|
|
|
// Generated by ProtoGen, Version=2.3.0.277, Culture=neutral, PublicKeyToken=17b3b1f090c3ea48. DO NOT EDIT! |
|
|
|
#pragma warning disable 1591 |
|
|
|
#pragma warning disable 1591, 0612 |
|
|
|
#region Designer generated code |
|
|
|
#region Designer generated code |
|
|
|
|
|
|
|
|
|
|
|
using pb = global::Google.ProtocolBuffers; |
|
|
|
using pb = global::Google.ProtocolBuffers; |
|
|
@ -60,7 +60,8 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
|
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")] |
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")] |
|
|
|
public sealed partial class TestRequiredLite : pb::GeneratedMessageLite<TestRequiredLite, TestRequiredLite.Builder> { |
|
|
|
public sealed partial class TestRequiredLite : pb::GeneratedMessageLite<TestRequiredLite, TestRequiredLite.Builder> { |
|
|
|
private static readonly TestRequiredLite defaultInstance = new Builder().BuildPartial(); |
|
|
|
private TestRequiredLite() { } |
|
|
|
|
|
|
|
private static readonly TestRequiredLite defaultInstance = new TestRequiredLite().MakeReadOnly(); |
|
|
|
private static readonly string[] _testRequiredLiteFieldNames = new string[] { "d", "en" }; |
|
|
|
private static readonly string[] _testRequiredLiteFieldNames = new string[] { "d", "en" }; |
|
|
|
private static readonly uint[] _testRequiredLiteFieldTags = new uint[] { 8, 16 }; |
|
|
|
private static readonly uint[] _testRequiredLiteFieldTags = new uint[] { 8, 16 }; |
|
|
|
public static TestRequiredLite DefaultInstance { |
|
|
|
public static TestRequiredLite DefaultInstance { |
|
|
@ -68,7 +69,7 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override TestRequiredLite DefaultInstanceForType { |
|
|
|
public override TestRequiredLite DefaultInstanceForType { |
|
|
|
get { return defaultInstance; } |
|
|
|
get { return DefaultInstance; } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected override TestRequiredLite ThisMessage { |
|
|
|
protected override TestRequiredLite ThisMessage { |
|
|
@ -184,11 +185,15 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
public static TestRequiredLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
public static TestRequiredLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private TestRequiredLite MakeReadOnly() { |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static Builder CreateBuilder() { return new Builder(); } |
|
|
|
public static Builder CreateBuilder() { return new Builder(); } |
|
|
|
public override Builder ToBuilder() { return CreateBuilder(this); } |
|
|
|
public override Builder ToBuilder() { return CreateBuilder(this); } |
|
|
|
public override Builder CreateBuilderForType() { return new Builder(); } |
|
|
|
public override Builder CreateBuilderForType() { return new Builder(); } |
|
|
|
public static Builder CreateBuilder(TestRequiredLite prototype) { |
|
|
|
public static Builder CreateBuilder(TestRequiredLite prototype) { |
|
|
|
return (Builder) new Builder().MergeFrom(prototype); |
|
|
|
return new Builder(prototype); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.SerializableAttribute()] |
|
|
|
[global::System.SerializableAttribute()] |
|
|
@ -199,21 +204,48 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
protected override Builder ThisBuilder { |
|
|
|
protected override Builder ThisBuilder { |
|
|
|
get { return this; } |
|
|
|
get { return this; } |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder() {} |
|
|
|
public Builder() { |
|
|
|
|
|
|
|
result = DefaultInstance; |
|
|
|
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
internal Builder(TestRequiredLite cloneFrom) { |
|
|
|
|
|
|
|
result = cloneFrom; |
|
|
|
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private bool resultIsReadOnly; |
|
|
|
|
|
|
|
private TestRequiredLite result; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private TestRequiredLite PrepareBuilder() { |
|
|
|
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
|
|
|
TestRequiredLite original = result; |
|
|
|
|
|
|
|
result = new TestRequiredLite(); |
|
|
|
|
|
|
|
resultIsReadOnly = false; |
|
|
|
|
|
|
|
MergeFrom(original); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return result; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
TestRequiredLite result = new TestRequiredLite(); |
|
|
|
public override bool IsInitialized { |
|
|
|
|
|
|
|
get { return result.IsInitialized; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected override TestRequiredLite MessageBeingBuilt { |
|
|
|
protected override TestRequiredLite MessageBeingBuilt { |
|
|
|
get { return result; } |
|
|
|
get { return PrepareBuilder(); } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder Clear() { |
|
|
|
public override Builder Clear() { |
|
|
|
result = new TestRequiredLite(); |
|
|
|
result = DefaultInstance; |
|
|
|
|
|
|
|
resultIsReadOnly = true; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder Clone() { |
|
|
|
public override Builder Clone() { |
|
|
|
return new Builder().MergeFrom(result); |
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
|
|
|
return new Builder(result); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
return new Builder().MergeFrom(result); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override TestRequiredLite DefaultInstanceForType { |
|
|
|
public override TestRequiredLite DefaultInstanceForType { |
|
|
@ -221,12 +253,11 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override TestRequiredLite BuildPartial() { |
|
|
|
public override TestRequiredLite BuildPartial() { |
|
|
|
if (result == null) { |
|
|
|
if (resultIsReadOnly) { |
|
|
|
throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
TestRequiredLite returnMe = result; |
|
|
|
resultIsReadOnly = true; |
|
|
|
result = null; |
|
|
|
return result.MakeReadOnly(); |
|
|
|
return returnMe; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::IMessageLite other) { |
|
|
|
public override Builder MergeFrom(pb::IMessageLite other) { |
|
|
@ -240,6 +271,7 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(TestRequiredLite other) { |
|
|
|
public override Builder MergeFrom(TestRequiredLite other) { |
|
|
|
if (other == global::Google.ProtocolBuffers.TestProtos.TestRequiredLite.DefaultInstance) return this; |
|
|
|
if (other == global::Google.ProtocolBuffers.TestProtos.TestRequiredLite.DefaultInstance) return this; |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
if (other.HasD) { |
|
|
|
if (other.HasD) { |
|
|
|
D = other.D; |
|
|
|
D = other.D; |
|
|
|
} |
|
|
|
} |
|
|
@ -254,6 +286,7 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
uint tag; |
|
|
|
uint tag; |
|
|
|
string field_name; |
|
|
|
string field_name; |
|
|
|
while (input.ReadTag(out tag, out field_name)) { |
|
|
|
while (input.ReadTag(out tag, out field_name)) { |
|
|
@ -304,11 +337,13 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
set { SetD(value); } |
|
|
|
set { SetD(value); } |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder SetD(int value) { |
|
|
|
public Builder SetD(int value) { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasD = true; |
|
|
|
result.hasD = true; |
|
|
|
result.d_ = value; |
|
|
|
result.d_ = value; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder ClearD() { |
|
|
|
public Builder ClearD() { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasD = false; |
|
|
|
result.hasD = false; |
|
|
|
result.d_ = 0; |
|
|
|
result.d_ = 0; |
|
|
|
return this; |
|
|
|
return this; |
|
|
@ -322,11 +357,13 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
set { SetEn(value); } |
|
|
|
set { SetEn(value); } |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder SetEn(global::Google.ProtocolBuffers.TestProtos.ExtraEnum value) { |
|
|
|
public Builder SetEn(global::Google.ProtocolBuffers.TestProtos.ExtraEnum value) { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasEn = true; |
|
|
|
result.hasEn = true; |
|
|
|
result.en_ = value; |
|
|
|
result.en_ = value; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder ClearEn() { |
|
|
|
public Builder ClearEn() { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasEn = false; |
|
|
|
result.hasEn = false; |
|
|
|
result.en_ = global::Google.ProtocolBuffers.TestProtos.ExtraEnum.DEFAULT; |
|
|
|
result.en_ = global::Google.ProtocolBuffers.TestProtos.ExtraEnum.DEFAULT; |
|
|
|
return this; |
|
|
|
return this; |
|
|
@ -342,7 +379,8 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
|
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")] |
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")] |
|
|
|
public sealed partial class TestInteropPersonLite : pb::ExtendableMessageLite<TestInteropPersonLite, TestInteropPersonLite.Builder> { |
|
|
|
public sealed partial class TestInteropPersonLite : pb::ExtendableMessageLite<TestInteropPersonLite, TestInteropPersonLite.Builder> { |
|
|
|
private static readonly TestInteropPersonLite defaultInstance = new Builder().BuildPartial(); |
|
|
|
private TestInteropPersonLite() { } |
|
|
|
|
|
|
|
private static readonly TestInteropPersonLite defaultInstance = new TestInteropPersonLite().MakeReadOnly(); |
|
|
|
private static readonly string[] _testInteropPersonLiteFieldNames = new string[] { "addresses", "codes", "email", "id", "name", "phone" }; |
|
|
|
private static readonly string[] _testInteropPersonLiteFieldNames = new string[] { "addresses", "codes", "email", "id", "name", "phone" }; |
|
|
|
private static readonly uint[] _testInteropPersonLiteFieldTags = new uint[] { 43, 82, 26, 16, 10, 34 }; |
|
|
|
private static readonly uint[] _testInteropPersonLiteFieldTags = new uint[] { 43, 82, 26, 16, 10, 34 }; |
|
|
|
public static TestInteropPersonLite DefaultInstance { |
|
|
|
public static TestInteropPersonLite DefaultInstance { |
|
|
@ -350,7 +388,7 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override TestInteropPersonLite DefaultInstanceForType { |
|
|
|
public override TestInteropPersonLite DefaultInstanceForType { |
|
|
|
get { return defaultInstance; } |
|
|
|
get { return DefaultInstance; } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected override TestInteropPersonLite ThisMessage { |
|
|
|
protected override TestInteropPersonLite ThisMessage { |
|
|
@ -375,7 +413,8 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
|
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")] |
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")] |
|
|
|
public sealed partial class PhoneNumber : pb::GeneratedMessageLite<PhoneNumber, PhoneNumber.Builder> { |
|
|
|
public sealed partial class PhoneNumber : pb::GeneratedMessageLite<PhoneNumber, PhoneNumber.Builder> { |
|
|
|
private static readonly PhoneNumber defaultInstance = new Builder().BuildPartial(); |
|
|
|
private PhoneNumber() { } |
|
|
|
|
|
|
|
private static readonly PhoneNumber defaultInstance = new PhoneNumber().MakeReadOnly(); |
|
|
|
private static readonly string[] _phoneNumberFieldNames = new string[] { "number", "type" }; |
|
|
|
private static readonly string[] _phoneNumberFieldNames = new string[] { "number", "type" }; |
|
|
|
private static readonly uint[] _phoneNumberFieldTags = new uint[] { 10, 16 }; |
|
|
|
private static readonly uint[] _phoneNumberFieldTags = new uint[] { 10, 16 }; |
|
|
|
public static PhoneNumber DefaultInstance { |
|
|
|
public static PhoneNumber DefaultInstance { |
|
|
@ -383,7 +422,7 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override PhoneNumber DefaultInstanceForType { |
|
|
|
public override PhoneNumber DefaultInstanceForType { |
|
|
|
get { return defaultInstance; } |
|
|
|
get { return DefaultInstance; } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected override PhoneNumber ThisMessage { |
|
|
|
protected override PhoneNumber ThisMessage { |
|
|
@ -498,11 +537,15 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
public static PhoneNumber ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
public static PhoneNumber ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private PhoneNumber MakeReadOnly() { |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static Builder CreateBuilder() { return new Builder(); } |
|
|
|
public static Builder CreateBuilder() { return new Builder(); } |
|
|
|
public override Builder ToBuilder() { return CreateBuilder(this); } |
|
|
|
public override Builder ToBuilder() { return CreateBuilder(this); } |
|
|
|
public override Builder CreateBuilderForType() { return new Builder(); } |
|
|
|
public override Builder CreateBuilderForType() { return new Builder(); } |
|
|
|
public static Builder CreateBuilder(PhoneNumber prototype) { |
|
|
|
public static Builder CreateBuilder(PhoneNumber prototype) { |
|
|
|
return (Builder) new Builder().MergeFrom(prototype); |
|
|
|
return new Builder(prototype); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.SerializableAttribute()] |
|
|
|
[global::System.SerializableAttribute()] |
|
|
@ -513,21 +556,48 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
protected override Builder ThisBuilder { |
|
|
|
protected override Builder ThisBuilder { |
|
|
|
get { return this; } |
|
|
|
get { return this; } |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder() {} |
|
|
|
public Builder() { |
|
|
|
|
|
|
|
result = DefaultInstance; |
|
|
|
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
internal Builder(PhoneNumber cloneFrom) { |
|
|
|
|
|
|
|
result = cloneFrom; |
|
|
|
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private bool resultIsReadOnly; |
|
|
|
|
|
|
|
private PhoneNumber result; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private PhoneNumber PrepareBuilder() { |
|
|
|
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
|
|
|
PhoneNumber original = result; |
|
|
|
|
|
|
|
result = new PhoneNumber(); |
|
|
|
|
|
|
|
resultIsReadOnly = false; |
|
|
|
|
|
|
|
MergeFrom(original); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return result; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PhoneNumber result = new PhoneNumber(); |
|
|
|
public override bool IsInitialized { |
|
|
|
|
|
|
|
get { return result.IsInitialized; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected override PhoneNumber MessageBeingBuilt { |
|
|
|
protected override PhoneNumber MessageBeingBuilt { |
|
|
|
get { return result; } |
|
|
|
get { return PrepareBuilder(); } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder Clear() { |
|
|
|
public override Builder Clear() { |
|
|
|
result = new PhoneNumber(); |
|
|
|
result = DefaultInstance; |
|
|
|
|
|
|
|
resultIsReadOnly = true; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder Clone() { |
|
|
|
public override Builder Clone() { |
|
|
|
return new Builder().MergeFrom(result); |
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
|
|
|
return new Builder(result); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
return new Builder().MergeFrom(result); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override PhoneNumber DefaultInstanceForType { |
|
|
|
public override PhoneNumber DefaultInstanceForType { |
|
|
@ -535,12 +605,11 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override PhoneNumber BuildPartial() { |
|
|
|
public override PhoneNumber BuildPartial() { |
|
|
|
if (result == null) { |
|
|
|
if (resultIsReadOnly) { |
|
|
|
throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
PhoneNumber returnMe = result; |
|
|
|
resultIsReadOnly = true; |
|
|
|
result = null; |
|
|
|
return result.MakeReadOnly(); |
|
|
|
return returnMe; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::IMessageLite other) { |
|
|
|
public override Builder MergeFrom(pb::IMessageLite other) { |
|
|
@ -554,6 +623,7 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(PhoneNumber other) { |
|
|
|
public override Builder MergeFrom(PhoneNumber other) { |
|
|
|
if (other == global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber.DefaultInstance) return this; |
|
|
|
if (other == global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber.DefaultInstance) return this; |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
if (other.HasNumber) { |
|
|
|
if (other.HasNumber) { |
|
|
|
Number = other.Number; |
|
|
|
Number = other.Number; |
|
|
|
} |
|
|
|
} |
|
|
@ -568,6 +638,7 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
uint tag; |
|
|
|
uint tag; |
|
|
|
string field_name; |
|
|
|
string field_name; |
|
|
|
while (input.ReadTag(out tag, out field_name)) { |
|
|
|
while (input.ReadTag(out tag, out field_name)) { |
|
|
@ -619,11 +690,13 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder SetNumber(string value) { |
|
|
|
public Builder SetNumber(string value) { |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasNumber = true; |
|
|
|
result.hasNumber = true; |
|
|
|
result.number_ = value; |
|
|
|
result.number_ = value; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder ClearNumber() { |
|
|
|
public Builder ClearNumber() { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasNumber = false; |
|
|
|
result.hasNumber = false; |
|
|
|
result.number_ = ""; |
|
|
|
result.number_ = ""; |
|
|
|
return this; |
|
|
|
return this; |
|
|
@ -637,11 +710,13 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
set { SetType(value); } |
|
|
|
set { SetType(value); } |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder SetType(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneType value) { |
|
|
|
public Builder SetType(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneType value) { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasType = true; |
|
|
|
result.hasType = true; |
|
|
|
result.type_ = value; |
|
|
|
result.type_ = value; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder ClearType() { |
|
|
|
public Builder ClearType() { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasType = false; |
|
|
|
result.hasType = false; |
|
|
|
result.type_ = global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneType.HOME; |
|
|
|
result.type_ = global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneType.HOME; |
|
|
|
return this; |
|
|
|
return this; |
|
|
@ -657,7 +732,8 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
|
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")] |
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")] |
|
|
|
public sealed partial class Addresses : pb::GeneratedMessageLite<Addresses, Addresses.Builder> { |
|
|
|
public sealed partial class Addresses : pb::GeneratedMessageLite<Addresses, Addresses.Builder> { |
|
|
|
private static readonly Addresses defaultInstance = new Builder().BuildPartial(); |
|
|
|
private Addresses() { } |
|
|
|
|
|
|
|
private static readonly Addresses defaultInstance = new Addresses().MakeReadOnly(); |
|
|
|
private static readonly string[] _addressesFieldNames = new string[] { "address", "address2", "city", "state", "zip" }; |
|
|
|
private static readonly string[] _addressesFieldNames = new string[] { "address", "address2", "city", "state", "zip" }; |
|
|
|
private static readonly uint[] _addressesFieldTags = new uint[] { 10, 18, 26, 34, 45 }; |
|
|
|
private static readonly uint[] _addressesFieldTags = new uint[] { 10, 18, 26, 34, 45 }; |
|
|
|
public static Addresses DefaultInstance { |
|
|
|
public static Addresses DefaultInstance { |
|
|
@ -665,7 +741,7 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Addresses DefaultInstanceForType { |
|
|
|
public override Addresses DefaultInstanceForType { |
|
|
|
get { return defaultInstance; } |
|
|
|
get { return DefaultInstance; } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected override Addresses ThisMessage { |
|
|
|
protected override Addresses ThisMessage { |
|
|
@ -841,11 +917,15 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
public static Addresses ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
public static Addresses ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private Addresses MakeReadOnly() { |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static Builder CreateBuilder() { return new Builder(); } |
|
|
|
public static Builder CreateBuilder() { return new Builder(); } |
|
|
|
public override Builder ToBuilder() { return CreateBuilder(this); } |
|
|
|
public override Builder ToBuilder() { return CreateBuilder(this); } |
|
|
|
public override Builder CreateBuilderForType() { return new Builder(); } |
|
|
|
public override Builder CreateBuilderForType() { return new Builder(); } |
|
|
|
public static Builder CreateBuilder(Addresses prototype) { |
|
|
|
public static Builder CreateBuilder(Addresses prototype) { |
|
|
|
return (Builder) new Builder().MergeFrom(prototype); |
|
|
|
return new Builder(prototype); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.SerializableAttribute()] |
|
|
|
[global::System.SerializableAttribute()] |
|
|
@ -856,21 +936,48 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
protected override Builder ThisBuilder { |
|
|
|
protected override Builder ThisBuilder { |
|
|
|
get { return this; } |
|
|
|
get { return this; } |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder() {} |
|
|
|
public Builder() { |
|
|
|
|
|
|
|
result = DefaultInstance; |
|
|
|
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
internal Builder(Addresses cloneFrom) { |
|
|
|
|
|
|
|
result = cloneFrom; |
|
|
|
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private bool resultIsReadOnly; |
|
|
|
|
|
|
|
private Addresses result; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private Addresses PrepareBuilder() { |
|
|
|
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
|
|
|
Addresses original = result; |
|
|
|
|
|
|
|
result = new Addresses(); |
|
|
|
|
|
|
|
resultIsReadOnly = false; |
|
|
|
|
|
|
|
MergeFrom(original); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return result; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Addresses result = new Addresses(); |
|
|
|
public override bool IsInitialized { |
|
|
|
|
|
|
|
get { return result.IsInitialized; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected override Addresses MessageBeingBuilt { |
|
|
|
protected override Addresses MessageBeingBuilt { |
|
|
|
get { return result; } |
|
|
|
get { return PrepareBuilder(); } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder Clear() { |
|
|
|
public override Builder Clear() { |
|
|
|
result = new Addresses(); |
|
|
|
result = DefaultInstance; |
|
|
|
|
|
|
|
resultIsReadOnly = true; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder Clone() { |
|
|
|
public override Builder Clone() { |
|
|
|
return new Builder().MergeFrom(result); |
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
|
|
|
return new Builder(result); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
return new Builder().MergeFrom(result); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Addresses DefaultInstanceForType { |
|
|
|
public override Addresses DefaultInstanceForType { |
|
|
@ -878,12 +985,11 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Addresses BuildPartial() { |
|
|
|
public override Addresses BuildPartial() { |
|
|
|
if (result == null) { |
|
|
|
if (resultIsReadOnly) { |
|
|
|
throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
Addresses returnMe = result; |
|
|
|
resultIsReadOnly = true; |
|
|
|
result = null; |
|
|
|
return result.MakeReadOnly(); |
|
|
|
return returnMe; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::IMessageLite other) { |
|
|
|
public override Builder MergeFrom(pb::IMessageLite other) { |
|
|
@ -897,6 +1003,7 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(Addresses other) { |
|
|
|
public override Builder MergeFrom(Addresses other) { |
|
|
|
if (other == global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses.DefaultInstance) return this; |
|
|
|
if (other == global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses.DefaultInstance) return this; |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
if (other.HasAddress) { |
|
|
|
if (other.HasAddress) { |
|
|
|
Address = other.Address; |
|
|
|
Address = other.Address; |
|
|
|
} |
|
|
|
} |
|
|
@ -920,6 +1027,7 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
uint tag; |
|
|
|
uint tag; |
|
|
|
string field_name; |
|
|
|
string field_name; |
|
|
|
while (input.ReadTag(out tag, out field_name)) { |
|
|
|
while (input.ReadTag(out tag, out field_name)) { |
|
|
@ -979,11 +1087,13 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder SetAddress(string value) { |
|
|
|
public Builder SetAddress(string value) { |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasAddress = true; |
|
|
|
result.hasAddress = true; |
|
|
|
result.address_ = value; |
|
|
|
result.address_ = value; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder ClearAddress() { |
|
|
|
public Builder ClearAddress() { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasAddress = false; |
|
|
|
result.hasAddress = false; |
|
|
|
result.address_ = ""; |
|
|
|
result.address_ = ""; |
|
|
|
return this; |
|
|
|
return this; |
|
|
@ -998,11 +1108,13 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder SetAddress2(string value) { |
|
|
|
public Builder SetAddress2(string value) { |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasAddress2 = true; |
|
|
|
result.hasAddress2 = true; |
|
|
|
result.address2_ = value; |
|
|
|
result.address2_ = value; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder ClearAddress2() { |
|
|
|
public Builder ClearAddress2() { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasAddress2 = false; |
|
|
|
result.hasAddress2 = false; |
|
|
|
result.address2_ = ""; |
|
|
|
result.address2_ = ""; |
|
|
|
return this; |
|
|
|
return this; |
|
|
@ -1017,11 +1129,13 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder SetCity(string value) { |
|
|
|
public Builder SetCity(string value) { |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasCity = true; |
|
|
|
result.hasCity = true; |
|
|
|
result.city_ = value; |
|
|
|
result.city_ = value; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder ClearCity() { |
|
|
|
public Builder ClearCity() { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasCity = false; |
|
|
|
result.hasCity = false; |
|
|
|
result.city_ = ""; |
|
|
|
result.city_ = ""; |
|
|
|
return this; |
|
|
|
return this; |
|
|
@ -1036,11 +1150,13 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder SetState(string value) { |
|
|
|
public Builder SetState(string value) { |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasState = true; |
|
|
|
result.hasState = true; |
|
|
|
result.state_ = value; |
|
|
|
result.state_ = value; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder ClearState() { |
|
|
|
public Builder ClearState() { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasState = false; |
|
|
|
result.hasState = false; |
|
|
|
result.state_ = ""; |
|
|
|
result.state_ = ""; |
|
|
|
return this; |
|
|
|
return this; |
|
|
@ -1056,11 +1172,13 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
[global::System.CLSCompliant(false)] |
|
|
|
[global::System.CLSCompliant(false)] |
|
|
|
public Builder SetZip(uint value) { |
|
|
|
public Builder SetZip(uint value) { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasZip = true; |
|
|
|
result.hasZip = true; |
|
|
|
result.zip_ = value; |
|
|
|
result.zip_ = value; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder ClearZip() { |
|
|
|
public Builder ClearZip() { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasZip = false; |
|
|
|
result.hasZip = false; |
|
|
|
result.zip_ = 0; |
|
|
|
result.zip_ = 0; |
|
|
|
return this; |
|
|
|
return this; |
|
|
@ -1293,11 +1411,18 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
public static TestInteropPersonLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
public static TestInteropPersonLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private TestInteropPersonLite MakeReadOnly() { |
|
|
|
|
|
|
|
codes_.MakeReadOnly(); |
|
|
|
|
|
|
|
phone_.MakeReadOnly(); |
|
|
|
|
|
|
|
addresses_.MakeReadOnly(); |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static Builder CreateBuilder() { return new Builder(); } |
|
|
|
public static Builder CreateBuilder() { return new Builder(); } |
|
|
|
public override Builder ToBuilder() { return CreateBuilder(this); } |
|
|
|
public override Builder ToBuilder() { return CreateBuilder(this); } |
|
|
|
public override Builder CreateBuilderForType() { return new Builder(); } |
|
|
|
public override Builder CreateBuilderForType() { return new Builder(); } |
|
|
|
public static Builder CreateBuilder(TestInteropPersonLite prototype) { |
|
|
|
public static Builder CreateBuilder(TestInteropPersonLite prototype) { |
|
|
|
return (Builder) new Builder().MergeFrom(prototype); |
|
|
|
return new Builder(prototype); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.SerializableAttribute()] |
|
|
|
[global::System.SerializableAttribute()] |
|
|
@ -1308,21 +1433,48 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
protected override Builder ThisBuilder { |
|
|
|
protected override Builder ThisBuilder { |
|
|
|
get { return this; } |
|
|
|
get { return this; } |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder() {} |
|
|
|
public Builder() { |
|
|
|
|
|
|
|
result = DefaultInstance; |
|
|
|
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
internal Builder(TestInteropPersonLite cloneFrom) { |
|
|
|
|
|
|
|
result = cloneFrom; |
|
|
|
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
TestInteropPersonLite result = new TestInteropPersonLite(); |
|
|
|
private bool resultIsReadOnly; |
|
|
|
|
|
|
|
private TestInteropPersonLite result; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private TestInteropPersonLite PrepareBuilder() { |
|
|
|
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
|
|
|
TestInteropPersonLite original = result; |
|
|
|
|
|
|
|
result = new TestInteropPersonLite(); |
|
|
|
|
|
|
|
resultIsReadOnly = false; |
|
|
|
|
|
|
|
MergeFrom(original); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return result; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override bool IsInitialized { |
|
|
|
|
|
|
|
get { return result.IsInitialized; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected override TestInteropPersonLite MessageBeingBuilt { |
|
|
|
protected override TestInteropPersonLite MessageBeingBuilt { |
|
|
|
get { return result; } |
|
|
|
get { return PrepareBuilder(); } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder Clear() { |
|
|
|
public override Builder Clear() { |
|
|
|
result = new TestInteropPersonLite(); |
|
|
|
result = DefaultInstance; |
|
|
|
|
|
|
|
resultIsReadOnly = true; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder Clone() { |
|
|
|
public override Builder Clone() { |
|
|
|
return new Builder().MergeFrom(result); |
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
|
|
|
return new Builder(result); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
return new Builder().MergeFrom(result); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override TestInteropPersonLite DefaultInstanceForType { |
|
|
|
public override TestInteropPersonLite DefaultInstanceForType { |
|
|
@ -1330,15 +1482,11 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override TestInteropPersonLite BuildPartial() { |
|
|
|
public override TestInteropPersonLite BuildPartial() { |
|
|
|
if (result == null) { |
|
|
|
if (resultIsReadOnly) { |
|
|
|
throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
result.codes_.MakeReadOnly(); |
|
|
|
resultIsReadOnly = true; |
|
|
|
result.phone_.MakeReadOnly(); |
|
|
|
return result.MakeReadOnly(); |
|
|
|
result.addresses_.MakeReadOnly(); |
|
|
|
|
|
|
|
TestInteropPersonLite returnMe = result; |
|
|
|
|
|
|
|
result = null; |
|
|
|
|
|
|
|
return returnMe; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::IMessageLite other) { |
|
|
|
public override Builder MergeFrom(pb::IMessageLite other) { |
|
|
@ -1352,6 +1500,7 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(TestInteropPersonLite other) { |
|
|
|
public override Builder MergeFrom(TestInteropPersonLite other) { |
|
|
|
if (other == global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.DefaultInstance) return this; |
|
|
|
if (other == global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.DefaultInstance) return this; |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
if (other.HasName) { |
|
|
|
if (other.HasName) { |
|
|
|
Name = other.Name; |
|
|
|
Name = other.Name; |
|
|
|
} |
|
|
|
} |
|
|
@ -1362,13 +1511,13 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
Email = other.Email; |
|
|
|
Email = other.Email; |
|
|
|
} |
|
|
|
} |
|
|
|
if (other.codes_.Count != 0) { |
|
|
|
if (other.codes_.Count != 0) { |
|
|
|
base.AddRange(other.codes_, result.codes_); |
|
|
|
result.codes_.Add(other.codes_); |
|
|
|
} |
|
|
|
} |
|
|
|
if (other.phone_.Count != 0) { |
|
|
|
if (other.phone_.Count != 0) { |
|
|
|
base.AddRange(other.phone_, result.phone_); |
|
|
|
result.phone_.Add(other.phone_); |
|
|
|
} |
|
|
|
} |
|
|
|
if (other.addresses_.Count != 0) { |
|
|
|
if (other.addresses_.Count != 0) { |
|
|
|
base.AddRange(other.addresses_, result.addresses_); |
|
|
|
result.addresses_.Add(other.addresses_); |
|
|
|
} |
|
|
|
} |
|
|
|
this.MergeExtensionFields(other); |
|
|
|
this.MergeExtensionFields(other); |
|
|
|
return this; |
|
|
|
return this; |
|
|
@ -1379,6 +1528,7 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
uint tag; |
|
|
|
uint tag; |
|
|
|
string field_name; |
|
|
|
string field_name; |
|
|
|
while (input.ReadTag(out tag, out field_name)) { |
|
|
|
while (input.ReadTag(out tag, out field_name)) { |
|
|
@ -1443,11 +1593,13 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder SetName(string value) { |
|
|
|
public Builder SetName(string value) { |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasName = true; |
|
|
|
result.hasName = true; |
|
|
|
result.name_ = value; |
|
|
|
result.name_ = value; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder ClearName() { |
|
|
|
public Builder ClearName() { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasName = false; |
|
|
|
result.hasName = false; |
|
|
|
result.name_ = ""; |
|
|
|
result.name_ = ""; |
|
|
|
return this; |
|
|
|
return this; |
|
|
@ -1461,11 +1613,13 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
set { SetId(value); } |
|
|
|
set { SetId(value); } |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder SetId(int value) { |
|
|
|
public Builder SetId(int value) { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasId = true; |
|
|
|
result.hasId = true; |
|
|
|
result.id_ = value; |
|
|
|
result.id_ = value; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder ClearId() { |
|
|
|
public Builder ClearId() { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasId = false; |
|
|
|
result.hasId = false; |
|
|
|
result.id_ = 0; |
|
|
|
result.id_ = 0; |
|
|
|
return this; |
|
|
|
return this; |
|
|
@ -1480,18 +1634,20 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder SetEmail(string value) { |
|
|
|
public Builder SetEmail(string value) { |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasEmail = true; |
|
|
|
result.hasEmail = true; |
|
|
|
result.email_ = value; |
|
|
|
result.email_ = value; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder ClearEmail() { |
|
|
|
public Builder ClearEmail() { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasEmail = false; |
|
|
|
result.hasEmail = false; |
|
|
|
result.email_ = ""; |
|
|
|
result.email_ = ""; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public pbc::IPopsicleList<int> CodesList { |
|
|
|
public pbc::IPopsicleList<int> CodesList { |
|
|
|
get { return result.codes_; } |
|
|
|
get { return PrepareBuilder().codes_; } |
|
|
|
} |
|
|
|
} |
|
|
|
public int CodesCount { |
|
|
|
public int CodesCount { |
|
|
|
get { return result.CodesCount; } |
|
|
|
get { return result.CodesCount; } |
|
|
@ -1500,24 +1656,28 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
return result.GetCodes(index); |
|
|
|
return result.GetCodes(index); |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder SetCodes(int index, int value) { |
|
|
|
public Builder SetCodes(int index, int value) { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.codes_[index] = value; |
|
|
|
result.codes_[index] = value; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder AddCodes(int value) { |
|
|
|
public Builder AddCodes(int value) { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.codes_.Add(value); |
|
|
|
result.codes_.Add(value); |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder AddRangeCodes(scg::IEnumerable<int> values) { |
|
|
|
public Builder AddRangeCodes(scg::IEnumerable<int> values) { |
|
|
|
base.AddRange(values, result.codes_); |
|
|
|
PrepareBuilder(); |
|
|
|
|
|
|
|
result.codes_.Add(values); |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder ClearCodes() { |
|
|
|
public Builder ClearCodes() { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.codes_.Clear(); |
|
|
|
result.codes_.Clear(); |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber> PhoneList { |
|
|
|
public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber> PhoneList { |
|
|
|
get { return result.phone_; } |
|
|
|
get { return PrepareBuilder().phone_; } |
|
|
|
} |
|
|
|
} |
|
|
|
public int PhoneCount { |
|
|
|
public int PhoneCount { |
|
|
|
get { return result.PhoneCount; } |
|
|
|
get { return result.PhoneCount; } |
|
|
@ -1527,35 +1687,41 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder SetPhone(int index, global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber value) { |
|
|
|
public Builder SetPhone(int index, global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber value) { |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.phone_[index] = value; |
|
|
|
result.phone_[index] = value; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder SetPhone(int index, global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber.Builder builderForValue) { |
|
|
|
public Builder SetPhone(int index, global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber.Builder builderForValue) { |
|
|
|
pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
|
|
|
pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.phone_[index] = builderForValue.Build(); |
|
|
|
result.phone_[index] = builderForValue.Build(); |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder AddPhone(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber value) { |
|
|
|
public Builder AddPhone(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber value) { |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.phone_.Add(value); |
|
|
|
result.phone_.Add(value); |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder AddPhone(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber.Builder builderForValue) { |
|
|
|
public Builder AddPhone(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber.Builder builderForValue) { |
|
|
|
pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
|
|
|
pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.phone_.Add(builderForValue.Build()); |
|
|
|
result.phone_.Add(builderForValue.Build()); |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder AddRangePhone(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber> values) { |
|
|
|
public Builder AddRangePhone(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.PhoneNumber> values) { |
|
|
|
base.AddRange(values, result.phone_); |
|
|
|
PrepareBuilder(); |
|
|
|
|
|
|
|
result.phone_.Add(values); |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder ClearPhone() { |
|
|
|
public Builder ClearPhone() { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.phone_.Clear(); |
|
|
|
result.phone_.Clear(); |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses> AddressesList { |
|
|
|
public pbc::IPopsicleList<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses> AddressesList { |
|
|
|
get { return result.addresses_; } |
|
|
|
get { return PrepareBuilder().addresses_; } |
|
|
|
} |
|
|
|
} |
|
|
|
public int AddressesCount { |
|
|
|
public int AddressesCount { |
|
|
|
get { return result.AddressesCount; } |
|
|
|
get { return result.AddressesCount; } |
|
|
@ -1565,29 +1731,35 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder SetAddresses(int index, global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses value) { |
|
|
|
public Builder SetAddresses(int index, global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses value) { |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.addresses_[index] = value; |
|
|
|
result.addresses_[index] = value; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder SetAddresses(int index, global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses.Builder builderForValue) { |
|
|
|
public Builder SetAddresses(int index, global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses.Builder builderForValue) { |
|
|
|
pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
|
|
|
pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.addresses_[index] = builderForValue.Build(); |
|
|
|
result.addresses_[index] = builderForValue.Build(); |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder AddAddresses(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses value) { |
|
|
|
public Builder AddAddresses(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses value) { |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.addresses_.Add(value); |
|
|
|
result.addresses_.Add(value); |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder AddAddresses(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses.Builder builderForValue) { |
|
|
|
public Builder AddAddresses(global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses.Builder builderForValue) { |
|
|
|
pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
|
|
|
pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.addresses_.Add(builderForValue.Build()); |
|
|
|
result.addresses_.Add(builderForValue.Build()); |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder AddRangeAddresses(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses> values) { |
|
|
|
public Builder AddRangeAddresses(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestInteropPersonLite.Types.Addresses> values) { |
|
|
|
base.AddRange(values, result.addresses_); |
|
|
|
PrepareBuilder(); |
|
|
|
|
|
|
|
result.addresses_.Add(values); |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder ClearAddresses() { |
|
|
|
public Builder ClearAddresses() { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.addresses_.Clear(); |
|
|
|
result.addresses_.Clear(); |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
@ -1602,7 +1774,8 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
|
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")] |
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")] |
|
|
|
public sealed partial class TestInteropEmployeeIdLite : pb::GeneratedMessageLite<TestInteropEmployeeIdLite, TestInteropEmployeeIdLite.Builder> { |
|
|
|
public sealed partial class TestInteropEmployeeIdLite : pb::GeneratedMessageLite<TestInteropEmployeeIdLite, TestInteropEmployeeIdLite.Builder> { |
|
|
|
private static readonly TestInteropEmployeeIdLite defaultInstance = new Builder().BuildPartial(); |
|
|
|
private TestInteropEmployeeIdLite() { } |
|
|
|
|
|
|
|
private static readonly TestInteropEmployeeIdLite defaultInstance = new TestInteropEmployeeIdLite().MakeReadOnly(); |
|
|
|
private static readonly string[] _testInteropEmployeeIdLiteFieldNames = new string[] { "number" }; |
|
|
|
private static readonly string[] _testInteropEmployeeIdLiteFieldNames = new string[] { "number" }; |
|
|
|
private static readonly uint[] _testInteropEmployeeIdLiteFieldTags = new uint[] { 10 }; |
|
|
|
private static readonly uint[] _testInteropEmployeeIdLiteFieldTags = new uint[] { 10 }; |
|
|
|
public static TestInteropEmployeeIdLite DefaultInstance { |
|
|
|
public static TestInteropEmployeeIdLite DefaultInstance { |
|
|
@ -1610,7 +1783,7 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override TestInteropEmployeeIdLite DefaultInstanceForType { |
|
|
|
public override TestInteropEmployeeIdLite DefaultInstanceForType { |
|
|
|
get { return defaultInstance; } |
|
|
|
get { return DefaultInstance; } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected override TestInteropEmployeeIdLite ThisMessage { |
|
|
|
protected override TestInteropEmployeeIdLite ThisMessage { |
|
|
@ -1706,11 +1879,15 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
public static TestInteropEmployeeIdLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
public static TestInteropEmployeeIdLite ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private TestInteropEmployeeIdLite MakeReadOnly() { |
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static Builder CreateBuilder() { return new Builder(); } |
|
|
|
public static Builder CreateBuilder() { return new Builder(); } |
|
|
|
public override Builder ToBuilder() { return CreateBuilder(this); } |
|
|
|
public override Builder ToBuilder() { return CreateBuilder(this); } |
|
|
|
public override Builder CreateBuilderForType() { return new Builder(); } |
|
|
|
public override Builder CreateBuilderForType() { return new Builder(); } |
|
|
|
public static Builder CreateBuilder(TestInteropEmployeeIdLite prototype) { |
|
|
|
public static Builder CreateBuilder(TestInteropEmployeeIdLite prototype) { |
|
|
|
return (Builder) new Builder().MergeFrom(prototype); |
|
|
|
return new Builder(prototype); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[global::System.SerializableAttribute()] |
|
|
|
[global::System.SerializableAttribute()] |
|
|
@ -1721,21 +1898,48 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
protected override Builder ThisBuilder { |
|
|
|
protected override Builder ThisBuilder { |
|
|
|
get { return this; } |
|
|
|
get { return this; } |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder() {} |
|
|
|
public Builder() { |
|
|
|
|
|
|
|
result = DefaultInstance; |
|
|
|
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
internal Builder(TestInteropEmployeeIdLite cloneFrom) { |
|
|
|
|
|
|
|
result = cloneFrom; |
|
|
|
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
TestInteropEmployeeIdLite result = new TestInteropEmployeeIdLite(); |
|
|
|
private bool resultIsReadOnly; |
|
|
|
|
|
|
|
private TestInteropEmployeeIdLite result; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private TestInteropEmployeeIdLite PrepareBuilder() { |
|
|
|
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
|
|
|
TestInteropEmployeeIdLite original = result; |
|
|
|
|
|
|
|
result = new TestInteropEmployeeIdLite(); |
|
|
|
|
|
|
|
resultIsReadOnly = false; |
|
|
|
|
|
|
|
MergeFrom(original); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return result; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override bool IsInitialized { |
|
|
|
|
|
|
|
get { return result.IsInitialized; } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected override TestInteropEmployeeIdLite MessageBeingBuilt { |
|
|
|
protected override TestInteropEmployeeIdLite MessageBeingBuilt { |
|
|
|
get { return result; } |
|
|
|
get { return PrepareBuilder(); } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder Clear() { |
|
|
|
public override Builder Clear() { |
|
|
|
result = new TestInteropEmployeeIdLite(); |
|
|
|
result = DefaultInstance; |
|
|
|
|
|
|
|
resultIsReadOnly = true; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder Clone() { |
|
|
|
public override Builder Clone() { |
|
|
|
return new Builder().MergeFrom(result); |
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
|
|
|
return new Builder(result); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
return new Builder().MergeFrom(result); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override TestInteropEmployeeIdLite DefaultInstanceForType { |
|
|
|
public override TestInteropEmployeeIdLite DefaultInstanceForType { |
|
|
@ -1743,12 +1947,11 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override TestInteropEmployeeIdLite BuildPartial() { |
|
|
|
public override TestInteropEmployeeIdLite BuildPartial() { |
|
|
|
if (result == null) { |
|
|
|
if (resultIsReadOnly) { |
|
|
|
throw new global::System.InvalidOperationException("build() has already been called on this Builder"); |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
TestInteropEmployeeIdLite returnMe = result; |
|
|
|
resultIsReadOnly = true; |
|
|
|
result = null; |
|
|
|
return result.MakeReadOnly(); |
|
|
|
return returnMe; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::IMessageLite other) { |
|
|
|
public override Builder MergeFrom(pb::IMessageLite other) { |
|
|
@ -1762,6 +1965,7 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(TestInteropEmployeeIdLite other) { |
|
|
|
public override Builder MergeFrom(TestInteropEmployeeIdLite other) { |
|
|
|
if (other == global::Google.ProtocolBuffers.TestProtos.TestInteropEmployeeIdLite.DefaultInstance) return this; |
|
|
|
if (other == global::Google.ProtocolBuffers.TestProtos.TestInteropEmployeeIdLite.DefaultInstance) return this; |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
if (other.HasNumber) { |
|
|
|
if (other.HasNumber) { |
|
|
|
Number = other.Number; |
|
|
|
Number = other.Number; |
|
|
|
} |
|
|
|
} |
|
|
@ -1773,6 +1977,7 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
uint tag; |
|
|
|
uint tag; |
|
|
|
string field_name; |
|
|
|
string field_name; |
|
|
|
while (input.ReadTag(out tag, out field_name)) { |
|
|
|
while (input.ReadTag(out tag, out field_name)) { |
|
|
@ -1816,11 +2021,13 @@ namespace Google.ProtocolBuffers.TestProtos { |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder SetNumber(string value) { |
|
|
|
public Builder SetNumber(string value) { |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasNumber = true; |
|
|
|
result.hasNumber = true; |
|
|
|
result.number_ = value; |
|
|
|
result.number_ = value; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|
} |
|
|
|
} |
|
|
|
public Builder ClearNumber() { |
|
|
|
public Builder ClearNumber() { |
|
|
|
|
|
|
|
PrepareBuilder(); |
|
|
|
result.hasNumber = false; |
|
|
|
result.hasNumber = false; |
|
|
|
result.number_ = ""; |
|
|
|
result.number_ = ""; |
|
|
|
return this; |
|
|
|
return this; |
|
|
|