Package k8s.io.api.networking.v1
Class Generated.NetworkPolicyIngressRule
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- k8s.io.api.networking.v1.Generated.NetworkPolicyIngressRule
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,Generated.NetworkPolicyIngressRuleOrBuilder
- Enclosing class:
- Generated
public static final class Generated.NetworkPolicyIngressRule extends com.google.protobuf.GeneratedMessageV3 implements Generated.NetworkPolicyIngressRuleOrBuilder
NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.
Protobuf typek8s.io.api.networking.v1.NetworkPolicyIngressRule- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerated.NetworkPolicyIngressRule.BuilderNetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intFROM_FIELD_NUMBERstatic com.google.protobuf.Parser<Generated.NetworkPolicyIngressRule>PARSERDeprecated.static intPORTS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static Generated.NetworkPolicyIngressRulegetDefaultInstance()Generated.NetworkPolicyIngressRulegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Generated.NetworkPolicyPeergetFrom(int index)from is a list of sources which should be able to access the pods selected for this rule.intgetFromCount()from is a list of sources which should be able to access the pods selected for this rule.List<Generated.NetworkPolicyPeer>getFromList()from is a list of sources which should be able to access the pods selected for this rule.Generated.NetworkPolicyPeerOrBuildergetFromOrBuilder(int index)from is a list of sources which should be able to access the pods selected for this rule.List<? extends Generated.NetworkPolicyPeerOrBuilder>getFromOrBuilderList()from is a list of sources which should be able to access the pods selected for this rule.com.google.protobuf.Parser<Generated.NetworkPolicyIngressRule>getParserForType()Generated.NetworkPolicyPortgetPorts(int index)ports is a list of ports which should be made accessible on the pods selected for this rule.intgetPortsCount()ports is a list of ports which should be made accessible on the pods selected for this rule.List<Generated.NetworkPolicyPort>getPortsList()ports is a list of ports which should be made accessible on the pods selected for this rule.Generated.NetworkPolicyPortOrBuildergetPortsOrBuilder(int index)ports is a list of ports which should be made accessible on the pods selected for this rule.List<? extends Generated.NetworkPolicyPortOrBuilder>getPortsOrBuilderList()ports is a list of ports which should be made accessible on the pods selected for this rule.intgetSerializedSize()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Generated.NetworkPolicyIngressRule.BuildernewBuilder()static Generated.NetworkPolicyIngressRule.BuildernewBuilder(Generated.NetworkPolicyIngressRule prototype)Generated.NetworkPolicyIngressRule.BuildernewBuilderForType()protected Generated.NetworkPolicyIngressRule.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Generated.NetworkPolicyIngressRuleparseDelimitedFrom(InputStream input)static Generated.NetworkPolicyIngressRuleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.NetworkPolicyIngressRuleparseFrom(byte[] data)static Generated.NetworkPolicyIngressRuleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.NetworkPolicyIngressRuleparseFrom(com.google.protobuf.ByteString data)static Generated.NetworkPolicyIngressRuleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.NetworkPolicyIngressRuleparseFrom(com.google.protobuf.CodedInputStream input)static Generated.NetworkPolicyIngressRuleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.NetworkPolicyIngressRuleparseFrom(InputStream input)static Generated.NetworkPolicyIngressRuleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.NetworkPolicyIngressRuleparseFrom(ByteBuffer data)static Generated.NetworkPolicyIngressRuleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Generated.NetworkPolicyIngressRule>parser()Generated.NetworkPolicyIngressRule.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
PORTS_FIELD_NUMBER
public static final int PORTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FROM_FIELD_NUMBER
public static final int FROM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Generated.NetworkPolicyIngressRule> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
getPortsList
public List<Generated.NetworkPolicyPort> getPortsList()
ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;- Specified by:
getPortsListin interfaceGenerated.NetworkPolicyIngressRuleOrBuilder
-
getPortsOrBuilderList
public List<? extends Generated.NetworkPolicyPortOrBuilder> getPortsOrBuilderList()
ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;- Specified by:
getPortsOrBuilderListin interfaceGenerated.NetworkPolicyIngressRuleOrBuilder
-
getPortsCount
public int getPortsCount()
ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;- Specified by:
getPortsCountin interfaceGenerated.NetworkPolicyIngressRuleOrBuilder
-
getPorts
public Generated.NetworkPolicyPort getPorts(int index)
ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;- Specified by:
getPortsin interfaceGenerated.NetworkPolicyIngressRuleOrBuilder
-
getPortsOrBuilder
public Generated.NetworkPolicyPortOrBuilder getPortsOrBuilder(int index)
ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPort ports = 1;- Specified by:
getPortsOrBuilderin interfaceGenerated.NetworkPolicyIngressRuleOrBuilder
-
getFromList
public List<Generated.NetworkPolicyPeer> getFromList()
from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;- Specified by:
getFromListin interfaceGenerated.NetworkPolicyIngressRuleOrBuilder
-
getFromOrBuilderList
public List<? extends Generated.NetworkPolicyPeerOrBuilder> getFromOrBuilderList()
from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;- Specified by:
getFromOrBuilderListin interfaceGenerated.NetworkPolicyIngressRuleOrBuilder
-
getFromCount
public int getFromCount()
from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;- Specified by:
getFromCountin interfaceGenerated.NetworkPolicyIngressRuleOrBuilder
-
getFrom
public Generated.NetworkPolicyPeer getFrom(int index)
from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;- Specified by:
getFromin interfaceGenerated.NetworkPolicyIngressRuleOrBuilder
-
getFromOrBuilder
public Generated.NetworkPolicyPeerOrBuilder getFromOrBuilder(int index)
from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2;- Specified by:
getFromOrBuilderin interfaceGenerated.NetworkPolicyIngressRuleOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Generated.NetworkPolicyIngressRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.NetworkPolicyIngressRule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.NetworkPolicyIngressRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.NetworkPolicyIngressRule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.NetworkPolicyIngressRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.NetworkPolicyIngressRule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.NetworkPolicyIngressRule parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.NetworkPolicyIngressRule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.NetworkPolicyIngressRule parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.NetworkPolicyIngressRule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.NetworkPolicyIngressRule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.NetworkPolicyIngressRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Generated.NetworkPolicyIngressRule.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Generated.NetworkPolicyIngressRule.Builder newBuilder()
-
newBuilder
public static Generated.NetworkPolicyIngressRule.Builder newBuilder(Generated.NetworkPolicyIngressRule prototype)
-
toBuilder
public Generated.NetworkPolicyIngressRule.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Generated.NetworkPolicyIngressRule.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Generated.NetworkPolicyIngressRule getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Generated.NetworkPolicyIngressRule> parser()
-
getParserForType
public com.google.protobuf.Parser<Generated.NetworkPolicyIngressRule> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Generated.NetworkPolicyIngressRule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-