public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: if (!pb::UnknownFieldSet.MergeFieldFrom(ref _unknownFields, input)) { return; } break; case 10: { ProtobufPayload = input.ReadBytes(); break; } case 18: { JsonPayload = input.ReadString(); break; } case 24: { RequestedOutputFormat = (global::Conformance.WireFormat)input.ReadEnum(); break; } case 34: { MessageType = input.ReadString(); break; } case 40: { TestCategory = (global::Conformance.TestCategory)input.ReadEnum(); break; } case 50: { if (jspbEncodingOptions_ == null) { JspbEncodingOptions = new global::Conformance.JspbEncodingConfig(); } input.ReadMessage(JspbEncodingOptions); break; } case 58: { JspbPayload = input.ReadString(); break; } } } }
public void MergeFrom(ConformanceRequest other) { if (other == null) { return; } if (other.RequestedOutputFormat != 0) { RequestedOutputFormat = other.RequestedOutputFormat; } if (other.MessageType.Length != 0) { MessageType = other.MessageType; } if (other.TestCategory != 0) { TestCategory = other.TestCategory; } if (other.jspbEncodingOptions_ != null) { if (jspbEncodingOptions_ == null) { JspbEncodingOptions = new global::Conformance.JspbEncodingConfig(); } JspbEncodingOptions.MergeFrom(other.JspbEncodingOptions); } switch (other.PayloadCase) { case PayloadOneofCase.ProtobufPayload: ProtobufPayload = other.ProtobufPayload; break; case PayloadOneofCase.JsonPayload: JsonPayload = other.JsonPayload; break; case PayloadOneofCase.JspbPayload: JspbPayload = other.JspbPayload; break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }