Class WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • 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<WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder>
      • getDefaultInstanceForType

        public WorkstationConfig.EphemeralDirectory.GcePersistentDisk getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • setDiskTypeBytes

        public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder setDiskTypeBytes​(com.google.protobuf.ByteString value)
         Optional. Type of the disk to use. Defaults to `"pd-standard"`.
         
        string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for diskType to set.
        Returns:
        This builder for chaining.
      • getSourceSnapshot

        public String getSourceSnapshot()
         Optional. Name of the snapshot to use as the source for the disk. Must
         be empty if
         [source_image][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_image]
         is set. Updating
         [source_snapshot][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_snapshot]
         will update content in the ephemeral directory after the workstation is
         restarted. This field is mutable.
         
        string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSourceSnapshot in interface WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder
        Returns:
        The sourceSnapshot.
      • getSourceSnapshotBytes

        public com.google.protobuf.ByteString getSourceSnapshotBytes()
         Optional. Name of the snapshot to use as the source for the disk. Must
         be empty if
         [source_image][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_image]
         is set. Updating
         [source_snapshot][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_snapshot]
         will update content in the ephemeral directory after the workstation is
         restarted. This field is mutable.
         
        string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSourceSnapshotBytes in interface WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder
        Returns:
        The bytes for sourceSnapshot.
      • setSourceSnapshot

        public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder setSourceSnapshot​(String value)
         Optional. Name of the snapshot to use as the source for the disk. Must
         be empty if
         [source_image][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_image]
         is set. Updating
         [source_snapshot][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_snapshot]
         will update content in the ephemeral directory after the workstation is
         restarted. This field is mutable.
         
        string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The sourceSnapshot to set.
        Returns:
        This builder for chaining.
      • clearSourceSnapshot

        public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder clearSourceSnapshot()
         Optional. Name of the snapshot to use as the source for the disk. Must
         be empty if
         [source_image][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_image]
         is set. Updating
         [source_snapshot][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_snapshot]
         will update content in the ephemeral directory after the workstation is
         restarted. This field is mutable.
         
        string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setSourceSnapshotBytes

        public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder setSourceSnapshotBytes​(com.google.protobuf.ByteString value)
         Optional. Name of the snapshot to use as the source for the disk. Must
         be empty if
         [source_image][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_image]
         is set. Updating
         [source_snapshot][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_snapshot]
         will update content in the ephemeral directory after the workstation is
         restarted. This field is mutable.
         
        string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for sourceSnapshot to set.
        Returns:
        This builder for chaining.
      • getSourceImage

        public String getSourceImage()
         Optional. Name of the disk image to use as the source for the disk.
         Must be empty if
         [source_snapshot][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_snapshot]
         is set. Updating
         [source_image][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_image]
         will update content in the ephemeral directory after the workstation is
         restarted. This field is mutable.
         
        string source_image = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSourceImage in interface WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder
        Returns:
        The sourceImage.
      • getSourceImageBytes

        public com.google.protobuf.ByteString getSourceImageBytes()
         Optional. Name of the disk image to use as the source for the disk.
         Must be empty if
         [source_snapshot][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_snapshot]
         is set. Updating
         [source_image][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_image]
         will update content in the ephemeral directory after the workstation is
         restarted. This field is mutable.
         
        string source_image = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSourceImageBytes in interface WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder
        Returns:
        The bytes for sourceImage.
      • setSourceImage

        public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder setSourceImage​(String value)
         Optional. Name of the disk image to use as the source for the disk.
         Must be empty if
         [source_snapshot][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_snapshot]
         is set. Updating
         [source_image][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_image]
         will update content in the ephemeral directory after the workstation is
         restarted. This field is mutable.
         
        string source_image = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The sourceImage to set.
        Returns:
        This builder for chaining.
      • clearSourceImage

        public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder clearSourceImage()
         Optional. Name of the disk image to use as the source for the disk.
         Must be empty if
         [source_snapshot][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_snapshot]
         is set. Updating
         [source_image][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_image]
         will update content in the ephemeral directory after the workstation is
         restarted. This field is mutable.
         
        string source_image = 3 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setSourceImageBytes

        public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder setSourceImageBytes​(com.google.protobuf.ByteString value)
         Optional. Name of the disk image to use as the source for the disk.
         Must be empty if
         [source_snapshot][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_snapshot]
         is set. Updating
         [source_image][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_image]
         will update content in the ephemeral directory after the workstation is
         restarted. This field is mutable.
         
        string source_image = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for sourceImage to set.
        Returns:
        This builder for chaining.
      • getReadOnly

        public boolean getReadOnly()
         Optional. Whether the disk is read only. If true, the disk may be
         shared by multiple VMs and
         [source_snapshot][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_snapshot]
         must be set.
         
        bool read_only = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getReadOnly in interface WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder
        Returns:
        The readOnly.
      • setReadOnly

        public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder setReadOnly​(boolean value)
         Optional. Whether the disk is read only. If true, the disk may be
         shared by multiple VMs and
         [source_snapshot][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_snapshot]
         must be set.
         
        bool read_only = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The readOnly to set.
        Returns:
        This builder for chaining.
      • clearReadOnly

        public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder clearReadOnly()
         Optional. Whether the disk is read only. If true, the disk may be
         shared by multiple VMs and
         [source_snapshot][google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.source_snapshot]
         must be set.
         
        bool read_only = 4 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.