public static final class V1.ContainerPort extends com.google.protobuf.GeneratedMessageV3 implements V1.ContainerPortOrBuilder
ContainerPort represents a network port in a single container.Protobuf type
k8s.io.api.core.v1.ContainerPort| Modifier and Type | Class and Description |
|---|---|
static class |
V1.ContainerPort.Builder
ContainerPort represents a network port in a single container.
|
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| Modifier and Type | Field and Description |
|---|---|
static int |
CONTAINERPORT_FIELD_NUMBER |
static int |
HOSTIP_FIELD_NUMBER |
static int |
HOSTPORT_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static com.google.protobuf.Parser<V1.ContainerPort> |
PARSER
Deprecated.
|
static int |
PROTOCOL_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getContainerPort()
Number of port to expose on the pod's IP address.
|
static V1.ContainerPort |
getDefaultInstance() |
V1.ContainerPort |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getHostIP()
What host IP to bind the external port to.
|
com.google.protobuf.ByteString |
getHostIPBytes()
What host IP to bind the external port to.
|
int |
getHostPort()
Number of port to expose on the host.
|
String |
getName()
If specified, this must be an IANA_SVC_NAME and unique within the pod.
|
com.google.protobuf.ByteString |
getNameBytes()
If specified, this must be an IANA_SVC_NAME and unique within the pod.
|
com.google.protobuf.Parser<V1.ContainerPort> |
getParserForType() |
String |
getProtocol()
Protocol for port.
|
com.google.protobuf.ByteString |
getProtocolBytes()
Protocol for port.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasContainerPort()
Number of port to expose on the pod's IP address.
|
int |
hashCode() |
boolean |
hasHostIP()
What host IP to bind the external port to.
|
boolean |
hasHostPort()
Number of port to expose on the host.
|
boolean |
hasName()
If specified, this must be an IANA_SVC_NAME and unique within the pod.
|
boolean |
hasProtocol()
Protocol for port.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static V1.ContainerPort.Builder |
newBuilder() |
static V1.ContainerPort.Builder |
newBuilder(V1.ContainerPort prototype) |
V1.ContainerPort.Builder |
newBuilderForType() |
protected V1.ContainerPort.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static V1.ContainerPort |
parseDelimitedFrom(InputStream input) |
static V1.ContainerPort |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1.ContainerPort |
parseFrom(byte[] data) |
static V1.ContainerPort |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1.ContainerPort |
parseFrom(ByteBuffer data) |
static V1.ContainerPort |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1.ContainerPort |
parseFrom(com.google.protobuf.ByteString data) |
static V1.ContainerPort |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1.ContainerPort |
parseFrom(com.google.protobuf.CodedInputStream input) |
static V1.ContainerPort |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1.ContainerPort |
parseFrom(InputStream input) |
static V1.ContainerPort |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<V1.ContainerPort> |
parser() |
V1.ContainerPort.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, 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 NAME_FIELD_NUMBER
public static final int HOSTPORT_FIELD_NUMBER
public static final int CONTAINERPORT_FIELD_NUMBER
public static final int PROTOCOL_FIELD_NUMBER
public static final int HOSTIP_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<V1.ContainerPort> 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 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;hasName in interface V1.ContainerPortOrBuilderpublic 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;getName in interface V1.ContainerPortOrBuilderpublic 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;getNameBytes in interface V1.ContainerPortOrBuilderpublic 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;hasHostPort in interface V1.ContainerPortOrBuilderpublic 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;getHostPort in interface V1.ContainerPortOrBuilderpublic 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;hasContainerPort in interface V1.ContainerPortOrBuilderpublic 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;getContainerPort in interface V1.ContainerPortOrBuilderpublic boolean hasProtocol()
Protocol for port. Must be UDP or TCP. Defaults to "TCP". +optional
optional string protocol = 4;hasProtocol in interface V1.ContainerPortOrBuilderpublic String getProtocol()
Protocol for port. Must be UDP or TCP. Defaults to "TCP". +optional
optional string protocol = 4;getProtocol in interface V1.ContainerPortOrBuilderpublic com.google.protobuf.ByteString getProtocolBytes()
Protocol for port. Must be UDP or TCP. Defaults to "TCP". +optional
optional string protocol = 4;getProtocolBytes in interface V1.ContainerPortOrBuilderpublic boolean hasHostIP()
What host IP to bind the external port to. +optional
optional string hostIP = 5;hasHostIP in interface V1.ContainerPortOrBuilderpublic String getHostIP()
What host IP to bind the external port to. +optional
optional string hostIP = 5;getHostIP in interface V1.ContainerPortOrBuilderpublic com.google.protobuf.ByteString getHostIPBytes()
What host IP to bind the external port to. +optional
optional string hostIP = 5;getHostIPBytes in interface V1.ContainerPortOrBuilderpublic 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 V1.ContainerPort parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.ContainerPort parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.ContainerPort parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.ContainerPort parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.ContainerPort parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.ContainerPort parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.ContainerPort parseFrom(InputStream input) throws IOException
IOExceptionpublic static V1.ContainerPort parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static V1.ContainerPort parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static V1.ContainerPort parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static V1.ContainerPort parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static V1.ContainerPort parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic V1.ContainerPort.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static V1.ContainerPort.Builder newBuilder()
public static V1.ContainerPort.Builder newBuilder(V1.ContainerPort prototype)
public V1.ContainerPort.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected V1.ContainerPort.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static V1.ContainerPort getDefaultInstance()
public static com.google.protobuf.Parser<V1.ContainerPort> parser()
public com.google.protobuf.Parser<V1.ContainerPort> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public V1.ContainerPort getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018. All rights reserved.