Class Probe.TcpSocketAction.Builder (3.84.0)

public static final class Probe.TcpSocketAction.Builder extends GeneratedMessage.Builder<Probe.TcpSocketAction.Builder> implements Probe.TcpSocketActionOrBuilder

TcpSocketAction probes the health of a container by opening a TCP socket connection.

Protobuf type google.cloud.aiplatform.v1.Probe.TcpSocketAction

Static 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
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
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
Overrides

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 String

The 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 ByteString

The 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 int

The port to set.

Returns
Type Description
Probe.TcpSocketAction.Builder

This builder for chaining.