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); }
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); }
public void MergeFrom(NotificationConfig other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Description.Length != 0) { Description = other.Description; } if (other.PubsubTopic.Length != 0) { PubsubTopic = other.PubsubTopic; } if (other.ServiceAccount.Length != 0) { ServiceAccount = other.ServiceAccount; } switch (other.NotifyConfigCase) { case NotifyConfigOneofCase.StreamingConfig: if (StreamingConfig == null) { StreamingConfig = new global::Google.Cloud.SecurityCenter.V1.NotificationConfig.Types.StreamingConfig(); } StreamingConfig.MergeFrom(other.StreamingConfig); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }