|
|
|
@ -26,6 +26,10 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
internal static pb::FieldAccess.FieldAccessorTable<global::UnitTest.Issues.TestProtos.AB, global::UnitTest.Issues.TestProtos.AB.Builder> internal__static_unittest_issues_AB__FieldAccessorTable; |
|
|
|
|
internal static pbd::MessageDescriptor internal__static_unittest_issues_NumberField__Descriptor; |
|
|
|
|
internal static pb::FieldAccess.FieldAccessorTable<global::UnitTest.Issues.TestProtos.NumberField, global::UnitTest.Issues.TestProtos.NumberField.Builder> internal__static_unittest_issues_NumberField__FieldAccessorTable; |
|
|
|
|
internal static pbd::MessageDescriptor internal__static_unittest_issues_MyMessageAReferenceB__Descriptor; |
|
|
|
|
internal static pb::FieldAccess.FieldAccessorTable<global::UnitTest.Issues.TestProtos.MyMessageAReferenceB, global::UnitTest.Issues.TestProtos.MyMessageAReferenceB.Builder> internal__static_unittest_issues_MyMessageAReferenceB__FieldAccessorTable; |
|
|
|
|
internal static pbd::MessageDescriptor internal__static_unittest_issues_MyMessageBReferenceA__Descriptor; |
|
|
|
|
internal static pb::FieldAccess.FieldAccessorTable<global::UnitTest.Issues.TestProtos.MyMessageBReferenceA, global::UnitTest.Issues.TestProtos.MyMessageBReferenceA.Builder> internal__static_unittest_issues_MyMessageBReferenceA__FieldAccessorTable; |
|
|
|
|
#endregion |
|
|
|
|
#region Descriptor |
|
|
|
|
public static pbd::FileDescriptor Descriptor { |
|
|
|
@ -38,9 +42,12 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
"ChxleHRlc3QvdW5pdHRlc3RfaXNzdWVzLnByb3RvEg91bml0dGVzdF9pc3N1" + |
|
|
|
|
"ZXMaJGdvb2dsZS9wcm90b2J1Zi9jc2hhcnBfb3B0aW9ucy5wcm90byIPCgFB" + |
|
|
|
|
"EgoKAl9BGAEgASgFIg8KAUISCgoCQl8YASABKAUiEQoCQUISCwoDYV9iGAEg" + |
|
|
|
|
"ASgFIhoKC051bWJlckZpZWxkEgsKA18wMRgBIAEoBUJASAHCPjsKGlVuaXRU" + |
|
|
|
|
"ZXN0Lklzc3Vlcy5UZXN0UHJvdG9zEh1Vbml0VGVzdEV4dHJhc0lzc3Vlc1By" + |
|
|
|
|
"b3RvRmlsZQ=="); |
|
|
|
|
"ASgFIhoKC051bWJlckZpZWxkEgsKA18wMRgBIAEoBSJMChRNeU1lc3NhZ2VB" + |
|
|
|
|
"UmVmZXJlbmNlQhI0CgV2YWx1ZRgBIAIoCzIlLnVuaXR0ZXN0X2lzc3Vlcy5N" + |
|
|
|
|
"eU1lc3NhZ2VCUmVmZXJlbmNlQSJMChRNeU1lc3NhZ2VCUmVmZXJlbmNlQRI0" + |
|
|
|
|
"CgV2YWx1ZRgBIAIoCzIlLnVuaXR0ZXN0X2lzc3Vlcy5NeU1lc3NhZ2VBUmVm" + |
|
|
|
|
"ZXJlbmNlQkJASAHCPjsKGlVuaXRUZXN0Lklzc3Vlcy5UZXN0UHJvdG9zEh1V" + |
|
|
|
|
"bml0VGVzdEV4dHJhc0lzc3Vlc1Byb3RvRmlsZQ=="); |
|
|
|
|
pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) { |
|
|
|
|
descriptor = root; |
|
|
|
|
internal__static_unittest_issues_A__Descriptor = Descriptor.MessageTypes[0]; |
|
|
|
@ -59,6 +66,14 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
internal__static_unittest_issues_NumberField__FieldAccessorTable = |
|
|
|
|
new pb::FieldAccess.FieldAccessorTable<global::UnitTest.Issues.TestProtos.NumberField, global::UnitTest.Issues.TestProtos.NumberField.Builder>(internal__static_unittest_issues_NumberField__Descriptor, |
|
|
|
|
new string[] { "_01", }); |
|
|
|
|
internal__static_unittest_issues_MyMessageAReferenceB__Descriptor = Descriptor.MessageTypes[4]; |
|
|
|
|
internal__static_unittest_issues_MyMessageAReferenceB__FieldAccessorTable = |
|
|
|
|
new pb::FieldAccess.FieldAccessorTable<global::UnitTest.Issues.TestProtos.MyMessageAReferenceB, global::UnitTest.Issues.TestProtos.MyMessageAReferenceB.Builder>(internal__static_unittest_issues_MyMessageAReferenceB__Descriptor, |
|
|
|
|
new string[] { "Value", }); |
|
|
|
|
internal__static_unittest_issues_MyMessageBReferenceA__Descriptor = Descriptor.MessageTypes[5]; |
|
|
|
|
internal__static_unittest_issues_MyMessageBReferenceA__FieldAccessorTable = |
|
|
|
|
new pb::FieldAccess.FieldAccessorTable<global::UnitTest.Issues.TestProtos.MyMessageBReferenceA, global::UnitTest.Issues.TestProtos.MyMessageBReferenceA.Builder>(internal__static_unittest_issues_MyMessageBReferenceA__Descriptor, |
|
|
|
|
new string[] { "Value", }); |
|
|
|
|
pb::ExtensionRegistry registry = pb::ExtensionRegistry.CreateInstance(); |
|
|
|
|
RegisterAllExtensions(registry); |
|
|
|
|
global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.RegisterAllExtensions(registry); |
|
|
|
@ -77,7 +92,7 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")] |
|
|
|
|
public sealed partial class A : pb::GeneratedMessage<A, A.Builder> { |
|
|
|
|
private static readonly A defaultInstance = new Builder().BuildPartial(); |
|
|
|
|
private static readonly A defaultInstance = new A().MakeReadOnly(); |
|
|
|
|
private static readonly string[] _aFieldNames = new string[] { "_A" }; |
|
|
|
|
private static readonly uint[] _aFieldTags = new uint[] { 8 }; |
|
|
|
|
public static A DefaultInstance { |
|
|
|
@ -85,7 +100,7 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override A DefaultInstanceForType { |
|
|
|
|
get { return defaultInstance; } |
|
|
|
|
get { return DefaultInstance; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected override A ThisMessage { |
|
|
|
@ -171,6 +186,10 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
public static A ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
private A MakeReadOnly() { |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static Builder CreateBuilder() { return new Builder(); } |
|
|
|
|
public override Builder ToBuilder() { return CreateBuilder(this); } |
|
|
|
|
public override Builder CreateBuilderForType() { return new Builder(); } |
|
|
|
@ -186,22 +205,22 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
get { return this; } |
|
|
|
|
} |
|
|
|
|
public Builder() { |
|
|
|
|
result = DefaultInstance ?? new A(); |
|
|
|
|
builderIsReadOnly = result == DefaultInstance; |
|
|
|
|
result = DefaultInstance; |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
} |
|
|
|
|
internal Builder(A cloneFrom) { |
|
|
|
|
result = cloneFrom; |
|
|
|
|
builderIsReadOnly = true; |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool builderIsReadOnly; |
|
|
|
|
A result; |
|
|
|
|
private bool resultIsReadOnly; |
|
|
|
|
private A result; |
|
|
|
|
|
|
|
|
|
private A PrepareBuilder() { |
|
|
|
|
if (builderIsReadOnly) { |
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
A original = result; |
|
|
|
|
result = new A(); |
|
|
|
|
builderIsReadOnly = false; |
|
|
|
|
resultIsReadOnly = false; |
|
|
|
|
MergeFrom(original); |
|
|
|
|
} |
|
|
|
|
return result; |
|
|
|
@ -216,13 +235,13 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder Clear() { |
|
|
|
|
result = DefaultInstance ?? new A(); |
|
|
|
|
builderIsReadOnly = true; |
|
|
|
|
result = DefaultInstance; |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder Clone() { |
|
|
|
|
if (builderIsReadOnly) { |
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
return new Builder(result); |
|
|
|
|
} else { |
|
|
|
|
return new Builder().MergeFrom(result); |
|
|
|
@ -238,11 +257,11 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override A BuildPartial() { |
|
|
|
|
if (builderIsReadOnly) { |
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
builderIsReadOnly = true; |
|
|
|
|
return result; |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
return result.MakeReadOnly(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::IMessage other) { |
|
|
|
@ -346,7 +365,7 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")] |
|
|
|
|
public sealed partial class B : pb::GeneratedMessage<B, B.Builder> { |
|
|
|
|
private static readonly B defaultInstance = new Builder().BuildPartial(); |
|
|
|
|
private static readonly B defaultInstance = new B().MakeReadOnly(); |
|
|
|
|
private static readonly string[] _bFieldNames = new string[] { "B_" }; |
|
|
|
|
private static readonly uint[] _bFieldTags = new uint[] { 8 }; |
|
|
|
|
public static B DefaultInstance { |
|
|
|
@ -354,7 +373,7 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override B DefaultInstanceForType { |
|
|
|
|
get { return defaultInstance; } |
|
|
|
|
get { return DefaultInstance; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected override B ThisMessage { |
|
|
|
@ -440,6 +459,10 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
public static B ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
private B MakeReadOnly() { |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static Builder CreateBuilder() { return new Builder(); } |
|
|
|
|
public override Builder ToBuilder() { return CreateBuilder(this); } |
|
|
|
|
public override Builder CreateBuilderForType() { return new Builder(); } |
|
|
|
@ -455,22 +478,22 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
get { return this; } |
|
|
|
|
} |
|
|
|
|
public Builder() { |
|
|
|
|
result = DefaultInstance ?? new B(); |
|
|
|
|
builderIsReadOnly = result == DefaultInstance; |
|
|
|
|
result = DefaultInstance; |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
} |
|
|
|
|
internal Builder(B cloneFrom) { |
|
|
|
|
result = cloneFrom; |
|
|
|
|
builderIsReadOnly = true; |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool builderIsReadOnly; |
|
|
|
|
B result; |
|
|
|
|
private bool resultIsReadOnly; |
|
|
|
|
private B result; |
|
|
|
|
|
|
|
|
|
private B PrepareBuilder() { |
|
|
|
|
if (builderIsReadOnly) { |
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
B original = result; |
|
|
|
|
result = new B(); |
|
|
|
|
builderIsReadOnly = false; |
|
|
|
|
resultIsReadOnly = false; |
|
|
|
|
MergeFrom(original); |
|
|
|
|
} |
|
|
|
|
return result; |
|
|
|
@ -485,13 +508,13 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder Clear() { |
|
|
|
|
result = DefaultInstance ?? new B(); |
|
|
|
|
builderIsReadOnly = true; |
|
|
|
|
result = DefaultInstance; |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder Clone() { |
|
|
|
|
if (builderIsReadOnly) { |
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
return new Builder(result); |
|
|
|
|
} else { |
|
|
|
|
return new Builder().MergeFrom(result); |
|
|
|
@ -507,11 +530,11 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override B BuildPartial() { |
|
|
|
|
if (builderIsReadOnly) { |
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
builderIsReadOnly = true; |
|
|
|
|
return result; |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
return result.MakeReadOnly(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::IMessage other) { |
|
|
|
@ -615,7 +638,7 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")] |
|
|
|
|
public sealed partial class AB : pb::GeneratedMessage<AB, AB.Builder> { |
|
|
|
|
private static readonly AB defaultInstance = new Builder().BuildPartial(); |
|
|
|
|
private static readonly AB defaultInstance = new AB().MakeReadOnly(); |
|
|
|
|
private static readonly string[] _aBFieldNames = new string[] { "a_b" }; |
|
|
|
|
private static readonly uint[] _aBFieldTags = new uint[] { 8 }; |
|
|
|
|
public static AB DefaultInstance { |
|
|
|
@ -623,7 +646,7 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override AB DefaultInstanceForType { |
|
|
|
|
get { return defaultInstance; } |
|
|
|
|
get { return DefaultInstance; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected override AB ThisMessage { |
|
|
|
@ -709,6 +732,10 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
public static AB ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
private AB MakeReadOnly() { |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static Builder CreateBuilder() { return new Builder(); } |
|
|
|
|
public override Builder ToBuilder() { return CreateBuilder(this); } |
|
|
|
|
public override Builder CreateBuilderForType() { return new Builder(); } |
|
|
|
@ -724,22 +751,22 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
get { return this; } |
|
|
|
|
} |
|
|
|
|
public Builder() { |
|
|
|
|
result = DefaultInstance ?? new AB(); |
|
|
|
|
builderIsReadOnly = result == DefaultInstance; |
|
|
|
|
result = DefaultInstance; |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
} |
|
|
|
|
internal Builder(AB cloneFrom) { |
|
|
|
|
result = cloneFrom; |
|
|
|
|
builderIsReadOnly = true; |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool builderIsReadOnly; |
|
|
|
|
AB result; |
|
|
|
|
private bool resultIsReadOnly; |
|
|
|
|
private AB result; |
|
|
|
|
|
|
|
|
|
private AB PrepareBuilder() { |
|
|
|
|
if (builderIsReadOnly) { |
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
AB original = result; |
|
|
|
|
result = new AB(); |
|
|
|
|
builderIsReadOnly = false; |
|
|
|
|
resultIsReadOnly = false; |
|
|
|
|
MergeFrom(original); |
|
|
|
|
} |
|
|
|
|
return result; |
|
|
|
@ -754,13 +781,13 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder Clear() { |
|
|
|
|
result = DefaultInstance ?? new AB(); |
|
|
|
|
builderIsReadOnly = true; |
|
|
|
|
result = DefaultInstance; |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder Clone() { |
|
|
|
|
if (builderIsReadOnly) { |
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
return new Builder(result); |
|
|
|
|
} else { |
|
|
|
|
return new Builder().MergeFrom(result); |
|
|
|
@ -776,11 +803,11 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override AB BuildPartial() { |
|
|
|
|
if (builderIsReadOnly) { |
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
builderIsReadOnly = true; |
|
|
|
|
return result; |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
return result.MakeReadOnly(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::IMessage other) { |
|
|
|
@ -884,7 +911,7 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")] |
|
|
|
|
public sealed partial class NumberField : pb::GeneratedMessage<NumberField, NumberField.Builder> { |
|
|
|
|
private static readonly NumberField defaultInstance = new Builder().BuildPartial(); |
|
|
|
|
private static readonly NumberField defaultInstance = new NumberField().MakeReadOnly(); |
|
|
|
|
private static readonly string[] _numberFieldFieldNames = new string[] { "_01" }; |
|
|
|
|
private static readonly uint[] _numberFieldFieldTags = new uint[] { 8 }; |
|
|
|
|
public static NumberField DefaultInstance { |
|
|
|
@ -892,7 +919,7 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override NumberField DefaultInstanceForType { |
|
|
|
|
get { return defaultInstance; } |
|
|
|
|
get { return DefaultInstance; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected override NumberField ThisMessage { |
|
|
|
@ -980,6 +1007,10 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
public static NumberField ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
private NumberField MakeReadOnly() { |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static Builder CreateBuilder() { return new Builder(); } |
|
|
|
|
public override Builder ToBuilder() { return CreateBuilder(this); } |
|
|
|
|
public override Builder CreateBuilderForType() { return new Builder(); } |
|
|
|
@ -995,22 +1026,22 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
get { return this; } |
|
|
|
|
} |
|
|
|
|
public Builder() { |
|
|
|
|
result = DefaultInstance ?? new NumberField(); |
|
|
|
|
builderIsReadOnly = result == DefaultInstance; |
|
|
|
|
result = DefaultInstance; |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
} |
|
|
|
|
internal Builder(NumberField cloneFrom) { |
|
|
|
|
result = cloneFrom; |
|
|
|
|
builderIsReadOnly = true; |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool builderIsReadOnly; |
|
|
|
|
NumberField result; |
|
|
|
|
private bool resultIsReadOnly; |
|
|
|
|
private NumberField result; |
|
|
|
|
|
|
|
|
|
private NumberField PrepareBuilder() { |
|
|
|
|
if (builderIsReadOnly) { |
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
NumberField original = result; |
|
|
|
|
result = new NumberField(); |
|
|
|
|
builderIsReadOnly = false; |
|
|
|
|
resultIsReadOnly = false; |
|
|
|
|
MergeFrom(original); |
|
|
|
|
} |
|
|
|
|
return result; |
|
|
|
@ -1025,13 +1056,13 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder Clear() { |
|
|
|
|
result = DefaultInstance ?? new NumberField(); |
|
|
|
|
builderIsReadOnly = true; |
|
|
|
|
result = DefaultInstance; |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder Clone() { |
|
|
|
|
if (builderIsReadOnly) { |
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
return new Builder(result); |
|
|
|
|
} else { |
|
|
|
|
return new Builder().MergeFrom(result); |
|
|
|
@ -1047,11 +1078,11 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override NumberField BuildPartial() { |
|
|
|
|
if (builderIsReadOnly) { |
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
builderIsReadOnly = true; |
|
|
|
|
return result; |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
return result.MakeReadOnly(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::IMessage other) { |
|
|
|
@ -1153,6 +1184,606 @@ namespace UnitTest.Issues.TestProtos { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|
|
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")] |
|
|
|
|
public sealed partial class MyMessageAReferenceB : pb::GeneratedMessage<MyMessageAReferenceB, MyMessageAReferenceB.Builder> { |
|
|
|
|
private static readonly MyMessageAReferenceB defaultInstance = new MyMessageAReferenceB().MakeReadOnly(); |
|
|
|
|
private static readonly string[] _myMessageAReferenceBFieldNames = new string[] { "value" }; |
|
|
|
|
private static readonly uint[] _myMessageAReferenceBFieldTags = new uint[] { 10 }; |
|
|
|
|
public static MyMessageAReferenceB DefaultInstance { |
|
|
|
|
get { return defaultInstance; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override MyMessageAReferenceB DefaultInstanceForType { |
|
|
|
|
get { return DefaultInstance; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected override MyMessageAReferenceB ThisMessage { |
|
|
|
|
get { return this; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static pbd::MessageDescriptor Descriptor { |
|
|
|
|
get { return global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.internal__static_unittest_issues_MyMessageAReferenceB__Descriptor; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected override pb::FieldAccess.FieldAccessorTable<MyMessageAReferenceB, MyMessageAReferenceB.Builder> InternalFieldAccessors { |
|
|
|
|
get { return global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.internal__static_unittest_issues_MyMessageAReferenceB__FieldAccessorTable; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public const int ValueFieldNumber = 1; |
|
|
|
|
private bool hasValue; |
|
|
|
|
private global::UnitTest.Issues.TestProtos.MyMessageBReferenceA value_; |
|
|
|
|
public bool HasValue { |
|
|
|
|
get { return hasValue; } |
|
|
|
|
} |
|
|
|
|
public global::UnitTest.Issues.TestProtos.MyMessageBReferenceA Value { |
|
|
|
|
get { return value_ ?? global::UnitTest.Issues.TestProtos.MyMessageBReferenceA.DefaultInstance; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override bool IsInitialized { |
|
|
|
|
get { |
|
|
|
|
if (!hasValue) return false; |
|
|
|
|
if (!Value.IsInitialized) return false; |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override void WriteTo(pb::ICodedOutputStream output) { |
|
|
|
|
int size = SerializedSize; |
|
|
|
|
string[] field_names = _myMessageAReferenceBFieldNames; |
|
|
|
|
if (hasValue) { |
|
|
|
|
output.WriteMessage(1, field_names[0], Value); |
|
|
|
|
} |
|
|
|
|
UnknownFields.WriteTo(output); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private int memoizedSerializedSize = -1; |
|
|
|
|
public override int SerializedSize { |
|
|
|
|
get { |
|
|
|
|
int size = memoizedSerializedSize; |
|
|
|
|
if (size != -1) return size; |
|
|
|
|
|
|
|
|
|
size = 0; |
|
|
|
|
if (hasValue) { |
|
|
|
|
size += pb::CodedOutputStream.ComputeMessageSize(1, Value); |
|
|
|
|
} |
|
|
|
|
size += UnknownFields.SerializedSize; |
|
|
|
|
memoizedSerializedSize = size; |
|
|
|
|
return size; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static MyMessageAReferenceB ParseFrom(pb::ByteString data) { |
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
public static MyMessageAReferenceB ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
public static MyMessageAReferenceB ParseFrom(byte[] data) { |
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
public static MyMessageAReferenceB ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
public static MyMessageAReferenceB ParseFrom(global::System.IO.Stream input) { |
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
public static MyMessageAReferenceB ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
public static MyMessageAReferenceB ParseDelimitedFrom(global::System.IO.Stream input) { |
|
|
|
|
return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
public static MyMessageAReferenceB ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
public static MyMessageAReferenceB ParseFrom(pb::ICodedInputStream input) { |
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
public static MyMessageAReferenceB ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
private MyMessageAReferenceB MakeReadOnly() { |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static Builder CreateBuilder() { return new Builder(); } |
|
|
|
|
public override Builder ToBuilder() { return CreateBuilder(this); } |
|
|
|
|
public override Builder CreateBuilderForType() { return new Builder(); } |
|
|
|
|
public static Builder CreateBuilder(MyMessageAReferenceB prototype) { |
|
|
|
|
return new Builder(prototype); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|
|
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")] |
|
|
|
|
public sealed partial class Builder : pb::GeneratedBuilder<MyMessageAReferenceB, Builder> { |
|
|
|
|
protected override Builder ThisBuilder { |
|
|
|
|
get { return this; } |
|
|
|
|
} |
|
|
|
|
public Builder() { |
|
|
|
|
result = DefaultInstance; |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
} |
|
|
|
|
internal Builder(MyMessageAReferenceB cloneFrom) { |
|
|
|
|
result = cloneFrom; |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private bool resultIsReadOnly; |
|
|
|
|
private MyMessageAReferenceB result; |
|
|
|
|
|
|
|
|
|
private MyMessageAReferenceB PrepareBuilder() { |
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
MyMessageAReferenceB original = result; |
|
|
|
|
result = new MyMessageAReferenceB(); |
|
|
|
|
resultIsReadOnly = false; |
|
|
|
|
MergeFrom(original); |
|
|
|
|
} |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override bool IsInitialized { |
|
|
|
|
get { return result.IsInitialized; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected override MyMessageAReferenceB MessageBeingBuilt { |
|
|
|
|
get { return PrepareBuilder(); } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder Clear() { |
|
|
|
|
result = DefaultInstance; |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder Clone() { |
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
return new Builder(result); |
|
|
|
|
} else { |
|
|
|
|
return new Builder().MergeFrom(result); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override pbd::MessageDescriptor DescriptorForType { |
|
|
|
|
get { return global::UnitTest.Issues.TestProtos.MyMessageAReferenceB.Descriptor; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override MyMessageAReferenceB DefaultInstanceForType { |
|
|
|
|
get { return global::UnitTest.Issues.TestProtos.MyMessageAReferenceB.DefaultInstance; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override MyMessageAReferenceB BuildPartial() { |
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
return result.MakeReadOnly(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::IMessage other) { |
|
|
|
|
if (other is MyMessageAReferenceB) { |
|
|
|
|
return MergeFrom((MyMessageAReferenceB) other); |
|
|
|
|
} else { |
|
|
|
|
base.MergeFrom(other); |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(MyMessageAReferenceB other) { |
|
|
|
|
if (other == global::UnitTest.Issues.TestProtos.MyMessageAReferenceB.DefaultInstance) return this; |
|
|
|
|
PrepareBuilder(); |
|
|
|
|
if (other.HasValue) { |
|
|
|
|
MergeValue(other.Value); |
|
|
|
|
} |
|
|
|
|
this.MergeUnknownFields(other.UnknownFields); |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::ICodedInputStream input) { |
|
|
|
|
return MergeFrom(input, pb::ExtensionRegistry.Empty); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
PrepareBuilder(); |
|
|
|
|
pb::UnknownFieldSet.Builder unknownFields = null; |
|
|
|
|
uint tag; |
|
|
|
|
string field_name; |
|
|
|
|
while (input.ReadTag(out tag, out field_name)) { |
|
|
|
|
if(tag == 0 && field_name != null) { |
|
|
|
|
int field_ordinal = global::System.Array.BinarySearch(_myMessageAReferenceBFieldNames, field_name, global::System.StringComparer.Ordinal); |
|
|
|
|
if(field_ordinal >= 0) |
|
|
|
|
tag = _myMessageAReferenceBFieldTags[field_ordinal]; |
|
|
|
|
else { |
|
|
|
|
if (unknownFields == null) { |
|
|
|
|
unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
|
|
|
|
} |
|
|
|
|
ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
switch (tag) { |
|
|
|
|
case 0: { |
|
|
|
|
throw pb::InvalidProtocolBufferException.InvalidTag(); |
|
|
|
|
} |
|
|
|
|
default: { |
|
|
|
|
if (pb::WireFormat.IsEndGroupTag(tag)) { |
|
|
|
|
if (unknownFields != null) { |
|
|
|
|
this.UnknownFields = unknownFields.Build(); |
|
|
|
|
} |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
if (unknownFields == null) { |
|
|
|
|
unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
|
|
|
|
} |
|
|
|
|
ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
case 10: { |
|
|
|
|
global::UnitTest.Issues.TestProtos.MyMessageBReferenceA.Builder subBuilder = global::UnitTest.Issues.TestProtos.MyMessageBReferenceA.CreateBuilder(); |
|
|
|
|
if (result.hasValue) { |
|
|
|
|
subBuilder.MergeFrom(Value); |
|
|
|
|
} |
|
|
|
|
input.ReadMessage(subBuilder, extensionRegistry); |
|
|
|
|
Value = subBuilder.BuildPartial(); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (unknownFields != null) { |
|
|
|
|
this.UnknownFields = unknownFields.Build(); |
|
|
|
|
} |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public bool HasValue { |
|
|
|
|
get { return result.hasValue; } |
|
|
|
|
} |
|
|
|
|
public global::UnitTest.Issues.TestProtos.MyMessageBReferenceA Value { |
|
|
|
|
get { return result.Value; } |
|
|
|
|
set { SetValue(value); } |
|
|
|
|
} |
|
|
|
|
public Builder SetValue(global::UnitTest.Issues.TestProtos.MyMessageBReferenceA value) { |
|
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
|
PrepareBuilder(); |
|
|
|
|
result.hasValue = true; |
|
|
|
|
result.value_ = value; |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
public Builder SetValue(global::UnitTest.Issues.TestProtos.MyMessageBReferenceA.Builder builderForValue) { |
|
|
|
|
pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
|
|
|
|
PrepareBuilder(); |
|
|
|
|
result.hasValue = true; |
|
|
|
|
result.value_ = builderForValue.Build(); |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
public Builder MergeValue(global::UnitTest.Issues.TestProtos.MyMessageBReferenceA value) { |
|
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
|
PrepareBuilder(); |
|
|
|
|
if (result.hasValue && |
|
|
|
|
result.value_ != global::UnitTest.Issues.TestProtos.MyMessageBReferenceA.DefaultInstance) { |
|
|
|
|
result.value_ = global::UnitTest.Issues.TestProtos.MyMessageBReferenceA.CreateBuilder(result.value_).MergeFrom(value).BuildPartial(); |
|
|
|
|
} else { |
|
|
|
|
result.value_ = value; |
|
|
|
|
} |
|
|
|
|
result.hasValue = true; |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
public Builder ClearValue() { |
|
|
|
|
PrepareBuilder(); |
|
|
|
|
result.hasValue = false; |
|
|
|
|
result.value_ = null; |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
static MyMessageAReferenceB() { |
|
|
|
|
object.ReferenceEquals(global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.Descriptor, null); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|
|
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")] |
|
|
|
|
public sealed partial class MyMessageBReferenceA : pb::GeneratedMessage<MyMessageBReferenceA, MyMessageBReferenceA.Builder> { |
|
|
|
|
private static readonly MyMessageBReferenceA defaultInstance = new MyMessageBReferenceA().MakeReadOnly(); |
|
|
|
|
private static readonly string[] _myMessageBReferenceAFieldNames = new string[] { "value" }; |
|
|
|
|
private static readonly uint[] _myMessageBReferenceAFieldTags = new uint[] { 10 }; |
|
|
|
|
public static MyMessageBReferenceA DefaultInstance { |
|
|
|
|
get { return defaultInstance; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override MyMessageBReferenceA DefaultInstanceForType { |
|
|
|
|
get { return DefaultInstance; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected override MyMessageBReferenceA ThisMessage { |
|
|
|
|
get { return this; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static pbd::MessageDescriptor Descriptor { |
|
|
|
|
get { return global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.internal__static_unittest_issues_MyMessageBReferenceA__Descriptor; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected override pb::FieldAccess.FieldAccessorTable<MyMessageBReferenceA, MyMessageBReferenceA.Builder> InternalFieldAccessors { |
|
|
|
|
get { return global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.internal__static_unittest_issues_MyMessageBReferenceA__FieldAccessorTable; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public const int ValueFieldNumber = 1; |
|
|
|
|
private bool hasValue; |
|
|
|
|
private global::UnitTest.Issues.TestProtos.MyMessageAReferenceB value_; |
|
|
|
|
public bool HasValue { |
|
|
|
|
get { return hasValue; } |
|
|
|
|
} |
|
|
|
|
public global::UnitTest.Issues.TestProtos.MyMessageAReferenceB Value { |
|
|
|
|
get { return value_ ?? global::UnitTest.Issues.TestProtos.MyMessageAReferenceB.DefaultInstance; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override bool IsInitialized { |
|
|
|
|
get { |
|
|
|
|
if (!hasValue) return false; |
|
|
|
|
if (!Value.IsInitialized) return false; |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override void WriteTo(pb::ICodedOutputStream output) { |
|
|
|
|
int size = SerializedSize; |
|
|
|
|
string[] field_names = _myMessageBReferenceAFieldNames; |
|
|
|
|
if (hasValue) { |
|
|
|
|
output.WriteMessage(1, field_names[0], Value); |
|
|
|
|
} |
|
|
|
|
UnknownFields.WriteTo(output); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private int memoizedSerializedSize = -1; |
|
|
|
|
public override int SerializedSize { |
|
|
|
|
get { |
|
|
|
|
int size = memoizedSerializedSize; |
|
|
|
|
if (size != -1) return size; |
|
|
|
|
|
|
|
|
|
size = 0; |
|
|
|
|
if (hasValue) { |
|
|
|
|
size += pb::CodedOutputStream.ComputeMessageSize(1, Value); |
|
|
|
|
} |
|
|
|
|
size += UnknownFields.SerializedSize; |
|
|
|
|
memoizedSerializedSize = size; |
|
|
|
|
return size; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static MyMessageBReferenceA ParseFrom(pb::ByteString data) { |
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
public static MyMessageBReferenceA ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
public static MyMessageBReferenceA ParseFrom(byte[] data) { |
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
public static MyMessageBReferenceA ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
public static MyMessageBReferenceA ParseFrom(global::System.IO.Stream input) { |
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
public static MyMessageBReferenceA ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
public static MyMessageBReferenceA ParseDelimitedFrom(global::System.IO.Stream input) { |
|
|
|
|
return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
public static MyMessageBReferenceA ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
public static MyMessageBReferenceA ParseFrom(pb::ICodedInputStream input) { |
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
public static MyMessageBReferenceA ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); |
|
|
|
|
} |
|
|
|
|
private MyMessageBReferenceA MakeReadOnly() { |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static Builder CreateBuilder() { return new Builder(); } |
|
|
|
|
public override Builder ToBuilder() { return CreateBuilder(this); } |
|
|
|
|
public override Builder CreateBuilderForType() { return new Builder(); } |
|
|
|
|
public static Builder CreateBuilder(MyMessageBReferenceA prototype) { |
|
|
|
|
return new Builder(prototype); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|
|
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
|
|
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")] |
|
|
|
|
public sealed partial class Builder : pb::GeneratedBuilder<MyMessageBReferenceA, Builder> { |
|
|
|
|
protected override Builder ThisBuilder { |
|
|
|
|
get { return this; } |
|
|
|
|
} |
|
|
|
|
public Builder() { |
|
|
|
|
result = DefaultInstance; |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
} |
|
|
|
|
internal Builder(MyMessageBReferenceA cloneFrom) { |
|
|
|
|
result = cloneFrom; |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private bool resultIsReadOnly; |
|
|
|
|
private MyMessageBReferenceA result; |
|
|
|
|
|
|
|
|
|
private MyMessageBReferenceA PrepareBuilder() { |
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
MyMessageBReferenceA original = result; |
|
|
|
|
result = new MyMessageBReferenceA(); |
|
|
|
|
resultIsReadOnly = false; |
|
|
|
|
MergeFrom(original); |
|
|
|
|
} |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override bool IsInitialized { |
|
|
|
|
get { return result.IsInitialized; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected override MyMessageBReferenceA MessageBeingBuilt { |
|
|
|
|
get { return PrepareBuilder(); } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder Clear() { |
|
|
|
|
result = DefaultInstance; |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder Clone() { |
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
return new Builder(result); |
|
|
|
|
} else { |
|
|
|
|
return new Builder().MergeFrom(result); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override pbd::MessageDescriptor DescriptorForType { |
|
|
|
|
get { return global::UnitTest.Issues.TestProtos.MyMessageBReferenceA.Descriptor; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override MyMessageBReferenceA DefaultInstanceForType { |
|
|
|
|
get { return global::UnitTest.Issues.TestProtos.MyMessageBReferenceA.DefaultInstance; } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override MyMessageBReferenceA BuildPartial() { |
|
|
|
|
if (resultIsReadOnly) { |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
resultIsReadOnly = true; |
|
|
|
|
return result.MakeReadOnly(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::IMessage other) { |
|
|
|
|
if (other is MyMessageBReferenceA) { |
|
|
|
|
return MergeFrom((MyMessageBReferenceA) other); |
|
|
|
|
} else { |
|
|
|
|
base.MergeFrom(other); |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(MyMessageBReferenceA other) { |
|
|
|
|
if (other == global::UnitTest.Issues.TestProtos.MyMessageBReferenceA.DefaultInstance) return this; |
|
|
|
|
PrepareBuilder(); |
|
|
|
|
if (other.HasValue) { |
|
|
|
|
MergeValue(other.Value); |
|
|
|
|
} |
|
|
|
|
this.MergeUnknownFields(other.UnknownFields); |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::ICodedInputStream input) { |
|
|
|
|
return MergeFrom(input, pb::ExtensionRegistry.Empty); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) { |
|
|
|
|
PrepareBuilder(); |
|
|
|
|
pb::UnknownFieldSet.Builder unknownFields = null; |
|
|
|
|
uint tag; |
|
|
|
|
string field_name; |
|
|
|
|
while (input.ReadTag(out tag, out field_name)) { |
|
|
|
|
if(tag == 0 && field_name != null) { |
|
|
|
|
int field_ordinal = global::System.Array.BinarySearch(_myMessageBReferenceAFieldNames, field_name, global::System.StringComparer.Ordinal); |
|
|
|
|
if(field_ordinal >= 0) |
|
|
|
|
tag = _myMessageBReferenceAFieldTags[field_ordinal]; |
|
|
|
|
else { |
|
|
|
|
if (unknownFields == null) { |
|
|
|
|
unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
|
|
|
|
} |
|
|
|
|
ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
switch (tag) { |
|
|
|
|
case 0: { |
|
|
|
|
throw pb::InvalidProtocolBufferException.InvalidTag(); |
|
|
|
|
} |
|
|
|
|
default: { |
|
|
|
|
if (pb::WireFormat.IsEndGroupTag(tag)) { |
|
|
|
|
if (unknownFields != null) { |
|
|
|
|
this.UnknownFields = unknownFields.Build(); |
|
|
|
|
} |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
if (unknownFields == null) { |
|
|
|
|
unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); |
|
|
|
|
} |
|
|
|
|
ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
case 10: { |
|
|
|
|
global::UnitTest.Issues.TestProtos.MyMessageAReferenceB.Builder subBuilder = global::UnitTest.Issues.TestProtos.MyMessageAReferenceB.CreateBuilder(); |
|
|
|
|
if (result.hasValue) { |
|
|
|
|
subBuilder.MergeFrom(Value); |
|
|
|
|
} |
|
|
|
|
input.ReadMessage(subBuilder, extensionRegistry); |
|
|
|
|
Value = subBuilder.BuildPartial(); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (unknownFields != null) { |
|
|
|
|
this.UnknownFields = unknownFields.Build(); |
|
|
|
|
} |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public bool HasValue { |
|
|
|
|
get { return result.hasValue; } |
|
|
|
|
} |
|
|
|
|
public global::UnitTest.Issues.TestProtos.MyMessageAReferenceB Value { |
|
|
|
|
get { return result.Value; } |
|
|
|
|
set { SetValue(value); } |
|
|
|
|
} |
|
|
|
|
public Builder SetValue(global::UnitTest.Issues.TestProtos.MyMessageAReferenceB value) { |
|
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
|
PrepareBuilder(); |
|
|
|
|
result.hasValue = true; |
|
|
|
|
result.value_ = value; |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
public Builder SetValue(global::UnitTest.Issues.TestProtos.MyMessageAReferenceB.Builder builderForValue) { |
|
|
|
|
pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); |
|
|
|
|
PrepareBuilder(); |
|
|
|
|
result.hasValue = true; |
|
|
|
|
result.value_ = builderForValue.Build(); |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
public Builder MergeValue(global::UnitTest.Issues.TestProtos.MyMessageAReferenceB value) { |
|
|
|
|
pb::ThrowHelper.ThrowIfNull(value, "value"); |
|
|
|
|
PrepareBuilder(); |
|
|
|
|
if (result.hasValue && |
|
|
|
|
result.value_ != global::UnitTest.Issues.TestProtos.MyMessageAReferenceB.DefaultInstance) { |
|
|
|
|
result.value_ = global::UnitTest.Issues.TestProtos.MyMessageAReferenceB.CreateBuilder(result.value_).MergeFrom(value).BuildPartial(); |
|
|
|
|
} else { |
|
|
|
|
result.value_ = value; |
|
|
|
|
} |
|
|
|
|
result.hasValue = true; |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
public Builder ClearValue() { |
|
|
|
|
PrepareBuilder(); |
|
|
|
|
result.hasValue = false; |
|
|
|
|
result.value_ = null; |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
static MyMessageBReferenceA() { |
|
|
|
|
object.ReferenceEquals(global::UnitTest.Issues.TestProtos.UnitTestExtrasIssuesProtoFile.Descriptor, null); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|