public static final class V1.ServicePort extends com.google.protobuf.GeneratedMessageV3 implements V1.ServicePortOrBuilder
ServicePort contains information on service's port.Protobuf type
k8s.io.api.core.v1.ServicePort| Modifier and Type | Class and Description |
|---|---|
static class |
V1.ServicePort.Builder
ServicePort contains information on service's port.
|
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, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
NAME_FIELD_NUMBER |
static int |
NODEPORT_FIELD_NUMBER |
static com.google.protobuf.Parser<V1.ServicePort> |
PARSER
Deprecated.
|
static int |
PORT_FIELD_NUMBER |
static int |
PROTOCOL_FIELD_NUMBER |
static int |
TARGETPORT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static V1.ServicePort |
getDefaultInstance() |
V1.ServicePort |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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=NodePort or LoadBalancer.
|
com.google.protobuf.Parser<V1.ServicePort> |
getParserForType() |
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.
|
int |
getSerializedSize() |
IntStr.IntOrString |
getTargetPort()
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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
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=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() |
static V1.ServicePort.Builder |
newBuilder() |
static V1.ServicePort.Builder |
newBuilder(V1.ServicePort prototype) |
V1.ServicePort.Builder |
newBuilderForType() |
protected V1.ServicePort.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static V1.ServicePort |
parseDelimitedFrom(InputStream input) |
static V1.ServicePort |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1.ServicePort |
parseFrom(byte[] data) |
static V1.ServicePort |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1.ServicePort |
parseFrom(ByteBuffer data) |
static V1.ServicePort |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1.ServicePort |
parseFrom(com.google.protobuf.ByteString data) |
static V1.ServicePort |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1.ServicePort |
parseFrom(com.google.protobuf.CodedInputStream input) |
static V1.ServicePort |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1.ServicePort |
parseFrom(InputStream input) |
static V1.ServicePort |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<V1.ServicePort> |
parser() |
V1.ServicePort.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, 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 PROTOCOL_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER
public static final int TARGETPORT_FIELD_NUMBER
public static final int NODEPORT_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<V1.ServicePort> 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()
The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. 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. This maps to the 'Name' field in EndpointPort objects. 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. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service. +optional
optional string name = 1;getNameBytes in interface V1.ServicePortOrBuilderpublic boolean hasProtocol()
The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is 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. +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. +optional
optional string protocol = 2;getProtocolBytes in interface V1.ServicePortOrBuilderpublic 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 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 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=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. 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=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport +optional
optional int32 nodePort = 5;getNodePort in interface V1.ServicePortOrBuilderpublic 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.ServicePort parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.ServicePort parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.ServicePort parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.ServicePort parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.ServicePort parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.ServicePort parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1.ServicePort parseFrom(InputStream input) throws IOException
IOExceptionpublic static V1.ServicePort parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static V1.ServicePort parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static V1.ServicePort parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static V1.ServicePort parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static V1.ServicePort parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic V1.ServicePort.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static V1.ServicePort.Builder newBuilder()
public static V1.ServicePort.Builder newBuilder(V1.ServicePort prototype)
public V1.ServicePort.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected V1.ServicePort.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static V1.ServicePort getDefaultInstance()
public static com.google.protobuf.Parser<V1.ServicePort> parser()
public com.google.protobuf.Parser<V1.ServicePort> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public V1.ServicePort getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2021. All rights reserved.