Class HeaderToMetadata.KeyValuePair.Builder

    • 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<HeaderToMetadata.KeyValuePair.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<HeaderToMetadata.KeyValuePair.Builder>
      • getDefaultInstanceForType

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

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

        public HeaderToMetadata.KeyValuePair buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public HeaderToMetadata.KeyValuePair.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<HeaderToMetadata.KeyValuePair.Builder>
        Throws:
        IOException
      • getMetadataNamespaceBytes

        public com.google.protobuf.ByteString getMetadataNamespaceBytes()
         The namespace — if this is empty, the filter's namespace will be used.
         
        string metadata_namespace = 1;
        Specified by:
        getMetadataNamespaceBytes in interface HeaderToMetadata.KeyValuePairOrBuilder
        Returns:
        The bytes for metadataNamespace.
      • setMetadataNamespace

        public HeaderToMetadata.KeyValuePair.Builder setMetadataNamespace​(String value)
         The namespace — if this is empty, the filter's namespace will be used.
         
        string metadata_namespace = 1;
        Parameters:
        value - The metadataNamespace to set.
        Returns:
        This builder for chaining.
      • clearMetadataNamespace

        public HeaderToMetadata.KeyValuePair.Builder clearMetadataNamespace()
         The namespace — if this is empty, the filter's namespace will be used.
         
        string metadata_namespace = 1;
        Returns:
        This builder for chaining.
      • setMetadataNamespaceBytes

        public HeaderToMetadata.KeyValuePair.Builder setMetadataNamespaceBytes​(com.google.protobuf.ByteString value)
         The namespace — if this is empty, the filter's namespace will be used.
         
        string metadata_namespace = 1;
        Parameters:
        value - The bytes for metadataNamespace to set.
        Returns:
        This builder for chaining.
      • getKeyBytes

        public com.google.protobuf.ByteString getKeyBytes()
         The key to use within the namespace.
         
        string key = 2 [(.validate.rules) = { ... }
        Specified by:
        getKeyBytes in interface HeaderToMetadata.KeyValuePairOrBuilder
        Returns:
        The bytes for key.
      • setKey

        public HeaderToMetadata.KeyValuePair.Builder setKey​(String value)
         The key to use within the namespace.
         
        string key = 2 [(.validate.rules) = { ... }
        Parameters:
        value - The key to set.
        Returns:
        This builder for chaining.
      • clearKey

        public HeaderToMetadata.KeyValuePair.Builder clearKey()
         The key to use within the namespace.
         
        string key = 2 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setKeyBytes

        public HeaderToMetadata.KeyValuePair.Builder setKeyBytes​(com.google.protobuf.ByteString value)
         The key to use within the namespace.
         
        string key = 2 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for key to set.
        Returns:
        This builder for chaining.
      • hasValue

        public boolean hasValue()
         The value to pair with the given key.
         When used for on_present case, if value is non-empty it'll be used instead
         of the header value. If both are empty, no metadata is added.
         When used for on_missing case, a non-empty value must be provided otherwise
         no metadata is added.
         
        string value = 3;
        Specified by:
        hasValue in interface HeaderToMetadata.KeyValuePairOrBuilder
        Returns:
        Whether the value field is set.
      • getValue

        public String getValue()
         The value to pair with the given key.
         When used for on_present case, if value is non-empty it'll be used instead
         of the header value. If both are empty, no metadata is added.
         When used for on_missing case, a non-empty value must be provided otherwise
         no metadata is added.
         
        string value = 3;
        Specified by:
        getValue in interface HeaderToMetadata.KeyValuePairOrBuilder
        Returns:
        The value.
      • getValueBytes

        public com.google.protobuf.ByteString getValueBytes()
         The value to pair with the given key.
         When used for on_present case, if value is non-empty it'll be used instead
         of the header value. If both are empty, no metadata is added.
         When used for on_missing case, a non-empty value must be provided otherwise
         no metadata is added.
         
        string value = 3;
        Specified by:
        getValueBytes in interface HeaderToMetadata.KeyValuePairOrBuilder
        Returns:
        The bytes for value.
      • setValue

        public HeaderToMetadata.KeyValuePair.Builder setValue​(String value)
         The value to pair with the given key.
         When used for on_present case, if value is non-empty it'll be used instead
         of the header value. If both are empty, no metadata is added.
         When used for on_missing case, a non-empty value must be provided otherwise
         no metadata is added.
         
        string value = 3;
        Parameters:
        value - The value to set.
        Returns:
        This builder for chaining.
      • clearValue

        public HeaderToMetadata.KeyValuePair.Builder clearValue()
         The value to pair with the given key.
         When used for on_present case, if value is non-empty it'll be used instead
         of the header value. If both are empty, no metadata is added.
         When used for on_missing case, a non-empty value must be provided otherwise
         no metadata is added.
         
        string value = 3;
        Returns:
        This builder for chaining.
      • setValueBytes

        public HeaderToMetadata.KeyValuePair.Builder setValueBytes​(com.google.protobuf.ByteString value)
         The value to pair with the given key.
         When used for on_present case, if value is non-empty it'll be used instead
         of the header value. If both are empty, no metadata is added.
         When used for on_missing case, a non-empty value must be provided otherwise
         no metadata is added.
         
        string value = 3;
        Parameters:
        value - The bytes for value to set.
        Returns:
        This builder for chaining.
      • hasRegexValueRewrite

        public boolean hasRegexValueRewrite()
         If present, the header's value will be matched and substituted with this.
         If there is no match or substitution, the header value
         is used as-is.
         This is only used for on_present.
         Note: if the ``value`` field is non-empty this field should be empty.
         
        .envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
        Specified by:
        hasRegexValueRewrite in interface HeaderToMetadata.KeyValuePairOrBuilder
        Returns:
        Whether the regexValueRewrite field is set.
      • getRegexValueRewrite

        public RegexMatchAndSubstitute getRegexValueRewrite()
         If present, the header's value will be matched and substituted with this.
         If there is no match or substitution, the header value
         is used as-is.
         This is only used for on_present.
         Note: if the ``value`` field is non-empty this field should be empty.
         
        .envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
        Specified by:
        getRegexValueRewrite in interface HeaderToMetadata.KeyValuePairOrBuilder
        Returns:
        The regexValueRewrite.
      • setRegexValueRewrite

        public HeaderToMetadata.KeyValuePair.Builder setRegexValueRewrite​(RegexMatchAndSubstitute value)
         If present, the header's value will be matched and substituted with this.
         If there is no match or substitution, the header value
         is used as-is.
         This is only used for on_present.
         Note: if the ``value`` field is non-empty this field should be empty.
         
        .envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
      • setRegexValueRewrite

        public HeaderToMetadata.KeyValuePair.Builder setRegexValueRewrite​(RegexMatchAndSubstitute.Builder builderForValue)
         If present, the header's value will be matched and substituted with this.
         If there is no match or substitution, the header value
         is used as-is.
         This is only used for on_present.
         Note: if the ``value`` field is non-empty this field should be empty.
         
        .envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
      • mergeRegexValueRewrite

        public HeaderToMetadata.KeyValuePair.Builder mergeRegexValueRewrite​(RegexMatchAndSubstitute value)
         If present, the header's value will be matched and substituted with this.
         If there is no match or substitution, the header value
         is used as-is.
         This is only used for on_present.
         Note: if the ``value`` field is non-empty this field should be empty.
         
        .envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
      • clearRegexValueRewrite

        public HeaderToMetadata.KeyValuePair.Builder clearRegexValueRewrite()
         If present, the header's value will be matched and substituted with this.
         If there is no match or substitution, the header value
         is used as-is.
         This is only used for on_present.
         Note: if the ``value`` field is non-empty this field should be empty.
         
        .envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
      • getRegexValueRewriteBuilder

        public RegexMatchAndSubstitute.Builder getRegexValueRewriteBuilder()
         If present, the header's value will be matched and substituted with this.
         If there is no match or substitution, the header value
         is used as-is.
         This is only used for on_present.
         Note: if the ``value`` field is non-empty this field should be empty.
         
        .envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
      • getRegexValueRewriteOrBuilder

        public RegexMatchAndSubstituteOrBuilder getRegexValueRewriteOrBuilder()
         If present, the header's value will be matched and substituted with this.
         If there is no match or substitution, the header value
         is used as-is.
         This is only used for on_present.
         Note: if the ``value`` field is non-empty this field should be empty.
         
        .envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;
        Specified by:
        getRegexValueRewriteOrBuilder in interface HeaderToMetadata.KeyValuePairOrBuilder
      • getTypeValue

        public int getTypeValue()
         The value's type — defaults to string.
         
        .envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.ValueType type = 5 [(.validate.rules) = { ... }
        Specified by:
        getTypeValue in interface HeaderToMetadata.KeyValuePairOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public HeaderToMetadata.KeyValuePair.Builder setTypeValue​(int value)
         The value's type — defaults to string.
         
        .envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.ValueType type = 5 [(.validate.rules) = { ... }
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • setType

        public HeaderToMetadata.KeyValuePair.Builder setType​(HeaderToMetadata.ValueType value)
         The value's type — defaults to string.
         
        .envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.ValueType type = 5 [(.validate.rules) = { ... }
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public HeaderToMetadata.KeyValuePair.Builder clearType()
         The value's type — defaults to string.
         
        .envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.ValueType type = 5 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • getEncodeValue

        public int getEncodeValue()
         How is the value encoded, default is NONE (not encoded).
         The value will be decoded accordingly before storing to metadata.
         
        .envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.ValueEncode encode = 6;
        Specified by:
        getEncodeValue in interface HeaderToMetadata.KeyValuePairOrBuilder
        Returns:
        The enum numeric value on the wire for encode.
      • setEncodeValue

        public HeaderToMetadata.KeyValuePair.Builder setEncodeValue​(int value)
         How is the value encoded, default is NONE (not encoded).
         The value will be decoded accordingly before storing to metadata.
         
        .envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.ValueEncode encode = 6;
        Parameters:
        value - The enum numeric value on the wire for encode to set.
        Returns:
        This builder for chaining.
      • getEncode

        public HeaderToMetadata.ValueEncode getEncode()
         How is the value encoded, default is NONE (not encoded).
         The value will be decoded accordingly before storing to metadata.
         
        .envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.ValueEncode encode = 6;
        Specified by:
        getEncode in interface HeaderToMetadata.KeyValuePairOrBuilder
        Returns:
        The encode.
      • setEncode

        public HeaderToMetadata.KeyValuePair.Builder setEncode​(HeaderToMetadata.ValueEncode value)
         How is the value encoded, default is NONE (not encoded).
         The value will be decoded accordingly before storing to metadata.
         
        .envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.ValueEncode encode = 6;
        Parameters:
        value - The encode to set.
        Returns:
        This builder for chaining.
      • clearEncode

        public HeaderToMetadata.KeyValuePair.Builder clearEncode()
         How is the value encoded, default is NONE (not encoded).
         The value will be decoded accordingly before storing to metadata.
         
        .envoy.extensions.filters.network.thrift_proxy.filters.header_to_metadata.v3.HeaderToMetadata.ValueEncode encode = 6;
        Returns:
        This builder for chaining.