public static final class V1beta1Extensions.NetworkPolicyIngressRule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder> implements V1beta1Extensions.NetworkPolicyIngressRuleOrBuilder
DEPRECATED 1.9 - This group version of NetworkPolicyIngressRule is deprecated by networking/v1/NetworkPolicyIngressRule. This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from.Protobuf type
k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule| Modifier and Type | Method and Description |
|---|---|
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
addAllFrom(Iterable<? extends V1beta1Extensions.NetworkPolicyPeer> values)
List of sources which should be able to access the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
addAllPorts(Iterable<? extends V1beta1Extensions.NetworkPolicyPort> values)
List of ports which should be made accessible on the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
addFrom(int index,
V1beta1Extensions.NetworkPolicyPeer.Builder builderForValue)
List of sources which should be able to access the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
addFrom(int index,
V1beta1Extensions.NetworkPolicyPeer value)
List of sources which should be able to access the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
addFrom(V1beta1Extensions.NetworkPolicyPeer.Builder builderForValue)
List of sources which should be able to access the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
addFrom(V1beta1Extensions.NetworkPolicyPeer value)
List of sources which should be able to access the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyPeer.Builder |
addFromBuilder()
List of sources which should be able to access the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyPeer.Builder |
addFromBuilder(int index)
List of sources which should be able to access the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
addPorts(int index,
V1beta1Extensions.NetworkPolicyPort.Builder builderForValue)
List of ports which should be made accessible on the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
addPorts(int index,
V1beta1Extensions.NetworkPolicyPort value)
List of ports which should be made accessible on the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
addPorts(V1beta1Extensions.NetworkPolicyPort.Builder builderForValue)
List of ports which should be made accessible on the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
addPorts(V1beta1Extensions.NetworkPolicyPort value)
List of ports which should be made accessible on the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyPort.Builder |
addPortsBuilder()
List of ports which should be made accessible on the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyPort.Builder |
addPortsBuilder(int index)
List of ports which should be made accessible on the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1beta1Extensions.NetworkPolicyIngressRule |
build() |
V1beta1Extensions.NetworkPolicyIngressRule |
buildPartial() |
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
clear() |
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
clearFrom()
List of sources which should be able to access the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
clearPorts()
List of ports which should be made accessible on the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
clone() |
V1beta1Extensions.NetworkPolicyIngressRule |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
V1beta1Extensions.NetworkPolicyPeer |
getFrom(int index)
List of sources which should be able to access the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyPeer.Builder |
getFromBuilder(int index)
List of sources which should be able to access the pods selected for this rule.
|
List<V1beta1Extensions.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<V1beta1Extensions.NetworkPolicyPeer> |
getFromList()
List of sources which should be able to access the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyPeerOrBuilder |
getFromOrBuilder(int index)
List of sources which should be able to access the pods selected for this rule.
|
List<? extends V1beta1Extensions.NetworkPolicyPeerOrBuilder> |
getFromOrBuilderList()
List of sources which should be able to access the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyPort |
getPorts(int index)
List of ports which should be made accessible on the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyPort.Builder |
getPortsBuilder(int index)
List of ports which should be made accessible on the pods selected for this rule.
|
List<V1beta1Extensions.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<V1beta1Extensions.NetworkPolicyPort> |
getPortsList()
List of ports which should be made accessible on the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyPortOrBuilder |
getPortsOrBuilder(int index)
List of ports which should be made accessible on the pods selected for this rule.
|
List<? extends V1beta1Extensions.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() |
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
mergeFrom(V1beta1Extensions.NetworkPolicyIngressRule other) |
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
removeFrom(int index)
List of sources which should be able to access the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
removePorts(int index)
List of ports which should be made accessible on the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
setFrom(int index,
V1beta1Extensions.NetworkPolicyPeer.Builder builderForValue)
List of sources which should be able to access the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
setFrom(int index,
V1beta1Extensions.NetworkPolicyPeer value)
List of sources which should be able to access the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
setPorts(int index,
V1beta1Extensions.NetworkPolicyPort.Builder builderForValue)
List of ports which should be made accessible on the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
setPorts(int index,
V1beta1Extensions.NetworkPolicyPort value)
List of ports which should be made accessible on the pods selected for this rule.
|
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder>public V1beta1Extensions.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<V1beta1Extensions.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<V1beta1Extensions.NetworkPolicyIngressRule.Builder>public V1beta1Extensions.NetworkPolicyIngressRule getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1beta1Extensions.NetworkPolicyIngressRule build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1beta1Extensions.NetworkPolicyIngressRule buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1beta1Extensions.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<V1beta1Extensions.NetworkPolicyIngressRule.Builder>public V1beta1Extensions.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<V1beta1Extensions.NetworkPolicyIngressRule.Builder>public V1beta1Extensions.NetworkPolicyIngressRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder>public V1beta1Extensions.NetworkPolicyIngressRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder>public V1beta1Extensions.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<V1beta1Extensions.NetworkPolicyIngressRule.Builder>public V1beta1Extensions.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<V1beta1Extensions.NetworkPolicyIngressRule.Builder>public V1beta1Extensions.NetworkPolicyIngressRule.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder>public V1beta1Extensions.NetworkPolicyIngressRule.Builder mergeFrom(V1beta1Extensions.NetworkPolicyIngressRule other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder>public V1beta1Extensions.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<V1beta1Extensions.NetworkPolicyIngressRule.Builder>IOExceptionpublic List<V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;getPortsList in interface V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;getPortsCount in interface V1beta1Extensions.NetworkPolicyIngressRuleOrBuilderpublic V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;getPorts in interface V1beta1Extensions.NetworkPolicyIngressRuleOrBuilderpublic V1beta1Extensions.NetworkPolicyIngressRule.Builder setPorts(int index, V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;public V1beta1Extensions.NetworkPolicyIngressRule.Builder setPorts(int index, V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;public V1beta1Extensions.NetworkPolicyIngressRule.Builder addPorts(V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;public V1beta1Extensions.NetworkPolicyIngressRule.Builder addPorts(int index, V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;public V1beta1Extensions.NetworkPolicyIngressRule.Builder addPorts(V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;public V1beta1Extensions.NetworkPolicyIngressRule.Builder addPorts(int index, V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;public V1beta1Extensions.NetworkPolicyIngressRule.Builder addAllPorts(Iterable<? extends V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;public V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;public V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;public V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;public V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;getPortsOrBuilder in interface V1beta1Extensions.NetworkPolicyIngressRuleOrBuilderpublic List<? extends V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;getPortsOrBuilderList in interface V1beta1Extensions.NetworkPolicyIngressRuleOrBuilderpublic V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;public V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;public List<V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPort ports = 1;public List<V1beta1Extensions.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 one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;getFromList in interface V1beta1Extensions.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 one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;getFromCount in interface V1beta1Extensions.NetworkPolicyIngressRuleOrBuilderpublic V1beta1Extensions.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 one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;getFrom in interface V1beta1Extensions.NetworkPolicyIngressRuleOrBuilderpublic V1beta1Extensions.NetworkPolicyIngressRule.Builder setFrom(int index, V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPeer from = 2;public V1beta1Extensions.NetworkPolicyIngressRule.Builder setFrom(int index, V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPeer from = 2;public V1beta1Extensions.NetworkPolicyIngressRule.Builder addFrom(V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPeer from = 2;public V1beta1Extensions.NetworkPolicyIngressRule.Builder addFrom(int index, V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPeer from = 2;public V1beta1Extensions.NetworkPolicyIngressRule.Builder addFrom(V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPeer from = 2;public V1beta1Extensions.NetworkPolicyIngressRule.Builder addFrom(int index, V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPeer from = 2;public V1beta1Extensions.NetworkPolicyIngressRule.Builder addAllFrom(Iterable<? extends V1beta1Extensions.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.extensions.v1beta1.NetworkPolicyPeer from = 2;public V1beta1Extensions.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 one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;public V1beta1Extensions.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 one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;public V1beta1Extensions.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 one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;public V1beta1Extensions.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 one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;getFromOrBuilder in interface V1beta1Extensions.NetworkPolicyIngressRuleOrBuilderpublic List<? extends V1beta1Extensions.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 one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;getFromOrBuilderList in interface V1beta1Extensions.NetworkPolicyIngressRuleOrBuilderpublic V1beta1Extensions.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 one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;public V1beta1Extensions.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 one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;public List<V1beta1Extensions.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 one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;public final V1beta1Extensions.NetworkPolicyIngressRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder>public final V1beta1Extensions.NetworkPolicyIngressRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder>Copyright © 2023. All rights reserved.