Class BootDisk.Builder (0.1.0)

public static final class BootDisk.Builder extends GeneratedMessageV3.Builder<BootDisk.Builder> implements BootDiskOrBuilder

A Persistent disk used as the boot disk for a Compute Engine VM instance.

Protobuf type google.cloud.hypercomputecluster.v1beta.BootDisk

Implements

BootDiskOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BootDisk.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BootDisk.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public BootDisk.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BootDisk.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BootDisk.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BootDisk.Builder
Overrides

clearSizeGb()

public BootDisk.Builder clearSizeGb()

Required. Immutable. Size of the disk in gigabytes. Must be at least 10GB.

int64 size_gb = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
BootDisk.Builder

This builder for chaining.

clearType()

public BootDisk.Builder clearType()

Required. Immutable. Persistent disk type, in the format projects/{project}/zones/{zone}/diskTypes/{disk_type}.

string type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
BootDisk.Builder

This builder for chaining.

clone()

public BootDisk.Builder clone()
Returns
Type Description
BootDisk.Builder
Overrides

getDefaultInstanceForType()

public BootDisk getDefaultInstanceForType()
Returns
Type Description
BootDisk

getDescriptorForType()

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

getSizeGb()

public long getSizeGb()

Required. Immutable. Size of the disk in gigabytes. Must be at least 10GB.

int64 size_gb = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
long

The sizeGb.

getType()

public String getType()

Required. Immutable. Persistent disk type, in the format projects/{project}/zones/{zone}/diskTypes/{disk_type}.

string type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Required. Immutable. Persistent disk type, in the format projects/{project}/zones/{zone}/diskTypes/{disk_type}.

string type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for type.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BootDisk.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BootDisk.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public BootDisk.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BootDisk.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BootDisk.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BootDisk.Builder
Overrides

setSizeGb(long value)

public BootDisk.Builder setSizeGb(long value)

Required. Immutable. Size of the disk in gigabytes. Must be at least 10GB.

int64 size_gb = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value long

The sizeGb to set.

Returns
Type Description
BootDisk.Builder

This builder for chaining.

setType(String value)

public BootDisk.Builder setType(String value)

Required. Immutable. Persistent disk type, in the format projects/{project}/zones/{zone}/diskTypes/{disk_type}.

string type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The type to set.

Returns
Type Description
BootDisk.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public BootDisk.Builder setTypeBytes(ByteString value)

Required. Immutable. Persistent disk type, in the format projects/{project}/zones/{zone}/diskTypes/{disk_type}.

string type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
BootDisk.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final BootDisk.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BootDisk.Builder
Overrides