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

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (EventType != 0)
            {
                hash ^= EventType.GetHashCode();
            }
            if (PubsubTopic.Length != 0)
            {
                hash ^= PubsubTopic.GetHashCode();
            }
            if (ServiceAccount.Length != 0)
            {
                hash ^= ServiceAccount.GetHashCode();
            }
            if (notifyConfigCase_ == NotifyConfigOneofCase.StreamingConfig)
            {
                hash ^= StreamingConfig.GetHashCode();
            }
            hash ^= (int)notifyConfigCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (EventType != global::Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig.Types.EventType.Unspecified)
            {
                hash ^= EventType.GetHashCode();
            }
            if (PubsubTopic.Length != 0)
            {
                hash ^= PubsubTopic.GetHashCode();
            }
            if (ServiceAccount.Length != 0)
            {
                hash ^= ServiceAccount.GetHashCode();
            }
            if (notifyConfigCase_ == NotifyConfigOneofCase.StreamingConfig)
            {
                hash ^= StreamingConfig.GetHashCode();
            }
            hash ^= (int)notifyConfigCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }