Example #1
0
        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);
        }
Example #2
0
 public bool Equals(ModelConfig other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     if (ReferenceEquals(other, this))
     {
         return(true);
     }
     if (Name != other.Name)
     {
         return(false);
     }
     if (BasePath != other.BasePath)
     {
         return(false);
     }
     if (ModelType != other.ModelType)
     {
         return(false);
     }
     if (ModelPlatform != other.ModelPlatform)
     {
         return(false);
     }
     if (!object.Equals(ModelVersionPolicy, other.ModelVersionPolicy))
     {
         return(false);
     }
     if (!VersionLabels.Equals(other.VersionLabels))
     {
         return(false);
     }
     if (!object.Equals(LoggingConfig, other.LoggingConfig))
     {
         return(false);
     }
     return(Equals(_unknownFields, other._unknownFields));
 }