Class HostStatus.Builder (1.109.0)

public static final class HostStatus.Builder extends GeneratedMessage.Builder<HostStatus.Builder> implements HostStatusOrBuilder

Protobuf type google.cloud.compute.v1.HostStatus

Implements

HostStatusOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllRunningInstances(Iterable<String> values)

public HostStatus.Builder addAllRunningInstances(Iterable<String> values)

Output only. The URIs of the instances currently running on this host.

repeated string running_instances = 536292350;

Parameter
Name Description
values Iterable<String>

The runningInstances to add.

Returns
Type Description
HostStatus.Builder

This builder for chaining.

addRunningInstances(String value)

public HostStatus.Builder addRunningInstances(String value)

Output only. The URIs of the instances currently running on this host.

repeated string running_instances = 536292350;

Parameter
Name Description
value String

The runningInstances to add.

Returns
Type Description
HostStatus.Builder

This builder for chaining.

addRunningInstancesBytes(ByteString value)

public HostStatus.Builder addRunningInstancesBytes(ByteString value)

Output only. The URIs of the instances currently running on this host.

repeated string running_instances = 536292350;

Parameter
Name Description
value ByteString

The bytes of the runningInstances to add.

Returns
Type Description
HostStatus.Builder

This builder for chaining.

build()

public HostStatus build()
Returns
Type Description
HostStatus

buildPartial()

public HostStatus buildPartial()
Returns
Type Description
HostStatus

clear()

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

clearPhysicalTopology()

public HostStatus.Builder clearPhysicalTopology()

Output only. The physical topology of the reservation sub-block, if present

optional .google.cloud.compute.v1.HostPhysicalTopology physical_topology = 279778519;

Returns
Type Description
HostStatus.Builder

clearRunningInstances()

public HostStatus.Builder clearRunningInstances()

Output only. The URIs of the instances currently running on this host.

repeated string running_instances = 536292350;

Returns
Type Description
HostStatus.Builder

This builder for chaining.

getDefaultInstanceForType()

public HostStatus getDefaultInstanceForType()
Returns
Type Description
HostStatus

getDescriptorForType()

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

getPhysicalTopology()

public HostPhysicalTopology getPhysicalTopology()

Output only. The physical topology of the reservation sub-block, if present

optional .google.cloud.compute.v1.HostPhysicalTopology physical_topology = 279778519;

Returns
Type Description
HostPhysicalTopology

The physicalTopology.

getPhysicalTopologyBuilder()

public HostPhysicalTopology.Builder getPhysicalTopologyBuilder()

Output only. The physical topology of the reservation sub-block, if present

optional .google.cloud.compute.v1.HostPhysicalTopology physical_topology = 279778519;

Returns
Type Description
HostPhysicalTopology.Builder

getPhysicalTopologyOrBuilder()

public HostPhysicalTopologyOrBuilder getPhysicalTopologyOrBuilder()

Output only. The physical topology of the reservation sub-block, if present

optional .google.cloud.compute.v1.HostPhysicalTopology physical_topology = 279778519;

Returns
Type Description
HostPhysicalTopologyOrBuilder

getRunningInstances(int index)

public String getRunningInstances(int index)

Output only. The URIs of the instances currently running on this host.

repeated string running_instances = 536292350;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The runningInstances at the given index.

getRunningInstancesBytes(int index)

public ByteString getRunningInstancesBytes(int index)

Output only. The URIs of the instances currently running on this host.

repeated string running_instances = 536292350;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the runningInstances at the given index.

getRunningInstancesCount()

public int getRunningInstancesCount()

Output only. The URIs of the instances currently running on this host.

repeated string running_instances = 536292350;

Returns
Type Description
int

The count of runningInstances.

getRunningInstancesList()

public ProtocolStringList getRunningInstancesList()

Output only. The URIs of the instances currently running on this host.

repeated string running_instances = 536292350;

Returns
Type Description
ProtocolStringList

A list containing the runningInstances.

hasPhysicalTopology()

public boolean hasPhysicalTopology()

Output only. The physical topology of the reservation sub-block, if present

optional .google.cloud.compute.v1.HostPhysicalTopology physical_topology = 279778519;

Returns
Type Description
boolean

Whether the physicalTopology field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HostStatus other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePhysicalTopology(HostPhysicalTopology value)

public HostStatus.Builder mergePhysicalTopology(HostPhysicalTopology value)

Output only. The physical topology of the reservation sub-block, if present

optional .google.cloud.compute.v1.HostPhysicalTopology physical_topology = 279778519;

Parameter
Name Description
value HostPhysicalTopology
Returns
Type Description
HostStatus.Builder

setPhysicalTopology(HostPhysicalTopology value)

public HostStatus.Builder setPhysicalTopology(HostPhysicalTopology value)

Output only. The physical topology of the reservation sub-block, if present

optional .google.cloud.compute.v1.HostPhysicalTopology physical_topology = 279778519;

Parameter
Name Description
value HostPhysicalTopology
Returns
Type Description
HostStatus.Builder

setPhysicalTopology(HostPhysicalTopology.Builder builderForValue)

public HostStatus.Builder setPhysicalTopology(HostPhysicalTopology.Builder builderForValue)

Output only. The physical topology of the reservation sub-block, if present

optional .google.cloud.compute.v1.HostPhysicalTopology physical_topology = 279778519;

Parameter
Name Description
builderForValue HostPhysicalTopology.Builder
Returns
Type Description
HostStatus.Builder

setRunningInstances(int index, String value)

public HostStatus.Builder setRunningInstances(int index, String value)

Output only. The URIs of the instances currently running on this host.

repeated string running_instances = 536292350;

Parameters
Name Description
index int

The index to set the value at.

value String

The runningInstances to set.

Returns
Type Description
HostStatus.Builder

This builder for chaining.