public static final class Disk.Builder extends GeneratedMessage.Builder<Disk.Builder> implements DiskOrBuilderAdditional disk for managed instance groups.
Protobuf type google.cloud.hypercomputecluster.v1beta.Disk
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Disk.BuilderImplements
DiskOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Disk build()| Returns | |
|---|---|
| Type | Description |
Disk |
|
buildPartial()
public Disk buildPartial()| Returns | |
|---|---|
| Type | Description |
Disk |
|
clear()
public Disk.Builder clear()| Returns | |
|---|---|
| Type | Description |
Disk.Builder |
|
clearExistingDisk()
public Disk.Builder clearExistingDisk() Optional. An existing persistent disk to attach read-only to all VMs in
the managed instance group, in the format
projects/{project}/zones/{zone}/disks/{disk}.
string existing_disk = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
Disk.Builder |
This builder for chaining. |
clearImage()
public Disk.Builder clearImage()Optional. Source image for the disk.
string image = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
Disk.Builder |
This builder for chaining. |
clearSizeGb()
public Disk.Builder clearSizeGb()Optional. Size of the disk in GB. This field is required when creating a new disk.
int64 size_gb = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Disk.Builder |
This builder for chaining. |
clearSnapshot()
public Disk.Builder clearSnapshot()Optional. Source snapshot for the disk.
string snapshot = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
Disk.Builder |
This builder for chaining. |
clearSource()
public Disk.Builder clearSource()| Returns | |
|---|---|
| Type | Description |
Disk.Builder |
|
clearType()
public Disk.Builder clearType() Optional. Persistent disk
type, in the
format projects/{project}/zones/{zone}/diskTypes/{disk_type}.
This field is required when creating a new disk.
string type = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
Disk.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Disk getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Disk |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getExistingDisk()
public String getExistingDisk() Optional. An existing persistent disk to attach read-only to all VMs in
the managed instance group, in the format
projects/{project}/zones/{zone}/disks/{disk}.
string existing_disk = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The existingDisk. |
getExistingDiskBytes()
public ByteString getExistingDiskBytes() Optional. An existing persistent disk to attach read-only to all VMs in
the managed instance group, in the format
projects/{project}/zones/{zone}/disks/{disk}.
string existing_disk = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for existingDisk. |
getImage()
public String getImage()Optional. Source image for the disk.
string image = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The image. |
getImageBytes()
public ByteString getImageBytes()Optional. Source image for the disk.
string image = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for image. |
getSizeGb()
public long getSizeGb()Optional. Size of the disk in GB. This field is required when creating a new disk.
int64 size_gb = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
long |
The sizeGb. |
getSnapshot()
public String getSnapshot()Optional. Source snapshot for the disk.
string snapshot = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The snapshot. |
getSnapshotBytes()
public ByteString getSnapshotBytes()Optional. Source snapshot for the disk.
string snapshot = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for snapshot. |
getSourceCase()
public Disk.SourceCase getSourceCase()| Returns | |
|---|---|
| Type | Description |
Disk.SourceCase |
|
getType()
public String getType() Optional. Persistent disk
type, in the
format projects/{project}/zones/{zone}/diskTypes/{disk_type}.
This field is required when creating a new disk.
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}.
This field is required when creating a new disk.
string type = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for type. |
hasExistingDisk()
public boolean hasExistingDisk() Optional. An existing persistent disk to attach read-only to all VMs in
the managed instance group, in the format
projects/{project}/zones/{zone}/disks/{disk}.
string existing_disk = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the existingDisk field is set. |
hasImage()
public boolean hasImage()Optional. Source image for the disk.
string image = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the image field is set. |
hasSnapshot()
public boolean hasSnapshot()Optional. Source snapshot for the disk.
string snapshot = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the snapshot field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Disk other)
public Disk.Builder mergeFrom(Disk other)| Parameter | |
|---|---|
| Name | Description |
other |
Disk |
| Returns | |
|---|---|
| Type | Description |
Disk.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Disk.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Disk.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Disk.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Disk.Builder |
|
setExistingDisk(String value)
public Disk.Builder setExistingDisk(String value) Optional. An existing persistent disk to attach read-only to all VMs in
the managed instance group, in the format
projects/{project}/zones/{zone}/disks/{disk}.
string existing_disk = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe existingDisk to set. |
| Returns | |
|---|---|
| Type | Description |
Disk.Builder |
This builder for chaining. |
setExistingDiskBytes(ByteString value)
public Disk.Builder setExistingDiskBytes(ByteString value) Optional. An existing persistent disk to attach read-only to all VMs in
the managed instance group, in the format
projects/{project}/zones/{zone}/disks/{disk}.
string existing_disk = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for existingDisk to set. |
| Returns | |
|---|---|
| Type | Description |
Disk.Builder |
This builder for chaining. |
setImage(String value)
public Disk.Builder setImage(String value)Optional. Source image for the disk.
string image = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe image to set. |
| Returns | |
|---|---|
| Type | Description |
Disk.Builder |
This builder for chaining. |
setImageBytes(ByteString value)
public Disk.Builder setImageBytes(ByteString value)Optional. Source image for the disk.
string image = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for image to set. |
| Returns | |
|---|---|
| Type | Description |
Disk.Builder |
This builder for chaining. |
setSizeGb(long value)
public Disk.Builder setSizeGb(long value)Optional. Size of the disk in GB. This field is required when creating a new disk.
int64 size_gb = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe sizeGb to set. |
| Returns | |
|---|---|
| Type | Description |
Disk.Builder |
This builder for chaining. |
setSnapshot(String value)
public Disk.Builder setSnapshot(String value)Optional. Source snapshot for the disk.
string snapshot = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe snapshot to set. |
| Returns | |
|---|---|
| Type | Description |
Disk.Builder |
This builder for chaining. |
setSnapshotBytes(ByteString value)
public Disk.Builder setSnapshotBytes(ByteString value)Optional. Source snapshot for the disk.
string snapshot = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for snapshot to set. |
| Returns | |
|---|---|
| Type | Description |
Disk.Builder |
This builder for chaining. |
setType(String value)
public Disk.Builder setType(String value) Optional. Persistent disk
type, in the
format projects/{project}/zones/{zone}/diskTypes/{disk_type}.
This field is required when creating a new disk.
string type = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe type to set. |
| Returns | |
|---|---|
| Type | Description |
Disk.Builder |
This builder for chaining. |
setTypeBytes(ByteString value)
public Disk.Builder setTypeBytes(ByteString value) Optional. Persistent disk
type, in the
format projects/{project}/zones/{zone}/diskTypes/{disk_type}.
This field is required when creating a new disk.
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 |
Disk.Builder |
This builder for chaining. |