Package io.kubernetes.client.proto
Class V1.ContainerPort.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>
io.kubernetes.client.proto.V1.ContainerPort.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1.ContainerPortOrBuilder,Cloneable
- Enclosing class:
- V1.ContainerPort
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-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Number of port to expose on the pod's IP address.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) What host IP to bind the external port to.Number of port to expose on the host.If specified, this must be an IANA_SVC_NAME and unique within the pod.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Protocol for port.clone()intNumber of port to expose on the pod's IP address.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorWhat host IP to bind the external port to.com.google.protobuf.ByteStringWhat host IP to bind the external port to.intNumber of port to expose on the host.getName()If specified, this must be an IANA_SVC_NAME and unique within the pod.com.google.protobuf.ByteStringIf specified, this must be an IANA_SVC_NAME and unique within the pod.Protocol for port.com.google.protobuf.ByteStringProtocol for port.booleanNumber of port to expose on the pod's IP address.booleanWhat host IP to bind the external port to.booleanNumber of port to expose on the host.booleanhasName()If specified, this must be an IANA_SVC_NAME and unique within the pod.booleanProtocol for port.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(V1.ContainerPort other) final V1.ContainerPort.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setContainerPort(int value) Number of port to expose on the pod's IP address.What host IP to bind the external port to.setHostIPBytes(com.google.protobuf.ByteString value) What host IP to bind the external port to.setHostPort(int value) Number of port to expose on the host.If specified, this must be an IANA_SVC_NAME and unique within the pod.setNameBytes(com.google.protobuf.ByteString value) If specified, this must be an IANA_SVC_NAME and unique within the pod.setProtocol(String value) Protocol for port.setProtocolBytes(com.google.protobuf.ByteString value) Protocol for port.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final V1.ContainerPort.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<V1.ContainerPort.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>
-
setField
public V1.ContainerPort.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>
-
setRepeatedField
public V1.ContainerPort.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>
-
addRepeatedField
public V1.ContainerPort.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1.ContainerPort.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>
-
mergeFrom
public V1.ContainerPort.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1.ContainerPort.Builder>- Throws:
IOException
-
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 interfaceV1.ContainerPortOrBuilder
-
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 interfaceV1.ContainerPortOrBuilder
-
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 interfaceV1.ContainerPortOrBuilder
-
setName
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; -
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; -
setNameBytes
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; -
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 interfaceV1.ContainerPortOrBuilder
-
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 interfaceV1.ContainerPortOrBuilder
-
setHostPort
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; -
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; -
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 interfaceV1.ContainerPortOrBuilder
-
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 interfaceV1.ContainerPortOrBuilder
-
setContainerPort
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; -
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; -
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 interfaceV1.ContainerPortOrBuilder
-
getProtocol
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". +optional +default="TCP"
optional string protocol = 4;- Specified by:
getProtocolin interfaceV1.ContainerPortOrBuilder
-
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 interfaceV1.ContainerPortOrBuilder
-
setProtocol
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". +optional +default="TCP"
optional string protocol = 4; -
clearProtocol
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". +optional +default="TCP"
optional string protocol = 4; -
setProtocolBytes
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". +optional +default="TCP"
optional string protocol = 4; -
hasHostIP
public boolean hasHostIP()What host IP to bind the external port to. +optional
optional string hostIP = 5;- Specified by:
hasHostIPin interfaceV1.ContainerPortOrBuilder
-
getHostIP
What host IP to bind the external port to. +optional
optional string hostIP = 5;- Specified by:
getHostIPin interfaceV1.ContainerPortOrBuilder
-
getHostIPBytes
public com.google.protobuf.ByteString getHostIPBytes()What host IP to bind the external port to. +optional
optional string hostIP = 5;- Specified by:
getHostIPBytesin interfaceV1.ContainerPortOrBuilder
-
setHostIP
What host IP to bind the external port to. +optional
optional string hostIP = 5; -
clearHostIP
What host IP to bind the external port to. +optional
optional string hostIP = 5; -
setHostIPBytes
What host IP to bind the external port to. +optional
optional string hostIP = 5; -
setUnknownFields
public final V1.ContainerPort.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>
-
mergeUnknownFields
public final V1.ContainerPort.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>
-