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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JsonToMetadata.KeyValuePairgetOnError()If the body is too large or fail to parse, apply this metadata KeyValuePair.JsonToMetadata.KeyValuePairOrBuildergetOnErrorOrBuilder()If the body is too large or fail to parse, apply this metadata KeyValuePair.JsonToMetadata.KeyValuePairgetOnMissing()If the attribute is missing, apply this metadata KeyValuePair.JsonToMetadata.KeyValuePairOrBuildergetOnMissingOrBuilder()If the attribute is missing, apply this metadata KeyValuePair.JsonToMetadata.KeyValuePairgetOnPresent()If the attribute is present, apply this metadata KeyValuePair.JsonToMetadata.KeyValuePairOrBuildergetOnPresentOrBuilder()If the attribute is present, apply this metadata KeyValuePair.JsonToMetadata.SelectorgetSelectors(int index)Specifies that a match will be performed on the value of a property.intgetSelectorsCount()Specifies that a match will be performed on the value of a property.List<JsonToMetadata.Selector>getSelectorsList()Specifies that a match will be performed on the value of a property.JsonToMetadata.SelectorOrBuildergetSelectorsOrBuilder(int index)Specifies that a match will be performed on the value of a property.List<? extends JsonToMetadata.SelectorOrBuilder>getSelectorsOrBuilderList()Specifies that a match will be performed on the value of a property.booleanhasOnError()If the body is too large or fail to parse, apply this metadata KeyValuePair.booleanhasOnMissing()If the attribute is missing, apply this metadata KeyValuePair.booleanhasOnPresent()If the attribute is present, apply this metadata KeyValuePair.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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
JsonToMetadata.Selector getSelectors(int index)
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
JsonToMetadata.SelectorOrBuilder getSelectorsOrBuilder(int index)
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, 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, 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, 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;
-
-