Package io.kubernetes.client.proto
Class V1beta1Extensions.NetworkPolicySpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicySpec.Builder>
io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicySpec.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,V1beta1Extensions.NetworkPolicySpecOrBuilder
,Cloneable
- Enclosing class:
- V1beta1Extensions.NetworkPolicySpec
public static final class V1beta1Extensions.NetworkPolicySpec.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicySpec.Builder>
implements V1beta1Extensions.NetworkPolicySpecOrBuilder
DEPRECATED 1.9 - This group version of NetworkPolicySpec is deprecated by networking/v1/NetworkPolicySpec.Protobuf type
k8s.io.api.extensions.v1beta1.NetworkPolicySpec
-
Method Summary
Modifier and TypeMethodDescriptionaddAllEgress
(Iterable<? extends V1beta1Extensions.NetworkPolicyEgressRule> values) List of egress rules to be applied to the selected pods.addAllIngress
(Iterable<? extends V1beta1Extensions.NetworkPolicyIngressRule> values) List of ingress rules to be applied to the selected pods.addAllPolicyTypes
(Iterable<String> values) List of rule types that the NetworkPolicy relates to.addEgress
(int index, V1beta1Extensions.NetworkPolicyEgressRule value) List of egress rules to be applied to the selected pods.addEgress
(int index, V1beta1Extensions.NetworkPolicyEgressRule.Builder builderForValue) List of egress rules to be applied to the selected pods.List of egress rules to be applied to the selected pods.addEgress
(V1beta1Extensions.NetworkPolicyEgressRule.Builder builderForValue) List of egress rules to be applied to the selected pods.List of egress rules to be applied to the selected pods.addEgressBuilder
(int index) List of egress rules to be applied to the selected pods.addIngress
(int index, V1beta1Extensions.NetworkPolicyIngressRule value) List of ingress rules to be applied to the selected pods.addIngress
(int index, V1beta1Extensions.NetworkPolicyIngressRule.Builder builderForValue) List of ingress rules to be applied to the selected pods.List of ingress rules to be applied to the selected pods.addIngress
(V1beta1Extensions.NetworkPolicyIngressRule.Builder builderForValue) List of ingress rules to be applied to the selected pods.List of ingress rules to be applied to the selected pods.addIngressBuilder
(int index) List of ingress rules to be applied to the selected pods.addPolicyTypes
(String value) List of rule types that the NetworkPolicy relates to.addPolicyTypesBytes
(com.google.protobuf.ByteString value) List of rule types that the NetworkPolicy relates to.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
List of egress rules to be applied to the selected pods.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) List of ingress rules to be applied to the selected pods.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Selects the pods to which this NetworkPolicy object applies.List of rule types that the NetworkPolicy relates to.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getEgress
(int index) List of egress rules to be applied to the selected pods.getEgressBuilder
(int index) List of egress rules to be applied to the selected pods.List of egress rules to be applied to the selected pods.int
List of egress rules to be applied to the selected pods.List of egress rules to be applied to the selected pods.getEgressOrBuilder
(int index) List of egress rules to be applied to the selected pods.List of egress rules to be applied to the selected pods.getIngress
(int index) List of ingress rules to be applied to the selected pods.getIngressBuilder
(int index) List of ingress rules to be applied to the selected pods.List of ingress rules to be applied to the selected pods.int
List of ingress rules to be applied to the selected pods.List of ingress rules to be applied to the selected pods.getIngressOrBuilder
(int index) List of ingress rules to be applied to the selected pods.List of ingress rules to be applied to the selected pods.Selects the pods to which this NetworkPolicy object applies.Selects the pods to which this NetworkPolicy object applies.Selects the pods to which this NetworkPolicy object applies.getPolicyTypes
(int index) List of rule types that the NetworkPolicy relates to.com.google.protobuf.ByteString
getPolicyTypesBytes
(int index) List of rule types that the NetworkPolicy relates to.int
List of rule types that the NetworkPolicy relates to.com.google.protobuf.ProtocolStringList
List of rule types that the NetworkPolicy relates to.boolean
Selects the pods to which this NetworkPolicy object applies.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) Selects the pods to which this NetworkPolicy object applies.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) removeEgress
(int index) List of egress rules to be applied to the selected pods.removeIngress
(int index) List of ingress rules to be applied to the selected pods.setEgress
(int index, V1beta1Extensions.NetworkPolicyEgressRule value) List of egress rules to be applied to the selected pods.setEgress
(int index, V1beta1Extensions.NetworkPolicyEgressRule.Builder builderForValue) List of egress rules to be applied to the selected pods.setIngress
(int index, V1beta1Extensions.NetworkPolicyIngressRule value) List of ingress rules to be applied to the selected pods.setIngress
(int index, V1beta1Extensions.NetworkPolicyIngressRule.Builder builderForValue) List of ingress rules to be applied to the selected pods.setPodSelector
(Meta.LabelSelector value) Selects the pods to which this NetworkPolicy object applies.setPodSelector
(Meta.LabelSelector.Builder builderForValue) Selects the pods to which this NetworkPolicy object applies.setPolicyTypes
(int index, String value) List of rule types that the NetworkPolicy relates to.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.NetworkPolicySpec.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.NetworkPolicySpec.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.NetworkPolicySpec.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.NetworkPolicySpec.Builder>
-
setField
public V1beta1Extensions.NetworkPolicySpec.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.NetworkPolicySpec.Builder>
-
clearField
public V1beta1Extensions.NetworkPolicySpec.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.NetworkPolicySpec.Builder>
-
clearOneof
public V1beta1Extensions.NetworkPolicySpec.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.NetworkPolicySpec.Builder>
-
setRepeatedField
public V1beta1Extensions.NetworkPolicySpec.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.NetworkPolicySpec.Builder>
-
addRepeatedField
public V1beta1Extensions.NetworkPolicySpec.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.NetworkPolicySpec.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1beta1Extensions.NetworkPolicySpec.Builder>
-
mergeFrom
public V1beta1Extensions.NetworkPolicySpec.Builder mergeFrom(V1beta1Extensions.NetworkPolicySpec other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicySpec.Builder>
-
mergeFrom
public V1beta1Extensions.NetworkPolicySpec.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.NetworkPolicySpec.Builder>
- Throws:
IOException
-
hasPodSelector
public boolean hasPodSelector()Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
- Specified by:
hasPodSelector
in interfaceV1beta1Extensions.NetworkPolicySpecOrBuilder
-
getPodSelector
Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
- Specified by:
getPodSelector
in interfaceV1beta1Extensions.NetworkPolicySpecOrBuilder
-
setPodSelector
Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
-
setPodSelector
public V1beta1Extensions.NetworkPolicySpec.Builder setPodSelector(Meta.LabelSelector.Builder builderForValue) Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
-
mergePodSelector
Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
-
clearPodSelector
Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
-
getPodSelectorBuilder
Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
-
getPodSelectorOrBuilder
Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
- Specified by:
getPodSelectorOrBuilder
in interfaceV1beta1Extensions.NetworkPolicySpecOrBuilder
-
getIngressList
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;
- Specified by:
getIngressList
in interfaceV1beta1Extensions.NetworkPolicySpecOrBuilder
-
getIngressCount
public int getIngressCount()List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;
- Specified by:
getIngressCount
in interfaceV1beta1Extensions.NetworkPolicySpecOrBuilder
-
getIngress
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;
- Specified by:
getIngress
in interfaceV1beta1Extensions.NetworkPolicySpecOrBuilder
-
setIngress
public V1beta1Extensions.NetworkPolicySpec.Builder setIngress(int index, V1beta1Extensions.NetworkPolicyIngressRule value) List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;
-
setIngress
public V1beta1Extensions.NetworkPolicySpec.Builder setIngress(int index, V1beta1Extensions.NetworkPolicyIngressRule.Builder builderForValue) List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;
-
addIngress
public V1beta1Extensions.NetworkPolicySpec.Builder addIngress(V1beta1Extensions.NetworkPolicyIngressRule value) List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;
-
addIngress
public V1beta1Extensions.NetworkPolicySpec.Builder addIngress(int index, V1beta1Extensions.NetworkPolicyIngressRule value) List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;
-
addIngress
public V1beta1Extensions.NetworkPolicySpec.Builder addIngress(V1beta1Extensions.NetworkPolicyIngressRule.Builder builderForValue) List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;
-
addIngress
public V1beta1Extensions.NetworkPolicySpec.Builder addIngress(int index, V1beta1Extensions.NetworkPolicyIngressRule.Builder builderForValue) List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;
-
addAllIngress
public V1beta1Extensions.NetworkPolicySpec.Builder addAllIngress(Iterable<? extends V1beta1Extensions.NetworkPolicyIngressRule> values) List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;
-
clearIngress
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;
-
removeIngress
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;
-
getIngressBuilder
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;
-
getIngressOrBuilder
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;
- Specified by:
getIngressOrBuilder
in interfaceV1beta1Extensions.NetworkPolicySpecOrBuilder
-
getIngressOrBuilderList
public List<? extends V1beta1Extensions.NetworkPolicyIngressRuleOrBuilder> getIngressOrBuilderList()List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;
- Specified by:
getIngressOrBuilderList
in interfaceV1beta1Extensions.NetworkPolicySpecOrBuilder
-
addIngressBuilder
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;
-
addIngressBuilder
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;
-
getIngressBuilderList
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;
-
getEgressList
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;
- Specified by:
getEgressList
in interfaceV1beta1Extensions.NetworkPolicySpecOrBuilder
-
getEgressCount
public int getEgressCount()List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;
- Specified by:
getEgressCount
in interfaceV1beta1Extensions.NetworkPolicySpecOrBuilder
-
getEgress
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;
- Specified by:
getEgress
in interfaceV1beta1Extensions.NetworkPolicySpecOrBuilder
-
setEgress
public V1beta1Extensions.NetworkPolicySpec.Builder setEgress(int index, V1beta1Extensions.NetworkPolicyEgressRule value) List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;
-
setEgress
public V1beta1Extensions.NetworkPolicySpec.Builder setEgress(int index, V1beta1Extensions.NetworkPolicyEgressRule.Builder builderForValue) List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;
-
addEgress
public V1beta1Extensions.NetworkPolicySpec.Builder addEgress(V1beta1Extensions.NetworkPolicyEgressRule value) List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;
-
addEgress
public V1beta1Extensions.NetworkPolicySpec.Builder addEgress(int index, V1beta1Extensions.NetworkPolicyEgressRule value) List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;
-
addEgress
public V1beta1Extensions.NetworkPolicySpec.Builder addEgress(V1beta1Extensions.NetworkPolicyEgressRule.Builder builderForValue) List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;
-
addEgress
public V1beta1Extensions.NetworkPolicySpec.Builder addEgress(int index, V1beta1Extensions.NetworkPolicyEgressRule.Builder builderForValue) List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;
-
addAllEgress
public V1beta1Extensions.NetworkPolicySpec.Builder addAllEgress(Iterable<? extends V1beta1Extensions.NetworkPolicyEgressRule> values) List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;
-
clearEgress
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;
-
removeEgress
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;
-
getEgressBuilder
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;
-
getEgressOrBuilder
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;
- Specified by:
getEgressOrBuilder
in interfaceV1beta1Extensions.NetworkPolicySpecOrBuilder
-
getEgressOrBuilderList
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;
- Specified by:
getEgressOrBuilderList
in interfaceV1beta1Extensions.NetworkPolicySpecOrBuilder
-
addEgressBuilder
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;
-
addEgressBuilder
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;
-
getEgressBuilderList
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;
-
getPolicyTypesList
public com.google.protobuf.ProtocolStringList getPolicyTypesList()List of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 +optional
repeated string policyTypes = 4;
- Specified by:
getPolicyTypesList
in interfaceV1beta1Extensions.NetworkPolicySpecOrBuilder
-
getPolicyTypesCount
public int getPolicyTypesCount()List of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 +optional
repeated string policyTypes = 4;
- Specified by:
getPolicyTypesCount
in interfaceV1beta1Extensions.NetworkPolicySpecOrBuilder
-
getPolicyTypes
List of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 +optional
repeated string policyTypes = 4;
- Specified by:
getPolicyTypes
in interfaceV1beta1Extensions.NetworkPolicySpecOrBuilder
-
getPolicyTypesBytes
public com.google.protobuf.ByteString getPolicyTypesBytes(int index) List of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 +optional
repeated string policyTypes = 4;
- Specified by:
getPolicyTypesBytes
in interfaceV1beta1Extensions.NetworkPolicySpecOrBuilder
-
setPolicyTypes
List of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 +optional
repeated string policyTypes = 4;
-
addPolicyTypes
List of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 +optional
repeated string policyTypes = 4;
-
addAllPolicyTypes
List of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 +optional
repeated string policyTypes = 4;
-
clearPolicyTypes
List of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 +optional
repeated string policyTypes = 4;
-
addPolicyTypesBytes
public V1beta1Extensions.NetworkPolicySpec.Builder addPolicyTypesBytes(com.google.protobuf.ByteString value) List of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 +optional
repeated string policyTypes = 4;
-
setUnknownFields
public final V1beta1Extensions.NetworkPolicySpec.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.NetworkPolicySpec.Builder>
-
mergeUnknownFields
public final V1beta1Extensions.NetworkPolicySpec.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.NetworkPolicySpec.Builder>
-