public static final class V1.ContainerPort.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder> implements V1.ContainerPortOrBuilder
ContainerPort represents a network port in a single container.Protobuf type
k8s.io.api.core.v1.ContainerPort| Modifier and Type | Method and Description |
|---|---|
V1.ContainerPort.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.ContainerPort |
build() |
V1.ContainerPort |
buildPartial() |
V1.ContainerPort.Builder |
clear() |
V1.ContainerPort.Builder |
clearContainerPort()
Number of port to expose on the pod's IP address.
|
V1.ContainerPort.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1.ContainerPort.Builder |
clearHostIP()
What host IP to bind the external port to.
|
V1.ContainerPort.Builder |
clearHostPort()
Number of port to expose on the host.
|
V1.ContainerPort.Builder |
clearName()
If specified, this must be an IANA_SVC_NAME and unique within the pod.
|
V1.ContainerPort.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1.ContainerPort.Builder |
clearProtocol()
Protocol for port.
|
V1.ContainerPort.Builder |
clone() |
int |
getContainerPort()
Number of port to expose on the pod's IP address.
|
V1.ContainerPort |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
String |
getProtocol()
Protocol for port.
|
com.google.protobuf.ByteString |
getProtocolBytes()
Protocol for port.
|
boolean |
hasContainerPort()
Number of port to expose on the pod's IP address.
|
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() |
V1.ContainerPort.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1.ContainerPort.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1.ContainerPort.Builder |
mergeFrom(V1.ContainerPort other) |
V1.ContainerPort.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1.ContainerPort.Builder |
setContainerPort(int value)
Number of port to expose on the pod's IP address.
|
V1.ContainerPort.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.ContainerPort.Builder |
setHostIP(String value)
What host IP to bind the external port to.
|
V1.ContainerPort.Builder |
setHostIPBytes(com.google.protobuf.ByteString value)
What host IP to bind the external port to.
|
V1.ContainerPort.Builder |
setHostPort(int value)
Number of port to expose on the host.
|
V1.ContainerPort.Builder |
setName(String value)
If specified, this must be an IANA_SVC_NAME and unique within the pod.
|
V1.ContainerPort.Builder |
setNameBytes(com.google.protobuf.ByteString value)
If specified, this must be an IANA_SVC_NAME and unique within the pod.
|
V1.ContainerPort.Builder |
setProtocol(String value)
Protocol for port.
|
V1.ContainerPort.Builder |
setProtocolBytes(com.google.protobuf.ByteString value)
Protocol for port.
|
V1.ContainerPort.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1.ContainerPort.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>public V1.ContainerPort.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>public V1.ContainerPort getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1.ContainerPort build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1.ContainerPort buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1.ContainerPort.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>public V1.ContainerPort.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>public V1.ContainerPort.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>public V1.ContainerPort.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>public V1.ContainerPort.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>public V1.ContainerPort.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>public V1.ContainerPort.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.ContainerPort.Builder>public V1.ContainerPort.Builder mergeFrom(V1.ContainerPort other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>public V1.ContainerPort.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.ContainerPort.Builder>IOExceptionpublic 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 V1.ContainerPort.Builder setName(String value)
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;public V1.ContainerPort.Builder clearName()
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;public V1.ContainerPort.Builder setNameBytes(com.google.protobuf.ByteString value)
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;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;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 V1.ContainerPort.Builder setHostPort(int value)
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;public V1.ContainerPort.Builder clearHostPort()
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;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;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 V1.ContainerPort.Builder setContainerPort(int value)
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;public V1.ContainerPort.Builder clearContainerPort()
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;public boolean hasProtocol()
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". +optional
optional string protocol = 4;hasProtocol in interface V1.ContainerPortOrBuilderpublic String getProtocol()
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". +optional
optional string protocol = 4;getProtocol in interface V1.ContainerPortOrBuilderpublic com.google.protobuf.ByteString getProtocolBytes()
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". +optional
optional string protocol = 4;getProtocolBytes in interface V1.ContainerPortOrBuilderpublic V1.ContainerPort.Builder setProtocol(String value)
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". +optional
optional string protocol = 4;public V1.ContainerPort.Builder clearProtocol()
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". +optional
optional string protocol = 4;public V1.ContainerPort.Builder setProtocolBytes(com.google.protobuf.ByteString value)
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". +optional
optional string protocol = 4;public 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 V1.ContainerPort.Builder setHostIP(String value)
What host IP to bind the external port to. +optional
optional string hostIP = 5;public V1.ContainerPort.Builder clearHostIP()
What host IP to bind the external port to. +optional
optional string hostIP = 5;public V1.ContainerPort.Builder setHostIPBytes(com.google.protobuf.ByteString value)
What host IP to bind the external port to. +optional
optional string hostIP = 5;public final V1.ContainerPort.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>public final V1.ContainerPort.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>Copyright © 2020. All rights reserved.