public void MergeFrom(Capture other)
        {
            if (other == null)
            {
                return;
            }
            if (other.transportSocket_ != null)
            {
                if (transportSocket_ == null)
                {
                    transportSocket_ = new global::Envoy.Api.V2.Core.TransportSocket();
                }
                TransportSocket.MergeFrom(other.TransportSocket);
            }
            switch (other.SinkSelectorCase)
            {
            case SinkSelectorOneofCase.FileSink:
                if (FileSink == null)
                {
                    FileSink = new global::Envoy.Config.TransportSocket.Capture.V2Alpha.FileSink();
                }
                FileSink.MergeFrom(other.FileSink);
                break;
            }

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

            if (sinkSelectorCase_ == SinkSelectorOneofCase.FileSink)
            {
                hash ^= FileSink.GetHashCode();
            }
            if (transportSocket_ != null)
            {
                hash ^= TransportSocket.GetHashCode();
            }
            hash ^= (int)sinkSelectorCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }