public void MergeFrom(BatchPredictRequest other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.inputConfig_ != null) { if (inputConfig_ == null) { InputConfig = new global::Google.Cloud.AutoML.V1.BatchPredictInputConfig(); } InputConfig.MergeFrom(other.InputConfig); } if (other.outputConfig_ != null) { if (outputConfig_ == null) { OutputConfig = new global::Google.Cloud.AutoML.V1.BatchPredictOutputConfig(); } OutputConfig.MergeFrom(other.OutputConfig); } params_.Add(other.params_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Name = input.ReadString(); break; } case 26: { if (inputConfig_ == null) { InputConfig = new global::Google.Cloud.AutoML.V1.BatchPredictInputConfig(); } input.ReadMessage(InputConfig); break; } case 34: { if (outputConfig_ == null) { OutputConfig = new global::Google.Cloud.AutoML.V1.BatchPredictOutputConfig(); } input.ReadMessage(OutputConfig); break; } case 42: { params_.AddEntriesFrom(input, _map_params_codec); break; } } } }