Package k8s.io.api.networking.v1
Class Generated.NetworkPolicySpec.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicySpec.Builder>
-
- k8s.io.api.networking.v1.Generated.NetworkPolicySpec.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.NetworkPolicySpecOrBuilder
- Enclosing class:
- Generated.NetworkPolicySpec
public static final class Generated.NetworkPolicySpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicySpec.Builder> implements Generated.NetworkPolicySpecOrBuilder
NetworkPolicySpec provides the specification of a NetworkPolicy
Protobuf typek8s.io.api.networking.v1.NetworkPolicySpec
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.NetworkPolicySpec.BuilderaddAllEgress(Iterable<? extends Generated.NetworkPolicyEgressRule> values)egress is a list of egress rules to be applied to the selected pods.Generated.NetworkPolicySpec.BuilderaddAllIngress(Iterable<? extends Generated.NetworkPolicyIngressRule> values)ingress is a list of ingress rules to be applied to the selected pods.Generated.NetworkPolicySpec.BuilderaddAllPolicyTypes(Iterable<String> values)policyTypes is a list of rule types that the NetworkPolicy relates to.Generated.NetworkPolicySpec.BuilderaddEgress(int index, Generated.NetworkPolicyEgressRule value)egress is a list of egress rules to be applied to the selected pods.Generated.NetworkPolicySpec.BuilderaddEgress(int index, Generated.NetworkPolicyEgressRule.Builder builderForValue)egress is a list of egress rules to be applied to the selected pods.Generated.NetworkPolicySpec.BuilderaddEgress(Generated.NetworkPolicyEgressRule value)egress is a list of egress rules to be applied to the selected pods.Generated.NetworkPolicySpec.BuilderaddEgress(Generated.NetworkPolicyEgressRule.Builder builderForValue)egress is a list of egress rules to be applied to the selected pods.Generated.NetworkPolicyEgressRule.BuilderaddEgressBuilder()egress is a list of egress rules to be applied to the selected pods.Generated.NetworkPolicyEgressRule.BuilderaddEgressBuilder(int index)egress is a list of egress rules to be applied to the selected pods.Generated.NetworkPolicySpec.BuilderaddIngress(int index, Generated.NetworkPolicyIngressRule value)ingress is a list of ingress rules to be applied to the selected pods.Generated.NetworkPolicySpec.BuilderaddIngress(int index, Generated.NetworkPolicyIngressRule.Builder builderForValue)ingress is a list of ingress rules to be applied to the selected pods.Generated.NetworkPolicySpec.BuilderaddIngress(Generated.NetworkPolicyIngressRule value)ingress is a list of ingress rules to be applied to the selected pods.Generated.NetworkPolicySpec.BuilderaddIngress(Generated.NetworkPolicyIngressRule.Builder builderForValue)ingress is a list of ingress rules to be applied to the selected pods.Generated.NetworkPolicyIngressRule.BuilderaddIngressBuilder()ingress is a list of ingress rules to be applied to the selected pods.Generated.NetworkPolicyIngressRule.BuilderaddIngressBuilder(int index)ingress is a list of ingress rules to be applied to the selected pods.Generated.NetworkPolicySpec.BuilderaddPolicyTypes(String value)policyTypes is a list of rule types that the NetworkPolicy relates to.Generated.NetworkPolicySpec.BuilderaddPolicyTypesBytes(com.google.protobuf.ByteString value)policyTypes is a list of rule types that the NetworkPolicy relates to.Generated.NetworkPolicySpec.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.NetworkPolicySpecbuild()Generated.NetworkPolicySpecbuildPartial()Generated.NetworkPolicySpec.Builderclear()Generated.NetworkPolicySpec.BuilderclearEgress()egress is a list of egress rules to be applied to the selected pods.Generated.NetworkPolicySpec.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.NetworkPolicySpec.BuilderclearIngress()ingress is a list of ingress rules to be applied to the selected pods.Generated.NetworkPolicySpec.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.NetworkPolicySpec.BuilderclearPodSelector()podSelector selects the pods to which this NetworkPolicy object applies.Generated.NetworkPolicySpec.BuilderclearPolicyTypes()policyTypes is a list of rule types that the NetworkPolicy relates to.Generated.NetworkPolicySpec.Builderclone()Generated.NetworkPolicySpecgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Generated.NetworkPolicyEgressRulegetEgress(int index)egress is a list of egress rules to be applied to the selected pods.Generated.NetworkPolicyEgressRule.BuildergetEgressBuilder(int index)egress is a list of egress rules to be applied to the selected pods.List<Generated.NetworkPolicyEgressRule.Builder>getEgressBuilderList()egress is a list of egress rules to be applied to the selected pods.intgetEgressCount()egress is a list of egress rules to be applied to the selected pods.List<Generated.NetworkPolicyEgressRule>getEgressList()egress is a list of egress rules to be applied to the selected pods.Generated.NetworkPolicyEgressRuleOrBuildergetEgressOrBuilder(int index)egress is a list of egress rules to be applied to the selected pods.List<? extends Generated.NetworkPolicyEgressRuleOrBuilder>getEgressOrBuilderList()egress is a list of egress rules to be applied to the selected pods.Generated.NetworkPolicyIngressRulegetIngress(int index)ingress is a list of ingress rules to be applied to the selected pods.Generated.NetworkPolicyIngressRule.BuildergetIngressBuilder(int index)ingress is a list of ingress rules to be applied to the selected pods.List<Generated.NetworkPolicyIngressRule.Builder>getIngressBuilderList()ingress is a list of ingress rules to be applied to the selected pods.intgetIngressCount()ingress is a list of ingress rules to be applied to the selected pods.List<Generated.NetworkPolicyIngressRule>getIngressList()ingress is a list of ingress rules to be applied to the selected pods.Generated.NetworkPolicyIngressRuleOrBuildergetIngressOrBuilder(int index)ingress is a list of ingress rules to be applied to the selected pods.List<? extends Generated.NetworkPolicyIngressRuleOrBuilder>getIngressOrBuilderList()ingress is a list of ingress rules to be applied to the selected pods.Generated.LabelSelectorgetPodSelector()podSelector selects the pods to which this NetworkPolicy object applies.Generated.LabelSelector.BuildergetPodSelectorBuilder()podSelector selects the pods to which this NetworkPolicy object applies.Generated.LabelSelectorOrBuildergetPodSelectorOrBuilder()podSelector selects the pods to which this NetworkPolicy object applies.StringgetPolicyTypes(int index)policyTypes is a list of rule types that the NetworkPolicy relates to.com.google.protobuf.ByteStringgetPolicyTypesBytes(int index)policyTypes is a list of rule types that the NetworkPolicy relates to.intgetPolicyTypesCount()policyTypes is a list of rule types that the NetworkPolicy relates to.com.google.protobuf.ProtocolStringListgetPolicyTypesList()policyTypes is a list of rule types that the NetworkPolicy relates to.booleanhasPodSelector()podSelector selects the pods to which this NetworkPolicy object applies.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.NetworkPolicySpec.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.NetworkPolicySpec.BuildermergeFrom(com.google.protobuf.Message other)Generated.NetworkPolicySpec.BuildermergeFrom(Generated.NetworkPolicySpec other)Generated.NetworkPolicySpec.BuildermergePodSelector(Generated.LabelSelector value)podSelector selects the pods to which this NetworkPolicy object applies.Generated.NetworkPolicySpec.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.NetworkPolicySpec.BuilderremoveEgress(int index)egress is a list of egress rules to be applied to the selected pods.Generated.NetworkPolicySpec.BuilderremoveIngress(int index)ingress is a list of ingress rules to be applied to the selected pods.Generated.NetworkPolicySpec.BuildersetEgress(int index, Generated.NetworkPolicyEgressRule value)egress is a list of egress rules to be applied to the selected pods.Generated.NetworkPolicySpec.BuildersetEgress(int index, Generated.NetworkPolicyEgressRule.Builder builderForValue)egress is a list of egress rules to be applied to the selected pods.Generated.NetworkPolicySpec.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.NetworkPolicySpec.BuildersetIngress(int index, Generated.NetworkPolicyIngressRule value)ingress is a list of ingress rules to be applied to the selected pods.Generated.NetworkPolicySpec.BuildersetIngress(int index, Generated.NetworkPolicyIngressRule.Builder builderForValue)ingress is a list of ingress rules to be applied to the selected pods.Generated.NetworkPolicySpec.BuildersetPodSelector(Generated.LabelSelector value)podSelector selects the pods to which this NetworkPolicy object applies.Generated.NetworkPolicySpec.BuildersetPodSelector(Generated.LabelSelector.Builder builderForValue)podSelector selects the pods to which this NetworkPolicy object applies.Generated.NetworkPolicySpec.BuildersetPolicyTypes(int index, String value)policyTypes is a list of rule types that the NetworkPolicy relates to.Generated.NetworkPolicySpec.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.NetworkPolicySpec.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicySpec.Builder>
-
clear
public Generated.NetworkPolicySpec.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicySpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicySpec.Builder>
-
getDefaultInstanceForType
public Generated.NetworkPolicySpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.NetworkPolicySpec build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.NetworkPolicySpec buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.NetworkPolicySpec.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicySpec.Builder>
-
setField
public Generated.NetworkPolicySpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicySpec.Builder>
-
clearField
public Generated.NetworkPolicySpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicySpec.Builder>
-
clearOneof
public Generated.NetworkPolicySpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicySpec.Builder>
-
setRepeatedField
public Generated.NetworkPolicySpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicySpec.Builder>
-
addRepeatedField
public Generated.NetworkPolicySpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicySpec.Builder>
-
mergeFrom
public Generated.NetworkPolicySpec.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.NetworkPolicySpec.Builder>
-
mergeFrom
public Generated.NetworkPolicySpec.Builder mergeFrom(Generated.NetworkPolicySpec other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicySpec.Builder>
-
mergeFrom
public Generated.NetworkPolicySpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.NetworkPolicySpec.Builder>- Throws:
IOException
-
hasPodSelector
public boolean hasPodSelector()
podSelector 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:
hasPodSelectorin interfaceGenerated.NetworkPolicySpecOrBuilder- Returns:
- Whether the podSelector field is set.
-
getPodSelector
public Generated.LabelSelector getPodSelector()
podSelector 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:
getPodSelectorin interfaceGenerated.NetworkPolicySpecOrBuilder- Returns:
- The podSelector.
-
setPodSelector
public Generated.NetworkPolicySpec.Builder setPodSelector(Generated.LabelSelector value)
podSelector 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 Generated.NetworkPolicySpec.Builder setPodSelector(Generated.LabelSelector.Builder builderForValue)
podSelector 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
public Generated.NetworkPolicySpec.Builder mergePodSelector(Generated.LabelSelector value)
podSelector 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
public Generated.NetworkPolicySpec.Builder clearPodSelector()
podSelector 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
public Generated.LabelSelector.Builder getPodSelectorBuilder()
podSelector 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
public Generated.LabelSelectorOrBuilder getPodSelectorOrBuilder()
podSelector 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:
getPodSelectorOrBuilderin interfaceGenerated.NetworkPolicySpecOrBuilder
-
getIngressList
public List<Generated.NetworkPolicyIngressRule> getIngressList()
ingress is a 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 (and cluster policy otherwise allows the traffic), 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;- Specified by:
getIngressListin interfaceGenerated.NetworkPolicySpecOrBuilder
-
getIngressCount
public int getIngressCount()
ingress is a 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 (and cluster policy otherwise allows the traffic), 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;- Specified by:
getIngressCountin interfaceGenerated.NetworkPolicySpecOrBuilder
-
getIngress
public Generated.NetworkPolicyIngressRule getIngress(int index)
ingress is a 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 (and cluster policy otherwise allows the traffic), 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;- Specified by:
getIngressin interfaceGenerated.NetworkPolicySpecOrBuilder
-
setIngress
public Generated.NetworkPolicySpec.Builder setIngress(int index, Generated.NetworkPolicyIngressRule value)
ingress is a 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 (and cluster policy otherwise allows the traffic), 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
-
setIngress
public Generated.NetworkPolicySpec.Builder setIngress(int index, Generated.NetworkPolicyIngressRule.Builder builderForValue)
ingress is a 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 (and cluster policy otherwise allows the traffic), 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
-
addIngress
public Generated.NetworkPolicySpec.Builder addIngress(Generated.NetworkPolicyIngressRule value)
ingress is a 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 (and cluster policy otherwise allows the traffic), 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
-
addIngress
public Generated.NetworkPolicySpec.Builder addIngress(int index, Generated.NetworkPolicyIngressRule value)
ingress is a 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 (and cluster policy otherwise allows the traffic), 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
-
addIngress
public Generated.NetworkPolicySpec.Builder addIngress(Generated.NetworkPolicyIngressRule.Builder builderForValue)
ingress is a 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 (and cluster policy otherwise allows the traffic), 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
-
addIngress
public Generated.NetworkPolicySpec.Builder addIngress(int index, Generated.NetworkPolicyIngressRule.Builder builderForValue)
ingress is a 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 (and cluster policy otherwise allows the traffic), 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
-
addAllIngress
public Generated.NetworkPolicySpec.Builder addAllIngress(Iterable<? extends Generated.NetworkPolicyIngressRule> values)
ingress is a 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 (and cluster policy otherwise allows the traffic), 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
-
clearIngress
public Generated.NetworkPolicySpec.Builder clearIngress()
ingress is a 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 (and cluster policy otherwise allows the traffic), 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
-
removeIngress
public Generated.NetworkPolicySpec.Builder removeIngress(int index)
ingress is a 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 (and cluster policy otherwise allows the traffic), 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
-
getIngressBuilder
public Generated.NetworkPolicyIngressRule.Builder getIngressBuilder(int index)
ingress is a 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 (and cluster policy otherwise allows the traffic), 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
-
getIngressOrBuilder
public Generated.NetworkPolicyIngressRuleOrBuilder getIngressOrBuilder(int index)
ingress is a 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 (and cluster policy otherwise allows the traffic), 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;- Specified by:
getIngressOrBuilderin interfaceGenerated.NetworkPolicySpecOrBuilder
-
getIngressOrBuilderList
public List<? extends Generated.NetworkPolicyIngressRuleOrBuilder> getIngressOrBuilderList()
ingress is a 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 (and cluster policy otherwise allows the traffic), 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;- Specified by:
getIngressOrBuilderListin interfaceGenerated.NetworkPolicySpecOrBuilder
-
addIngressBuilder
public Generated.NetworkPolicyIngressRule.Builder addIngressBuilder()
ingress is a 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 (and cluster policy otherwise allows the traffic), 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
-
addIngressBuilder
public Generated.NetworkPolicyIngressRule.Builder addIngressBuilder(int index)
ingress is a 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 (and cluster policy otherwise allows the traffic), 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
-
getIngressBuilderList
public List<Generated.NetworkPolicyIngressRule.Builder> getIngressBuilderList()
ingress is a 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 (and cluster policy otherwise allows the traffic), 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;
-
getEgressList
public List<Generated.NetworkPolicyEgressRule> getEgressList()
egress is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;- Specified by:
getEgressListin interfaceGenerated.NetworkPolicySpecOrBuilder
-
getEgressCount
public int getEgressCount()
egress is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;- Specified by:
getEgressCountin interfaceGenerated.NetworkPolicySpecOrBuilder
-
getEgress
public Generated.NetworkPolicyEgressRule getEgress(int index)
egress is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;- Specified by:
getEgressin interfaceGenerated.NetworkPolicySpecOrBuilder
-
setEgress
public Generated.NetworkPolicySpec.Builder setEgress(int index, Generated.NetworkPolicyEgressRule value)
egress is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
-
setEgress
public Generated.NetworkPolicySpec.Builder setEgress(int index, Generated.NetworkPolicyEgressRule.Builder builderForValue)
egress is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
-
addEgress
public Generated.NetworkPolicySpec.Builder addEgress(Generated.NetworkPolicyEgressRule value)
egress is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
-
addEgress
public Generated.NetworkPolicySpec.Builder addEgress(int index, Generated.NetworkPolicyEgressRule value)
egress is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
-
addEgress
public Generated.NetworkPolicySpec.Builder addEgress(Generated.NetworkPolicyEgressRule.Builder builderForValue)
egress is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
-
addEgress
public Generated.NetworkPolicySpec.Builder addEgress(int index, Generated.NetworkPolicyEgressRule.Builder builderForValue)
egress is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
-
addAllEgress
public Generated.NetworkPolicySpec.Builder addAllEgress(Iterable<? extends Generated.NetworkPolicyEgressRule> values)
egress is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
-
clearEgress
public Generated.NetworkPolicySpec.Builder clearEgress()
egress is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
-
removeEgress
public Generated.NetworkPolicySpec.Builder removeEgress(int index)
egress is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
-
getEgressBuilder
public Generated.NetworkPolicyEgressRule.Builder getEgressBuilder(int index)
egress is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
-
getEgressOrBuilder
public Generated.NetworkPolicyEgressRuleOrBuilder getEgressOrBuilder(int index)
egress is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;- Specified by:
getEgressOrBuilderin interfaceGenerated.NetworkPolicySpecOrBuilder
-
getEgressOrBuilderList
public List<? extends Generated.NetworkPolicyEgressRuleOrBuilder> getEgressOrBuilderList()
egress is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;- Specified by:
getEgressOrBuilderListin interfaceGenerated.NetworkPolicySpecOrBuilder
-
addEgressBuilder
public Generated.NetworkPolicyEgressRule.Builder addEgressBuilder()
egress is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
-
addEgressBuilder
public Generated.NetworkPolicyEgressRule.Builder addEgressBuilder(int index)
egress is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
-
getEgressBuilderList
public List<Generated.NetworkPolicyEgressRule.Builder> getEgressBuilderList()
egress is a 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 +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3;
-
getPolicyTypesList
public com.google.protobuf.ProtocolStringList getPolicyTypesList()
policyTypes is a 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 +listType=atomic
repeated string policyTypes = 4;- Specified by:
getPolicyTypesListin interfaceGenerated.NetworkPolicySpecOrBuilder- Returns:
- A list containing the policyTypes.
-
getPolicyTypesCount
public int getPolicyTypesCount()
policyTypes is a 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 +listType=atomic
repeated string policyTypes = 4;- Specified by:
getPolicyTypesCountin interfaceGenerated.NetworkPolicySpecOrBuilder- Returns:
- The count of policyTypes.
-
getPolicyTypes
public String getPolicyTypes(int index)
policyTypes is a 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 +listType=atomic
repeated string policyTypes = 4;- Specified by:
getPolicyTypesin interfaceGenerated.NetworkPolicySpecOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The policyTypes at the given index.
-
getPolicyTypesBytes
public com.google.protobuf.ByteString getPolicyTypesBytes(int index)
policyTypes is a 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 +listType=atomic
repeated string policyTypes = 4;- Specified by:
getPolicyTypesBytesin interfaceGenerated.NetworkPolicySpecOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the policyTypes at the given index.
-
setPolicyTypes
public Generated.NetworkPolicySpec.Builder setPolicyTypes(int index, String value)
policyTypes is a 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 +listType=atomic
repeated string policyTypes = 4;- Parameters:
index- The index to set the value at.value- The policyTypes to set.- Returns:
- This builder for chaining.
-
addPolicyTypes
public Generated.NetworkPolicySpec.Builder addPolicyTypes(String value)
policyTypes is a 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 +listType=atomic
repeated string policyTypes = 4;- Parameters:
value- The policyTypes to add.- Returns:
- This builder for chaining.
-
addAllPolicyTypes
public Generated.NetworkPolicySpec.Builder addAllPolicyTypes(Iterable<String> values)
policyTypes is a 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 +listType=atomic
repeated string policyTypes = 4;- Parameters:
values- The policyTypes to add.- Returns:
- This builder for chaining.
-
clearPolicyTypes
public Generated.NetworkPolicySpec.Builder clearPolicyTypes()
policyTypes is a 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 +listType=atomic
repeated string policyTypes = 4;- Returns:
- This builder for chaining.
-
addPolicyTypesBytes
public Generated.NetworkPolicySpec.Builder addPolicyTypesBytes(com.google.protobuf.ByteString value)
policyTypes is a 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 +listType=atomic
repeated string policyTypes = 4;- Parameters:
value- The bytes of the policyTypes to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.NetworkPolicySpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicySpec.Builder>
-
mergeUnknownFields
public final Generated.NetworkPolicySpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NetworkPolicySpec.Builder>
-
-