- 1.86.0 (latest)
- 1.85.0
- 1.84.0
- 1.83.0
- 1.82.0
- 1.80.0
- 1.78.0
- 1.77.0
- 1.74.0
- 1.73.0
- 1.72.0
- 1.70.0
- 1.69.0
- 1.68.0
- 1.67.0
- 1.66.0
- 1.65.0
- 1.64.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class Image.Builder extends GeneratedMessageV3.Builder<Image.Builder> implements ImageOrBuilderRepresents an Image resource. You can use images to create boot disks for your VM instances. For more information, read Images.
Protobuf type google.cloud.compute.v1.Image
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Image.BuilderImplements
ImageOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllGuestOsFeatures(Iterable<? extends GuestOsFeature> values)
public Image.Builder addAllGuestOsFeatures(Iterable<? extends GuestOsFeature> values)A list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available options, see the guestOSfeatures[].type parameter.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.compute.v1.GuestOsFeature> |
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
|
addAllLicenseCodes(Iterable<? extends Long> values)
public Image.Builder addAllLicenseCodes(Iterable<? extends Long> values)Integer license codes indicating which licenses are attached to this image.
repeated int64 license_codes = 45482664;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends java.lang.Long>The licenseCodes to add. |
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
This builder for chaining. |
addAllLicenses(Iterable<String> values)
public Image.Builder addAllLicenses(Iterable<String> values)Any applicable license URI.
repeated string licenses = 337642578;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The licenses to add. |
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
This builder for chaining. |
addAllStorageLocations(Iterable<String> values)
public Image.Builder addAllStorageLocations(Iterable<String> values)Cloud Storage bucket storage location of the image (regional or multi-regional).
repeated string storage_locations = 328005274;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The storageLocations to add. |
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
This builder for chaining. |
addGuestOsFeatures(GuestOsFeature value)
public Image.Builder addGuestOsFeatures(GuestOsFeature value)A list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available options, see the guestOSfeatures[].type parameter.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
| Parameter | |
|---|---|
| Name | Description |
value |
GuestOsFeature |
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
|
addGuestOsFeatures(GuestOsFeature.Builder builderForValue)
public Image.Builder addGuestOsFeatures(GuestOsFeature.Builder builderForValue)A list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available options, see the guestOSfeatures[].type parameter.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
GuestOsFeature.Builder |
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
|
addGuestOsFeatures(int index, GuestOsFeature value)
public Image.Builder addGuestOsFeatures(int index, GuestOsFeature value)A list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available options, see the guestOSfeatures[].type parameter.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
GuestOsFeature |
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
|
addGuestOsFeatures(int index, GuestOsFeature.Builder builderForValue)
public Image.Builder addGuestOsFeatures(int index, GuestOsFeature.Builder builderForValue)A list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available options, see the guestOSfeatures[].type parameter.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
GuestOsFeature.Builder |
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
|
addGuestOsFeaturesBuilder()
public GuestOsFeature.Builder addGuestOsFeaturesBuilder()A list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available options, see the guestOSfeatures[].type parameter.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
| Returns | |
|---|---|
| Type | Description |
GuestOsFeature.Builder |
|
addGuestOsFeaturesBuilder(int index)
public GuestOsFeature.Builder addGuestOsFeaturesBuilder(int index)A list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available options, see the guestOSfeatures[].type parameter.
repeated .google.cloud.compute.v1.GuestOsFeature guest_os_features = 79294545;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GuestOsFeature.Builder |
|
addLicenseCodes(long value)
public Image.Builder addLicenseCodes(long value)Integer license codes indicating which licenses are attached to this image.
repeated int64 license_codes = 45482664;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe licenseCodes to add. |
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
This builder for chaining. |
addLicenses(String value)
public Image.Builder addLicenses(String value)Any applicable license URI.
repeated string licenses = 337642578;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe licenses to add. |
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
This builder for chaining. |
addLicensesBytes(ByteString value)
public Image.Builder addLicensesBytes(ByteString value)Any applicable license URI.
repeated string licenses = 337642578;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the licenses to add. |
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Image.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
|
addStorageLocations(String value)
public Image.Builder addStorageLocations(String value)Cloud Storage bucket storage location of the image (regional or multi-regional).
repeated string storage_locations = 328005274;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe storageLocations to add. |
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
This builder for chaining. |
addStorageLocationsBytes(ByteString value)
public Image.Builder addStorageLocationsBytes(ByteString value)Cloud Storage bucket storage location of the image (regional or multi-regional).
repeated string storage_locations = 328005274;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the storageLocations to add. |
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
This builder for chaining. |
build()
public Image build()| Returns | |
|---|---|
| Type | Description |
Image |
|
buildPartial()
public Image buildPartial()| Returns | |
|---|---|
| Type | Description |
Image |
|
clear()
public Image.Builder clear()| Returns | |
|---|---|
| Type | Description |
Image.Builder |
|
clearArchitecture()
public Image.Builder clearArchitecture()The architecture of the image. Valid values are ARM64 or X86_64. Check the Architecture enum for the list of possible values.
optional string architecture = 302803283;
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
This builder for chaining. |
clearArchiveSizeBytes()
public Image.Builder clearArchiveSizeBytes()Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
optional int64 archive_size_bytes = 381093450;
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
This builder for chaining. |
clearCreationTimestamp()
public Image.Builder clearCreationTimestamp()[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
This builder for chaining. |
clearDeprecated()
public Image.Builder clearDeprecated()The deprecation status associated with this image.
optional .google.cloud.compute.v1.DeprecationStatus deprecated = 515138995;
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
|
clearDescription()
public Image.Builder clearDescription()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
This builder for chaining. |
clearDiskSizeGb()
public Image.Builder clearDiskSizeGb()Size of the image when restored onto a persistent disk (in GB).
optional int64 disk_size_gb = 316263735;
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
This builder for chaining. |
clearEnableConfidentialCompute()
public Image.Builder clearEnableConfidentialCompute()Whether this image is created from a confidential compute mode disk. [Output Only]: This field is not set by user, but from source disk.
optional bool enable_confidential_compute = 102135228;
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
This builder for chaining. |
clearFamily()
public Image.Builder clearFamily()The name of the image family to which this image belongs. The image family name can be from a publicly managed image family provided by Compute Engine, or from a custom image family you create. For example, centos-stream-9 is a publicly available image family. For more information, see Image family best practices. When creating disks, you can specify an image family instead of a specific image name. The image family always returns its latest image that is not deprecated. The name of the image family must comply with RFC1035.
optional string family = 328751972;
| Returns | |
|---|---|
| Type | Description |
Image.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Image.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |