public void MergeFrom(LogMetadata other) { if (other == null) { return; } if (other.modelSpec_ != null) { if (modelSpec_ == null) { ModelSpec = new global::Tensorflow.Serving.ModelSpec(); } ModelSpec.MergeFrom(other.ModelSpec); } if (other.samplingConfig_ != null) { if (samplingConfig_ == null) { SamplingConfig = new global::Tensorflow.Serving.SamplingConfig(); } SamplingConfig.MergeFrom(other.SamplingConfig); } savedModelTags_.Add(other.savedModelTags_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (modelSpec_ != null) { hash ^= ModelSpec.GetHashCode(); } if (samplingConfig_ != null) { hash ^= SamplingConfig.GetHashCode(); } hash ^= savedModelTags_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }