Пример #1
0
 public void MergeFrom(BatchPredictRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.inputConfig_ != null)
     {
         if (inputConfig_ == null)
         {
             InputConfig = new global::Google.Cloud.AutoML.V1.BatchPredictInputConfig();
         }
         InputConfig.MergeFrom(other.InputConfig);
     }
     if (other.outputConfig_ != null)
     {
         if (outputConfig_ == null)
         {
             OutputConfig = new global::Google.Cloud.AutoML.V1.BatchPredictOutputConfig();
         }
         OutputConfig.MergeFrom(other.OutputConfig);
     }
     params_.Add(other.params_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (inputConfig_ != null)
            {
                hash ^= InputConfig.GetHashCode();
            }
            if (outputConfig_ != null)
            {
                hash ^= OutputConfig.GetHashCode();
            }
            hash ^= Params.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }