Interface PayloadToMetadata.KeyValuePairOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PayloadToMetadata.KeyValuePair,PayloadToMetadata.KeyValuePair.Builder
- Enclosing class:
- PayloadToMetadata
public static interface PayloadToMetadata.KeyValuePairOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()The key to use within the namespace.com.google.protobuf.ByteStringThe key to use within the namespace.The namespace — if this is empty, the filter's namespace will be used.com.google.protobuf.ByteStringThe namespace — if this is empty, the filter's namespace will be used.If present, the header's value will be matched and substituted with this.If present, the header's value will be matched and substituted with this.getType()The value's type — defaults to string.intThe value's type — defaults to string.getValue()The value to pair with the given key.com.google.protobuf.ByteStringThe value to pair with the given key.booleanIf present, the header's value will be matched and substituted with this.booleanhasValue()The value to pair with the given key.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getMetadataNamespace
String getMetadataNamespace()The namespace — if this is empty, the filter's namespace will be used.
string metadata_namespace = 1;- Returns:
- The metadataNamespace.
-
getMetadataNamespaceBytes
com.google.protobuf.ByteString getMetadataNamespaceBytes()The namespace — if this is empty, the filter's namespace will be used.
string metadata_namespace = 1;- Returns:
- The bytes for metadataNamespace.
-
getKey
String getKey()The key to use within the namespace.
string key = 2 [(.validate.rules) = { ... }- Returns:
- The key.
-
getKeyBytes
com.google.protobuf.ByteString getKeyBytes()The key to use within the namespace.
string key = 2 [(.validate.rules) = { ... }- Returns:
- The bytes for key.
-
hasValue
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 field value. If both are empty, the field value is used as-is. When used for on_missing case, a non-empty value must be provided.
string value = 3;- Returns:
- Whether the value field is set.
-
getValue
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 field value. If both are empty, the field value is used as-is. When used for on_missing case, a non-empty value must be provided.
string value = 3;- Returns:
- The value.
-
getValueBytes
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 field value. If both are empty, the field value is used as-is. When used for on_missing case, a non-empty value must be provided.
string value = 3;- Returns:
- The bytes for value.
-
hasRegexValueRewrite
boolean hasRegexValueRewrite()If present, the header's value will be matched and substituted with this. If there is no match or substitution, the field value is used as-is. This is only used for on_present.
.envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;- Returns:
- Whether the regexValueRewrite field is set.
-
getRegexValueRewrite
RegexMatchAndSubstitute getRegexValueRewrite()If present, the header's value will be matched and substituted with this. If there is no match or substitution, the field value is used as-is. This is only used for on_present.
.envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4;- Returns:
- The regexValueRewrite.
-
getRegexValueRewriteOrBuilder
RegexMatchAndSubstituteOrBuilder getRegexValueRewriteOrBuilder()If present, the header's value will be matched and substituted with this. If there is no match or substitution, the field value is used as-is. This is only used for on_present.
.envoy.type.matcher.v3.RegexMatchAndSubstitute regex_value_rewrite = 4; -
getTypeValue
int getTypeValue()The value's type — defaults to string.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.ValueType type = 5 [(.validate.rules) = { ... }- Returns:
- The enum numeric value on the wire for type.
-
getType
PayloadToMetadata.ValueType getType()The value's type — defaults to string.
.envoy.extensions.filters.network.thrift_proxy.filters.payload_to_metadata.v3.PayloadToMetadata.ValueType type = 5 [(.validate.rules) = { ... }- Returns:
- The type.
-
getValueTypeCase
PayloadToMetadata.KeyValuePair.ValueTypeCase getValueTypeCase()
-