Class HealthCheckReference.Builder (1.16.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HealthCheckReference.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
HealthCheckReference.Builder
Overrides

build()

public HealthCheckReference build()
Returns
TypeDescription
HealthCheckReference

buildPartial()

public HealthCheckReference buildPartial()
Returns
TypeDescription
HealthCheckReference

clear()

public HealthCheckReference.Builder clear()
Returns
TypeDescription
HealthCheckReference.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public HealthCheckReference.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
HealthCheckReference.Builder
Overrides

clearHealthCheck()

public HealthCheckReference.Builder clearHealthCheck()

optional string health_check = 308876645;

Returns
TypeDescription
HealthCheckReference.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public HealthCheckReference.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
HealthCheckReference.Builder
Overrides

clone()

public HealthCheckReference.Builder clone()
Returns
TypeDescription
HealthCheckReference.Builder
Overrides

getDefaultInstanceForType()

public HealthCheckReference getDefaultInstanceForType()
Returns
TypeDescription
HealthCheckReference

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHealthCheck()

public String getHealthCheck()

optional string health_check = 308876645;

Returns
TypeDescription
String

The healthCheck.

getHealthCheckBytes()

public ByteString getHealthCheckBytes()

optional string health_check = 308876645;

Returns
TypeDescription
ByteString

The bytes for healthCheck.

hasHealthCheck()

public boolean hasHealthCheck()

optional string health_check = 308876645;

Returns
TypeDescription
boolean

Whether the healthCheck field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(HealthCheckReference other)

public HealthCheckReference.Builder mergeFrom(HealthCheckReference other)
Parameter
NameDescription
otherHealthCheckReference
Returns
TypeDescription
HealthCheckReference.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HealthCheckReference.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HealthCheckReference.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public HealthCheckReference.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
HealthCheckReference.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HealthCheckReference.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HealthCheckReference.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public HealthCheckReference.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
HealthCheckReference.Builder
Overrides

setHealthCheck(String value)

public HealthCheckReference.Builder setHealthCheck(String value)

optional string health_check = 308876645;

Parameter
NameDescription
valueString

The healthCheck to set.

Returns
TypeDescription
HealthCheckReference.Builder

This builder for chaining.

setHealthCheckBytes(ByteString value)

public HealthCheckReference.Builder setHealthCheckBytes(ByteString value)

optional string health_check = 308876645;

Parameter
NameDescription
valueByteString

The bytes for healthCheck to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
HealthCheckReference.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final HealthCheckReference.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HealthCheckReference.Builder
Overrides