Class VirtualMachine.Builder

  • All Implemented Interfaces:
    VirtualMachineOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    VirtualMachine

    public static final class VirtualMachine.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
    implements VirtualMachineOrBuilder
     Carries information about a Compute Engine VM resource.
     
    Protobuf type google.cloud.lifesciences.v2beta.VirtualMachine
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
      • internalGetFieldAccessorTable

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

        public VirtualMachine.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.GeneratedMessageV3.Builder<VirtualMachine.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.GeneratedMessageV3.Builder<VirtualMachine.Builder>
      • getDefaultInstanceForType

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

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

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

        public VirtualMachine.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
      • setField

        public VirtualMachine.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
      • clearField

        public VirtualMachine.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
      • clearOneof

        public VirtualMachine.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
      • setRepeatedField

        public VirtualMachine.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       int index,
                                                       Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
      • addRepeatedField

        public VirtualMachine.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
      • mergeFrom

        public VirtualMachine.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<VirtualMachine.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
      • mergeFrom

        public VirtualMachine.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<VirtualMachine.Builder>
        Throws:
        IOException
      • getMachineType

        public String getMachineType()
         Required. The machine type of the virtual machine to create. Must be the
         short name of a standard machine type (such as "n1-standard-1") or a custom
         machine type (such as "custom-1-4096", where "1" indicates the number of
         vCPUs and "4096" indicates the memory in MB). See [Creating an instance
         with a custom machine
         type](https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#create)
         for more specifications on creating a custom machine type.
         
        string machine_type = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMachineType in interface VirtualMachineOrBuilder
        Returns:
        The machineType.
      • getMachineTypeBytes

        public com.google.protobuf.ByteString getMachineTypeBytes()
         Required. The machine type of the virtual machine to create. Must be the
         short name of a standard machine type (such as "n1-standard-1") or a custom
         machine type (such as "custom-1-4096", where "1" indicates the number of
         vCPUs and "4096" indicates the memory in MB). See [Creating an instance
         with a custom machine
         type](https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#create)
         for more specifications on creating a custom machine type.
         
        string machine_type = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMachineTypeBytes in interface VirtualMachineOrBuilder
        Returns:
        The bytes for machineType.
      • setMachineType

        public VirtualMachine.Builder setMachineType​(String value)
         Required. The machine type of the virtual machine to create. Must be the
         short name of a standard machine type (such as "n1-standard-1") or a custom
         machine type (such as "custom-1-4096", where "1" indicates the number of
         vCPUs and "4096" indicates the memory in MB). See [Creating an instance
         with a custom machine
         type](https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#create)
         for more specifications on creating a custom machine type.
         
        string machine_type = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The machineType to set.
        Returns:
        This builder for chaining.
      • clearMachineType

        public VirtualMachine.Builder clearMachineType()
         Required. The machine type of the virtual machine to create. Must be the
         short name of a standard machine type (such as "n1-standard-1") or a custom
         machine type (such as "custom-1-4096", where "1" indicates the number of
         vCPUs and "4096" indicates the memory in MB). See [Creating an instance
         with a custom machine
         type](https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#create)
         for more specifications on creating a custom machine type.
         
        string machine_type = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setMachineTypeBytes

        public VirtualMachine.Builder setMachineTypeBytes​(com.google.protobuf.ByteString value)
         Required. The machine type of the virtual machine to create. Must be the
         short name of a standard machine type (such as "n1-standard-1") or a custom
         machine type (such as "custom-1-4096", where "1" indicates the number of
         vCPUs and "4096" indicates the memory in MB). See [Creating an instance
         with a custom machine
         type](https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type#create)
         for more specifications on creating a custom machine type.
         
        string machine_type = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for machineType to set.
        Returns:
        This builder for chaining.
      • getPreemptible

        public boolean getPreemptible()
         If true, allocate a preemptible VM.
         
        bool preemptible = 2;
        Specified by:
        getPreemptible in interface VirtualMachineOrBuilder
        Returns:
        The preemptible.
      • setPreemptible

        public VirtualMachine.Builder setPreemptible​(boolean value)
         If true, allocate a preemptible VM.
         
        bool preemptible = 2;
        Parameters:
        value - The preemptible to set.
        Returns:
        This builder for chaining.
      • clearPreemptible

        public VirtualMachine.Builder clearPreemptible()
         If true, allocate a preemptible VM.
         
        bool preemptible = 2;
        Returns:
        This builder for chaining.
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: VirtualMachineOrBuilder
         Optional set of labels to apply to the VM and any attached disk resources.
         These labels must adhere to the [name and value
         restrictions](https://cloud.google.com/compute/docs/labeling-resources) on
         VM labels imposed by Compute Engine.
        
         Labels keys with the prefix 'google-' are reserved for use by Google.
        
         Labels applied at creation time to the VM. Applied on a best-effort basis
         to attached disk resources shortly after VM creation.
         
        map<string, string> labels = 3;
        Specified by:
        getLabelsCount in interface VirtualMachineOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Optional set of labels to apply to the VM and any attached disk resources.
         These labels must adhere to the [name and value
         restrictions](https://cloud.google.com/compute/docs/labeling-resources) on
         VM labels imposed by Compute Engine.
        
         Labels keys with the prefix 'google-' are reserved for use by Google.
        
         Labels applied at creation time to the VM. Applied on a best-effort basis
         to attached disk resources shortly after VM creation.
         
        map<string, string> labels = 3;
        Specified by:
        containsLabels in interface VirtualMachineOrBuilder
      • getLabelsMap

        public Map<String,​String> getLabelsMap()
         Optional set of labels to apply to the VM and any attached disk resources.
         These labels must adhere to the [name and value
         restrictions](https://cloud.google.com/compute/docs/labeling-resources) on
         VM labels imposed by Compute Engine.
        
         Labels keys with the prefix 'google-' are reserved for use by Google.
        
         Labels applied at creation time to the VM. Applied on a best-effort basis
         to attached disk resources shortly after VM creation.
         
        map<string, string> labels = 3;
        Specified by:
        getLabelsMap in interface VirtualMachineOrBuilder
      • getLabelsOrDefault

        public String getLabelsOrDefault​(String key,
                                         String defaultValue)
         Optional set of labels to apply to the VM and any attached disk resources.
         These labels must adhere to the [name and value
         restrictions](https://cloud.google.com/compute/docs/labeling-resources) on
         VM labels imposed by Compute Engine.
        
         Labels keys with the prefix 'google-' are reserved for use by Google.
        
         Labels applied at creation time to the VM. Applied on a best-effort basis
         to attached disk resources shortly after VM creation.
         
        map<string, string> labels = 3;
        Specified by:
        getLabelsOrDefault in interface VirtualMachineOrBuilder
      • getLabelsOrThrow

        public String getLabelsOrThrow​(String key)
         Optional set of labels to apply to the VM and any attached disk resources.
         These labels must adhere to the [name and value
         restrictions](https://cloud.google.com/compute/docs/labeling-resources) on
         VM labels imposed by Compute Engine.
        
         Labels keys with the prefix 'google-' are reserved for use by Google.
        
         Labels applied at creation time to the VM. Applied on a best-effort basis
         to attached disk resources shortly after VM creation.
         
        map<string, string> labels = 3;
        Specified by:
        getLabelsOrThrow in interface VirtualMachineOrBuilder
      • removeLabels

        public VirtualMachine.Builder removeLabels​(String key)
         Optional set of labels to apply to the VM and any attached disk resources.
         These labels must adhere to the [name and value
         restrictions](https://cloud.google.com/compute/docs/labeling-resources) on
         VM labels imposed by Compute Engine.
        
         Labels keys with the prefix 'google-' are reserved for use by Google.
        
         Labels applied at creation time to the VM. Applied on a best-effort basis
         to attached disk resources shortly after VM creation.
         
        map<string, string> labels = 3;
      • getMutableLabels

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

        public VirtualMachine.Builder putLabels​(String key,
                                                String value)
         Optional set of labels to apply to the VM and any attached disk resources.
         These labels must adhere to the [name and value
         restrictions](https://cloud.google.com/compute/docs/labeling-resources) on
         VM labels imposed by Compute Engine.
        
         Labels keys with the prefix 'google-' are reserved for use by Google.
        
         Labels applied at creation time to the VM. Applied on a best-effort basis
         to attached disk resources shortly after VM creation.
         
        map<string, string> labels = 3;
      • putAllLabels

        public VirtualMachine.Builder putAllLabels​(Map<String,​String> values)
         Optional set of labels to apply to the VM and any attached disk resources.
         These labels must adhere to the [name and value
         restrictions](https://cloud.google.com/compute/docs/labeling-resources) on
         VM labels imposed by Compute Engine.
        
         Labels keys with the prefix 'google-' are reserved for use by Google.
        
         Labels applied at creation time to the VM. Applied on a best-effort basis
         to attached disk resources shortly after VM creation.
         
        map<string, string> labels = 3;
      • getDisksList

        public List<Disk> getDisksList()
         The list of disks to create and attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
        Specified by:
        getDisksList in interface VirtualMachineOrBuilder
      • getDisksCount

        public int getDisksCount()
         The list of disks to create and attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
        Specified by:
        getDisksCount in interface VirtualMachineOrBuilder
      • getDisks

        public Disk getDisks​(int index)
         The list of disks to create and attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
        Specified by:
        getDisks in interface VirtualMachineOrBuilder
      • setDisks

        public VirtualMachine.Builder setDisks​(int index,
                                               Disk value)
         The list of disks to create and attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
      • setDisks

        public VirtualMachine.Builder setDisks​(int index,
                                               Disk.Builder builderForValue)
         The list of disks to create and attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
      • addDisks

        public VirtualMachine.Builder addDisks​(Disk value)
         The list of disks to create and attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
      • addDisks

        public VirtualMachine.Builder addDisks​(int index,
                                               Disk value)
         The list of disks to create and attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
      • addDisks

        public VirtualMachine.Builder addDisks​(Disk.Builder builderForValue)
         The list of disks to create and attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
      • addDisks

        public VirtualMachine.Builder addDisks​(int index,
                                               Disk.Builder builderForValue)
         The list of disks to create and attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
      • addAllDisks

        public VirtualMachine.Builder addAllDisks​(Iterable<? extends Disk> values)
         The list of disks to create and attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
      • clearDisks

        public VirtualMachine.Builder clearDisks()
         The list of disks to create and attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
      • removeDisks

        public VirtualMachine.Builder removeDisks​(int index)
         The list of disks to create and attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
      • getDisksBuilder

        public Disk.Builder getDisksBuilder​(int index)
         The list of disks to create and attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
      • getDisksOrBuilder

        public DiskOrBuilder getDisksOrBuilder​(int index)
         The list of disks to create and attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
        Specified by:
        getDisksOrBuilder in interface VirtualMachineOrBuilder
      • getDisksOrBuilderList

        public List<? extends DiskOrBuilder> getDisksOrBuilderList()
         The list of disks to create and attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
        Specified by:
        getDisksOrBuilderList in interface VirtualMachineOrBuilder
      • addDisksBuilder

        public Disk.Builder addDisksBuilder()
         The list of disks to create and attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
      • addDisksBuilder

        public Disk.Builder addDisksBuilder​(int index)
         The list of disks to create and attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
      • getDisksBuilderList

        public List<Disk.Builder> getDisksBuilderList()
         The list of disks to create and attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Disk disks = 4;
      • hasNetwork

        public boolean hasNetwork()
         The VM network configuration.
         
        .google.cloud.lifesciences.v2beta.Network network = 5;
        Specified by:
        hasNetwork in interface VirtualMachineOrBuilder
        Returns:
        Whether the network field is set.
      • getNetwork

        public Network getNetwork()
         The VM network configuration.
         
        .google.cloud.lifesciences.v2beta.Network network = 5;
        Specified by:
        getNetwork in interface VirtualMachineOrBuilder
        Returns:
        The network.
      • setNetwork

        public VirtualMachine.Builder setNetwork​(Network value)
         The VM network configuration.
         
        .google.cloud.lifesciences.v2beta.Network network = 5;
      • mergeNetwork

        public VirtualMachine.Builder mergeNetwork​(Network value)
         The VM network configuration.
         
        .google.cloud.lifesciences.v2beta.Network network = 5;
      • clearNetwork

        public VirtualMachine.Builder clearNetwork()
         The VM network configuration.
         
        .google.cloud.lifesciences.v2beta.Network network = 5;
      • getNetworkBuilder

        public Network.Builder getNetworkBuilder()
         The VM network configuration.
         
        .google.cloud.lifesciences.v2beta.Network network = 5;
      • getAcceleratorsCount

        public int getAcceleratorsCount()
         The list of accelerators to attach to the VM.
         
        repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
        Specified by:
        getAcceleratorsCount in interface VirtualMachineOrBuilder
      • getAccelerators

        public Accelerator getAccelerators​(int index)
         The list of accelerators to attach to the VM.
         
        repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
        Specified by:
        getAccelerators in interface VirtualMachineOrBuilder
      • setAccelerators

        public VirtualMachine.Builder setAccelerators​(int index,
                                                      Accelerator value)
         The list of accelerators to attach to the VM.
         
        repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
      • setAccelerators

        public VirtualMachine.Builder setAccelerators​(int index,
                                                      Accelerator.Builder builderForValue)
         The list of accelerators to attach to the VM.
         
        repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
      • addAccelerators

        public VirtualMachine.Builder addAccelerators​(Accelerator value)
         The list of accelerators to attach to the VM.
         
        repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
      • addAccelerators

        public VirtualMachine.Builder addAccelerators​(int index,
                                                      Accelerator value)
         The list of accelerators to attach to the VM.
         
        repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
      • addAccelerators

        public VirtualMachine.Builder addAccelerators​(Accelerator.Builder builderForValue)
         The list of accelerators to attach to the VM.
         
        repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
      • addAccelerators

        public VirtualMachine.Builder addAccelerators​(int index,
                                                      Accelerator.Builder builderForValue)
         The list of accelerators to attach to the VM.
         
        repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
      • addAllAccelerators

        public VirtualMachine.Builder addAllAccelerators​(Iterable<? extends Accelerator> values)
         The list of accelerators to attach to the VM.
         
        repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
      • clearAccelerators

        public VirtualMachine.Builder clearAccelerators()
         The list of accelerators to attach to the VM.
         
        repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
      • removeAccelerators

        public VirtualMachine.Builder removeAccelerators​(int index)
         The list of accelerators to attach to the VM.
         
        repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
      • getAcceleratorsBuilder

        public Accelerator.Builder getAcceleratorsBuilder​(int index)
         The list of accelerators to attach to the VM.
         
        repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
      • addAcceleratorsBuilder

        public Accelerator.Builder addAcceleratorsBuilder()
         The list of accelerators to attach to the VM.
         
        repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
      • addAcceleratorsBuilder

        public Accelerator.Builder addAcceleratorsBuilder​(int index)
         The list of accelerators to attach to the VM.
         
        repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
      • getAcceleratorsBuilderList

        public List<Accelerator.Builder> getAcceleratorsBuilderList()
         The list of accelerators to attach to the VM.
         
        repeated .google.cloud.lifesciences.v2beta.Accelerator accelerators = 6;
      • hasServiceAccount

        public boolean hasServiceAccount()
         The service account to install on the VM. This account does not need
         any permissions other than those required by the pipeline.
         
        .google.cloud.lifesciences.v2beta.ServiceAccount service_account = 7;
        Specified by:
        hasServiceAccount in interface VirtualMachineOrBuilder
        Returns:
        Whether the serviceAccount field is set.
      • getServiceAccount

        public ServiceAccount getServiceAccount()
         The service account to install on the VM. This account does not need
         any permissions other than those required by the pipeline.
         
        .google.cloud.lifesciences.v2beta.ServiceAccount service_account = 7;
        Specified by:
        getServiceAccount in interface VirtualMachineOrBuilder
        Returns:
        The serviceAccount.
      • setServiceAccount

        public VirtualMachine.Builder setServiceAccount​(ServiceAccount value)
         The service account to install on the VM. This account does not need
         any permissions other than those required by the pipeline.
         
        .google.cloud.lifesciences.v2beta.ServiceAccount service_account = 7;
      • setServiceAccount

        public VirtualMachine.Builder setServiceAccount​(ServiceAccount.Builder builderForValue)
         The service account to install on the VM. This account does not need
         any permissions other than those required by the pipeline.
         
        .google.cloud.lifesciences.v2beta.ServiceAccount service_account = 7;
      • mergeServiceAccount

        public VirtualMachine.Builder mergeServiceAccount​(ServiceAccount value)
         The service account to install on the VM. This account does not need
         any permissions other than those required by the pipeline.
         
        .google.cloud.lifesciences.v2beta.ServiceAccount service_account = 7;
      • clearServiceAccount

        public VirtualMachine.Builder clearServiceAccount()
         The service account to install on the VM. This account does not need
         any permissions other than those required by the pipeline.
         
        .google.cloud.lifesciences.v2beta.ServiceAccount service_account = 7;
      • getServiceAccountBuilder

        public ServiceAccount.Builder getServiceAccountBuilder()
         The service account to install on the VM. This account does not need
         any permissions other than those required by the pipeline.
         
        .google.cloud.lifesciences.v2beta.ServiceAccount service_account = 7;
      • getServiceAccountOrBuilder

        public ServiceAccountOrBuilder getServiceAccountOrBuilder()
         The service account to install on the VM. This account does not need
         any permissions other than those required by the pipeline.
         
        .google.cloud.lifesciences.v2beta.ServiceAccount service_account = 7;
        Specified by:
        getServiceAccountOrBuilder in interface VirtualMachineOrBuilder
      • getBootDiskSizeGb

        public int getBootDiskSizeGb()
         The size of the boot disk, in GB. The boot disk must be large
         enough to accommodate all of the Docker images from each action in the
         pipeline at the same time. If not specified, a small but reasonable
         default value is used.
         
        int32 boot_disk_size_gb = 8;
        Specified by:
        getBootDiskSizeGb in interface VirtualMachineOrBuilder
        Returns:
        The bootDiskSizeGb.
      • setBootDiskSizeGb

        public VirtualMachine.Builder setBootDiskSizeGb​(int value)
         The size of the boot disk, in GB. The boot disk must be large
         enough to accommodate all of the Docker images from each action in the
         pipeline at the same time. If not specified, a small but reasonable
         default value is used.
         
        int32 boot_disk_size_gb = 8;
        Parameters:
        value - The bootDiskSizeGb to set.
        Returns:
        This builder for chaining.
      • clearBootDiskSizeGb

        public VirtualMachine.Builder clearBootDiskSizeGb()
         The size of the boot disk, in GB. The boot disk must be large
         enough to accommodate all of the Docker images from each action in the
         pipeline at the same time. If not specified, a small but reasonable
         default value is used.
         
        int32 boot_disk_size_gb = 8;
        Returns:
        This builder for chaining.
      • getCpuPlatform

        public String getCpuPlatform()
         The CPU platform to request. An instance based on a newer platform can be
         allocated, but never one with fewer capabilities. The value of this
         parameter must be a valid Compute Engine CPU platform name (such as "Intel
         Skylake"). This parameter is only useful for carefully optimized work
         loads where the CPU platform has a significant impact.
        
         For more information about the effect of this parameter, see
         https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
         
        string cpu_platform = 9;
        Specified by:
        getCpuPlatform in interface VirtualMachineOrBuilder
        Returns:
        The cpuPlatform.
      • getCpuPlatformBytes

        public com.google.protobuf.ByteString getCpuPlatformBytes()
         The CPU platform to request. An instance based on a newer platform can be
         allocated, but never one with fewer capabilities. The value of this
         parameter must be a valid Compute Engine CPU platform name (such as "Intel
         Skylake"). This parameter is only useful for carefully optimized work
         loads where the CPU platform has a significant impact.
        
         For more information about the effect of this parameter, see
         https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
         
        string cpu_platform = 9;
        Specified by:
        getCpuPlatformBytes in interface VirtualMachineOrBuilder
        Returns:
        The bytes for cpuPlatform.
      • setCpuPlatform

        public VirtualMachine.Builder setCpuPlatform​(String value)
         The CPU platform to request. An instance based on a newer platform can be
         allocated, but never one with fewer capabilities. The value of this
         parameter must be a valid Compute Engine CPU platform name (such as "Intel
         Skylake"). This parameter is only useful for carefully optimized work
         loads where the CPU platform has a significant impact.
        
         For more information about the effect of this parameter, see
         https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
         
        string cpu_platform = 9;
        Parameters:
        value - The cpuPlatform to set.
        Returns:
        This builder for chaining.
      • clearCpuPlatform

        public VirtualMachine.Builder clearCpuPlatform()
         The CPU platform to request. An instance based on a newer platform can be
         allocated, but never one with fewer capabilities. The value of this
         parameter must be a valid Compute Engine CPU platform name (such as "Intel
         Skylake"). This parameter is only useful for carefully optimized work
         loads where the CPU platform has a significant impact.
        
         For more information about the effect of this parameter, see
         https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
         
        string cpu_platform = 9;
        Returns:
        This builder for chaining.
      • setCpuPlatformBytes

        public VirtualMachine.Builder setCpuPlatformBytes​(com.google.protobuf.ByteString value)
         The CPU platform to request. An instance based on a newer platform can be
         allocated, but never one with fewer capabilities. The value of this
         parameter must be a valid Compute Engine CPU platform name (such as "Intel
         Skylake"). This parameter is only useful for carefully optimized work
         loads where the CPU platform has a significant impact.
        
         For more information about the effect of this parameter, see
         https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
         
        string cpu_platform = 9;
        Parameters:
        value - The bytes for cpuPlatform to set.
        Returns:
        This builder for chaining.
      • getBootImage

        public String getBootImage()
         The host operating system image to use.
        
         Currently, only Container-Optimized OS images can be used.
        
         The default value is `projects/cos-cloud/global/images/family/cos-stable`,
         which selects the latest stable release of Container-Optimized OS.
        
         This option is provided to allow testing against the beta release of the
         operating system to ensure that the new version does not interact
         negatively with production pipelines.
        
         To test a pipeline against the beta release of Container-Optimized OS,
         use the value `projects/cos-cloud/global/images/family/cos-beta`.
         
        string boot_image = 10;
        Specified by:
        getBootImage in interface VirtualMachineOrBuilder
        Returns:
        The bootImage.
      • getBootImageBytes

        public com.google.protobuf.ByteString getBootImageBytes()
         The host operating system image to use.
        
         Currently, only Container-Optimized OS images can be used.
        
         The default value is `projects/cos-cloud/global/images/family/cos-stable`,
         which selects the latest stable release of Container-Optimized OS.
        
         This option is provided to allow testing against the beta release of the
         operating system to ensure that the new version does not interact
         negatively with production pipelines.
        
         To test a pipeline against the beta release of Container-Optimized OS,
         use the value `projects/cos-cloud/global/images/family/cos-beta`.
         
        string boot_image = 10;
        Specified by:
        getBootImageBytes in interface VirtualMachineOrBuilder
        Returns:
        The bytes for bootImage.
      • setBootImage

        public VirtualMachine.Builder setBootImage​(String value)
         The host operating system image to use.
        
         Currently, only Container-Optimized OS images can be used.
        
         The default value is `projects/cos-cloud/global/images/family/cos-stable`,
         which selects the latest stable release of Container-Optimized OS.
        
         This option is provided to allow testing against the beta release of the
         operating system to ensure that the new version does not interact
         negatively with production pipelines.
        
         To test a pipeline against the beta release of Container-Optimized OS,
         use the value `projects/cos-cloud/global/images/family/cos-beta`.
         
        string boot_image = 10;
        Parameters:
        value - The bootImage to set.
        Returns:
        This builder for chaining.
      • clearBootImage

        public VirtualMachine.Builder clearBootImage()
         The host operating system image to use.
        
         Currently, only Container-Optimized OS images can be used.
        
         The default value is `projects/cos-cloud/global/images/family/cos-stable`,
         which selects the latest stable release of Container-Optimized OS.
        
         This option is provided to allow testing against the beta release of the
         operating system to ensure that the new version does not interact
         negatively with production pipelines.
        
         To test a pipeline against the beta release of Container-Optimized OS,
         use the value `projects/cos-cloud/global/images/family/cos-beta`.
         
        string boot_image = 10;
        Returns:
        This builder for chaining.
      • setBootImageBytes

        public VirtualMachine.Builder setBootImageBytes​(com.google.protobuf.ByteString value)
         The host operating system image to use.
        
         Currently, only Container-Optimized OS images can be used.
        
         The default value is `projects/cos-cloud/global/images/family/cos-stable`,
         which selects the latest stable release of Container-Optimized OS.
        
         This option is provided to allow testing against the beta release of the
         operating system to ensure that the new version does not interact
         negatively with production pipelines.
        
         To test a pipeline against the beta release of Container-Optimized OS,
         use the value `projects/cos-cloud/global/images/family/cos-beta`.
         
        string boot_image = 10;
        Parameters:
        value - The bytes for bootImage to set.
        Returns:
        This builder for chaining.
      • getNvidiaDriverVersion

        @Deprecated
        public String getNvidiaDriverVersion()
        Deprecated.
        google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated. See google/cloud/lifesciences/v2beta/workflows.proto;l=411
         The NVIDIA driver version to use when attaching an NVIDIA GPU accelerator.
         The version specified here must be compatible with the GPU libraries
         contained in the container being executed, and must be one of the drivers
         hosted in the `nvidia-drivers-us-public` bucket on Google Cloud Storage.
         
        string nvidia_driver_version = 11 [deprecated = true];
        Specified by:
        getNvidiaDriverVersion in interface VirtualMachineOrBuilder
        Returns:
        The nvidiaDriverVersion.
      • getNvidiaDriverVersionBytes

        @Deprecated
        public com.google.protobuf.ByteString getNvidiaDriverVersionBytes()
        Deprecated.
        google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated. See google/cloud/lifesciences/v2beta/workflows.proto;l=411
         The NVIDIA driver version to use when attaching an NVIDIA GPU accelerator.
         The version specified here must be compatible with the GPU libraries
         contained in the container being executed, and must be one of the drivers
         hosted in the `nvidia-drivers-us-public` bucket on Google Cloud Storage.
         
        string nvidia_driver_version = 11 [deprecated = true];
        Specified by:
        getNvidiaDriverVersionBytes in interface VirtualMachineOrBuilder
        Returns:
        The bytes for nvidiaDriverVersion.
      • setNvidiaDriverVersion

        @Deprecated
        public VirtualMachine.Builder setNvidiaDriverVersion​(String value)
        Deprecated.
        google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated. See google/cloud/lifesciences/v2beta/workflows.proto;l=411
         The NVIDIA driver version to use when attaching an NVIDIA GPU accelerator.
         The version specified here must be compatible with the GPU libraries
         contained in the container being executed, and must be one of the drivers
         hosted in the `nvidia-drivers-us-public` bucket on Google Cloud Storage.
         
        string nvidia_driver_version = 11 [deprecated = true];
        Parameters:
        value - The nvidiaDriverVersion to set.
        Returns:
        This builder for chaining.
      • clearNvidiaDriverVersion

        @Deprecated
        public VirtualMachine.Builder clearNvidiaDriverVersion()
        Deprecated.
        google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated. See google/cloud/lifesciences/v2beta/workflows.proto;l=411
         The NVIDIA driver version to use when attaching an NVIDIA GPU accelerator.
         The version specified here must be compatible with the GPU libraries
         contained in the container being executed, and must be one of the drivers
         hosted in the `nvidia-drivers-us-public` bucket on Google Cloud Storage.
         
        string nvidia_driver_version = 11 [deprecated = true];
        Returns:
        This builder for chaining.
      • setNvidiaDriverVersionBytes

        @Deprecated
        public VirtualMachine.Builder setNvidiaDriverVersionBytes​(com.google.protobuf.ByteString value)
        Deprecated.
        google.cloud.lifesciences.v2beta.VirtualMachine.nvidia_driver_version is deprecated. See google/cloud/lifesciences/v2beta/workflows.proto;l=411
         The NVIDIA driver version to use when attaching an NVIDIA GPU accelerator.
         The version specified here must be compatible with the GPU libraries
         contained in the container being executed, and must be one of the drivers
         hosted in the `nvidia-drivers-us-public` bucket on Google Cloud Storage.
         
        string nvidia_driver_version = 11 [deprecated = true];
        Parameters:
        value - The bytes for nvidiaDriverVersion to set.
        Returns:
        This builder for chaining.
      • getEnableStackdriverMonitoring

        public boolean getEnableStackdriverMonitoring()
         Whether Stackdriver monitoring should be enabled on the VM.
         
        bool enable_stackdriver_monitoring = 12;
        Specified by:
        getEnableStackdriverMonitoring in interface VirtualMachineOrBuilder
        Returns:
        The enableStackdriverMonitoring.
      • setEnableStackdriverMonitoring

        public VirtualMachine.Builder setEnableStackdriverMonitoring​(boolean value)
         Whether Stackdriver monitoring should be enabled on the VM.
         
        bool enable_stackdriver_monitoring = 12;
        Parameters:
        value - The enableStackdriverMonitoring to set.
        Returns:
        This builder for chaining.
      • clearEnableStackdriverMonitoring

        public VirtualMachine.Builder clearEnableStackdriverMonitoring()
         Whether Stackdriver monitoring should be enabled on the VM.
         
        bool enable_stackdriver_monitoring = 12;
        Returns:
        This builder for chaining.
      • getDockerCacheImagesList

        public com.google.protobuf.ProtocolStringList getDockerCacheImagesList()
         The Compute Engine Disk Images to use as a Docker cache. The disks will be
         mounted into the Docker folder in a way that the images present in the
         cache will not need to be pulled. The digests of the cached images must
         match those of the tags used or the latest version will still be pulled.
         The root directory of the ext4 image must contain `image` and `overlay2`
         directories copied from the Docker directory of a VM where the desired
         Docker images have already been pulled. Any images pulled that are not
         cached will be stored on the first cache disk instead of the boot disk.
         Only a single image is supported.
         
        repeated string docker_cache_images = 13;
        Specified by:
        getDockerCacheImagesList in interface VirtualMachineOrBuilder
        Returns:
        A list containing the dockerCacheImages.
      • getDockerCacheImagesCount

        public int getDockerCacheImagesCount()
         The Compute Engine Disk Images to use as a Docker cache. The disks will be
         mounted into the Docker folder in a way that the images present in the
         cache will not need to be pulled. The digests of the cached images must
         match those of the tags used or the latest version will still be pulled.
         The root directory of the ext4 image must contain `image` and `overlay2`
         directories copied from the Docker directory of a VM where the desired
         Docker images have already been pulled. Any images pulled that are not
         cached will be stored on the first cache disk instead of the boot disk.
         Only a single image is supported.
         
        repeated string docker_cache_images = 13;
        Specified by:
        getDockerCacheImagesCount in interface VirtualMachineOrBuilder
        Returns:
        The count of dockerCacheImages.
      • getDockerCacheImages

        public String getDockerCacheImages​(int index)
         The Compute Engine Disk Images to use as a Docker cache. The disks will be
         mounted into the Docker folder in a way that the images present in the
         cache will not need to be pulled. The digests of the cached images must
         match those of the tags used or the latest version will still be pulled.
         The root directory of the ext4 image must contain `image` and `overlay2`
         directories copied from the Docker directory of a VM where the desired
         Docker images have already been pulled. Any images pulled that are not
         cached will be stored on the first cache disk instead of the boot disk.
         Only a single image is supported.
         
        repeated string docker_cache_images = 13;
        Specified by:
        getDockerCacheImages in interface VirtualMachineOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The dockerCacheImages at the given index.
      • getDockerCacheImagesBytes

        public com.google.protobuf.ByteString getDockerCacheImagesBytes​(int index)
         The Compute Engine Disk Images to use as a Docker cache. The disks will be
         mounted into the Docker folder in a way that the images present in the
         cache will not need to be pulled. The digests of the cached images must
         match those of the tags used or the latest version will still be pulled.
         The root directory of the ext4 image must contain `image` and `overlay2`
         directories copied from the Docker directory of a VM where the desired
         Docker images have already been pulled. Any images pulled that are not
         cached will be stored on the first cache disk instead of the boot disk.
         Only a single image is supported.
         
        repeated string docker_cache_images = 13;
        Specified by:
        getDockerCacheImagesBytes in interface VirtualMachineOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the dockerCacheImages at the given index.
      • setDockerCacheImages

        public VirtualMachine.Builder setDockerCacheImages​(int index,
                                                           String value)
         The Compute Engine Disk Images to use as a Docker cache. The disks will be
         mounted into the Docker folder in a way that the images present in the
         cache will not need to be pulled. The digests of the cached images must
         match those of the tags used or the latest version will still be pulled.
         The root directory of the ext4 image must contain `image` and `overlay2`
         directories copied from the Docker directory of a VM where the desired
         Docker images have already been pulled. Any images pulled that are not
         cached will be stored on the first cache disk instead of the boot disk.
         Only a single image is supported.
         
        repeated string docker_cache_images = 13;
        Parameters:
        index - The index to set the value at.
        value - The dockerCacheImages to set.
        Returns:
        This builder for chaining.
      • addDockerCacheImages

        public VirtualMachine.Builder addDockerCacheImages​(String value)
         The Compute Engine Disk Images to use as a Docker cache. The disks will be
         mounted into the Docker folder in a way that the images present in the
         cache will not need to be pulled. The digests of the cached images must
         match those of the tags used or the latest version will still be pulled.
         The root directory of the ext4 image must contain `image` and `overlay2`
         directories copied from the Docker directory of a VM where the desired
         Docker images have already been pulled. Any images pulled that are not
         cached will be stored on the first cache disk instead of the boot disk.
         Only a single image is supported.
         
        repeated string docker_cache_images = 13;
        Parameters:
        value - The dockerCacheImages to add.
        Returns:
        This builder for chaining.
      • addAllDockerCacheImages

        public VirtualMachine.Builder addAllDockerCacheImages​(Iterable<String> values)
         The Compute Engine Disk Images to use as a Docker cache. The disks will be
         mounted into the Docker folder in a way that the images present in the
         cache will not need to be pulled. The digests of the cached images must
         match those of the tags used or the latest version will still be pulled.
         The root directory of the ext4 image must contain `image` and `overlay2`
         directories copied from the Docker directory of a VM where the desired
         Docker images have already been pulled. Any images pulled that are not
         cached will be stored on the first cache disk instead of the boot disk.
         Only a single image is supported.
         
        repeated string docker_cache_images = 13;
        Parameters:
        values - The dockerCacheImages to add.
        Returns:
        This builder for chaining.
      • clearDockerCacheImages

        public VirtualMachine.Builder clearDockerCacheImages()
         The Compute Engine Disk Images to use as a Docker cache. The disks will be
         mounted into the Docker folder in a way that the images present in the
         cache will not need to be pulled. The digests of the cached images must
         match those of the tags used or the latest version will still be pulled.
         The root directory of the ext4 image must contain `image` and `overlay2`
         directories copied from the Docker directory of a VM where the desired
         Docker images have already been pulled. Any images pulled that are not
         cached will be stored on the first cache disk instead of the boot disk.
         Only a single image is supported.
         
        repeated string docker_cache_images = 13;
        Returns:
        This builder for chaining.
      • addDockerCacheImagesBytes

        public VirtualMachine.Builder addDockerCacheImagesBytes​(com.google.protobuf.ByteString value)
         The Compute Engine Disk Images to use as a Docker cache. The disks will be
         mounted into the Docker folder in a way that the images present in the
         cache will not need to be pulled. The digests of the cached images must
         match those of the tags used or the latest version will still be pulled.
         The root directory of the ext4 image must contain `image` and `overlay2`
         directories copied from the Docker directory of a VM where the desired
         Docker images have already been pulled. Any images pulled that are not
         cached will be stored on the first cache disk instead of the boot disk.
         Only a single image is supported.
         
        repeated string docker_cache_images = 13;
        Parameters:
        value - The bytes of the dockerCacheImages to add.
        Returns:
        This builder for chaining.
      • getVolumesList

        public List<Volume> getVolumesList()
         The list of disks and other storage to create or attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
        Specified by:
        getVolumesList in interface VirtualMachineOrBuilder
      • getVolumesCount

        public int getVolumesCount()
         The list of disks and other storage to create or attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
        Specified by:
        getVolumesCount in interface VirtualMachineOrBuilder
      • getVolumes

        public Volume getVolumes​(int index)
         The list of disks and other storage to create or attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
        Specified by:
        getVolumes in interface VirtualMachineOrBuilder
      • setVolumes

        public VirtualMachine.Builder setVolumes​(int index,
                                                 Volume value)
         The list of disks and other storage to create or attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
      • setVolumes

        public VirtualMachine.Builder setVolumes​(int index,
                                                 Volume.Builder builderForValue)
         The list of disks and other storage to create or attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
      • addVolumes

        public VirtualMachine.Builder addVolumes​(Volume value)
         The list of disks and other storage to create or attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
      • addVolumes

        public VirtualMachine.Builder addVolumes​(int index,
                                                 Volume value)
         The list of disks and other storage to create or attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
      • addVolumes

        public VirtualMachine.Builder addVolumes​(Volume.Builder builderForValue)
         The list of disks and other storage to create or attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
      • addVolumes

        public VirtualMachine.Builder addVolumes​(int index,
                                                 Volume.Builder builderForValue)
         The list of disks and other storage to create or attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
      • addAllVolumes

        public VirtualMachine.Builder addAllVolumes​(Iterable<? extends Volume> values)
         The list of disks and other storage to create or attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
      • clearVolumes

        public VirtualMachine.Builder clearVolumes()
         The list of disks and other storage to create or attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
      • removeVolumes

        public VirtualMachine.Builder removeVolumes​(int index)
         The list of disks and other storage to create or attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
      • getVolumesBuilder

        public Volume.Builder getVolumesBuilder​(int index)
         The list of disks and other storage to create or attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
      • getVolumesOrBuilder

        public VolumeOrBuilder getVolumesOrBuilder​(int index)
         The list of disks and other storage to create or attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
        Specified by:
        getVolumesOrBuilder in interface VirtualMachineOrBuilder
      • getVolumesOrBuilderList

        public List<? extends VolumeOrBuilder> getVolumesOrBuilderList()
         The list of disks and other storage to create or attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
        Specified by:
        getVolumesOrBuilderList in interface VirtualMachineOrBuilder
      • addVolumesBuilder

        public Volume.Builder addVolumesBuilder()
         The list of disks and other storage to create or attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
      • addVolumesBuilder

        public Volume.Builder addVolumesBuilder​(int index)
         The list of disks and other storage to create or attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
      • getVolumesBuilderList

        public List<Volume.Builder> getVolumesBuilderList()
         The list of disks and other storage to create or attach to the VM.
        
         Specify either the `volumes[]` field or the `disks[]` field, but not both.
         
        repeated .google.cloud.lifesciences.v2beta.Volume volumes = 14;
      • getReservation

        public String getReservation()
         If specified, the VM will only be allocated inside the matching
         reservation. It will fail if the VM parameters don't match the reservation.
         
        string reservation = 15;
        Specified by:
        getReservation in interface VirtualMachineOrBuilder
        Returns:
        The reservation.
      • getReservationBytes

        public com.google.protobuf.ByteString getReservationBytes()
         If specified, the VM will only be allocated inside the matching
         reservation. It will fail if the VM parameters don't match the reservation.
         
        string reservation = 15;
        Specified by:
        getReservationBytes in interface VirtualMachineOrBuilder
        Returns:
        The bytes for reservation.
      • setReservation

        public VirtualMachine.Builder setReservation​(String value)
         If specified, the VM will only be allocated inside the matching
         reservation. It will fail if the VM parameters don't match the reservation.
         
        string reservation = 15;
        Parameters:
        value - The reservation to set.
        Returns:
        This builder for chaining.
      • clearReservation

        public VirtualMachine.Builder clearReservation()
         If specified, the VM will only be allocated inside the matching
         reservation. It will fail if the VM parameters don't match the reservation.
         
        string reservation = 15;
        Returns:
        This builder for chaining.
      • setReservationBytes

        public VirtualMachine.Builder setReservationBytes​(com.google.protobuf.ByteString value)
         If specified, the VM will only be allocated inside the matching
         reservation. It will fail if the VM parameters don't match the reservation.
         
        string reservation = 15;
        Parameters:
        value - The bytes for reservation to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final VirtualMachine.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>
      • mergeUnknownFields

        public final VirtualMachine.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<VirtualMachine.Builder>