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 typeenvoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.MatchRules- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJsonToMetadata.MatchRules.BuilderProtobuf typeenvoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.MatchRules-
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 intALLOW_CONTENT_TYPES_FIELD_NUMBERstatic intALLOW_EMPTY_CONTENT_TYPE_FIELD_NUMBERstatic intRULES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAllowContentTypes(int index)Allowed content-type for json to metadata transformation.com.google.protobuf.ByteStringgetAllowContentTypesBytes(int index)Allowed content-type for json to metadata transformation.intgetAllowContentTypesCount()Allowed content-type for json to metadata transformation.com.google.protobuf.ProtocolStringListgetAllowContentTypesList()Allowed content-type for json to metadata transformation.booleangetAllowEmptyContentType()Allowed empty content-type for json to metadata transformation.static JsonToMetadata.MatchRulesgetDefaultInstance()JsonToMetadata.MatchRulesgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Parser<JsonToMetadata.MatchRules>getParserForType()JsonToMetadata.RulegetRules(int index)The list of rules to apply.intgetRulesCount()The list of rules to apply.List<JsonToMetadata.Rule>getRulesList()The list of rules to apply.JsonToMetadata.RuleOrBuildergetRulesOrBuilder(int index)The list of rules to apply.List<? extends JsonToMetadata.RuleOrBuilder>getRulesOrBuilderList()The list of rules to apply.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static JsonToMetadata.MatchRules.BuildernewBuilder()static JsonToMetadata.MatchRules.BuildernewBuilder(JsonToMetadata.MatchRules prototype)JsonToMetadata.MatchRules.BuildernewBuilderForType()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()JsonToMetadata.MatchRules.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
-
RULES_FIELD_NUMBER
public static final int RULES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALLOW_CONTENT_TYPES_FIELD_NUMBER
public static final int ALLOW_CONTENT_TYPES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALLOW_EMPTY_CONTENT_TYPE_FIELD_NUMBER
public static final int ALLOW_EMPTY_CONTENT_TYPE_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
-
getRulesList
public 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) = { ... }- Specified by:
getRulesListin interfaceJsonToMetadata.MatchRulesOrBuilder
-
getRulesOrBuilderList
public 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) = { ... }- 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
public JsonToMetadata.Rule getRules(int index)
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
public JsonToMetadata.RuleOrBuilder getRulesOrBuilder(int index)
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
public String getAllowContentTypes(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:
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.
-
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.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
public static JsonToMetadata.MatchRules parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static JsonToMetadata.MatchRules parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static JsonToMetadata.MatchRules parseDelimitedFrom(InputStream input) throws IOException
- 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
public JsonToMetadata.MatchRules.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static JsonToMetadata.MatchRules.Builder newBuilder()
-
newBuilder
public static JsonToMetadata.MatchRules.Builder newBuilder(JsonToMetadata.MatchRules prototype)
-
toBuilder
public JsonToMetadata.MatchRules.Builder 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
public static JsonToMetadata.MatchRules getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<JsonToMetadata.MatchRules> parser()
-
getParserForType
public com.google.protobuf.Parser<JsonToMetadata.MatchRules> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public JsonToMetadata.MatchRules getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-