Class ApiConfigSource.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ApiConfigSourceOrBuilder, java.lang.Cloneable
    Enclosing class:
    ApiConfigSource

    public static final class ApiConfigSource.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<ApiConfigSource.Builder>
    implements ApiConfigSourceOrBuilder
     API configuration source. This identifies the API type and cluster that Envoy
     will use to fetch an xDS API.
     [#next-free-field: 10]
     
    Protobuf type envoy.config.core.v3.ApiConfigSource
    • Field Detail

      • bitField0_

        private int bitField0_
      • apiType_

        private int apiType_
      • transportApiVersion_

        private int transportApiVersion_
      • clusterNames_

        private com.google.protobuf.LazyStringArrayList clusterNames_
      • grpcServices_

        private java.util.List<GrpcService> grpcServices_
      • refreshDelay_

        private com.google.protobuf.Duration refreshDelay_
      • refreshDelayBuilder_

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,​com.google.protobuf.Duration.Builder,​com.google.protobuf.DurationOrBuilder> refreshDelayBuilder_
      • requestTimeout_

        private com.google.protobuf.Duration requestTimeout_
      • requestTimeoutBuilder_

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,​com.google.protobuf.Duration.Builder,​com.google.protobuf.DurationOrBuilder> requestTimeoutBuilder_
      • setNodeOnFirstMessageOnly_

        private boolean setNodeOnFirstMessageOnly_
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ApiConfigSource.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • clear

        public ApiConfigSource.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<ApiConfigSource.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ApiConfigSource.Builder>
      • getDefaultInstanceForType

        public ApiConfigSource getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ApiConfigSource build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ApiConfigSource buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • buildPartialRepeatedFields

        private void buildPartialRepeatedFields​(ApiConfigSource result)
      • mergeFrom

        public ApiConfigSource.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ApiConfigSource.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ApiConfigSource.Builder>
      • mergeFrom

        public ApiConfigSource.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ApiConfigSource.Builder>
        Throws:
        java.io.IOException
      • getApiTypeValue

        public int getApiTypeValue()
         API type (gRPC, REST, delta gRPC)
         
        .envoy.config.core.v3.ApiConfigSource.ApiType api_type = 1 [(.validate.rules) = { ... }
        Specified by:
        getApiTypeValue in interface ApiConfigSourceOrBuilder
        Returns:
        The enum numeric value on the wire for apiType.
      • setApiTypeValue

        public ApiConfigSource.Builder setApiTypeValue​(int value)
         API type (gRPC, REST, delta gRPC)
         
        .envoy.config.core.v3.ApiConfigSource.ApiType api_type = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The enum numeric value on the wire for apiType to set.
        Returns:
        This builder for chaining.
      • setApiType

        public ApiConfigSource.Builder setApiType​(ApiConfigSource.ApiType value)
         API type (gRPC, REST, delta gRPC)
         
        .envoy.config.core.v3.ApiConfigSource.ApiType api_type = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The apiType to set.
        Returns:
        This builder for chaining.
      • clearApiType

        public ApiConfigSource.Builder clearApiType()
         API type (gRPC, REST, delta gRPC)
         
        .envoy.config.core.v3.ApiConfigSource.ApiType api_type = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • getTransportApiVersionValue

        public int getTransportApiVersionValue()
         API version for xDS transport protocol. This describes the xDS gRPC/REST
         endpoint and version of [Delta]DiscoveryRequest/Response used on the wire.
         
        .envoy.config.core.v3.ApiVersion transport_api_version = 8 [(.validate.rules) = { ... }
        Specified by:
        getTransportApiVersionValue in interface ApiConfigSourceOrBuilder
        Returns:
        The enum numeric value on the wire for transportApiVersion.
      • setTransportApiVersionValue

        public ApiConfigSource.Builder setTransportApiVersionValue​(int value)
         API version for xDS transport protocol. This describes the xDS gRPC/REST
         endpoint and version of [Delta]DiscoveryRequest/Response used on the wire.
         
        .envoy.config.core.v3.ApiVersion transport_api_version = 8 [(.validate.rules) = { ... }
        Parameters:
        value - The enum numeric value on the wire for transportApiVersion to set.
        Returns:
        This builder for chaining.
      • getTransportApiVersion

        public ApiVersion getTransportApiVersion()
         API version for xDS transport protocol. This describes the xDS gRPC/REST
         endpoint and version of [Delta]DiscoveryRequest/Response used on the wire.
         
        .envoy.config.core.v3.ApiVersion transport_api_version = 8 [(.validate.rules) = { ... }
        Specified by:
        getTransportApiVersion in interface ApiConfigSourceOrBuilder
        Returns:
        The transportApiVersion.
      • setTransportApiVersion

        public ApiConfigSource.Builder setTransportApiVersion​(ApiVersion value)
         API version for xDS transport protocol. This describes the xDS gRPC/REST
         endpoint and version of [Delta]DiscoveryRequest/Response used on the wire.
         
        .envoy.config.core.v3.ApiVersion transport_api_version = 8 [(.validate.rules) = { ... }
        Parameters:
        value - The transportApiVersion to set.
        Returns:
        This builder for chaining.
      • clearTransportApiVersion

        public ApiConfigSource.Builder clearTransportApiVersion()
         API version for xDS transport protocol. This describes the xDS gRPC/REST
         endpoint and version of [Delta]DiscoveryRequest/Response used on the wire.
         
        .envoy.config.core.v3.ApiVersion transport_api_version = 8 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • ensureClusterNamesIsMutable

        private void ensureClusterNamesIsMutable()
      • getClusterNamesList

        public com.google.protobuf.ProtocolStringList getClusterNamesList()
         Cluster names should be used only with REST. If > 1
         cluster is defined, clusters will be cycled through if any kind of failure
         occurs.
        
         .. note::
        
         The cluster with name ``cluster_name`` must be statically defined and its
         type must not be ``EDS``.
         
        repeated string cluster_names = 2;
        Specified by:
        getClusterNamesList in interface ApiConfigSourceOrBuilder
        Returns:
        A list containing the clusterNames.
      • getClusterNamesCount

        public int getClusterNamesCount()
         Cluster names should be used only with REST. If > 1
         cluster is defined, clusters will be cycled through if any kind of failure
         occurs.
        
         .. note::
        
         The cluster with name ``cluster_name`` must be statically defined and its
         type must not be ``EDS``.
         
        repeated string cluster_names = 2;
        Specified by:
        getClusterNamesCount in interface ApiConfigSourceOrBuilder
        Returns:
        The count of clusterNames.
      • getClusterNames

        public java.lang.String getClusterNames​(int index)
         Cluster names should be used only with REST. If > 1
         cluster is defined, clusters will be cycled through if any kind of failure
         occurs.
        
         .. note::
        
         The cluster with name ``cluster_name`` must be statically defined and its
         type must not be ``EDS``.
         
        repeated string cluster_names = 2;
        Specified by:
        getClusterNames in interface ApiConfigSourceOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The clusterNames at the given index.
      • getClusterNamesBytes

        public com.google.protobuf.ByteString getClusterNamesBytes​(int index)
         Cluster names should be used only with REST. If > 1
         cluster is defined, clusters will be cycled through if any kind of failure
         occurs.
        
         .. note::
        
         The cluster with name ``cluster_name`` must be statically defined and its
         type must not be ``EDS``.
         
        repeated string cluster_names = 2;
        Specified by:
        getClusterNamesBytes in interface ApiConfigSourceOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the clusterNames at the given index.
      • setClusterNames

        public ApiConfigSource.Builder setClusterNames​(int index,
                                                       java.lang.String value)
         Cluster names should be used only with REST. If > 1
         cluster is defined, clusters will be cycled through if any kind of failure
         occurs.
        
         .. note::
        
         The cluster with name ``cluster_name`` must be statically defined and its
         type must not be ``EDS``.
         
        repeated string cluster_names = 2;
        Parameters:
        index - The index to set the value at.
        value - The clusterNames to set.
        Returns:
        This builder for chaining.
      • addClusterNames

        public ApiConfigSource.Builder addClusterNames​(java.lang.String value)
         Cluster names should be used only with REST. If > 1
         cluster is defined, clusters will be cycled through if any kind of failure
         occurs.
        
         .. note::
        
         The cluster with name ``cluster_name`` must be statically defined and its
         type must not be ``EDS``.
         
        repeated string cluster_names = 2;
        Parameters:
        value - The clusterNames to add.
        Returns:
        This builder for chaining.
      • addAllClusterNames

        public ApiConfigSource.Builder addAllClusterNames​(java.lang.Iterable<java.lang.String> values)
         Cluster names should be used only with REST. If > 1
         cluster is defined, clusters will be cycled through if any kind of failure
         occurs.
        
         .. note::
        
         The cluster with name ``cluster_name`` must be statically defined and its
         type must not be ``EDS``.
         
        repeated string cluster_names = 2;
        Parameters:
        values - The clusterNames to add.
        Returns:
        This builder for chaining.
      • clearClusterNames

        public ApiConfigSource.Builder clearClusterNames()
         Cluster names should be used only with REST. If > 1
         cluster is defined, clusters will be cycled through if any kind of failure
         occurs.
        
         .. note::
        
         The cluster with name ``cluster_name`` must be statically defined and its
         type must not be ``EDS``.
         
        repeated string cluster_names = 2;
        Returns:
        This builder for chaining.
      • addClusterNamesBytes

        public ApiConfigSource.Builder addClusterNamesBytes​(com.google.protobuf.ByteString value)
         Cluster names should be used only with REST. If > 1
         cluster is defined, clusters will be cycled through if any kind of failure
         occurs.
        
         .. note::
        
         The cluster with name ``cluster_name`` must be statically defined and its
         type must not be ``EDS``.
         
        repeated string cluster_names = 2;
        Parameters:
        value - The bytes of the clusterNames to add.
        Returns:
        This builder for chaining.
      • ensureGrpcServicesIsMutable

        private void ensureGrpcServicesIsMutable()
      • getGrpcServicesList

        public java.util.List<GrpcService> getGrpcServicesList()
         Multiple gRPC services be provided for GRPC. If > 1 cluster is defined,
         services will be cycled through if any kind of failure occurs.
         
        repeated .envoy.config.core.v3.GrpcService grpc_services = 4;
        Specified by:
        getGrpcServicesList in interface ApiConfigSourceOrBuilder
      • getGrpcServicesCount

        public int getGrpcServicesCount()
         Multiple gRPC services be provided for GRPC. If > 1 cluster is defined,
         services will be cycled through if any kind of failure occurs.
         
        repeated .envoy.config.core.v3.GrpcService grpc_services = 4;
        Specified by:
        getGrpcServicesCount in interface ApiConfigSourceOrBuilder
      • getGrpcServices

        public GrpcService getGrpcServices​(int index)
         Multiple gRPC services be provided for GRPC. If > 1 cluster is defined,
         services will be cycled through if any kind of failure occurs.
         
        repeated .envoy.config.core.v3.GrpcService grpc_services = 4;
        Specified by:
        getGrpcServices in interface ApiConfigSourceOrBuilder
      • setGrpcServices

        public ApiConfigSource.Builder setGrpcServices​(int index,
                                                       GrpcService value)
         Multiple gRPC services be provided for GRPC. If > 1 cluster is defined,
         services will be cycled through if any kind of failure occurs.
         
        repeated .envoy.config.core.v3.GrpcService grpc_services = 4;
      • setGrpcServices

        public ApiConfigSource.Builder setGrpcServices​(int index,
                                                       GrpcService.Builder builderForValue)
         Multiple gRPC services be provided for GRPC. If > 1 cluster is defined,
         services will be cycled through if any kind of failure occurs.
         
        repeated .envoy.config.core.v3.GrpcService grpc_services = 4;
      • addGrpcServices

        public ApiConfigSource.Builder addGrpcServices​(GrpcService value)
         Multiple gRPC services be provided for GRPC. If > 1 cluster is defined,
         services will be cycled through if any kind of failure occurs.
         
        repeated .envoy.config.core.v3.GrpcService grpc_services = 4;
      • addGrpcServices

        public ApiConfigSource.Builder addGrpcServices​(int index,
                                                       GrpcService value)
         Multiple gRPC services be provided for GRPC. If > 1 cluster is defined,
         services will be cycled through if any kind of failure occurs.
         
        repeated .envoy.config.core.v3.GrpcService grpc_services = 4;
      • addGrpcServices

        public ApiConfigSource.Builder addGrpcServices​(GrpcService.Builder builderForValue)
         Multiple gRPC services be provided for GRPC. If > 1 cluster is defined,
         services will be cycled through if any kind of failure occurs.
         
        repeated .envoy.config.core.v3.GrpcService grpc_services = 4;
      • addGrpcServices

        public ApiConfigSource.Builder addGrpcServices​(int index,
                                                       GrpcService.Builder builderForValue)
         Multiple gRPC services be provided for GRPC. If > 1 cluster is defined,
         services will be cycled through if any kind of failure occurs.
         
        repeated .envoy.config.core.v3.GrpcService grpc_services = 4;
      • addAllGrpcServices

        public ApiConfigSource.Builder addAllGrpcServices​(java.lang.Iterable<? extends GrpcService> values)
         Multiple gRPC services be provided for GRPC. If > 1 cluster is defined,
         services will be cycled through if any kind of failure occurs.
         
        repeated .envoy.config.core.v3.GrpcService grpc_services = 4;
      • clearGrpcServices

        public ApiConfigSource.Builder clearGrpcServices()
         Multiple gRPC services be provided for GRPC. If > 1 cluster is defined,
         services will be cycled through if any kind of failure occurs.
         
        repeated .envoy.config.core.v3.GrpcService grpc_services = 4;
      • removeGrpcServices

        public ApiConfigSource.Builder removeGrpcServices​(int index)
         Multiple gRPC services be provided for GRPC. If > 1 cluster is defined,
         services will be cycled through if any kind of failure occurs.
         
        repeated .envoy.config.core.v3.GrpcService grpc_services = 4;
      • getGrpcServicesBuilder

        public GrpcService.Builder getGrpcServicesBuilder​(int index)
         Multiple gRPC services be provided for GRPC. If > 1 cluster is defined,
         services will be cycled through if any kind of failure occurs.
         
        repeated .envoy.config.core.v3.GrpcService grpc_services = 4;
      • getGrpcServicesOrBuilder

        public GrpcServiceOrBuilder getGrpcServicesOrBuilder​(int index)
         Multiple gRPC services be provided for GRPC. If > 1 cluster is defined,
         services will be cycled through if any kind of failure occurs.
         
        repeated .envoy.config.core.v3.GrpcService grpc_services = 4;
        Specified by:
        getGrpcServicesOrBuilder in interface ApiConfigSourceOrBuilder
      • getGrpcServicesOrBuilderList

        public java.util.List<? extends GrpcServiceOrBuilder> getGrpcServicesOrBuilderList()
         Multiple gRPC services be provided for GRPC. If > 1 cluster is defined,
         services will be cycled through if any kind of failure occurs.
         
        repeated .envoy.config.core.v3.GrpcService grpc_services = 4;
        Specified by:
        getGrpcServicesOrBuilderList in interface ApiConfigSourceOrBuilder
      • addGrpcServicesBuilder

        public GrpcService.Builder addGrpcServicesBuilder()
         Multiple gRPC services be provided for GRPC. If > 1 cluster is defined,
         services will be cycled through if any kind of failure occurs.
         
        repeated .envoy.config.core.v3.GrpcService grpc_services = 4;
      • addGrpcServicesBuilder

        public GrpcService.Builder addGrpcServicesBuilder​(int index)
         Multiple gRPC services be provided for GRPC. If > 1 cluster is defined,
         services will be cycled through if any kind of failure occurs.
         
        repeated .envoy.config.core.v3.GrpcService grpc_services = 4;
      • getGrpcServicesBuilderList

        public java.util.List<GrpcService.Builder> getGrpcServicesBuilderList()
         Multiple gRPC services be provided for GRPC. If > 1 cluster is defined,
         services will be cycled through if any kind of failure occurs.
         
        repeated .envoy.config.core.v3.GrpcService grpc_services = 4;
      • hasRefreshDelay

        public boolean hasRefreshDelay()
         For REST APIs, the delay between successive polls.
         
        .google.protobuf.Duration refresh_delay = 3;
        Specified by:
        hasRefreshDelay in interface ApiConfigSourceOrBuilder
        Returns:
        Whether the refreshDelay field is set.
      • getRefreshDelay

        public com.google.protobuf.Duration getRefreshDelay()
         For REST APIs, the delay between successive polls.
         
        .google.protobuf.Duration refresh_delay = 3;
        Specified by:
        getRefreshDelay in interface ApiConfigSourceOrBuilder
        Returns:
        The refreshDelay.
      • setRefreshDelay

        public ApiConfigSource.Builder setRefreshDelay​(com.google.protobuf.Duration value)
         For REST APIs, the delay between successive polls.
         
        .google.protobuf.Duration refresh_delay = 3;
      • setRefreshDelay

        public ApiConfigSource.Builder setRefreshDelay​(com.google.protobuf.Duration.Builder builderForValue)
         For REST APIs, the delay between successive polls.
         
        .google.protobuf.Duration refresh_delay = 3;
      • mergeRefreshDelay

        public ApiConfigSource.Builder mergeRefreshDelay​(com.google.protobuf.Duration value)
         For REST APIs, the delay between successive polls.
         
        .google.protobuf.Duration refresh_delay = 3;
      • clearRefreshDelay

        public ApiConfigSource.Builder clearRefreshDelay()
         For REST APIs, the delay between successive polls.
         
        .google.protobuf.Duration refresh_delay = 3;
      • getRefreshDelayBuilder

        public com.google.protobuf.Duration.Builder getRefreshDelayBuilder()
         For REST APIs, the delay between successive polls.
         
        .google.protobuf.Duration refresh_delay = 3;
      • getRefreshDelayOrBuilder

        public com.google.protobuf.DurationOrBuilder getRefreshDelayOrBuilder()
         For REST APIs, the delay between successive polls.
         
        .google.protobuf.Duration refresh_delay = 3;
        Specified by:
        getRefreshDelayOrBuilder in interface ApiConfigSourceOrBuilder
      • getRefreshDelayFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,​com.google.protobuf.Duration.Builder,​com.google.protobuf.DurationOrBuilder> getRefreshDelayFieldBuilder()
         For REST APIs, the delay between successive polls.
         
        .google.protobuf.Duration refresh_delay = 3;
      • hasRequestTimeout

        public boolean hasRequestTimeout()
         For REST APIs, the request timeout. If not set, a default value of 1s will be used.
         
        .google.protobuf.Duration request_timeout = 5 [(.validate.rules) = { ... }
        Specified by:
        hasRequestTimeout in interface ApiConfigSourceOrBuilder
        Returns:
        Whether the requestTimeout field is set.
      • getRequestTimeout

        public com.google.protobuf.Duration getRequestTimeout()
         For REST APIs, the request timeout. If not set, a default value of 1s will be used.
         
        .google.protobuf.Duration request_timeout = 5 [(.validate.rules) = { ... }
        Specified by:
        getRequestTimeout in interface ApiConfigSourceOrBuilder
        Returns:
        The requestTimeout.
      • setRequestTimeout

        public ApiConfigSource.Builder setRequestTimeout​(com.google.protobuf.Duration value)
         For REST APIs, the request timeout. If not set, a default value of 1s will be used.
         
        .google.protobuf.Duration request_timeout = 5 [(.validate.rules) = { ... }
      • setRequestTimeout

        public ApiConfigSource.Builder setRequestTimeout​(com.google.protobuf.Duration.Builder builderForValue)
         For REST APIs, the request timeout. If not set, a default value of 1s will be used.
         
        .google.protobuf.Duration request_timeout = 5 [(.validate.rules) = { ... }
      • mergeRequestTimeout

        public ApiConfigSource.Builder mergeRequestTimeout​(com.google.protobuf.Duration value)
         For REST APIs, the request timeout. If not set, a default value of 1s will be used.
         
        .google.protobuf.Duration request_timeout = 5 [(.validate.rules) = { ... }
      • clearRequestTimeout

        public ApiConfigSource.Builder clearRequestTimeout()
         For REST APIs, the request timeout. If not set, a default value of 1s will be used.
         
        .google.protobuf.Duration request_timeout = 5 [(.validate.rules) = { ... }
      • getRequestTimeoutBuilder

        public com.google.protobuf.Duration.Builder getRequestTimeoutBuilder()
         For REST APIs, the request timeout. If not set, a default value of 1s will be used.
         
        .google.protobuf.Duration request_timeout = 5 [(.validate.rules) = { ... }
      • getRequestTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getRequestTimeoutOrBuilder()
         For REST APIs, the request timeout. If not set, a default value of 1s will be used.
         
        .google.protobuf.Duration request_timeout = 5 [(.validate.rules) = { ... }
        Specified by:
        getRequestTimeoutOrBuilder in interface ApiConfigSourceOrBuilder
      • getRequestTimeoutFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,​com.google.protobuf.Duration.Builder,​com.google.protobuf.DurationOrBuilder> getRequestTimeoutFieldBuilder()
         For REST APIs, the request timeout. If not set, a default value of 1s will be used.
         
        .google.protobuf.Duration request_timeout = 5 [(.validate.rules) = { ... }
      • hasRateLimitSettings

        public boolean hasRateLimitSettings()
         For GRPC APIs, the rate limit settings. If present, discovery requests made by Envoy will be
         rate limited.
         
        .envoy.config.core.v3.RateLimitSettings rate_limit_settings = 6;
        Specified by:
        hasRateLimitSettings in interface ApiConfigSourceOrBuilder
        Returns:
        Whether the rateLimitSettings field is set.
      • getRateLimitSettings

        public RateLimitSettings getRateLimitSettings()
         For GRPC APIs, the rate limit settings. If present, discovery requests made by Envoy will be
         rate limited.
         
        .envoy.config.core.v3.RateLimitSettings rate_limit_settings = 6;
        Specified by:
        getRateLimitSettings in interface ApiConfigSourceOrBuilder
        Returns:
        The rateLimitSettings.
      • setRateLimitSettings

        public ApiConfigSource.Builder setRateLimitSettings​(RateLimitSettings value)
         For GRPC APIs, the rate limit settings. If present, discovery requests made by Envoy will be
         rate limited.
         
        .envoy.config.core.v3.RateLimitSettings rate_limit_settings = 6;
      • setRateLimitSettings

        public ApiConfigSource.Builder setRateLimitSettings​(RateLimitSettings.Builder builderForValue)
         For GRPC APIs, the rate limit settings. If present, discovery requests made by Envoy will be
         rate limited.
         
        .envoy.config.core.v3.RateLimitSettings rate_limit_settings = 6;
      • mergeRateLimitSettings

        public ApiConfigSource.Builder mergeRateLimitSettings​(RateLimitSettings value)
         For GRPC APIs, the rate limit settings. If present, discovery requests made by Envoy will be
         rate limited.
         
        .envoy.config.core.v3.RateLimitSettings rate_limit_settings = 6;
      • clearRateLimitSettings

        public ApiConfigSource.Builder clearRateLimitSettings()
         For GRPC APIs, the rate limit settings. If present, discovery requests made by Envoy will be
         rate limited.
         
        .envoy.config.core.v3.RateLimitSettings rate_limit_settings = 6;
      • getRateLimitSettingsBuilder

        public RateLimitSettings.Builder getRateLimitSettingsBuilder()
         For GRPC APIs, the rate limit settings. If present, discovery requests made by Envoy will be
         rate limited.
         
        .envoy.config.core.v3.RateLimitSettings rate_limit_settings = 6;
      • getRateLimitSettingsFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<RateLimitSettings,​RateLimitSettings.Builder,​RateLimitSettingsOrBuilder> getRateLimitSettingsFieldBuilder()
         For GRPC APIs, the rate limit settings. If present, discovery requests made by Envoy will be
         rate limited.
         
        .envoy.config.core.v3.RateLimitSettings rate_limit_settings = 6;
      • getSetNodeOnFirstMessageOnly

        public boolean getSetNodeOnFirstMessageOnly()
         Skip the node identifier in subsequent discovery requests for streaming gRPC config types.
         
        bool set_node_on_first_message_only = 7;
        Specified by:
        getSetNodeOnFirstMessageOnly in interface ApiConfigSourceOrBuilder
        Returns:
        The setNodeOnFirstMessageOnly.
      • setSetNodeOnFirstMessageOnly

        public ApiConfigSource.Builder setSetNodeOnFirstMessageOnly​(boolean value)
         Skip the node identifier in subsequent discovery requests for streaming gRPC config types.
         
        bool set_node_on_first_message_only = 7;
        Parameters:
        value - The setNodeOnFirstMessageOnly to set.
        Returns:
        This builder for chaining.
      • clearSetNodeOnFirstMessageOnly

        public ApiConfigSource.Builder clearSetNodeOnFirstMessageOnly()
         Skip the node identifier in subsequent discovery requests for streaming gRPC config types.
         
        bool set_node_on_first_message_only = 7;
        Returns:
        This builder for chaining.
      • ensureConfigValidatorsIsMutable

        private void ensureConfigValidatorsIsMutable()
      • getConfigValidatorsList

        public java.util.List<TypedExtensionConfig> getConfigValidatorsList()
         A list of config validators that will be executed when a new update is
         received from the ApiConfigSource. Note that each validator handles a
         specific xDS service type, and only the validators corresponding to the
         type url (in ``:ref: DiscoveryResponse`` or ``:ref: DeltaDiscoveryResponse``)
         will be invoked.
         If the validator returns false or throws an exception, the config will be rejected by
         the client, and a NACK will be sent.
         [#extension-category: envoy.config.validators]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig config_validators = 9;
        Specified by:
        getConfigValidatorsList in interface ApiConfigSourceOrBuilder
      • getConfigValidatorsCount

        public int getConfigValidatorsCount()
         A list of config validators that will be executed when a new update is
         received from the ApiConfigSource. Note that each validator handles a
         specific xDS service type, and only the validators corresponding to the
         type url (in ``:ref: DiscoveryResponse`` or ``:ref: DeltaDiscoveryResponse``)
         will be invoked.
         If the validator returns false or throws an exception, the config will be rejected by
         the client, and a NACK will be sent.
         [#extension-category: envoy.config.validators]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig config_validators = 9;
        Specified by:
        getConfigValidatorsCount in interface ApiConfigSourceOrBuilder
      • getConfigValidators

        public TypedExtensionConfig getConfigValidators​(int index)
         A list of config validators that will be executed when a new update is
         received from the ApiConfigSource. Note that each validator handles a
         specific xDS service type, and only the validators corresponding to the
         type url (in ``:ref: DiscoveryResponse`` or ``:ref: DeltaDiscoveryResponse``)
         will be invoked.
         If the validator returns false or throws an exception, the config will be rejected by
         the client, and a NACK will be sent.
         [#extension-category: envoy.config.validators]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig config_validators = 9;
        Specified by:
        getConfigValidators in interface ApiConfigSourceOrBuilder
      • setConfigValidators

        public ApiConfigSource.Builder setConfigValidators​(int index,
                                                           TypedExtensionConfig value)
         A list of config validators that will be executed when a new update is
         received from the ApiConfigSource. Note that each validator handles a
         specific xDS service type, and only the validators corresponding to the
         type url (in ``:ref: DiscoveryResponse`` or ``:ref: DeltaDiscoveryResponse``)
         will be invoked.
         If the validator returns false or throws an exception, the config will be rejected by
         the client, and a NACK will be sent.
         [#extension-category: envoy.config.validators]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig config_validators = 9;
      • setConfigValidators

        public ApiConfigSource.Builder setConfigValidators​(int index,
                                                           TypedExtensionConfig.Builder builderForValue)
         A list of config validators that will be executed when a new update is
         received from the ApiConfigSource. Note that each validator handles a
         specific xDS service type, and only the validators corresponding to the
         type url (in ``:ref: DiscoveryResponse`` or ``:ref: DeltaDiscoveryResponse``)
         will be invoked.
         If the validator returns false or throws an exception, the config will be rejected by
         the client, and a NACK will be sent.
         [#extension-category: envoy.config.validators]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig config_validators = 9;
      • addConfigValidators

        public ApiConfigSource.Builder addConfigValidators​(TypedExtensionConfig value)
         A list of config validators that will be executed when a new update is
         received from the ApiConfigSource. Note that each validator handles a
         specific xDS service type, and only the validators corresponding to the
         type url (in ``:ref: DiscoveryResponse`` or ``:ref: DeltaDiscoveryResponse``)
         will be invoked.
         If the validator returns false or throws an exception, the config will be rejected by
         the client, and a NACK will be sent.
         [#extension-category: envoy.config.validators]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig config_validators = 9;
      • addConfigValidators

        public ApiConfigSource.Builder addConfigValidators​(int index,
                                                           TypedExtensionConfig value)
         A list of config validators that will be executed when a new update is
         received from the ApiConfigSource. Note that each validator handles a
         specific xDS service type, and only the validators corresponding to the
         type url (in ``:ref: DiscoveryResponse`` or ``:ref: DeltaDiscoveryResponse``)
         will be invoked.
         If the validator returns false or throws an exception, the config will be rejected by
         the client, and a NACK will be sent.
         [#extension-category: envoy.config.validators]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig config_validators = 9;
      • addConfigValidators

        public ApiConfigSource.Builder addConfigValidators​(TypedExtensionConfig.Builder builderForValue)
         A list of config validators that will be executed when a new update is
         received from the ApiConfigSource. Note that each validator handles a
         specific xDS service type, and only the validators corresponding to the
         type url (in ``:ref: DiscoveryResponse`` or ``:ref: DeltaDiscoveryResponse``)
         will be invoked.
         If the validator returns false or throws an exception, the config will be rejected by
         the client, and a NACK will be sent.
         [#extension-category: envoy.config.validators]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig config_validators = 9;
      • addConfigValidators

        public ApiConfigSource.Builder addConfigValidators​(int index,
                                                           TypedExtensionConfig.Builder builderForValue)
         A list of config validators that will be executed when a new update is
         received from the ApiConfigSource. Note that each validator handles a
         specific xDS service type, and only the validators corresponding to the
         type url (in ``:ref: DiscoveryResponse`` or ``:ref: DeltaDiscoveryResponse``)
         will be invoked.
         If the validator returns false or throws an exception, the config will be rejected by
         the client, and a NACK will be sent.
         [#extension-category: envoy.config.validators]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig config_validators = 9;
      • addAllConfigValidators

        public ApiConfigSource.Builder addAllConfigValidators​(java.lang.Iterable<? extends TypedExtensionConfig> values)
         A list of config validators that will be executed when a new update is
         received from the ApiConfigSource. Note that each validator handles a
         specific xDS service type, and only the validators corresponding to the
         type url (in ``:ref: DiscoveryResponse`` or ``:ref: DeltaDiscoveryResponse``)
         will be invoked.
         If the validator returns false or throws an exception, the config will be rejected by
         the client, and a NACK will be sent.
         [#extension-category: envoy.config.validators]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig config_validators = 9;
      • clearConfigValidators

        public ApiConfigSource.Builder clearConfigValidators()
         A list of config validators that will be executed when a new update is
         received from the ApiConfigSource. Note that each validator handles a
         specific xDS service type, and only the validators corresponding to the
         type url (in ``:ref: DiscoveryResponse`` or ``:ref: DeltaDiscoveryResponse``)
         will be invoked.
         If the validator returns false or throws an exception, the config will be rejected by
         the client, and a NACK will be sent.
         [#extension-category: envoy.config.validators]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig config_validators = 9;
      • removeConfigValidators

        public ApiConfigSource.Builder removeConfigValidators​(int index)
         A list of config validators that will be executed when a new update is
         received from the ApiConfigSource. Note that each validator handles a
         specific xDS service type, and only the validators corresponding to the
         type url (in ``:ref: DiscoveryResponse`` or ``:ref: DeltaDiscoveryResponse``)
         will be invoked.
         If the validator returns false or throws an exception, the config will be rejected by
         the client, and a NACK will be sent.
         [#extension-category: envoy.config.validators]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig config_validators = 9;
      • getConfigValidatorsBuilder

        public TypedExtensionConfig.Builder getConfigValidatorsBuilder​(int index)
         A list of config validators that will be executed when a new update is
         received from the ApiConfigSource. Note that each validator handles a
         specific xDS service type, and only the validators corresponding to the
         type url (in ``:ref: DiscoveryResponse`` or ``:ref: DeltaDiscoveryResponse``)
         will be invoked.
         If the validator returns false or throws an exception, the config will be rejected by
         the client, and a NACK will be sent.
         [#extension-category: envoy.config.validators]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig config_validators = 9;
      • getConfigValidatorsOrBuilder

        public TypedExtensionConfigOrBuilder getConfigValidatorsOrBuilder​(int index)
         A list of config validators that will be executed when a new update is
         received from the ApiConfigSource. Note that each validator handles a
         specific xDS service type, and only the validators corresponding to the
         type url (in ``:ref: DiscoveryResponse`` or ``:ref: DeltaDiscoveryResponse``)
         will be invoked.
         If the validator returns false or throws an exception, the config will be rejected by
         the client, and a NACK will be sent.
         [#extension-category: envoy.config.validators]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig config_validators = 9;
        Specified by:
        getConfigValidatorsOrBuilder in interface ApiConfigSourceOrBuilder
      • getConfigValidatorsOrBuilderList

        public java.util.List<? extends TypedExtensionConfigOrBuilder> getConfigValidatorsOrBuilderList()
         A list of config validators that will be executed when a new update is
         received from the ApiConfigSource. Note that each validator handles a
         specific xDS service type, and only the validators corresponding to the
         type url (in ``:ref: DiscoveryResponse`` or ``:ref: DeltaDiscoveryResponse``)
         will be invoked.
         If the validator returns false or throws an exception, the config will be rejected by
         the client, and a NACK will be sent.
         [#extension-category: envoy.config.validators]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig config_validators = 9;
        Specified by:
        getConfigValidatorsOrBuilderList in interface ApiConfigSourceOrBuilder
      • addConfigValidatorsBuilder

        public TypedExtensionConfig.Builder addConfigValidatorsBuilder()
         A list of config validators that will be executed when a new update is
         received from the ApiConfigSource. Note that each validator handles a
         specific xDS service type, and only the validators corresponding to the
         type url (in ``:ref: DiscoveryResponse`` or ``:ref: DeltaDiscoveryResponse``)
         will be invoked.
         If the validator returns false or throws an exception, the config will be rejected by
         the client, and a NACK will be sent.
         [#extension-category: envoy.config.validators]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig config_validators = 9;
      • addConfigValidatorsBuilder

        public TypedExtensionConfig.Builder addConfigValidatorsBuilder​(int index)
         A list of config validators that will be executed when a new update is
         received from the ApiConfigSource. Note that each validator handles a
         specific xDS service type, and only the validators corresponding to the
         type url (in ``:ref: DiscoveryResponse`` or ``:ref: DeltaDiscoveryResponse``)
         will be invoked.
         If the validator returns false or throws an exception, the config will be rejected by
         the client, and a NACK will be sent.
         [#extension-category: envoy.config.validators]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig config_validators = 9;
      • getConfigValidatorsBuilderList

        public java.util.List<TypedExtensionConfig.Builder> getConfigValidatorsBuilderList()
         A list of config validators that will be executed when a new update is
         received from the ApiConfigSource. Note that each validator handles a
         specific xDS service type, and only the validators corresponding to the
         type url (in ``:ref: DiscoveryResponse`` or ``:ref: DeltaDiscoveryResponse``)
         will be invoked.
         If the validator returns false or throws an exception, the config will be rejected by
         the client, and a NACK will be sent.
         [#extension-category: envoy.config.validators]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig config_validators = 9;