public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (expireTime_ != null)
            {
                hash ^= ExpireTime.GetHashCode();
            }
            if (DataFormat != 0)
            {
                hash ^= DataFormat.GetHashCode();
            }
            if (schemaCase_ == SchemaOneofCase.AvroSchema)
            {
                hash ^= AvroSchema.GetHashCode();
            }
            if (schemaCase_ == SchemaOneofCase.ArrowSchema)
            {
                hash ^= ArrowSchema.GetHashCode();
            }
            if (Table.Length != 0)
            {
                hash ^= Table.GetHashCode();
            }
            if (tableModifiers_ != null)
            {
                hash ^= TableModifiers.GetHashCode();
            }
            if (readOptions_ != null)
            {
                hash ^= ReadOptions.GetHashCode();
            }
            hash ^= streams_.GetHashCode();
            hash ^= (int)schemaCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
示例#2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (DisplayName.Length != 0)
            {
                hash ^= DisplayName.GetHashCode();
            }
            hash ^= domainNames_.GetHashCode();
            if (expireTime_ != null)
            {
                hash ^= ExpireTime.GetHashCode();
            }
            if (certificateRawData_ != null)
            {
                hash ^= CertificateRawData.GetHashCode();
            }
            if (managedCertificate_ != null)
            {
                hash ^= ManagedCertificate.GetHashCode();
            }
            hash ^= visibleDomainMappings_.GetHashCode();
            if (DomainMappingsCount != 0)
            {
                hash ^= DomainMappingsCount.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }