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| Modifier and Type | Method and Description |
|---|---|
V1Networking.NetworkPolicyEgressRule.Builder |
addAllPorts(Iterable<? extends V1Networking.NetworkPolicyPort> values)
List of destination ports for outgoing traffic.
|
V1Networking.NetworkPolicyEgressRule.Builder |
addAllTo(Iterable<? extends V1Networking.NetworkPolicyPeer> values)
List of destinations for outgoing traffic of pods selected for this rule.
|
V1Networking.NetworkPolicyEgressRule.Builder |
addPorts(int index,
V1Networking.NetworkPolicyPort.Builder builderForValue)
List of destination ports for outgoing traffic.
|
V1Networking.NetworkPolicyEgressRule.Builder |
addPorts(int index,
V1Networking.NetworkPolicyPort value)
List of destination ports for outgoing traffic.
|
V1Networking.NetworkPolicyEgressRule.Builder |
addPorts(V1Networking.NetworkPolicyPort.Builder builderForValue)
List of destination ports for outgoing traffic.
|
V1Networking.NetworkPolicyEgressRule.Builder |
addPorts(V1Networking.NetworkPolicyPort value)
List of destination ports for outgoing traffic.
|
V1Networking.NetworkPolicyPort.Builder |
addPortsBuilder()
List of destination ports for outgoing traffic.
|
V1Networking.NetworkPolicyPort.Builder |
addPortsBuilder(int index)
List of destination ports for outgoing traffic.
|
V1Networking.NetworkPolicyEgressRule.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1Networking.NetworkPolicyEgressRule.Builder |
addTo(int index,
V1Networking.NetworkPolicyPeer.Builder builderForValue)
List of destinations for outgoing traffic of pods selected for this rule.
|
V1Networking.NetworkPolicyEgressRule.Builder |
addTo(int index,
V1Networking.NetworkPolicyPeer value)
List of destinations for outgoing traffic of pods selected for this rule.
|
V1Networking.NetworkPolicyEgressRule.Builder |
addTo(V1Networking.NetworkPolicyPeer.Builder builderForValue)
List of destinations for outgoing traffic of pods selected for this rule.
|
V1Networking.NetworkPolicyEgressRule.Builder |
addTo(V1Networking.NetworkPolicyPeer value)
List of destinations for outgoing traffic of pods selected for this rule.
|
V1Networking.NetworkPolicyPeer.Builder |
addToBuilder()
List of destinations for outgoing traffic of pods selected for this rule.
|
V1Networking.NetworkPolicyPeer.Builder |
addToBuilder(int index)
List of destinations for outgoing traffic of pods selected for this rule.
|
V1Networking.NetworkPolicyEgressRule |
build() |
V1Networking.NetworkPolicyEgressRule |
buildPartial() |
V1Networking.NetworkPolicyEgressRule.Builder |
clear() |
V1Networking.NetworkPolicyEgressRule.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1Networking.NetworkPolicyEgressRule.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1Networking.NetworkPolicyEgressRule.Builder |
clearPorts()
List of destination ports for outgoing traffic.
|
V1Networking.NetworkPolicyEgressRule.Builder |
clearTo()
List of destinations for outgoing traffic of pods selected for this rule.
|
V1Networking.NetworkPolicyEgressRule.Builder |
clone() |
V1Networking.NetworkPolicyEgressRule |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
V1Networking.NetworkPolicyPort |
getPorts(int index)
List of destination ports for outgoing traffic.
|
V1Networking.NetworkPolicyPort.Builder |
getPortsBuilder(int index)
List of destination ports for outgoing traffic.
|
List<V1Networking.NetworkPolicyPort.Builder> |
getPortsBuilderList()
List of destination ports for outgoing traffic.
|
int |
getPortsCount()
List of destination ports for outgoing traffic.
|
List<V1Networking.NetworkPolicyPort> |
getPortsList()
List of destination ports for outgoing traffic.
|
V1Networking.NetworkPolicyPortOrBuilder |
getPortsOrBuilder(int index)
List of destination ports for outgoing traffic.
|
List<? extends V1Networking.NetworkPolicyPortOrBuilder> |
getPortsOrBuilderList()
List of destination ports for outgoing traffic.
|
V1Networking.NetworkPolicyPeer |
getTo(int index)
List of destinations for outgoing traffic of pods selected for this rule.
|
V1Networking.NetworkPolicyPeer.Builder |
getToBuilder(int index)
List of destinations for outgoing traffic of pods selected for this rule.
|
List<V1Networking.NetworkPolicyPeer.Builder> |
getToBuilderList()
List of destinations for outgoing traffic of pods selected for this rule.
|
int |
getToCount()
List of destinations for outgoing traffic of pods selected for this rule.
|
List<V1Networking.NetworkPolicyPeer> |
getToList()
List of destinations for outgoing traffic of pods selected for this rule.
|
V1Networking.NetworkPolicyPeerOrBuilder |
getToOrBuilder(int index)
List of destinations for outgoing traffic of pods selected for this rule.
|
List<? extends V1Networking.NetworkPolicyPeerOrBuilder> |
getToOrBuilderList()
List of destinations for outgoing traffic of pods selected for this rule.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1Networking.NetworkPolicyEgressRule.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1Networking.NetworkPolicyEgressRule.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1Networking.NetworkPolicyEgressRule.Builder |
mergeFrom(V1Networking.NetworkPolicyEgressRule other) |
V1Networking.NetworkPolicyEgressRule.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1Networking.NetworkPolicyEgressRule.Builder |
removePorts(int index)
List of destination ports for outgoing traffic.
|
V1Networking.NetworkPolicyEgressRule.Builder |
removeTo(int index)
List of destinations for outgoing traffic of pods selected for this rule.
|
V1Networking.NetworkPolicyEgressRule.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1Networking.NetworkPolicyEgressRule.Builder |
setPorts(int index,
V1Networking.NetworkPolicyPort.Builder builderForValue)
List of destination ports for outgoing traffic.
|
V1Networking.NetworkPolicyEgressRule.Builder |
setPorts(int index,
V1Networking.NetworkPolicyPort value)
List of destination ports for outgoing traffic.
|
V1Networking.NetworkPolicyEgressRule.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1Networking.NetworkPolicyEgressRule.Builder |
setTo(int index,
V1Networking.NetworkPolicyPeer.Builder builderForValue)
List of destinations for outgoing traffic of pods selected for this rule.
|
V1Networking.NetworkPolicyEgressRule.Builder |
setTo(int index,
V1Networking.NetworkPolicyPeer value)
List of destinations for outgoing traffic of pods selected for this rule.
|
V1Networking.NetworkPolicyEgressRule.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>public V1Networking.NetworkPolicyEgressRule.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>public V1Networking.NetworkPolicyEgressRule getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1Networking.NetworkPolicyEgressRule build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1Networking.NetworkPolicyEgressRule buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1Networking.NetworkPolicyEgressRule.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>public V1Networking.NetworkPolicyEgressRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>public V1Networking.NetworkPolicyEgressRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>public V1Networking.NetworkPolicyEgressRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>public V1Networking.NetworkPolicyEgressRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>public V1Networking.NetworkPolicyEgressRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>public V1Networking.NetworkPolicyEgressRule.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1Networking.NetworkPolicyEgressRule.Builder>public V1Networking.NetworkPolicyEgressRule.Builder mergeFrom(V1Networking.NetworkPolicyEgressRule other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>public V1Networking.NetworkPolicyEgressRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1Networking.NetworkPolicyEgressRule.Builder>IOExceptionpublic List<V1Networking.NetworkPolicyPort> 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;getPortsList in interface V1Networking.NetworkPolicyEgressRuleOrBuilderpublic 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;getPortsCount in interface V1Networking.NetworkPolicyEgressRuleOrBuilderpublic V1Networking.NetworkPolicyPort getPorts(int index)
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;getPorts in interface V1Networking.NetworkPolicyEgressRuleOrBuilderpublic 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;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;public V1Networking.NetworkPolicyEgressRule.Builder addPorts(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;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;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;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;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;public V1Networking.NetworkPolicyEgressRule.Builder 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;public V1Networking.NetworkPolicyEgressRule.Builder removePorts(int index)
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;public V1Networking.NetworkPolicyPort.Builder getPortsBuilder(int index)
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;public V1Networking.NetworkPolicyPortOrBuilder getPortsOrBuilder(int index)
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 in interface V1Networking.NetworkPolicyEgressRuleOrBuilderpublic List<? extends V1Networking.NetworkPolicyPortOrBuilder> 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;getPortsOrBuilderList in interface V1Networking.NetworkPolicyEgressRuleOrBuilderpublic V1Networking.NetworkPolicyPort.Builder 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;public V1Networking.NetworkPolicyPort.Builder addPortsBuilder(int index)
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;public List<V1Networking.NetworkPolicyPort.Builder> 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;public List<V1Networking.NetworkPolicyPeer> 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;getToList in interface V1Networking.NetworkPolicyEgressRuleOrBuilderpublic 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;getToCount in interface V1Networking.NetworkPolicyEgressRuleOrBuilderpublic V1Networking.NetworkPolicyPeer getTo(int index)
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;getTo in interface V1Networking.NetworkPolicyEgressRuleOrBuilderpublic 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;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;public V1Networking.NetworkPolicyEgressRule.Builder addTo(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;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;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;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;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;public V1Networking.NetworkPolicyEgressRule.Builder 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;public V1Networking.NetworkPolicyEgressRule.Builder removeTo(int index)
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;public V1Networking.NetworkPolicyPeer.Builder getToBuilder(int index)
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;public V1Networking.NetworkPolicyPeerOrBuilder getToOrBuilder(int index)
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 in interface V1Networking.NetworkPolicyEgressRuleOrBuilderpublic List<? extends V1Networking.NetworkPolicyPeerOrBuilder> 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;getToOrBuilderList in interface V1Networking.NetworkPolicyEgressRuleOrBuilderpublic V1Networking.NetworkPolicyPeer.Builder 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;public V1Networking.NetworkPolicyPeer.Builder addToBuilder(int index)
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;public List<V1Networking.NetworkPolicyPeer.Builder> 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;public final V1Networking.NetworkPolicyEgressRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>public final V1Networking.NetworkPolicyEgressRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>Copyright © 2018. All rights reserved.