Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }