Package io.kubernetes.client.proto
Class V1Networking.NetworkPolicySpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicySpec.Builder>
io.kubernetes.client.proto.V1Networking.NetworkPolicySpec.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1Networking.NetworkPolicySpecOrBuilder,Cloneable
- Enclosing class:
- V1Networking.NetworkPolicySpec
public static final class V1Networking.NetworkPolicySpec.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicySpec.Builder>
implements V1Networking.NetworkPolicySpecOrBuilder
NetworkPolicySpec provides the specification of a NetworkPolicyProtobuf type
k8s.io.api.networking.v1.NetworkPolicySpec-
Method Summary
Modifier and TypeMethodDescriptionaddAllEgress(Iterable<? extends V1Networking.NetworkPolicyEgressRule> values) List of egress rules to be applied to the selected pods.addAllIngress(Iterable<? extends V1Networking.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, V1Networking.NetworkPolicyEgressRule value) List of egress rules to be applied to the selected pods.addEgress(int index, V1Networking.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(V1Networking.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, V1Networking.NetworkPolicyIngressRule value) List of ingress rules to be applied to the selected pods.addIngress(int index, V1Networking.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(V1Networking.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.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEgress(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.intList 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.intList 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.ByteStringgetPolicyTypesBytes(int index) List of rule types that the NetworkPolicy relates to.intList of rule types that the NetworkPolicy relates to.com.google.protobuf.ProtocolStringListList of rule types that the NetworkPolicy relates to.booleanSelects the pods to which this NetworkPolicy object applies.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(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, V1Networking.NetworkPolicyEgressRule value) List of egress rules to be applied to the selected pods.setEgress(int index, V1Networking.NetworkPolicyEgressRule.Builder builderForValue) List of egress rules to be applied to the selected pods.setIngress(int index, V1Networking.NetworkPolicyIngressRule value) List of ingress rules to be applied to the selected pods.setIngress(int index, V1Networking.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.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<V1Networking.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<V1Networking.NetworkPolicySpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<V1Networking.NetworkPolicySpec.Builder>
-
setField
public V1Networking.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<V1Networking.NetworkPolicySpec.Builder>
-
clearField
public V1Networking.NetworkPolicySpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicySpec.Builder>
-
clearOneof
public V1Networking.NetworkPolicySpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicySpec.Builder>
-
setRepeatedField
public V1Networking.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<V1Networking.NetworkPolicySpec.Builder>
-
addRepeatedField
public V1Networking.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<V1Networking.NetworkPolicySpec.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1Networking.NetworkPolicySpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicySpec.Builder>
-
mergeFrom
public V1Networking.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<V1Networking.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:
hasPodSelectorin interfaceV1Networking.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:
getPodSelectorin interfaceV1Networking.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 V1Networking.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:
getPodSelectorOrBuilderin interfaceV1Networking.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 (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
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;- Specified by:
getIngressListin interfaceV1Networking.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 (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
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;- Specified by:
getIngressCountin interfaceV1Networking.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 (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
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;- Specified by:
getIngressin interfaceV1Networking.NetworkPolicySpecOrBuilder
-
setIngress
public V1Networking.NetworkPolicySpec.Builder setIngress(int index, V1Networking.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 (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
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; -
setIngress
public V1Networking.NetworkPolicySpec.Builder setIngress(int index, V1Networking.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 (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
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; -
addIngress
public V1Networking.NetworkPolicySpec.Builder addIngress(V1Networking.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 (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
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; -
addIngress
public V1Networking.NetworkPolicySpec.Builder addIngress(int index, V1Networking.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 (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
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; -
addIngress
public V1Networking.NetworkPolicySpec.Builder addIngress(V1Networking.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 (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
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; -
addIngress
public V1Networking.NetworkPolicySpec.Builder addIngress(int index, V1Networking.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 (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
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; -
addAllIngress
public V1Networking.NetworkPolicySpec.Builder addAllIngress(Iterable<? extends V1Networking.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 (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
repeated .k8s.io.api.networking.v1.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 (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
repeated .k8s.io.api.networking.v1.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 (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
repeated .k8s.io.api.networking.v1.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 (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
repeated .k8s.io.api.networking.v1.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 (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
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;- Specified by:
getIngressOrBuilderin interfaceV1Networking.NetworkPolicySpecOrBuilder
-
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 (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
repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2;- Specified by:
getIngressOrBuilderListin interfaceV1Networking.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 (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
repeated .k8s.io.api.networking.v1.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 (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
repeated .k8s.io.api.networking.v1.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 (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
repeated .k8s.io.api.networking.v1.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.networking.v1.NetworkPolicyEgressRule egress = 3;- Specified by:
getEgressListin interfaceV1Networking.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.networking.v1.NetworkPolicyEgressRule egress = 3;- Specified by:
getEgressCountin interfaceV1Networking.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.networking.v1.NetworkPolicyEgressRule egress = 3;- Specified by:
getEgressin interfaceV1Networking.NetworkPolicySpecOrBuilder
-
setEgress
public V1Networking.NetworkPolicySpec.Builder setEgress(int index, V1Networking.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.networking.v1.NetworkPolicyEgressRule egress = 3; -
setEgress
public V1Networking.NetworkPolicySpec.Builder setEgress(int index, V1Networking.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.networking.v1.NetworkPolicyEgressRule egress = 3; -
addEgress
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.networking.v1.NetworkPolicyEgressRule egress = 3; -
addEgress
public V1Networking.NetworkPolicySpec.Builder addEgress(int index, V1Networking.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.networking.v1.NetworkPolicyEgressRule egress = 3; -
addEgress
public V1Networking.NetworkPolicySpec.Builder addEgress(V1Networking.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.networking.v1.NetworkPolicyEgressRule egress = 3; -
addEgress
public V1Networking.NetworkPolicySpec.Builder addEgress(int index, V1Networking.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.networking.v1.NetworkPolicyEgressRule egress = 3; -
addAllEgress
public V1Networking.NetworkPolicySpec.Builder addAllEgress(Iterable<? extends V1Networking.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.networking.v1.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.networking.v1.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.networking.v1.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.networking.v1.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.networking.v1.NetworkPolicyEgressRule egress = 3;- Specified by:
getEgressOrBuilderin interfaceV1Networking.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.networking.v1.NetworkPolicyEgressRule egress = 3;- Specified by:
getEgressOrBuilderListin interfaceV1Networking.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.networking.v1.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.networking.v1.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.networking.v1.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:
getPolicyTypesListin interfaceV1Networking.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:
getPolicyTypesCountin interfaceV1Networking.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:
getPolicyTypesin interfaceV1Networking.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:
getPolicyTypesBytesin interfaceV1Networking.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 V1Networking.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 V1Networking.NetworkPolicySpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicySpec.Builder>
-
mergeUnknownFields
public final V1Networking.NetworkPolicySpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Networking.NetworkPolicySpec.Builder>
-