Class JsonToMetadata.MatchRules
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.MatchRules
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,JsonToMetadata.MatchRulesOrBuilder,Serializable
- Enclosing class:
- JsonToMetadata
public static final class JsonToMetadata.MatchRules
extends com.google.protobuf.GeneratedMessageV3
implements JsonToMetadata.MatchRulesOrBuilder
Protobuf type
envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.MatchRules- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeenvoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.MatchRulesNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAllowContentTypes(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.com.google.protobuf.ProtocolStringListAllowed 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.static JsonToMetadata.MatchRulesstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<JsonToMetadata.MatchRules>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.intbooleanAllowed content-type by regex match for json to metadata transformation.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(JsonToMetadata.MatchRules prototype) protected JsonToMetadata.MatchRules.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static JsonToMetadata.MatchRulesparseDelimitedFrom(InputStream input) static JsonToMetadata.MatchRulesparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static JsonToMetadata.MatchRulesparseFrom(byte[] data) static JsonToMetadata.MatchRulesparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static JsonToMetadata.MatchRulesparseFrom(com.google.protobuf.ByteString data) static JsonToMetadata.MatchRulesparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static JsonToMetadata.MatchRulesparseFrom(com.google.protobuf.CodedInputStream input) static JsonToMetadata.MatchRulesparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static JsonToMetadata.MatchRulesparseFrom(InputStream input) static JsonToMetadata.MatchRulesparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static JsonToMetadata.MatchRulesparseFrom(ByteBuffer data) static JsonToMetadata.MatchRulesparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<JsonToMetadata.MatchRules>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
RULES_FIELD_NUMBER
public static final int RULES_FIELD_NUMBER- See Also:
-
ALLOW_CONTENT_TYPES_FIELD_NUMBER
public static final int ALLOW_CONTENT_TYPES_FIELD_NUMBER- See Also:
-
ALLOW_EMPTY_CONTENT_TYPE_FIELD_NUMBER
public static final int ALLOW_EMPTY_CONTENT_TYPE_FIELD_NUMBER- See Also:
-
ALLOW_CONTENT_TYPES_REGEX_FIELD_NUMBER
public static final int ALLOW_CONTENT_TYPES_REGEX_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein 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
-
getRulesList
The list of rules to apply.
repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }- Specified by:
getRulesListin interfaceJsonToMetadata.MatchRulesOrBuilder
-
getRulesOrBuilderList
The list of rules to apply.
repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }- Specified by:
getRulesOrBuilderListin interfaceJsonToMetadata.MatchRulesOrBuilder
-
getRulesCount
public int getRulesCount()The list of rules to apply.
repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }- Specified by:
getRulesCountin interfaceJsonToMetadata.MatchRulesOrBuilder
-
getRules
The list of rules to apply.
repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }- Specified by:
getRulesin interfaceJsonToMetadata.MatchRulesOrBuilder
-
getRulesOrBuilder
The list of rules to apply.
repeated .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.Rule rules = 1 [(.validate.rules) = { ... }- Specified by:
getRulesOrBuilderin interfaceJsonToMetadata.MatchRulesOrBuilder
-
getAllowContentTypesList
public com.google.protobuf.ProtocolStringList 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) = { ... }- Specified by:
getAllowContentTypesListin interfaceJsonToMetadata.MatchRulesOrBuilder- Returns:
- A list containing the allowContentTypes.
-
getAllowContentTypesCount
public 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) = { ... }- Specified by:
getAllowContentTypesCountin interfaceJsonToMetadata.MatchRulesOrBuilder- 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) = { ... }- Specified by:
getAllowContentTypesin interfaceJsonToMetadata.MatchRulesOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowContentTypes at the given index.
-
getAllowContentTypesBytes
public 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) = { ... }- Specified by:
getAllowContentTypesBytesin interfaceJsonToMetadata.MatchRulesOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowContentTypes at the given index.
-
getAllowEmptyContentType
public boolean getAllowEmptyContentType()Allowed empty content-type for json to metadata transformation. Default to false.
bool allow_empty_content_type = 3;- Specified by:
getAllowEmptyContentTypein interfaceJsonToMetadata.MatchRulesOrBuilder- Returns:
- The allowEmptyContentType.
-
hasAllowContentTypesRegex
public 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;- Specified by:
hasAllowContentTypesRegexin interfaceJsonToMetadata.MatchRulesOrBuilder- Returns:
- Whether the allowContentTypesRegex field is set.
-
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;- Specified by:
getAllowContentTypesRegexin interfaceJsonToMetadata.MatchRulesOrBuilder- Returns:
- The allowContentTypesRegex.
-
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;- Specified by:
getAllowContentTypesRegexOrBuilderin interfaceJsonToMetadata.MatchRulesOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- 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
- 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.MatchRules parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static JsonToMetadata.MatchRules parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static JsonToMetadata.MatchRules parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static JsonToMetadata.MatchRules 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.MatchRules parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static JsonToMetadata.MatchRules parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static JsonToMetadata.MatchRules parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static JsonToMetadata.MatchRules parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static JsonToMetadata.MatchRules parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static JsonToMetadata.MatchRules parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected JsonToMetadata.MatchRules.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-