Ejemplo n.º 1
0
 public bool Equals(NotificationChannel other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     if (ReferenceEquals(other, this))
     {
         return(true);
     }
     if (Type != other.Type)
     {
         return(false);
     }
     if (Name != other.Name)
     {
         return(false);
     }
     if (DisplayName != other.DisplayName)
     {
         return(false);
     }
     if (Description != other.Description)
     {
         return(false);
     }
     if (!Labels.Equals(other.Labels))
     {
         return(false);
     }
     if (!UserLabels.Equals(other.UserLabels))
     {
         return(false);
     }
     if (VerificationStatus != other.VerificationStatus)
     {
         return(false);
     }
     if (Enabled != other.Enabled)
     {
         return(false);
     }
     return(Equals(_unknownFields, other._unknownFields));
 }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Type.Length != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (DisplayName.Length != 0)
            {
                hash ^= DisplayName.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            hash ^= Labels.GetHashCode();
            hash ^= UserLabels.GetHashCode();
            if (VerificationStatus != global::Google.Cloud.Monitoring.V3.NotificationChannel.Types.VerificationStatus.Unspecified)
            {
                hash ^= VerificationStatus.GetHashCode();
            }
            if (enabled_ != null)
            {
                hash ^= Enabled.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Type.Length != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (DisplayName.Length != 0)
            {
                hash ^= DisplayName.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            hash ^= Labels.GetHashCode();
            hash ^= UserLabels.GetHashCode();
            if (VerificationStatus != 0)
            {
                hash ^= VerificationStatus.GetHashCode();
            }
            if (enabled_ != null)
            {
                hash ^= Enabled.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }