Interface JsonToMetadata.RuleOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
JsonToMetadata.Rule,JsonToMetadata.Rule.Builder
- Enclosing class:
- JsonToMetadata
public static interface JsonToMetadata.RuleOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionIf the body is too large or fail to parse or content-type is mismatched, apply this metadata KeyValuePair.If the body is too large or fail to parse or content-type is mismatched, apply this metadata KeyValuePair.If the attribute is missing, apply this metadata KeyValuePair.If the attribute is missing, apply this metadata KeyValuePair.If the attribute is present, apply this metadata KeyValuePair.If the attribute is present, apply this metadata KeyValuePair.getSelectors(int index) Specifies that a match will be performed on the value of a property.intSpecifies that a match will be performed on the value of a property.Specifies that a match will be performed on the value of a property.getSelectorsOrBuilder(int index) Specifies that a match will be performed on the value of a property.List<? extends JsonToMetadata.SelectorOrBuilder>Specifies that a match will be performed on the value of a property.booleanIf the body is too large or fail to parse or content-type is mismatched, apply this metadata KeyValuePair.booleanIf the attribute is missing, apply this metadata KeyValuePair.booleanIf the attribute is present, apply this metadata KeyValuePair.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
-
getSelectorsList
List<JsonToMetadata.Selector> getSelectorsList()Specifies that a match will be performed on the value of a property. Here's an example to match on 1 in {"foo": {"bar": 1}, "bar": 2} selectors: - key: foo - key: barrepeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Selector selectors = 1 [(.validate.rules) = { ... } -
getSelectors
Specifies that a match will be performed on the value of a property. Here's an example to match on 1 in {"foo": {"bar": 1}, "bar": 2} selectors: - key: foo - key: barrepeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Selector selectors = 1 [(.validate.rules) = { ... } -
getSelectorsCount
int getSelectorsCount()Specifies that a match will be performed on the value of a property. Here's an example to match on 1 in {"foo": {"bar": 1}, "bar": 2} selectors: - key: foo - key: barrepeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Selector selectors = 1 [(.validate.rules) = { ... } -
getSelectorsOrBuilderList
List<? extends JsonToMetadata.SelectorOrBuilder> getSelectorsOrBuilderList()Specifies that a match will be performed on the value of a property. Here's an example to match on 1 in {"foo": {"bar": 1}, "bar": 2} selectors: - key: foo - key: barrepeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Selector selectors = 1 [(.validate.rules) = { ... } -
getSelectorsOrBuilder
Specifies that a match will be performed on the value of a property. Here's an example to match on 1 in {"foo": {"bar": 1}, "bar": 2} selectors: - key: foo - key: barrepeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Selector selectors = 1 [(.validate.rules) = { ... } -
hasOnPresent
boolean hasOnPresent()If the attribute is present, apply this metadata KeyValuePair.
.envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.KeyValuePair on_present = 2;- Returns:
- Whether the onPresent field is set.
-
getOnPresent
JsonToMetadata.KeyValuePair getOnPresent()If the attribute is present, apply this metadata KeyValuePair.
.envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.KeyValuePair on_present = 2;- Returns:
- The onPresent.
-
getOnPresentOrBuilder
JsonToMetadata.KeyValuePairOrBuilder getOnPresentOrBuilder()If the attribute is present, apply this metadata KeyValuePair.
.envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.KeyValuePair on_present = 2; -
hasOnMissing
boolean hasOnMissing()If the attribute is missing, apply this metadata KeyValuePair. The value in the KeyValuePair must be set.
.envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.KeyValuePair on_missing = 3;- Returns:
- Whether the onMissing field is set.
-
getOnMissing
JsonToMetadata.KeyValuePair getOnMissing()If the attribute is missing, apply this metadata KeyValuePair. The value in the KeyValuePair must be set.
.envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.KeyValuePair on_missing = 3;- Returns:
- The onMissing.
-
getOnMissingOrBuilder
JsonToMetadata.KeyValuePairOrBuilder getOnMissingOrBuilder()If the attribute is missing, apply this metadata KeyValuePair. The value in the KeyValuePair must be set.
.envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.KeyValuePair on_missing = 3; -
hasOnError
boolean hasOnError()If the body is too large or fail to parse or content-type is mismatched, apply this metadata KeyValuePair. The value in the KeyValuePair must be set.
.envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.KeyValuePair on_error = 4;- Returns:
- Whether the onError field is set.
-
getOnError
JsonToMetadata.KeyValuePair getOnError()If the body is too large or fail to parse or content-type is mismatched, apply this metadata KeyValuePair. The value in the KeyValuePair must be set.
.envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.KeyValuePair on_error = 4;- Returns:
- The onError.
-
getOnErrorOrBuilder
JsonToMetadata.KeyValuePairOrBuilder getOnErrorOrBuilder()If the body is too large or fail to parse or content-type is mismatched, apply this metadata KeyValuePair. The value in the KeyValuePair must be set.
.envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.KeyValuePair on_error = 4;
-