Package io.kubernetes.client.proto
Class V1Networking.NetworkPolicyEgressRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1Networking.NetworkPolicyEgressRuleOrBuilder,Cloneable
- Enclosing class:
- V1Networking.NetworkPolicyEgressRule
public static final class V1Networking.NetworkPolicyEgressRule.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
implements V1Networking.NetworkPolicyEgressRuleOrBuilder
NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8Protobuf type
k8s.io.api.networking.v1.NetworkPolicyEgressRule-
Method Summary
Modifier and TypeMethodDescriptionaddAllPorts(Iterable<? extends V1Networking.NetworkPolicyPort> values) List of destination ports for outgoing traffic.addAllTo(Iterable<? extends V1Networking.NetworkPolicyPeer> values) List of destinations for outgoing traffic of pods selected for this rule.addPorts(int index, V1Networking.NetworkPolicyPort value) List of destination ports for outgoing traffic.addPorts(int index, V1Networking.NetworkPolicyPort.Builder builderForValue) List of destination ports for outgoing traffic.List of destination ports for outgoing traffic.addPorts(V1Networking.NetworkPolicyPort.Builder builderForValue) List of destination ports for outgoing traffic.List of destination ports for outgoing traffic.addPortsBuilder(int index) List of destination ports for outgoing traffic.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addTo(int index, V1Networking.NetworkPolicyPeer value) List of destinations for outgoing traffic of pods selected for this rule.addTo(int index, V1Networking.NetworkPolicyPeer.Builder builderForValue) List of destinations for outgoing traffic of pods selected for this rule.List of destinations for outgoing traffic of pods selected for this rule.addTo(V1Networking.NetworkPolicyPeer.Builder builderForValue) List of destinations for outgoing traffic of pods selected for this rule.List of destinations for outgoing traffic of pods selected for this rule.addToBuilder(int index) List of destinations for outgoing traffic of pods selected for this rule.build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) List of destination ports for outgoing traffic.clearTo()List of destinations for outgoing traffic of pods selected for this rule.clone()static final com.google.protobuf.Descriptors.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 V1Networking.NetworkPolicyPortOrBuilder>List of destination ports for outgoing traffic.getTo(int index) List of destinations for outgoing traffic of pods selected for this rule.getToBuilder(int index) List of destinations for outgoing traffic of pods selected for this rule.List of destinations for outgoing traffic of pods selected for this rule.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 V1Networking.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, V1Networking.NetworkPolicyPort value) List of destination ports for outgoing traffic.setPorts(int index, V1Networking.NetworkPolicyPort.Builder builderForValue) List of destination ports for outgoing traffic.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTo(int index, V1Networking.NetworkPolicyPeer value) List of destinations for outgoing traffic of pods selected for this rule.setTo(int index, V1Networking.NetworkPolicyPeer.Builder builderForValue) List of destinations for outgoing traffic of pods selected for this rule.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, 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<V1Networking.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<V1Networking.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<V1Networking.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<V1Networking.NetworkPolicyEgressRule.Builder>
-
setField
public V1Networking.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<V1Networking.NetworkPolicyEgressRule.Builder>
-
clearField
public V1Networking.NetworkPolicyEgressRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
-
clearOneof
public V1Networking.NetworkPolicyEgressRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
-
setRepeatedField
public V1Networking.NetworkPolicyEgressRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
-
addRepeatedField
public V1Networking.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<V1Networking.NetworkPolicyEgressRule.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
-
mergeFrom
public V1Networking.NetworkPolicyEgressRule.Builder mergeFrom(V1Networking.NetworkPolicyEgressRule other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
-
mergeFrom
public V1Networking.NetworkPolicyEgressRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1Networking.NetworkPolicyEgressRule.Builder>- Throws:
IOException
-
getPortsList
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;- Specified by:
getPortsListin interfaceV1Networking.NetworkPolicyEgressRuleOrBuilder
-
getPortsCount
public int getPortsCount()List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;- Specified by:
getPortsCountin interfaceV1Networking.NetworkPolicyEgressRuleOrBuilder
-
getPorts
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;- Specified by:
getPortsin interfaceV1Networking.NetworkPolicyEgressRuleOrBuilder
-
setPorts
public V1Networking.NetworkPolicyEgressRule.Builder setPorts(int index, V1Networking.NetworkPolicyPort value) List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1; -
setPorts
public V1Networking.NetworkPolicyEgressRule.Builder setPorts(int index, V1Networking.NetworkPolicyPort.Builder builderForValue) List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1; -
addPorts
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1; -
addPorts
public V1Networking.NetworkPolicyEgressRule.Builder addPorts(int index, V1Networking.NetworkPolicyPort value) List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1; -
addPorts
public V1Networking.NetworkPolicyEgressRule.Builder addPorts(V1Networking.NetworkPolicyPort.Builder builderForValue) List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1; -
addPorts
public V1Networking.NetworkPolicyEgressRule.Builder addPorts(int index, V1Networking.NetworkPolicyPort.Builder builderForValue) List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1; -
addAllPorts
public V1Networking.NetworkPolicyEgressRule.Builder addAllPorts(Iterable<? extends V1Networking.NetworkPolicyPort> values) List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1; -
clearPorts
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1; -
removePorts
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1; -
getPortsBuilder
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1; -
getPortsOrBuilder
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;- Specified by:
getPortsOrBuilderin interfaceV1Networking.NetworkPolicyEgressRuleOrBuilder
-
getPortsOrBuilderList
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;- Specified by:
getPortsOrBuilderListin interfaceV1Networking.NetworkPolicyEgressRuleOrBuilder
-
addPortsBuilder
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1; -
addPortsBuilder
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1; -
getPortsBuilderList
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1; -
getToList
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;- Specified by:
getToListin interfaceV1Networking.NetworkPolicyEgressRuleOrBuilder
-
getToCount
public int getToCount()List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;- Specified by:
getToCountin interfaceV1Networking.NetworkPolicyEgressRuleOrBuilder
-
getTo
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;- Specified by:
getToin interfaceV1Networking.NetworkPolicyEgressRuleOrBuilder
-
setTo
public V1Networking.NetworkPolicyEgressRule.Builder setTo(int index, V1Networking.NetworkPolicyPeer value) List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; -
setTo
public V1Networking.NetworkPolicyEgressRule.Builder setTo(int index, V1Networking.NetworkPolicyPeer.Builder builderForValue) List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; -
addTo
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; -
addTo
public V1Networking.NetworkPolicyEgressRule.Builder addTo(int index, V1Networking.NetworkPolicyPeer value) List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; -
addTo
public V1Networking.NetworkPolicyEgressRule.Builder addTo(V1Networking.NetworkPolicyPeer.Builder builderForValue) List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; -
addTo
public V1Networking.NetworkPolicyEgressRule.Builder addTo(int index, V1Networking.NetworkPolicyPeer.Builder builderForValue) List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; -
addAllTo
public V1Networking.NetworkPolicyEgressRule.Builder addAllTo(Iterable<? extends V1Networking.NetworkPolicyPeer> values) List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; -
clearTo
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; -
removeTo
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; -
getToBuilder
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; -
getToOrBuilder
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;- Specified by:
getToOrBuilderin interfaceV1Networking.NetworkPolicyEgressRuleOrBuilder
-
getToOrBuilderList
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;- Specified by:
getToOrBuilderListin interfaceV1Networking.NetworkPolicyEgressRuleOrBuilder
-
addToBuilder
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; -
addToBuilder
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; -
getToBuilderList
List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; -
setUnknownFields
public final V1Networking.NetworkPolicyEgressRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
-
mergeUnknownFields
public final V1Networking.NetworkPolicyEgressRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyEgressRule.Builder>
-