Class BootDisk.Builder (0.1.0)

publicstaticfinalclass BootDisk.BuilderextendsGeneratedMessageV3.Builder<BootDisk.Builder>implementsBootDiskOrBuilder

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

Protobuf type google.cloud.hypercomputecluster.v1beta.BootDisk

Implements

BootDiskOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicBootDisk.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BootDisk.Builder
Overrides

build()

publicBootDiskbuild()
Returns
Type Description
BootDisk

buildPartial()

publicBootDiskbuildPartial()
Returns
Type Description
BootDisk

clear()

publicBootDisk.Builderclear()
Returns
Type Description
BootDisk.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicBootDisk.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BootDisk.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicBootDisk.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BootDisk.Builder
Overrides

clearSizeGb()

publicBootDisk.BuilderclearSizeGb()

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()

publicBootDisk.BuilderclearType()

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()

publicBootDisk.Builderclone()
Returns
Type Description
BootDisk.Builder
Overrides

getDefaultInstanceForType()

publicBootDiskgetDefaultInstanceForType()
Returns
Type Description
BootDisk

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSizeGb()

publiclonggetSizeGb()

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()

publicStringgetType()

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()

publicByteStringgetTypeBytes()

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()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BootDisk other)

publicBootDisk.BuildermergeFrom(BootDiskother)
Parameter
Name Description
other BootDisk
Returns
Type Description
BootDisk.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicBootDisk.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BootDisk.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicBootDisk.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
BootDisk.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalBootDisk.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BootDisk.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicBootDisk.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BootDisk.Builder
Overrides

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

publicBootDisk.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BootDisk.Builder
Overrides

setSizeGb(long value)

publicBootDisk.BuildersetSizeGb(longvalue)

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)

publicBootDisk.BuildersetType(Stringvalue)

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)

publicBootDisk.BuildersetTypeBytes(ByteStringvalue)

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)

publicfinalBootDisk.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BootDisk.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年12月17日 UTC.