Class JsonToMetadata.Rule
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,JsonToMetadata.RuleOrBuilder,Serializable
- Enclosing class:
- JsonToMetadata
public static final class JsonToMetadata.Rule extends com.google.protobuf.GeneratedMessageV3 implements JsonToMetadata.RuleOrBuilder
A Rule defines what metadata to apply when a key-value is present, missing in the json or fail to parse the payload.
Protobuf typeenvoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJsonToMetadata.Rule.BuilderA Rule defines what metadata to apply when a key-value is present, missing in the json or fail to parse the payload.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intON_ERROR_FIELD_NUMBERstatic intON_MISSING_FIELD_NUMBERstatic intON_PRESENT_FIELD_NUMBERstatic intSELECTORS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static JsonToMetadata.RulegetDefaultInstance()JsonToMetadata.RulegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()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.com.google.protobuf.Parser<JsonToMetadata.Rule>getParserForType()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.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static JsonToMetadata.Rule.BuildernewBuilder()static JsonToMetadata.Rule.BuildernewBuilder(JsonToMetadata.Rule prototype)JsonToMetadata.Rule.BuildernewBuilderForType()protected JsonToMetadata.Rule.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static JsonToMetadata.RuleparseDelimitedFrom(InputStream input)static JsonToMetadata.RuleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static JsonToMetadata.RuleparseFrom(byte[] data)static JsonToMetadata.RuleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static JsonToMetadata.RuleparseFrom(com.google.protobuf.ByteString data)static JsonToMetadata.RuleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static JsonToMetadata.RuleparseFrom(com.google.protobuf.CodedInputStream input)static JsonToMetadata.RuleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static JsonToMetadata.RuleparseFrom(InputStream input)static JsonToMetadata.RuleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static JsonToMetadata.RuleparseFrom(ByteBuffer data)static JsonToMetadata.RuleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<JsonToMetadata.Rule>parser()JsonToMetadata.Rule.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SELECTORS_FIELD_NUMBER
public static final int SELECTORS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ON_PRESENT_FIELD_NUMBER
public static final int ON_PRESENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ON_MISSING_FIELD_NUMBER
public static final int ON_MISSING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ON_ERROR_FIELD_NUMBER
public static final int ON_ERROR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getSelectorsList
public 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) = { ... }- Specified by:
getSelectorsListin interfaceJsonToMetadata.RuleOrBuilder
-
getSelectorsOrBuilderList
public 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) = { ... }- Specified by:
getSelectorsOrBuilderListin interfaceJsonToMetadata.RuleOrBuilder
-
getSelectorsCount
public 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) = { ... }- Specified by:
getSelectorsCountin interfaceJsonToMetadata.RuleOrBuilder
-
getSelectors
public 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) = { ... }- Specified by:
getSelectorsin interfaceJsonToMetadata.RuleOrBuilder
-
getSelectorsOrBuilder
public 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) = { ... }- Specified by:
getSelectorsOrBuilderin interfaceJsonToMetadata.RuleOrBuilder
-
hasOnPresent
public boolean hasOnPresent()
If the attribute is present, apply this metadata KeyValuePair.
.envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.KeyValuePair on_present = 2;- Specified by:
hasOnPresentin interfaceJsonToMetadata.RuleOrBuilder- Returns:
- Whether the onPresent field is set.
-
getOnPresent
public 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;- Specified by:
getOnPresentin interfaceJsonToMetadata.RuleOrBuilder- Returns:
- The onPresent.
-
getOnPresentOrBuilder
public 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;- Specified by:
getOnPresentOrBuilderin interfaceJsonToMetadata.RuleOrBuilder
-
hasOnMissing
public 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;- Specified by:
hasOnMissingin interfaceJsonToMetadata.RuleOrBuilder- Returns:
- Whether the onMissing field is set.
-
getOnMissing
public 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;- Specified by:
getOnMissingin interfaceJsonToMetadata.RuleOrBuilder- Returns:
- The onMissing.
-
getOnMissingOrBuilder
public 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;- Specified by:
getOnMissingOrBuilderin interfaceJsonToMetadata.RuleOrBuilder
-
hasOnError
public 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;- Specified by:
hasOnErrorin interfaceJsonToMetadata.RuleOrBuilder- Returns:
- Whether the onError field is set.
-
getOnError
public 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;- Specified by:
getOnErrorin interfaceJsonToMetadata.RuleOrBuilder- Returns:
- The onError.
-
getOnErrorOrBuilder
public 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;- Specified by:
getOnErrorOrBuilderin interfaceJsonToMetadata.RuleOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static JsonToMetadata.Rule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static JsonToMetadata.Rule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static JsonToMetadata.Rule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static JsonToMetadata.Rule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static JsonToMetadata.Rule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static JsonToMetadata.Rule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static JsonToMetadata.Rule parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static JsonToMetadata.Rule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static JsonToMetadata.Rule parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static JsonToMetadata.Rule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static JsonToMetadata.Rule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static JsonToMetadata.Rule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public JsonToMetadata.Rule.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static JsonToMetadata.Rule.Builder newBuilder()
-
newBuilder
public static JsonToMetadata.Rule.Builder newBuilder(JsonToMetadata.Rule prototype)
-
toBuilder
public JsonToMetadata.Rule.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected JsonToMetadata.Rule.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static JsonToMetadata.Rule getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<JsonToMetadata.Rule> parser()
-
getParserForType
public com.google.protobuf.Parser<JsonToMetadata.Rule> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public JsonToMetadata.Rule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-