Skip to content

Commit

Permalink
Merge pull request #7666 from jskeet/fix-csharp-build
Browse files Browse the repository at this point in the history
Fix C# build by regenerating test protos
  • Loading branch information
jtattermusch committed Jun 30, 2020
2 parents aaf84cb + 13d7125 commit d4c5992
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions csharp/src/Google.Protobuf.Test.TestProtos/UnittestIssues.cs
Expand Up @@ -3016,6 +3016,9 @@ public enum ValueOneofCase {

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (valueCase_ == ValueOneofCase.StringValue) {
output.WriteRawTag(10);
output.WriteString(StringValue);
Expand All @@ -3027,7 +3030,25 @@ public enum ValueOneofCase {
if (_unknownFields != null) {
_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]
public int CalculateSize() {
Expand Down Expand Up @@ -3194,15 +3215,32 @@ public sealed partial class NullValueNotInOneof : pb::IMessage<NullValueNotInOne

[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (NullValue != global::Google.Protobuf.WellKnownTypes.NullValue.NullValue) {
output.WriteRawTag(16);
output.WriteEnum((int) NullValue);
}
if (_unknownFields != null) {
_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]
public int CalculateSize() {
int size = 0;
Expand Down

0 comments on commit d4c5992

Please sign in to comment.