Package io.kubernetes.client.proto
Class V1beta1Extensions.NetworkPolicyEgressRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>
io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyEgressRule.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,V1beta1Extensions.NetworkPolicyEgressRuleOrBuilder
,Cloneable
- Enclosing class:
- V1beta1Extensions.NetworkPolicyEgressRule
public static final class V1beta1Extensions.NetworkPolicyEgressRule.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>
implements V1beta1Extensions.NetworkPolicyEgressRuleOrBuilder
DEPRECATED 1.9 - This group version of NetworkPolicyEgressRule is deprecated by networking/v1/NetworkPolicyEgressRule. 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.extensions.v1beta1.NetworkPolicyEgressRule
-
Method Summary
Modifier and TypeMethodDescriptionaddAllPorts
(Iterable<? extends V1beta1Extensions.NetworkPolicyPort> values) List of destination ports for outgoing traffic.addAllTo
(Iterable<? extends V1beta1Extensions.NetworkPolicyPeer> values) List of destinations for outgoing traffic of pods selected for this rule.addPorts
(int index, V1beta1Extensions.NetworkPolicyPort value) List of destination ports for outgoing traffic.addPorts
(int index, V1beta1Extensions.NetworkPolicyPort.Builder builderForValue) List of destination ports for outgoing traffic.List of destination ports for outgoing traffic.addPorts
(V1beta1Extensions.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, V1beta1Extensions.NetworkPolicyPeer value) List of destinations for outgoing traffic of pods selected for this rule.addTo
(int index, V1beta1Extensions.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
(V1beta1Extensions.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 V1beta1Extensions.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 V1beta1Extensions.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, V1beta1Extensions.NetworkPolicyPort value) List of destination ports for outgoing traffic.setPorts
(int index, V1beta1Extensions.NetworkPolicyPort.Builder builderForValue) List of destination ports for outgoing traffic.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTo
(int index, V1beta1Extensions.NetworkPolicyPeer value) List of destinations for outgoing traffic of pods selected for this rule.setTo
(int index, V1beta1Extensions.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<V1beta1Extensions.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<V1beta1Extensions.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<V1beta1Extensions.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<V1beta1Extensions.NetworkPolicyEgressRule.Builder>
-
setField
public V1beta1Extensions.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<V1beta1Extensions.NetworkPolicyEgressRule.Builder>
-
clearField
public V1beta1Extensions.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<V1beta1Extensions.NetworkPolicyEgressRule.Builder>
-
clearOneof
public V1beta1Extensions.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<V1beta1Extensions.NetworkPolicyEgressRule.Builder>
-
setRepeatedField
public V1beta1Extensions.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<V1beta1Extensions.NetworkPolicyEgressRule.Builder>
-
addRepeatedField
public V1beta1Extensions.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<V1beta1Extensions.NetworkPolicyEgressRule.Builder>
-
mergeFrom
public V1beta1Extensions.NetworkPolicyEgressRule.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>
-
mergeFrom
public V1beta1Extensions.NetworkPolicyEgressRule.Builder mergeFrom(V1beta1Extensions.NetworkPolicyEgressRule other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>
-
mergeFrom
public V1beta1Extensions.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<V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;
- Specified by:
getPortsList
in interfaceV1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;
- Specified by:
getPortsCount
in interfaceV1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;
- Specified by:
getPorts
in interfaceV1beta1Extensions.NetworkPolicyEgressRuleOrBuilder
-
setPorts
public V1beta1Extensions.NetworkPolicyEgressRule.Builder setPorts(int index, V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;
-
setPorts
public V1beta1Extensions.NetworkPolicyEgressRule.Builder setPorts(int index, V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;
-
addPorts
public V1beta1Extensions.NetworkPolicyEgressRule.Builder addPorts(V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;
-
addPorts
public V1beta1Extensions.NetworkPolicyEgressRule.Builder addPorts(int index, V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;
-
addPorts
public V1beta1Extensions.NetworkPolicyEgressRule.Builder addPorts(V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;
-
addPorts
public V1beta1Extensions.NetworkPolicyEgressRule.Builder addPorts(int index, V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;
-
addAllPorts
public V1beta1Extensions.NetworkPolicyEgressRule.Builder addAllPorts(Iterable<? extends V1beta1Extensions.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.extensions.v1beta1.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.extensions.v1beta1.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.extensions.v1beta1.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.extensions.v1beta1.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.extensions.v1beta1.NetworkPolicyPort ports = 1;
- Specified by:
getPortsOrBuilder
in interfaceV1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;
- Specified by:
getPortsOrBuilderList
in interfaceV1beta1Extensions.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.extensions.v1beta1.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.extensions.v1beta1.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.extensions.v1beta1.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.extensions.v1beta1.NetworkPolicyPeer to = 2;
- Specified by:
getToList
in interfaceV1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPeer to = 2;
- Specified by:
getToCount
in interfaceV1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPeer to = 2;
- Specified by:
getTo
in interfaceV1beta1Extensions.NetworkPolicyEgressRuleOrBuilder
-
setTo
public V1beta1Extensions.NetworkPolicyEgressRule.Builder setTo(int index, V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPeer to = 2;
-
setTo
public V1beta1Extensions.NetworkPolicyEgressRule.Builder setTo(int index, V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPeer to = 2;
-
addTo
public V1beta1Extensions.NetworkPolicyEgressRule.Builder addTo(V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPeer to = 2;
-
addTo
public V1beta1Extensions.NetworkPolicyEgressRule.Builder addTo(int index, V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPeer to = 2;
-
addTo
public V1beta1Extensions.NetworkPolicyEgressRule.Builder addTo(V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPeer to = 2;
-
addTo
public V1beta1Extensions.NetworkPolicyEgressRule.Builder addTo(int index, V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPeer to = 2;
-
addAllTo
public V1beta1Extensions.NetworkPolicyEgressRule.Builder addAllTo(Iterable<? extends V1beta1Extensions.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.extensions.v1beta1.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.extensions.v1beta1.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.extensions.v1beta1.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.extensions.v1beta1.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.extensions.v1beta1.NetworkPolicyPeer to = 2;
- Specified by:
getToOrBuilder
in interfaceV1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPeer to = 2;
- Specified by:
getToOrBuilderList
in interfaceV1beta1Extensions.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.extensions.v1beta1.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.extensions.v1beta1.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.extensions.v1beta1.NetworkPolicyPeer to = 2;
-
setUnknownFields
public final V1beta1Extensions.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<V1beta1Extensions.NetworkPolicyEgressRule.Builder>
-
mergeUnknownFields
public final V1beta1Extensions.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<V1beta1Extensions.NetworkPolicyEgressRule.Builder>
-