public void MergeFrom(TrainModelTask other) { if (other == null) { return; } if (other.dataset_ != null) { if (dataset_ == null) { Dataset = new global::Asgt.Type.Dataset(); } Dataset.MergeFrom(other.Dataset); } if (other.revision_ != null) { if (revision_ == null) { Revision = new global::Asgt.Type.Revision(); } Revision.MergeFrom(other.Revision); } if (other.ModelVersion != 0L) { ModelVersion = other.ModelVersion; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(RegisterModelRequest other) { if (other == null) { return; } if (other.dataset_ != null) { if (dataset_ == null) { Dataset = new global::Asgt.Type.Dataset(); } Dataset.MergeFrom(other.Dataset); } if (other.revision_ != null) { if (revision_ == null) { Revision = new global::Asgt.Type.Revision(); } Revision.MergeFrom(other.Revision); } if (other.ModelVersion != 0L) { ModelVersion = other.ModelVersion; } metrics_.Add(other.metrics_); targetMetrics_.Add(other.targetMetrics_); if (other.InputType != global::Asgt.Type.Model.Types.InputType.FeatureTensors) { InputType = other.InputType; } if (other.trainStatistics_ != null) { if (trainStatistics_ == null) { TrainStatistics = new global::Asgt.Type.TrainStatistics(); } TrainStatistics.MergeFrom(other.TrainStatistics); } _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: { if (dataset_ == null) { Dataset = new global::Asgt.Type.Dataset(); } input.ReadMessage(Dataset); break; } case 18: { if (revision_ == null) { Revision = new global::Asgt.Type.Revision(); } input.ReadMessage(Revision); break; } case 24: { ModelVersion = input.ReadInt64(); break; } case 34: { metrics_.AddEntriesFrom(input, _map_metrics_codec); break; } case 42: { targetMetrics_.AddEntriesFrom(input, _repeated_targetMetrics_codec); break; } case 48: { InputType = (global::Asgt.Type.Model.Types.InputType)input.ReadEnum(); break; } case 58: { if (trainStatistics_ == null) { TrainStatistics = new global::Asgt.Type.TrainStatistics(); } input.ReadMessage(TrainStatistics); break; } } } }