Interface BootDiskOrBuilder (0.1.0)

publicinterface BootDiskOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getSizeGb()

publicabstractlonggetSizeGb()

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

publicabstractStringgetType()

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

publicabstractByteStringgetTypeBytes()

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.

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.