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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.booleanOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDiskType(String value) Optional.setDiskTypeBytes(com.google.protobuf.ByteString value) Optional.setReadOnly(boolean value) Optional.setSourceImage(String value) Optional.setSourceImageBytes(com.google.protobuf.ByteString value) Optional.setSourceSnapshot(String value) Optional.setSourceSnapshotBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder>- Throws:
IOException
-
getDiskType
Optional. Type of the disk to use. Defaults to `"pd-standard"`.
string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDiskTypein interfaceWorkstationConfig.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:
getDiskTypeBytesin interfaceWorkstationConfig.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
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:
getSourceSnapshotin interfaceWorkstationConfig.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:
getSourceSnapshotBytesin interfaceWorkstationConfig.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
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
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:
getSourceImagein interfaceWorkstationConfig.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:
getSourceImageBytesin interfaceWorkstationConfig.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:
getReadOnlyin interfaceWorkstationConfig.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.
-