Package k8s.io.api.networking.v1
Class Generated.NetworkPolicyEgressRule
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- k8s.io.api.networking.v1.Generated.NetworkPolicyEgressRule
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,Generated.NetworkPolicyEgressRuleOrBuilder
- Enclosing class:
- Generated
public static final class Generated.NetworkPolicyEgressRule extends com.google.protobuf.GeneratedMessageV3 implements Generated.NetworkPolicyEgressRuleOrBuilder
NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8
Protobuf typek8s.io.api.networking.v1.NetworkPolicyEgressRule- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerated.NetworkPolicyEgressRule.BuilderNetworkPolicyEgressRule describes a particular set of traffic that is allowed out of 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 com.google.protobuf.Parser<Generated.NetworkPolicyEgressRule>PARSERDeprecated.static intPORTS_FIELD_NUMBERstatic intTO_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static Generated.NetworkPolicyEgressRulegetDefaultInstance()Generated.NetworkPolicyEgressRulegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Parser<Generated.NetworkPolicyEgressRule>getParserForType()Generated.NetworkPolicyPortgetPorts(int index)ports is a list of destination ports for outgoing traffic.intgetPortsCount()ports is a list of destination ports for outgoing traffic.List<Generated.NetworkPolicyPort>getPortsList()ports is a list of destination ports for outgoing traffic.Generated.NetworkPolicyPortOrBuildergetPortsOrBuilder(int index)ports is a list of destination ports for outgoing traffic.List<? extends Generated.NetworkPolicyPortOrBuilder>getPortsOrBuilderList()ports is a list of destination ports for outgoing traffic.intgetSerializedSize()Generated.NetworkPolicyPeergetTo(int index)to is a list of destinations for outgoing traffic of pods selected for this rule.intgetToCount()to is a list of destinations for outgoing traffic of pods selected for this rule.List<Generated.NetworkPolicyPeer>getToList()to is a list of destinations for outgoing traffic of pods selected for this rule.Generated.NetworkPolicyPeerOrBuildergetToOrBuilder(int index)to is a list of destinations for outgoing traffic of pods selected for this rule.List<? extends Generated.NetworkPolicyPeerOrBuilder>getToOrBuilderList()to is a list of destinations for outgoing traffic of pods selected for this rule.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Generated.NetworkPolicyEgressRule.BuildernewBuilder()static Generated.NetworkPolicyEgressRule.BuildernewBuilder(Generated.NetworkPolicyEgressRule prototype)Generated.NetworkPolicyEgressRule.BuildernewBuilderForType()protected Generated.NetworkPolicyEgressRule.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Generated.NetworkPolicyEgressRuleparseDelimitedFrom(InputStream input)static Generated.NetworkPolicyEgressRuleparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.NetworkPolicyEgressRuleparseFrom(byte[] data)static Generated.NetworkPolicyEgressRuleparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.NetworkPolicyEgressRuleparseFrom(com.google.protobuf.ByteString data)static Generated.NetworkPolicyEgressRuleparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.NetworkPolicyEgressRuleparseFrom(com.google.protobuf.CodedInputStream input)static Generated.NetworkPolicyEgressRuleparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.NetworkPolicyEgressRuleparseFrom(InputStream input)static Generated.NetworkPolicyEgressRuleparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.NetworkPolicyEgressRuleparseFrom(ByteBuffer data)static Generated.NetworkPolicyEgressRuleparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Generated.NetworkPolicyEgressRule>parser()Generated.NetworkPolicyEgressRule.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
-
TO_FIELD_NUMBER
public static final int TO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Generated.NetworkPolicyEgressRule> 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 destination ports for outgoing traffic. 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.NetworkPolicyEgressRuleOrBuilder
-
getPortsOrBuilderList
public List<? extends Generated.NetworkPolicyPortOrBuilder> getPortsOrBuilderList()
ports is a list of destination ports for outgoing traffic. 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.NetworkPolicyEgressRuleOrBuilder
-
getPortsCount
public int getPortsCount()
ports is a list of destination ports for outgoing traffic. 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.NetworkPolicyEgressRuleOrBuilder
-
getPorts
public Generated.NetworkPolicyPort getPorts(int index)
ports is a list of destination ports for outgoing traffic. 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.NetworkPolicyEgressRuleOrBuilder
-
getPortsOrBuilder
public Generated.NetworkPolicyPortOrBuilder getPortsOrBuilder(int index)
ports is a list of destination ports for outgoing traffic. 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.NetworkPolicyEgressRuleOrBuilder
-
getToList
public List<Generated.NetworkPolicyPeer> getToList()
to is a list of destinations for outgoing traffic of 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 destinations (traffic not restricted by destination). 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 to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;- Specified by:
getToListin interfaceGenerated.NetworkPolicyEgressRuleOrBuilder
-
getToOrBuilderList
public List<? extends Generated.NetworkPolicyPeerOrBuilder> getToOrBuilderList()
to is a list of destinations for outgoing traffic of 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 destinations (traffic not restricted by destination). 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 to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;- Specified by:
getToOrBuilderListin interfaceGenerated.NetworkPolicyEgressRuleOrBuilder
-
getToCount
public int getToCount()
to is a list of destinations for outgoing traffic of 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 destinations (traffic not restricted by destination). 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 to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;- Specified by:
getToCountin interfaceGenerated.NetworkPolicyEgressRuleOrBuilder
-
getTo
public Generated.NetworkPolicyPeer getTo(int index)
to is a list of destinations for outgoing traffic of 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 destinations (traffic not restricted by destination). 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 to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;- Specified by:
getToin interfaceGenerated.NetworkPolicyEgressRuleOrBuilder
-
getToOrBuilder
public Generated.NetworkPolicyPeerOrBuilder getToOrBuilder(int index)
to is a list of destinations for outgoing traffic of 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 destinations (traffic not restricted by destination). 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 to list. +optional +listType=atomic
repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2;- Specified by:
getToOrBuilderin interfaceGenerated.NetworkPolicyEgressRuleOrBuilder
-
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.NetworkPolicyEgressRule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.NetworkPolicyEgressRule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.NetworkPolicyEgressRule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.NetworkPolicyEgressRule 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.NetworkPolicyEgressRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.NetworkPolicyEgressRule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.NetworkPolicyEgressRule parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.NetworkPolicyEgressRule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.NetworkPolicyEgressRule parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.NetworkPolicyEgressRule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.NetworkPolicyEgressRule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.NetworkPolicyEgressRule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Generated.NetworkPolicyEgressRule.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Generated.NetworkPolicyEgressRule.Builder newBuilder()
-
newBuilder
public static Generated.NetworkPolicyEgressRule.Builder newBuilder(Generated.NetworkPolicyEgressRule prototype)
-
toBuilder
public Generated.NetworkPolicyEgressRule.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Generated.NetworkPolicyEgressRule.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Generated.NetworkPolicyEgressRule getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Generated.NetworkPolicyEgressRule> parser()
-
getParserForType
public com.google.protobuf.Parser<Generated.NetworkPolicyEgressRule> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Generated.NetworkPolicyEgressRule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-