Package k8s.io.api.networking.v1
Class Generated.NetworkPolicyIngressRule.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicyIngressRule.Builder>
-
- k8s.io.api.networking.v1.Generated.NetworkPolicyIngressRule.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.NetworkPolicyIngressRuleOrBuilder
- Enclosing class:
- Generated.NetworkPolicyIngressRule
public static final class Generated.NetworkPolicyIngressRule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicyIngressRule.Builder> implements Generated.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 typek8s.io.api.networking.v1.NetworkPolicyIngressRule
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.NetworkPolicyIngressRule.BuilderaddAllFrom(Iterable<? extends Generated.NetworkPolicyPeer> values)from is a list of sources which should be able to access the pods selected for this rule.Generated.NetworkPolicyIngressRule.BuilderaddAllPorts(Iterable<? extends Generated.NetworkPolicyPort> values)ports is a list of ports which should be made accessible on the pods selected for this rule.Generated.NetworkPolicyIngressRule.BuilderaddFrom(int index, Generated.NetworkPolicyPeer value)from is a list of sources which should be able to access the pods selected for this rule.Generated.NetworkPolicyIngressRule.BuilderaddFrom(int index, Generated.NetworkPolicyPeer.Builder builderForValue)from is a list of sources which should be able to access the pods selected for this rule.Generated.NetworkPolicyIngressRule.BuilderaddFrom(Generated.NetworkPolicyPeer value)from is a list of sources which should be able to access the pods selected for this rule.Generated.NetworkPolicyIngressRule.BuilderaddFrom(Generated.NetworkPolicyPeer.Builder builderForValue)from is a list of sources which should be able to access the pods selected for this rule.Generated.NetworkPolicyPeer.BuilderaddFromBuilder()from is a list of sources which should be able to access the pods selected for this rule.Generated.NetworkPolicyPeer.BuilderaddFromBuilder(int index)from is a list of sources which should be able to access the pods selected for this rule.Generated.NetworkPolicyIngressRule.BuilderaddPorts(int index, Generated.NetworkPolicyPort value)ports is a list of ports which should be made accessible on the pods selected for this rule.Generated.NetworkPolicyIngressRule.BuilderaddPorts(int index, Generated.NetworkPolicyPort.Builder builderForValue)ports is a list of ports which should be made accessible on the pods selected for this rule.Generated.NetworkPolicyIngressRule.BuilderaddPorts(Generated.NetworkPolicyPort value)ports is a list of ports which should be made accessible on the pods selected for this rule.Generated.NetworkPolicyIngressRule.BuilderaddPorts(Generated.NetworkPolicyPort.Builder builderForValue)ports is a list of ports which should be made accessible on the pods selected for this rule.Generated.NetworkPolicyPort.BuilderaddPortsBuilder()ports is a list of ports which should be made accessible on the pods selected for this rule.Generated.NetworkPolicyPort.BuilderaddPortsBuilder(int index)ports is a list of ports which should be made accessible on the pods selected for this rule.Generated.NetworkPolicyIngressRule.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.NetworkPolicyIngressRulebuild()Generated.NetworkPolicyIngressRulebuildPartial()Generated.NetworkPolicyIngressRule.Builderclear()Generated.NetworkPolicyIngressRule.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.NetworkPolicyIngressRule.BuilderclearFrom()from is a list of sources which should be able to access the pods selected for this rule.Generated.NetworkPolicyIngressRule.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.NetworkPolicyIngressRule.BuilderclearPorts()ports is a list of ports which should be made accessible on the pods selected for this rule.Generated.NetworkPolicyIngressRule.Builderclone()Generated.NetworkPolicyIngressRulegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Generated.NetworkPolicyPeergetFrom(int index)from is a list of sources which should be able to access the pods selected for this rule.Generated.NetworkPolicyPeer.BuildergetFromBuilder(int index)from is a list of sources which should be able to access the pods selected for this rule.List<Generated.NetworkPolicyPeer.Builder>getFromBuilderList()from is a list of sources which should be able to access the pods selected for this rule.intgetFromCount()from is a list of sources which should be able to access the pods selected for this rule.List<Generated.NetworkPolicyPeer>getFromList()from is a list of sources which should be able to access the pods selected for this rule.Generated.NetworkPolicyPeerOrBuildergetFromOrBuilder(int index)from is a list of sources which should be able to access the pods selected for this rule.List<? extends Generated.NetworkPolicyPeerOrBuilder>getFromOrBuilderList()from is a list of sources which should be able to access the pods selected for this rule.Generated.NetworkPolicyPortgetPorts(int index)ports is a list of ports which should be made accessible on the pods selected for this rule.Generated.NetworkPolicyPort.BuildergetPortsBuilder(int index)ports is a list of ports which should be made accessible on the pods selected for this rule.List<Generated.NetworkPolicyPort.Builder>getPortsBuilderList()ports is a list of ports which should be made accessible on the pods selected for this rule.intgetPortsCount()ports is a list of ports which should be made accessible on the pods selected for this rule.List<Generated.NetworkPolicyPort>getPortsList()ports is a list of ports which should be made accessible on the pods selected for this rule.Generated.NetworkPolicyPortOrBuildergetPortsOrBuilder(int index)ports is a list of ports which should be made accessible on the pods selected for this rule.List<? extends Generated.NetworkPolicyPortOrBuilder>getPortsOrBuilderList()ports is a list of ports which should be made accessible on the pods selected for this rule.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.NetworkPolicyIngressRule.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.NetworkPolicyIngressRule.BuildermergeFrom(com.google.protobuf.Message other)Generated.NetworkPolicyIngressRule.BuildermergeFrom(Generated.NetworkPolicyIngressRule other)Generated.NetworkPolicyIngressRule.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.NetworkPolicyIngressRule.BuilderremoveFrom(int index)from is a list of sources which should be able to access the pods selected for this rule.Generated.NetworkPolicyIngressRule.BuilderremovePorts(int index)ports is a list of ports which should be made accessible on the pods selected for this rule.Generated.NetworkPolicyIngressRule.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.NetworkPolicyIngressRule.BuildersetFrom(int index, Generated.NetworkPolicyPeer value)from is a list of sources which should be able to access the pods selected for this rule.Generated.NetworkPolicyIngressRule.BuildersetFrom(int index, Generated.NetworkPolicyPeer.Builder builderForValue)from is a list of sources which should be able to access the pods selected for this rule.Generated.NetworkPolicyIngressRule.BuildersetPorts(int index, Generated.NetworkPolicyPort value)ports is a list of ports which should be made accessible on the pods selected for this rule.Generated.NetworkPolicyIngressRule.BuildersetPorts(int index, Generated.NetworkPolicyPort.Builder builderForValue)ports is a list of ports which should be made accessible on the pods selected for this rule.Generated.NetworkPolicyIngressRule.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.NetworkPolicyIngressRule.BuildersetUnknownFields(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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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<Generated.NetworkPolicyIngressRule.Builder>
-
clear
public Generated.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<Generated.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<Generated.NetworkPolicyIngressRule.Builder>
-
getDefaultInstanceForType
public Generated.NetworkPolicyIngressRule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.NetworkPolicyIngressRule build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.NetworkPolicyIngressRule buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.NetworkPolicyIngressRule.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<Generated.NetworkPolicyIngressRule.Builder>
-
setField
public Generated.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<Generated.NetworkPolicyIngressRule.Builder>
-
clearField
public Generated.NetworkPolicyIngressRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicyIngressRule.Builder>
-
clearOneof
public Generated.NetworkPolicyIngressRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicyIngressRule.Builder>
-
setRepeatedField
public Generated.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<Generated.NetworkPolicyIngressRule.Builder>
-
addRepeatedField
public Generated.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<Generated.NetworkPolicyIngressRule.Builder>
-
mergeFrom
public Generated.NetworkPolicyIngressRule.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.NetworkPolicyIngressRule.Builder>
-
mergeFrom
public Generated.NetworkPolicyIngressRule.Builder mergeFrom(Generated.NetworkPolicyIngressRule other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicyIngressRule.Builder>
-
mergeFrom
public Generated.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<Generated.NetworkPolicyIngressRule.Builder>- Throws:
IOException
-
getPortsList
public List<Generated.NetworkPolicyPort> getPortsList()
ports is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;- Specified by:
getPortsListin interfaceGenerated.NetworkPolicyIngressRuleOrBuilder
-
getPortsCount
public int getPortsCount()
ports is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;- Specified by:
getPortsCountin interfaceGenerated.NetworkPolicyIngressRuleOrBuilder
-
getPorts
public Generated.NetworkPolicyPort getPorts(int index)
ports is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;- Specified by:
getPortsin interfaceGenerated.NetworkPolicyIngressRuleOrBuilder
-
setPorts
public Generated.NetworkPolicyIngressRule.Builder setPorts(int index, Generated.NetworkPolicyPort value)
ports is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
setPorts
public Generated.NetworkPolicyIngressRule.Builder setPorts(int index, Generated.NetworkPolicyPort.Builder builderForValue)
ports is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
addPorts
public Generated.NetworkPolicyIngressRule.Builder addPorts(Generated.NetworkPolicyPort value)
ports is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
addPorts
public Generated.NetworkPolicyIngressRule.Builder addPorts(int index, Generated.NetworkPolicyPort value)
ports is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
addPorts
public Generated.NetworkPolicyIngressRule.Builder addPorts(Generated.NetworkPolicyPort.Builder builderForValue)
ports is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
addPorts
public Generated.NetworkPolicyIngressRule.Builder addPorts(int index, Generated.NetworkPolicyPort.Builder builderForValue)
ports is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
addAllPorts
public Generated.NetworkPolicyIngressRule.Builder addAllPorts(Iterable<? extends Generated.NetworkPolicyPort> values)
ports is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
clearPorts
public Generated.NetworkPolicyIngressRule.Builder clearPorts()
ports is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
removePorts
public Generated.NetworkPolicyIngressRule.Builder removePorts(int index)
ports is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
getPortsBuilder
public Generated.NetworkPolicyPort.Builder getPortsBuilder(int index)
ports is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
getPortsOrBuilder
public Generated.NetworkPolicyPortOrBuilder getPortsOrBuilder(int index)
ports is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;- Specified by:
getPortsOrBuilderin interfaceGenerated.NetworkPolicyIngressRuleOrBuilder
-
getPortsOrBuilderList
public List<? extends Generated.NetworkPolicyPortOrBuilder> getPortsOrBuilderList()
ports is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;- Specified by:
getPortsOrBuilderListin interfaceGenerated.NetworkPolicyIngressRuleOrBuilder
-
addPortsBuilder
public Generated.NetworkPolicyPort.Builder addPortsBuilder()
ports is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
addPortsBuilder
public Generated.NetworkPolicyPort.Builder addPortsBuilder(int index)
ports is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
getPortsBuilderList
public List<Generated.NetworkPolicyPort.Builder> getPortsBuilderList()
ports is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;
-
getFromList
public List<Generated.NetworkPolicyPeer> getFromList()
from is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;- Specified by:
getFromListin interfaceGenerated.NetworkPolicyIngressRuleOrBuilder
-
getFromCount
public int getFromCount()
from is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;- Specified by:
getFromCountin interfaceGenerated.NetworkPolicyIngressRuleOrBuilder
-
getFrom
public Generated.NetworkPolicyPeer getFrom(int index)
from is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;- Specified by:
getFromin interfaceGenerated.NetworkPolicyIngressRuleOrBuilder
-
setFrom
public Generated.NetworkPolicyIngressRule.Builder setFrom(int index, Generated.NetworkPolicyPeer value)
from is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
-
setFrom
public Generated.NetworkPolicyIngressRule.Builder setFrom(int index, Generated.NetworkPolicyPeer.Builder builderForValue)
from is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
-
addFrom
public Generated.NetworkPolicyIngressRule.Builder addFrom(Generated.NetworkPolicyPeer value)
from is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
-
addFrom
public Generated.NetworkPolicyIngressRule.Builder addFrom(int index, Generated.NetworkPolicyPeer value)
from is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
-
addFrom
public Generated.NetworkPolicyIngressRule.Builder addFrom(Generated.NetworkPolicyPeer.Builder builderForValue)
from is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
-
addFrom
public Generated.NetworkPolicyIngressRule.Builder addFrom(int index, Generated.NetworkPolicyPeer.Builder builderForValue)
from is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
-
addAllFrom
public Generated.NetworkPolicyIngressRule.Builder addAllFrom(Iterable<? extends Generated.NetworkPolicyPeer> values)
from is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
-
clearFrom
public Generated.NetworkPolicyIngressRule.Builder clearFrom()
from is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
-
removeFrom
public Generated.NetworkPolicyIngressRule.Builder removeFrom(int index)
from is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
-
getFromBuilder
public Generated.NetworkPolicyPeer.Builder getFromBuilder(int index)
from is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
-
getFromOrBuilder
public Generated.NetworkPolicyPeerOrBuilder getFromOrBuilder(int index)
from is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;- Specified by:
getFromOrBuilderin interfaceGenerated.NetworkPolicyIngressRuleOrBuilder
-
getFromOrBuilderList
public List<? extends Generated.NetworkPolicyPeerOrBuilder> getFromOrBuilderList()
from is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;- Specified by:
getFromOrBuilderListin interfaceGenerated.NetworkPolicyIngressRuleOrBuilder
-
addFromBuilder
public Generated.NetworkPolicyPeer.Builder addFromBuilder()
from is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
-
addFromBuilder
public Generated.NetworkPolicyPeer.Builder addFromBuilder(int index)
from is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
-
getFromBuilderList
public List<Generated.NetworkPolicyPeer.Builder> getFromBuilderList()
from is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;
-
setUnknownFields
public final Generated.NetworkPolicyIngressRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicyIngressRule.Builder>
-
mergeUnknownFields
public final Generated.NetworkPolicyIngressRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicyIngressRule.Builder>
-
-