Ejemplo n.º 1
0
 public void MergeFrom(Featurestore other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.createTime_ != null)
     {
         if (createTime_ == null)
         {
             CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         CreateTime.MergeFrom(other.CreateTime);
     }
     if (other.updateTime_ != null)
     {
         if (updateTime_ == null)
         {
             UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         UpdateTime.MergeFrom(other.UpdateTime);
     }
     if (other.Etag.Length != 0)
     {
         Etag = other.Etag;
     }
     labels_.Add(other.labels_);
     if (other.onlineServingConfig_ != null)
     {
         if (onlineServingConfig_ == null)
         {
             OnlineServingConfig = new global::Google.Cloud.AIPlatform.V1.Featurestore.Types.OnlineServingConfig();
         }
         OnlineServingConfig.MergeFrom(other.OnlineServingConfig);
     }
     if (other.State != global::Google.Cloud.AIPlatform.V1.Featurestore.Types.State.Unspecified)
     {
         State = other.State;
     }
     if (other.encryptionSpec_ != null)
     {
         if (encryptionSpec_ == null)
         {
             EncryptionSpec = new global::Google.Cloud.AIPlatform.V1.EncryptionSpec();
         }
         EncryptionSpec.MergeFrom(other.EncryptionSpec);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (createTime_ != null)
            {
                hash ^= CreateTime.GetHashCode();
            }
            if (updateTime_ != null)
            {
                hash ^= UpdateTime.GetHashCode();
            }
            if (Etag.Length != 0)
            {
                hash ^= Etag.GetHashCode();
            }
            hash ^= Labels.GetHashCode();
            if (onlineServingConfig_ != null)
            {
                hash ^= OnlineServingConfig.GetHashCode();
            }
            if (State != global::Google.Cloud.AIPlatform.V1.Featurestore.Types.State.Unspecified)
            {
                hash ^= State.GetHashCode();
            }
            if (encryptionSpec_ != null)
            {
                hash ^= EncryptionSpec.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }