Exemple #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (configVersion_ != null)
            {
                hash ^= ConfigVersion.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Title.Length != 0)
            {
                hash ^= Title.GetHashCode();
            }
            if (ProducerProjectId.Length != 0)
            {
                hash ^= ProducerProjectId.GetHashCode();
            }
            hash ^= apis_.GetHashCode();
            hash ^= types_.GetHashCode();
            hash ^= enums_.GetHashCode();
            if (documentation_ != null)
            {
                hash ^= Documentation.GetHashCode();
            }
            if (backend_ != null)
            {
                hash ^= Backend.GetHashCode();
            }
            if (http_ != null)
            {
                hash ^= Http.GetHashCode();
            }
            if (quota_ != null)
            {
                hash ^= Quota.GetHashCode();
            }
            if (authentication_ != null)
            {
                hash ^= Authentication.GetHashCode();
            }
            if (context_ != null)
            {
                hash ^= Context.GetHashCode();
            }
            if (usage_ != null)
            {
                hash ^= Usage.GetHashCode();
            }
            hash ^= endpoints_.GetHashCode();
            if (control_ != null)
            {
                hash ^= Control.GetHashCode();
            }
            hash ^= logs_.GetHashCode();
            hash ^= metrics_.GetHashCode();
            hash ^= monitoredResources_.GetHashCode();
            if (logging_ != null)
            {
                hash ^= Logging.GetHashCode();
            }
            if (monitoring_ != null)
            {
                hash ^= Monitoring.GetHashCode();
            }
            if (systemParameters_ != null)
            {
                hash ^= SystemParameters.GetHashCode();
            }
            if (sourceInfo_ != null)
            {
                hash ^= SourceInfo.GetHashCode();
            }
            if (experimental_ != null)
            {
                hash ^= Experimental.GetHashCode();
            }
            return(hash);
        }