Package io.kubernetes.client.proto
Class V1beta1Extensions.NetworkPolicyIngressRule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder>
io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyIngressRule.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,V1beta1Extensions.NetworkPolicyIngressRuleOrBuilder
,Cloneable
- Enclosing class:
- V1beta1Extensions.NetworkPolicyIngressRule
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
-
Method Summary
Modifier and TypeMethodDescriptionaddAllFrom
(Iterable<? extends V1beta1Extensions.NetworkPolicyPeer> values) List of sources which should be able to access the pods selected for this rule.addAllPorts
(Iterable<? extends V1beta1Extensions.NetworkPolicyPort> values) List of ports which should be made accessible on the pods selected for this rule.addFrom
(int index, V1beta1Extensions.NetworkPolicyPeer value) List of sources which should be able to access the pods selected for this rule.addFrom
(int index, V1beta1Extensions.NetworkPolicyPeer.Builder builderForValue) List of sources which should be able to access the pods selected for this rule.List of sources which should be able to access the pods selected for this rule.addFrom
(V1beta1Extensions.NetworkPolicyPeer.Builder builderForValue) List of sources which should be able to access the pods selected for this rule.List of sources which should be able to access the pods selected for this rule.addFromBuilder
(int index) List of sources which should be able to access the pods selected for this rule.addPorts
(int index, V1beta1Extensions.NetworkPolicyPort value) List of ports which should be made accessible on the pods selected for this rule.addPorts
(int index, V1beta1Extensions.NetworkPolicyPort.Builder builderForValue) List of ports which should be made accessible on the pods selected for this rule.List of ports which should be made accessible on the pods selected for this rule.addPorts
(V1beta1Extensions.NetworkPolicyPort.Builder builderForValue) List of ports which should be made accessible on the pods selected for this rule.List of ports which should be made accessible on the pods selected for this rule.addPortsBuilder
(int index) List of ports which should be made accessible on the pods selected for this rule.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) List of sources which should be able to access the pods selected for this rule.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) List of ports which should be made accessible on the pods selected for this rule.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getFrom
(int index) List of sources which should be able to access the pods selected for this rule.getFromBuilder
(int index) List of sources which should be able to access the pods selected for this rule.List of sources which should be able to access the pods selected for this rule.int
List of sources which should be able to access the pods selected for this rule.List of sources which should be able to access the pods selected for this rule.getFromOrBuilder
(int index) List of sources which should be able to access the pods selected for this rule.List<? extends V1beta1Extensions.NetworkPolicyPeerOrBuilder>
List of sources which should be able to access the pods selected for this rule.getPorts
(int index) List of ports which should be made accessible on the pods selected for this rule.getPortsBuilder
(int index) List of ports which should be made accessible on the pods selected for this rule.List of ports which should be made accessible on the pods selected for this rule.int
List of ports which should be made accessible on the pods selected for this rule.List of ports which should be made accessible on the pods selected for this rule.getPortsOrBuilder
(int index) List of ports which should be made accessible on the pods selected for this rule.List<? extends V1beta1Extensions.NetworkPolicyPortOrBuilder>
List of ports which should be made accessible on the pods selected for this rule.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) removeFrom
(int index) List of sources which should be able to access the pods selected for this rule.removePorts
(int index) List of ports which should be made accessible on the pods selected for this rule.setFrom
(int index, V1beta1Extensions.NetworkPolicyPeer value) List of sources which should be able to access the pods selected for this rule.setFrom
(int index, V1beta1Extensions.NetworkPolicyPeer.Builder builderForValue) List of sources which should be able to access the pods selected for this rule.setPorts
(int index, V1beta1Extensions.NetworkPolicyPort value) List of ports which should be made accessible on the pods selected for this rule.setPorts
(int index, V1beta1Extensions.NetworkPolicyPort.Builder builderForValue) List of ports which should be made accessible on the pods selected for this rule.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder>
-
setField
public V1beta1Extensions.NetworkPolicyIngressRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder>
-
clearField
public V1beta1Extensions.NetworkPolicyIngressRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder>
-
clearOneof
public V1beta1Extensions.NetworkPolicyIngressRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder>
-
setRepeatedField
public V1beta1Extensions.NetworkPolicyIngressRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder>
-
addRepeatedField
public V1beta1Extensions.NetworkPolicyIngressRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder>
-
mergeFrom
public V1beta1Extensions.NetworkPolicyIngressRule.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder>
-
mergeFrom
public V1beta1Extensions.NetworkPolicyIngressRule.Builder mergeFrom(V1beta1Extensions.NetworkPolicyIngressRule other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder>
-
mergeFrom
public V1beta1Extensions.NetworkPolicyIngressRule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder>
- Throws:
IOException
-
getPortsList
List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;
- Specified by:
getPortsList
in interfaceV1beta1Extensions.NetworkPolicyIngressRuleOrBuilder
-
getPortsCount
public int getPortsCount()List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;
- Specified by:
getPortsCount
in interfaceV1beta1Extensions.NetworkPolicyIngressRuleOrBuilder
-
getPorts
List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;
- Specified by:
getPorts
in interfaceV1beta1Extensions.NetworkPolicyIngressRuleOrBuilder
-
setPorts
public 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;
-
setPorts
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;
-
addPorts
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;
-
addPorts
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;
-
addPorts
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;
-
addPorts
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;
-
addAllPorts
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;
-
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;
-
removePorts
List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;
-
getPortsBuilder
List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;
-
getPortsOrBuilder
List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;
- Specified by:
getPortsOrBuilder
in interfaceV1beta1Extensions.NetworkPolicyIngressRuleOrBuilder
-
getPortsOrBuilderList
List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;
- Specified by:
getPortsOrBuilderList
in interfaceV1beta1Extensions.NetworkPolicyIngressRuleOrBuilder
-
addPortsBuilder
List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;
-
addPortsBuilder
List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;
-
getPortsBuilderList
List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;
-
getFromList
List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;
- Specified by:
getFromList
in interfaceV1beta1Extensions.NetworkPolicyIngressRuleOrBuilder
-
getFromCount
public int getFromCount()List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;
- Specified by:
getFromCount
in interfaceV1beta1Extensions.NetworkPolicyIngressRuleOrBuilder
-
getFrom
List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;
- Specified by:
getFrom
in interfaceV1beta1Extensions.NetworkPolicyIngressRuleOrBuilder
-
setFrom
public 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;
-
setFrom
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;
-
addFrom
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;
-
addFrom
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;
-
addFrom
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;
-
addFrom
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;
-
addAllFrom
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;
-
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;
-
removeFrom
List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;
-
getFromBuilder
List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;
-
getFromOrBuilder
List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;
- Specified by:
getFromOrBuilder
in interfaceV1beta1Extensions.NetworkPolicyIngressRuleOrBuilder
-
getFromOrBuilderList
List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;
- Specified by:
getFromOrBuilderList
in interfaceV1beta1Extensions.NetworkPolicyIngressRuleOrBuilder
-
addFromBuilder
List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;
-
addFromBuilder
List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;
-
getFromBuilderList
List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;
-
setUnknownFields
public final V1beta1Extensions.NetworkPolicyIngressRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder>
-
mergeUnknownFields
public final V1beta1Extensions.NetworkPolicyIngressRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicyIngressRule.Builder>
-