public static final class BootDisk.Builder extends GeneratedMessage.Builder<BootDisk.Builder> implements BootDiskOrBuilderA Persistent disk used as the boot disk for a Compute Engine VM instance.
Protobuf type google.cloud.hypercomputecluster.v1beta.BootDisk
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > BootDisk.BuilderImplements
BootDiskOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllStoragePools(Iterable<String> values)
public BootDisk.Builder addAllStoragePools(Iterable<String> values) Optional. The storage
pools used
for creating the boot disk, in the format:
projects/{project}/zones/{zone}/storagePools/{storage_pool}.
Currently, only one Hyperdisk Balanced storage pool is supported. The storage pool must reside in the same zone as the compute instance.
repeated string storage_pools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The storagePools to add. |
| Returns | |
|---|---|
| Type | Description |
BootDisk.Builder |
This builder for chaining. |
addStoragePools(String value)
public BootDisk.Builder addStoragePools(String value) Optional. The storage
pools used
for creating the boot disk, in the format:
projects/{project}/zones/{zone}/storagePools/{storage_pool}.
Currently, only one Hyperdisk Balanced storage pool is supported. The storage pool must reside in the same zone as the compute instance.
repeated string storage_pools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe storagePools to add. |
| Returns | |
|---|---|
| Type | Description |
BootDisk.Builder |
This builder for chaining. |
addStoragePoolsBytes(ByteString value)
public BootDisk.Builder addStoragePoolsBytes(ByteString value) Optional. The storage
pools used
for creating the boot disk, in the format:
projects/{project}/zones/{zone}/storagePools/{storage_pool}.
Currently, only one Hyperdisk Balanced storage pool is supported. The storage pool must reside in the same zone as the compute instance.
repeated string storage_pools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the storagePools to add. |
| Returns | |
|---|---|
| Type | Description |
BootDisk.Builder |
This builder for chaining. |
build()
public BootDisk build()| Returns | |
|---|---|
| Type | Description |
BootDisk |
|
buildPartial()
public BootDisk buildPartial()| Returns | |
|---|---|
| Type | Description |
BootDisk |
|
clear()
public BootDisk.Builder clear()| Returns | |
|---|---|
| Type | Description |
BootDisk.Builder |
|
clearSizeGb()
public BootDisk.Builder clearSizeGb()Optional. The size of the disk in gigabytes (GB), which must be at least 40 GB.
int64 size_gb = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
BootDisk.Builder |
This builder for chaining. |
clearStoragePools()
public BootDisk.Builder clearStoragePools() Optional. The storage
pools used
for creating the boot disk, in the format:
projects/{project}/zones/{zone}/storagePools/{storage_pool}.
Currently, only one Hyperdisk Balanced storage pool is supported. The storage pool must reside in the same zone as the compute instance.
repeated string storage_pools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
BootDisk.Builder |
This builder for chaining. |
clearType()
public BootDisk.Builder clearType() Optional. Persistent disk
type, in the
format projects/{project}/zones/{zone}/diskTypes/{disk_type}.
string type = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
BootDisk.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public BootDisk getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
BootDisk |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getSizeGb()
public long getSizeGb()Optional. The size of the disk in gigabytes (GB), which must be at least 40 GB.
int64 size_gb = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
long |
The sizeGb. |
getStoragePools(int index)
public String getStoragePools(int index) Optional. The storage
pools used
for creating the boot disk, in the format:
projects/{project}/zones/{zone}/storagePools/{storage_pool}.
Currently, only one Hyperdisk Balanced storage pool is supported. The storage pool must reside in the same zone as the compute instance.
repeated string storage_pools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The storagePools at the given index. |
getStoragePoolsBytes(int index)
public ByteString getStoragePoolsBytes(int index) Optional. The storage
pools used
for creating the boot disk, in the format:
projects/{project}/zones/{zone}/storagePools/{storage_pool}.
Currently, only one Hyperdisk Balanced storage pool is supported. The storage pool must reside in the same zone as the compute instance.
repeated string storage_pools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the storagePools at the given index. |
getStoragePoolsCount()
public int getStoragePoolsCount() Optional. The storage
pools used
for creating the boot disk, in the format:
projects/{project}/zones/{zone}/storagePools/{storage_pool}.
Currently, only one Hyperdisk Balanced storage pool is supported. The storage pool must reside in the same zone as the compute instance.
repeated string storage_pools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
int |
The count of storagePools. |
getStoragePoolsList()
public ProtocolStringList getStoragePoolsList() Optional. The storage
pools used
for creating the boot disk, in the format:
projects/{project}/zones/{zone}/storagePools/{storage_pool}.
Currently, only one Hyperdisk Balanced storage pool is supported. The storage pool must reside in the same zone as the compute instance.
repeated string storage_pools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the storagePools. |
getType()
public String getType() Optional. Persistent disk
type, in the
format projects/{project}/zones/{zone}/diskTypes/{disk_type}.
string type = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The type. |
getTypeBytes()
public ByteString getTypeBytes() Optional. Persistent disk
type, in the
format projects/{project}/zones/{zone}/diskTypes/{disk_type}.
string type = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for type. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(BootDisk other)
public BootDisk.Builder mergeFrom(BootDisk other)| Parameter | |
|---|---|
| Name | Description |
other |
BootDisk |
| Returns | |
|---|---|
| Type | Description |
BootDisk.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BootDisk.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
BootDisk.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BootDisk.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BootDisk.Builder |
|
setSizeGb(long value)
public BootDisk.Builder setSizeGb(long value)Optional. The size of the disk in gigabytes (GB), which must be at least 40 GB.
int64 size_gb = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe sizeGb to set. |
| Returns | |
|---|---|
| Type | Description |
BootDisk.Builder |
This builder for chaining. |
setStoragePools(int index, String value)
public BootDisk.Builder setStoragePools(int index, String value) Optional. The storage
pools used
for creating the boot disk, in the format:
projects/{project}/zones/{zone}/storagePools/{storage_pool}.
Currently, only one Hyperdisk Balanced storage pool is supported. The storage pool must reside in the same zone as the compute instance.
repeated string storage_pools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe storagePools to set. |
| Returns | |
|---|---|
| Type | Description |
BootDisk.Builder |
This builder for chaining. |
setType(String value)
public BootDisk.Builder setType(String value) Optional. Persistent disk
type, in the
format projects/{project}/zones/{zone}/diskTypes/{disk_type}.
string type = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe type to set. |
| Returns | |
|---|---|
| Type | Description |
BootDisk.Builder |
This builder for chaining. |
setTypeBytes(ByteString value)
public BootDisk.Builder setTypeBytes(ByteString value) Optional. Persistent disk
type, in the
format projects/{project}/zones/{zone}/diskTypes/{disk_type}.
string type = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for type to set. |
| Returns | |
|---|---|
| Type | Description |
BootDisk.Builder |
This builder for chaining. |