Class RouteConfiguration.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
      • clear

        public RouteConfiguration.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.GeneratedMessageV3.Builder<RouteConfiguration.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.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
      • getDefaultInstanceForType

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

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

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

        public RouteConfiguration.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
      • setField

        public RouteConfiguration.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
      • clearField

        public RouteConfiguration.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
      • clearOneof

        public RouteConfiguration.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
      • setRepeatedField

        public RouteConfiguration.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           int index,
                                                           Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
      • addRepeatedField

        public RouteConfiguration.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
      • mergeFrom

        public RouteConfiguration.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<RouteConfiguration.Builder>
      • isInitialized

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

        public RouteConfiguration.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws 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<RouteConfiguration.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         The name of the route configuration. This name is used in asynchronous route discovery.
         For example, it might match
         :ref:`route_config_name
         <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.Trds.route_config_name>` in
         :ref:`envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.Trds`.
         
        string name = 1;
        Specified by:
        getName in interface RouteConfigurationOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of the route configuration. This name is used in asynchronous route discovery.
         For example, it might match
         :ref:`route_config_name
         <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.Trds.route_config_name>` in
         :ref:`envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.Trds`.
         
        string name = 1;
        Specified by:
        getNameBytes in interface RouteConfigurationOrBuilder
        Returns:
        The bytes for name.
      • setName

        public RouteConfiguration.Builder setName​(String value)
         The name of the route configuration. This name is used in asynchronous route discovery.
         For example, it might match
         :ref:`route_config_name
         <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.Trds.route_config_name>` in
         :ref:`envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.Trds`.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public RouteConfiguration.Builder clearName()
         The name of the route configuration. This name is used in asynchronous route discovery.
         For example, it might match
         :ref:`route_config_name
         <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.Trds.route_config_name>` in
         :ref:`envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.Trds`.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public RouteConfiguration.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The name of the route configuration. This name is used in asynchronous route discovery.
         For example, it might match
         :ref:`route_config_name
         <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.Trds.route_config_name>` in
         :ref:`envoy_v3_api_msg_extensions.filters.network.thrift_proxy.v3.Trds`.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getRoutesList

        public List<Route> getRoutesList()
         The list of routes that will be matched, in order, against incoming requests. The first route
         that matches will be used.
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.Route routes = 2;
        Specified by:
        getRoutesList in interface RouteConfigurationOrBuilder
      • getRoutesCount

        public int getRoutesCount()
         The list of routes that will be matched, in order, against incoming requests. The first route
         that matches will be used.
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.Route routes = 2;
        Specified by:
        getRoutesCount in interface RouteConfigurationOrBuilder
      • getRoutes

        public Route getRoutes​(int index)
         The list of routes that will be matched, in order, against incoming requests. The first route
         that matches will be used.
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.Route routes = 2;
        Specified by:
        getRoutes in interface RouteConfigurationOrBuilder
      • setRoutes

        public RouteConfiguration.Builder setRoutes​(int index,
                                                    Route value)
         The list of routes that will be matched, in order, against incoming requests. The first route
         that matches will be used.
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.Route routes = 2;
      • setRoutes

        public RouteConfiguration.Builder setRoutes​(int index,
                                                    Route.Builder builderForValue)
         The list of routes that will be matched, in order, against incoming requests. The first route
         that matches will be used.
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.Route routes = 2;
      • addRoutes

        public RouteConfiguration.Builder addRoutes​(Route value)
         The list of routes that will be matched, in order, against incoming requests. The first route
         that matches will be used.
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.Route routes = 2;
      • addRoutes

        public RouteConfiguration.Builder addRoutes​(int index,
                                                    Route value)
         The list of routes that will be matched, in order, against incoming requests. The first route
         that matches will be used.
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.Route routes = 2;
      • addRoutes

        public RouteConfiguration.Builder addRoutes​(Route.Builder builderForValue)
         The list of routes that will be matched, in order, against incoming requests. The first route
         that matches will be used.
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.Route routes = 2;
      • addRoutes

        public RouteConfiguration.Builder addRoutes​(int index,
                                                    Route.Builder builderForValue)
         The list of routes that will be matched, in order, against incoming requests. The first route
         that matches will be used.
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.Route routes = 2;
      • addAllRoutes

        public RouteConfiguration.Builder addAllRoutes​(Iterable<? extends Route> values)
         The list of routes that will be matched, in order, against incoming requests. The first route
         that matches will be used.
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.Route routes = 2;
      • clearRoutes

        public RouteConfiguration.Builder clearRoutes()
         The list of routes that will be matched, in order, against incoming requests. The first route
         that matches will be used.
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.Route routes = 2;
      • removeRoutes

        public RouteConfiguration.Builder removeRoutes​(int index)
         The list of routes that will be matched, in order, against incoming requests. The first route
         that matches will be used.
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.Route routes = 2;
      • getRoutesBuilder

        public Route.Builder getRoutesBuilder​(int index)
         The list of routes that will be matched, in order, against incoming requests. The first route
         that matches will be used.
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.Route routes = 2;
      • getRoutesOrBuilder

        public RouteOrBuilder getRoutesOrBuilder​(int index)
         The list of routes that will be matched, in order, against incoming requests. The first route
         that matches will be used.
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.Route routes = 2;
        Specified by:
        getRoutesOrBuilder in interface RouteConfigurationOrBuilder
      • getRoutesOrBuilderList

        public List<? extends RouteOrBuilder> getRoutesOrBuilderList()
         The list of routes that will be matched, in order, against incoming requests. The first route
         that matches will be used.
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.Route routes = 2;
        Specified by:
        getRoutesOrBuilderList in interface RouteConfigurationOrBuilder
      • addRoutesBuilder

        public Route.Builder addRoutesBuilder()
         The list of routes that will be matched, in order, against incoming requests. The first route
         that matches will be used.
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.Route routes = 2;
      • addRoutesBuilder

        public Route.Builder addRoutesBuilder​(int index)
         The list of routes that will be matched, in order, against incoming requests. The first route
         that matches will be used.
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.Route routes = 2;
      • getRoutesBuilderList

        public List<Route.Builder> getRoutesBuilderList()
         The list of routes that will be matched, in order, against incoming requests. The first route
         that matches will be used.
         
        repeated .envoy.extensions.filters.network.thrift_proxy.v3.Route routes = 2;
      • hasValidateClusters

        public boolean hasValidateClusters()
         An optional boolean that specifies whether the clusters that the route
         table refers to will be validated by the cluster manager. If set to true
         and a route refers to a non-existent cluster, the route table will not
         load. If set to false and a route refers to a non-existent cluster, the
         route table will load and the router filter will return a INTERNAL_ERROR
         if the route is selected at runtime. This setting defaults to true if the route table
         is statically defined via the :ref:`route_config
         <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.ThriftProxy.route_config>`
         option. This setting default to false if the route table is loaded dynamically via the
         :ref:`trds
         <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.ThriftProxy.trds>`
         option. Users may wish to override the default behavior in certain cases (for example when
         using CDS with a static route table).
         
        .google.protobuf.BoolValue validate_clusters = 3;
        Specified by:
        hasValidateClusters in interface RouteConfigurationOrBuilder
        Returns:
        Whether the validateClusters field is set.
      • getValidateClusters

        public com.google.protobuf.BoolValue getValidateClusters()
         An optional boolean that specifies whether the clusters that the route
         table refers to will be validated by the cluster manager. If set to true
         and a route refers to a non-existent cluster, the route table will not
         load. If set to false and a route refers to a non-existent cluster, the
         route table will load and the router filter will return a INTERNAL_ERROR
         if the route is selected at runtime. This setting defaults to true if the route table
         is statically defined via the :ref:`route_config
         <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.ThriftProxy.route_config>`
         option. This setting default to false if the route table is loaded dynamically via the
         :ref:`trds
         <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.ThriftProxy.trds>`
         option. Users may wish to override the default behavior in certain cases (for example when
         using CDS with a static route table).
         
        .google.protobuf.BoolValue validate_clusters = 3;
        Specified by:
        getValidateClusters in interface RouteConfigurationOrBuilder
        Returns:
        The validateClusters.
      • setValidateClusters

        public RouteConfiguration.Builder setValidateClusters​(com.google.protobuf.BoolValue value)
         An optional boolean that specifies whether the clusters that the route
         table refers to will be validated by the cluster manager. If set to true
         and a route refers to a non-existent cluster, the route table will not
         load. If set to false and a route refers to a non-existent cluster, the
         route table will load and the router filter will return a INTERNAL_ERROR
         if the route is selected at runtime. This setting defaults to true if the route table
         is statically defined via the :ref:`route_config
         <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.ThriftProxy.route_config>`
         option. This setting default to false if the route table is loaded dynamically via the
         :ref:`trds
         <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.ThriftProxy.trds>`
         option. Users may wish to override the default behavior in certain cases (for example when
         using CDS with a static route table).
         
        .google.protobuf.BoolValue validate_clusters = 3;
      • setValidateClusters

        public RouteConfiguration.Builder setValidateClusters​(com.google.protobuf.BoolValue.Builder builderForValue)
         An optional boolean that specifies whether the clusters that the route
         table refers to will be validated by the cluster manager. If set to true
         and a route refers to a non-existent cluster, the route table will not
         load. If set to false and a route refers to a non-existent cluster, the
         route table will load and the router filter will return a INTERNAL_ERROR
         if the route is selected at runtime. This setting defaults to true if the route table
         is statically defined via the :ref:`route_config
         <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.ThriftProxy.route_config>`
         option. This setting default to false if the route table is loaded dynamically via the
         :ref:`trds
         <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.ThriftProxy.trds>`
         option. Users may wish to override the default behavior in certain cases (for example when
         using CDS with a static route table).
         
        .google.protobuf.BoolValue validate_clusters = 3;
      • mergeValidateClusters

        public RouteConfiguration.Builder mergeValidateClusters​(com.google.protobuf.BoolValue value)
         An optional boolean that specifies whether the clusters that the route
         table refers to will be validated by the cluster manager. If set to true
         and a route refers to a non-existent cluster, the route table will not
         load. If set to false and a route refers to a non-existent cluster, the
         route table will load and the router filter will return a INTERNAL_ERROR
         if the route is selected at runtime. This setting defaults to true if the route table
         is statically defined via the :ref:`route_config
         <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.ThriftProxy.route_config>`
         option. This setting default to false if the route table is loaded dynamically via the
         :ref:`trds
         <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.ThriftProxy.trds>`
         option. Users may wish to override the default behavior in certain cases (for example when
         using CDS with a static route table).
         
        .google.protobuf.BoolValue validate_clusters = 3;
      • clearValidateClusters

        public RouteConfiguration.Builder clearValidateClusters()
         An optional boolean that specifies whether the clusters that the route
         table refers to will be validated by the cluster manager. If set to true
         and a route refers to a non-existent cluster, the route table will not
         load. If set to false and a route refers to a non-existent cluster, the
         route table will load and the router filter will return a INTERNAL_ERROR
         if the route is selected at runtime. This setting defaults to true if the route table
         is statically defined via the :ref:`route_config
         <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.ThriftProxy.route_config>`
         option. This setting default to false if the route table is loaded dynamically via the
         :ref:`trds
         <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.ThriftProxy.trds>`
         option. Users may wish to override the default behavior in certain cases (for example when
         using CDS with a static route table).
         
        .google.protobuf.BoolValue validate_clusters = 3;
      • getValidateClustersBuilder

        public com.google.protobuf.BoolValue.Builder getValidateClustersBuilder()
         An optional boolean that specifies whether the clusters that the route
         table refers to will be validated by the cluster manager. If set to true
         and a route refers to a non-existent cluster, the route table will not
         load. If set to false and a route refers to a non-existent cluster, the
         route table will load and the router filter will return a INTERNAL_ERROR
         if the route is selected at runtime. This setting defaults to true if the route table
         is statically defined via the :ref:`route_config
         <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.ThriftProxy.route_config>`
         option. This setting default to false if the route table is loaded dynamically via the
         :ref:`trds
         <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.ThriftProxy.trds>`
         option. Users may wish to override the default behavior in certain cases (for example when
         using CDS with a static route table).
         
        .google.protobuf.BoolValue validate_clusters = 3;
      • getValidateClustersOrBuilder

        public com.google.protobuf.BoolValueOrBuilder getValidateClustersOrBuilder()
         An optional boolean that specifies whether the clusters that the route
         table refers to will be validated by the cluster manager. If set to true
         and a route refers to a non-existent cluster, the route table will not
         load. If set to false and a route refers to a non-existent cluster, the
         route table will load and the router filter will return a INTERNAL_ERROR
         if the route is selected at runtime. This setting defaults to true if the route table
         is statically defined via the :ref:`route_config
         <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.ThriftProxy.route_config>`
         option. This setting default to false if the route table is loaded dynamically via the
         :ref:`trds
         <envoy_v3_api_field_extensions.filters.network.thrift_proxy.v3.ThriftProxy.trds>`
         option. Users may wish to override the default behavior in certain cases (for example when
         using CDS with a static route table).
         
        .google.protobuf.BoolValue validate_clusters = 3;
        Specified by:
        getValidateClustersOrBuilder in interface RouteConfigurationOrBuilder
      • setUnknownFields

        public final RouteConfiguration.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
      • mergeUnknownFields

        public final RouteConfiguration.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>