Package k8s.io.api.networking.v1
Class Generated.NetworkPolicyEgressRule.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicyEgressRule.Builder>
-
- k8s.io.api.networking.v1.Generated.NetworkPolicyEgressRule.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.NetworkPolicyEgressRuleOrBuilder
- Enclosing class:
- Generated.NetworkPolicyEgressRule
public static final class Generated.NetworkPolicyEgressRule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicyEgressRule.Builder> implements Generated.NetworkPolicyEgressRuleOrBuilder
NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8
Protobuf typek8s.io.api.networking.v1.NetworkPolicyEgressRule
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.NetworkPolicyEgressRule.BuilderaddAllPorts(Iterable<? extends Generated.NetworkPolicyPort> values)ports is a list of destination ports for outgoing traffic.Generated.NetworkPolicyEgressRule.BuilderaddAllTo(Iterable<? extends Generated.NetworkPolicyPeer> values)to is a list of destinations for outgoing traffic of pods selected for this rule.Generated.NetworkPolicyEgressRule.BuilderaddPorts(int index, Generated.NetworkPolicyPort value)ports is a list of destination ports for outgoing traffic.Generated.NetworkPolicyEgressRule.BuilderaddPorts(int index, Generated.NetworkPolicyPort.Builder builderForValue)ports is a list of destination ports for outgoing traffic.Generated.NetworkPolicyEgressRule.BuilderaddPorts(Generated.NetworkPolicyPort value)ports is a list of destination ports for outgoing traffic.Generated.NetworkPolicyEgressRule.BuilderaddPorts(Generated.NetworkPolicyPort.Builder builderForValue)ports is a list of destination ports for outgoing traffic.Generated.NetworkPolicyPort.BuilderaddPortsBuilder()ports is a list of destination ports for outgoing traffic.Generated.NetworkPolicyPort.BuilderaddPortsBuilder(int index)ports is a list of destination ports for outgoing traffic.Generated.NetworkPolicyEgressRule.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.NetworkPolicyEgressRule.BuilderaddTo(int index, Generated.NetworkPolicyPeer value)to is a list of destinations for outgoing traffic of pods selected for this rule.Generated.NetworkPolicyEgressRule.BuilderaddTo(int index, Generated.NetworkPolicyPeer.Builder builderForValue)to is a list of destinations for outgoing traffic of pods selected for this rule.Generated.NetworkPolicyEgressRule.BuilderaddTo(Generated.NetworkPolicyPeer value)to is a list of destinations for outgoing traffic of pods selected for this rule.Generated.NetworkPolicyEgressRule.BuilderaddTo(Generated.NetworkPolicyPeer.Builder builderForValue)to is a list of destinations for outgoing traffic of pods selected for this rule.Generated.NetworkPolicyPeer.BuilderaddToBuilder()to is a list of destinations for outgoing traffic of pods selected for this rule.Generated.NetworkPolicyPeer.BuilderaddToBuilder(int index)to is a list of destinations for outgoing traffic of pods selected for this rule.Generated.NetworkPolicyEgressRulebuild()Generated.NetworkPolicyEgressRulebuildPartial()Generated.NetworkPolicyEgressRule.Builderclear()Generated.NetworkPolicyEgressRule.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.NetworkPolicyEgressRule.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.NetworkPolicyEgressRule.BuilderclearPorts()ports is a list of destination ports for outgoing traffic.Generated.NetworkPolicyEgressRule.BuilderclearTo()to is a list of destinations for outgoing traffic of pods selected for this rule.Generated.NetworkPolicyEgressRule.Builderclone()Generated.NetworkPolicyEgressRulegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Generated.NetworkPolicyPortgetPorts(int index)ports is a list of destination ports for outgoing traffic.Generated.NetworkPolicyPort.BuildergetPortsBuilder(int index)ports is a list of destination ports for outgoing traffic.List<Generated.NetworkPolicyPort.Builder>getPortsBuilderList()ports is a list of destination ports for outgoing traffic.intgetPortsCount()ports is a list of destination ports for outgoing traffic.List<Generated.NetworkPolicyPort>getPortsList()ports is a list of destination ports for outgoing traffic.Generated.NetworkPolicyPortOrBuildergetPortsOrBuilder(int index)ports is a list of destination ports for outgoing traffic.List<? extends Generated.NetworkPolicyPortOrBuilder>getPortsOrBuilderList()ports is a list of destination ports for outgoing traffic.Generated.NetworkPolicyPeergetTo(int index)to is a list of destinations for outgoing traffic of pods selected for this rule.Generated.NetworkPolicyPeer.BuildergetToBuilder(int index)to is a list of destinations for outgoing traffic of pods selected for this rule.List<Generated.NetworkPolicyPeer.Builder>getToBuilderList()to is a list of destinations for outgoing traffic of pods selected for this rule.intgetToCount()to is a list of destinations for outgoing traffic of pods selected for this rule.List<Generated.NetworkPolicyPeer>getToList()to is a list of destinations for outgoing traffic of pods selected for this rule.Generated.NetworkPolicyPeerOrBuildergetToOrBuilder(int index)to is a list of destinations for outgoing traffic of pods selected for this rule.List<? extends Generated.NetworkPolicyPeerOrBuilder>getToOrBuilderList()to is a list of destinations for outgoing traffic of pods selected for this rule.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.NetworkPolicyEgressRule.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.NetworkPolicyEgressRule.BuildermergeFrom(com.google.protobuf.Message other)Generated.NetworkPolicyEgressRule.BuildermergeFrom(Generated.NetworkPolicyEgressRule other)Generated.NetworkPolicyEgressRule.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.NetworkPolicyEgressRule.BuilderremovePorts(int index)ports is a list of destination ports for outgoing traffic.Generated.NetworkPolicyEgressRule.BuilderremoveTo(int index)to is a list of destinations for outgoing traffic of pods selected for this rule.Generated.NetworkPolicyEgressRule.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.NetworkPolicyEgressRule.BuildersetPorts(int index, Generated.NetworkPolicyPort value)ports is a list of destination ports for outgoing traffic.Generated.NetworkPolicyEgressRule.BuildersetPorts(int index, Generated.NetworkPolicyPort.Builder builderForValue)ports is a list of destination ports for outgoing traffic.Generated.NetworkPolicyEgressRule.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.NetworkPolicyEgressRule.BuildersetTo(int index, Generated.NetworkPolicyPeer value)to is a list of destinations for outgoing traffic of pods selected for this rule.Generated.NetworkPolicyEgressRule.BuildersetTo(int index, Generated.NetworkPolicyPeer.Builder builderForValue)to is a list of destinations for outgoing traffic of pods selected for this rule.Generated.NetworkPolicyEgressRule.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, 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<Generated.NetworkPolicyEgressRule.Builder>
-
clear
public Generated.NetworkPolicyEgressRule.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<Generated.NetworkPolicyEgressRule.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<Generated.NetworkPolicyEgressRule.Builder>
-
getDefaultInstanceForType
public Generated.NetworkPolicyEgressRule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.NetworkPolicyEgressRule build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.NetworkPolicyEgressRule buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.NetworkPolicyEgressRule.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<Generated.NetworkPolicyEgressRule.Builder>
-
setField
public Generated.NetworkPolicyEgressRule.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<Generated.NetworkPolicyEgressRule.Builder>
-
clearField
public Generated.NetworkPolicyEgressRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicyEgressRule.Builder>
-
clearOneof
public Generated.NetworkPolicyEgressRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicyEgressRule.Builder>
-
setRepeatedField
public Generated.NetworkPolicyEgressRule.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<Generated.NetworkPolicyEgressRule.Builder>
-
addRepeatedField
public Generated.NetworkPolicyEgressRule.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<Generated.NetworkPolicyEgressRule.Builder>
-
mergeFrom
public Generated.NetworkPolicyEgressRule.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.NetworkPolicyEgressRule.Builder>
-
mergeFrom
public Generated.NetworkPolicyEgressRule.Builder mergeFrom(Generated.NetworkPolicyEgressRule other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicyEgressRule.Builder>
-
mergeFrom
public Generated.NetworkPolicyEgressRule.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<Generated.NetworkPolicyEgressRule.Builder>- Throws:
IOException
-
getPortsList
public List<Generated.NetworkPolicyPort> getPortsList()
ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;- Specified by:
getPortsListin interfaceGenerated.NetworkPolicyEgressRuleOrBuilder
-
getPortsCount
public int getPortsCount()
ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;- Specified by:
getPortsCountin interfaceGenerated.NetworkPolicyEgressRuleOrBuilder
-
getPorts
public Generated.NetworkPolicyPort getPorts(int index)
ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;- Specified by:
getPortsin interfaceGenerated.NetworkPolicyEgressRuleOrBuilder
-
setPorts
public Generated.NetworkPolicyEgressRule.Builder setPorts(int index, Generated.NetworkPolicyPort value)
ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
setPorts
public Generated.NetworkPolicyEgressRule.Builder setPorts(int index, Generated.NetworkPolicyPort.Builder builderForValue)
ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
addPorts
public Generated.NetworkPolicyEgressRule.Builder addPorts(Generated.NetworkPolicyPort value)
ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
addPorts
public Generated.NetworkPolicyEgressRule.Builder addPorts(int index, Generated.NetworkPolicyPort value)
ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
addPorts
public Generated.NetworkPolicyEgressRule.Builder addPorts(Generated.NetworkPolicyPort.Builder builderForValue)
ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
addPorts
public Generated.NetworkPolicyEgressRule.Builder addPorts(int index, Generated.NetworkPolicyPort.Builder builderForValue)
ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
addAllPorts
public Generated.NetworkPolicyEgressRule.Builder addAllPorts(Iterable<? extends Generated.NetworkPolicyPort> values)
ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
clearPorts
public Generated.NetworkPolicyEgressRule.Builder clearPorts()
ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
removePorts
public Generated.NetworkPolicyEgressRule.Builder removePorts(int index)
ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
getPortsBuilder
public Generated.NetworkPolicyPort.Builder getPortsBuilder(int index)
ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
getPortsOrBuilder
public Generated.NetworkPolicyPortOrBuilder getPortsOrBuilder(int index)
ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;- Specified by:
getPortsOrBuilderin interfaceGenerated.NetworkPolicyEgressRuleOrBuilder
-
getPortsOrBuilderList
public List<? extends Generated.NetworkPolicyPortOrBuilder> getPortsOrBuilderList()
ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;- Specified by:
getPortsOrBuilderListin interfaceGenerated.NetworkPolicyEgressRuleOrBuilder
-
addPortsBuilder
public Generated.NetworkPolicyPort.Builder addPortsBuilder()
ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
addPortsBuilder
public Generated.NetworkPolicyPort.Builder addPortsBuilder(int index)
ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
getPortsBuilderList
public List<Generated.NetworkPolicyPort.Builder> getPortsBuilderList()
ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
getToList
public List<Generated.NetworkPolicyPeer> getToList()
to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;- Specified by:
getToListin interfaceGenerated.NetworkPolicyEgressRuleOrBuilder
-
getToCount
public int getToCount()
to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;- Specified by:
getToCountin interfaceGenerated.NetworkPolicyEgressRuleOrBuilder
-
getTo
public Generated.NetworkPolicyPeer getTo(int index)
to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;- Specified by:
getToin interfaceGenerated.NetworkPolicyEgressRuleOrBuilder
-
setTo
public Generated.NetworkPolicyEgressRule.Builder setTo(int index, Generated.NetworkPolicyPeer value)
to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
setTo
public Generated.NetworkPolicyEgressRule.Builder setTo(int index, Generated.NetworkPolicyPeer.Builder builderForValue)
to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
addTo
public Generated.NetworkPolicyEgressRule.Builder addTo(Generated.NetworkPolicyPeer value)
to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
addTo
public Generated.NetworkPolicyEgressRule.Builder addTo(int index, Generated.NetworkPolicyPeer value)
to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
addTo
public Generated.NetworkPolicyEgressRule.Builder addTo(Generated.NetworkPolicyPeer.Builder builderForValue)
to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
addTo
public Generated.NetworkPolicyEgressRule.Builder addTo(int index, Generated.NetworkPolicyPeer.Builder builderForValue)
to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
addAllTo
public Generated.NetworkPolicyEgressRule.Builder addAllTo(Iterable<? extends Generated.NetworkPolicyPeer> values)
to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
clearTo
public Generated.NetworkPolicyEgressRule.Builder clearTo()
to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
removeTo
public Generated.NetworkPolicyEgressRule.Builder removeTo(int index)
to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
getToBuilder
public Generated.NetworkPolicyPeer.Builder getToBuilder(int index)
to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
getToOrBuilder
public Generated.NetworkPolicyPeerOrBuilder getToOrBuilder(int index)
to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;- Specified by:
getToOrBuilderin interfaceGenerated.NetworkPolicyEgressRuleOrBuilder
-
getToOrBuilderList
public List<? extends Generated.NetworkPolicyPeerOrBuilder> getToOrBuilderList()
to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;- Specified by:
getToOrBuilderListin interfaceGenerated.NetworkPolicyEgressRuleOrBuilder
-
addToBuilder
public Generated.NetworkPolicyPeer.Builder addToBuilder()
to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
addToBuilder
public Generated.NetworkPolicyPeer.Builder addToBuilder(int index)
to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
getToBuilderList
public List<Generated.NetworkPolicyPeer.Builder> getToBuilderList()
to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
setUnknownFields
public final Generated.NetworkPolicyEgressRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicyEgressRule.Builder>
-
mergeUnknownFields
public final Generated.NetworkPolicyEgressRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicyEgressRule.Builder>
-
-