Class MachineImage.Builder (1.40.0)

public static final class MachineImage.Builder extends GeneratedMessageV3.Builder<MachineImage.Builder> implements MachineImageOrBuilder

Represents a machine image resource. A machine image is a Compute Engine resource that stores all the configuration, metadata, permissions, and data from one or more disks required to create a Virtual machine (VM) instance. For more information, see Machine images.

Protobuf type google.cloud.compute.v1.MachineImage

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllSavedDisks(Iterable<? extends SavedDisk> values)

public MachineImage.Builder addAllSavedDisks(Iterable<? extends SavedDisk> values)

An array of Machine Image specific properties for disks attached to the source instance

repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.SavedDisk>
Returns
TypeDescription
MachineImage.Builder

addAllSourceDiskEncryptionKeys(Iterable<? extends SourceDiskEncryptionKey> values)

public MachineImage.Builder addAllSourceDiskEncryptionKeys(Iterable<? extends SourceDiskEncryptionKey> values)

[Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key.

repeated .google.cloud.compute.v1.SourceDiskEncryptionKey source_disk_encryption_keys = 370408498;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.SourceDiskEncryptionKey>
Returns
TypeDescription
MachineImage.Builder

addAllStorageLocations(Iterable<String> values)

public MachineImage.Builder addAllStorageLocations(Iterable<String> values)

The regional or multi-regional Cloud Storage bucket location where the machine image is stored.

repeated string storage_locations = 328005274;

Parameter
NameDescription
valuesIterable<String>

The storageLocations to add.

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MachineImage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MachineImage.Builder
Overrides

addSavedDisks(SavedDisk value)

public MachineImage.Builder addSavedDisks(SavedDisk value)

An array of Machine Image specific properties for disks attached to the source instance

repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;

Parameter
NameDescription
valueSavedDisk
Returns
TypeDescription
MachineImage.Builder

addSavedDisks(SavedDisk.Builder builderForValue)

public MachineImage.Builder addSavedDisks(SavedDisk.Builder builderForValue)

An array of Machine Image specific properties for disks attached to the source instance

repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;

Parameter
NameDescription
builderForValueSavedDisk.Builder
Returns
TypeDescription
MachineImage.Builder

addSavedDisks(int index, SavedDisk value)

public MachineImage.Builder addSavedDisks(int index, SavedDisk value)

An array of Machine Image specific properties for disks attached to the source instance

repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;

Parameters
NameDescription
indexint
valueSavedDisk
Returns
TypeDescription
MachineImage.Builder

addSavedDisks(int index, SavedDisk.Builder builderForValue)

public MachineImage.Builder addSavedDisks(int index, SavedDisk.Builder builderForValue)

An array of Machine Image specific properties for disks attached to the source instance

repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;

Parameters
NameDescription
indexint
builderForValueSavedDisk.Builder
Returns
TypeDescription
MachineImage.Builder

addSavedDisksBuilder()

public SavedDisk.Builder addSavedDisksBuilder()

An array of Machine Image specific properties for disks attached to the source instance

repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;

Returns
TypeDescription
SavedDisk.Builder

addSavedDisksBuilder(int index)

public SavedDisk.Builder addSavedDisksBuilder(int index)

An array of Machine Image specific properties for disks attached to the source instance

repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;

Parameter
NameDescription
indexint
Returns
TypeDescription
SavedDisk.Builder

addSourceDiskEncryptionKeys(SourceDiskEncryptionKey value)

public MachineImage.Builder addSourceDiskEncryptionKeys(SourceDiskEncryptionKey value)

[Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key.

repeated .google.cloud.compute.v1.SourceDiskEncryptionKey source_disk_encryption_keys = 370408498;

Parameter
NameDescription
valueSourceDiskEncryptionKey
Returns
TypeDescription
MachineImage.Builder

addSourceDiskEncryptionKeys(SourceDiskEncryptionKey.Builder builderForValue)

public MachineImage.Builder addSourceDiskEncryptionKeys(SourceDiskEncryptionKey.Builder builderForValue)

[Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key.

repeated .google.cloud.compute.v1.SourceDiskEncryptionKey source_disk_encryption_keys = 370408498;

Parameter
NameDescription
builderForValueSourceDiskEncryptionKey.Builder
Returns
TypeDescription
MachineImage.Builder

addSourceDiskEncryptionKeys(int index, SourceDiskEncryptionKey value)

public MachineImage.Builder addSourceDiskEncryptionKeys(int index, SourceDiskEncryptionKey value)

[Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key.

repeated .google.cloud.compute.v1.SourceDiskEncryptionKey source_disk_encryption_keys = 370408498;

Parameters
NameDescription
indexint
valueSourceDiskEncryptionKey
Returns
TypeDescription
MachineImage.Builder

addSourceDiskEncryptionKeys(int index, SourceDiskEncryptionKey.Builder builderForValue)

public MachineImage.Builder addSourceDiskEncryptionKeys(int index, SourceDiskEncryptionKey.Builder builderForValue)

[Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key.

repeated .google.cloud.compute.v1.SourceDiskEncryptionKey source_disk_encryption_keys = 370408498;

Parameters
NameDescription
indexint
builderForValueSourceDiskEncryptionKey.Builder
Returns
TypeDescription
MachineImage.Builder

addSourceDiskEncryptionKeysBuilder()

public SourceDiskEncryptionKey.Builder addSourceDiskEncryptionKeysBuilder()

[Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key.

repeated .google.cloud.compute.v1.SourceDiskEncryptionKey source_disk_encryption_keys = 370408498;

Returns
TypeDescription
SourceDiskEncryptionKey.Builder

addSourceDiskEncryptionKeysBuilder(int index)

public SourceDiskEncryptionKey.Builder addSourceDiskEncryptionKeysBuilder(int index)

[Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key.

repeated .google.cloud.compute.v1.SourceDiskEncryptionKey source_disk_encryption_keys = 370408498;

Parameter
NameDescription
indexint
Returns
TypeDescription
SourceDiskEncryptionKey.Builder

addStorageLocations(String value)

public MachineImage.Builder addStorageLocations(String value)

The regional or multi-regional Cloud Storage bucket location where the machine image is stored.

repeated string storage_locations = 328005274;

Parameter
NameDescription
valueString

The storageLocations to add.

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

addStorageLocationsBytes(ByteString value)

public MachineImage.Builder addStorageLocationsBytes(ByteString value)

The regional or multi-regional Cloud Storage bucket location where the machine image is stored.

repeated string storage_locations = 328005274;

Parameter
NameDescription
valueByteString

The bytes of the storageLocations to add.

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

build()

public MachineImage build()
Returns
TypeDescription
MachineImage

buildPartial()

public MachineImage buildPartial()
Returns
TypeDescription
MachineImage

clear()

public MachineImage.Builder clear()
Returns
TypeDescription
MachineImage.Builder
Overrides

clearCreationTimestamp()

public MachineImage.Builder clearCreationTimestamp()

[Output Only] The creation timestamp for this machine image in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

clearDescription()

public MachineImage.Builder clearDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public MachineImage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MachineImage.Builder
Overrides

clearGuestFlush()

public MachineImage.Builder clearGuestFlush()

[Input Only] Whether to attempt an application consistent machine image by informing the OS to prepare for the snapshot process.

optional bool guest_flush = 385550813;

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

clearId()

public MachineImage.Builder clearId()

[Output Only] A unique identifier for this machine image. The server defines this identifier.

optional uint64 id = 3355;

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

clearInstanceProperties()

public MachineImage.Builder clearInstanceProperties()

[Output Only] Properties of source instance

optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;

Returns
TypeDescription
MachineImage.Builder

clearKind()

public MachineImage.Builder clearKind()

[Output Only] The resource type, which is always compute#machineImage for machine image.

optional string kind = 3292052;

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

clearMachineImageEncryptionKey()

public MachineImage.Builder clearMachineImageEncryptionKey()

Encrypts the machine image using a customer-supplied encryption key. After you encrypt a machine image using a customer-supplied key, you must provide the same key if you use the machine image later. For example, you must provide the encryption key when you create an instance from the encrypted machine image in a future request. Customer-supplied encryption keys do not protect access to metadata of the machine image. If you do not provide an encryption key when creating the machine image, then the machine image will be encrypted using an automatically generated key and you do not need to provide a key to use the machine image later.

optional .google.cloud.compute.v1.CustomerEncryptionKey machine_image_encryption_key = 528089087;

Returns
TypeDescription
MachineImage.Builder

clearName()

public MachineImage.Builder clearName()

Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public MachineImage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
MachineImage.Builder
Overrides

clearSatisfiesPzs()

public MachineImage.Builder clearSatisfiesPzs()

[Output Only] Reserved for future use.

optional bool satisfies_pzs = 480964267;

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

clearSavedDisks()

public MachineImage.Builder clearSavedDisks()

An array of Machine Image specific properties for disks attached to the source instance

repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;

Returns
TypeDescription
MachineImage.Builder
public MachineImage.Builder clearSelfLink()

[Output Only] The URL for this machine image. The server defines this URL.

optional string self_link = 456214797;

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

clearSourceDiskEncryptionKeys()

public MachineImage.Builder clearSourceDiskEncryptionKeys()

[Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key.

repeated .google.cloud.compute.v1.SourceDiskEncryptionKey source_disk_encryption_keys = 370408498;

Returns
TypeDescription
MachineImage.Builder

clearSourceInstance()

public MachineImage.Builder clearSourceInstance()

The source instance used to create the machine image. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance

optional string source_instance = 396315705;

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

clearSourceInstanceProperties()

public MachineImage.Builder clearSourceInstanceProperties()

[Output Only] DEPRECATED: Please use instance_properties instead for source instance related properties. New properties will not be added to this field.

optional .google.cloud.compute.v1.SourceInstanceProperties source_instance_properties = 475195641;

Returns
TypeDescription
MachineImage.Builder

clearStatus()

public MachineImage.Builder clearStatus()

[Output Only] The status of the machine image. One of the following values: INVALID, CREATING, READY, DELETING, and UPLOADING. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

clearStorageLocations()

public MachineImage.Builder clearStorageLocations()

The regional or multi-regional Cloud Storage bucket location where the machine image is stored.

repeated string storage_locations = 328005274;

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

clearTotalStorageBytes()

public MachineImage.Builder clearTotalStorageBytes()

[Output Only] Total size of the storage used by the machine image.

optional int64 total_storage_bytes = 81855468;

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

clone()

public MachineImage.Builder clone()
Returns
TypeDescription
MachineImage.Builder
Overrides

getCreationTimestamp()

public String getCreationTimestamp()

[Output Only] The creation timestamp for this machine image in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

[Output Only] The creation timestamp for this machine image in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
ByteString

The bytes for creationTimestamp.

getDefaultInstanceForType()

public MachineImage getDefaultInstanceForType()
Returns
TypeDescription
MachineImage

getDescription()

public String getDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGuestFlush()

public boolean getGuestFlush()

[Input Only] Whether to attempt an application consistent machine image by informing the OS to prepare for the snapshot process.

optional bool guest_flush = 385550813;

Returns
TypeDescription
boolean

The guestFlush.

getId()

public long getId()

[Output Only] A unique identifier for this machine image. The server defines this identifier.

optional uint64 id = 3355;

Returns
TypeDescription
long

The id.

getInstanceProperties()

public InstanceProperties getInstanceProperties()

[Output Only] Properties of source instance

optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;

Returns
TypeDescription
InstanceProperties

The instanceProperties.

getInstancePropertiesBuilder()

public InstanceProperties.Builder getInstancePropertiesBuilder()

[Output Only] Properties of source instance

optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;

Returns
TypeDescription
InstanceProperties.Builder

getInstancePropertiesOrBuilder()

public InstancePropertiesOrBuilder getInstancePropertiesOrBuilder()

[Output Only] Properties of source instance

optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;

Returns
TypeDescription
InstancePropertiesOrBuilder

getKind()

public String getKind()

[Output Only] The resource type, which is always compute#machineImage for machine image.

optional string kind = 3292052;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] The resource type, which is always compute#machineImage for machine image.

optional string kind = 3292052;

Returns
TypeDescription
ByteString

The bytes for kind.

getMachineImageEncryptionKey()

public CustomerEncryptionKey getMachineImageEncryptionKey()

Encrypts the machine image using a customer-supplied encryption key. After you encrypt a machine image using a customer-supplied key, you must provide the same key if you use the machine image later. For example, you must provide the encryption key when you create an instance from the encrypted machine image in a future request. Customer-supplied encryption keys do not protect access to metadata of the machine image. If you do not provide an encryption key when creating the machine image, then the machine image will be encrypted using an automatically generated key and you do not need to provide a key to use the machine image later.

optional .google.cloud.compute.v1.CustomerEncryptionKey machine_image_encryption_key = 528089087;

Returns
TypeDescription
CustomerEncryptionKey

The machineImageEncryptionKey.

getMachineImageEncryptionKeyBuilder()

public CustomerEncryptionKey.Builder getMachineImageEncryptionKeyBuilder()

Encrypts the machine image using a customer-supplied encryption key. After you encrypt a machine image using a customer-supplied key, you must provide the same key if you use the machine image later. For example, you must provide the encryption key when you create an instance from the encrypted machine image in a future request. Customer-supplied encryption keys do not protect access to metadata of the machine image. If you do not provide an encryption key when creating the machine image, then the machine image will be encrypted using an automatically generated key and you do not need to provide a key to use the machine image later.

optional .google.cloud.compute.v1.CustomerEncryptionKey machine_image_encryption_key = 528089087;

Returns
TypeDescription
CustomerEncryptionKey.Builder

getMachineImageEncryptionKeyOrBuilder()

public CustomerEncryptionKeyOrBuilder getMachineImageEncryptionKeyOrBuilder()

Encrypts the machine image using a customer-supplied encryption key. After you encrypt a machine image using a customer-supplied key, you must provide the same key if you use the machine image later. For example, you must provide the encryption key when you create an instance from the encrypted machine image in a future request. Customer-supplied encryption keys do not protect access to metadata of the machine image. If you do not provide an encryption key when creating the machine image, then the machine image will be encrypted using an automatically generated key and you do not need to provide a key to use the machine image later.

optional .google.cloud.compute.v1.CustomerEncryptionKey machine_image_encryption_key = 528089087;

Returns
TypeDescription
CustomerEncryptionKeyOrBuilder

getName()

public String getName()

Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
TypeDescription
ByteString

The bytes for name.

getSatisfiesPzs()

public boolean getSatisfiesPzs()

[Output Only] Reserved for future use.

optional bool satisfies_pzs = 480964267;

Returns
TypeDescription
boolean

The satisfiesPzs.

getSavedDisks(int index)

public SavedDisk getSavedDisks(int index)

An array of Machine Image specific properties for disks attached to the source instance

repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;

Parameter
NameDescription
indexint
Returns
TypeDescription
SavedDisk

getSavedDisksBuilder(int index)

public SavedDisk.Builder getSavedDisksBuilder(int index)

An array of Machine Image specific properties for disks attached to the source instance

repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;

Parameter
NameDescription
indexint
Returns
TypeDescription
SavedDisk.Builder

getSavedDisksBuilderList()

public List<SavedDisk.Builder> getSavedDisksBuilderList()

An array of Machine Image specific properties for disks attached to the source instance

repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;

Returns
TypeDescription
List<Builder>

getSavedDisksCount()

public int getSavedDisksCount()

An array of Machine Image specific properties for disks attached to the source instance

repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;

Returns
TypeDescription
int

getSavedDisksList()

public List<SavedDisk> getSavedDisksList()

An array of Machine Image specific properties for disks attached to the source instance

repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;

Returns
TypeDescription
List<SavedDisk>

getSavedDisksOrBuilder(int index)

public SavedDiskOrBuilder getSavedDisksOrBuilder(int index)

An array of Machine Image specific properties for disks attached to the source instance

repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;

Parameter
NameDescription
indexint
Returns
TypeDescription
SavedDiskOrBuilder

getSavedDisksOrBuilderList()

public List<? extends SavedDiskOrBuilder> getSavedDisksOrBuilderList()

An array of Machine Image specific properties for disks attached to the source instance

repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.SavedDiskOrBuilder>
public String getSelfLink()

[Output Only] The URL for this machine image. The server defines this URL.

optional string self_link = 456214797;

Returns
TypeDescription
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

[Output Only] The URL for this machine image. The server defines this URL.

optional string self_link = 456214797;

Returns
TypeDescription
ByteString

The bytes for selfLink.

getSourceDiskEncryptionKeys(int index)

public SourceDiskEncryptionKey getSourceDiskEncryptionKeys(int index)

[Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key.

repeated .google.cloud.compute.v1.SourceDiskEncryptionKey source_disk_encryption_keys = 370408498;

Parameter
NameDescription
indexint
Returns
TypeDescription
SourceDiskEncryptionKey

getSourceDiskEncryptionKeysBuilder(int index)

public SourceDiskEncryptionKey.Builder getSourceDiskEncryptionKeysBuilder(int index)

[Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key.

repeated .google.cloud.compute.v1.SourceDiskEncryptionKey source_disk_encryption_keys = 370408498;

Parameter
NameDescription
indexint
Returns
TypeDescription
SourceDiskEncryptionKey.Builder

getSourceDiskEncryptionKeysBuilderList()

public List<SourceDiskEncryptionKey.Builder> getSourceDiskEncryptionKeysBuilderList()

[Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key.

repeated .google.cloud.compute.v1.SourceDiskEncryptionKey source_disk_encryption_keys = 370408498;

Returns
TypeDescription
List<Builder>

getSourceDiskEncryptionKeysCount()

public int getSourceDiskEncryptionKeysCount()

[Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key.

repeated .google.cloud.compute.v1.SourceDiskEncryptionKey source_disk_encryption_keys = 370408498;

Returns
TypeDescription
int

getSourceDiskEncryptionKeysList()

public List<SourceDiskEncryptionKey> getSourceDiskEncryptionKeysList()

[Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key.

repeated .google.cloud.compute.v1.SourceDiskEncryptionKey source_disk_encryption_keys = 370408498;

Returns
TypeDescription
List<SourceDiskEncryptionKey>

getSourceDiskEncryptionKeysOrBuilder(int index)

public SourceDiskEncryptionKeyOrBuilder getSourceDiskEncryptionKeysOrBuilder(int index)

[Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key.

repeated .google.cloud.compute.v1.SourceDiskEncryptionKey source_disk_encryption_keys = 370408498;

Parameter
NameDescription
indexint
Returns
TypeDescription
SourceDiskEncryptionKeyOrBuilder

getSourceDiskEncryptionKeysOrBuilderList()

public List<? extends SourceDiskEncryptionKeyOrBuilder> getSourceDiskEncryptionKeysOrBuilderList()

[Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key.

repeated .google.cloud.compute.v1.SourceDiskEncryptionKey source_disk_encryption_keys = 370408498;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.SourceDiskEncryptionKeyOrBuilder>

getSourceInstance()

public String getSourceInstance()

The source instance used to create the machine image. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance

optional string source_instance = 396315705;

Returns
TypeDescription
String

The sourceInstance.

getSourceInstanceBytes()

public ByteString getSourceInstanceBytes()

The source instance used to create the machine image. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance

optional string source_instance = 396315705;

Returns
TypeDescription
ByteString

The bytes for sourceInstance.

getSourceInstanceProperties()

public SourceInstanceProperties getSourceInstanceProperties()

[Output Only] DEPRECATED: Please use instance_properties instead for source instance related properties. New properties will not be added to this field.

optional .google.cloud.compute.v1.SourceInstanceProperties source_instance_properties = 475195641;

Returns
TypeDescription
SourceInstanceProperties

The sourceInstanceProperties.

getSourceInstancePropertiesBuilder()

public SourceInstanceProperties.Builder getSourceInstancePropertiesBuilder()

[Output Only] DEPRECATED: Please use instance_properties instead for source instance related properties. New properties will not be added to this field.

optional .google.cloud.compute.v1.SourceInstanceProperties source_instance_properties = 475195641;

Returns
TypeDescription
SourceInstanceProperties.Builder

getSourceInstancePropertiesOrBuilder()

public SourceInstancePropertiesOrBuilder getSourceInstancePropertiesOrBuilder()

[Output Only] DEPRECATED: Please use instance_properties instead for source instance related properties. New properties will not be added to this field.

optional .google.cloud.compute.v1.SourceInstanceProperties source_instance_properties = 475195641;

Returns
TypeDescription
SourceInstancePropertiesOrBuilder

getStatus()

public String getStatus()

[Output Only] The status of the machine image. One of the following values: INVALID, CREATING, READY, DELETING, and UPLOADING. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
String

The status.

getStatusBytes()

public ByteString getStatusBytes()

[Output Only] The status of the machine image. One of the following values: INVALID, CREATING, READY, DELETING, and UPLOADING. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
ByteString

The bytes for status.

getStorageLocations(int index)

public String getStorageLocations(int index)

The regional or multi-regional Cloud Storage bucket location where the machine image is stored.

repeated string storage_locations = 328005274;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The storageLocations at the given index.

getStorageLocationsBytes(int index)

public ByteString getStorageLocationsBytes(int index)

The regional or multi-regional Cloud Storage bucket location where the machine image is stored.

repeated string storage_locations = 328005274;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the storageLocations at the given index.

getStorageLocationsCount()

public int getStorageLocationsCount()

The regional or multi-regional Cloud Storage bucket location where the machine image is stored.

repeated string storage_locations = 328005274;

Returns
TypeDescription
int

The count of storageLocations.

getStorageLocationsList()

public ProtocolStringList getStorageLocationsList()

The regional or multi-regional Cloud Storage bucket location where the machine image is stored.

repeated string storage_locations = 328005274;

Returns
TypeDescription
ProtocolStringList

A list containing the storageLocations.

getTotalStorageBytes()

public long getTotalStorageBytes()

[Output Only] Total size of the storage used by the machine image.

optional int64 total_storage_bytes = 81855468;

Returns
TypeDescription
long

The totalStorageBytes.

hasCreationTimestamp()

public boolean hasCreationTimestamp()

[Output Only] The creation timestamp for this machine image in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
boolean

Whether the creationTimestamp field is set.

hasDescription()

public boolean hasDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
TypeDescription
boolean

Whether the description field is set.

hasGuestFlush()

public boolean hasGuestFlush()

[Input Only] Whether to attempt an application consistent machine image by informing the OS to prepare for the snapshot process.

optional bool guest_flush = 385550813;

Returns
TypeDescription
boolean

Whether the guestFlush field is set.

hasId()

public boolean hasId()

[Output Only] A unique identifier for this machine image. The server defines this identifier.

optional uint64 id = 3355;

Returns
TypeDescription
boolean

Whether the id field is set.

hasInstanceProperties()

public boolean hasInstanceProperties()

[Output Only] Properties of source instance

optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;

Returns
TypeDescription
boolean

Whether the instanceProperties field is set.

hasKind()

public boolean hasKind()

[Output Only] The resource type, which is always compute#machineImage for machine image.

optional string kind = 3292052;

Returns
TypeDescription
boolean

Whether the kind field is set.

hasMachineImageEncryptionKey()

public boolean hasMachineImageEncryptionKey()

Encrypts the machine image using a customer-supplied encryption key. After you encrypt a machine image using a customer-supplied key, you must provide the same key if you use the machine image later. For example, you must provide the encryption key when you create an instance from the encrypted machine image in a future request. Customer-supplied encryption keys do not protect access to metadata of the machine image. If you do not provide an encryption key when creating the machine image, then the machine image will be encrypted using an automatically generated key and you do not need to provide a key to use the machine image later.

optional .google.cloud.compute.v1.CustomerEncryptionKey machine_image_encryption_key = 528089087;

Returns
TypeDescription
boolean

Whether the machineImageEncryptionKey field is set.

hasName()

public boolean hasName()

Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
TypeDescription
boolean

Whether the name field is set.

hasSatisfiesPzs()

public boolean hasSatisfiesPzs()

[Output Only] Reserved for future use.

optional bool satisfies_pzs = 480964267;

Returns
TypeDescription
boolean

Whether the satisfiesPzs field is set.

public boolean hasSelfLink()

[Output Only] The URL for this machine image. The server defines this URL.

optional string self_link = 456214797;

Returns
TypeDescription
boolean

Whether the selfLink field is set.

hasSourceInstance()

public boolean hasSourceInstance()

The source instance used to create the machine image. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance

optional string source_instance = 396315705;

Returns
TypeDescription
boolean

Whether the sourceInstance field is set.

hasSourceInstanceProperties()

public boolean hasSourceInstanceProperties()

[Output Only] DEPRECATED: Please use instance_properties instead for source instance related properties. New properties will not be added to this field.

optional .google.cloud.compute.v1.SourceInstanceProperties source_instance_properties = 475195641;

Returns
TypeDescription
boolean

Whether the sourceInstanceProperties field is set.

hasStatus()

public boolean hasStatus()

[Output Only] The status of the machine image. One of the following values: INVALID, CREATING, READY, DELETING, and UPLOADING. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
TypeDescription
boolean

Whether the status field is set.

hasTotalStorageBytes()

public boolean hasTotalStorageBytes()

[Output Only] Total size of the storage used by the machine image.

optional int64 total_storage_bytes = 81855468;

Returns
TypeDescription
boolean

Whether the totalStorageBytes field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MachineImage other)

public MachineImage.Builder mergeFrom(MachineImage other)
Parameter
NameDescription
otherMachineImage
Returns
TypeDescription
MachineImage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MachineImage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MachineImage.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MachineImage.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MachineImage.Builder
Overrides

mergeInstanceProperties(InstanceProperties value)

public MachineImage.Builder mergeInstanceProperties(InstanceProperties value)

[Output Only] Properties of source instance

optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;

Parameter
NameDescription
valueInstanceProperties
Returns
TypeDescription
MachineImage.Builder

mergeMachineImageEncryptionKey(CustomerEncryptionKey value)

public MachineImage.Builder mergeMachineImageEncryptionKey(CustomerEncryptionKey value)

Encrypts the machine image using a customer-supplied encryption key. After you encrypt a machine image using a customer-supplied key, you must provide the same key if you use the machine image later. For example, you must provide the encryption key when you create an instance from the encrypted machine image in a future request. Customer-supplied encryption keys do not protect access to metadata of the machine image. If you do not provide an encryption key when creating the machine image, then the machine image will be encrypted using an automatically generated key and you do not need to provide a key to use the machine image later.

optional .google.cloud.compute.v1.CustomerEncryptionKey machine_image_encryption_key = 528089087;

Parameter
NameDescription
valueCustomerEncryptionKey
Returns
TypeDescription
MachineImage.Builder

mergeSourceInstanceProperties(SourceInstanceProperties value)

public MachineImage.Builder mergeSourceInstanceProperties(SourceInstanceProperties value)

[Output Only] DEPRECATED: Please use instance_properties instead for source instance related properties. New properties will not be added to this field.

optional .google.cloud.compute.v1.SourceInstanceProperties source_instance_properties = 475195641;

Parameter
NameDescription
valueSourceInstanceProperties
Returns
TypeDescription
MachineImage.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MachineImage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MachineImage.Builder
Overrides

removeSavedDisks(int index)

public MachineImage.Builder removeSavedDisks(int index)

An array of Machine Image specific properties for disks attached to the source instance

repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;

Parameter
NameDescription
indexint
Returns
TypeDescription
MachineImage.Builder

removeSourceDiskEncryptionKeys(int index)

public MachineImage.Builder removeSourceDiskEncryptionKeys(int index)

[Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key.

repeated .google.cloud.compute.v1.SourceDiskEncryptionKey source_disk_encryption_keys = 370408498;

Parameter
NameDescription
indexint
Returns
TypeDescription
MachineImage.Builder

setCreationTimestamp(String value)

public MachineImage.Builder setCreationTimestamp(String value)

[Output Only] The creation timestamp for this machine image in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
NameDescription
valueString

The creationTimestamp to set.

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

setCreationTimestampBytes(ByteString value)

public MachineImage.Builder setCreationTimestampBytes(ByteString value)

[Output Only] The creation timestamp for this machine image in RFC3339 text format.

optional string creation_timestamp = 30525366;

Parameter
NameDescription
valueByteString

The bytes for creationTimestamp to set.

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

setDescription(String value)

public MachineImage.Builder setDescription(String value)

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public MachineImage.Builder setDescriptionBytes(ByteString value)

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public MachineImage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MachineImage.Builder
Overrides

setGuestFlush(boolean value)

public MachineImage.Builder setGuestFlush(boolean value)

[Input Only] Whether to attempt an application consistent machine image by informing the OS to prepare for the snapshot process.

optional bool guest_flush = 385550813;

Parameter
NameDescription
valueboolean

The guestFlush to set.

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

setId(long value)

public MachineImage.Builder setId(long value)

[Output Only] A unique identifier for this machine image. The server defines this identifier.

optional uint64 id = 3355;

Parameter
NameDescription
valuelong

The id to set.

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

setInstanceProperties(InstanceProperties value)

public MachineImage.Builder setInstanceProperties(InstanceProperties value)

[Output Only] Properties of source instance

optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;

Parameter
NameDescription
valueInstanceProperties
Returns
TypeDescription
MachineImage.Builder

setInstanceProperties(InstanceProperties.Builder builderForValue)

public MachineImage.Builder setInstanceProperties(InstanceProperties.Builder builderForValue)

[Output Only] Properties of source instance

optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;

Parameter
NameDescription
builderForValueInstanceProperties.Builder
Returns
TypeDescription
MachineImage.Builder

setKind(String value)

public MachineImage.Builder setKind(String value)

[Output Only] The resource type, which is always compute#machineImage for machine image.

optional string kind = 3292052;

Parameter
NameDescription
valueString

The kind to set.

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

setKindBytes(ByteString value)

public MachineImage.Builder setKindBytes(ByteString value)

[Output Only] The resource type, which is always compute#machineImage for machine image.

optional string kind = 3292052;

Parameter
NameDescription
valueByteString

The bytes for kind to set.

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

setMachineImageEncryptionKey(CustomerEncryptionKey value)

public MachineImage.Builder setMachineImageEncryptionKey(CustomerEncryptionKey value)

Encrypts the machine image using a customer-supplied encryption key. After you encrypt a machine image using a customer-supplied key, you must provide the same key if you use the machine image later. For example, you must provide the encryption key when you create an instance from the encrypted machine image in a future request. Customer-supplied encryption keys do not protect access to metadata of the machine image. If you do not provide an encryption key when creating the machine image, then the machine image will be encrypted using an automatically generated key and you do not need to provide a key to use the machine image later.

optional .google.cloud.compute.v1.CustomerEncryptionKey machine_image_encryption_key = 528089087;

Parameter
NameDescription
valueCustomerEncryptionKey
Returns
TypeDescription
MachineImage.Builder

setMachineImageEncryptionKey(CustomerEncryptionKey.Builder builderForValue)

public MachineImage.Builder setMachineImageEncryptionKey(CustomerEncryptionKey.Builder builderForValue)

Encrypts the machine image using a customer-supplied encryption key. After you encrypt a machine image using a customer-supplied key, you must provide the same key if you use the machine image later. For example, you must provide the encryption key when you create an instance from the encrypted machine image in a future request. Customer-supplied encryption keys do not protect access to metadata of the machine image. If you do not provide an encryption key when creating the machine image, then the machine image will be encrypted using an automatically generated key and you do not need to provide a key to use the machine image later.

optional .google.cloud.compute.v1.CustomerEncryptionKey machine_image_encryption_key = 528089087;

Parameter
NameDescription
builderForValueCustomerEncryptionKey.Builder
Returns
TypeDescription
MachineImage.Builder

setName(String value)

public MachineImage.Builder setName(String value)

Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

setNameBytes(ByteString value)

public MachineImage.Builder setNameBytes(ByteString value)

Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

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

public MachineImage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MachineImage.Builder
Overrides

setSatisfiesPzs(boolean value)

public MachineImage.Builder setSatisfiesPzs(boolean value)

[Output Only] Reserved for future use.

optional bool satisfies_pzs = 480964267;

Parameter
NameDescription
valueboolean

The satisfiesPzs to set.

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

setSavedDisks(int index, SavedDisk value)

public MachineImage.Builder setSavedDisks(int index, SavedDisk value)

An array of Machine Image specific properties for disks attached to the source instance

repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;

Parameters
NameDescription
indexint
valueSavedDisk
Returns
TypeDescription
MachineImage.Builder

setSavedDisks(int index, SavedDisk.Builder builderForValue)

public MachineImage.Builder setSavedDisks(int index, SavedDisk.Builder builderForValue)

An array of Machine Image specific properties for disks attached to the source instance

repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;

Parameters
NameDescription
indexint
builderForValueSavedDisk.Builder
Returns
TypeDescription
MachineImage.Builder
public MachineImage.Builder setSelfLink(String value)

[Output Only] The URL for this machine image. The server defines this URL.

optional string self_link = 456214797;

Parameter
NameDescription
valueString

The selfLink to set.

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public MachineImage.Builder setSelfLinkBytes(ByteString value)

[Output Only] The URL for this machine image. The server defines this URL.

optional string self_link = 456214797;

Parameter
NameDescription
valueByteString

The bytes for selfLink to set.

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

setSourceDiskEncryptionKeys(int index, SourceDiskEncryptionKey value)

public MachineImage.Builder setSourceDiskEncryptionKeys(int index, SourceDiskEncryptionKey value)

[Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key.

repeated .google.cloud.compute.v1.SourceDiskEncryptionKey source_disk_encryption_keys = 370408498;

Parameters
NameDescription
indexint
valueSourceDiskEncryptionKey
Returns
TypeDescription
MachineImage.Builder

setSourceDiskEncryptionKeys(int index, SourceDiskEncryptionKey.Builder builderForValue)

public MachineImage.Builder setSourceDiskEncryptionKeys(int index, SourceDiskEncryptionKey.Builder builderForValue)

[Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key.

repeated .google.cloud.compute.v1.SourceDiskEncryptionKey source_disk_encryption_keys = 370408498;

Parameters
NameDescription
indexint
builderForValueSourceDiskEncryptionKey.Builder
Returns
TypeDescription
MachineImage.Builder

setSourceInstance(String value)

public MachineImage.Builder setSourceInstance(String value)

The source instance used to create the machine image. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance

optional string source_instance = 396315705;

Parameter
NameDescription
valueString

The sourceInstance to set.

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

setSourceInstanceBytes(ByteString value)

public MachineImage.Builder setSourceInstanceBytes(ByteString value)

The source instance used to create the machine image. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance

optional string source_instance = 396315705;

Parameter
NameDescription
valueByteString

The bytes for sourceInstance to set.

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

setSourceInstanceProperties(SourceInstanceProperties value)

public MachineImage.Builder setSourceInstanceProperties(SourceInstanceProperties value)

[Output Only] DEPRECATED: Please use instance_properties instead for source instance related properties. New properties will not be added to this field.

optional .google.cloud.compute.v1.SourceInstanceProperties source_instance_properties = 475195641;

Parameter
NameDescription
valueSourceInstanceProperties
Returns
TypeDescription
MachineImage.Builder

setSourceInstanceProperties(SourceInstanceProperties.Builder builderForValue)

public MachineImage.Builder setSourceInstanceProperties(SourceInstanceProperties.Builder builderForValue)

[Output Only] DEPRECATED: Please use instance_properties instead for source instance related properties. New properties will not be added to this field.

optional .google.cloud.compute.v1.SourceInstanceProperties source_instance_properties = 475195641;

Parameter
NameDescription
builderForValueSourceInstanceProperties.Builder
Returns
TypeDescription
MachineImage.Builder

setStatus(String value)

public MachineImage.Builder setStatus(String value)

[Output Only] The status of the machine image. One of the following values: INVALID, CREATING, READY, DELETING, and UPLOADING. Check the Status enum for the list of possible values.

optional string status = 181260274;

Parameter
NameDescription
valueString

The status to set.

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

setStatusBytes(ByteString value)

public MachineImage.Builder setStatusBytes(ByteString value)

[Output Only] The status of the machine image. One of the following values: INVALID, CREATING, READY, DELETING, and UPLOADING. Check the Status enum for the list of possible values.

optional string status = 181260274;

Parameter
NameDescription
valueByteString

The bytes for status to set.

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

setStorageLocations(int index, String value)

public MachineImage.Builder setStorageLocations(int index, String value)

The regional or multi-regional Cloud Storage bucket location where the machine image is stored.

repeated string storage_locations = 328005274;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The storageLocations to set.

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

setTotalStorageBytes(long value)

public MachineImage.Builder setTotalStorageBytes(long value)

[Output Only] Total size of the storage used by the machine image.

optional int64 total_storage_bytes = 81855468;

Parameter
NameDescription
valuelong

The totalStorageBytes to set.

Returns
TypeDescription
MachineImage.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final MachineImage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MachineImage.Builder
Overrides