Class WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder>
com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder
All Implemented Interfaces:
WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
WorkstationConfig.EphemeralDirectory.GcePersistentDisk

public static final class WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder extends com.google.protobuf.GeneratedMessage.Builder<WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder> implements WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder
 An EphemeralDirectory is backed by a Compute Engine persistent disk.
 
Protobuf type google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<WorkstationConfig.EphemeralDirectory.GcePersistentDisk.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<WorkstationConfig.EphemeralDirectory.GcePersistentDisk.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<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
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.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<WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder>
    • mergeFrom

      public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.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<WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder>
      Throws:
      IOException
    • getDiskType

      public String getDiskType()
       Optional. Type of the disk to use. Defaults to `"pd-standard"`.
       
      string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDiskType in interface WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder
      Returns:
      The diskType.
    • getDiskTypeBytes

      public com.google.protobuf.ByteString getDiskTypeBytes()
       Optional. Type of the disk to use. Defaults to `"pd-standard"`.
       
      string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDiskTypeBytes in interface WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder
      Returns:
      The bytes for diskType.
    • setDiskType

       Optional. Type of the disk to use. Defaults to `"pd-standard"`.
       
      string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The diskType to set.
      Returns:
      This builder for chaining.
    • clearDiskType

       Optional. Type of the disk to use. Defaults to `"pd-standard"`.
       
      string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • 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

       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

       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

       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

       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

       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

       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.