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.EventType != 0)
            {
                EventType = other.EventType;
            }
            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.V1P1Beta1.NotificationConfig.Types.StreamingConfig();
                }
                StreamingConfig.MergeFrom(other.StreamingConfig);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    Name = input.ReadString();
                    break;
                }

                case 18: {
                    Description = input.ReadString();
                    break;
                }

                case 24: {
                    EventType = (global::Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig.Types.EventType)input.ReadEnum();
                    break;
                }

                case 34: {
                    PubsubTopic = input.ReadString();
                    break;
                }

                case 42: {
                    ServiceAccount = input.ReadString();
                    break;
                }

                case 50: {
                    global::Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig.Types.StreamingConfig subBuilder = new global::Google.Cloud.SecurityCenter.V1P1Beta1.NotificationConfig.Types.StreamingConfig();
                    if (notifyConfigCase_ == NotifyConfigOneofCase.StreamingConfig)
                    {
                        subBuilder.MergeFrom(StreamingConfig);
                    }
                    input.ReadMessage(subBuilder);
                    StreamingConfig = subBuilder;
                    break;
                }
                }
            }
        }