Class Probe.GrpcAction.Builder (3.84.0)

public static final class Probe.GrpcAction.Builder extends GeneratedMessage.Builder<Probe.GrpcAction.Builder> implements Probe.GrpcActionOrBuilder

GrpcAction checks the health of a container using a gRPC service.

Protobuf type google.cloud.aiplatform.v1beta1.Probe.GrpcAction

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public Probe.GrpcAction build()
Returns
Type Description
Probe.GrpcAction

buildPartial()

public Probe.GrpcAction buildPartial()
Returns
Type Description
Probe.GrpcAction

clear()

public Probe.GrpcAction.Builder clear()
Returns
Type Description
Probe.GrpcAction.Builder
Overrides

clearPort()

public Probe.GrpcAction.Builder clearPort()

Port number of the gRPC service. Number must be in the range 1 to 65535.

int32 port = 1;

Returns
Type Description
Probe.GrpcAction.Builder

This builder for chaining.

clearService()

public Probe.GrpcAction.Builder clearService()

Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).

If this is not specified, the default behavior is defined by gRPC.

string service = 2;

Returns
Type Description
Probe.GrpcAction.Builder

This builder for chaining.

getDefaultInstanceForType()

public Probe.GrpcAction getDefaultInstanceForType()
Returns
Type Description
Probe.GrpcAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPort()

public int getPort()

Port number of the gRPC service. Number must be in the range 1 to 65535.

int32 port = 1;

Returns
Type Description
int

The port.

getService()

public String getService()

Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).

If this is not specified, the default behavior is defined by gRPC.

string service = 2;

Returns
Type Description
String

The service.

getServiceBytes()

public ByteString getServiceBytes()

Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).

If this is not specified, the default behavior is defined by gRPC.

string service = 2;

Returns
Type Description
ByteString

The bytes for service.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Probe.GrpcAction other)

public Probe.GrpcAction.Builder mergeFrom(Probe.GrpcAction other)
Parameter
Name Description
other Probe.GrpcAction
Returns
Type Description
Probe.GrpcAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Probe.GrpcAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Probe.GrpcAction.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Probe.GrpcAction.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Probe.GrpcAction.Builder
Overrides

setPort(int value)

public Probe.GrpcAction.Builder setPort(int value)

Port number of the gRPC service. 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.GrpcAction.Builder

This builder for chaining.

setService(String value)

public Probe.GrpcAction.Builder setService(String value)

Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).

If this is not specified, the default behavior is defined by gRPC.

string service = 2;

Parameter
Name Description
value String

The service to set.

Returns
Type Description
Probe.GrpcAction.Builder

This builder for chaining.

setServiceBytes(ByteString value)

public Probe.GrpcAction.Builder setServiceBytes(ByteString value)

Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).

If this is not specified, the default behavior is defined by gRPC.

string service = 2;

Parameter
Name Description
value ByteString

The bytes for service to set.

Returns
Type Description
Probe.GrpcAction.Builder

This builder for chaining.