public static interface Config.KeyValuePairOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
Config.ValueEncode |
getEncode()
How is the value encoded, default is NONE (not encoded).
|
int |
getEncodeValue()
How is the value encoded, default is NONE (not encoded).
|
String |
getKey()
The key to use within the namespace.
|
com.google.protobuf.ByteString |
getKeyBytes()
The key to use within the namespace.
|
String |
getMetadataNamespace()
The namespace — if this is empty, the filter's namespace will be used.
|
com.google.protobuf.ByteString |
getMetadataNamespaceBytes()
The namespace — if this is empty, the filter's namespace will be used.
|
RegexMatchAndSubstitute |
getRegexValueRewrite()
If present, the header's value will be matched and substituted with this.
|
RegexMatchAndSubstituteOrBuilder |
getRegexValueRewriteOrBuilder()
If present, the header's value will be matched and substituted with this.
|
Config.ValueType |
getType()
The value's type — defaults to string.
|
int |
getTypeValue()
The value's type — defaults to string.
|
String |
getValue()
The value to pair with the given key.
|
com.google.protobuf.ByteString |
getValueBytes()
The value to pair with the given key.
|
boolean |
hasRegexValueRewrite()
If present, the header's value will be matched and substituted with this.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getMetadataNamespace()
The namespace — if this is empty, the filter's namespace will be used.
string metadata_namespace = 1;com.google.protobuf.ByteString getMetadataNamespaceBytes()
The namespace — if this is empty, the filter's namespace will be used.
string metadata_namespace = 1;String getKey()
The key to use within the namespace.
string key = 2 [(.validate.rules) = { ... }com.google.protobuf.ByteString getKeyBytes()
The key to use within the namespace.
string key = 2 [(.validate.rules) = { ... }String getValue()
The value to pair with the given key. When used for a :ref:`on_header_present <envoy_v3_api_field_extensions.filters.http.header_to_metadata.v3.Config.Rule.on_header_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 a :ref:`on_header_missing <envoy_v3_api_field_extensions.filters.http.header_to_metadata.v3.Config.Rule.on_header_missing>` case, a non-empty value must be provided otherwise no metadata is added.
string value = 3 [(.udpa.annotations.field_migrate) = { ... }com.google.protobuf.ByteString getValueBytes()
The value to pair with the given key. When used for a :ref:`on_header_present <envoy_v3_api_field_extensions.filters.http.header_to_metadata.v3.Config.Rule.on_header_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 a :ref:`on_header_missing <envoy_v3_api_field_extensions.filters.http.header_to_metadata.v3.Config.Rule.on_header_missing>` case, a non-empty value must be provided otherwise no metadata is added.
string value = 3 [(.udpa.annotations.field_migrate) = { ... }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 :ref:`on_header_present <envoy_v3_api_field_extensions.filters.http.header_to_metadata.v3.Config.Rule.on_header_present>`. Note: if the `value` field is non-empty this field should be empty.
.envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 6 [(.udpa.annotations.field_migrate) = { ... }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 :ref:`on_header_present <envoy_v3_api_field_extensions.filters.http.header_to_metadata.v3.Config.Rule.on_header_present>`. Note: if the `value` field is non-empty this field should be empty.
.envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 6 [(.udpa.annotations.field_migrate) = { ... }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 :ref:`on_header_present <envoy_v3_api_field_extensions.filters.http.header_to_metadata.v3.Config.Rule.on_header_present>`. Note: if the `value` field is non-empty this field should be empty.
.envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 6 [(.udpa.annotations.field_migrate) = { ... }int getTypeValue()
The value's type — defaults to string.
.envoy.extensions.filters.http.header_to_metadata.v3.Config.ValueType type = 4 [(.validate.rules) = { ... }Config.ValueType getType()
The value's type — defaults to string.
.envoy.extensions.filters.http.header_to_metadata.v3.Config.ValueType type = 4 [(.validate.rules) = { ... }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.http.header_to_metadata.v3.Config.ValueEncode encode = 5;Config.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.http.header_to_metadata.v3.Config.ValueEncode encode = 5;Copyright © 2018–2021 The Envoy Project. All rights reserved.