Class MetadataMatcher.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, MetadataMatcherOrBuilder, java.lang.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
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

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

      • 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)
      • 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>
      • 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 java.io.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:
        java.io.IOException
      • getFilter

        public java.lang.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​(java.lang.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()
      • 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
      • addAllPath

        public MetadataMatcher.Builder addAllPath​(java.lang.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) = { ... }
      • 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 java.util.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) = { ... }
      • 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) = { ... }
      • 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.