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, Cloneable
    Enclosing class:
    MetadataMatcher

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

      • 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<MetadataMatcher.Builder>
      • 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

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

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

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

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

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

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

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

        public MetadataMatcher.Builder clearPath()
         The path to retrieve the Value from the Struct.
         
        repeated .envoy.type.matcher.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.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.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.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.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.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.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.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.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.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.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.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.ValueMatcher value = 3 [(.validate.rules) = { ... }
      • setUnknownFields

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

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