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 Details

    • getDescriptor

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

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

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<EndpointMetadataInput.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<EndpointMetadataInput.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

      public EndpointMetadataInput.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EndpointMetadataInput.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EndpointMetadataInput.Builder>
      Throws:
      IOException
    • getFilter

      public String 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:
      getFilter in interface EndpointMetadataInputOrBuilder
      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:
      getFilterBytes in interface EndpointMetadataInputOrBuilder
      Returns:
      The bytes for filter.
    • setFilter

      public EndpointMetadataInput.Builder setFilter(String value)
       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

      public EndpointMetadataInput.Builder 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

      public EndpointMetadataInput.Builder setFilterBytes(com.google.protobuf.ByteString value)
       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

      public List<EndpointMetadataInput.PathSegment> 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:
      getPathList in interface EndpointMetadataInputOrBuilder
    • 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:
      getPathCount in interface EndpointMetadataInputOrBuilder
    • getPath

      public EndpointMetadataInput.PathSegment getPath(int index)
       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:
      getPath in interface EndpointMetadataInputOrBuilder
    • 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

       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

       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

      public EndpointMetadataInput.Builder 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

      public EndpointMetadataInput.Builder removePath(int index)
       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

      public EndpointMetadataInput.PathSegment.Builder getPathBuilder(int index)
       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

      public EndpointMetadataInput.PathSegmentOrBuilder getPathOrBuilder(int index)
       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:
      getPathOrBuilder in interface EndpointMetadataInputOrBuilder
    • getPathOrBuilderList

      public List<? extends EndpointMetadataInput.PathSegmentOrBuilder> 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:
      getPathOrBuilderList in interface EndpointMetadataInputOrBuilder
    • 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

      public EndpointMetadataInput.PathSegment.Builder addPathBuilder(int index)
       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

      public List<EndpointMetadataInput.PathSegment.Builder> 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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EndpointMetadataInput.Builder>
    • mergeUnknownFields

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