Interface JsonToMetadata.MatchRulesOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
JsonToMetadata.MatchRules,JsonToMetadata.MatchRules.Builder
- Enclosing class:
- JsonToMetadata
public static interface JsonToMetadata.MatchRulesOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetAllowContentTypes(int index) Allowed content-type for json to metadata transformation.com.google.protobuf.ByteStringgetAllowContentTypesBytes(int index) Allowed content-type for json to metadata transformation.intAllowed content-type for json to metadata transformation.Allowed content-type for json to metadata transformation.Allowed content-type by regex match for json to metadata transformation.Allowed content-type by regex match for json to metadata transformation.booleanAllowed empty content-type for json to metadata transformation.getRules(int index) The list of rules to apply.intThe list of rules to apply.The list of rules to apply.getRulesOrBuilder(int index) The list of rules to apply.List<? extends JsonToMetadata.RuleOrBuilder>The list of rules to apply.booleanAllowed content-type by regex match for json to metadata transformation.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
-
getRulesList
List<JsonToMetadata.Rule> getRulesList()The list of rules to apply.
repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... } -
getRules
The list of rules to apply.
repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... } -
getRulesCount
int getRulesCount()The list of rules to apply.
repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... } -
getRulesOrBuilderList
List<? extends JsonToMetadata.RuleOrBuilder> getRulesOrBuilderList()The list of rules to apply.
repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... } -
getRulesOrBuilder
The list of rules to apply.
repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... } -
getAllowContentTypesList
Allowed content-type for json to metadata transformation. Default to ``{"application/json"}``. Set ``allow_empty_content_type`` if empty/missing content-type header is allowed.repeated string allow_content_types = 2 [(.validate.rules) = { ... }- Returns:
- A list containing the allowContentTypes.
-
getAllowContentTypesCount
int getAllowContentTypesCount()Allowed content-type for json to metadata transformation. Default to ``{"application/json"}``. Set ``allow_empty_content_type`` if empty/missing content-type header is allowed.repeated string allow_content_types = 2 [(.validate.rules) = { ... }- Returns:
- The count of allowContentTypes.
-
getAllowContentTypes
Allowed content-type for json to metadata transformation. Default to ``{"application/json"}``. Set ``allow_empty_content_type`` if empty/missing content-type header is allowed.repeated string allow_content_types = 2 [(.validate.rules) = { ... }- Parameters:
index- The index of the element to return.- Returns:
- The allowContentTypes at the given index.
-
getAllowContentTypesBytes
com.google.protobuf.ByteString getAllowContentTypesBytes(int index) Allowed content-type for json to metadata transformation. Default to ``{"application/json"}``. Set ``allow_empty_content_type`` if empty/missing content-type header is allowed.repeated string allow_content_types = 2 [(.validate.rules) = { ... }- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowContentTypes at the given index.
-
getAllowEmptyContentType
boolean getAllowEmptyContentType()Allowed empty content-type for json to metadata transformation. Default to false.
bool allow_empty_content_type = 3;- Returns:
- The allowEmptyContentType.
-
hasAllowContentTypesRegex
boolean hasAllowContentTypesRegex()Allowed content-type by regex match for json to metadata transformation. This can be used in parallel with ``allow_content_types``.
.envoy.type.matcher.v3.RegexMatcher allow_content_types_regex = 4;- Returns:
- Whether the allowContentTypesRegex field is set.
-
getAllowContentTypesRegex
RegexMatcher getAllowContentTypesRegex()Allowed content-type by regex match for json to metadata transformation. This can be used in parallel with ``allow_content_types``.
.envoy.type.matcher.v3.RegexMatcher allow_content_types_regex = 4;- Returns:
- The allowContentTypesRegex.
-
getAllowContentTypesRegexOrBuilder
RegexMatcherOrBuilder getAllowContentTypesRegexOrBuilder()Allowed content-type by regex match for json to metadata transformation. This can be used in parallel with ``allow_content_types``.
.envoy.type.matcher.v3.RegexMatcher allow_content_types_regex = 4;
-