public override int GetHashCode()
        {
            int hash = 1;

            if (configSourceSpecifierCase_ == ConfigSourceSpecifierOneofCase.Path)
            {
                hash ^= Path.GetHashCode();
            }
            if (configSourceSpecifierCase_ == ConfigSourceSpecifierOneofCase.ApiConfigSource)
            {
                hash ^= ApiConfigSource.GetHashCode();
            }
            if (configSourceSpecifierCase_ == ConfigSourceSpecifierOneofCase.Ads)
            {
                hash ^= Ads.GetHashCode();
            }
            if (initialFetchTimeout_ != null)
            {
                hash ^= InitialFetchTimeout.GetHashCode();
            }
            hash ^= (int)configSourceSpecifierCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public void MergeFrom(ConfigSource other)
        {
            if (other == null)
            {
                return;
            }
            switch (other.ConfigSourceSpecifierCase)
            {
            case ConfigSourceSpecifierOneofCase.Path:
                Path = other.Path;
                break;

            case ConfigSourceSpecifierOneofCase.ApiConfigSource:
                if (ApiConfigSource == null)
                {
                    ApiConfigSource = new global::Envoy.Api.V2.Core.ApiConfigSource();
                }
                ApiConfigSource.MergeFrom(other.ApiConfigSource);
                break;

            case ConfigSourceSpecifierOneofCase.Ads:
                if (Ads == null)
                {
                    Ads = new global::Envoy.Api.V2.Core.AggregatedConfigSource();
                }
                Ads.MergeFrom(other.Ads);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
        public void MergeFrom(ConfigSource other)
        {
            if (other == null)
            {
                return;
            }
            if (other.initialFetchTimeout_ != null)
            {
                if (initialFetchTimeout_ == null)
                {
                    InitialFetchTimeout = new global::Google.Protobuf.WellKnownTypes.Duration();
                }
                InitialFetchTimeout.MergeFrom(other.InitialFetchTimeout);
            }
            switch (other.ConfigSourceSpecifierCase)
            {
            case ConfigSourceSpecifierOneofCase.Path:
                Path = other.Path;
                break;

            case ConfigSourceSpecifierOneofCase.ApiConfigSource:
                if (ApiConfigSource == null)
                {
                    ApiConfigSource = new global::Envoy.Api.V2.Core.ApiConfigSource();
                }
                ApiConfigSource.MergeFrom(other.ApiConfigSource);
                break;

            case ConfigSourceSpecifierOneofCase.Ads:
                if (Ads == null)
                {
                    Ads = new global::Envoy.Api.V2.Core.AggregatedConfigSource();
                }
                Ads.MergeFrom(other.Ads);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }