Package k8s.io.api.core.v1
Class Generated.EndpointPort.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.EndpointPort.Builder>
-
- k8s.io.api.core.v1.Generated.EndpointPort.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.EndpointPortOrBuilder
- Enclosing class:
- Generated.EndpointPort
public static final class Generated.EndpointPort.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.EndpointPort.Builder> implements Generated.EndpointPortOrBuilder
EndpointPort is a tuple that describes a single port. +structType=atomic
Protobuf typek8s.io.api.core.v1.EndpointPort
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.EndpointPort.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.EndpointPortbuild()Generated.EndpointPortbuildPartial()Generated.EndpointPort.Builderclear()Generated.EndpointPort.BuilderclearAppProtocol()The application protocol for this port.Generated.EndpointPort.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.EndpointPort.BuilderclearName()The name of this port.Generated.EndpointPort.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.EndpointPort.BuilderclearPort()The port number of the endpoint.Generated.EndpointPort.BuilderclearProtocol()The IP protocol for this port.Generated.EndpointPort.Builderclone()StringgetAppProtocol()The application protocol for this port.com.google.protobuf.ByteStringgetAppProtocolBytes()The application protocol for this port.Generated.EndpointPortgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetName()The name of this port.com.google.protobuf.ByteStringgetNameBytes()The name of this port.intgetPort()The port number of the endpoint.StringgetProtocol()The IP protocol for this port.com.google.protobuf.ByteStringgetProtocolBytes()The IP protocol for this port.booleanhasAppProtocol()The application protocol for this port.booleanhasName()The name of this port.booleanhasPort()The port number of the endpoint.booleanhasProtocol()The IP protocol for this port.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.EndpointPort.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.EndpointPort.BuildermergeFrom(com.google.protobuf.Message other)Generated.EndpointPort.BuildermergeFrom(Generated.EndpointPort other)Generated.EndpointPort.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.EndpointPort.BuildersetAppProtocol(String value)The application protocol for this port.Generated.EndpointPort.BuildersetAppProtocolBytes(com.google.protobuf.ByteString value)The application protocol for this port.Generated.EndpointPort.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.EndpointPort.BuildersetName(String value)The name of this port.Generated.EndpointPort.BuildersetNameBytes(com.google.protobuf.ByteString value)The name of this port.Generated.EndpointPort.BuildersetPort(int value)The port number of the endpoint.Generated.EndpointPort.BuildersetProtocol(String value)The IP protocol for this port.Generated.EndpointPort.BuildersetProtocolBytes(com.google.protobuf.ByteString value)The IP protocol for this port.Generated.EndpointPort.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.EndpointPort.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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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
-
-
-
-
Method Detail
-
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<Generated.EndpointPort.Builder>
-
clear
public Generated.EndpointPort.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<Generated.EndpointPort.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<Generated.EndpointPort.Builder>
-
getDefaultInstanceForType
public Generated.EndpointPort getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.EndpointPort build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.EndpointPort buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.EndpointPort.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<Generated.EndpointPort.Builder>
-
setField
public Generated.EndpointPort.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<Generated.EndpointPort.Builder>
-
clearField
public Generated.EndpointPort.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.EndpointPort.Builder>
-
clearOneof
public Generated.EndpointPort.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.EndpointPort.Builder>
-
setRepeatedField
public Generated.EndpointPort.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<Generated.EndpointPort.Builder>
-
addRepeatedField
public Generated.EndpointPort.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<Generated.EndpointPort.Builder>
-
mergeFrom
public Generated.EndpointPort.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.EndpointPort.Builder>
-
mergeFrom
public Generated.EndpointPort.Builder mergeFrom(Generated.EndpointPort other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.EndpointPort.Builder>
-
mergeFrom
public Generated.EndpointPort.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<Generated.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:
hasNamein interfaceGenerated.EndpointPortOrBuilder- Returns:
- Whether the name field is set.
-
getName
public String 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:
getNamein interfaceGenerated.EndpointPortOrBuilder- Returns:
- The name.
-
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:
getNameBytesin interfaceGenerated.EndpointPortOrBuilder- Returns:
- The bytes for name.
-
setName
public Generated.EndpointPort.Builder setName(String value)
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Generated.EndpointPort.Builder 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;- Returns:
- This builder for chaining.
-
setNameBytes
public Generated.EndpointPort.Builder setNameBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasPort
public boolean hasPort()
The port number of the endpoint.
optional int32 port = 2;- Specified by:
hasPortin interfaceGenerated.EndpointPortOrBuilder- Returns:
- Whether the port field is set.
-
getPort
public int getPort()
The port number of the endpoint.
optional int32 port = 2;- Specified by:
getPortin interfaceGenerated.EndpointPortOrBuilder- Returns:
- The port.
-
setPort
public Generated.EndpointPort.Builder setPort(int value)
The port number of the endpoint.
optional int32 port = 2;- Parameters:
value- The port to set.- Returns:
- This builder for chaining.
-
clearPort
public Generated.EndpointPort.Builder clearPort()
The port number of the endpoint.
optional int32 port = 2;- Returns:
- This builder for chaining.
-
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:
hasProtocolin interfaceGenerated.EndpointPortOrBuilder- Returns:
- Whether the protocol field is set.
-
getProtocol
public String getProtocol()
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. +optional
optional string protocol = 3;- Specified by:
getProtocolin interfaceGenerated.EndpointPortOrBuilder- Returns:
- The protocol.
-
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:
getProtocolBytesin interfaceGenerated.EndpointPortOrBuilder- Returns:
- The bytes for protocol.
-
setProtocol
public Generated.EndpointPort.Builder setProtocol(String value)
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. +optional
optional string protocol = 3;- Parameters:
value- The protocol to set.- Returns:
- This builder for chaining.
-
clearProtocol
public Generated.EndpointPort.Builder clearProtocol()
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. +optional
optional string protocol = 3;- Returns:
- This builder for chaining.
-
setProtocolBytes
public Generated.EndpointPort.Builder setProtocolBytes(com.google.protobuf.ByteString value)
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. +optional
optional string protocol = 3;- Parameters:
value- The bytes for protocol to set.- Returns:
- This builder for chaining.
-
hasAppProtocol
public boolean hasAppProtocol()
The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. +optional
optional string appProtocol = 4;- Specified by:
hasAppProtocolin interfaceGenerated.EndpointPortOrBuilder- Returns:
- Whether the appProtocol field is set.
-
getAppProtocol
public String getAppProtocol()
The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. +optional
optional string appProtocol = 4;- Specified by:
getAppProtocolin interfaceGenerated.EndpointPortOrBuilder- Returns:
- The appProtocol.
-
getAppProtocolBytes
public com.google.protobuf.ByteString getAppProtocolBytes()
The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. +optional
optional string appProtocol = 4;- Specified by:
getAppProtocolBytesin interfaceGenerated.EndpointPortOrBuilder- Returns:
- The bytes for appProtocol.
-
setAppProtocol
public Generated.EndpointPort.Builder setAppProtocol(String value)
The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. +optional
optional string appProtocol = 4;- Parameters:
value- The appProtocol to set.- Returns:
- This builder for chaining.
-
clearAppProtocol
public Generated.EndpointPort.Builder clearAppProtocol()
The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. +optional
optional string appProtocol = 4;- Returns:
- This builder for chaining.
-
setAppProtocolBytes
public Generated.EndpointPort.Builder setAppProtocolBytes(com.google.protobuf.ByteString value)
The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). * Kubernetes-defined prefixed names: * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior- * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. +optional
optional string appProtocol = 4;- Parameters:
value- The bytes for appProtocol to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.EndpointPort.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.EndpointPort.Builder>
-
mergeUnknownFields
public final Generated.EndpointPort.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.EndpointPort.Builder>
-
-