public static final class Probe.TcpSocketAction.Builder extends GeneratedMessage.Builder<Probe.TcpSocketAction.Builder> implements Probe.TcpSocketActionOrBuilderTcpSocketAction probes the health of a container by opening a TCP socket connection.
Protobuf type google.cloud.aiplatform.v1beta1.Probe.TcpSocketAction
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Probe.TcpSocketAction.BuilderImplements
Probe.TcpSocketActionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Probe.TcpSocketAction build()| Returns | |
|---|---|
| Type | Description |
Probe.TcpSocketAction |
|
buildPartial()
public Probe.TcpSocketAction buildPartial()| Returns | |
|---|---|
| Type | Description |
Probe.TcpSocketAction |
|
clear()
public Probe.TcpSocketAction.Builder clear()| Returns | |
|---|---|
| Type | Description |
Probe.TcpSocketAction.Builder |
|
clearHost()
public Probe.TcpSocketAction.Builder clearHost()Optional: Host name to connect to, defaults to the model serving container's IP.
string host = 2;
| Returns | |
|---|---|
| Type | Description |
Probe.TcpSocketAction.Builder |
This builder for chaining. |
clearPort()
public Probe.TcpSocketAction.Builder clearPort()Number of the port to access on the container. Number must be in the range 1 to 65535.
int32 port = 1;
| Returns | |
|---|---|
| Type | Description |
Probe.TcpSocketAction.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Probe.TcpSocketAction getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Probe.TcpSocketAction |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getHost()
public String getHost()Optional: Host name to connect to, defaults to the model serving container's IP.
string host = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The host. |
getHostBytes()
public ByteString getHostBytes()Optional: Host name to connect to, defaults to the model serving container's IP.
string host = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for host. |
getPort()
public int getPort()Number of the port to access on the container. Number must be in the range 1 to 65535.
int32 port = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The port. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Probe.TcpSocketAction other)
public Probe.TcpSocketAction.Builder mergeFrom(Probe.TcpSocketAction other)| Parameter | |
|---|---|
| Name | Description |
other |
Probe.TcpSocketAction |
| Returns | |
|---|---|
| Type | Description |
Probe.TcpSocketAction.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Probe.TcpSocketAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Probe.TcpSocketAction.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Probe.TcpSocketAction.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Probe.TcpSocketAction.Builder |
|
setHost(String value)
public Probe.TcpSocketAction.Builder setHost(String value)Optional: Host name to connect to, defaults to the model serving container's IP.
string host = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe host to set. |
| Returns | |
|---|---|
| Type | Description |
Probe.TcpSocketAction.Builder |
This builder for chaining. |
setHostBytes(ByteString value)
public Probe.TcpSocketAction.Builder setHostBytes(ByteString value)Optional: Host name to connect to, defaults to the model serving container's IP.
string host = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for host to set. |
| Returns | |
|---|---|
| Type | Description |
Probe.TcpSocketAction.Builder |
This builder for chaining. |
setPort(int value)
public Probe.TcpSocketAction.Builder setPort(int value)Number of the port to access on the container. Number must be in the range 1 to 65535.
int32 port = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe port to set. |
| Returns | |
|---|---|
| Type | Description |
Probe.TcpSocketAction.Builder |
This builder for chaining. |