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