Package k8s.io.api.core.v1
Class Generated.ContainerPort
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- k8s.io.api.core.v1.Generated.ContainerPort
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,Generated.ContainerPortOrBuilder
- Enclosing class:
- Generated
public static final class Generated.ContainerPort extends com.google.protobuf.GeneratedMessageV3 implements Generated.ContainerPortOrBuilder
ContainerPort represents a network port in a single container.
Protobuf typek8s.io.api.core.v1.ContainerPort- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGenerated.ContainerPort.BuilderContainerPort represents a network port in a single container.-
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 intCONTAINERPORT_FIELD_NUMBERstatic intHOSTIP_FIELD_NUMBERstatic intHOSTPORT_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic com.google.protobuf.Parser<Generated.ContainerPort>PARSERDeprecated.static intPROTOCOL_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)intgetContainerPort()Number of port to expose on the pod's IP address.static Generated.ContainerPortgetDefaultInstance()Generated.ContainerPortgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetHostIP()What host IP to bind the external port to.com.google.protobuf.ByteStringgetHostIPBytes()What host IP to bind the external port to.intgetHostPort()Number of port to expose on the host.StringgetName()If specified, this must be an IANA_SVC_NAME and unique within the pod.com.google.protobuf.ByteStringgetNameBytes()If specified, this must be an IANA_SVC_NAME and unique within the pod.com.google.protobuf.Parser<Generated.ContainerPort>getParserForType()StringgetProtocol()Protocol for port.com.google.protobuf.ByteStringgetProtocolBytes()Protocol for port.intgetSerializedSize()booleanhasContainerPort()Number of port to expose on the pod's IP address.inthashCode()booleanhasHostIP()What host IP to bind the external port to.booleanhasHostPort()Number of port to expose on the host.booleanhasName()If specified, this must be an IANA_SVC_NAME and unique within the pod.booleanhasProtocol()Protocol for port.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Generated.ContainerPort.BuildernewBuilder()static Generated.ContainerPort.BuildernewBuilder(Generated.ContainerPort prototype)Generated.ContainerPort.BuildernewBuilderForType()protected Generated.ContainerPort.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Generated.ContainerPortparseDelimitedFrom(InputStream input)static Generated.ContainerPortparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ContainerPortparseFrom(byte[] data)static Generated.ContainerPortparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ContainerPortparseFrom(com.google.protobuf.ByteString data)static Generated.ContainerPortparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ContainerPortparseFrom(com.google.protobuf.CodedInputStream input)static Generated.ContainerPortparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ContainerPortparseFrom(InputStream input)static Generated.ContainerPortparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Generated.ContainerPortparseFrom(ByteBuffer data)static Generated.ContainerPortparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Generated.ContainerPort>parser()Generated.ContainerPort.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
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HOSTPORT_FIELD_NUMBER
public static final int HOSTPORT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTAINERPORT_FIELD_NUMBER
public static final int CONTAINERPORT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROTOCOL_FIELD_NUMBER
public static final int PROTOCOL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HOSTIP_FIELD_NUMBER
public static final int HOSTIP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Generated.ContainerPort> 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
-
hasName
public boolean hasName()
If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. +optional
optional string name = 1;- Specified by:
hasNamein interfaceGenerated.ContainerPortOrBuilder- Returns:
- Whether the name field is set.
-
getName
public String getName()
If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. +optional
optional string name = 1;- Specified by:
getNamein interfaceGenerated.ContainerPortOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. +optional
optional string name = 1;- Specified by:
getNameBytesin interfaceGenerated.ContainerPortOrBuilder- Returns:
- The bytes for name.
-
hasHostPort
public boolean hasHostPort()
Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. +optional
optional int32 hostPort = 2;- Specified by:
hasHostPortin interfaceGenerated.ContainerPortOrBuilder- Returns:
- Whether the hostPort field is set.
-
getHostPort
public int getHostPort()
Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. +optional
optional int32 hostPort = 2;- Specified by:
getHostPortin interfaceGenerated.ContainerPortOrBuilder- Returns:
- The hostPort.
-
hasContainerPort
public boolean hasContainerPort()
Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.
optional int32 containerPort = 3;- Specified by:
hasContainerPortin interfaceGenerated.ContainerPortOrBuilder- Returns:
- Whether the containerPort field is set.
-
getContainerPort
public int getContainerPort()
Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.
optional int32 containerPort = 3;- Specified by:
getContainerPortin interfaceGenerated.ContainerPortOrBuilder- Returns:
- The containerPort.
-
hasProtocol
public boolean hasProtocol()
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". +optional +default="TCP"
optional string protocol = 4;- Specified by:
hasProtocolin interfaceGenerated.ContainerPortOrBuilder- Returns:
- Whether the protocol field is set.
-
getProtocol
public String getProtocol()
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". +optional +default="TCP"
optional string protocol = 4;- Specified by:
getProtocolin interfaceGenerated.ContainerPortOrBuilder- Returns:
- The protocol.
-
getProtocolBytes
public com.google.protobuf.ByteString getProtocolBytes()
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". +optional +default="TCP"
optional string protocol = 4;- Specified by:
getProtocolBytesin interfaceGenerated.ContainerPortOrBuilder- Returns:
- The bytes for protocol.
-
hasHostIP
public boolean hasHostIP()
What host IP to bind the external port to. +optional
optional string hostIP = 5;- Specified by:
hasHostIPin interfaceGenerated.ContainerPortOrBuilder- Returns:
- Whether the hostIP field is set.
-
getHostIP
public String getHostIP()
What host IP to bind the external port to. +optional
optional string hostIP = 5;- Specified by:
getHostIPin interfaceGenerated.ContainerPortOrBuilder- Returns:
- The hostIP.
-
getHostIPBytes
public com.google.protobuf.ByteString getHostIPBytes()
What host IP to bind the external port to. +optional
optional string hostIP = 5;- Specified by:
getHostIPBytesin interfaceGenerated.ContainerPortOrBuilder- Returns:
- The bytes for hostIP.
-
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.ContainerPort parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.ContainerPort parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.ContainerPort parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.ContainerPort 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.ContainerPort parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.ContainerPort parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Generated.ContainerPort parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.ContainerPort parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.ContainerPort parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Generated.ContainerPort parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.ContainerPort parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Generated.ContainerPort parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Generated.ContainerPort.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Generated.ContainerPort.Builder newBuilder()
-
newBuilder
public static Generated.ContainerPort.Builder newBuilder(Generated.ContainerPort prototype)
-
toBuilder
public Generated.ContainerPort.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Generated.ContainerPort.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Generated.ContainerPort getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Generated.ContainerPort> parser()
-
getParserForType
public com.google.protobuf.Parser<Generated.ContainerPort> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Generated.ContainerPort getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-