public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (BasePath.Length != 0) { hash ^= BasePath.GetHashCode(); } if (ModelType != 0) { hash ^= ModelType.GetHashCode(); } if (ModelPlatform.Length != 0) { hash ^= ModelPlatform.GetHashCode(); } if (modelVersionPolicy_ != null) { hash ^= ModelVersionPolicy.GetHashCode(); } hash ^= VersionLabels.GetHashCode(); if (loggingConfig_ != null) { hash ^= LoggingConfig.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(ModelConfig other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.BasePath.Length != 0) { BasePath = other.BasePath; } if (other.ModelType != 0) { ModelType = other.ModelType; } if (other.ModelPlatform.Length != 0) { ModelPlatform = other.ModelPlatform; } if (other.modelVersionPolicy_ != null) { if (modelVersionPolicy_ == null) { ModelVersionPolicy = new global::Tensorflow.Serving.FileSystemStoragePathSourceConfig.Types.ServableVersionPolicy(); } ModelVersionPolicy.MergeFrom(other.ModelVersionPolicy); } versionLabels_.Add(other.versionLabels_); if (other.loggingConfig_ != null) { if (loggingConfig_ == null) { LoggingConfig = new global::Tensorflow.Serving.LoggingConfig(); } LoggingConfig.MergeFrom(other.LoggingConfig); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }