Class UpstreamIpPortMatcher.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<UpstreamIpPortMatcher.Builder>
io.envoyproxy.envoy.extensions.rbac.matchers.upstream_ip_port.v3.UpstreamIpPortMatcher.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,UpstreamIpPortMatcherOrBuilder,Cloneable
- Enclosing class:
- UpstreamIpPortMatcher
public static final class UpstreamIpPortMatcher.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<UpstreamIpPortMatcher.Builder>
implements UpstreamIpPortMatcherOrBuilder
This is configuration for matching upstream ip and port. Note that although both fields are optional, at least one of IP or port must be supplied. If only one is supplied the other is a wildcard match. This matcher requires a filter in the chain to have saved the upstream address in the filter state before the matcher is executed by RBAC filter. The state should be saved with key ``envoy.stream.upstream_address`` (See :repo:`upstream_address.h<source/common/stream_info/upstream_address.h>`). Also, See :repo:`proxy_filter.cc<source/extensions/filters/http/dynamic_forward_proxy/proxy_filter.cc>` for an example of a filter which populates the FilterState.Protobuf type
envoy.extensions.rbac.matchers.upstream_ip_port.v3.UpstreamIpPortMatcher-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) A CIDR block that will be used to match the upstream IP.A port range that will be used to match the upstream port.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA CIDR block that will be used to match the upstream IP.A CIDR block that will be used to match the upstream IP.A CIDR block that will be used to match the upstream IP.A port range that will be used to match the upstream port.A port range that will be used to match the upstream port.A port range that will be used to match the upstream port.booleanA CIDR block that will be used to match the upstream IP.booleanA port range that will be used to match the upstream port.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(UpstreamIpPortMatcher other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) mergeUpstreamIp(CidrRange value) A CIDR block that will be used to match the upstream IP.mergeUpstreamPortRange(Int64Range value) A port range that will be used to match the upstream port.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setUpstreamIp(CidrRange value) A CIDR block that will be used to match the upstream IP.setUpstreamIp(CidrRange.Builder builderForValue) A CIDR block that will be used to match the upstream IP.setUpstreamPortRange(Int64Range value) A port range that will be used to match the upstream port.setUpstreamPortRange(Int64Range.Builder builderForValue) A port range that will be used to match the upstream port.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<UpstreamIpPortMatcher.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<UpstreamIpPortMatcher.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<UpstreamIpPortMatcher.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<UpstreamIpPortMatcher.Builder>
-
setField
public UpstreamIpPortMatcher.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<UpstreamIpPortMatcher.Builder>
-
clearField
public UpstreamIpPortMatcher.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UpstreamIpPortMatcher.Builder>
-
clearOneof
public UpstreamIpPortMatcher.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<UpstreamIpPortMatcher.Builder>
-
setRepeatedField
public UpstreamIpPortMatcher.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<UpstreamIpPortMatcher.Builder>
-
addRepeatedField
public UpstreamIpPortMatcher.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<UpstreamIpPortMatcher.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UpstreamIpPortMatcher.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<UpstreamIpPortMatcher.Builder>
-
mergeFrom
public UpstreamIpPortMatcher.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<UpstreamIpPortMatcher.Builder>- Throws:
IOException
-
hasUpstreamIp
public boolean hasUpstreamIp()A CIDR block that will be used to match the upstream IP. Both Ipv4 and Ipv6 ranges can be matched.
.envoy.config.core.v3.CidrRange upstream_ip = 1;- Specified by:
hasUpstreamIpin interfaceUpstreamIpPortMatcherOrBuilder- Returns:
- Whether the upstreamIp field is set.
-
getUpstreamIp
A CIDR block that will be used to match the upstream IP. Both Ipv4 and Ipv6 ranges can be matched.
.envoy.config.core.v3.CidrRange upstream_ip = 1;- Specified by:
getUpstreamIpin interfaceUpstreamIpPortMatcherOrBuilder- Returns:
- The upstreamIp.
-
setUpstreamIp
A CIDR block that will be used to match the upstream IP. Both Ipv4 and Ipv6 ranges can be matched.
.envoy.config.core.v3.CidrRange upstream_ip = 1; -
setUpstreamIp
A CIDR block that will be used to match the upstream IP. Both Ipv4 and Ipv6 ranges can be matched.
.envoy.config.core.v3.CidrRange upstream_ip = 1; -
mergeUpstreamIp
A CIDR block that will be used to match the upstream IP. Both Ipv4 and Ipv6 ranges can be matched.
.envoy.config.core.v3.CidrRange upstream_ip = 1; -
clearUpstreamIp
A CIDR block that will be used to match the upstream IP. Both Ipv4 and Ipv6 ranges can be matched.
.envoy.config.core.v3.CidrRange upstream_ip = 1; -
getUpstreamIpBuilder
A CIDR block that will be used to match the upstream IP. Both Ipv4 and Ipv6 ranges can be matched.
.envoy.config.core.v3.CidrRange upstream_ip = 1; -
getUpstreamIpOrBuilder
A CIDR block that will be used to match the upstream IP. Both Ipv4 and Ipv6 ranges can be matched.
.envoy.config.core.v3.CidrRange upstream_ip = 1;- Specified by:
getUpstreamIpOrBuilderin interfaceUpstreamIpPortMatcherOrBuilder
-
hasUpstreamPortRange
public boolean hasUpstreamPortRange()A port range that will be used to match the upstream port.
.envoy.type.v3.Int64Range upstream_port_range = 2;- Specified by:
hasUpstreamPortRangein interfaceUpstreamIpPortMatcherOrBuilder- Returns:
- Whether the upstreamPortRange field is set.
-
getUpstreamPortRange
A port range that will be used to match the upstream port.
.envoy.type.v3.Int64Range upstream_port_range = 2;- Specified by:
getUpstreamPortRangein interfaceUpstreamIpPortMatcherOrBuilder- Returns:
- The upstreamPortRange.
-
setUpstreamPortRange
A port range that will be used to match the upstream port.
.envoy.type.v3.Int64Range upstream_port_range = 2; -
setUpstreamPortRange
A port range that will be used to match the upstream port.
.envoy.type.v3.Int64Range upstream_port_range = 2; -
mergeUpstreamPortRange
A port range that will be used to match the upstream port.
.envoy.type.v3.Int64Range upstream_port_range = 2; -
clearUpstreamPortRange
A port range that will be used to match the upstream port.
.envoy.type.v3.Int64Range upstream_port_range = 2; -
getUpstreamPortRangeBuilder
A port range that will be used to match the upstream port.
.envoy.type.v3.Int64Range upstream_port_range = 2; -
getUpstreamPortRangeOrBuilder
A port range that will be used to match the upstream port.
.envoy.type.v3.Int64Range upstream_port_range = 2;- Specified by:
getUpstreamPortRangeOrBuilderin interfaceUpstreamIpPortMatcherOrBuilder
-
setUnknownFields
public final UpstreamIpPortMatcher.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UpstreamIpPortMatcher.Builder>
-
mergeUnknownFields
public final UpstreamIpPortMatcher.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UpstreamIpPortMatcher.Builder>
-