Class TargetPoolInstanceHealth.Builder (1.63.0)

public static final class TargetPoolInstanceHealth.Builder extends GeneratedMessageV3.Builder<TargetPoolInstanceHealth.Builder> implements TargetPoolInstanceHealthOrBuilder

Protobuf type google.cloud.compute.v1.TargetPoolInstanceHealth

Static Methods

getDescriptor()

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

Methods

addAllHealthStatus(Iterable<? extends HealthStatus> values)

public TargetPoolInstanceHealth.Builder addAllHealthStatus(Iterable<? extends HealthStatus> values)

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.HealthStatus>
Returns
Type Description
TargetPoolInstanceHealth.Builder

addHealthStatus(HealthStatus value)

public TargetPoolInstanceHealth.Builder addHealthStatus(HealthStatus value)

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameter
Name Description
value HealthStatus
Returns
Type Description
TargetPoolInstanceHealth.Builder

addHealthStatus(HealthStatus.Builder builderForValue)

public TargetPoolInstanceHealth.Builder addHealthStatus(HealthStatus.Builder builderForValue)

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameter
Name Description
builderForValue HealthStatus.Builder
Returns
Type Description
TargetPoolInstanceHealth.Builder

addHealthStatus(int index, HealthStatus value)

public TargetPoolInstanceHealth.Builder addHealthStatus(int index, HealthStatus value)

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameters
Name Description
index int
value HealthStatus
Returns
Type Description
TargetPoolInstanceHealth.Builder

addHealthStatus(int index, HealthStatus.Builder builderForValue)

public TargetPoolInstanceHealth.Builder addHealthStatus(int index, HealthStatus.Builder builderForValue)

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameters
Name Description
index int
builderForValue HealthStatus.Builder
Returns
Type Description
TargetPoolInstanceHealth.Builder

addHealthStatusBuilder()

public HealthStatus.Builder addHealthStatusBuilder()

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Returns
Type Description
HealthStatus.Builder

addHealthStatusBuilder(int index)

public HealthStatus.Builder addHealthStatusBuilder(int index)

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameter
Name Description
index int
Returns
Type Description
HealthStatus.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TargetPoolInstanceHealth build()
Returns
Type Description
TargetPoolInstanceHealth

buildPartial()

public TargetPoolInstanceHealth buildPartial()
Returns
Type Description
TargetPoolInstanceHealth

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearHealthStatus()

public TargetPoolInstanceHealth.Builder clearHealthStatus()

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Returns
Type Description
TargetPoolInstanceHealth.Builder

clearKind()

public TargetPoolInstanceHealth.Builder clearKind()

[Output Only] Type of resource. Always compute#targetPoolInstanceHealth when checking the health of an instance.

optional string kind = 3292052;

Returns
Type Description
TargetPoolInstanceHealth.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public TargetPoolInstanceHealth getDefaultInstanceForType()
Returns
Type Description
TargetPoolInstanceHealth

getDescriptorForType()

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

getHealthStatus(int index)

public HealthStatus getHealthStatus(int index)

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameter
Name Description
index int
Returns
Type Description
HealthStatus

getHealthStatusBuilder(int index)

public HealthStatus.Builder getHealthStatusBuilder(int index)

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameter
Name Description
index int
Returns
Type Description
HealthStatus.Builder

getHealthStatusBuilderList()

public List<HealthStatus.Builder> getHealthStatusBuilderList()

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Returns
Type Description
List<Builder>

getHealthStatusCount()

public int getHealthStatusCount()

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Returns
Type Description
int

getHealthStatusList()

public List<HealthStatus> getHealthStatusList()

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Returns
Type Description
List<HealthStatus>

getHealthStatusOrBuilder(int index)

public HealthStatusOrBuilder getHealthStatusOrBuilder(int index)

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameter
Name Description
index int
Returns
Type Description
HealthStatusOrBuilder

getHealthStatusOrBuilderList()

public List<? extends HealthStatusOrBuilder> getHealthStatusOrBuilderList()

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.HealthStatusOrBuilder>

getKind()

public String getKind()

[Output Only] Type of resource. Always compute#targetPoolInstanceHealth when checking the health of an instance.

optional string kind = 3292052;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of resource. Always compute#targetPoolInstanceHealth when checking the health of an instance.

optional string kind = 3292052;

Returns
Type Description
ByteString

The bytes for kind.

hasKind()

public boolean hasKind()

[Output Only] Type of resource. Always compute#targetPoolInstanceHealth when checking the health of an instance.

optional string kind = 3292052;

Returns
Type Description
boolean

Whether the kind field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TargetPoolInstanceHealth other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeHealthStatus(int index)

public TargetPoolInstanceHealth.Builder removeHealthStatus(int index)

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameter
Name Description
index int
Returns
Type Description
TargetPoolInstanceHealth.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setHealthStatus(int index, HealthStatus value)

public TargetPoolInstanceHealth.Builder setHealthStatus(int index, HealthStatus value)

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameters
Name Description
index int
value HealthStatus
Returns
Type Description
TargetPoolInstanceHealth.Builder

setHealthStatus(int index, HealthStatus.Builder builderForValue)

public TargetPoolInstanceHealth.Builder setHealthStatus(int index, HealthStatus.Builder builderForValue)

repeated .google.cloud.compute.v1.HealthStatus health_status = 380545845;

Parameters
Name Description
index int
builderForValue HealthStatus.Builder
Returns
Type Description
TargetPoolInstanceHealth.Builder

setKind(String value)

public TargetPoolInstanceHealth.Builder setKind(String value)

[Output Only] Type of resource. Always compute#targetPoolInstanceHealth when checking the health of an instance.

optional string kind = 3292052;

Parameter
Name Description
value String

The kind to set.

Returns
Type Description
TargetPoolInstanceHealth.Builder

This builder for chaining.

setKindBytes(ByteString value)

public TargetPoolInstanceHealth.Builder setKindBytes(ByteString value)

[Output Only] Type of resource. Always compute#targetPoolInstanceHealth when checking the health of an instance.

optional string kind = 3292052;

Parameter
Name Description
value ByteString

The bytes for kind to set.

Returns
Type Description
TargetPoolInstanceHealth.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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