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
      • clearMetadataNamespace

        public HeaderToMetadata.KeyValuePair.Builder clearMetadataNamespace()
         The namespace — if this is empty, the filter's namespace will be used.
         
        string metadata_namespace = 1;
      • 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;
      • setKeyBytes

        public HeaderToMetadata.KeyValuePair.Builder setKeyBytes​(com.google.protobuf.ByteString value)
         The key to use within the namespace.
         
        string key = 2 [(.validate.rules) = { ... }
      • 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
      • 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
      • 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;
      • 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;
      • 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;
      • 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
      • 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
      • 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
      • 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) = { ... }
      • 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) = { ... }
      • 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
      • 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;
      • 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
      • 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;
      • 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;