Class RequestMatcher
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.filters.network.generic_proxy.matcher.v3.RequestMatcher
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RequestMatcherOrBuilder,Serializable
public final class RequestMatcher
extends com.google.protobuf.GeneratedMessageV3
implements RequestMatcherOrBuilder
Custom matcher to match on the generic downstream request. This is used to match multiple fields of the downstream request and avoid complex combinations of HostMatchInput, PathMatchInput, MethodMatchInput and PropertyMatchInput.Protobuf type
envoy.extensions.filters.network.generic_proxy.matcher.v3.RequestMatcher- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classCustom matcher to match on the generic downstream request.Nested 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 TypeMethodDescriptionbooleanstatic RequestMatcherstatic final com.google.protobuf.Descriptors.DescriptorgetHost()Optional host pattern to match on.Optional host pattern to match on.Optional method pattern to match on.Optional method pattern to match on.com.google.protobuf.Parser<RequestMatcher>getPath()Optional path pattern to match on.Optional path pattern to match on.getProperties(int index) Optional arbitrary properties to match on.intOptional arbitrary properties to match on.Optional arbitrary properties to match on.getPropertiesOrBuilder(int index) Optional arbitrary properties to match on.List<? extends KeyValueMatchEntryOrBuilder>Optional arbitrary properties to match on.intinthashCode()booleanhasHost()Optional host pattern to match on.booleanOptional method pattern to match on.booleanhasPath()Optional path pattern to match on.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic RequestMatcher.Builderstatic RequestMatcher.BuildernewBuilder(RequestMatcher prototype) protected RequestMatcher.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static RequestMatcherparseDelimitedFrom(InputStream input) static RequestMatcherparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RequestMatcherparseFrom(byte[] data) static RequestMatcherparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RequestMatcherparseFrom(com.google.protobuf.ByteString data) static RequestMatcherparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RequestMatcherparseFrom(com.google.protobuf.CodedInputStream input) static RequestMatcherparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RequestMatcherparseFrom(InputStream input) static RequestMatcherparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RequestMatcherparseFrom(ByteBuffer data) static RequestMatcherparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<RequestMatcher>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
-
HOST_FIELD_NUMBER
public static final int HOST_FIELD_NUMBER- See Also:
-
PATH_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER- See Also:
-
METHOD_FIELD_NUMBER
public static final int METHOD_FIELD_NUMBER- See Also:
-
PROPERTIES_FIELD_NUMBER
public static final int PROPERTIES_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
-
hasHost
public boolean hasHost()Optional host pattern to match on. If not specified, any host will match.
.envoy.type.matcher.v3.StringMatcher host = 1;- Specified by:
hasHostin interfaceRequestMatcherOrBuilder- Returns:
- Whether the host field is set.
-
getHost
Optional host pattern to match on. If not specified, any host will match.
.envoy.type.matcher.v3.StringMatcher host = 1;- Specified by:
getHostin interfaceRequestMatcherOrBuilder- Returns:
- The host.
-
getHostOrBuilder
Optional host pattern to match on. If not specified, any host will match.
.envoy.type.matcher.v3.StringMatcher host = 1;- Specified by:
getHostOrBuilderin interfaceRequestMatcherOrBuilder
-
hasPath
public boolean hasPath()Optional path pattern to match on. If not specified, any path will match.
.envoy.type.matcher.v3.StringMatcher path = 2;- Specified by:
hasPathin interfaceRequestMatcherOrBuilder- Returns:
- Whether the path field is set.
-
getPath
Optional path pattern to match on. If not specified, any path will match.
.envoy.type.matcher.v3.StringMatcher path = 2;- Specified by:
getPathin interfaceRequestMatcherOrBuilder- Returns:
- The path.
-
getPathOrBuilder
Optional path pattern to match on. If not specified, any path will match.
.envoy.type.matcher.v3.StringMatcher path = 2;- Specified by:
getPathOrBuilderin interfaceRequestMatcherOrBuilder
-
hasMethod
public boolean hasMethod()Optional method pattern to match on. If not specified, any method will match.
.envoy.type.matcher.v3.StringMatcher method = 3;- Specified by:
hasMethodin interfaceRequestMatcherOrBuilder- Returns:
- Whether the method field is set.
-
getMethod
Optional method pattern to match on. If not specified, any method will match.
.envoy.type.matcher.v3.StringMatcher method = 3;- Specified by:
getMethodin interfaceRequestMatcherOrBuilder- Returns:
- The method.
-
getMethodOrBuilder
Optional method pattern to match on. If not specified, any method will match.
.envoy.type.matcher.v3.StringMatcher method = 3;- Specified by:
getMethodOrBuilderin interfaceRequestMatcherOrBuilder
-
getPropertiesList
Optional arbitrary properties to match on. If not specified, any properties will match. The key is the property name and the value is the property value to match on.
repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;- Specified by:
getPropertiesListin interfaceRequestMatcherOrBuilder
-
getPropertiesOrBuilderList
Optional arbitrary properties to match on. If not specified, any properties will match. The key is the property name and the value is the property value to match on.
repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;- Specified by:
getPropertiesOrBuilderListin interfaceRequestMatcherOrBuilder
-
getPropertiesCount
public int getPropertiesCount()Optional arbitrary properties to match on. If not specified, any properties will match. The key is the property name and the value is the property value to match on.
repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;- Specified by:
getPropertiesCountin interfaceRequestMatcherOrBuilder
-
getProperties
Optional arbitrary properties to match on. If not specified, any properties will match. The key is the property name and the value is the property value to match on.
repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;- Specified by:
getPropertiesin interfaceRequestMatcherOrBuilder
-
getPropertiesOrBuilder
Optional arbitrary properties to match on. If not specified, any properties will match. The key is the property name and the value is the property value to match on.
repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;- Specified by:
getPropertiesOrBuilderin interfaceRequestMatcherOrBuilder
-
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 RequestMatcher parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RequestMatcher parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RequestMatcher parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RequestMatcher parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RequestMatcher parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RequestMatcher parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static RequestMatcher parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static RequestMatcher parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static RequestMatcher parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static RequestMatcher 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 RequestMatcher.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
-