Class LocalityMetadataInput.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<LocalityMetadataInput.Builder>
io.envoyproxy.envoy.extensions.matching.common_inputs.transport_socket.v3.LocalityMetadataInput.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,LocalityMetadataInputOrBuilder,Cloneable
- Enclosing class:
- LocalityMetadataInput
public static final class LocalityMetadataInput.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<LocalityMetadataInput.Builder>
implements LocalityMetadataInputOrBuilder
Specifies that matching should be performed by the locality metadata.
This input extracts metadata from the endpoint's locality for transport socket selection.
The metadata is extracted using a filter and path specification similar to
:ref:`DynamicMetadataInput <envoy_v3_api_msg_extensions.matching.common_inputs.network.v3.DynamicMetadataInput>`.
Example: Extract a metadata value from locality for transport socket matching.
.. code-block:: yaml
typed_config:
"@type": type.googleapis.com/envoy.extensions.matching.common_inputs.transport_socket.v3.LocalityMetadataInput
filter: "envoy.transport_socket_match"
path:
- key: "region"
This configuration extracts the value at path ``["envoy.transport_socket_match"]["region"]``
from the locality metadata for use in transport socket selection.
[#extension: envoy.matching.inputs.locality_metadata]
Protobuf type envoy.extensions.matching.common_inputs.transport_socket.v3.LocalityMetadataInput-
Method Summary
Modifier and TypeMethodDescriptionaddAllPath(Iterable<? extends LocalityMetadataInput.PathSegment> values) The path to retrieve the Value from the Struct.addPath(int index, LocalityMetadataInput.PathSegment value) The path to retrieve the Value from the Struct.addPath(int index, LocalityMetadataInput.PathSegment.Builder builderForValue) The path to retrieve the Value from the Struct.The path to retrieve the Value from the Struct.addPath(LocalityMetadataInput.PathSegment.Builder builderForValue) The path to retrieve the Value from the Struct.The path to retrieve the Value from the Struct.addPathBuilder(int index) The path to retrieve the Value from the Struct.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The filter name to retrieve the Struct from the locality metadata.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The path to retrieve the Value from the Struct.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe filter name to retrieve the Struct from the locality metadata.com.google.protobuf.ByteStringThe filter name to retrieve the Struct from the locality metadata.getPath(int index) The path to retrieve the Value from the Struct.getPathBuilder(int index) The path to retrieve the Value from the Struct.The path to retrieve the Value from the Struct.intThe path to retrieve the Value from the Struct.The path to retrieve the Value from the Struct.getPathOrBuilder(int index) The path to retrieve the Value from the Struct.List<? extends LocalityMetadataInput.PathSegmentOrBuilder>The path to retrieve the Value from the Struct.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(LocalityMetadataInput other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removePath(int index) The path to retrieve the Value from the Struct.The filter name to retrieve the Struct from the locality metadata.setFilterBytes(com.google.protobuf.ByteString value) The filter name to retrieve the Struct from the locality metadata.setPath(int index, LocalityMetadataInput.PathSegment value) The path to retrieve the Value from the Struct.setPath(int index, LocalityMetadataInput.PathSegment.Builder builderForValue) The path to retrieve the Value from the Struct.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 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<LocalityMetadataInput.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<LocalityMetadataInput.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<LocalityMetadataInput.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<LocalityMetadataInput.Builder>
-
setField
public LocalityMetadataInput.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<LocalityMetadataInput.Builder>
-
clearField
public LocalityMetadataInput.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityMetadataInput.Builder>
-
clearOneof
public LocalityMetadataInput.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityMetadataInput.Builder>
-
setRepeatedField
public LocalityMetadataInput.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<LocalityMetadataInput.Builder>
-
addRepeatedField
public LocalityMetadataInput.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<LocalityMetadataInput.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocalityMetadataInput.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityMetadataInput.Builder>
-
mergeFrom
public LocalityMetadataInput.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<LocalityMetadataInput.Builder>- Throws:
IOException
-
getFilter
The filter name to retrieve the Struct from the locality metadata. If not specified, defaults to ``envoy.lb`` which is commonly used for load balancing metadata.
string filter = 1;- Specified by:
getFilterin interfaceLocalityMetadataInputOrBuilder- Returns:
- The filter.
-
getFilterBytes
public com.google.protobuf.ByteString getFilterBytes()The filter name to retrieve the Struct from the locality metadata. If not specified, defaults to ``envoy.lb`` which is commonly used for load balancing metadata.
string filter = 1;- Specified by:
getFilterBytesin interfaceLocalityMetadataInputOrBuilder- Returns:
- The bytes for filter.
-
setFilter
The filter name to retrieve the Struct from the locality metadata. If not specified, defaults to ``envoy.lb`` which is commonly used for load balancing metadata.
string filter = 1;- Parameters:
value- The filter to set.- Returns:
- This builder for chaining.
-
clearFilter
The filter name to retrieve the Struct from the locality metadata. If not specified, defaults to ``envoy.lb`` which is commonly used for load balancing metadata.
string filter = 1;- Returns:
- This builder for chaining.
-
setFilterBytes
The filter name to retrieve the Struct from the locality metadata. If not specified, defaults to ``envoy.lb`` which is commonly used for load balancing metadata.
string filter = 1;- Parameters:
value- The bytes for filter to set.- Returns:
- This builder for chaining.
-
getPathList
The path to retrieve the Value from the Struct.
repeated .envoy.extensions.matching.common_inputs.transport_socket.v3.LocalityMetadataInput.PathSegment path = 2 [(.validate.rules) = { ... }- Specified by:
getPathListin interfaceLocalityMetadataInputOrBuilder
-
getPathCount
public int getPathCount()The path to retrieve the Value from the Struct.
repeated .envoy.extensions.matching.common_inputs.transport_socket.v3.LocalityMetadataInput.PathSegment path = 2 [(.validate.rules) = { ... }- Specified by:
getPathCountin interfaceLocalityMetadataInputOrBuilder
-
getPath
The path to retrieve the Value from the Struct.
repeated .envoy.extensions.matching.common_inputs.transport_socket.v3.LocalityMetadataInput.PathSegment path = 2 [(.validate.rules) = { ... }- Specified by:
getPathin interfaceLocalityMetadataInputOrBuilder
-
setPath
The path to retrieve the Value from the Struct.
repeated .envoy.extensions.matching.common_inputs.transport_socket.v3.LocalityMetadataInput.PathSegment path = 2 [(.validate.rules) = { ... } -
setPath
public LocalityMetadataInput.Builder setPath(int index, LocalityMetadataInput.PathSegment.Builder builderForValue) The path to retrieve the Value from the Struct.
repeated .envoy.extensions.matching.common_inputs.transport_socket.v3.LocalityMetadataInput.PathSegment path = 2 [(.validate.rules) = { ... } -
addPath
The path to retrieve the Value from the Struct.
repeated .envoy.extensions.matching.common_inputs.transport_socket.v3.LocalityMetadataInput.PathSegment path = 2 [(.validate.rules) = { ... } -
addPath
The path to retrieve the Value from the Struct.
repeated .envoy.extensions.matching.common_inputs.transport_socket.v3.LocalityMetadataInput.PathSegment path = 2 [(.validate.rules) = { ... } -
addPath
public LocalityMetadataInput.Builder addPath(LocalityMetadataInput.PathSegment.Builder builderForValue) The path to retrieve the Value from the Struct.
repeated .envoy.extensions.matching.common_inputs.transport_socket.v3.LocalityMetadataInput.PathSegment path = 2 [(.validate.rules) = { ... } -
addPath
public LocalityMetadataInput.Builder addPath(int index, LocalityMetadataInput.PathSegment.Builder builderForValue) The path to retrieve the Value from the Struct.
repeated .envoy.extensions.matching.common_inputs.transport_socket.v3.LocalityMetadataInput.PathSegment path = 2 [(.validate.rules) = { ... } -
addAllPath
public LocalityMetadataInput.Builder addAllPath(Iterable<? extends LocalityMetadataInput.PathSegment> values) The path to retrieve the Value from the Struct.
repeated .envoy.extensions.matching.common_inputs.transport_socket.v3.LocalityMetadataInput.PathSegment path = 2 [(.validate.rules) = { ... } -
clearPath
The path to retrieve the Value from the Struct.
repeated .envoy.extensions.matching.common_inputs.transport_socket.v3.LocalityMetadataInput.PathSegment path = 2 [(.validate.rules) = { ... } -
removePath
The path to retrieve the Value from the Struct.
repeated .envoy.extensions.matching.common_inputs.transport_socket.v3.LocalityMetadataInput.PathSegment path = 2 [(.validate.rules) = { ... } -
getPathBuilder
The path to retrieve the Value from the Struct.
repeated .envoy.extensions.matching.common_inputs.transport_socket.v3.LocalityMetadataInput.PathSegment path = 2 [(.validate.rules) = { ... } -
getPathOrBuilder
The path to retrieve the Value from the Struct.
repeated .envoy.extensions.matching.common_inputs.transport_socket.v3.LocalityMetadataInput.PathSegment path = 2 [(.validate.rules) = { ... }- Specified by:
getPathOrBuilderin interfaceLocalityMetadataInputOrBuilder
-
getPathOrBuilderList
The path to retrieve the Value from the Struct.
repeated .envoy.extensions.matching.common_inputs.transport_socket.v3.LocalityMetadataInput.PathSegment path = 2 [(.validate.rules) = { ... }- Specified by:
getPathOrBuilderListin interfaceLocalityMetadataInputOrBuilder
-
addPathBuilder
The path to retrieve the Value from the Struct.
repeated .envoy.extensions.matching.common_inputs.transport_socket.v3.LocalityMetadataInput.PathSegment path = 2 [(.validate.rules) = { ... } -
addPathBuilder
The path to retrieve the Value from the Struct.
repeated .envoy.extensions.matching.common_inputs.transport_socket.v3.LocalityMetadataInput.PathSegment path = 2 [(.validate.rules) = { ... } -
getPathBuilderList
The path to retrieve the Value from the Struct.
repeated .envoy.extensions.matching.common_inputs.transport_socket.v3.LocalityMetadataInput.PathSegment path = 2 [(.validate.rules) = { ... } -
setUnknownFields
public final LocalityMetadataInput.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityMetadataInput.Builder>
-
mergeUnknownFields
public final LocalityMetadataInput.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LocalityMetadataInput.Builder>
-