Package io.kubernetes.client.proto
Class V1.EndpointPort.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1.EndpointPort.Builder>
io.kubernetes.client.proto.V1.EndpointPort.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,V1.EndpointPortOrBuilder
,Cloneable
- Enclosing class:
- V1.EndpointPort
public static final class V1.EndpointPort.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1.EndpointPort.Builder>
implements V1.EndpointPortOrBuilder
EndpointPort is a tuple that describes a single port. +structType=atomicProtobuf type
k8s.io.api.core.v1.EndpointPort
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
The application protocol for this port.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) The name of this port.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The port number of the endpoint.The IP protocol for this port.clone()
The application protocol for this port.com.google.protobuf.ByteString
The application protocol for this port.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getName()
The name of this port.com.google.protobuf.ByteString
The name of this port.int
getPort()
The port number of the endpoint.The IP protocol for this port.com.google.protobuf.ByteString
The IP protocol for this port.boolean
The application protocol for this port.boolean
hasName()
The name of this port.boolean
hasPort()
The port number of the endpoint.boolean
The IP protocol for this 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.EndpointPort other) final V1.EndpointPort.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setAppProtocol
(String value) The application protocol for this port.setAppProtocolBytes
(com.google.protobuf.ByteString value) The application protocol for this port.The name of this port.setNameBytes
(com.google.protobuf.ByteString value) The name of this port.setPort
(int value) The port number of the endpoint.setProtocol
(String value) The IP protocol for this port.setProtocolBytes
(com.google.protobuf.ByteString value) The IP protocol for this port.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final V1.EndpointPort.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.EndpointPort.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.EndpointPort.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.EndpointPort.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.EndpointPort.Builder>
-
setField
public V1.EndpointPort.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.EndpointPort.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.EndpointPort.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.EndpointPort.Builder>
-
setRepeatedField
public V1.EndpointPort.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.EndpointPort.Builder>
-
addRepeatedField
public V1.EndpointPort.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.EndpointPort.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V1.EndpointPort.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<V1.EndpointPort.Builder>
-
mergeFrom
public V1.EndpointPort.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.EndpointPort.Builder>
- Throws:
IOException
-
hasName
public boolean hasName()The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. +optional
optional string name = 1;
- Specified by:
hasName
in interfaceV1.EndpointPortOrBuilder
-
getName
The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. +optional
optional string name = 1;
- Specified by:
getName
in interfaceV1.EndpointPortOrBuilder
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. +optional
optional string name = 1;
- Specified by:
getNameBytes
in interfaceV1.EndpointPortOrBuilder
-
setName
The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. +optional
optional string name = 1;
-
clearName
The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. +optional
optional string name = 1;
-
setNameBytes
The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. +optional
optional string name = 1;
-
hasPort
public boolean hasPort()The port number of the endpoint.
optional int32 port = 2;
- Specified by:
hasPort
in interfaceV1.EndpointPortOrBuilder
-
getPort
public int getPort()The port number of the endpoint.
optional int32 port = 2;
- Specified by:
getPort
in interfaceV1.EndpointPortOrBuilder
-
setPort
The port number of the endpoint.
optional int32 port = 2;
-
clearPort
The port number of the endpoint.
optional int32 port = 2;
-
hasProtocol
public boolean hasProtocol()The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. +optional
optional string protocol = 3;
- Specified by:
hasProtocol
in interfaceV1.EndpointPortOrBuilder
-
getProtocol
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. +optional
optional string protocol = 3;
- Specified by:
getProtocol
in interfaceV1.EndpointPortOrBuilder
-
getProtocolBytes
public com.google.protobuf.ByteString getProtocolBytes()The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. +optional
optional string protocol = 3;
- Specified by:
getProtocolBytes
in interfaceV1.EndpointPortOrBuilder
-
setProtocol
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. +optional
optional string protocol = 3;
-
clearProtocol
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. +optional
optional string protocol = 3;
-
setProtocolBytes
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. +optional
optional string protocol = 3;
-
hasAppProtocol
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 = 4;
- Specified by:
hasAppProtocol
in interfaceV1.EndpointPortOrBuilder
-
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 = 4;
- Specified by:
getAppProtocol
in interfaceV1.EndpointPortOrBuilder
-
getAppProtocolBytes
public 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 = 4;
- Specified by:
getAppProtocolBytes
in interfaceV1.EndpointPortOrBuilder
-
setAppProtocol
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 = 4;
-
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 = 4;
-
setAppProtocolBytes
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 = 4;
-
setUnknownFields
public final V1.EndpointPort.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.EndpointPort.Builder>
-
mergeUnknownFields
public final V1.EndpointPort.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.EndpointPort.Builder>
-