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| Modifier and Type | Method and Description |
|---|---|
V1Networking.NetworkPolicyIngressRule.Builder |
addAllFrom(Iterable<? extends V1Networking.NetworkPolicyPeer> values)
List of sources which should be able to access the pods selected for this rule.
|
V1Networking.NetworkPolicyIngressRule.Builder |
addAllPorts(Iterable<? extends V1Networking.NetworkPolicyPort> values)
List of ports which should be made accessible on the pods selected for this
rule.
|
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.
|
V1Networking.NetworkPolicyIngressRule.Builder |
addFrom(int index,
V1Networking.NetworkPolicyPeer value)
List of sources which should be able to access the pods selected for this rule.
|
V1Networking.NetworkPolicyIngressRule.Builder |
addFrom(V1Networking.NetworkPolicyPeer.Builder builderForValue)
List of sources which should be able to access the pods selected for this rule.
|
V1Networking.NetworkPolicyIngressRule.Builder |
addFrom(V1Networking.NetworkPolicyPeer value)
List of sources which should be able to access the pods selected for this rule.
|
V1Networking.NetworkPolicyPeer.Builder |
addFromBuilder()
List of sources which should be able to access the pods selected for this rule.
|
V1Networking.NetworkPolicyPeer.Builder |
addFromBuilder(int index)
List of sources which should be able to access the pods selected for this rule.
|
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.
|
V1Networking.NetworkPolicyIngressRule.Builder |
addPorts(int index,
V1Networking.NetworkPolicyPort value)
List of ports which should be made accessible on the pods selected for this
rule.
|
V1Networking.NetworkPolicyIngressRule.Builder |
addPorts(V1Networking.NetworkPolicyPort.Builder builderForValue)
List of ports which should be made accessible on the pods selected for this
rule.
|
V1Networking.NetworkPolicyIngressRule.Builder |
addPorts(V1Networking.NetworkPolicyPort value)
List of ports which should be made accessible on the pods selected for this
rule.
|
V1Networking.NetworkPolicyPort.Builder |
addPortsBuilder()
List of ports which should be made accessible on the pods selected for this
rule.
|
V1Networking.NetworkPolicyPort.Builder |
addPortsBuilder(int index)
List of ports which should be made accessible on the pods selected for this
rule.
|
V1Networking.NetworkPolicyIngressRule.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1Networking.NetworkPolicyIngressRule |
build() |
V1Networking.NetworkPolicyIngressRule |
buildPartial() |
V1Networking.NetworkPolicyIngressRule.Builder |
clear() |
V1Networking.NetworkPolicyIngressRule.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1Networking.NetworkPolicyIngressRule.Builder |
clearFrom()
List of sources which should be able to access the pods selected for this rule.
|
V1Networking.NetworkPolicyIngressRule.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1Networking.NetworkPolicyIngressRule.Builder |
clearPorts()
List of ports which should be made accessible on the pods selected for this
rule.
|
V1Networking.NetworkPolicyIngressRule.Builder |
clone() |
V1Networking.NetworkPolicyIngressRule |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
V1Networking.NetworkPolicyPeer |
getFrom(int index)
List of sources which should be able to access the pods selected for this rule.
|
V1Networking.NetworkPolicyPeer.Builder |
getFromBuilder(int index)
List of sources which should be able to access the pods selected for this rule.
|
List<V1Networking.NetworkPolicyPeer.Builder> |
getFromBuilderList()
List of sources which should be able to access the pods selected for this rule.
|
int |
getFromCount()
List of sources which should be able to access the pods selected for this rule.
|
List<V1Networking.NetworkPolicyPeer> |
getFromList()
List of sources which should be able to access the pods selected for this rule.
|
V1Networking.NetworkPolicyPeerOrBuilder |
getFromOrBuilder(int index)
List of sources which should be able to access the pods selected for this rule.
|
List<? extends V1Networking.NetworkPolicyPeerOrBuilder> |
getFromOrBuilderList()
List of sources which should be able to access the pods selected for this rule.
|
V1Networking.NetworkPolicyPort |
getPorts(int index)
List of ports which should be made accessible on the pods selected for this
rule.
|
V1Networking.NetworkPolicyPort.Builder |
getPortsBuilder(int index)
List of ports which should be made accessible on the pods selected for this
rule.
|
List<V1Networking.NetworkPolicyPort.Builder> |
getPortsBuilderList()
List of ports which should be made accessible on the pods selected for this
rule.
|
int |
getPortsCount()
List of ports which should be made accessible on the pods selected for this
rule.
|
List<V1Networking.NetworkPolicyPort> |
getPortsList()
List of ports which should be made accessible on the pods selected for this
rule.
|
V1Networking.NetworkPolicyPortOrBuilder |
getPortsOrBuilder(int index)
List of ports which should be made accessible on the pods selected for this
rule.
|
List<? extends V1Networking.NetworkPolicyPortOrBuilder> |
getPortsOrBuilderList()
List of ports which should be made accessible on the pods selected for this
rule.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1Networking.NetworkPolicyIngressRule.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1Networking.NetworkPolicyIngressRule.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1Networking.NetworkPolicyIngressRule.Builder |
mergeFrom(V1Networking.NetworkPolicyIngressRule other) |
V1Networking.NetworkPolicyIngressRule.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1Networking.NetworkPolicyIngressRule.Builder |
removeFrom(int index)
List of sources which should be able to access the pods selected for this rule.
|
V1Networking.NetworkPolicyIngressRule.Builder |
removePorts(int index)
List of ports which should be made accessible on the pods selected for this
rule.
|
V1Networking.NetworkPolicyIngressRule.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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.
|
V1Networking.NetworkPolicyIngressRule.Builder |
setFrom(int index,
V1Networking.NetworkPolicyPeer value)
List of sources which should be able to access the pods selected for this rule.
|
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.
|
V1Networking.NetworkPolicyIngressRule.Builder |
setPorts(int index,
V1Networking.NetworkPolicyPort value)
List of ports which should be made accessible on the pods selected for this
rule.
|
V1Networking.NetworkPolicyIngressRule.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1Networking.NetworkPolicyIngressRule.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyIngressRule.Builder>public V1Networking.NetworkPolicyIngressRule.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyIngressRule.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyIngressRule.Builder>public V1Networking.NetworkPolicyIngressRule getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1Networking.NetworkPolicyIngressRule build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1Networking.NetworkPolicyIngressRule buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1Networking.NetworkPolicyIngressRule.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyIngressRule.Builder>public V1Networking.NetworkPolicyIngressRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyIngressRule.Builder>public V1Networking.NetworkPolicyIngressRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyIngressRule.Builder>public V1Networking.NetworkPolicyIngressRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyIngressRule.Builder>public V1Networking.NetworkPolicyIngressRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyIngressRule.Builder>public V1Networking.NetworkPolicyIngressRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyIngressRule.Builder>public V1Networking.NetworkPolicyIngressRule.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1Networking.NetworkPolicyIngressRule.Builder>public V1Networking.NetworkPolicyIngressRule.Builder mergeFrom(V1Networking.NetworkPolicyIngressRule other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyIngressRule.Builder>public V1Networking.NetworkPolicyIngressRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1Networking.NetworkPolicyIngressRule.Builder>IOExceptionpublic List<V1Networking.NetworkPolicyPort> 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;getPortsList in interface V1Networking.NetworkPolicyIngressRuleOrBuilderpublic 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;getPortsCount in interface V1Networking.NetworkPolicyIngressRuleOrBuilderpublic V1Networking.NetworkPolicyPort getPorts(int index)
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;getPorts in interface V1Networking.NetworkPolicyIngressRuleOrBuilderpublic 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;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;public V1Networking.NetworkPolicyIngressRule.Builder addPorts(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;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;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;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;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;public V1Networking.NetworkPolicyIngressRule.Builder 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;public V1Networking.NetworkPolicyIngressRule.Builder removePorts(int index)
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;public V1Networking.NetworkPolicyPort.Builder getPortsBuilder(int index)
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;public V1Networking.NetworkPolicyPortOrBuilder getPortsOrBuilder(int index)
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 in interface V1Networking.NetworkPolicyIngressRuleOrBuilderpublic List<? extends V1Networking.NetworkPolicyPortOrBuilder> 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;getPortsOrBuilderList in interface V1Networking.NetworkPolicyIngressRuleOrBuilderpublic V1Networking.NetworkPolicyPort.Builder 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;public V1Networking.NetworkPolicyPort.Builder addPortsBuilder(int index)
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;public List<V1Networking.NetworkPolicyPort.Builder> 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;public List<V1Networking.NetworkPolicyPeer> 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 on 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;getFromList in interface V1Networking.NetworkPolicyIngressRuleOrBuilderpublic 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 on 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;getFromCount in interface V1Networking.NetworkPolicyIngressRuleOrBuilderpublic V1Networking.NetworkPolicyPeer getFrom(int index)
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 on 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;getFrom in interface V1Networking.NetworkPolicyIngressRuleOrBuilderpublic 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 on 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;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 on 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;public V1Networking.NetworkPolicyIngressRule.Builder addFrom(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 on 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;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 on 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;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 on 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;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 on 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;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 on 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;public V1Networking.NetworkPolicyIngressRule.Builder 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 on 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;public V1Networking.NetworkPolicyIngressRule.Builder removeFrom(int index)
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 on 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;public V1Networking.NetworkPolicyPeer.Builder getFromBuilder(int index)
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 on 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;public V1Networking.NetworkPolicyPeerOrBuilder getFromOrBuilder(int index)
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 on 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 in interface V1Networking.NetworkPolicyIngressRuleOrBuilderpublic List<? extends V1Networking.NetworkPolicyPeerOrBuilder> 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 on 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;getFromOrBuilderList in interface V1Networking.NetworkPolicyIngressRuleOrBuilderpublic V1Networking.NetworkPolicyPeer.Builder 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 on 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;public V1Networking.NetworkPolicyPeer.Builder addFromBuilder(int index)
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 on 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;public List<V1Networking.NetworkPolicyPeer.Builder> 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 on 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;public final V1Networking.NetworkPolicyIngressRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyIngressRule.Builder>public final V1Networking.NetworkPolicyIngressRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicyIngressRule.Builder>Copyright © 2020. All rights reserved.