Class TargetPoolInstanceHealth.Builder (1.17.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.HealthStatus>
Returns
TypeDescription
TargetPoolInstanceHealth.Builder

addHealthStatus(HealthStatus value)

public TargetPoolInstanceHealth.Builder addHealthStatus(HealthStatus value)

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

Parameter
NameDescription
valueHealthStatus
Returns
TypeDescription
TargetPoolInstanceHealth.Builder

addHealthStatus(HealthStatus.Builder builderForValue)

public TargetPoolInstanceHealth.Builder addHealthStatus(HealthStatus.Builder builderForValue)

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

Parameter
NameDescription
builderForValueHealthStatus.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueHealthStatus
Returns
TypeDescription
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
NameDescription
indexint
builderForValueHealthStatus.Builder
Returns
TypeDescription
TargetPoolInstanceHealth.Builder

addHealthStatusBuilder()

public HealthStatus.Builder addHealthStatusBuilder()

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

Returns
TypeDescription
HealthStatus.Builder

addHealthStatusBuilder(int index)

public HealthStatus.Builder addHealthStatusBuilder(int index)

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

Parameter
NameDescription
indexint
Returns
TypeDescription
HealthStatus.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TargetPoolInstanceHealth build()
Returns
TypeDescription
TargetPoolInstanceHealth

buildPartial()

public TargetPoolInstanceHealth buildPartial()
Returns
TypeDescription
TargetPoolInstanceHealth

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearHealthStatus()

public TargetPoolInstanceHealth.Builder clearHealthStatus()

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

Returns
TypeDescription
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
TypeDescription
TargetPoolInstanceHealth.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public TargetPoolInstanceHealth getDefaultInstanceForType()
Returns
TypeDescription
TargetPoolInstanceHealth

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHealthStatus(int index)

public HealthStatus getHealthStatus(int index)

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

Parameter
NameDescription
indexint
Returns
TypeDescription
HealthStatus

getHealthStatusBuilder(int index)

public HealthStatus.Builder getHealthStatusBuilder(int index)

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

Parameter
NameDescription
indexint
Returns
TypeDescription
HealthStatus.Builder

getHealthStatusBuilderList()

public List<HealthStatus.Builder> getHealthStatusBuilderList()

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

Returns
TypeDescription
List<Builder>

getHealthStatusCount()

public int getHealthStatusCount()

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

Returns
TypeDescription
int

getHealthStatusList()

public List<HealthStatus> getHealthStatusList()

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

Returns
TypeDescription
List<HealthStatus>

getHealthStatusOrBuilder(int index)

public HealthStatusOrBuilder getHealthStatusOrBuilder(int index)

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

Parameter
NameDescription
indexint
Returns
TypeDescription
HealthStatusOrBuilder

getHealthStatusOrBuilderList()

public List<? extends HealthStatusOrBuilder> getHealthStatusOrBuilderList()

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the kind field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TargetPoolInstanceHealth other)

public TargetPoolInstanceHealth.Builder mergeFrom(TargetPoolInstanceHealth other)
Parameter
NameDescription
otherTargetPoolInstanceHealth
Returns
TypeDescription
TargetPoolInstanceHealth.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeHealthStatus(int index)

public TargetPoolInstanceHealth.Builder removeHealthStatus(int index)

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TargetPoolInstanceHealth.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TargetPoolInstanceHealth.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueHealthStatus
Returns
TypeDescription
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
NameDescription
indexint
builderForValueHealthStatus.Builder
Returns
TypeDescription
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
NameDescription
valueString

The kind to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for kind to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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