|
@@ -3016,6 +3016,9 @@ namespace UnitTest.Issues.TestProtos {
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
|
|
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
|
+ output.WriteRawMessage(this);
|
|
|
|
+ #else
|
|
if (valueCase_ == ValueOneofCase.StringValue) {
|
|
if (valueCase_ == ValueOneofCase.StringValue) {
|
|
output.WriteRawTag(10);
|
|
output.WriteRawTag(10);
|
|
output.WriteString(StringValue);
|
|
output.WriteString(StringValue);
|
|
@@ -3027,7 +3030,25 @@ namespace UnitTest.Issues.TestProtos {
|
|
if (_unknownFields != null) {
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
+ #endif
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
|
|
+ if (valueCase_ == ValueOneofCase.StringValue) {
|
|
|
|
+ output.WriteRawTag(10);
|
|
|
|
+ output.WriteString(StringValue);
|
|
|
|
+ }
|
|
|
|
+ if (valueCase_ == ValueOneofCase.NullValue) {
|
|
|
|
+ output.WriteRawTag(16);
|
|
|
|
+ output.WriteEnum((int) NullValue);
|
|
|
|
+ }
|
|
|
|
+ if (_unknownFields != null) {
|
|
|
|
+ _unknownFields.WriteTo(ref output);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+ #endif
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
public int CalculateSize() {
|
|
@@ -3194,6 +3215,9 @@ namespace UnitTest.Issues.TestProtos {
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
|
|
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
|
+ output.WriteRawMessage(this);
|
|
|
|
+ #else
|
|
if (NullValue != global::Google.Protobuf.WellKnownTypes.NullValue.NullValue) {
|
|
if (NullValue != global::Google.Protobuf.WellKnownTypes.NullValue.NullValue) {
|
|
output.WriteRawTag(16);
|
|
output.WriteRawTag(16);
|
|
output.WriteEnum((int) NullValue);
|
|
output.WriteEnum((int) NullValue);
|
|
@@ -3201,8 +3225,22 @@ namespace UnitTest.Issues.TestProtos {
|
|
if (_unknownFields != null) {
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
}
|
|
|
|
+ #endif
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
|
|
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
|
|
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
|
|
+ if (NullValue != global::Google.Protobuf.WellKnownTypes.NullValue.NullValue) {
|
|
|
|
+ output.WriteRawTag(16);
|
|
|
|
+ output.WriteEnum((int) NullValue);
|
|
|
|
+ }
|
|
|
|
+ if (_unknownFields != null) {
|
|
|
|
+ _unknownFields.WriteTo(ref output);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ #endif
|
|
|
|
+
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
public int CalculateSize() {
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
int size = 0;
|