public static final class V1.ServicePort.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.ServicePort.Builder> implements V1.ServicePortOrBuilder
ServicePort contains information on service's port.Protobuf type
k8s.io.api.core.v1.ServicePort| Modifier and Type | Method and Description |
|---|---|
V1.ServicePort.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.ServicePort |
build() |
V1.ServicePort |
buildPartial() |
V1.ServicePort.Builder |
clear() |
V1.ServicePort.Builder |
clearAppProtocol()
The application protocol for this port.
|
V1.ServicePort.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1.ServicePort.Builder |
clearName()
The name of this port within the service.
|
V1.ServicePort.Builder |
clearNodePort()
The port on each node on which this service is exposed when type is
NodePort or LoadBalancer.
|
V1.ServicePort.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1.ServicePort.Builder |
clearPort()
The port that will be exposed by this service.
|
V1.ServicePort.Builder |
clearProtocol()
The IP protocol for this port.
|
V1.ServicePort.Builder |
clearTargetPort()
Number or name of the port to access on the pods targeted by the service.
|
V1.ServicePort.Builder |
clone() |
String |
getAppProtocol()
The application protocol for this port.
|
com.google.protobuf.ByteString |
getAppProtocolBytes()
The application protocol for this port.
|
V1.ServicePort |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
The name of this port within the service.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of this port within the service.
|
int |
getNodePort()
The port on each node on which this service is exposed when type is
NodePort or LoadBalancer.
|
int |
getPort()
The port that will be exposed by this service.
|
String |
getProtocol()
The IP protocol for this port.
|
com.google.protobuf.ByteString |
getProtocolBytes()
The IP protocol for this port.
|
IntStr.IntOrString |
getTargetPort()
Number or name of the port to access on the pods targeted by the service.
|
IntStr.IntOrString.Builder |
getTargetPortBuilder()
Number or name of the port to access on the pods targeted by the service.
|
IntStr.IntOrStringOrBuilder |
getTargetPortOrBuilder()
Number or name of the port to access on the pods targeted by the service.
|
boolean |
hasAppProtocol()
The application protocol for this port.
|
boolean |
hasName()
The name of this port within the service.
|
boolean |
hasNodePort()
The port on each node on which this service is exposed when type is
NodePort or LoadBalancer.
|
boolean |
hasPort()
The port that will be exposed by this service.
|
boolean |
hasProtocol()
The IP protocol for this port.
|
boolean |
hasTargetPort()
Number or name of the port to access on the pods targeted by the service.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1.ServicePort.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1.ServicePort.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1.ServicePort.Builder |
mergeFrom(V1.ServicePort other) |
V1.ServicePort.Builder |
mergeTargetPort(IntStr.IntOrString value)
Number or name of the port to access on the pods targeted by the service.
|
V1.ServicePort.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1.ServicePort.Builder |
setAppProtocol(String value)
The application protocol for this port.
|
V1.ServicePort.Builder |
setAppProtocolBytes(com.google.protobuf.ByteString value)
The application protocol for this port.
|
V1.ServicePort.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.ServicePort.Builder |
setName(String value)
The name of this port within the service.
|
V1.ServicePort.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name of this port within the service.
|
V1.ServicePort.Builder |
setNodePort(int value)
The port on each node on which this service is exposed when type is
NodePort or LoadBalancer.
|
V1.ServicePort.Builder |
setPort(int value)
The port that will be exposed by this service.
|
V1.ServicePort.Builder |
setProtocol(String value)
The IP protocol for this port.
|
V1.ServicePort.Builder |
setProtocolBytes(com.google.protobuf.ByteString value)
The IP protocol for this port.
|
V1.ServicePort.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1.ServicePort.Builder |
setTargetPort(IntStr.IntOrString.Builder builderForValue)
Number or name of the port to access on the pods targeted by the service.
|
V1.ServicePort.Builder |
setTargetPort(IntStr.IntOrString value)
Number or name of the port to access on the pods targeted by the service.
|
V1.ServicePort.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ServicePort.Builder>public V1.ServicePort.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.ServicePort.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.ServicePort.Builder>public V1.ServicePort getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1.ServicePort build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1.ServicePort buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1.ServicePort.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.ServicePort.Builder>public V1.ServicePort.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.ServicePort.Builder>public V1.ServicePort.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ServicePort.Builder>public V1.ServicePort.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ServicePort.Builder>public V1.ServicePort.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.ServicePort.Builder>public V1.ServicePort.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.ServicePort.Builder>public V1.ServicePort.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.ServicePort.Builder>public V1.ServicePort.Builder mergeFrom(V1.ServicePort other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ServicePort.Builder>public V1.ServicePort.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.ServicePort.Builder>IOExceptionpublic boolean hasName()
The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. +optional
optional string name = 1;hasName in interface V1.ServicePortOrBuilderpublic String getName()
The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. +optional
optional string name = 1;getName in interface V1.ServicePortOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. +optional
optional string name = 1;getNameBytes in interface V1.ServicePortOrBuilderpublic V1.ServicePort.Builder setName(String value)
The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. +optional
optional string name = 1;public V1.ServicePort.Builder clearName()
The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. +optional
optional string name = 1;public V1.ServicePort.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. +optional
optional string name = 1;public boolean hasProtocol()
The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. +default="TCP" +optional
optional string protocol = 2;hasProtocol in interface V1.ServicePortOrBuilderpublic String getProtocol()
The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. +default="TCP" +optional
optional string protocol = 2;getProtocol in interface V1.ServicePortOrBuilderpublic com.google.protobuf.ByteString getProtocolBytes()
The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. +default="TCP" +optional
optional string protocol = 2;getProtocolBytes in interface V1.ServicePortOrBuilderpublic V1.ServicePort.Builder setProtocol(String value)
The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. +default="TCP" +optional
optional string protocol = 2;public V1.ServicePort.Builder clearProtocol()
The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. +default="TCP" +optional
optional string protocol = 2;public V1.ServicePort.Builder setProtocolBytes(com.google.protobuf.ByteString value)
The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. +default="TCP" +optional
optional string protocol = 2;public boolean hasAppProtocol()
The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. +optional
optional string appProtocol = 6;hasAppProtocol in interface V1.ServicePortOrBuilderpublic String getAppProtocol()
The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. +optional
optional string appProtocol = 6;getAppProtocol in interface V1.ServicePortOrBuilderpublic com.google.protobuf.ByteString getAppProtocolBytes()
The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. +optional
optional string appProtocol = 6;getAppProtocolBytes in interface V1.ServicePortOrBuilderpublic V1.ServicePort.Builder setAppProtocol(String value)
The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. +optional
optional string appProtocol = 6;public V1.ServicePort.Builder clearAppProtocol()
The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. +optional
optional string appProtocol = 6;public V1.ServicePort.Builder setAppProtocolBytes(com.google.protobuf.ByteString value)
The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. +optional
optional string appProtocol = 6;public boolean hasPort()
The port that will be exposed by this service.
optional int32 port = 3;hasPort in interface V1.ServicePortOrBuilderpublic int getPort()
The port that will be exposed by this service.
optional int32 port = 3;getPort in interface V1.ServicePortOrBuilderpublic V1.ServicePort.Builder setPort(int value)
The port that will be exposed by this service.
optional int32 port = 3;public V1.ServicePort.Builder clearPort()
The port that will be exposed by this service.
optional int32 port = 3;public boolean hasTargetPort()
Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4;hasTargetPort in interface V1.ServicePortOrBuilderpublic IntStr.IntOrString getTargetPort()
Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4;getTargetPort in interface V1.ServicePortOrBuilderpublic V1.ServicePort.Builder setTargetPort(IntStr.IntOrString value)
Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4;public V1.ServicePort.Builder setTargetPort(IntStr.IntOrString.Builder builderForValue)
Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4;public V1.ServicePort.Builder mergeTargetPort(IntStr.IntOrString value)
Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4;public V1.ServicePort.Builder clearTargetPort()
Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4;public IntStr.IntOrString.Builder getTargetPortBuilder()
Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4;public IntStr.IntOrStringOrBuilder getTargetPortOrBuilder()
Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service +optional
optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString targetPort = 4;getTargetPortOrBuilder in interface V1.ServicePortOrBuilderpublic boolean hasNodePort()
The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport +optional
optional int32 nodePort = 5;hasNodePort in interface V1.ServicePortOrBuilderpublic int getNodePort()
The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport +optional
optional int32 nodePort = 5;getNodePort in interface V1.ServicePortOrBuilderpublic V1.ServicePort.Builder setNodePort(int value)
The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport +optional
optional int32 nodePort = 5;public V1.ServicePort.Builder clearNodePort()
The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport +optional
optional int32 nodePort = 5;public final V1.ServicePort.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ServicePort.Builder>public final V1.ServicePort.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.ServicePort.Builder>Copyright © 2023. All rights reserved.