Package io.envoyproxy.envoy.api.v2.route
Class WeightedCluster.ClusterWeight
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.api.v2.route.WeightedCluster.ClusterWeight
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,WeightedCluster.ClusterWeightOrBuilder,Serializable
- Enclosing class:
- WeightedCluster
public static final class WeightedCluster.ClusterWeight extends com.google.protobuf.GeneratedMessageV3 implements WeightedCluster.ClusterWeightOrBuilder
[#next-free-field: 11]
Protobuf typeenvoy.api.v2.route.WeightedCluster.ClusterWeight- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWeightedCluster.ClusterWeight.Builder[#next-free-field: 11]-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intMETADATA_MATCH_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intPER_FILTER_CONFIG_FIELD_NUMBERstatic intREQUEST_HEADERS_TO_ADD_FIELD_NUMBERstatic intREQUEST_HEADERS_TO_REMOVE_FIELD_NUMBERstatic intRESPONSE_HEADERS_TO_ADD_FIELD_NUMBERstatic intRESPONSE_HEADERS_TO_REMOVE_FIELD_NUMBERstatic intTYPED_PER_FILTER_CONFIG_FIELD_NUMBERstatic intWEIGHT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsPerFilterConfig(String key)Deprecated.booleancontainsTypedPerFilterConfig(String key)The per_filter_config field can be used to provide weighted cluster-specific configurations for filters.booleanequals(Object obj)static WeightedCluster.ClusterWeightgetDefaultInstance()WeightedCluster.ClusterWeightgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()MetadatagetMetadataMatch()Optional endpoint metadata match criteria used by the subset load balancer.MetadataOrBuildergetMetadataMatchOrBuilder()Optional endpoint metadata match criteria used by the subset load balancer.StringgetName()Name of the upstream cluster.com.google.protobuf.ByteStringgetNameBytes()Name of the upstream cluster.com.google.protobuf.Parser<WeightedCluster.ClusterWeight>getParserForType()Map<String,com.google.protobuf.Struct>getPerFilterConfig()Deprecated.intgetPerFilterConfigCount()Deprecated.Map<String,com.google.protobuf.Struct>getPerFilterConfigMap()Deprecated.com.google.protobuf.StructgetPerFilterConfigOrDefault(String key, com.google.protobuf.Struct defaultValue)Deprecated.com.google.protobuf.StructgetPerFilterConfigOrThrow(String key)Deprecated.HeaderValueOptiongetRequestHeadersToAdd(int index)Specifies a list of headers to be added to requests when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.intgetRequestHeadersToAddCount()Specifies a list of headers to be added to requests when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.List<HeaderValueOption>getRequestHeadersToAddList()Specifies a list of headers to be added to requests when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.HeaderValueOptionOrBuildergetRequestHeadersToAddOrBuilder(int index)Specifies a list of headers to be added to requests when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.List<? extends HeaderValueOptionOrBuilder>getRequestHeadersToAddOrBuilderList()Specifies a list of headers to be added to requests when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.StringgetRequestHeadersToRemove(int index)Specifies a list of HTTP headers that should be removed from each request when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.com.google.protobuf.ByteStringgetRequestHeadersToRemoveBytes(int index)Specifies a list of HTTP headers that should be removed from each request when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.intgetRequestHeadersToRemoveCount()Specifies a list of HTTP headers that should be removed from each request when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.com.google.protobuf.ProtocolStringListgetRequestHeadersToRemoveList()Specifies a list of HTTP headers that should be removed from each request when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.HeaderValueOptiongetResponseHeadersToAdd(int index)Specifies a list of headers to be added to responses when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.intgetResponseHeadersToAddCount()Specifies a list of headers to be added to responses when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.List<HeaderValueOption>getResponseHeadersToAddList()Specifies a list of headers to be added to responses when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.HeaderValueOptionOrBuildergetResponseHeadersToAddOrBuilder(int index)Specifies a list of headers to be added to responses when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.List<? extends HeaderValueOptionOrBuilder>getResponseHeadersToAddOrBuilderList()Specifies a list of headers to be added to responses when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.StringgetResponseHeadersToRemove(int index)Specifies a list of headers to be removed from responses when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.com.google.protobuf.ByteStringgetResponseHeadersToRemoveBytes(int index)Specifies a list of headers to be removed from responses when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.intgetResponseHeadersToRemoveCount()Specifies a list of headers to be removed from responses when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.com.google.protobuf.ProtocolStringListgetResponseHeadersToRemoveList()Specifies a list of headers to be removed from responses when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.intgetSerializedSize()Map<String,com.google.protobuf.Any>getTypedPerFilterConfig()Deprecated.intgetTypedPerFilterConfigCount()The per_filter_config field can be used to provide weighted cluster-specific configurations for filters.Map<String,com.google.protobuf.Any>getTypedPerFilterConfigMap()The per_filter_config field can be used to provide weighted cluster-specific configurations for filters.com.google.protobuf.AnygetTypedPerFilterConfigOrDefault(String key, com.google.protobuf.Any defaultValue)The per_filter_config field can be used to provide weighted cluster-specific configurations for filters.com.google.protobuf.AnygetTypedPerFilterConfigOrThrow(String key)The per_filter_config field can be used to provide weighted cluster-specific configurations for filters.com.google.protobuf.UnknownFieldSetgetUnknownFields()com.google.protobuf.UInt32ValuegetWeight()An integer between 0 and :ref:`total_weight <envoy_api_field_route.WeightedCluster.total_weight>`.com.google.protobuf.UInt32ValueOrBuildergetWeightOrBuilder()An integer between 0 and :ref:`total_weight <envoy_api_field_route.WeightedCluster.total_weight>`.inthashCode()booleanhasMetadataMatch()Optional endpoint metadata match criteria used by the subset load balancer.booleanhasWeight()An integer between 0 and :ref:`total_weight <envoy_api_field_route.WeightedCluster.total_weight>`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static WeightedCluster.ClusterWeight.BuildernewBuilder()static WeightedCluster.ClusterWeight.BuildernewBuilder(WeightedCluster.ClusterWeight prototype)WeightedCluster.ClusterWeight.BuildernewBuilderForType()protected WeightedCluster.ClusterWeight.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static WeightedCluster.ClusterWeightparseDelimitedFrom(InputStream input)static WeightedCluster.ClusterWeightparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WeightedCluster.ClusterWeightparseFrom(byte[] data)static WeightedCluster.ClusterWeightparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WeightedCluster.ClusterWeightparseFrom(com.google.protobuf.ByteString data)static WeightedCluster.ClusterWeightparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WeightedCluster.ClusterWeightparseFrom(com.google.protobuf.CodedInputStream input)static WeightedCluster.ClusterWeightparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WeightedCluster.ClusterWeightparseFrom(InputStream input)static WeightedCluster.ClusterWeightparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WeightedCluster.ClusterWeightparseFrom(ByteBuffer data)static WeightedCluster.ClusterWeightparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<WeightedCluster.ClusterWeight>parser()WeightedCluster.ClusterWeight.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WEIGHT_FIELD_NUMBER
public static final int WEIGHT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_MATCH_FIELD_NUMBER
public static final int METADATA_MATCH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUEST_HEADERS_TO_ADD_FIELD_NUMBER
public static final int REQUEST_HEADERS_TO_ADD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUEST_HEADERS_TO_REMOVE_FIELD_NUMBER
public static final int REQUEST_HEADERS_TO_REMOVE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESPONSE_HEADERS_TO_ADD_FIELD_NUMBER
public static final int RESPONSE_HEADERS_TO_ADD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESPONSE_HEADERS_TO_REMOVE_FIELD_NUMBER
public static final int RESPONSE_HEADERS_TO_REMOVE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PER_FILTER_CONFIG_FIELD_NUMBER
public static final int PER_FILTER_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPED_PER_FILTER_CONFIG_FIELD_NUMBER
public static final int TYPED_PER_FILTER_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
Name of the upstream cluster. The cluster must exist in the :ref:`cluster manager configuration <config_cluster_manager>`.
string name = 1 [(.validate.rules) = { ... }- Specified by:
getNamein interfaceWeightedCluster.ClusterWeightOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Name of the upstream cluster. The cluster must exist in the :ref:`cluster manager configuration <config_cluster_manager>`.
string name = 1 [(.validate.rules) = { ... }- Specified by:
getNameBytesin interfaceWeightedCluster.ClusterWeightOrBuilder- Returns:
- The bytes for name.
-
hasWeight
public boolean hasWeight()
An integer between 0 and :ref:`total_weight <envoy_api_field_route.WeightedCluster.total_weight>`. When a request matches the route, the choice of an upstream cluster is determined by its weight. The sum of weights across all entries in the clusters array must add up to the total_weight, if total_weight is greater than 0.
.google.protobuf.UInt32Value weight = 2;- Specified by:
hasWeightin interfaceWeightedCluster.ClusterWeightOrBuilder- Returns:
- Whether the weight field is set.
-
getWeight
public com.google.protobuf.UInt32Value getWeight()
An integer between 0 and :ref:`total_weight <envoy_api_field_route.WeightedCluster.total_weight>`. When a request matches the route, the choice of an upstream cluster is determined by its weight. The sum of weights across all entries in the clusters array must add up to the total_weight, if total_weight is greater than 0.
.google.protobuf.UInt32Value weight = 2;- Specified by:
getWeightin interfaceWeightedCluster.ClusterWeightOrBuilder- Returns:
- The weight.
-
getWeightOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getWeightOrBuilder()
An integer between 0 and :ref:`total_weight <envoy_api_field_route.WeightedCluster.total_weight>`. When a request matches the route, the choice of an upstream cluster is determined by its weight. The sum of weights across all entries in the clusters array must add up to the total_weight, if total_weight is greater than 0.
.google.protobuf.UInt32Value weight = 2;- Specified by:
getWeightOrBuilderin interfaceWeightedCluster.ClusterWeightOrBuilder
-
hasMetadataMatch
public boolean hasMetadataMatch()
Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints in the upstream cluster with metadata matching what is set in this field will be considered for load balancing. Note that this will be merged with what's provided in :ref:`RouteAction.metadata_match <envoy_api_field_route.RouteAction.metadata_match>`, with values here taking precedence. The filter name should be specified as *envoy.lb*.
.envoy.api.v2.core.Metadata metadata_match = 3;- Specified by:
hasMetadataMatchin interfaceWeightedCluster.ClusterWeightOrBuilder- Returns:
- Whether the metadataMatch field is set.
-
getMetadataMatch
public Metadata getMetadataMatch()
Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints in the upstream cluster with metadata matching what is set in this field will be considered for load balancing. Note that this will be merged with what's provided in :ref:`RouteAction.metadata_match <envoy_api_field_route.RouteAction.metadata_match>`, with values here taking precedence. The filter name should be specified as *envoy.lb*.
.envoy.api.v2.core.Metadata metadata_match = 3;- Specified by:
getMetadataMatchin interfaceWeightedCluster.ClusterWeightOrBuilder- Returns:
- The metadataMatch.
-
getMetadataMatchOrBuilder
public MetadataOrBuilder getMetadataMatchOrBuilder()
Optional endpoint metadata match criteria used by the subset load balancer. Only endpoints in the upstream cluster with metadata matching what is set in this field will be considered for load balancing. Note that this will be merged with what's provided in :ref:`RouteAction.metadata_match <envoy_api_field_route.RouteAction.metadata_match>`, with values here taking precedence. The filter name should be specified as *envoy.lb*.
.envoy.api.v2.core.Metadata metadata_match = 3;- Specified by:
getMetadataMatchOrBuilderin interfaceWeightedCluster.ClusterWeightOrBuilder
-
getRequestHeadersToAddList
public List<HeaderValueOption> getRequestHeadersToAddList()
Specifies a list of headers to be added to requests when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`. Headers specified at this level are applied before headers from the enclosing :ref:`envoy_api_msg_route.Route`, :ref:`envoy_api_msg_route.VirtualHost`, and :ref:`envoy_api_msg_RouteConfiguration`. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.api.v2.core.HeaderValueOption request_headers_to_add = 4 [(.validate.rules) = { ... }- Specified by:
getRequestHeadersToAddListin interfaceWeightedCluster.ClusterWeightOrBuilder
-
getRequestHeadersToAddOrBuilderList
public List<? extends HeaderValueOptionOrBuilder> getRequestHeadersToAddOrBuilderList()
Specifies a list of headers to be added to requests when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`. Headers specified at this level are applied before headers from the enclosing :ref:`envoy_api_msg_route.Route`, :ref:`envoy_api_msg_route.VirtualHost`, and :ref:`envoy_api_msg_RouteConfiguration`. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.api.v2.core.HeaderValueOption request_headers_to_add = 4 [(.validate.rules) = { ... }- Specified by:
getRequestHeadersToAddOrBuilderListin interfaceWeightedCluster.ClusterWeightOrBuilder
-
getRequestHeadersToAddCount
public int getRequestHeadersToAddCount()
Specifies a list of headers to be added to requests when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`. Headers specified at this level are applied before headers from the enclosing :ref:`envoy_api_msg_route.Route`, :ref:`envoy_api_msg_route.VirtualHost`, and :ref:`envoy_api_msg_RouteConfiguration`. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.api.v2.core.HeaderValueOption request_headers_to_add = 4 [(.validate.rules) = { ... }- Specified by:
getRequestHeadersToAddCountin interfaceWeightedCluster.ClusterWeightOrBuilder
-
getRequestHeadersToAdd
public HeaderValueOption getRequestHeadersToAdd(int index)
Specifies a list of headers to be added to requests when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`. Headers specified at this level are applied before headers from the enclosing :ref:`envoy_api_msg_route.Route`, :ref:`envoy_api_msg_route.VirtualHost`, and :ref:`envoy_api_msg_RouteConfiguration`. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.api.v2.core.HeaderValueOption request_headers_to_add = 4 [(.validate.rules) = { ... }- Specified by:
getRequestHeadersToAddin interfaceWeightedCluster.ClusterWeightOrBuilder
-
getRequestHeadersToAddOrBuilder
public HeaderValueOptionOrBuilder getRequestHeadersToAddOrBuilder(int index)
Specifies a list of headers to be added to requests when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`. Headers specified at this level are applied before headers from the enclosing :ref:`envoy_api_msg_route.Route`, :ref:`envoy_api_msg_route.VirtualHost`, and :ref:`envoy_api_msg_RouteConfiguration`. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.api.v2.core.HeaderValueOption request_headers_to_add = 4 [(.validate.rules) = { ... }- Specified by:
getRequestHeadersToAddOrBuilderin interfaceWeightedCluster.ClusterWeightOrBuilder
-
getRequestHeadersToRemoveList
public com.google.protobuf.ProtocolStringList getRequestHeadersToRemoveList()
Specifies a list of HTTP headers that should be removed from each request when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.
repeated string request_headers_to_remove = 9;- Specified by:
getRequestHeadersToRemoveListin interfaceWeightedCluster.ClusterWeightOrBuilder- Returns:
- A list containing the requestHeadersToRemove.
-
getRequestHeadersToRemoveCount
public int getRequestHeadersToRemoveCount()
Specifies a list of HTTP headers that should be removed from each request when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.
repeated string request_headers_to_remove = 9;- Specified by:
getRequestHeadersToRemoveCountin interfaceWeightedCluster.ClusterWeightOrBuilder- Returns:
- The count of requestHeadersToRemove.
-
getRequestHeadersToRemove
public String getRequestHeadersToRemove(int index)
Specifies a list of HTTP headers that should be removed from each request when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.
repeated string request_headers_to_remove = 9;- Specified by:
getRequestHeadersToRemovein interfaceWeightedCluster.ClusterWeightOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The requestHeadersToRemove at the given index.
-
getRequestHeadersToRemoveBytes
public com.google.protobuf.ByteString getRequestHeadersToRemoveBytes(int index)
Specifies a list of HTTP headers that should be removed from each request when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.
repeated string request_headers_to_remove = 9;- Specified by:
getRequestHeadersToRemoveBytesin interfaceWeightedCluster.ClusterWeightOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the requestHeadersToRemove at the given index.
-
getResponseHeadersToAddList
public List<HeaderValueOption> getResponseHeadersToAddList()
Specifies a list of headers to be added to responses when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`. Headers specified at this level are applied before headers from the enclosing :ref:`envoy_api_msg_route.Route`, :ref:`envoy_api_msg_route.VirtualHost`, and :ref:`envoy_api_msg_RouteConfiguration`. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.api.v2.core.HeaderValueOption response_headers_to_add = 5 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddListin interfaceWeightedCluster.ClusterWeightOrBuilder
-
getResponseHeadersToAddOrBuilderList
public List<? extends HeaderValueOptionOrBuilder> getResponseHeadersToAddOrBuilderList()
Specifies a list of headers to be added to responses when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`. Headers specified at this level are applied before headers from the enclosing :ref:`envoy_api_msg_route.Route`, :ref:`envoy_api_msg_route.VirtualHost`, and :ref:`envoy_api_msg_RouteConfiguration`. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.api.v2.core.HeaderValueOption response_headers_to_add = 5 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddOrBuilderListin interfaceWeightedCluster.ClusterWeightOrBuilder
-
getResponseHeadersToAddCount
public int getResponseHeadersToAddCount()
Specifies a list of headers to be added to responses when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`. Headers specified at this level are applied before headers from the enclosing :ref:`envoy_api_msg_route.Route`, :ref:`envoy_api_msg_route.VirtualHost`, and :ref:`envoy_api_msg_RouteConfiguration`. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.api.v2.core.HeaderValueOption response_headers_to_add = 5 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddCountin interfaceWeightedCluster.ClusterWeightOrBuilder
-
getResponseHeadersToAdd
public HeaderValueOption getResponseHeadersToAdd(int index)
Specifies a list of headers to be added to responses when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`. Headers specified at this level are applied before headers from the enclosing :ref:`envoy_api_msg_route.Route`, :ref:`envoy_api_msg_route.VirtualHost`, and :ref:`envoy_api_msg_RouteConfiguration`. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.api.v2.core.HeaderValueOption response_headers_to_add = 5 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddin interfaceWeightedCluster.ClusterWeightOrBuilder
-
getResponseHeadersToAddOrBuilder
public HeaderValueOptionOrBuilder getResponseHeadersToAddOrBuilder(int index)
Specifies a list of headers to be added to responses when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`. Headers specified at this level are applied before headers from the enclosing :ref:`envoy_api_msg_route.Route`, :ref:`envoy_api_msg_route.VirtualHost`, and :ref:`envoy_api_msg_RouteConfiguration`. For more information, including details on header value syntax, see the documentation on :ref:`custom request headers <config_http_conn_man_headers_custom_request_headers>`.
repeated .envoy.api.v2.core.HeaderValueOption response_headers_to_add = 5 [(.validate.rules) = { ... }- Specified by:
getResponseHeadersToAddOrBuilderin interfaceWeightedCluster.ClusterWeightOrBuilder
-
getResponseHeadersToRemoveList
public com.google.protobuf.ProtocolStringList getResponseHeadersToRemoveList()
Specifies a list of headers to be removed from responses when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.
repeated string response_headers_to_remove = 6;- Specified by:
getResponseHeadersToRemoveListin interfaceWeightedCluster.ClusterWeightOrBuilder- Returns:
- A list containing the responseHeadersToRemove.
-
getResponseHeadersToRemoveCount
public int getResponseHeadersToRemoveCount()
Specifies a list of headers to be removed from responses when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.
repeated string response_headers_to_remove = 6;- Specified by:
getResponseHeadersToRemoveCountin interfaceWeightedCluster.ClusterWeightOrBuilder- Returns:
- The count of responseHeadersToRemove.
-
getResponseHeadersToRemove
public String getResponseHeadersToRemove(int index)
Specifies a list of headers to be removed from responses when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.
repeated string response_headers_to_remove = 6;- Specified by:
getResponseHeadersToRemovein interfaceWeightedCluster.ClusterWeightOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The responseHeadersToRemove at the given index.
-
getResponseHeadersToRemoveBytes
public com.google.protobuf.ByteString getResponseHeadersToRemoveBytes(int index)
Specifies a list of headers to be removed from responses when this cluster is selected through the enclosing :ref:`envoy_api_msg_route.RouteAction`.
repeated string response_headers_to_remove = 6;- Specified by:
getResponseHeadersToRemoveBytesin interfaceWeightedCluster.ClusterWeightOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the responseHeadersToRemove at the given index.
-
getPerFilterConfigCount
@Deprecated public int getPerFilterConfigCount()
Deprecated.Description copied from interface:WeightedCluster.ClusterWeightOrBuilderThe per_filter_config field can be used to provide weighted cluster-specific configurations for filters. The key should match the filter name, such as *envoy.filters.http.buffer* for the HTTP buffer filter. Use of this field is filter specific; see the :ref:`HTTP filter documentation <config_http_filters>` for if and how it is utilized.
map<string, .google.protobuf.Struct> per_filter_config = 8 [deprecated = true];- Specified by:
getPerFilterConfigCountin interfaceWeightedCluster.ClusterWeightOrBuilder
-
containsPerFilterConfig
@Deprecated public boolean containsPerFilterConfig(String key)
Deprecated.The per_filter_config field can be used to provide weighted cluster-specific configurations for filters. The key should match the filter name, such as *envoy.filters.http.buffer* for the HTTP buffer filter. Use of this field is filter specific; see the :ref:`HTTP filter documentation <config_http_filters>` for if and how it is utilized.
map<string, .google.protobuf.Struct> per_filter_config = 8 [deprecated = true];- Specified by:
containsPerFilterConfigin interfaceWeightedCluster.ClusterWeightOrBuilder
-
getPerFilterConfig
@Deprecated public Map<String,com.google.protobuf.Struct> getPerFilterConfig()
Deprecated.UsegetPerFilterConfigMap()instead.- Specified by:
getPerFilterConfigin interfaceWeightedCluster.ClusterWeightOrBuilder
-
getPerFilterConfigMap
@Deprecated public Map<String,com.google.protobuf.Struct> getPerFilterConfigMap()
Deprecated.The per_filter_config field can be used to provide weighted cluster-specific configurations for filters. The key should match the filter name, such as *envoy.filters.http.buffer* for the HTTP buffer filter. Use of this field is filter specific; see the :ref:`HTTP filter documentation <config_http_filters>` for if and how it is utilized.
map<string, .google.protobuf.Struct> per_filter_config = 8 [deprecated = true];- Specified by:
getPerFilterConfigMapin interfaceWeightedCluster.ClusterWeightOrBuilder
-
getPerFilterConfigOrDefault
@Deprecated public com.google.protobuf.Struct getPerFilterConfigOrDefault(String key, com.google.protobuf.Struct defaultValue)
Deprecated.The per_filter_config field can be used to provide weighted cluster-specific configurations for filters. The key should match the filter name, such as *envoy.filters.http.buffer* for the HTTP buffer filter. Use of this field is filter specific; see the :ref:`HTTP filter documentation <config_http_filters>` for if and how it is utilized.
map<string, .google.protobuf.Struct> per_filter_config = 8 [deprecated = true];- Specified by:
getPerFilterConfigOrDefaultin interfaceWeightedCluster.ClusterWeightOrBuilder
-
getPerFilterConfigOrThrow
@Deprecated public com.google.protobuf.Struct getPerFilterConfigOrThrow(String key)
Deprecated.The per_filter_config field can be used to provide weighted cluster-specific configurations for filters. The key should match the filter name, such as *envoy.filters.http.buffer* for the HTTP buffer filter. Use of this field is filter specific; see the :ref:`HTTP filter documentation <config_http_filters>` for if and how it is utilized.
map<string, .google.protobuf.Struct> per_filter_config = 8 [deprecated = true];- Specified by:
getPerFilterConfigOrThrowin interfaceWeightedCluster.ClusterWeightOrBuilder
-
getTypedPerFilterConfigCount
public int getTypedPerFilterConfigCount()
Description copied from interface:WeightedCluster.ClusterWeightOrBuilderThe per_filter_config field can be used to provide weighted cluster-specific configurations for filters. The key should match the filter name, such as *envoy.filters.http.buffer* for the HTTP buffer filter. Use of this field is filter specific; see the :ref:`HTTP filter documentation <config_http_filters>` for if and how it is utilized.
map<string, .google.protobuf.Any> typed_per_filter_config = 10;- Specified by:
getTypedPerFilterConfigCountin interfaceWeightedCluster.ClusterWeightOrBuilder
-
containsTypedPerFilterConfig
public boolean containsTypedPerFilterConfig(String key)
The per_filter_config field can be used to provide weighted cluster-specific configurations for filters. The key should match the filter name, such as *envoy.filters.http.buffer* for the HTTP buffer filter. Use of this field is filter specific; see the :ref:`HTTP filter documentation <config_http_filters>` for if and how it is utilized.
map<string, .google.protobuf.Any> typed_per_filter_config = 10;- Specified by:
containsTypedPerFilterConfigin interfaceWeightedCluster.ClusterWeightOrBuilder
-
getTypedPerFilterConfig
@Deprecated public Map<String,com.google.protobuf.Any> getTypedPerFilterConfig()
Deprecated.UsegetTypedPerFilterConfigMap()instead.- Specified by:
getTypedPerFilterConfigin interfaceWeightedCluster.ClusterWeightOrBuilder
-
getTypedPerFilterConfigMap
public Map<String,com.google.protobuf.Any> getTypedPerFilterConfigMap()
The per_filter_config field can be used to provide weighted cluster-specific configurations for filters. The key should match the filter name, such as *envoy.filters.http.buffer* for the HTTP buffer filter. Use of this field is filter specific; see the :ref:`HTTP filter documentation <config_http_filters>` for if and how it is utilized.
map<string, .google.protobuf.Any> typed_per_filter_config = 10;- Specified by:
getTypedPerFilterConfigMapin interfaceWeightedCluster.ClusterWeightOrBuilder
-
getTypedPerFilterConfigOrDefault
public com.google.protobuf.Any getTypedPerFilterConfigOrDefault(String key, com.google.protobuf.Any defaultValue)
The per_filter_config field can be used to provide weighted cluster-specific configurations for filters. The key should match the filter name, such as *envoy.filters.http.buffer* for the HTTP buffer filter. Use of this field is filter specific; see the :ref:`HTTP filter documentation <config_http_filters>` for if and how it is utilized.
map<string, .google.protobuf.Any> typed_per_filter_config = 10;- Specified by:
getTypedPerFilterConfigOrDefaultin interfaceWeightedCluster.ClusterWeightOrBuilder
-
getTypedPerFilterConfigOrThrow
public com.google.protobuf.Any getTypedPerFilterConfigOrThrow(String key)
The per_filter_config field can be used to provide weighted cluster-specific configurations for filters. The key should match the filter name, such as *envoy.filters.http.buffer* for the HTTP buffer filter. Use of this field is filter specific; see the :ref:`HTTP filter documentation <config_http_filters>` for if and how it is utilized.
map<string, .google.protobuf.Any> typed_per_filter_config = 10;- Specified by:
getTypedPerFilterConfigOrThrowin interfaceWeightedCluster.ClusterWeightOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static WeightedCluster.ClusterWeight parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WeightedCluster.ClusterWeight parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WeightedCluster.ClusterWeight parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WeightedCluster.ClusterWeight parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WeightedCluster.ClusterWeight parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WeightedCluster.ClusterWeight parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WeightedCluster.ClusterWeight parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static WeightedCluster.ClusterWeight parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static WeightedCluster.ClusterWeight parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static WeightedCluster.ClusterWeight parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static WeightedCluster.ClusterWeight parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static WeightedCluster.ClusterWeight parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public WeightedCluster.ClusterWeight.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static WeightedCluster.ClusterWeight.Builder newBuilder()
-
newBuilder
public static WeightedCluster.ClusterWeight.Builder newBuilder(WeightedCluster.ClusterWeight prototype)
-
toBuilder
public WeightedCluster.ClusterWeight.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected WeightedCluster.ClusterWeight.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static WeightedCluster.ClusterWeight getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<WeightedCluster.ClusterWeight> parser()
-
getParserForType
public com.google.protobuf.Parser<WeightedCluster.ClusterWeight> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public WeightedCluster.ClusterWeight getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-