Package io.kubernetes.client.proto
Class V1Networking.NetworkPolicyIngressRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyIngressRule.Builder>
io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1Networking.NetworkPolicyIngressRuleOrBuilder,Cloneable
- Enclosing class:
- V1Networking.NetworkPolicyIngressRule
public static final class V1Networking.NetworkPolicyIngressRule.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyIngressRule.Builder>
implements V1Networking.NetworkPolicyIngressRuleOrBuilder
NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.Protobuf type
k8s.io.api.networking.v1.NetworkPolicyIngressRule-
Method Summary
Modifier and TypeMethodDescriptionaddAllFrom(Iterable<? extends V1Networking.NetworkPolicyPeer> values) List of sources which should be able to access the pods selected for this rule.addAllPorts(Iterable<? extends V1Networking.NetworkPolicyPort> values) List of ports which should be made accessible on the pods selected for this rule.addFrom(int index, V1Networking.NetworkPolicyPeer value) List of sources which should be able to access the pods selected for this rule.addFrom(int index, V1Networking.NetworkPolicyPeer.Builder builderForValue) List of sources which should be able to access the pods selected for this rule.List of sources which should be able to access the pods selected for this rule.addFrom(V1Networking.NetworkPolicyPeer.Builder builderForValue) List of sources which should be able to access the pods selected for this rule.List of sources which should be able to access the pods selected for this rule.addFromBuilder(int index) List of sources which should be able to access the pods selected for this rule.addPorts(int index, V1Networking.NetworkPolicyPort value) List of ports which should be made accessible on the pods selected for this rule.addPorts(int index, V1Networking.NetworkPolicyPort.Builder builderForValue) List of ports which should be made accessible on the pods selected for this rule.List of ports which should be made accessible on the pods selected for this rule.addPorts(V1Networking.NetworkPolicyPort.Builder builderForValue) List of ports which should be made accessible on the pods selected for this rule.List of ports which should be made accessible on the pods selected for this rule.addPortsBuilder(int index) List of ports which should be made accessible on the pods selected for this rule.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) List of sources which should be able to access the pods selected for this rule.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) List of ports which should be made accessible on the pods selected for this rule.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetFrom(int index) List of sources which should be able to access the pods selected for this rule.getFromBuilder(int index) List of sources which should be able to access the pods selected for this rule.List of sources which should be able to access the pods selected for this rule.intList of sources which should be able to access the pods selected for this rule.List of sources which should be able to access the pods selected for this rule.getFromOrBuilder(int index) List of sources which should be able to access the pods selected for this rule.List<? extends V1Networking.NetworkPolicyPeerOrBuilder>List of sources which should be able to access the pods selected for this rule.getPorts(int index) List of ports which should be made accessible on the pods selected for this rule.getPortsBuilder(int index) List of ports which should be made accessible on the pods selected for this rule.List of ports which should be made accessible on the pods selected for this rule.intList of ports which should be made accessible on the pods selected for this rule.List of ports which should be made accessible on the pods selected for this rule.getPortsOrBuilder(int index) List of ports which should be made accessible on the pods selected for this rule.List<? extends V1Networking.NetworkPolicyPortOrBuilder>List of ports which should be made accessible on the 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) removeFrom(int index) List of sources which should be able to access the pods selected for this rule.removePorts(int index) List of ports which should be made accessible on the pods selected for this rule.setFrom(int index, V1Networking.NetworkPolicyPeer value) List of sources which should be able to access the pods selected for this rule.setFrom(int index, V1Networking.NetworkPolicyPeer.Builder builderForValue) List of sources which should be able to access the pods selected for this rule.setPorts(int index, V1Networking.NetworkPolicyPort value) List of ports which should be made accessible on the pods selected for this rule.setPorts(int index, V1Networking.NetworkPolicyPort.Builder builderForValue) List of ports which should be made accessible on the pods selected for this rule.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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.NetworkPolicyIngressRule.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.NetworkPolicyIngressRule.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.NetworkPolicyIngressRule.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.NetworkPolicyIngressRule.Builder>
-
setField
public V1Networking.NetworkPolicyIngressRule.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.NetworkPolicyIngressRule.Builder>
-
clearField
public V1Networking.NetworkPolicyIngressRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyIngressRule.Builder>
-
clearOneof
public V1Networking.NetworkPolicyIngressRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyIngressRule.Builder>
-
setRepeatedField
public V1Networking.NetworkPolicyIngressRule.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.NetworkPolicyIngressRule.Builder>
-
addRepeatedField
public V1Networking.NetworkPolicyIngressRule.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.NetworkPolicyIngressRule.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1Networking.NetworkPolicyIngressRule.Builder>
-
mergeFrom
public V1Networking.NetworkPolicyIngressRule.Builder mergeFrom(V1Networking.NetworkPolicyIngressRule other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyIngressRule.Builder>
-
mergeFrom
public V1Networking.NetworkPolicyIngressRule.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.NetworkPolicyIngressRule.Builder>- Throws:
IOException
-
getPortsList
List of ports which should be made accessible on the pods selected for this rule. 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.NetworkPolicyIngressRuleOrBuilder
-
getPortsCount
public int getPortsCount()List of ports which should be made accessible on the pods selected for this rule. 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.NetworkPolicyIngressRuleOrBuilder
-
getPorts
List of ports which should be made accessible on the pods selected for this rule. 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.NetworkPolicyIngressRuleOrBuilder
-
setPorts
public V1Networking.NetworkPolicyIngressRule.Builder setPorts(int index, V1Networking.NetworkPolicyPort value) List of ports which should be made accessible on the pods selected for this rule. 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.NetworkPolicyIngressRule.Builder setPorts(int index, V1Networking.NetworkPolicyPort.Builder builderForValue) List of ports which should be made accessible on the pods selected for this rule. 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 ports which should be made accessible on the pods selected for this rule. 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.NetworkPolicyIngressRule.Builder addPorts(int index, V1Networking.NetworkPolicyPort value) List of ports which should be made accessible on the pods selected for this rule. 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.NetworkPolicyIngressRule.Builder addPorts(V1Networking.NetworkPolicyPort.Builder builderForValue) List of ports which should be made accessible on the pods selected for this rule. 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.NetworkPolicyIngressRule.Builder addPorts(int index, V1Networking.NetworkPolicyPort.Builder builderForValue) List of ports which should be made accessible on the pods selected for this rule. 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.NetworkPolicyIngressRule.Builder addAllPorts(Iterable<? extends V1Networking.NetworkPolicyPort> values) List of ports which should be made accessible on the pods selected for this rule. 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 ports which should be made accessible on the pods selected for this rule. 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 ports which should be made accessible on the pods selected for this rule. 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 ports which should be made accessible on the pods selected for this rule. 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 ports which should be made accessible on the pods selected for this rule. 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.NetworkPolicyIngressRuleOrBuilder
-
getPortsOrBuilderList
List of ports which should be made accessible on the pods selected for this rule. 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.NetworkPolicyIngressRuleOrBuilder
-
addPortsBuilder
List of ports which should be made accessible on the pods selected for this rule. 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 ports which should be made accessible on the pods selected for this rule. 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 ports which should be made accessible on the pods selected for this rule. 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; -
getFromList
List of sources which should be able to access the 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 sources (traffic not restricted by source). 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 from list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;- Specified by:
getFromListin interfaceV1Networking.NetworkPolicyIngressRuleOrBuilder
-
getFromCount
public int getFromCount()List of sources which should be able to access the 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 sources (traffic not restricted by source). 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 from list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;- Specified by:
getFromCountin interfaceV1Networking.NetworkPolicyIngressRuleOrBuilder
-
getFrom
List of sources which should be able to access the 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 sources (traffic not restricted by source). 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 from list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;- Specified by:
getFromin interfaceV1Networking.NetworkPolicyIngressRuleOrBuilder
-
setFrom
public V1Networking.NetworkPolicyIngressRule.Builder setFrom(int index, V1Networking.NetworkPolicyPeer value) List of sources which should be able to access the 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 sources (traffic not restricted by source). 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 from list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; -
setFrom
public V1Networking.NetworkPolicyIngressRule.Builder setFrom(int index, V1Networking.NetworkPolicyPeer.Builder builderForValue) List of sources which should be able to access the 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 sources (traffic not restricted by source). 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 from list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; -
addFrom
List of sources which should be able to access the 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 sources (traffic not restricted by source). 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 from list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; -
addFrom
public V1Networking.NetworkPolicyIngressRule.Builder addFrom(int index, V1Networking.NetworkPolicyPeer value) List of sources which should be able to access the 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 sources (traffic not restricted by source). 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 from list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; -
addFrom
public V1Networking.NetworkPolicyIngressRule.Builder addFrom(V1Networking.NetworkPolicyPeer.Builder builderForValue) List of sources which should be able to access the 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 sources (traffic not restricted by source). 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 from list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; -
addFrom
public V1Networking.NetworkPolicyIngressRule.Builder addFrom(int index, V1Networking.NetworkPolicyPeer.Builder builderForValue) List of sources which should be able to access the 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 sources (traffic not restricted by source). 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 from list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; -
addAllFrom
public V1Networking.NetworkPolicyIngressRule.Builder addAllFrom(Iterable<? extends V1Networking.NetworkPolicyPeer> values) List of sources which should be able to access the 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 sources (traffic not restricted by source). 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 from list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; -
clearFrom
List of sources which should be able to access the 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 sources (traffic not restricted by source). 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 from list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; -
removeFrom
List of sources which should be able to access the 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 sources (traffic not restricted by source). 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 from list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; -
getFromBuilder
List of sources which should be able to access the 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 sources (traffic not restricted by source). 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 from list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; -
getFromOrBuilder
List of sources which should be able to access the 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 sources (traffic not restricted by source). 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 from list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;- Specified by:
getFromOrBuilderin interfaceV1Networking.NetworkPolicyIngressRuleOrBuilder
-
getFromOrBuilderList
List of sources which should be able to access the 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 sources (traffic not restricted by source). 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 from list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;- Specified by:
getFromOrBuilderListin interfaceV1Networking.NetworkPolicyIngressRuleOrBuilder
-
addFromBuilder
List of sources which should be able to access the 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 sources (traffic not restricted by source). 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 from list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; -
addFromBuilder
List of sources which should be able to access the 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 sources (traffic not restricted by source). 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 from list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; -
getFromBuilderList
List of sources which should be able to access the 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 sources (traffic not restricted by source). 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 from list. +optional
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; -
setUnknownFields
public final V1Networking.NetworkPolicyIngressRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyIngressRule.Builder>
-
mergeUnknownFields
public final V1Networking.NetworkPolicyIngressRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyIngressRule.Builder>
-