Class AttachedDisk.Builder (0.29.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass AttachedDisk.BuilderextendsGeneratedMessageV3.Builder<AttachedDisk.Builder>implementsAttachedDiskOrBuilderAn instance-attached disk resource.
Protobuf type google.cloud.backupdr.v1.AttachedDisk
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AttachedDisk.BuilderImplements
AttachedDiskOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllGuestOsFeature(Iterable<? extends GuestOsFeature> values)
publicAttachedDisk.BuilderaddAllGuestOsFeature(Iterable<?extendsGuestOsFeature>values)Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.backupdr.v1.GuestOsFeature> |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
addAllLicense(Iterable<String> values)
publicAttachedDisk.BuilderaddAllLicense(Iterable<String>values)Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The license to add. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
addGuestOsFeature(GuestOsFeature value)
publicAttachedDisk.BuilderaddGuestOsFeature(GuestOsFeaturevalue)Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
GuestOsFeature |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
addGuestOsFeature(GuestOsFeature.Builder builderForValue)
publicAttachedDisk.BuilderaddGuestOsFeature(GuestOsFeature.BuilderbuilderForValue)Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
GuestOsFeature.Builder |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
addGuestOsFeature(int index, GuestOsFeature value)
publicAttachedDisk.BuilderaddGuestOsFeature(intindex,GuestOsFeaturevalue)Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
GuestOsFeature |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
addGuestOsFeature(int index, GuestOsFeature.Builder builderForValue)
publicAttachedDisk.BuilderaddGuestOsFeature(intindex,GuestOsFeature.BuilderbuilderForValue)Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
GuestOsFeature.Builder |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
addGuestOsFeatureBuilder()
publicGuestOsFeature.BuilderaddGuestOsFeatureBuilder()Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GuestOsFeature.Builder |
|
addGuestOsFeatureBuilder(int index)
publicGuestOsFeature.BuilderaddGuestOsFeatureBuilder(intindex)Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GuestOsFeature.Builder |
|
addLicense(String value)
publicAttachedDisk.BuilderaddLicense(Stringvalue)Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
String The license to add. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
addLicenseBytes(ByteString value)
publicAttachedDisk.BuilderaddLicenseBytes(ByteStringvalue)Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes of the license to add. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicAttachedDisk.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
build()
publicAttachedDiskbuild()| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
buildPartial()
publicAttachedDiskbuildPartial()| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
clear()
publicAttachedDisk.Builderclear()| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
clearAutoDelete()
publicAttachedDisk.BuilderclearAutoDelete()Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
optional bool auto_delete = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
clearBoot()
publicAttachedDisk.BuilderclearBoot()Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
optional bool boot = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
clearDeviceName()
publicAttachedDisk.BuilderclearDeviceName()Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)
optional string device_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
clearDiskEncryptionKey()
publicAttachedDisk.BuilderclearDiskEncryptionKey()Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
optional .google.cloud.backupdr.v1.CustomerEncryptionKey disk_encryption_key = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
clearDiskInterface()
publicAttachedDisk.BuilderclearDiskInterface()Optional. Specifies the disk interface to use for attaching this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskInterface disk_interface = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
clearDiskSizeGb()
publicAttachedDisk.BuilderclearDiskSizeGb()Optional. The size of the disk in GB.
optional int64 disk_size_gb = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
clearDiskType()
publicAttachedDisk.BuilderclearDiskType()Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
optional string disk_type = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
clearDiskTypeDeprecated() (deprecated)
publicAttachedDisk.BuilderclearDiskTypeDeprecated()Deprecated. google.cloud.backupdr.v1.AttachedDisk.disk_type_deprecated is deprecated. See google/cloud/backupdr/v1/backupvault_gce.proto;l=832
Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType disk_type_deprecated = 6 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
publicAttachedDisk.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
clearGuestOsFeature()
publicAttachedDisk.BuilderclearGuestOsFeature()Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
clearIndex()
publicAttachedDisk.BuilderclearIndex()Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
optional int64 index = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
clearInitializeParams()
publicAttachedDisk.BuilderclearInitializeParams()Optional. Specifies the parameters to initialize this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.InitializeParams initialize_params = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
clearKind()
publicAttachedDisk.BuilderclearKind()Optional. Type of the resource.
optional string kind = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
clearLicense()
publicAttachedDisk.BuilderclearLicense()Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
clearMode()
publicAttachedDisk.BuilderclearMode()Optional. The mode in which to attach this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskMode mode = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
publicAttachedDisk.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
clearSavedState()
publicAttachedDisk.BuilderclearSavedState()Optional. Output only. The state of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskSavedState saved_state = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
clearSource()
publicAttachedDisk.BuilderclearSource()Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
optional string source = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
clearType()
publicAttachedDisk.BuilderclearType()Optional. Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType type = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
clone()
publicAttachedDisk.Builderclone()| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
getAutoDelete()
publicbooleangetAutoDelete()Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
optional bool auto_delete = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The autoDelete. |
getBoot()
publicbooleangetBoot()Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
optional bool boot = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The boot. |
getDefaultInstanceForType()
publicAttachedDiskgetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDeviceName()
publicStringgetDeviceName()Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)
optional string device_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The deviceName. |
getDeviceNameBytes()
publicByteStringgetDeviceNameBytes()Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)
optional string device_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for deviceName. |
getDiskEncryptionKey()
publicCustomerEncryptionKeygetDiskEncryptionKey()Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
optional .google.cloud.backupdr.v1.CustomerEncryptionKey disk_encryption_key = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey |
The diskEncryptionKey. |
getDiskEncryptionKeyBuilder()
publicCustomerEncryptionKey.BuildergetDiskEncryptionKeyBuilder()Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
optional .google.cloud.backupdr.v1.CustomerEncryptionKey disk_encryption_key = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKey.Builder |
|
getDiskEncryptionKeyOrBuilder()
publicCustomerEncryptionKeyOrBuildergetDiskEncryptionKeyOrBuilder()Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
optional .google.cloud.backupdr.v1.CustomerEncryptionKey disk_encryption_key = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CustomerEncryptionKeyOrBuilder |
|
getDiskInterface()
publicAttachedDisk.DiskInterfacegetDiskInterface()Optional. Specifies the disk interface to use for attaching this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskInterface disk_interface = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.DiskInterface |
The diskInterface. |
getDiskInterfaceValue()
publicintgetDiskInterfaceValue()Optional. Specifies the disk interface to use for attaching this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskInterface disk_interface = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for diskInterface. |
getDiskSizeGb()
publiclonggetDiskSizeGb()Optional. The size of the disk in GB.
optional int64 disk_size_gb = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
long |
The diskSizeGb. |
getDiskType()
publicStringgetDiskType()Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
optional string disk_type = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The diskType. |
getDiskTypeBytes()
publicByteStringgetDiskTypeBytes()Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
optional string disk_type = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for diskType. |
getDiskTypeDeprecated() (deprecated)
publicAttachedDisk.DiskTypegetDiskTypeDeprecated()Deprecated. google.cloud.backupdr.v1.AttachedDisk.disk_type_deprecated is deprecated. See google/cloud/backupdr/v1/backupvault_gce.proto;l=832
Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType disk_type_deprecated = 6 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.DiskType |
The diskTypeDeprecated. |
getDiskTypeDeprecatedValue() (deprecated)
publicintgetDiskTypeDeprecatedValue()Deprecated. google.cloud.backupdr.v1.AttachedDisk.disk_type_deprecated is deprecated. See google/cloud/backupdr/v1/backupvault_gce.proto;l=832
Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType disk_type_deprecated = 6 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for diskTypeDeprecated. |
getGuestOsFeature(int index)
publicGuestOsFeaturegetGuestOsFeature(intindex)Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GuestOsFeature |
|
getGuestOsFeatureBuilder(int index)
publicGuestOsFeature.BuildergetGuestOsFeatureBuilder(intindex)Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GuestOsFeature.Builder |
|
getGuestOsFeatureBuilderList()
publicList<GuestOsFeature.Builder>getGuestOsFeatureBuilderList()Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getGuestOsFeatureCount()
publicintgetGuestOsFeatureCount()Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getGuestOsFeatureList()
publicList<GuestOsFeature>getGuestOsFeatureList()Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<GuestOsFeature> |
|
getGuestOsFeatureOrBuilder(int index)
publicGuestOsFeatureOrBuildergetGuestOsFeatureOrBuilder(intindex)Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GuestOsFeatureOrBuilder |
|
getGuestOsFeatureOrBuilderList()
publicList<?extendsGuestOsFeatureOrBuilder>getGuestOsFeatureOrBuilderList()Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.backupdr.v1.GuestOsFeatureOrBuilder> |
|
getIndex()
publiclonggetIndex()Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
optional int64 index = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
long |
The index. |
getInitializeParams()
publicAttachedDisk.InitializeParamsgetInitializeParams()Optional. Specifies the parameters to initialize this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.InitializeParams initialize_params = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.InitializeParams |
The initializeParams. |
getInitializeParamsBuilder()
publicAttachedDisk.InitializeParams.BuildergetInitializeParamsBuilder()Optional. Specifies the parameters to initialize this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.InitializeParams initialize_params = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.InitializeParams.Builder |
|
getInitializeParamsOrBuilder()
publicAttachedDisk.InitializeParamsOrBuildergetInitializeParamsOrBuilder()Optional. Specifies the parameters to initialize this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.InitializeParams initialize_params = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.InitializeParamsOrBuilder |
|
getKind()
publicStringgetKind()Optional. Type of the resource.
optional string kind = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The kind. |
getKindBytes()
publicByteStringgetKindBytes()Optional. Type of the resource.
optional string kind = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for kind. |
getLicense(int index)
publicStringgetLicense(intindex)Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int The index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The license at the given index. |
getLicenseBytes(int index)
publicByteStringgetLicenseBytes(intindex)Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int The index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the license at the given index. |
getLicenseCount()
publicintgetLicenseCount()Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of license. |
getLicenseList()
publicProtocolStringListgetLicenseList()Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the license. |
getMode()
publicAttachedDisk.DiskModegetMode()Optional. The mode in which to attach this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskMode mode = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.DiskMode |
The mode. |
getModeValue()
publicintgetModeValue()Optional. The mode in which to attach this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskMode mode = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for mode. |
getSavedState()
publicAttachedDisk.DiskSavedStategetSavedState()Optional. Output only. The state of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskSavedState saved_state = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.DiskSavedState |
The savedState. |
getSavedStateValue()
publicintgetSavedStateValue()Optional. Output only. The state of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskSavedState saved_state = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for savedState. |
getSource()
publicStringgetSource()Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
optional string source = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The source. |
getSourceBytes()
publicByteStringgetSourceBytes()Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
optional string source = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for source. |
getType()
publicAttachedDisk.DiskTypegetType()Optional. Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType type = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.DiskType |
The type. |
getTypeValue()
publicintgetTypeValue()Optional. Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType type = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for type. |
hasAutoDelete()
publicbooleanhasAutoDelete()Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
optional bool auto_delete = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the autoDelete field is set. |
hasBoot()
publicbooleanhasBoot()Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
optional bool boot = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the boot field is set. |
hasDeviceName()
publicbooleanhasDeviceName()Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)
optional string device_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the deviceName field is set. |
hasDiskEncryptionKey()
publicbooleanhasDiskEncryptionKey()Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
optional .google.cloud.backupdr.v1.CustomerEncryptionKey disk_encryption_key = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the diskEncryptionKey field is set. |
hasDiskInterface()
publicbooleanhasDiskInterface()Optional. Specifies the disk interface to use for attaching this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskInterface disk_interface = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the diskInterface field is set. |
hasDiskSizeGb()
publicbooleanhasDiskSizeGb()Optional. The size of the disk in GB.
optional int64 disk_size_gb = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the diskSizeGb field is set. |
hasDiskType()
publicbooleanhasDiskType()Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
optional string disk_type = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the diskType field is set. |
hasDiskTypeDeprecated() (deprecated)
publicbooleanhasDiskTypeDeprecated()Deprecated. google.cloud.backupdr.v1.AttachedDisk.disk_type_deprecated is deprecated. See google/cloud/backupdr/v1/backupvault_gce.proto;l=832
Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType disk_type_deprecated = 6 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the diskTypeDeprecated field is set. |
hasIndex()
publicbooleanhasIndex()Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
optional int64 index = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the index field is set. |
hasInitializeParams()
publicbooleanhasInitializeParams()Optional. Specifies the parameters to initialize this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.InitializeParams initialize_params = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the initializeParams field is set. |
hasKind()
publicbooleanhasKind()Optional. Type of the resource.
optional string kind = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the kind field is set. |
hasMode()
publicbooleanhasMode()Optional. The mode in which to attach this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskMode mode = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the mode field is set. |
hasSavedState()
publicbooleanhasSavedState()Optional. Output only. The state of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskSavedState saved_state = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the savedState field is set. |
hasSource()
publicbooleanhasSource()Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
optional string source = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the source field is set. |
hasType()
publicbooleanhasType()Optional. Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType type = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the type field is set. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeDiskEncryptionKey(CustomerEncryptionKey value)
publicAttachedDisk.BuildermergeDiskEncryptionKey(CustomerEncryptionKeyvalue)Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
optional .google.cloud.backupdr.v1.CustomerEncryptionKey disk_encryption_key = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
CustomerEncryptionKey |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
mergeFrom(AttachedDisk other)
publicAttachedDisk.BuildermergeFrom(AttachedDiskother)| Parameter | |
|---|---|
| Name | Description |
other |
AttachedDisk |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicAttachedDisk.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicAttachedDisk.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
mergeInitializeParams(AttachedDisk.InitializeParams value)
publicAttachedDisk.BuildermergeInitializeParams(AttachedDisk.InitializeParamsvalue)Optional. Specifies the parameters to initialize this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.InitializeParams initialize_params = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AttachedDisk.InitializeParams |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalAttachedDisk.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
removeGuestOsFeature(int index)
publicAttachedDisk.BuilderremoveGuestOsFeature(intindex)Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
setAutoDelete(boolean value)
publicAttachedDisk.BuildersetAutoDelete(booleanvalue)Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
optional bool auto_delete = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
boolean The autoDelete to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setBoot(boolean value)
publicAttachedDisk.BuildersetBoot(booleanvalue)Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
optional bool boot = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
boolean The boot to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setDeviceName(String value)
publicAttachedDisk.BuildersetDeviceName(Stringvalue)Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)
optional string device_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
String The deviceName to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setDeviceNameBytes(ByteString value)
publicAttachedDisk.BuildersetDeviceNameBytes(ByteStringvalue)Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)
optional string device_name = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for deviceName to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setDiskEncryptionKey(CustomerEncryptionKey value)
publicAttachedDisk.BuildersetDiskEncryptionKey(CustomerEncryptionKeyvalue)Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
optional .google.cloud.backupdr.v1.CustomerEncryptionKey disk_encryption_key = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
CustomerEncryptionKey |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
setDiskEncryptionKey(CustomerEncryptionKey.Builder builderForValue)
publicAttachedDisk.BuildersetDiskEncryptionKey(CustomerEncryptionKey.BuilderbuilderForValue)Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
optional .google.cloud.backupdr.v1.CustomerEncryptionKey disk_encryption_key = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
CustomerEncryptionKey.Builder |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
setDiskInterface(AttachedDisk.DiskInterface value)
publicAttachedDisk.BuildersetDiskInterface(AttachedDisk.DiskInterfacevalue)Optional. Specifies the disk interface to use for attaching this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskInterface disk_interface = 13 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AttachedDisk.DiskInterface The diskInterface to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setDiskInterfaceValue(int value)
publicAttachedDisk.BuildersetDiskInterfaceValue(intvalue)Optional. Specifies the disk interface to use for attaching this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskInterface disk_interface = 13 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
int The enum numeric value on the wire for diskInterface to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setDiskSizeGb(long value)
publicAttachedDisk.BuildersetDiskSizeGb(longvalue)Optional. The size of the disk in GB.
optional int64 disk_size_gb = 16 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
long The diskSizeGb to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setDiskType(String value)
publicAttachedDisk.BuildersetDiskType(Stringvalue)Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
optional string disk_type = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
String The diskType to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setDiskTypeBytes(ByteString value)
publicAttachedDisk.BuildersetDiskTypeBytes(ByteStringvalue)Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
optional string disk_type = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for diskType to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setDiskTypeDeprecated(AttachedDisk.DiskType value) (deprecated)
publicAttachedDisk.BuildersetDiskTypeDeprecated(AttachedDisk.DiskTypevalue)Deprecated. google.cloud.backupdr.v1.AttachedDisk.disk_type_deprecated is deprecated. See google/cloud/backupdr/v1/backupvault_gce.proto;l=832
Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType disk_type_deprecated = 6 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
value |
AttachedDisk.DiskType The diskTypeDeprecated to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setDiskTypeDeprecatedValue(int value) (deprecated)
publicAttachedDisk.BuildersetDiskTypeDeprecatedValue(intvalue)Deprecated. google.cloud.backupdr.v1.AttachedDisk.disk_type_deprecated is deprecated. See google/cloud/backupdr/v1/backupvault_gce.proto;l=832
Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType disk_type_deprecated = 6 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
value |
int The enum numeric value on the wire for diskTypeDeprecated to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
publicAttachedDisk.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
setGuestOsFeature(int index, GuestOsFeature value)
publicAttachedDisk.BuildersetGuestOsFeature(intindex,GuestOsFeaturevalue)Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
GuestOsFeature |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
setGuestOsFeature(int index, GuestOsFeature.Builder builderForValue)
publicAttachedDisk.BuildersetGuestOsFeature(intindex,GuestOsFeature.BuilderbuilderForValue)Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
GuestOsFeature.Builder |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
setIndex(long value)
publicAttachedDisk.BuildersetIndex(longvalue)Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
optional int64 index = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
long The index to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setInitializeParams(AttachedDisk.InitializeParams value)
publicAttachedDisk.BuildersetInitializeParams(AttachedDisk.InitializeParamsvalue)Optional. Specifies the parameters to initialize this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.InitializeParams initialize_params = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AttachedDisk.InitializeParams |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
setInitializeParams(AttachedDisk.InitializeParams.Builder builderForValue)
publicAttachedDisk.BuildersetInitializeParams(AttachedDisk.InitializeParams.BuilderbuilderForValue)Optional. Specifies the parameters to initialize this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.InitializeParams initialize_params = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AttachedDisk.InitializeParams.Builder |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
setKind(String value)
publicAttachedDisk.BuildersetKind(Stringvalue)Optional. Type of the resource.
optional string kind = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
String The kind to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setKindBytes(ByteString value)
publicAttachedDisk.BuildersetKindBytes(ByteStringvalue)Optional. Type of the resource.
optional string kind = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for kind to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setLicense(int index, String value)
publicAttachedDisk.BuildersetLicense(intindex,Stringvalue)Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int The index to set the value at. |
value |
String The license to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setMode(AttachedDisk.DiskMode value)
publicAttachedDisk.BuildersetMode(AttachedDisk.DiskModevalue)Optional. The mode in which to attach this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskMode mode = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AttachedDisk.DiskMode The mode to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setModeValue(int value)
publicAttachedDisk.BuildersetModeValue(intvalue)Optional. The mode in which to attach this disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskMode mode = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
int The enum numeric value on the wire for mode to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicAttachedDisk.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
setSavedState(AttachedDisk.DiskSavedState value)
publicAttachedDisk.BuildersetSavedState(AttachedDisk.DiskSavedStatevalue)Optional. Output only. The state of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskSavedState saved_state = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
AttachedDisk.DiskSavedState The savedState to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setSavedStateValue(int value)
publicAttachedDisk.BuildersetSavedStateValue(intvalue)Optional. Output only. The state of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskSavedState saved_state = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
int The enum numeric value on the wire for savedState to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setSource(String value)
publicAttachedDisk.BuildersetSource(Stringvalue)Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
optional string source = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
String The source to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setSourceBytes(ByteString value)
publicAttachedDisk.BuildersetSourceBytes(ByteStringvalue)Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
optional string source = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for source to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setType(AttachedDisk.DiskType value)
publicAttachedDisk.BuildersetType(AttachedDisk.DiskTypevalue)Optional. Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType type = 19 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AttachedDisk.DiskType The type to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setTypeValue(int value)
publicAttachedDisk.BuildersetTypeValue(intvalue)Optional. Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType type = 19 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
int The enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalAttachedDisk.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|