Class RouteConfiguration.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
io.envoyproxy.envoy.extensions.filters.network.thrift_proxy.v3.RouteConfiguration.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RouteConfigurationOrBuilder,Cloneable
- Enclosing class:
- RouteConfiguration
public static final class RouteConfiguration.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
implements RouteConfigurationOrBuilder
Protobuf type
envoy.extensions.filters.network.thrift_proxy.v3.RouteConfiguration-
Method Summary
Modifier and TypeMethodDescriptionaddAllRoutes(Iterable<? extends Route> values) The list of routes that will be matched, in order, against incoming requests.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) The list of routes that will be matched, in order, against incoming requests.addRoutes(int index, Route.Builder builderForValue) The list of routes that will be matched, in order, against incoming requests.The list of routes that will be matched, in order, against incoming requests.addRoutes(Route.Builder builderForValue) The list of routes that will be matched, in order, against incoming requests.The list of routes that will be matched, in order, against incoming requests.addRoutesBuilder(int index) The list of routes that will be matched, in order, against incoming requests.build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The name of the route configuration.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The list of routes that will be matched, in order, against incoming requests.An optional boolean that specifies whether the clusters that the route table refers to will be validated by the cluster manager.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()The name of the route configuration.com.google.protobuf.ByteStringThe name of the route configuration.getRoutes(int index) The list of routes that will be matched, in order, against incoming requests.getRoutesBuilder(int index) The list of routes that will be matched, in order, against incoming requests.The list of routes that will be matched, in order, against incoming requests.intThe list of routes that will be matched, in order, against incoming requests.The list of routes that will be matched, in order, against incoming requests.getRoutesOrBuilder(int index) The list of routes that will be matched, in order, against incoming requests.List<? extends RouteOrBuilder>The list of routes that will be matched, in order, against incoming requests.com.google.protobuf.BoolValueAn optional boolean that specifies whether the clusters that the route table refers to will be validated by the cluster manager.com.google.protobuf.BoolValue.BuilderAn optional boolean that specifies whether the clusters that the route table refers to will be validated by the cluster manager.com.google.protobuf.BoolValueOrBuilderAn optional boolean that specifies whether the clusters that the route table refers to will be validated by the cluster manager.booleanAn optional boolean that specifies whether the clusters that the route table refers to will be validated by the cluster manager.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(RouteConfiguration other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 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.removeRoutes(int index) The list of routes that will be matched, in order, against incoming requests.The name of the route configuration.setNameBytes(com.google.protobuf.ByteString value) The name of the route configuration.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) The list of routes that will be matched, in order, against incoming requests.setRoutes(int index, Route.Builder builderForValue) The list of routes that will be matched, in order, against incoming requests.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 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.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.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
-
setField
public RouteConfiguration.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
-
setRepeatedField
public RouteConfiguration.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
-
addRepeatedField
public RouteConfiguration.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RouteConfiguration.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RouteConfiguration.Builder>- Throws:
IOException
-
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:
getNamein interfaceRouteConfigurationOrBuilder- 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:
getNameBytesin interfaceRouteConfigurationOrBuilder- Returns:
- The bytes for name.
-
setName
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
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
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
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:
getRoutesListin interfaceRouteConfigurationOrBuilder
-
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:
getRoutesCountin interfaceRouteConfigurationOrBuilder
-
getRoutes
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:
getRoutesin interfaceRouteConfigurationOrBuilder
-
setRoutes
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
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
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
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
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
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
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
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
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
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
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:
getRoutesOrBuilderin interfaceRouteConfigurationOrBuilder
-
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:
getRoutesOrBuilderListin interfaceRouteConfigurationOrBuilder
-
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
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
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:
hasValidateClustersin interfaceRouteConfigurationOrBuilder- 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:
getValidateClustersin interfaceRouteConfigurationOrBuilder- Returns:
- The validateClusters.
-
setValidateClusters
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
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
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:
getValidateClustersOrBuilderin interfaceRouteConfigurationOrBuilder
-
setUnknownFields
public final RouteConfiguration.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
-
mergeUnknownFields
public final RouteConfiguration.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RouteConfiguration.Builder>
-