Class RequestMatcher.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<RequestMatcher.Builder>
io.envoyproxy.envoy.extensions.filters.network.generic_proxy.matcher.v3.RequestMatcher.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RequestMatcherOrBuilder,Cloneable
- Enclosing class:
- RequestMatcher
public static final class RequestMatcher.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<RequestMatcher.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllProperties(Iterable<? extends KeyValueMatchEntry> values) Optional arbitrary properties to match on.addProperties(int index, KeyValueMatchEntry value) Optional arbitrary properties to match on.addProperties(int index, KeyValueMatchEntry.Builder builderForValue) Optional arbitrary properties to match on.addProperties(KeyValueMatchEntry value) Optional arbitrary properties to match on.addProperties(KeyValueMatchEntry.Builder builderForValue) Optional arbitrary properties to match on.Optional arbitrary properties to match on.addPropertiesBuilder(int index) Optional arbitrary properties to match on.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Optional host pattern to match on.Optional method pattern to match on.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Optional path pattern to match on.Optional arbitrary properties to match on.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetHost()Optional host pattern to match on.Optional host pattern to match on.Optional host pattern to match on.Optional method pattern to match on.Optional method pattern to match on.Optional method pattern to match on.getPath()Optional path pattern to match on.Optional path pattern to match on.Optional path pattern to match on.getProperties(int index) Optional arbitrary properties to match on.getPropertiesBuilder(int index) Optional arbitrary properties to match on.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.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 booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(RequestMatcher other) mergeHost(StringMatcher value) Optional host pattern to match on.mergeMethod(StringMatcher value) Optional method pattern to match on.mergePath(StringMatcher value) Optional path pattern to match on.final RequestMatcher.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeProperties(int index) Optional arbitrary properties to match on.setHost(StringMatcher value) Optional host pattern to match on.setHost(StringMatcher.Builder builderForValue) Optional host pattern to match on.setMethod(StringMatcher value) Optional method pattern to match on.setMethod(StringMatcher.Builder builderForValue) Optional method pattern to match on.setPath(StringMatcher value) Optional path pattern to match on.setPath(StringMatcher.Builder builderForValue) Optional path pattern to match on.setProperties(int index, KeyValueMatchEntry value) Optional arbitrary properties to match on.setProperties(int index, KeyValueMatchEntry.Builder builderForValue) Optional arbitrary properties to match on.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final RequestMatcher.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<RequestMatcher.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestMatcher.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<RequestMatcher.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RequestMatcher.Builder>
-
setField
public RequestMatcher.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestMatcher.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestMatcher.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestMatcher.Builder>
-
setRepeatedField
public RequestMatcher.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestMatcher.Builder>
-
addRepeatedField
public RequestMatcher.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestMatcher.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RequestMatcher.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestMatcher.Builder>
-
mergeFrom
public RequestMatcher.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RequestMatcher.Builder>- Throws:
IOException
-
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.
-
setHost
Optional host pattern to match on. If not specified, any host will match.
.envoy.type.matcher.v3.StringMatcher host = 1; -
setHost
Optional host pattern to match on. If not specified, any host will match.
.envoy.type.matcher.v3.StringMatcher host = 1; -
mergeHost
Optional host pattern to match on. If not specified, any host will match.
.envoy.type.matcher.v3.StringMatcher host = 1; -
clearHost
Optional host pattern to match on. If not specified, any host will match.
.envoy.type.matcher.v3.StringMatcher host = 1; -
getHostBuilder
Optional host pattern to match on. If not specified, any host will match.
.envoy.type.matcher.v3.StringMatcher host = 1; -
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.
-
setPath
Optional path pattern to match on. If not specified, any path will match.
.envoy.type.matcher.v3.StringMatcher path = 2; -
setPath
Optional path pattern to match on. If not specified, any path will match.
.envoy.type.matcher.v3.StringMatcher path = 2; -
mergePath
Optional path pattern to match on. If not specified, any path will match.
.envoy.type.matcher.v3.StringMatcher path = 2; -
clearPath
Optional path pattern to match on. If not specified, any path will match.
.envoy.type.matcher.v3.StringMatcher path = 2; -
getPathBuilder
Optional path pattern to match on. If not specified, any path will match.
.envoy.type.matcher.v3.StringMatcher path = 2; -
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.
-
setMethod
Optional method pattern to match on. If not specified, any method will match.
.envoy.type.matcher.v3.StringMatcher method = 3; -
setMethod
Optional method pattern to match on. If not specified, any method will match.
.envoy.type.matcher.v3.StringMatcher method = 3; -
mergeMethod
Optional method pattern to match on. If not specified, any method will match.
.envoy.type.matcher.v3.StringMatcher method = 3; -
clearMethod
Optional method pattern to match on. If not specified, any method will match.
.envoy.type.matcher.v3.StringMatcher method = 3; -
getMethodBuilder
Optional method pattern to match on. If not specified, any method will match.
.envoy.type.matcher.v3.StringMatcher method = 3; -
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
-
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
-
setProperties
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; -
setProperties
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; -
addProperties
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; -
addProperties
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; -
addProperties
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; -
addProperties
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; -
addAllProperties
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; -
clearProperties
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; -
removeProperties
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; -
getPropertiesBuilder
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; -
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
-
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
-
addPropertiesBuilder
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; -
addPropertiesBuilder
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; -
getPropertiesBuilderList
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; -
setUnknownFields
public final RequestMatcher.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestMatcher.Builder>
-
mergeUnknownFields
public final RequestMatcher.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RequestMatcher.Builder>
-