public void MergeFrom(NotificationMessage other) { if (other == null) { return; } if (other.NotificationConfigName.Length != 0) { NotificationConfigName = other.NotificationConfigName; } if (other.resource_ != null) { if (resource_ == null) { Resource = new global::Google.Cloud.SecurityCenter.V1P1Beta1.Resource(); } Resource.MergeFrom(other.Resource); } switch (other.EventCase) { case EventOneofCase.Finding: if (Finding == null) { Finding = new global::Google.Cloud.SecurityCenter.V1P1Beta1.Finding(); } Finding.MergeFrom(other.Finding); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (NotificationConfigName.Length != 0) { hash ^= NotificationConfigName.GetHashCode(); } if (eventCase_ == EventOneofCase.Finding) { hash ^= Finding.GetHashCode(); } hash ^= (int)eventCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }