Package io.kubernetes.client.proto
Class V1Networking.NetworkPolicyEgressRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,V1Networking.NetworkPolicyEgressRuleOrBuilder
,Cloneable
- Enclosing class:
- V1Networking.NetworkPolicyEgressRule
public static final class V1Networking.NetworkPolicyEgressRule.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
implements V1Networking.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.8Protobuf type
k8s.io.api.networking.v1.NetworkPolicyEgressRule
-
Method Summary
Modifier and TypeMethodDescriptionaddAllPorts
(Iterable<? extends V1Networking.NetworkPolicyPort> values) List of destination ports for outgoing traffic.addAllTo
(Iterable<? extends V1Networking.NetworkPolicyPeer> values) List of destinations for outgoing traffic of pods selected for this rule.addPorts
(int index, V1Networking.NetworkPolicyPort value) List of destination ports for outgoing traffic.addPorts
(int index, V1Networking.NetworkPolicyPort.Builder builderForValue) List of destination ports for outgoing traffic.List of destination ports for outgoing traffic.addPorts
(V1Networking.NetworkPolicyPort.Builder builderForValue) List of destination ports for outgoing traffic.List of destination ports for outgoing traffic.addPortsBuilder
(int index) List of destination ports for outgoing traffic.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addTo
(int index, V1Networking.NetworkPolicyPeer value) List of destinations for outgoing traffic of pods selected for this rule.addTo
(int index, V1Networking.NetworkPolicyPeer.Builder builderForValue) List of destinations for outgoing traffic of pods selected for this rule.List of destinations for outgoing traffic of pods selected for this rule.addTo
(V1Networking.NetworkPolicyPeer.Builder builderForValue) List of destinations for outgoing traffic of pods selected for this rule.List of destinations for outgoing traffic of pods selected for this rule.addToBuilder
(int index) List of destinations for outgoing traffic of pods selected for this rule.build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) List of destination ports for outgoing traffic.clearTo()
List of destinations for outgoing traffic of pods selected for this rule.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getPorts
(int index) List of destination ports for outgoing traffic.getPortsBuilder
(int index) List of destination ports for outgoing traffic.List of destination ports for outgoing traffic.int
List of destination ports for outgoing traffic.List of destination ports for outgoing traffic.getPortsOrBuilder
(int index) List of destination ports for outgoing traffic.List<? extends V1Networking.NetworkPolicyPortOrBuilder>
List of destination ports for outgoing traffic.getTo
(int index) List of destinations for outgoing traffic of pods selected for this rule.getToBuilder
(int index) List of destinations for outgoing traffic of pods selected for this rule.List of destinations for outgoing traffic of pods selected for this rule.int
List of destinations for outgoing traffic of pods selected for this rule.List of destinations for outgoing traffic of pods selected for this rule.getToOrBuilder
(int index) List of destinations for outgoing traffic of pods selected for this rule.List<? extends V1Networking.NetworkPolicyPeerOrBuilder>
List of destinations for outgoing traffic of pods selected for this rule.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) removePorts
(int index) List of destination ports for outgoing traffic.removeTo
(int index) List of destinations for outgoing traffic of pods selected for this rule.setPorts
(int index, V1Networking.NetworkPolicyPort value) List of destination ports for outgoing traffic.setPorts
(int index, V1Networking.NetworkPolicyPort.Builder builderForValue) List of destination ports for outgoing traffic.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTo
(int index, V1Networking.NetworkPolicyPeer value) List of destinations for outgoing traffic of pods selected for this rule.setTo
(int index, V1Networking.NetworkPolicyPeer.Builder builderForValue) List of destinations for outgoing traffic of pods selected for this rule.setUnknownFields
(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, internalGetMutableMapField, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
-
setField
public V1Networking.NetworkPolicyEgressRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
-
clearField
public V1Networking.NetworkPolicyEgressRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
-
clearOneof
public V1Networking.NetworkPolicyEgressRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
-
setRepeatedField
public V1Networking.NetworkPolicyEgressRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
-
addRepeatedField
public V1Networking.NetworkPolicyEgressRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
-
mergeFrom
public V1Networking.NetworkPolicyEgressRule.Builder mergeFrom(V1Networking.NetworkPolicyEgressRule other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
-
mergeFrom
public V1Networking.NetworkPolicyEgressRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
- Throws:
IOException
-
getPortsList
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
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
- Specified by:
getPortsList
in interfaceV1Networking.NetworkPolicyEgressRuleOrBuilder
-
getPortsCount
public int getPortsCount()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
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
- Specified by:
getPortsCount
in interfaceV1Networking.NetworkPolicyEgressRuleOrBuilder
-
getPorts
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
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
- Specified by:
getPorts
in interfaceV1Networking.NetworkPolicyEgressRuleOrBuilder
-
setPorts
public V1Networking.NetworkPolicyEgressRule.Builder setPorts(int index, V1Networking.NetworkPolicyPort value) 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
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
setPorts
public V1Networking.NetworkPolicyEgressRule.Builder setPorts(int index, V1Networking.NetworkPolicyPort.Builder builderForValue) 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
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
addPorts
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
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
addPorts
public V1Networking.NetworkPolicyEgressRule.Builder addPorts(int index, V1Networking.NetworkPolicyPort value) 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
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
addPorts
public V1Networking.NetworkPolicyEgressRule.Builder addPorts(V1Networking.NetworkPolicyPort.Builder builderForValue) 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
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
addPorts
public V1Networking.NetworkPolicyEgressRule.Builder addPorts(int index, V1Networking.NetworkPolicyPort.Builder builderForValue) 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
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
addAllPorts
public V1Networking.NetworkPolicyEgressRule.Builder addAllPorts(Iterable<? extends V1Networking.NetworkPolicyPort> values) 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
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
clearPorts
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
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
removePorts
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
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
getPortsBuilder
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
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
getPortsOrBuilder
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
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
- Specified by:
getPortsOrBuilder
in interfaceV1Networking.NetworkPolicyEgressRuleOrBuilder
-
getPortsOrBuilderList
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
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
- Specified by:
getPortsOrBuilderList
in interfaceV1Networking.NetworkPolicyEgressRuleOrBuilder
-
addPortsBuilder
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
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
addPortsBuilder
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
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
getPortsBuilderList
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
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
getToList
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
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
- Specified by:
getToList
in interfaceV1Networking.NetworkPolicyEgressRuleOrBuilder
-
getToCount
public int getToCount()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
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
- Specified by:
getToCount
in interfaceV1Networking.NetworkPolicyEgressRuleOrBuilder
-
getTo
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
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
- Specified by:
getTo
in interfaceV1Networking.NetworkPolicyEgressRuleOrBuilder
-
setTo
public V1Networking.NetworkPolicyEgressRule.Builder setTo(int index, V1Networking.NetworkPolicyPeer value) 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
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
setTo
public V1Networking.NetworkPolicyEgressRule.Builder setTo(int index, V1Networking.NetworkPolicyPeer.Builder builderForValue) 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
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
addTo
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
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
addTo
public V1Networking.NetworkPolicyEgressRule.Builder addTo(int index, V1Networking.NetworkPolicyPeer value) 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
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
addTo
public V1Networking.NetworkPolicyEgressRule.Builder addTo(V1Networking.NetworkPolicyPeer.Builder builderForValue) 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
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
addTo
public V1Networking.NetworkPolicyEgressRule.Builder addTo(int index, V1Networking.NetworkPolicyPeer.Builder builderForValue) 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
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
addAllTo
public V1Networking.NetworkPolicyEgressRule.Builder addAllTo(Iterable<? extends V1Networking.NetworkPolicyPeer> values) 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
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
clearTo
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
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
removeTo
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
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
getToBuilder
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
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
getToOrBuilder
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
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
- Specified by:
getToOrBuilder
in interfaceV1Networking.NetworkPolicyEgressRuleOrBuilder
-
getToOrBuilderList
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
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
- Specified by:
getToOrBuilderList
in interfaceV1Networking.NetworkPolicyEgressRuleOrBuilder
-
addToBuilder
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
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
addToBuilder
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
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
getToBuilderList
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
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;
-
setUnknownFields
public final V1Networking.NetworkPolicyEgressRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
-
mergeUnknownFields
public final V1Networking.NetworkPolicyEgressRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
-