Class HealthCheckReference.Builder (1.59.0)

public static final class HealthCheckReference.Builder extends GeneratedMessageV3.Builder<HealthCheckReference.Builder> implements HealthCheckReferenceOrBuilder

A full or valid partial URL to a health check. For example, the following are valid URLs: - https://www.googleapis.com/compute/beta/projects/project-id/global/httpHealthChecks/health-check - projects/project-id/global/httpHealthChecks/health-check - global/httpHealthChecks/health-check

Protobuf type google.cloud.compute.v1.HealthCheckReference

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HealthCheckReference.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HealthCheckReference.Builder
Overrides

build()

public HealthCheckReference build()
Returns
Type Description
HealthCheckReference

buildPartial()

public HealthCheckReference buildPartial()
Returns
Type Description
HealthCheckReference

clear()

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

clearField(Descriptors.FieldDescriptor field)

public HealthCheckReference.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
HealthCheckReference.Builder
Overrides

clearHealthCheck()

public HealthCheckReference.Builder clearHealthCheck()

optional string health_check = 308876645;

Returns
Type Description
HealthCheckReference.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public HealthCheckReference.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
HealthCheckReference.Builder
Overrides

clone()

public HealthCheckReference.Builder clone()
Returns
Type Description
HealthCheckReference.Builder
Overrides

getDefaultInstanceForType()

public HealthCheckReference getDefaultInstanceForType()
Returns
Type Description
HealthCheckReference

getDescriptorForType()

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

getHealthCheck()

public String getHealthCheck()

optional string health_check = 308876645;

Returns
Type Description
String

The healthCheck.

getHealthCheckBytes()

public ByteString getHealthCheckBytes()

optional string health_check = 308876645;

Returns
Type Description
ByteString

The bytes for healthCheck.

hasHealthCheck()

public boolean hasHealthCheck()

optional string health_check = 308876645;

Returns
Type Description
boolean

Whether the healthCheck field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HealthCheckReference other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HealthCheckReference.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HealthCheckReference.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public HealthCheckReference.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HealthCheckReference.Builder
Overrides

setHealthCheck(String value)

public HealthCheckReference.Builder setHealthCheck(String value)

optional string health_check = 308876645;

Parameter
Name Description
value String

The healthCheck to set.

Returns
Type Description
HealthCheckReference.Builder

This builder for chaining.

setHealthCheckBytes(ByteString value)

public HealthCheckReference.Builder setHealthCheckBytes(ByteString value)

optional string health_check = 308876645;

Parameter
Name Description
value ByteString

The bytes for healthCheck to set.

Returns
Type Description
HealthCheckReference.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public HealthCheckReference.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
HealthCheckReference.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final HealthCheckReference.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HealthCheckReference.Builder
Overrides