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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<MachineImage.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<MachineImage.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<MachineImage.Builder>
    • clear

      public MachineImage.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<MachineImage.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<MachineImage.Builder>
    • getDefaultInstanceForType

      public MachineImage getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public MachineImage build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public MachineImage buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public MachineImage.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MachineImage.Builder>
    • mergeFrom

      public MachineImage.Builder mergeFrom(MachineImage other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasCreationTimestamp in interface MachineImageOrBuilder
      Returns:
      Whether the creationTimestamp field is set.
    • getCreationTimestamp

      public String getCreationTimestamp()
       Output only. [Output Only] The creation timestamp for this machine image inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestamp in interface MachineImageOrBuilder
      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:
      getCreationTimestampBytes in interface MachineImageOrBuilder
      Returns:
      The bytes for creationTimestamp.
    • setCreationTimestamp

      public MachineImage.Builder setCreationTimestamp(String value)
       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

      public MachineImage.Builder 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

      public MachineImage.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
       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:
      hasDescription in interface MachineImageOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Specified by:
      getDescription in interface MachineImageOrBuilder
      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:
      getDescriptionBytes in interface MachineImageOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public MachineImage.Builder setDescription(String value)
       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

      public MachineImage.Builder 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

      public MachineImage.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       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:
      hasGuestFlush in interface MachineImageOrBuilder
      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:
      getGuestFlush in interface MachineImageOrBuilder
      Returns:
      The guestFlush.
    • setGuestFlush

      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;
      Parameters:
      value - The guestFlush to set.
      Returns:
      This builder for chaining.
    • 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:
      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:
      hasId in interface MachineImageOrBuilder
      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:
      getId in interface MachineImageOrBuilder
      Returns:
      The id.
    • setId

      public MachineImage.Builder setId(long value)
       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

      public MachineImage.Builder 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:
      hasInstanceProperties in interface MachineImageOrBuilder
      Returns:
      Whether the instanceProperties field is set.
    • getInstanceProperties

      public InstanceProperties getInstanceProperties()
       [Output Only] Properties of source instance
       
      optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;
      Specified by:
      getInstanceProperties in interface MachineImageOrBuilder
      Returns:
      The instanceProperties.
    • setInstanceProperties

      public MachineImage.Builder setInstanceProperties(InstanceProperties value)
       [Output Only] Properties of source instance
       
      optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;
    • setInstanceProperties

      public MachineImage.Builder setInstanceProperties(InstanceProperties.Builder builderForValue)
       [Output Only] Properties of source instance
       
      optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;
    • mergeInstanceProperties

      public MachineImage.Builder mergeInstanceProperties(InstanceProperties value)
       [Output Only] Properties of source instance
       
      optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;
    • clearInstanceProperties

      public MachineImage.Builder clearInstanceProperties()
       [Output Only] Properties of source instance
       
      optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;
    • getInstancePropertiesBuilder

      public InstanceProperties.Builder getInstancePropertiesBuilder()
       [Output Only] Properties of source instance
       
      optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;
    • getInstancePropertiesOrBuilder

      public InstancePropertiesOrBuilder getInstancePropertiesOrBuilder()
       [Output Only] Properties of source instance
       
      optional .google.cloud.compute.v1.InstanceProperties instance_properties = 215355165;
      Specified by:
      getInstancePropertiesOrBuilder in interface MachineImageOrBuilder
    • hasKind

      public boolean hasKind()
       Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine image.
       
      optional string kind = 3292052;
      Specified by:
      hasKind in interface MachineImageOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public String getKind()
       Output only. [Output Only] The resource type, which is alwayscompute#machineImage for machine image.
       
      optional string kind = 3292052;
      Specified by:
      getKind in interface MachineImageOrBuilder
      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:
      getKindBytes in interface MachineImageOrBuilder
      Returns:
      The bytes for kind.
    • setKind

      public MachineImage.Builder setKind(String value)
       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

      public MachineImage.Builder 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

      public MachineImage.Builder setKindBytes(com.google.protobuf.ByteString value)
       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:
      hasLabelFingerprint in interface MachineImageOrBuilder
      Returns:
      Whether the labelFingerprint field is set.
    • getLabelFingerprint

      public String 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:
      getLabelFingerprint in interface MachineImageOrBuilder
      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:
      getLabelFingerprintBytes in interface MachineImageOrBuilder
      Returns:
      The bytes for labelFingerprint.
    • setLabelFingerprint

      public MachineImage.Builder 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. 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

      public MachineImage.Builder 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

      public MachineImage.Builder 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. 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: MachineImageOrBuilder
       Labels to apply to this machine image. These can be later modified by
       the setLabels method.
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsCount in interface MachineImageOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Labels to apply to this machine image. These can be later modified by
       the setLabels method.
       
      map<string, string> labels = 500195327;
      Specified by:
      containsLabels in interface MachineImageOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface MachineImageOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Labels to apply to this machine image. These can be later modified by
       the setLabels method.
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsMap in interface MachineImageOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Labels to apply to this machine image. These can be later modified by
       the setLabels method.
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsOrDefault in interface MachineImageOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Labels to apply to this machine image. These can be later modified by
       the setLabels method.
       
      map<string, string> labels = 500195327;
      Specified by:
      getLabelsOrThrow in interface MachineImageOrBuilder
    • clearLabels

      public MachineImage.Builder clearLabels()
    • removeLabels

      public MachineImage.Builder removeLabels(String key)
       Labels to apply to this machine image. These can be later modified by
       the setLabels method.
       
      map<string, string> labels = 500195327;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public MachineImage.Builder putLabels(String key, String value)
       Labels to apply to this machine image. These can be later modified by
       the setLabels method.
       
      map<string, string> labels = 500195327;
    • putAllLabels

      public MachineImage.Builder putAllLabels(Map<String,String> values)
       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:
      hasMachineImageEncryptionKey in interface MachineImageOrBuilder
      Returns:
      Whether the machineImageEncryptionKey field is set.
    • getMachineImageEncryptionKey

      public CustomerEncryptionKey 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:
      getMachineImageEncryptionKey in interface MachineImageOrBuilder
      Returns:
      The machineImageEncryptionKey.
    • setMachineImageEncryptionKey

      public MachineImage.Builder setMachineImageEncryptionKey(CustomerEncryptionKey value)
       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

      public MachineImage.Builder mergeMachineImageEncryptionKey(CustomerEncryptionKey value)
       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

      public MachineImage.Builder 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

      public CustomerEncryptionKey.Builder 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

      public CustomerEncryptionKeyOrBuilder 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:
      getMachineImageEncryptionKeyOrBuilder in interface MachineImageOrBuilder
    • 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:
      hasName in interface MachineImageOrBuilder
      Returns:
      Whether the name field is set.
    • 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 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:
      getName in interface MachineImageOrBuilder
      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:
      getNameBytes in interface MachineImageOrBuilder
      Returns:
      The bytes for name.
    • setName

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

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

      public MachineImage.Builder setNameBytes(com.google.protobuf.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 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:
      hasParams in interface MachineImageOrBuilder
      Returns:
      Whether the params field is set.
    • getParams

      public MachineImageParams 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:
      getParams in interface MachineImageOrBuilder
      Returns:
      The params.
    • setParams

      public MachineImage.Builder setParams(MachineImageParams value)
       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

      public MachineImage.Builder setParams(MachineImageParams.Builder builderForValue)
       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

      public MachineImage.Builder mergeParams(MachineImageParams value)
       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

      public MachineImage.Builder 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

      public MachineImageParams.Builder 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

      public MachineImageParamsOrBuilder 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:
      getParamsOrBuilder in interface MachineImageOrBuilder
    • hasSatisfiesPzi

      public boolean hasSatisfiesPzi()
       Output only. Reserved for future use.
       
      optional bool satisfies_pzi = 480964257;
      Specified by:
      hasSatisfiesPzi in interface MachineImageOrBuilder
      Returns:
      Whether the satisfiesPzi field is set.
    • getSatisfiesPzi

      public boolean getSatisfiesPzi()
       Output only. Reserved for future use.
       
      optional bool satisfies_pzi = 480964257;
      Specified by:
      getSatisfiesPzi in interface MachineImageOrBuilder
      Returns:
      The satisfiesPzi.
    • setSatisfiesPzi

      public MachineImage.Builder setSatisfiesPzi(boolean value)
       Output only. Reserved for future use.
       
      optional bool satisfies_pzi = 480964257;
      Parameters:
      value - The satisfiesPzi to set.
      Returns:
      This builder for chaining.
    • clearSatisfiesPzi

      public MachineImage.Builder 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:
      hasSatisfiesPzs in interface MachineImageOrBuilder
      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:
      getSatisfiesPzs in interface MachineImageOrBuilder
      Returns:
      The satisfiesPzs.
    • setSatisfiesPzs

      public MachineImage.Builder setSatisfiesPzs(boolean value)
       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

      public MachineImage.Builder clearSatisfiesPzs()
       Output only. [Output Only] Reserved for future use.
       
      optional bool satisfies_pzs = 480964267;
      Returns:
      This builder for chaining.
    • getSavedDisksList

      public List<SavedDisk> 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:
      getSavedDisksList in interface MachineImageOrBuilder
    • 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:
      getSavedDisksCount in interface MachineImageOrBuilder
    • getSavedDisks

      public SavedDisk getSavedDisks(int index)
       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:
      getSavedDisks in interface MachineImageOrBuilder
    • setSavedDisks

      public MachineImage.Builder setSavedDisks(int index, SavedDisk value)
       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

      public MachineImage.Builder setSavedDisks(int index, SavedDisk.Builder builderForValue)
       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

      public MachineImage.Builder addSavedDisks(SavedDisk value)
       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

      public MachineImage.Builder addSavedDisks(int index, SavedDisk value)
       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

      public MachineImage.Builder addSavedDisks(SavedDisk.Builder builderForValue)
       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

      public MachineImage.Builder addSavedDisks(int index, SavedDisk.Builder builderForValue)
       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

      public MachineImage.Builder addAllSavedDisks(Iterable<? extends SavedDisk> values)
       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

      public MachineImage.Builder 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

      public MachineImage.Builder removeSavedDisks(int index)
       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

      public SavedDisk.Builder getSavedDisksBuilder(int index)
       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

      public SavedDiskOrBuilder getSavedDisksOrBuilder(int index)
       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:
      getSavedDisksOrBuilder in interface MachineImageOrBuilder
    • getSavedDisksOrBuilderList

      public List<? extends SavedDiskOrBuilder> 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:
      getSavedDisksOrBuilderList in interface MachineImageOrBuilder
    • addSavedDisksBuilder

      public SavedDisk.Builder 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

      public SavedDisk.Builder addSavedDisksBuilder(int index)
       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

      public List<SavedDisk.Builder> 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:
      hasSelfLink in interface MachineImageOrBuilder
      Returns:
      Whether the selfLink field is set.
    • getSelfLink

      public String getSelfLink()
       Output only. [Output Only] The URL for this machine image. The server defines this URL.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLink in interface MachineImageOrBuilder
      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:
      getSelfLinkBytes in interface MachineImageOrBuilder
      Returns:
      The bytes for selfLink.
    • setSelfLink

      public MachineImage.Builder setSelfLink(String value)
       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

      public MachineImage.Builder 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

      public MachineImage.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
       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

      public List<SourceDiskEncryptionKey> 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:
      getSourceDiskEncryptionKeysList in interface MachineImageOrBuilder
    • 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:
      getSourceDiskEncryptionKeysCount in interface MachineImageOrBuilder
    • getSourceDiskEncryptionKeys

      public SourceDiskEncryptionKey getSourceDiskEncryptionKeys(int index)
       [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:
      getSourceDiskEncryptionKeys in interface MachineImageOrBuilder
    • setSourceDiskEncryptionKeys

      public MachineImage.Builder setSourceDiskEncryptionKeys(int index, SourceDiskEncryptionKey value)
       [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

      public MachineImage.Builder addSourceDiskEncryptionKeys(SourceDiskEncryptionKey value)
       [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 value)
       [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

      public MachineImage.Builder 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

      public MachineImage.Builder removeSourceDiskEncryptionKeys(int index)
       [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

      public SourceDiskEncryptionKey.Builder getSourceDiskEncryptionKeysBuilder(int index)
       [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

      public SourceDiskEncryptionKeyOrBuilder getSourceDiskEncryptionKeysOrBuilder(int index)
       [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:
      getSourceDiskEncryptionKeysOrBuilder in interface MachineImageOrBuilder
    • getSourceDiskEncryptionKeysOrBuilderList

      public List<? extends SourceDiskEncryptionKeyOrBuilder> 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:
      getSourceDiskEncryptionKeysOrBuilderList in interface MachineImageOrBuilder
    • addSourceDiskEncryptionKeysBuilder

      public SourceDiskEncryptionKey.Builder 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

      public SourceDiskEncryptionKey.Builder addSourceDiskEncryptionKeysBuilder(int index)
       [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

      public List<SourceDiskEncryptionKey.Builder> 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:
      hasSourceInstance in interface MachineImageOrBuilder
      Returns:
      Whether the sourceInstance field is set.
    • 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;
      Specified by:
      getSourceInstance in interface MachineImageOrBuilder
      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:
      getSourceInstanceBytes in interface MachineImageOrBuilder
      Returns:
      The bytes for sourceInstance.
    • setSourceInstance

      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;
      Parameters:
      value - The sourceInstance to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setSourceInstanceBytes

      public MachineImage.Builder setSourceInstanceBytes(com.google.protobuf.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;
      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:
      hasSourceInstanceProperties in interface MachineImageOrBuilder
      Returns:
      Whether the sourceInstanceProperties field is set.
    • getSourceInstanceProperties

      public SourceInstanceProperties 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:
      getSourceInstanceProperties in interface MachineImageOrBuilder
      Returns:
      The sourceInstanceProperties.
    • setSourceInstanceProperties

      public MachineImage.Builder setSourceInstanceProperties(SourceInstanceProperties value)
       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

      public MachineImage.Builder mergeSourceInstanceProperties(SourceInstanceProperties value)
       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

      public MachineImage.Builder 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

      public SourceInstanceProperties.Builder 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

      public SourceInstancePropertiesOrBuilder 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:
      getSourceInstancePropertiesOrBuilder in interface MachineImageOrBuilder
    • 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:
      hasStatus in interface MachineImageOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public String 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:
      getStatus in interface MachineImageOrBuilder
      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:
      getStatusBytes in interface MachineImageOrBuilder
      Returns:
      The bytes for status.
    • setStatus

      public MachineImage.Builder setStatus(String value)
       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

      public MachineImage.Builder 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

      public MachineImage.Builder setStatusBytes(com.google.protobuf.ByteString value)
       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:
      getStorageLocationsList in interface MachineImageOrBuilder
      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:
      getStorageLocationsCount in interface MachineImageOrBuilder
      Returns:
      The count of storageLocations.
    • getStorageLocations

      public String getStorageLocations(int index)
       The regional or multi-regional Cloud Storage bucket location where themachine image is
       stored.
       
      repeated string storage_locations = 328005274;
      Specified by:
      getStorageLocations in interface MachineImageOrBuilder
      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:
      getStorageLocationsBytes in interface MachineImageOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the storageLocations at the given index.
    • setStorageLocations

      public MachineImage.Builder setStorageLocations(int index, String value)
       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

      public MachineImage.Builder addStorageLocations(String value)
       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

      public MachineImage.Builder addAllStorageLocations(Iterable<String> values)
       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

      public MachineImage.Builder 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

      public MachineImage.Builder addStorageLocationsBytes(com.google.protobuf.ByteString value)
       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:
      hasTotalStorageBytes in interface MachineImageOrBuilder
      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:
      getTotalStorageBytes in interface MachineImageOrBuilder
      Returns:
      The totalStorageBytes.
    • setTotalStorageBytes

      public MachineImage.Builder setTotalStorageBytes(long value)
       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

      public MachineImage.Builder 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.