Class MetadataMatcher.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<MetadataMatcher.Builder>
com.google.protobuf.GeneratedMessage.Builder<MetadataMatcher.Builder>
io.envoyproxy.envoy.type.matcher.v3.MetadataMatcher.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, MetadataMatcherOrBuilder, Cloneable
Enclosing class:
MetadataMatcher

public static final class MetadataMatcher.Builder extends com.google.protobuf.GeneratedMessage.Builder<MetadataMatcher.Builder> implements MetadataMatcherOrBuilder
 [#next-major-version: MetadataMatcher should use StructMatcher]
 
Protobuf type envoy.type.matcher.v3.MetadataMatcher
  • Field Details

  • Constructor Details

    • Builder

      private Builder()
    • Builder

      private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<MetadataMatcher.Builder>
    • maybeForceBuilderInitialization

      private void maybeForceBuilderInitialization()
    • clear

      public MetadataMatcher.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.GeneratedMessage.Builder<MetadataMatcher.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.GeneratedMessage.Builder<MetadataMatcher.Builder>
    • getDefaultInstanceForType

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

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

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

      private void buildPartialRepeatedFields(MetadataMatcher result)
    • buildPartial0

      private void buildPartial0(MetadataMatcher result)
    • mergeFrom

      public MetadataMatcher.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<MetadataMatcher.Builder>
    • mergeFrom

      public MetadataMatcher.Builder mergeFrom(MetadataMatcher other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<MetadataMatcher.Builder>
    • mergeFrom

      public MetadataMatcher.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<MetadataMatcher.Builder>
      Throws:
      IOException
    • getFilter

      public String getFilter()
       The filter name to retrieve the Struct from the Metadata.
       
      string filter = 1 [(.validate.rules) = { ... }
      Specified by:
      getFilter in interface MetadataMatcherOrBuilder
      Returns:
      The filter.
    • getFilterBytes

      public com.google.protobuf.ByteString getFilterBytes()
       The filter name to retrieve the Struct from the Metadata.
       
      string filter = 1 [(.validate.rules) = { ... }
      Specified by:
      getFilterBytes in interface MetadataMatcherOrBuilder
      Returns:
      The bytes for filter.
    • setFilter

      public MetadataMatcher.Builder setFilter(String value)
       The filter name to retrieve the Struct from the Metadata.
       
      string filter = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The filter to set.
      Returns:
      This builder for chaining.
    • clearFilter

      public MetadataMatcher.Builder clearFilter()
       The filter name to retrieve the Struct from the Metadata.
       
      string filter = 1 [(.validate.rules) = { ... }
      Returns:
      This builder for chaining.
    • setFilterBytes

      public MetadataMatcher.Builder setFilterBytes(com.google.protobuf.ByteString value)
       The filter name to retrieve the Struct from the Metadata.
       
      string filter = 1 [(.validate.rules) = { ... }
      Parameters:
      value - The bytes for filter to set.
      Returns:
      This builder for chaining.
    • ensurePathIsMutable

      private void ensurePathIsMutable()
    • getPathList

      public List<MetadataMatcher.PathSegment> getPathList()
       The path to retrieve the Value from the Struct.
       
      repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
      Specified by:
      getPathList in interface MetadataMatcherOrBuilder
    • getPathCount

      public int getPathCount()
       The path to retrieve the Value from the Struct.
       
      repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
      Specified by:
      getPathCount in interface MetadataMatcherOrBuilder
    • getPath

      public MetadataMatcher.PathSegment getPath(int index)
       The path to retrieve the Value from the Struct.
       
      repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
      Specified by:
      getPath in interface MetadataMatcherOrBuilder
    • setPath

      public MetadataMatcher.Builder setPath(int index, MetadataMatcher.PathSegment value)
       The path to retrieve the Value from the Struct.
       
      repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
    • setPath

      public MetadataMatcher.Builder setPath(int index, MetadataMatcher.PathSegment.Builder builderForValue)
       The path to retrieve the Value from the Struct.
       
      repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
    • addPath

       The path to retrieve the Value from the Struct.
       
      repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
    • addPath

      public MetadataMatcher.Builder addPath(int index, MetadataMatcher.PathSegment value)
       The path to retrieve the Value from the Struct.
       
      repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
    • addPath

       The path to retrieve the Value from the Struct.
       
      repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
    • addPath

      public MetadataMatcher.Builder addPath(int index, MetadataMatcher.PathSegment.Builder builderForValue)
       The path to retrieve the Value from the Struct.
       
      repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
    • addAllPath

      public MetadataMatcher.Builder addAllPath(Iterable<? extends MetadataMatcher.PathSegment> values)
       The path to retrieve the Value from the Struct.
       
      repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
    • clearPath

      public MetadataMatcher.Builder clearPath()
       The path to retrieve the Value from the Struct.
       
      repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
    • removePath

      public MetadataMatcher.Builder removePath(int index)
       The path to retrieve the Value from the Struct.
       
      repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
    • getPathBuilder

      public MetadataMatcher.PathSegment.Builder getPathBuilder(int index)
       The path to retrieve the Value from the Struct.
       
      repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
    • getPathOrBuilder

      public MetadataMatcher.PathSegmentOrBuilder getPathOrBuilder(int index)
       The path to retrieve the Value from the Struct.
       
      repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
      Specified by:
      getPathOrBuilder in interface MetadataMatcherOrBuilder
    • getPathOrBuilderList

      public List<? extends MetadataMatcher.PathSegmentOrBuilder> getPathOrBuilderList()
       The path to retrieve the Value from the Struct.
       
      repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
      Specified by:
      getPathOrBuilderList in interface MetadataMatcherOrBuilder
    • addPathBuilder

      public MetadataMatcher.PathSegment.Builder addPathBuilder()
       The path to retrieve the Value from the Struct.
       
      repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
    • addPathBuilder

      public MetadataMatcher.PathSegment.Builder addPathBuilder(int index)
       The path to retrieve the Value from the Struct.
       
      repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
    • getPathBuilderList

      public List<MetadataMatcher.PathSegment.Builder> getPathBuilderList()
       The path to retrieve the Value from the Struct.
       
      repeated .envoy.type.matcher.v3.MetadataMatcher.PathSegment path = 2 [(.validate.rules) = { ... }
    • getPathFieldBuilder

      private com.google.protobuf.RepeatedFieldBuilder<MetadataMatcher.PathSegment,MetadataMatcher.PathSegment.Builder,MetadataMatcher.PathSegmentOrBuilder> getPathFieldBuilder()
    • hasValue

      public boolean hasValue()
       The MetadataMatcher is matched if the value retrieved by path is matched to this value.
       
      .envoy.type.matcher.v3.ValueMatcher value = 3 [(.validate.rules) = { ... }
      Specified by:
      hasValue in interface MetadataMatcherOrBuilder
      Returns:
      Whether the value field is set.
    • getValue

      public ValueMatcher getValue()
       The MetadataMatcher is matched if the value retrieved by path is matched to this value.
       
      .envoy.type.matcher.v3.ValueMatcher value = 3 [(.validate.rules) = { ... }
      Specified by:
      getValue in interface MetadataMatcherOrBuilder
      Returns:
      The value.
    • setValue

      public MetadataMatcher.Builder setValue(ValueMatcher value)
       The MetadataMatcher is matched if the value retrieved by path is matched to this value.
       
      .envoy.type.matcher.v3.ValueMatcher value = 3 [(.validate.rules) = { ... }
    • setValue

      public MetadataMatcher.Builder setValue(ValueMatcher.Builder builderForValue)
       The MetadataMatcher is matched if the value retrieved by path is matched to this value.
       
      .envoy.type.matcher.v3.ValueMatcher value = 3 [(.validate.rules) = { ... }
    • mergeValue

      public MetadataMatcher.Builder mergeValue(ValueMatcher value)
       The MetadataMatcher is matched if the value retrieved by path is matched to this value.
       
      .envoy.type.matcher.v3.ValueMatcher value = 3 [(.validate.rules) = { ... }
    • clearValue

      public MetadataMatcher.Builder clearValue()
       The MetadataMatcher is matched if the value retrieved by path is matched to this value.
       
      .envoy.type.matcher.v3.ValueMatcher value = 3 [(.validate.rules) = { ... }
    • getValueBuilder

      public ValueMatcher.Builder getValueBuilder()
       The MetadataMatcher is matched if the value retrieved by path is matched to this value.
       
      .envoy.type.matcher.v3.ValueMatcher value = 3 [(.validate.rules) = { ... }
    • getValueOrBuilder

      public ValueMatcherOrBuilder getValueOrBuilder()
       The MetadataMatcher is matched if the value retrieved by path is matched to this value.
       
      .envoy.type.matcher.v3.ValueMatcher value = 3 [(.validate.rules) = { ... }
      Specified by:
      getValueOrBuilder in interface MetadataMatcherOrBuilder
    • getValueFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<ValueMatcher,ValueMatcher.Builder,ValueMatcherOrBuilder> getValueFieldBuilder()
       The MetadataMatcher is matched if the value retrieved by path is matched to this value.
       
      .envoy.type.matcher.v3.ValueMatcher value = 3 [(.validate.rules) = { ... }
    • getInvert

      public boolean getInvert()
       If true, the match result will be inverted.
       
      bool invert = 4;
      Specified by:
      getInvert in interface MetadataMatcherOrBuilder
      Returns:
      The invert.
    • setInvert

      public MetadataMatcher.Builder setInvert(boolean value)
       If true, the match result will be inverted.
       
      bool invert = 4;
      Parameters:
      value - The invert to set.
      Returns:
      This builder for chaining.
    • clearInvert

      public MetadataMatcher.Builder clearInvert()
       If true, the match result will be inverted.
       
      bool invert = 4;
      Returns:
      This builder for chaining.