Package com.google.cloud.compute.v1
Class MachineImage.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MachineImage.Builder>
com.google.cloud.compute.v1.MachineImage.Builder
- All Implemented Interfaces:
MachineImageOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MachineImage
public static final class MachineImage.Builder
extends com.google.protobuf.GeneratedMessage.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, seeMachine images.Protobuf type
google.cloud.compute.v1.MachineImage-
Method Summary
Modifier and TypeMethodDescriptionaddAllSavedDisks(Iterable<? extends SavedDisk> values) Output only.addAllSourceDiskEncryptionKeys(Iterable<? extends SourceDiskEncryptionKey> values) [Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance.addAllStorageLocations(Iterable<String> values) The regional or multi-regional Cloud Storage bucket location where themachine image is stored.addSavedDisks(int index, SavedDisk value) Output only.addSavedDisks(int index, SavedDisk.Builder builderForValue) Output only.addSavedDisks(SavedDisk value) Output only.addSavedDisks(SavedDisk.Builder builderForValue) Output only.Output only.addSavedDisksBuilder(int index) Output only.addSourceDiskEncryptionKeys(int index, SourceDiskEncryptionKey value) [Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance.addSourceDiskEncryptionKeys(int index, SourceDiskEncryptionKey.Builder builderForValue) [Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance.[Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance.addSourceDiskEncryptionKeys(SourceDiskEncryptionKey.Builder builderForValue) [Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance.[Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance.addSourceDiskEncryptionKeysBuilder(int index) [Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance.addStorageLocations(String value) The regional or multi-regional Cloud Storage bucket location where themachine image is stored.addStorageLocationsBytes(com.google.protobuf.ByteString value) The regional or multi-regional Cloud Storage bucket location where themachine image is stored.build()clear()Output only.An optional description of this resource.[Input Only] Whether to attempt an application consistent machine image by informing the OS to prepare for the snapshot process.clearId()Output only.[Output Only] Properties of source instanceOutput only.A fingerprint for the labels being applied to this machine image, which is essentially a hash of the labels set used for optimistic locking.Encrypts the machine image using acustomer-supplied encryption key.Name of the resource; provided by the client when the resource is created.Input only.Output only.Output only.Output only.Output only.[Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance.The source instance used to create the machine image.Output only.Output only.The regional or multi-regional Cloud Storage bucket location where themachine image is stored.Output only.booleancontainsLabels(String key) Labels to apply to this machine image.Output only.com.google.protobuf.ByteStringOutput only.An optional description of this resource.com.google.protobuf.ByteStringAn optional description of this resource.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorboolean[Input Only] Whether to attempt an application consistent machine image by informing the OS to prepare for the snapshot process.longgetId()Output only.[Output Only] Properties of source instance[Output Only] Properties of source instance[Output Only] Properties of source instancegetKind()Output only.com.google.protobuf.ByteStringOutput only.A fingerprint for the labels being applied to this machine image, which is essentially a hash of the labels set used for optimistic locking.com.google.protobuf.ByteStringA fingerprint for the labels being applied to this machine image, which is essentially a hash of the labels set used for optimistic locking.Deprecated.intLabels to apply to this machine image.Labels to apply to this machine image.getLabelsOrDefault(String key, String defaultValue) Labels to apply to this machine image.getLabelsOrThrow(String key) Labels to apply to this machine image.Encrypts the machine image using acustomer-supplied encryption key.Encrypts the machine image using acustomer-supplied encryption key.Encrypts the machine image using acustomer-supplied encryption key.Deprecated.getName()Name of the resource; provided by the client when the resource is created.com.google.protobuf.ByteStringName of the resource; provided by the client when the resource is created.Input only.Input only.Input only.booleanOutput only.booleanOutput only.getSavedDisks(int index) Output only.getSavedDisksBuilder(int index) Output only.Output only.intOutput only.Output only.getSavedDisksOrBuilder(int index) Output only.List<? extends SavedDiskOrBuilder>Output only.Output only.com.google.protobuf.ByteStringOutput only.getSourceDiskEncryptionKeys(int index) [Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance.getSourceDiskEncryptionKeysBuilder(int index) [Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance.[Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance.int[Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance.[Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance.getSourceDiskEncryptionKeysOrBuilder(int index) [Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance.List<? extends SourceDiskEncryptionKeyOrBuilder>[Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance.The source instance used to create the machine image.com.google.protobuf.ByteStringThe source instance used to create the machine image.Output only.Output only.Output only.Output only.com.google.protobuf.ByteStringOutput only.getStorageLocations(int index) The regional or multi-regional Cloud Storage bucket location where themachine image is stored.com.google.protobuf.ByteStringgetStorageLocationsBytes(int index) The regional or multi-regional Cloud Storage bucket location where themachine image is stored.intThe regional or multi-regional Cloud Storage bucket location where themachine image is stored.com.google.protobuf.ProtocolStringListThe regional or multi-regional Cloud Storage bucket location where themachine image is stored.longOutput only.booleanOutput only.booleanAn optional description of this resource.boolean[Input Only] Whether to attempt an application consistent machine image by informing the OS to prepare for the snapshot process.booleanhasId()Output only.boolean[Output Only] Properties of source instancebooleanhasKind()Output only.booleanA fingerprint for the labels being applied to this machine image, which is essentially a hash of the labels set used for optimistic locking.booleanEncrypts the machine image using acustomer-supplied encryption key.booleanhasName()Name of the resource; provided by the client when the resource is created.booleanInput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanThe source instance used to create the machine image.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(MachineImage other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) [Output Only] Properties of source instanceEncrypts the machine image using acustomer-supplied encryption key.mergeParams(MachineImageParams value) Input only.Output only.putAllLabels(Map<String, String> values) Labels to apply to this machine image.Labels to apply to this machine image.removeLabels(String key) Labels to apply to this machine image.removeSavedDisks(int index) Output only.removeSourceDiskEncryptionKeys(int index) [Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance.setCreationTimestamp(String value) Output only.setCreationTimestampBytes(com.google.protobuf.ByteString value) Output only.setDescription(String value) An optional description of this resource.setDescriptionBytes(com.google.protobuf.ByteString value) An optional description of this resource.setGuestFlush(boolean value) [Input Only] Whether to attempt an application consistent machine image by informing the OS to prepare for the snapshot process.setId(long value) Output only.[Output Only] Properties of source instancesetInstanceProperties(InstanceProperties.Builder builderForValue) [Output Only] Properties of source instanceOutput only.setKindBytes(com.google.protobuf.ByteString value) Output only.setLabelFingerprint(String value) A fingerprint for the labels being applied to this machine image, which is essentially a hash of the labels set used for optimistic locking.setLabelFingerprintBytes(com.google.protobuf.ByteString value) A fingerprint for the labels being applied to this machine image, which is essentially a hash of the labels set used for optimistic locking.Encrypts the machine image using acustomer-supplied encryption key.setMachineImageEncryptionKey(CustomerEncryptionKey.Builder builderForValue) Encrypts the machine image using acustomer-supplied encryption key.Name of the resource; provided by the client when the resource is created.setNameBytes(com.google.protobuf.ByteString value) Name of the resource; provided by the client when the resource is created.setParams(MachineImageParams value) Input only.setParams(MachineImageParams.Builder builderForValue) Input only.setSatisfiesPzi(boolean value) Output only.setSatisfiesPzs(boolean value) Output only.setSavedDisks(int index, SavedDisk value) Output only.setSavedDisks(int index, SavedDisk.Builder builderForValue) Output only.setSelfLink(String value) Output only.setSelfLinkBytes(com.google.protobuf.ByteString value) Output only.setSourceDiskEncryptionKeys(int index, SourceDiskEncryptionKey value) [Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance.setSourceDiskEncryptionKeys(int index, SourceDiskEncryptionKey.Builder builderForValue) [Input Only] Thecustomer-supplied encryption key of the disks attached to the source instance.setSourceInstance(String value) The source instance used to create the machine image.setSourceInstanceBytes(com.google.protobuf.ByteString value) The source instance used to create the machine image.Output only.setSourceInstanceProperties(SourceInstanceProperties.Builder builderForValue) Output only.Output only.setStatusBytes(com.google.protobuf.ByteString value) Output only.setStorageLocations(int index, String value) The regional or multi-regional Cloud Storage bucket location where themachine image is stored.setTotalStorageBytes(long value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<MachineImage.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<MachineImage.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MachineImage.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<MachineImage.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<MachineImage.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MachineImage.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MachineImage.Builder>
-
mergeFrom
public MachineImage.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MachineImage.Builder>- Throws:
IOException
-
hasCreationTimestamp
public boolean hasCreationTimestamp()Output only. [Output Only] The creation timestamp for this machine image inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
hasCreationTimestampin interfaceMachineImageOrBuilder- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
Output only. [Output Only] The creation timestamp for this machine image inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampin interfaceMachineImageOrBuilder- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()Output only. [Output Only] The creation timestamp for this machine image inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampBytesin interfaceMachineImageOrBuilder- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
Output only. [Output Only] The creation timestamp for this machine image inRFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
Output only. [Output Only] The creation timestamp for this machine image inRFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
Output only. [Output Only] The creation timestamp for this machine image inRFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The bytes for creationTimestamp to set.- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
hasDescriptionin interfaceMachineImageOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionin interfaceMachineImageOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionBytesin interfaceMachineImageOrBuilder- Returns:
- The bytes for description.
-
setDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- This builder for chaining.
-
setDescriptionBytes
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasGuestFlushin interfaceMachineImageOrBuilder- Returns:
- Whether the guestFlush field is set.
-
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;- Specified by:
getGuestFlushin interfaceMachineImageOrBuilder- Returns:
- The guestFlush.
-
setGuestFlush
[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;- Parameters:
value- The guestFlush to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
hasId
public boolean hasId()Output only. [Output Only] A unique identifier for this machine image. The server defines this identifier.
optional uint64 id = 3355;- Specified by:
hasIdin interfaceMachineImageOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()Output only. [Output Only] A unique identifier for this machine image. The server defines this identifier.
optional uint64 id = 3355;- Specified by:
getIdin interfaceMachineImageOrBuilder- Returns:
- The id.
-
setId
Output only. [Output Only] A unique identifier for this machine image. The server defines this identifier.
optional uint64 id = 3355;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Output only. [Output Only] A unique identifier for this machine image. The server defines this identifier.
optional uint64 id = 3355;- Returns:
- This builder for chaining.
-
hasInstanceProperties
public boolean hasInstanceProperties()[Output Only] Properties of source instance
optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;- Specified by:
hasInstancePropertiesin interfaceMachineImageOrBuilder- Returns:
- Whether the instanceProperties field is set.
-
getInstanceProperties
[Output Only] Properties of source instance
optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;- Specified by:
getInstancePropertiesin interfaceMachineImageOrBuilder- Returns:
- The instanceProperties.
-
setInstanceProperties
[Output Only] Properties of source instance
optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165; -
setInstanceProperties
[Output Only] Properties of source instance
optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165; -
mergeInstanceProperties
[Output Only] Properties of source instance
optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165; -
clearInstanceProperties
[Output Only] Properties of source instance
optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165; -
getInstancePropertiesBuilder
[Output Only] Properties of source instance
optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165; -
getInstancePropertiesOrBuilder
[Output Only] Properties of source instance
optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;- Specified by:
getInstancePropertiesOrBuilderin interfaceMachineImageOrBuilder
-
hasKind
public boolean hasKind()Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine image.
optional string kind = 3292052;- Specified by:
hasKindin interfaceMachineImageOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine image.
optional string kind = 3292052;- Specified by:
getKindin interfaceMachineImageOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine image.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceMachineImageOrBuilder- Returns:
- The bytes for kind.
-
setKind
Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine image.
optional string kind = 3292052;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine image.
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine image.
optional string kind = 3292052;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
hasLabelFingerprint
public boolean hasLabelFingerprint()A fingerprint for the labels being applied to this machine image, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the machine image.
optional string label_fingerprint = 178124825;- Specified by:
hasLabelFingerprintin interfaceMachineImageOrBuilder- Returns:
- Whether the labelFingerprint field is set.
-
getLabelFingerprint
A fingerprint for the labels being applied to this machine image, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the machine image.
optional string label_fingerprint = 178124825;- Specified by:
getLabelFingerprintin interfaceMachineImageOrBuilder- Returns:
- The labelFingerprint.
-
getLabelFingerprintBytes
public com.google.protobuf.ByteString getLabelFingerprintBytes()A fingerprint for the labels being applied to this machine image, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the machine image.
optional string label_fingerprint = 178124825;- Specified by:
getLabelFingerprintBytesin interfaceMachineImageOrBuilder- Returns:
- The bytes for labelFingerprint.
-
setLabelFingerprint
A fingerprint for the labels being applied to this machine image, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the machine image.
optional string label_fingerprint = 178124825;- Parameters:
value- The labelFingerprint to set.- Returns:
- This builder for chaining.
-
clearLabelFingerprint
A fingerprint for the labels being applied to this machine image, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the machine image.
optional string label_fingerprint = 178124825;- Returns:
- This builder for chaining.
-
setLabelFingerprintBytes
A fingerprint for the labels being applied to this machine image, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make get() request to the machine image.
optional string label_fingerprint = 178124825;- Parameters:
value- The bytes for labelFingerprint to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()Description copied from interface:MachineImageOrBuilderLabels to apply to this machine image. These can be later modified by the setLabels method.
map<string, string> labels = 500195327;- Specified by:
getLabelsCountin interfaceMachineImageOrBuilder
-
containsLabels
Labels to apply to this machine image. These can be later modified by the setLabels method.
map<string, string> labels = 500195327;- Specified by:
containsLabelsin interfaceMachineImageOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceMachineImageOrBuilder
-
getLabelsMap
Labels to apply to this machine image. These can be later modified by the setLabels method.
map<string, string> labels = 500195327;- Specified by:
getLabelsMapin interfaceMachineImageOrBuilder
-
getLabelsOrDefault
Labels to apply to this machine image. These can be later modified by the setLabels method.
map<string, string> labels = 500195327;- Specified by:
getLabelsOrDefaultin interfaceMachineImageOrBuilder
-
getLabelsOrThrow
Labels to apply to this machine image. These can be later modified by the setLabels method.
map<string, string> labels = 500195327;- Specified by:
getLabelsOrThrowin interfaceMachineImageOrBuilder
-
clearLabels
-
removeLabels
Labels to apply to this machine image. These can be later modified by the setLabels method.
map<string, string> labels = 500195327; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Labels to apply to this machine image. These can be later modified by the setLabels method.
map<string, string> labels = 500195327; -
putAllLabels
Labels to apply to this machine image. These can be later modified by the setLabels method.
map<string, string> labels = 500195327; -
hasMachineImageEncryptionKey
public boolean hasMachineImageEncryptionKey()Encrypts the machine image using acustomer-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;- Specified by:
hasMachineImageEncryptionKeyin interfaceMachineImageOrBuilder- Returns:
- Whether the machineImageEncryptionKey field is set.
-
getMachineImageEncryptionKey
Encrypts the machine image using acustomer-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;- Specified by:
getMachineImageEncryptionKeyin interfaceMachineImageOrBuilder- Returns:
- The machineImageEncryptionKey.
-
setMachineImageEncryptionKey
Encrypts the machine image using acustomer-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; -
setMachineImageEncryptionKey
public MachineImage.Builder setMachineImageEncryptionKey(CustomerEncryptionKey.Builder builderForValue) Encrypts the machine image using acustomer-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; -
mergeMachineImageEncryptionKey
Encrypts the machine image using acustomer-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; -
clearMachineImageEncryptionKey
Encrypts the machine image using acustomer-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; -
getMachineImageEncryptionKeyBuilder
Encrypts the machine image using acustomer-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; -
getMachineImageEncryptionKeyOrBuilder
Encrypts the machine image using acustomer-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;- Specified by:
getMachineImageEncryptionKeyOrBuilderin interfaceMachineImageOrBuilder
-
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 withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` 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;- Specified by:
hasNamein interfaceMachineImageOrBuilder- Returns:
- Whether the name field is set.
-
getName
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` 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;- Specified by:
getNamein interfaceMachineImageOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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 withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` 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;- Specified by:
getNameBytesin interfaceMachineImageOrBuilder- Returns:
- The bytes for name.
-
setName
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` 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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` 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:
- This builder for chaining.
-
setNameBytes
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` 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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasParams
public boolean hasParams()Input only. [Input Only] Additional parameters that are passed in the request, but are not persisted in the resource.
optional .google.cloud.compute.v1.MachineImageParams params = 78313862;- Specified by:
hasParamsin interfaceMachineImageOrBuilder- Returns:
- Whether the params field is set.
-
getParams
Input only. [Input Only] Additional parameters that are passed in the request, but are not persisted in the resource.
optional .google.cloud.compute.v1.MachineImageParams params = 78313862;- Specified by:
getParamsin interfaceMachineImageOrBuilder- Returns:
- The params.
-
setParams
Input only. [Input Only] Additional parameters that are passed in the request, but are not persisted in the resource.
optional .google.cloud.compute.v1.MachineImageParams params = 78313862; -
setParams
Input only. [Input Only] Additional parameters that are passed in the request, but are not persisted in the resource.
optional .google.cloud.compute.v1.MachineImageParams params = 78313862; -
mergeParams
Input only. [Input Only] Additional parameters that are passed in the request, but are not persisted in the resource.
optional .google.cloud.compute.v1.MachineImageParams params = 78313862; -
clearParams
Input only. [Input Only] Additional parameters that are passed in the request, but are not persisted in the resource.
optional .google.cloud.compute.v1.MachineImageParams params = 78313862; -
getParamsBuilder
Input only. [Input Only] Additional parameters that are passed in the request, but are not persisted in the resource.
optional .google.cloud.compute.v1.MachineImageParams params = 78313862; -
getParamsOrBuilder
Input only. [Input Only] Additional parameters that are passed in the request, but are not persisted in the resource.
optional .google.cloud.compute.v1.MachineImageParams params = 78313862;- Specified by:
getParamsOrBuilderin interfaceMachineImageOrBuilder
-
hasSatisfiesPzi
public boolean hasSatisfiesPzi()Output only. Reserved for future use.
optional bool satisfies_pzi = 480964257;- Specified by:
hasSatisfiesPziin interfaceMachineImageOrBuilder- Returns:
- Whether the satisfiesPzi field is set.
-
getSatisfiesPzi
public boolean getSatisfiesPzi()Output only. Reserved for future use.
optional bool satisfies_pzi = 480964257;- Specified by:
getSatisfiesPziin interfaceMachineImageOrBuilder- Returns:
- The satisfiesPzi.
-
setSatisfiesPzi
Output only. Reserved for future use.
optional bool satisfies_pzi = 480964257;- Parameters:
value- The satisfiesPzi to set.- Returns:
- This builder for chaining.
-
clearSatisfiesPzi
Output only. Reserved for future use.
optional bool satisfies_pzi = 480964257;- Returns:
- This builder for chaining.
-
hasSatisfiesPzs
public boolean hasSatisfiesPzs()Output only. [Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;- Specified by:
hasSatisfiesPzsin interfaceMachineImageOrBuilder- Returns:
- Whether the satisfiesPzs field is set.
-
getSatisfiesPzs
public boolean getSatisfiesPzs()Output only. [Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;- Specified by:
getSatisfiesPzsin interfaceMachineImageOrBuilder- Returns:
- The satisfiesPzs.
-
setSatisfiesPzs
Output only. [Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;- Parameters:
value- The satisfiesPzs to set.- Returns:
- This builder for chaining.
-
clearSatisfiesPzs
Output only. [Output Only] Reserved for future use.
optional bool satisfies_pzs = 480964267;- Returns:
- This builder for chaining.
-
getSavedDisksList
Output only. An array of Machine Image specific properties for disks attached to the source instance
repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;- Specified by:
getSavedDisksListin interfaceMachineImageOrBuilder
-
getSavedDisksCount
public int getSavedDisksCount()Output only. An array of Machine Image specific properties for disks attached to the source instance
repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;- Specified by:
getSavedDisksCountin interfaceMachineImageOrBuilder
-
getSavedDisks
Output only. An array of Machine Image specific properties for disks attached to the source instance
repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;- Specified by:
getSavedDisksin interfaceMachineImageOrBuilder
-
setSavedDisks
Output only. An array of Machine Image specific properties for disks attached to the source instance
repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318; -
setSavedDisks
Output only. An array of Machine Image specific properties for disks attached to the source instance
repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318; -
addSavedDisks
Output only. An array of Machine Image specific properties for disks attached to the source instance
repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318; -
addSavedDisks
Output only. An array of Machine Image specific properties for disks attached to the source instance
repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318; -
addSavedDisks
Output only. An array of Machine Image specific properties for disks attached to the source instance
repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318; -
addSavedDisks
Output only. An array of Machine Image specific properties for disks attached to the source instance
repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318; -
addAllSavedDisks
Output only. An array of Machine Image specific properties for disks attached to the source instance
repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318; -
clearSavedDisks
Output only. An array of Machine Image specific properties for disks attached to the source instance
repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318; -
removeSavedDisks
Output only. An array of Machine Image specific properties for disks attached to the source instance
repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318; -
getSavedDisksBuilder
Output only. An array of Machine Image specific properties for disks attached to the source instance
repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318; -
getSavedDisksOrBuilder
Output only. An array of Machine Image specific properties for disks attached to the source instance
repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;- Specified by:
getSavedDisksOrBuilderin interfaceMachineImageOrBuilder
-
getSavedDisksOrBuilderList
Output only. An array of Machine Image specific properties for disks attached to the source instance
repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318;- Specified by:
getSavedDisksOrBuilderListin interfaceMachineImageOrBuilder
-
addSavedDisksBuilder
Output only. An array of Machine Image specific properties for disks attached to the source instance
repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318; -
addSavedDisksBuilder
Output only. An array of Machine Image specific properties for disks attached to the source instance
repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318; -
getSavedDisksBuilderList
Output only. An array of Machine Image specific properties for disks attached to the source instance
repeated .google.cloud.compute.v1.SavedDisk saved_disks = 397424318; -
hasSelfLink
public boolean hasSelfLink()Output only. [Output Only] The URL for this machine image. The server defines this URL.
optional string self_link = 456214797;- Specified by:
hasSelfLinkin interfaceMachineImageOrBuilder- Returns:
- Whether the selfLink field is set.
-
getSelfLink
Output only. [Output Only] The URL for this machine image. The server defines this URL.
optional string self_link = 456214797;- Specified by:
getSelfLinkin interfaceMachineImageOrBuilder- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()Output only. [Output Only] The URL for this machine image. The server defines this URL.
optional string self_link = 456214797;- Specified by:
getSelfLinkBytesin interfaceMachineImageOrBuilder- Returns:
- The bytes for selfLink.
-
setSelfLink
Output only. [Output Only] The URL for this machine image. The server defines this URL.
optional string self_link = 456214797;- Parameters:
value- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
Output only. [Output Only] The URL for this machine image. The server defines this URL.
optional string self_link = 456214797;- Returns:
- This builder for chaining.
-
setSelfLinkBytes
Output only. [Output Only] The URL for this machine image. The server defines this URL.
optional string self_link = 456214797;- Parameters:
value- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
getSourceDiskEncryptionKeysList
[Input Only] Thecustomer-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;- Specified by:
getSourceDiskEncryptionKeysListin interfaceMachineImageOrBuilder
-
getSourceDiskEncryptionKeysCount
public int getSourceDiskEncryptionKeysCount()[Input Only] Thecustomer-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;- Specified by:
getSourceDiskEncryptionKeysCountin interfaceMachineImageOrBuilder
-
getSourceDiskEncryptionKeys
[Input Only] Thecustomer-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;- Specified by:
getSourceDiskEncryptionKeysin interfaceMachineImageOrBuilder
-
setSourceDiskEncryptionKeys
[Input Only] Thecustomer-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; -
setSourceDiskEncryptionKeys
public MachineImage.Builder setSourceDiskEncryptionKeys(int index, SourceDiskEncryptionKey.Builder builderForValue) [Input Only] Thecustomer-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; -
addSourceDiskEncryptionKeys
[Input Only] Thecustomer-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; -
addSourceDiskEncryptionKeys
[Input Only] Thecustomer-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; -
addSourceDiskEncryptionKeys
public MachineImage.Builder addSourceDiskEncryptionKeys(SourceDiskEncryptionKey.Builder builderForValue) [Input Only] Thecustomer-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; -
addSourceDiskEncryptionKeys
public MachineImage.Builder addSourceDiskEncryptionKeys(int index, SourceDiskEncryptionKey.Builder builderForValue) [Input Only] Thecustomer-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; -
addAllSourceDiskEncryptionKeys
public MachineImage.Builder addAllSourceDiskEncryptionKeys(Iterable<? extends SourceDiskEncryptionKey> values) [Input Only] Thecustomer-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; -
clearSourceDiskEncryptionKeys
[Input Only] Thecustomer-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; -
removeSourceDiskEncryptionKeys
[Input Only] Thecustomer-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; -
getSourceDiskEncryptionKeysBuilder
[Input Only] Thecustomer-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; -
getSourceDiskEncryptionKeysOrBuilder
[Input Only] Thecustomer-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;- Specified by:
getSourceDiskEncryptionKeysOrBuilderin interfaceMachineImageOrBuilder
-
getSourceDiskEncryptionKeysOrBuilderList
[Input Only] Thecustomer-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;- Specified by:
getSourceDiskEncryptionKeysOrBuilderListin interfaceMachineImageOrBuilder
-
addSourceDiskEncryptionKeysBuilder
[Input Only] Thecustomer-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; -
addSourceDiskEncryptionKeysBuilder
[Input Only] Thecustomer-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; -
getSourceDiskEncryptionKeysBuilderList
[Input Only] Thecustomer-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; -
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;- Specified by:
hasSourceInstancein interfaceMachineImageOrBuilder- Returns:
- Whether the sourceInstance field is set.
-
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;- Specified by:
getSourceInstancein interfaceMachineImageOrBuilder- Returns:
- The sourceInstance.
-
getSourceInstanceBytes
public com.google.protobuf.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;- Specified by:
getSourceInstanceBytesin interfaceMachineImageOrBuilder- Returns:
- The bytes for sourceInstance.
-
setSourceInstance
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;- Parameters:
value- The sourceInstance to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setSourceInstanceBytes
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;- Parameters:
value- The bytes for sourceInstance to set.- Returns:
- This builder for chaining.
-
hasSourceInstanceProperties
public boolean hasSourceInstanceProperties()Output only. [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;- Specified by:
hasSourceInstancePropertiesin interfaceMachineImageOrBuilder- Returns:
- Whether the sourceInstanceProperties field is set.
-
getSourceInstanceProperties
Output only. [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;- Specified by:
getSourceInstancePropertiesin interfaceMachineImageOrBuilder- Returns:
- The sourceInstanceProperties.
-
setSourceInstanceProperties
Output only. [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; -
setSourceInstanceProperties
public MachineImage.Builder setSourceInstanceProperties(SourceInstanceProperties.Builder builderForValue) Output only. [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; -
mergeSourceInstanceProperties
Output only. [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; -
clearSourceInstanceProperties
Output only. [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; -
getSourceInstancePropertiesBuilder
Output only. [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; -
getSourceInstancePropertiesOrBuilder
Output only. [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;- Specified by:
getSourceInstancePropertiesOrBuilderin interfaceMachineImageOrBuilder
-
hasStatus
public boolean hasStatus()Output only. [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;- Specified by:
hasStatusin interfaceMachineImageOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
Output only. [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;- Specified by:
getStatusin interfaceMachineImageOrBuilder- Returns:
- The status.
-
getStatusBytes
public com.google.protobuf.ByteString getStatusBytes()Output only. [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;- Specified by:
getStatusBytesin interfaceMachineImageOrBuilder- Returns:
- The bytes for status.
-
setStatus
Output only. [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;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
Output only. [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:
- This builder for chaining.
-
setStatusBytes
Output only. [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;- Parameters:
value- The bytes for status to set.- Returns:
- This builder for chaining.
-
getStorageLocationsList
public com.google.protobuf.ProtocolStringList getStorageLocationsList()The regional or multi-regional Cloud Storage bucket location where themachine image is stored.
repeated string storage_locations = 328005274;- Specified by:
getStorageLocationsListin interfaceMachineImageOrBuilder- Returns:
- A list containing the storageLocations.
-
getStorageLocationsCount
public int getStorageLocationsCount()The regional or multi-regional Cloud Storage bucket location where themachine image is stored.
repeated string storage_locations = 328005274;- Specified by:
getStorageLocationsCountin interfaceMachineImageOrBuilder- Returns:
- The count of storageLocations.
-
getStorageLocations
The regional or multi-regional Cloud Storage bucket location where themachine image is stored.
repeated string storage_locations = 328005274;- Specified by:
getStorageLocationsin interfaceMachineImageOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The storageLocations at the given index.
-
getStorageLocationsBytes
public com.google.protobuf.ByteString getStorageLocationsBytes(int index) The regional or multi-regional Cloud Storage bucket location where themachine image is stored.
repeated string storage_locations = 328005274;- Specified by:
getStorageLocationsBytesin interfaceMachineImageOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the storageLocations at the given index.
-
setStorageLocations
The regional or multi-regional Cloud Storage bucket location where themachine image is stored.
repeated string storage_locations = 328005274;- Parameters:
index- The index to set the value at.value- The storageLocations to set.- Returns:
- This builder for chaining.
-
addStorageLocations
The regional or multi-regional Cloud Storage bucket location where themachine image is stored.
repeated string storage_locations = 328005274;- Parameters:
value- The storageLocations to add.- Returns:
- This builder for chaining.
-
addAllStorageLocations
The regional or multi-regional Cloud Storage bucket location where themachine image is stored.
repeated string storage_locations = 328005274;- Parameters:
values- The storageLocations to add.- Returns:
- This builder for chaining.
-
clearStorageLocations
The regional or multi-regional Cloud Storage bucket location where themachine image is stored.
repeated string storage_locations = 328005274;- Returns:
- This builder for chaining.
-
addStorageLocationsBytes
The regional or multi-regional Cloud Storage bucket location where themachine image is stored.
repeated string storage_locations = 328005274;- Parameters:
value- The bytes of the storageLocations to add.- Returns:
- This builder for chaining.
-
hasTotalStorageBytes
public boolean hasTotalStorageBytes()Output only. [Output Only] Total size of the storage used by the machine image.
optional int64 total_storage_bytes = 81855468;- Specified by:
hasTotalStorageBytesin interfaceMachineImageOrBuilder- Returns:
- Whether the totalStorageBytes field is set.
-
getTotalStorageBytes
public long getTotalStorageBytes()Output only. [Output Only] Total size of the storage used by the machine image.
optional int64 total_storage_bytes = 81855468;- Specified by:
getTotalStorageBytesin interfaceMachineImageOrBuilder- Returns:
- The totalStorageBytes.
-
setTotalStorageBytes
Output only. [Output Only] Total size of the storage used by the machine image.
optional int64 total_storage_bytes = 81855468;- Parameters:
value- The totalStorageBytes to set.- Returns:
- This builder for chaining.
-
clearTotalStorageBytes
Output only. [Output Only] Total size of the storage used by the machine image.
optional int64 total_storage_bytes = 81855468;- Returns:
- This builder for chaining.
-