Interface WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk,WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder
- Enclosing class:
- WorkstationConfig.PersistentDirectory
public static interface WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.intOptional.intOptional.Optional.com.google.protobuf.ByteStringOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getSizeGb
int getSizeGb()Optional. The GB capacity of a persistent home directory for each workstation created with this configuration. Must be empty if [source_snapshot][google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.source_snapshot] is set. Valid values are `10`, `50`, `100`, `200`, `500`, or `1000`. Defaults to `200`. If less than `200` GB, the [disk_type][google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.disk_type] must be `"pd-balanced"` or `"pd-ssd"`.
int32 size_gb = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The sizeGb.
-
getFsType
String getFsType()Optional. Type of file system that the disk should be formatted with. The workstation image must support this file system type. Must be empty if [source_snapshot][google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.source_snapshot] is set. Defaults to `"ext4"`.
string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The fsType.
-
getFsTypeBytes
com.google.protobuf.ByteString getFsTypeBytes()Optional. Type of file system that the disk should be formatted with. The workstation image must support this file system type. Must be empty if [source_snapshot][google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.source_snapshot] is set. Defaults to `"ext4"`.
string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for fsType.
-
getDiskType
String getDiskType()Optional. The [type of the persistent disk](https://cloud.google.com/compute/docs/disks#disk-types) for the home directory. Defaults to `"pd-standard"`.
string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The diskType.
-
getDiskTypeBytes
com.google.protobuf.ByteString getDiskTypeBytes()Optional. The [type of the persistent disk](https://cloud.google.com/compute/docs/disks#disk-types) for the home directory. Defaults to `"pd-standard"`.
string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for diskType.
-
getSourceSnapshot
String getSourceSnapshot()Optional. Name of the snapshot to use as the source for the disk. If set, [size_gb][google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.size_gb] and [fs_type][google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.fs_type] must be empty.
string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The sourceSnapshot.
-
getSourceSnapshotBytes
com.google.protobuf.ByteString getSourceSnapshotBytes()Optional. Name of the snapshot to use as the source for the disk. If set, [size_gb][google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.size_gb] and [fs_type][google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.fs_type] must be empty.
string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for sourceSnapshot.
-
getReclaimPolicyValue
int getReclaimPolicyValue()Optional. Whether the persistent disk should be deleted when the workstation is deleted. Valid values are `DELETE` and `RETAIN`. Defaults to `DELETE`.
.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The enum numeric value on the wire for reclaimPolicy.
-
getReclaimPolicy
Optional. Whether the persistent disk should be deleted when the workstation is deleted. Valid values are `DELETE` and `RETAIN`. Defaults to `DELETE`.
.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The reclaimPolicy.
-