Beispiel #1
0
 public void MergeFrom(AuthorizedCertificate other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.DisplayName.Length != 0)
     {
         DisplayName = other.DisplayName;
     }
     domainNames_.Add(other.domainNames_);
     if (other.expireTime_ != null)
     {
         if (expireTime_ == null)
         {
             ExpireTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
         }
         ExpireTime.MergeFrom(other.ExpireTime);
     }
     if (other.certificateRawData_ != null)
     {
         if (certificateRawData_ == null)
         {
             CertificateRawData = new global::Google.Cloud.AppEngine.V1.CertificateRawData();
         }
         CertificateRawData.MergeFrom(other.CertificateRawData);
     }
     if (other.managedCertificate_ != null)
     {
         if (managedCertificate_ == null)
         {
             ManagedCertificate = new global::Google.Cloud.AppEngine.V1.ManagedCertificate();
         }
         ManagedCertificate.MergeFrom(other.ManagedCertificate);
     }
     visibleDomainMappings_.Add(other.visibleDomainMappings_);
     if (other.DomainMappingsCount != 0)
     {
         DomainMappingsCount = other.DomainMappingsCount;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #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);
        }