Package io.kubernetes.client.proto
Class V1.ContainerPort.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
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()
int
Number of port to expose on the pod's IP address.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
What host IP to bind the external port to.com.google.protobuf.ByteString
What host IP to bind the external port to.int
Number 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.ByteString
If specified, this must be an IANA_SVC_NAME and unique within the pod.Protocol for port.com.google.protobuf.ByteString
Protocol for port.boolean
Number of port to expose on the pod's IP address.boolean
What host IP to bind the external port to.boolean
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
Protocol for port.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(V1.ContainerPort other) final V1.ContainerPort.Builder
mergeUnknownFields
(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.Builder
setUnknownFields
(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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>
-
setField
public V1.ContainerPort.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>
-
addRepeatedField
public V1.ContainerPort.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1.ContainerPort.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasName
in 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:
getName
in 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:
getNameBytes
in 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:
hasHostPort
in 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:
getHostPort
in 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:
hasContainerPort
in 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:
getContainerPort
in 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:
hasProtocol
in interfaceV1.ContainerPortOrBuilder
-
getProtocol
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". +optional +default="TCP"
optional string protocol = 4;
- Specified by:
getProtocol
in 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:
getProtocolBytes
in 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:
hasHostIP
in interfaceV1.ContainerPortOrBuilder
-
getHostIP
What host IP to bind the external port to. +optional
optional string hostIP = 5;
- Specified by:
getHostIP
in 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:
getHostIPBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>
-
mergeUnknownFields
public final V1.ContainerPort.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.ContainerPort.Builder>
-