public static final class AttachedDisk.Builder extends GeneratedMessageV3.Builder<AttachedDisk.Builder> implements AttachedDiskOrBuilderAn instance-attached disk resource.
Protobuf type google.cloud.backupdr.v1.AttachedDisk
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AttachedDisk.BuilderImplements
AttachedDiskOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllGuestOsFeature(Iterable<? extends GuestOsFeature> values)
public AttachedDisk.Builder addAllGuestOsFeature(Iterable<? extends GuestOsFeature> 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)
public AttachedDisk.Builder addAllLicense(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)
public AttachedDisk.Builder addGuestOsFeature(GuestOsFeature value)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)
public AttachedDisk.Builder addGuestOsFeature(GuestOsFeature.Builder builderForValue)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)
public AttachedDisk.Builder addGuestOsFeature(int index, GuestOsFeature value)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)
public AttachedDisk.Builder addGuestOsFeature(int index, GuestOsFeature.Builder builderForValue)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()
public GuestOsFeature.Builder addGuestOsFeatureBuilder()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)
public GuestOsFeature.Builder addGuestOsFeatureBuilder(int index)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)
public AttachedDisk.Builder addLicense(String value)Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe license to add. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
addLicenseBytes(ByteString value)
public AttachedDisk.Builder addLicenseBytes(ByteString value)Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the license to add. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AttachedDisk.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
build()
public AttachedDisk build()| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
buildPartial()
public AttachedDisk buildPartial()| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
clear()
public AttachedDisk.Builder clear()| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
clearAutoDelete()
public AttachedDisk.Builder clearAutoDelete()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()
public AttachedDisk.Builder clearBoot()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()
public AttachedDisk.Builder clearDeviceName()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()
public AttachedDisk.Builder clearDiskEncryptionKey()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()
public AttachedDisk.Builder clearDiskInterface()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()
public AttachedDisk.Builder clearDiskSizeGb()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()
public AttachedDisk.Builder clearDiskType()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)
public AttachedDisk.Builder clearDiskTypeDeprecated()Deprecated. google.cloud.backupdr.v1.AttachedDisk.disk_type_deprecated is deprecated. See google/cloud/backupdr/v1/backupvault_gce.proto;l=824
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)
public AttachedDisk.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
clearGuestOsFeature()
public AttachedDisk.Builder clearGuestOsFeature()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()
public AttachedDisk.Builder clearIndex()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()
public AttachedDisk.Builder clearInitializeParams()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()
public AttachedDisk.Builder clearKind()Optional. Type of the resource.
optional string kind = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
clearLicense()
public AttachedDisk.Builder clearLicense()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()
public AttachedDisk.Builder clearMode()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)
public AttachedDisk.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
clearSavedState()
public AttachedDisk.Builder clearSavedState()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()
public AttachedDisk.Builder clearSource()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()
public AttachedDisk.Builder clearType()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()
public AttachedDisk.Builder clone()| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
getAutoDelete()
public boolean getAutoDelete()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()
public boolean getBoot()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()
public AttachedDisk getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AttachedDisk |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDeviceName()
public String getDeviceName()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()
public ByteString getDeviceNameBytes()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()
public CustomerEncryptionKey getDiskEncryptionKey()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()
public CustomerEncryptionKey.Builder getDiskEncryptionKeyBuilder()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()
public CustomerEncryptionKeyOrBuilder getDiskEncryptionKeyOrBuilder()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()
public AttachedDisk.DiskInterface getDiskInterface()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()
public int getDiskInterfaceValue()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()
public long getDiskSizeGb()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()
public String getDiskType()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()
public ByteString getDiskTypeBytes()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)
public AttachedDisk.DiskType getDiskTypeDeprecated()Deprecated. google.cloud.backupdr.v1.AttachedDisk.disk_type_deprecated is deprecated. See google/cloud/backupdr/v1/backupvault_gce.proto;l=824
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)
public int getDiskTypeDeprecatedValue()Deprecated. google.cloud.backupdr.v1.AttachedDisk.disk_type_deprecated is deprecated. See google/cloud/backupdr/v1/backupvault_gce.proto;l=824
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)
public GuestOsFeature getGuestOsFeature(int index)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)
public GuestOsFeature.Builder getGuestOsFeatureBuilder(int index)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()
public List<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()
public int getGuestOsFeatureCount()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()
public List<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)
public GuestOsFeatureOrBuilder getGuestOsFeatureOrBuilder(int index)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()
public List<? extends GuestOsFeatureOrBuilder> 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()
public long getIndex()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()
public AttachedDisk.InitializeParams getInitializeParams()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()
public AttachedDisk.InitializeParams.Builder getInitializeParamsBuilder()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()
public AttachedDisk.InitializeParamsOrBuilder getInitializeParamsOrBuilder()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()
public String getKind()Optional. Type of the resource.
optional string kind = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The kind. |
getKindBytes()
public ByteString getKindBytes()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)
public String getLicense(int index)Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The license at the given index. |
getLicenseBytes(int index)
public ByteString getLicenseBytes(int index)Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the license at the given index. |
getLicenseCount()
public int getLicenseCount()Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of license. |
getLicenseList()
public ProtocolStringList getLicenseList()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()
public AttachedDisk.DiskMode getMode()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()
public int getModeValue()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()
public AttachedDisk.DiskSavedState getSavedState()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()
public int getSavedStateValue()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()
public String getSource()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()
public ByteString getSourceBytes()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()
public AttachedDisk.DiskType getType()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()
public int getTypeValue()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()
public boolean hasAutoDelete()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()
public boolean hasBoot()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()
public boolean hasDeviceName()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()
public boolean hasDiskEncryptionKey()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()
public boolean hasDiskInterface()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()
public boolean hasDiskSizeGb()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()
public boolean hasDiskType()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)
public boolean hasDiskTypeDeprecated()Deprecated. google.cloud.backupdr.v1.AttachedDisk.disk_type_deprecated is deprecated. See google/cloud/backupdr/v1/backupvault_gce.proto;l=824
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()
public boolean hasIndex()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()
public boolean hasInitializeParams()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()
public boolean hasKind()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()
public boolean hasMode()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()
public boolean hasSavedState()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()
public boolean hasSource()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()
public boolean hasType()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()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeDiskEncryptionKey(CustomerEncryptionKey value)
public AttachedDisk.Builder mergeDiskEncryptionKey(CustomerEncryptionKey value)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)
public AttachedDisk.Builder mergeFrom(AttachedDisk other)| Parameter | |
|---|---|
| Name | Description |
other |
AttachedDisk |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AttachedDisk.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AttachedDisk.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
mergeInitializeParams(AttachedDisk.InitializeParams value)
public AttachedDisk.Builder mergeInitializeParams(AttachedDisk.InitializeParams value)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)
public final AttachedDisk.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
removeGuestOsFeature(int index)
public AttachedDisk.Builder removeGuestOsFeature(int index)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)
public AttachedDisk.Builder setAutoDelete(boolean value)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 |
booleanThe autoDelete to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setBoot(boolean value)
public AttachedDisk.Builder setBoot(boolean value)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 |
booleanThe boot to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setDeviceName(String value)
public AttachedDisk.Builder setDeviceName(String value)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 |
StringThe deviceName to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setDeviceNameBytes(ByteString value)
public AttachedDisk.Builder setDeviceNameBytes(ByteString value)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 |
ByteStringThe bytes for deviceName to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setDiskEncryptionKey(CustomerEncryptionKey value)
public AttachedDisk.Builder setDiskEncryptionKey(CustomerEncryptionKey value)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)
public AttachedDisk.Builder setDiskEncryptionKey(CustomerEncryptionKey.Builder builderForValue)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)
public AttachedDisk.Builder setDiskInterface(AttachedDisk.DiskInterface value)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.DiskInterfaceThe diskInterface to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setDiskInterfaceValue(int value)
public AttachedDisk.Builder setDiskInterfaceValue(int value)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 |
intThe enum numeric value on the wire for diskInterface to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setDiskSizeGb(long value)
public AttachedDisk.Builder setDiskSizeGb(long value)Optional. The size of the disk in GB.
optional int64 disk_size_gb = 16 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe diskSizeGb to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setDiskType(String value)
public AttachedDisk.Builder setDiskType(String value)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 |
StringThe diskType to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setDiskTypeBytes(ByteString value)
public AttachedDisk.Builder setDiskTypeBytes(ByteString value)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 |
ByteStringThe bytes for diskType to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setDiskTypeDeprecated(AttachedDisk.DiskType value) (deprecated)
public AttachedDisk.Builder setDiskTypeDeprecated(AttachedDisk.DiskType value)Deprecated. google.cloud.backupdr.v1.AttachedDisk.disk_type_deprecated is deprecated. See google/cloud/backupdr/v1/backupvault_gce.proto;l=824
Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType disk_type_deprecated = 6 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
value |
AttachedDisk.DiskTypeThe diskTypeDeprecated to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setDiskTypeDeprecatedValue(int value) (deprecated)
public AttachedDisk.Builder setDiskTypeDeprecatedValue(int value)Deprecated. google.cloud.backupdr.v1.AttachedDisk.disk_type_deprecated is deprecated. See google/cloud/backupdr/v1/backupvault_gce.proto;l=824
Specifies the type of the disk.
optional .google.cloud.backupdr.v1.AttachedDisk.DiskType disk_type_deprecated = 6 [deprecated = true];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe 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)
public AttachedDisk.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
setGuestOsFeature(int index, GuestOsFeature value)
public AttachedDisk.Builder setGuestOsFeature(int index, GuestOsFeature value)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)
public AttachedDisk.Builder setGuestOsFeature(int index, GuestOsFeature.Builder builderForValue)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)
public AttachedDisk.Builder setIndex(long value)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 |
longThe index to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setInitializeParams(AttachedDisk.InitializeParams value)
public AttachedDisk.Builder setInitializeParams(AttachedDisk.InitializeParams value)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)
public AttachedDisk.Builder setInitializeParams(AttachedDisk.InitializeParams.Builder builderForValue)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)
public AttachedDisk.Builder setKind(String value)Optional. Type of the resource.
optional string kind = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe kind to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setKindBytes(ByteString value)
public AttachedDisk.Builder setKindBytes(ByteString value)Optional. Type of the resource.
optional string kind = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for kind to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setLicense(int index, String value)
public AttachedDisk.Builder setLicense(int index, String value)Optional. Any valid publicly visible licenses.
repeated string license = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe license to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setMode(AttachedDisk.DiskMode value)
public AttachedDisk.Builder setMode(AttachedDisk.DiskMode value)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.DiskModeThe mode to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setModeValue(int value)
public AttachedDisk.Builder setModeValue(int value)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 |
intThe 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)
public AttachedDisk.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|
setSavedState(AttachedDisk.DiskSavedState value)
public AttachedDisk.Builder setSavedState(AttachedDisk.DiskSavedState value)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.DiskSavedStateThe savedState to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setSavedStateValue(int value)
public AttachedDisk.Builder setSavedStateValue(int value)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 |
intThe enum numeric value on the wire for savedState to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setSource(String value)
public AttachedDisk.Builder setSource(String value)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 |
StringThe source to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setSourceBytes(ByteString value)
public AttachedDisk.Builder setSourceBytes(ByteString value)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 |
ByteStringThe bytes for source to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setType(AttachedDisk.DiskType value)
public AttachedDisk.Builder setType(AttachedDisk.DiskType value)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.DiskTypeThe type to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setTypeValue(int value)
public AttachedDisk.Builder setTypeValue(int value)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 |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final AttachedDisk.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
AttachedDisk.Builder |
|