Class HealthCheckResponse.Builder (0.40.0)

public static final class HealthCheckResponse.Builder extends GeneratedMessage.Builder<HealthCheckResponse.Builder> implements HealthCheckResponseOrBuilder

HealthCheckResponse is the response message for Check.

Protobuf type google.cloud.visionai.v1.HealthCheckResponse

Static Methods

getDescriptor()

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

Methods

build()

public HealthCheckResponse build()
Returns
Type Description
HealthCheckResponse

buildPartial()

public HealthCheckResponse buildPartial()
Returns
Type Description
HealthCheckResponse

clear()

public HealthCheckResponse.Builder clear()
Returns
Type Description
HealthCheckResponse.Builder
Overrides

clearClusterInfo()

public HealthCheckResponse.Builder clearClusterInfo()

Other information of the cluster client may be interested.

.google.cloud.visionai.v1.ClusterInfo cluster_info = 3;

Returns
Type Description
HealthCheckResponse.Builder

clearHealthy()

public HealthCheckResponse.Builder clearHealthy()

Indicates whether the cluster is in healthy state or not.

bool healthy = 1;

Returns
Type Description
HealthCheckResponse.Builder

This builder for chaining.

clearReason()

public HealthCheckResponse.Builder clearReason()

Reason of why the cluster is in unhealthy state.

string reason = 2;

Returns
Type Description
HealthCheckResponse.Builder

This builder for chaining.

getClusterInfo()

public ClusterInfo getClusterInfo()

Other information of the cluster client may be interested.

.google.cloud.visionai.v1.ClusterInfo cluster_info = 3;

Returns
Type Description
ClusterInfo

The clusterInfo.

getClusterInfoBuilder()

public ClusterInfo.Builder getClusterInfoBuilder()

Other information of the cluster client may be interested.

.google.cloud.visionai.v1.ClusterInfo cluster_info = 3;

Returns
Type Description
ClusterInfo.Builder

getClusterInfoOrBuilder()

public ClusterInfoOrBuilder getClusterInfoOrBuilder()

Other information of the cluster client may be interested.

.google.cloud.visionai.v1.ClusterInfo cluster_info = 3;

Returns
Type Description
ClusterInfoOrBuilder

getDefaultInstanceForType()

public HealthCheckResponse getDefaultInstanceForType()
Returns
Type Description
HealthCheckResponse

getDescriptorForType()

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

getHealthy()

public boolean getHealthy()

Indicates whether the cluster is in healthy state or not.

bool healthy = 1;

Returns
Type Description
boolean

The healthy.

getReason()

public String getReason()

Reason of why the cluster is in unhealthy state.

string reason = 2;

Returns
Type Description
String

The reason.

getReasonBytes()

public ByteString getReasonBytes()

Reason of why the cluster is in unhealthy state.

string reason = 2;

Returns
Type Description
ByteString

The bytes for reason.

hasClusterInfo()

public boolean hasClusterInfo()

Other information of the cluster client may be interested.

.google.cloud.visionai.v1.ClusterInfo cluster_info = 3;

Returns
Type Description
boolean

Whether the clusterInfo field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeClusterInfo(ClusterInfo value)

public HealthCheckResponse.Builder mergeClusterInfo(ClusterInfo value)

Other information of the cluster client may be interested.

.google.cloud.visionai.v1.ClusterInfo cluster_info = 3;

Parameter
Name Description
value ClusterInfo
Returns
Type Description
HealthCheckResponse.Builder

mergeFrom(HealthCheckResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setClusterInfo(ClusterInfo value)

public HealthCheckResponse.Builder setClusterInfo(ClusterInfo value)

Other information of the cluster client may be interested.

.google.cloud.visionai.v1.ClusterInfo cluster_info = 3;

Parameter
Name Description
value ClusterInfo
Returns
Type Description
HealthCheckResponse.Builder

setClusterInfo(ClusterInfo.Builder builderForValue)

public HealthCheckResponse.Builder setClusterInfo(ClusterInfo.Builder builderForValue)

Other information of the cluster client may be interested.

.google.cloud.visionai.v1.ClusterInfo cluster_info = 3;

Parameter
Name Description
builderForValue ClusterInfo.Builder
Returns
Type Description
HealthCheckResponse.Builder

setHealthy(boolean value)

public HealthCheckResponse.Builder setHealthy(boolean value)

Indicates whether the cluster is in healthy state or not.

bool healthy = 1;

Parameter
Name Description
value boolean

The healthy to set.

Returns
Type Description
HealthCheckResponse.Builder

This builder for chaining.

setReason(String value)

public HealthCheckResponse.Builder setReason(String value)

Reason of why the cluster is in unhealthy state.

string reason = 2;

Parameter
Name Description
value String

The reason to set.

Returns
Type Description
HealthCheckResponse.Builder

This builder for chaining.

setReasonBytes(ByteString value)

public HealthCheckResponse.Builder setReasonBytes(ByteString value)

Reason of why the cluster is in unhealthy state.

string reason = 2;

Parameter
Name Description
value ByteString

The bytes for reason to set.

Returns
Type Description
HealthCheckResponse.Builder

This builder for chaining.