- 1.63.0 (latest)
- 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 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MachineImage.BuilderImplements
MachineImageOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.compute.v1.SavedDisk> |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.compute.v1.SourceDiskEncryptionKey> |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values | Iterable<String> The storageLocations to add. |
Returns | |
---|---|
Type | Description |
MachineImage.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MachineImage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
MachineImage.Builder |
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 | |
---|---|
Name | Description |
value | SavedDisk |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | SavedDisk.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
value | SavedDisk |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
builderForValue | SavedDisk.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | SourceDiskEncryptionKey |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | SourceDiskEncryptionKey.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
value | SourceDiskEncryptionKey |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
builderForValue | SourceDiskEncryptionKey.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The storageLocations to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes of the storageLocations to add. |
Returns | |
---|---|
Type | Description |
MachineImage.Builder | This builder for chaining. |
build()
public MachineImage build()
Returns | |
---|---|
Type | Description |
MachineImage |
buildPartial()
public MachineImage buildPartial()
Returns | |
---|---|
Type | Description |
MachineImage |
clear()
public MachineImage.Builder clear()
Returns | |
---|---|
Type | Description |
MachineImage.Builder |
clearCreationTimestamp()
public MachineImage.Builder clearCreationTimestamp()
[Output Only] The creation timestamp for this machine image in RFC3339 text format.
optional string creation_timestamp = 30525366;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
MachineImage.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public MachineImage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
MachineImage.Builder |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
MachineImage.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public MachineImage.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
MachineImage.Builder |
clearSatisfiesPzi()
public MachineImage.Builder clearSatisfiesPzi()
Output only. Reserved for future use.
optional bool satisfies_pzi = 480964257;
Returns | |
---|---|
Type | Description |
MachineImage.Builder | This builder for chaining. |
clearSatisfiesPzs()
public MachineImage.Builder clearSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
MachineImage.Builder |
clearSelfLink()
public MachineImage.Builder clearSelfLink()
[Output Only] The URL for this machine image. The server defines this URL.
optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
MachineImage.Builder | This builder for chaining. |
clone()
public MachineImage.Builder clone()
Returns | |
---|---|
Type | Description |
MachineImage.Builder |
getCreationTimestamp()
public String getCreationTimestamp()
[Output Only] The creation timestamp for this machine image in RFC3339 text format.
optional string creation_timestamp = 30525366;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString | The bytes for creationTimestamp. |
getDefaultInstanceForType()
public MachineImage getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
MachineImage |
getDescription()
public String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
long | The id. |
getInstanceProperties()
public InstanceProperties getInstanceProperties()
[Output Only] Properties of source instance
optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;
Returns | |
---|---|
Type | Description |
InstanceProperties | The instanceProperties. |
getInstancePropertiesBuilder()
public InstanceProperties.Builder getInstancePropertiesBuilder()
[Output Only] Properties of source instance
optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;
Returns | |
---|---|
Type | Description |
InstanceProperties.Builder |
getInstancePropertiesOrBuilder()
public InstancePropertiesOrBuilder getInstancePropertiesOrBuilder()
[Output Only] Properties of source instance
optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;
Returns | |
---|---|
Type | Description |
InstancePropertiesOrBuilder |
getKind()
public String getKind()
[Output Only] The resource type, which is always compute#machineImage for machine image.
optional string kind = 3292052;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString | The bytes for name. |
getSatisfiesPzi()
public boolean getSatisfiesPzi()
Output only. Reserved for future use.
optional bool satisfies_pzi = 480964257;
Returns | |
---|---|
Type | Description |
boolean | The satisfiesPzi. |
getSatisfiesPzs()
public boolean getSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
List<? extends com.google.cloud.compute.v1.SavedDiskOrBuilder> |
getSelfLink()
public String getSelfLink()
[Output Only] The URL for this machine image. The server defines this URL.
optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean | Whether the name field is set. |
hasSatisfiesPzi()
public boolean hasSatisfiesPzi()
Output only. Reserved for future use.
optional bool satisfies_pzi = 480964257;
Returns | |
---|---|
Type | Description |
boolean | Whether the satisfiesPzi field is set. |
hasSatisfiesPzs()
public boolean hasSatisfiesPzs()
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;
Returns | |
---|---|
Type | Description |
boolean | Whether the satisfiesPzs field is set. |
hasSelfLink()
public boolean hasSelfLink()
[Output Only] The URL for this machine image. The server defines this URL.
optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean | Whether the totalStorageBytes field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(MachineImage other)
public MachineImage.Builder mergeFrom(MachineImage other)
Parameter | |
---|---|
Name | Description |
other | MachineImage |
Returns | |
---|---|
Type | Description |
MachineImage.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MachineImage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
MachineImage.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public MachineImage.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
MachineImage.Builder |
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 | |
---|---|
Name | Description |
value | InstanceProperties |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | CustomerEncryptionKey |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | SourceInstanceProperties |
Returns | |
---|---|
Type | Description |
MachineImage.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MachineImage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
MachineImage.Builder |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The creationTimestamp to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for creationTimestamp to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The description to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for description to set. |
Returns | |
---|---|
Type | Description |
MachineImage.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public MachineImage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
MachineImage.Builder |
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 | |
---|---|
Name | Description |
value | boolean The guestFlush to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | long The id to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | InstanceProperties |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | InstanceProperties.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The kind to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for kind to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | CustomerEncryptionKey |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | CustomerEncryptionKey.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
MachineImage.Builder |
setSatisfiesPzi(boolean value)
public MachineImage.Builder setSatisfiesPzi(boolean value)
Output only. Reserved for future use.
optional bool satisfies_pzi = 480964257;
Parameter | |
---|---|
Name | Description |
value | boolean The satisfiesPzi to set. |
Returns | |
---|---|
Type | Description |
MachineImage.Builder | This builder for chaining. |
setSatisfiesPzs(boolean value)
public MachineImage.Builder setSatisfiesPzs(boolean value)
[Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;
Parameter | |
---|---|
Name | Description |
value | boolean The satisfiesPzs to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
value | SavedDisk |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
builderForValue | SavedDisk.Builder |
Returns | |
---|---|
Type | Description |
MachineImage.Builder |
setSelfLink(String value)
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 | |
---|---|
Name | Description |
value | String The selfLink to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for selfLink to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
value | SourceDiskEncryptionKey |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
builderForValue | SourceDiskEncryptionKey.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The sourceInstance to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for sourceInstance to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | SourceInstanceProperties |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | SourceInstanceProperties.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The status to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for status to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The storageLocations to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | long The totalStorageBytes to set. |
Returns | |
---|---|
Type | Description |
MachineImage.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final MachineImage.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
MachineImage.Builder |