public static final class V1Networking.NetworkPolicySpec extends com.google.protobuf.GeneratedMessageV3 implements V1Networking.NetworkPolicySpecOrBuilder
NetworkPolicySpec provides the specification of a NetworkPolicyProtobuf type
k8s.io.api.networking.v1.NetworkPolicySpec| Modifier and Type | Class and Description |
|---|---|
static class |
V1Networking.NetworkPolicySpec.Builder
NetworkPolicySpec provides the specification of a NetworkPolicy
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
EGRESS_FIELD_NUMBER |
static int |
INGRESS_FIELD_NUMBER |
static com.google.protobuf.Parser<V1Networking.NetworkPolicySpec> |
PARSER
Deprecated.
|
static int |
PODSELECTOR_FIELD_NUMBER |
static int |
POLICYTYPES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static V1Networking.NetworkPolicySpec |
getDefaultInstance() |
V1Networking.NetworkPolicySpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
V1Networking.NetworkPolicyEgressRule |
getEgress(int index)
List of egress rules to be applied to the selected pods.
|
int |
getEgressCount()
List of egress rules to be applied to the selected pods.
|
List<V1Networking.NetworkPolicyEgressRule> |
getEgressList()
List of egress rules to be applied to the selected pods.
|
V1Networking.NetworkPolicyEgressRuleOrBuilder |
getEgressOrBuilder(int index)
List of egress rules to be applied to the selected pods.
|
List<? extends V1Networking.NetworkPolicyEgressRuleOrBuilder> |
getEgressOrBuilderList()
List of egress rules to be applied to the selected pods.
|
V1Networking.NetworkPolicyIngressRule |
getIngress(int index)
List of ingress rules to be applied to the selected pods.
|
int |
getIngressCount()
List of ingress rules to be applied to the selected pods.
|
List<V1Networking.NetworkPolicyIngressRule> |
getIngressList()
List of ingress rules to be applied to the selected pods.
|
V1Networking.NetworkPolicyIngressRuleOrBuilder |
getIngressOrBuilder(int index)
List of ingress rules to be applied to the selected pods.
|
List<? extends V1Networking.NetworkPolicyIngressRuleOrBuilder> |
getIngressOrBuilderList()
List of ingress rules to be applied to the selected pods.
|
com.google.protobuf.Parser<V1Networking.NetworkPolicySpec> |
getParserForType() |
Meta.LabelSelector |
getPodSelector()
Selects the pods to which this NetworkPolicy object applies.
|
Meta.LabelSelectorOrBuilder |
getPodSelectorOrBuilder()
Selects the pods to which this NetworkPolicy object applies.
|
String |
getPolicyTypes(int index)
List of rule types that the NetworkPolicy relates to.
|
com.google.protobuf.ByteString |
getPolicyTypesBytes(int index)
List of rule types that the NetworkPolicy relates to.
|
int |
getPolicyTypesCount()
List of rule types that the NetworkPolicy relates to.
|
com.google.protobuf.ProtocolStringList |
getPolicyTypesList()
List of rule types that the NetworkPolicy relates to.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasPodSelector()
Selects the pods to which this NetworkPolicy object applies.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static V1Networking.NetworkPolicySpec.Builder |
newBuilder() |
static V1Networking.NetworkPolicySpec.Builder |
newBuilder(V1Networking.NetworkPolicySpec prototype) |
V1Networking.NetworkPolicySpec.Builder |
newBuilderForType() |
protected V1Networking.NetworkPolicySpec.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static V1Networking.NetworkPolicySpec |
parseDelimitedFrom(InputStream input) |
static V1Networking.NetworkPolicySpec |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1Networking.NetworkPolicySpec |
parseFrom(byte[] data) |
static V1Networking.NetworkPolicySpec |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1Networking.NetworkPolicySpec |
parseFrom(ByteBuffer data) |
static V1Networking.NetworkPolicySpec |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1Networking.NetworkPolicySpec |
parseFrom(com.google.protobuf.ByteString data) |
static V1Networking.NetworkPolicySpec |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1Networking.NetworkPolicySpec |
parseFrom(com.google.protobuf.CodedInputStream input) |
static V1Networking.NetworkPolicySpec |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1Networking.NetworkPolicySpec |
parseFrom(InputStream input) |
static V1Networking.NetworkPolicySpec |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<V1Networking.NetworkPolicySpec> |
parser() |
V1Networking.NetworkPolicySpec.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int PODSELECTOR_FIELD_NUMBER
public static final int INGRESS_FIELD_NUMBER
public static final int EGRESS_FIELD_NUMBER
public static final int POLICYTYPES_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<V1Networking.NetworkPolicySpec> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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;
hasPodSelector in interface V1Networking.NetworkPolicySpecOrBuilderpublic Meta.LabelSelector 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;
getPodSelector in interface V1Networking.NetworkPolicySpecOrBuilderpublic Meta.LabelSelectorOrBuilder 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;
getPodSelectorOrBuilder in interface V1Networking.NetworkPolicySpecOrBuilderpublic List<V1Networking.NetworkPolicyIngressRule> 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;getIngressList in interface V1Networking.NetworkPolicySpecOrBuilderpublic List<? extends V1Networking.NetworkPolicyIngressRuleOrBuilder> getIngressOrBuilderList()
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (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;getIngressOrBuilderList in interface V1Networking.NetworkPolicySpecOrBuilderpublic 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;getIngressCount in interface V1Networking.NetworkPolicySpecOrBuilderpublic V1Networking.NetworkPolicyIngressRule getIngress(int index)
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;getIngress in interface V1Networking.NetworkPolicySpecOrBuilderpublic V1Networking.NetworkPolicyIngressRuleOrBuilder getIngressOrBuilder(int index)
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 in interface V1Networking.NetworkPolicySpecOrBuilderpublic List<V1Networking.NetworkPolicyEgressRule> 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;getEgressList in interface V1Networking.NetworkPolicySpecOrBuilderpublic List<? extends V1Networking.NetworkPolicyEgressRuleOrBuilder> 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;getEgressOrBuilderList in interface V1Networking.NetworkPolicySpecOrBuilderpublic 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;getEgressCount in interface V1Networking.NetworkPolicySpecOrBuilderpublic V1Networking.NetworkPolicyEgressRule getEgress(int index)
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;getEgress in interface V1Networking.NetworkPolicySpecOrBuilderpublic V1Networking.NetworkPolicyEgressRuleOrBuilder getEgressOrBuilder(int index)
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 in interface V1Networking.NetworkPolicySpecOrBuilderpublic 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;getPolicyTypesList in interface V1Networking.NetworkPolicySpecOrBuilderpublic 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;getPolicyTypesCount in interface V1Networking.NetworkPolicySpecOrBuilderpublic String getPolicyTypes(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;getPolicyTypes in interface V1Networking.NetworkPolicySpecOrBuilderpublic 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;getPolicyTypesBytes in interface V1Networking.NetworkPolicySpecOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static V1Networking.NetworkPolicySpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1Networking.NetworkPolicySpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1Networking.NetworkPolicySpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1Networking.NetworkPolicySpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1Networking.NetworkPolicySpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1Networking.NetworkPolicySpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1Networking.NetworkPolicySpec parseFrom(InputStream input) throws IOException
IOExceptionpublic static V1Networking.NetworkPolicySpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static V1Networking.NetworkPolicySpec parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static V1Networking.NetworkPolicySpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static V1Networking.NetworkPolicySpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static V1Networking.NetworkPolicySpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic V1Networking.NetworkPolicySpec.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static V1Networking.NetworkPolicySpec.Builder newBuilder()
public static V1Networking.NetworkPolicySpec.Builder newBuilder(V1Networking.NetworkPolicySpec prototype)
public V1Networking.NetworkPolicySpec.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected V1Networking.NetworkPolicySpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static V1Networking.NetworkPolicySpec getDefaultInstance()
public static com.google.protobuf.Parser<V1Networking.NetworkPolicySpec> parser()
public com.google.protobuf.Parser<V1Networking.NetworkPolicySpec> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public V1Networking.NetworkPolicySpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2020. All rights reserved.