public void MergeFrom(SubscriberEvent other)
        {
            if (other == null)
            {
                return;
            }
            switch (other.EventCase)
            {
            case EventOneofCase.CustomerEvent:
                if (CustomerEvent == null)
                {
                    CustomerEvent = new global::Google.Cloud.Channel.V1.CustomerEvent();
                }
                CustomerEvent.MergeFrom(other.CustomerEvent);
                break;

            case EventOneofCase.EntitlementEvent:
                if (EntitlementEvent == null)
                {
                    EntitlementEvent = new global::Google.Cloud.Channel.V1.EntitlementEvent();
                }
                EntitlementEvent.MergeFrom(other.EntitlementEvent);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (eventCase_ == EventOneofCase.CustomerEvent)
            {
                hash ^= CustomerEvent.GetHashCode();
            }
            if (eventCase_ == EventOneofCase.EntitlementEvent)
            {
                hash ^= EntitlementEvent.GetHashCode();
            }
            hash ^= (int)eventCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }