public override int GetHashCode() { int hash = 1; if (sourceCase_ == SourceOneofCase.GcsSource) { hash ^= GcsSource.GetHashCode(); } hash ^= Params.GetHashCode(); hash ^= (int)sourceCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(InputConfig other) { if (other == null) { return; } params_.Add(other.params_); switch (other.SourceCase) { case SourceOneofCase.GcsSource: if (GcsSource == null) { GcsSource = new global::Google.Cloud.AutoML.V1.GcsSource(); } GcsSource.MergeFrom(other.GcsSource); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }