Package io.kubernetes.client.proto
Class V1beta1Extensions.NetworkPolicyEgressRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
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.Descriptorcom.google.protobuf.Descriptors.DescriptorgetPorts(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.intList 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.intList 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.FieldAccessorTablefinal booleanmergeFrom(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.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<V1beta1Extensions.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<V1beta1Extensions.NetworkPolicyEgressRule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>
-
setField
public V1beta1Extensions.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<V1beta1Extensions.NetworkPolicyEgressRule.Builder>
-
clearField
public V1beta1Extensions.NetworkPolicyEgressRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>
-
clearOneof
public V1beta1Extensions.NetworkPolicyEgressRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>
-
addRepeatedField
public V1beta1Extensions.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<V1beta1Extensions.NetworkPolicyEgressRule.Builder>
-
mergeFrom
public V1beta1Extensions.NetworkPolicyEgressRule.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>
-
mergeFrom
public V1beta1Extensions.NetworkPolicyEgressRule.Builder mergeFrom(V1beta1Extensions.NetworkPolicyEgressRule other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getPortsListin 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:
getPortsCountin 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:
getPortsin 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:
getPortsOrBuilderin 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:
getPortsOrBuilderListin 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:
getToListin 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:
getToCountin 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:
getToin 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:
getToOrBuilderin 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:
getToOrBuilderListin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>
-
mergeUnknownFields
public final V1beta1Extensions.NetworkPolicyEgressRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyEgressRule.Builder>
-