Class HostPhysicalTopology.Builder (1.109.0)

public static final class HostPhysicalTopology.Builder extends GeneratedMessage.Builder<HostPhysicalTopology.Builder> implements HostPhysicalTopologyOrBuilder

Protobuf type google.cloud.compute.v1.HostPhysicalTopology

Static Methods

getDescriptor()

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

Methods

build()

public HostPhysicalTopology build()
Returns
Type Description
HostPhysicalTopology

buildPartial()

public HostPhysicalTopology buildPartial()
Returns
Type Description
HostPhysicalTopology

clear()

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

clearBlock()

public HostPhysicalTopology.Builder clearBlock()

The unique identifier of the capacity block within the cluster.

optional string block = 93832333;

Returns
Type Description
HostPhysicalTopology.Builder

This builder for chaining.

clearCluster()

public HostPhysicalTopology.Builder clearCluster()

The cluster name of the reservation sub-block.

optional string cluster = 335221242;

Returns
Type Description
HostPhysicalTopology.Builder

This builder for chaining.

clearHost()

public HostPhysicalTopology.Builder clearHost()

The unique identifier of the capacity host within the capacity sub-block.

optional string host = 3208616;

Returns
Type Description
HostPhysicalTopology.Builder

This builder for chaining.

clearSubBlock()

public HostPhysicalTopology.Builder clearSubBlock()

The unique identifier of the capacity sub-block within the capacity block.

optional string sub_block = 478033358;

Returns
Type Description
HostPhysicalTopology.Builder

This builder for chaining.

getBlock()

public String getBlock()

The unique identifier of the capacity block within the cluster.

optional string block = 93832333;

Returns
Type Description
String

The block.

getBlockBytes()

public ByteString getBlockBytes()

The unique identifier of the capacity block within the cluster.

optional string block = 93832333;

Returns
Type Description
ByteString

The bytes for block.

getCluster()

public String getCluster()

The cluster name of the reservation sub-block.

optional string cluster = 335221242;

Returns
Type Description
String

The cluster.

getClusterBytes()

public ByteString getClusterBytes()

The cluster name of the reservation sub-block.

optional string cluster = 335221242;

Returns
Type Description
ByteString

The bytes for cluster.

getDefaultInstanceForType()

public HostPhysicalTopology getDefaultInstanceForType()
Returns
Type Description
HostPhysicalTopology

getDescriptorForType()

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

getHost()

public String getHost()

The unique identifier of the capacity host within the capacity sub-block.

optional string host = 3208616;

Returns
Type Description
String

The host.

getHostBytes()

public ByteString getHostBytes()

The unique identifier of the capacity host within the capacity sub-block.

optional string host = 3208616;

Returns
Type Description
ByteString

The bytes for host.

getSubBlock()

public String getSubBlock()

The unique identifier of the capacity sub-block within the capacity block.

optional string sub_block = 478033358;

Returns
Type Description
String

The subBlock.

getSubBlockBytes()

public ByteString getSubBlockBytes()

The unique identifier of the capacity sub-block within the capacity block.

optional string sub_block = 478033358;

Returns
Type Description
ByteString

The bytes for subBlock.

hasBlock()

public boolean hasBlock()

The unique identifier of the capacity block within the cluster.

optional string block = 93832333;

Returns
Type Description
boolean

Whether the block field is set.

hasCluster()

public boolean hasCluster()

The cluster name of the reservation sub-block.

optional string cluster = 335221242;

Returns
Type Description
boolean

Whether the cluster field is set.

hasHost()

public boolean hasHost()

The unique identifier of the capacity host within the capacity sub-block.

optional string host = 3208616;

Returns
Type Description
boolean

Whether the host field is set.

hasSubBlock()

public boolean hasSubBlock()

The unique identifier of the capacity sub-block within the capacity block.

optional string sub_block = 478033358;

Returns
Type Description
boolean

Whether the subBlock field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HostPhysicalTopology other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setBlock(String value)

public HostPhysicalTopology.Builder setBlock(String value)

The unique identifier of the capacity block within the cluster.

optional string block = 93832333;

Parameter
Name Description
value String

The block to set.

Returns
Type Description
HostPhysicalTopology.Builder

This builder for chaining.

setBlockBytes(ByteString value)

public HostPhysicalTopology.Builder setBlockBytes(ByteString value)

The unique identifier of the capacity block within the cluster.

optional string block = 93832333;

Parameter
Name Description
value ByteString

The bytes for block to set.

Returns
Type Description
HostPhysicalTopology.Builder

This builder for chaining.

setCluster(String value)

public HostPhysicalTopology.Builder setCluster(String value)

The cluster name of the reservation sub-block.

optional string cluster = 335221242;

Parameter
Name Description
value String

The cluster to set.

Returns
Type Description
HostPhysicalTopology.Builder

This builder for chaining.

setClusterBytes(ByteString value)

public HostPhysicalTopology.Builder setClusterBytes(ByteString value)

The cluster name of the reservation sub-block.

optional string cluster = 335221242;

Parameter
Name Description
value ByteString

The bytes for cluster to set.

Returns
Type Description
HostPhysicalTopology.Builder

This builder for chaining.

setHost(String value)

public HostPhysicalTopology.Builder setHost(String value)

The unique identifier of the capacity host within the capacity sub-block.

optional string host = 3208616;

Parameter
Name Description
value String

The host to set.

Returns
Type Description
HostPhysicalTopology.Builder

This builder for chaining.

setHostBytes(ByteString value)

public HostPhysicalTopology.Builder setHostBytes(ByteString value)

The unique identifier of the capacity host within the capacity sub-block.

optional string host = 3208616;

Parameter
Name Description
value ByteString

The bytes for host to set.

Returns
Type Description
HostPhysicalTopology.Builder

This builder for chaining.

setSubBlock(String value)

public HostPhysicalTopology.Builder setSubBlock(String value)

The unique identifier of the capacity sub-block within the capacity block.

optional string sub_block = 478033358;

Parameter
Name Description
value String

The subBlock to set.

Returns
Type Description
HostPhysicalTopology.Builder

This builder for chaining.

setSubBlockBytes(ByteString value)

public HostPhysicalTopology.Builder setSubBlockBytes(ByteString value)

The unique identifier of the capacity sub-block within the capacity block.

optional string sub_block = 478033358;

Parameter
Name Description
value ByteString

The bytes for subBlock to set.

Returns
Type Description
HostPhysicalTopology.Builder

This builder for chaining.