Class UpstreamIpPortMatcher.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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 typeenvoy.extensions.rbac.matchers.upstream_ip_port.v3.UpstreamIpPortMatcher
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpstreamIpPortMatcher.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)UpstreamIpPortMatcherbuild()UpstreamIpPortMatcherbuildPartial()UpstreamIpPortMatcher.Builderclear()UpstreamIpPortMatcher.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)UpstreamIpPortMatcher.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)UpstreamIpPortMatcher.BuilderclearUpstreamIp()A CIDR block that will be used to match the upstream IP.UpstreamIpPortMatcher.BuilderclearUpstreamPortRange()A port range that will be used to match the upstream port.UpstreamIpPortMatcher.Builderclone()UpstreamIpPortMatchergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()CidrRangegetUpstreamIp()A CIDR block that will be used to match the upstream IP.CidrRange.BuildergetUpstreamIpBuilder()A CIDR block that will be used to match the upstream IP.CidrRangeOrBuildergetUpstreamIpOrBuilder()A CIDR block that will be used to match the upstream IP.Int64RangegetUpstreamPortRange()A port range that will be used to match the upstream port.Int64Range.BuildergetUpstreamPortRangeBuilder()A port range that will be used to match the upstream port.Int64RangeOrBuildergetUpstreamPortRangeOrBuilder()A port range that will be used to match the upstream port.booleanhasUpstreamIp()A CIDR block that will be used to match the upstream IP.booleanhasUpstreamPortRange()A port range that will be used to match the upstream port.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()UpstreamIpPortMatcher.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)UpstreamIpPortMatcher.BuildermergeFrom(com.google.protobuf.Message other)UpstreamIpPortMatcher.BuildermergeFrom(UpstreamIpPortMatcher other)UpstreamIpPortMatcher.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)UpstreamIpPortMatcher.BuildermergeUpstreamIp(CidrRange value)A CIDR block that will be used to match the upstream IP.UpstreamIpPortMatcher.BuildermergeUpstreamPortRange(Int64Range value)A port range that will be used to match the upstream port.UpstreamIpPortMatcher.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)UpstreamIpPortMatcher.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)UpstreamIpPortMatcher.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)UpstreamIpPortMatcher.BuildersetUpstreamIp(CidrRange value)A CIDR block that will be used to match the upstream IP.UpstreamIpPortMatcher.BuildersetUpstreamIp(CidrRange.Builder builderForValue)A CIDR block that will be used to match the upstream IP.UpstreamIpPortMatcher.BuildersetUpstreamPortRange(Int64Range value)A port range that will be used to match the upstream port.UpstreamIpPortMatcher.BuildersetUpstreamPortRange(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, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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
public 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
public UpstreamIpPortMatcher getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public UpstreamIpPortMatcher build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public UpstreamIpPortMatcher buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public UpstreamIpPortMatcher.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
public UpstreamIpPortMatcher.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UpstreamIpPortMatcher.Builder>
-
mergeFrom
public UpstreamIpPortMatcher.Builder mergeFrom(UpstreamIpPortMatcher other)
-
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
public CidrRange 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
public UpstreamIpPortMatcher.Builder setUpstreamIp(CidrRange value)
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
public UpstreamIpPortMatcher.Builder setUpstreamIp(CidrRange.Builder builderForValue)
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
public UpstreamIpPortMatcher.Builder mergeUpstreamIp(CidrRange value)
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
public UpstreamIpPortMatcher.Builder 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
public CidrRange.Builder 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
public CidrRangeOrBuilder 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
public Int64Range 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
public UpstreamIpPortMatcher.Builder setUpstreamPortRange(Int64Range value)
A port range that will be used to match the upstream port.
.envoy.type.v3.Int64Range upstream_port_range = 2;
-
setUpstreamPortRange
public UpstreamIpPortMatcher.Builder setUpstreamPortRange(Int64Range.Builder builderForValue)
A port range that will be used to match the upstream port.
.envoy.type.v3.Int64Range upstream_port_range = 2;
-
mergeUpstreamPortRange
public UpstreamIpPortMatcher.Builder mergeUpstreamPortRange(Int64Range value)
A port range that will be used to match the upstream port.
.envoy.type.v3.Int64Range upstream_port_range = 2;
-
clearUpstreamPortRange
public UpstreamIpPortMatcher.Builder clearUpstreamPortRange()
A port range that will be used to match the upstream port.
.envoy.type.v3.Int64Range upstream_port_range = 2;
-
getUpstreamPortRangeBuilder
public Int64Range.Builder getUpstreamPortRangeBuilder()
A port range that will be used to match the upstream port.
.envoy.type.v3.Int64Range upstream_port_range = 2;
-
getUpstreamPortRangeOrBuilder
public Int64RangeOrBuilder 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>
-
-