Class DiskBackupProperties.Builder (0.39.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass DiskBackupProperties.BuilderextendsGeneratedMessageV3.Builder<DiskBackupProperties.Builder>implementsDiskBackupPropertiesOrBuilderDiskBackupProperties represents the properties of a Disk backup.
Protobuf type google.cloud.backupdr.v1.DiskBackupProperties
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DiskBackupProperties.BuilderImplements
DiskBackupPropertiesOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllGuestOsFeature(Iterable<? extends GuestOsFeature> values)
publicDiskBackupProperties.BuilderaddAllGuestOsFeature(Iterable<?extendsGuestOsFeature>values)A list of guest OS features that are applicable to this backup.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 3;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.backupdr.v1.GuestOsFeature> |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
|
addAllLicenses(Iterable<String> values)
publicDiskBackupProperties.BuilderaddAllLicenses(Iterable<String>values)A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image.
repeated string licenses = 2;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The licenses to add. |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
addAllReplicaZones(Iterable<String> values)
publicDiskBackupProperties.BuilderaddAllReplicaZones(Iterable<String>values)The URL of the Zones where the source disk should be replicated.
repeated string replica_zones = 9;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The replicaZones to add. |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
addGuestOsFeature(GuestOsFeature value)
publicDiskBackupProperties.BuilderaddGuestOsFeature(GuestOsFeaturevalue)A list of guest OS features that are applicable to this backup.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
GuestOsFeature |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
|
addGuestOsFeature(GuestOsFeature.Builder builderForValue)
publicDiskBackupProperties.BuilderaddGuestOsFeature(GuestOsFeature.BuilderbuilderForValue)A list of guest OS features that are applicable to this backup.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
GuestOsFeature.Builder |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
|
addGuestOsFeature(int index, GuestOsFeature value)
publicDiskBackupProperties.BuilderaddGuestOsFeature(intindex,GuestOsFeaturevalue)A list of guest OS features that are applicable to this backup.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
GuestOsFeature |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
|
addGuestOsFeature(int index, GuestOsFeature.Builder builderForValue)
publicDiskBackupProperties.BuilderaddGuestOsFeature(intindex,GuestOsFeature.BuilderbuilderForValue)A list of guest OS features that are applicable to this backup.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
GuestOsFeature.Builder |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
|
addGuestOsFeatureBuilder()
publicGuestOsFeature.BuilderaddGuestOsFeatureBuilder()A list of guest OS features that are applicable to this backup.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 3;
| Returns | |
|---|---|
| Type | Description |
GuestOsFeature.Builder |
|
addGuestOsFeatureBuilder(int index)
publicGuestOsFeature.BuilderaddGuestOsFeatureBuilder(intindex)A list of guest OS features that are applicable to this backup.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GuestOsFeature.Builder |
|
addLicenses(String value)
publicDiskBackupProperties.BuilderaddLicenses(Stringvalue)A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image.
repeated string licenses = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
String The licenses to add. |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
addLicensesBytes(ByteString value)
publicDiskBackupProperties.BuilderaddLicensesBytes(ByteStringvalue)A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image.
repeated string licenses = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes of the licenses to add. |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicDiskBackupProperties.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
|
addReplicaZones(String value)
publicDiskBackupProperties.BuilderaddReplicaZones(Stringvalue)The URL of the Zones where the source disk should be replicated.
repeated string replica_zones = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
String The replicaZones to add. |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
addReplicaZonesBytes(ByteString value)
publicDiskBackupProperties.BuilderaddReplicaZonesBytes(ByteStringvalue)The URL of the Zones where the source disk should be replicated.
repeated string replica_zones = 9;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes of the replicaZones to add. |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
build()
publicDiskBackupPropertiesbuild()| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties |
|
buildPartial()
publicDiskBackupPropertiesbuildPartial()| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties |
|
clear()
publicDiskBackupProperties.Builderclear()| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
|
clearArchitecture()
publicDiskBackupProperties.BuilderclearArchitecture()The architecture of the source disk. Valid values are ARM64 or X86_64.
optional .google.cloud.backupdr.v1.DiskBackupProperties.Architecture architecture = 4;
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
clearDescription()
publicDiskBackupProperties.BuilderclearDescription()A description of the source disk.
optional string description = 1;
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
publicDiskBackupProperties.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
|
clearGuestOsFeature()
publicDiskBackupProperties.BuilderclearGuestOsFeature()A list of guest OS features that are applicable to this backup.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 3;
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
|
clearLicenses()
publicDiskBackupProperties.BuilderclearLicenses()A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image.
repeated string licenses = 2;
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
publicDiskBackupProperties.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
|
clearRegion()
publicDiskBackupProperties.BuilderclearRegion()Region and zone are mutually exclusive fields. The URL of the region of the source disk.
optional string region = 7;
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
clearReplicaZones()
publicDiskBackupProperties.BuilderclearReplicaZones()The URL of the Zones where the source disk should be replicated.
repeated string replica_zones = 9;
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
clearSizeGb()
publicDiskBackupProperties.BuilderclearSizeGb()Size(in GB) of the source disk.
optional int64 size_gb = 6;
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
clearSourceDisk()
publicDiskBackupProperties.BuilderclearSourceDisk()The source disk used to create this backup.
optional string source_disk = 10;
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
clearType()
publicDiskBackupProperties.BuilderclearType()The URL of the type of the disk.
optional string type = 5;
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
clearZone()
publicDiskBackupProperties.BuilderclearZone()The URL of the Zone where the source disk.
optional string zone = 8;
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
clone()
publicDiskBackupProperties.Builderclone()| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
|
getArchitecture()
publicDiskBackupProperties.ArchitecturegetArchitecture()The architecture of the source disk. Valid values are ARM64 or X86_64.
optional .google.cloud.backupdr.v1.DiskBackupProperties.Architecture architecture = 4;
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Architecture |
The architecture. |
getArchitectureValue()
publicintgetArchitectureValue()The architecture of the source disk. Valid values are ARM64 or X86_64.
optional .google.cloud.backupdr.v1.DiskBackupProperties.Architecture architecture = 4;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for architecture. |
getDefaultInstanceForType()
publicDiskBackupPropertiesgetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties |
|
getDescription()
publicStringgetDescription()A description of the source disk.
optional string description = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
publicByteStringgetDescriptionBytes()A description of the source disk.
optional string description = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getGuestOsFeature(int index)
publicGuestOsFeaturegetGuestOsFeature(intindex)A list of guest OS features that are applicable to this backup.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GuestOsFeature |
|
getGuestOsFeatureBuilder(int index)
publicGuestOsFeature.BuildergetGuestOsFeatureBuilder(intindex)A list of guest OS features that are applicable to this backup.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GuestOsFeature.Builder |
|
getGuestOsFeatureBuilderList()
publicList<GuestOsFeature.Builder>getGuestOsFeatureBuilderList()A list of guest OS features that are applicable to this backup.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 3;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getGuestOsFeatureCount()
publicintgetGuestOsFeatureCount()A list of guest OS features that are applicable to this backup.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 3;
| Returns | |
|---|---|
| Type | Description |
int |
|
getGuestOsFeatureList()
publicList<GuestOsFeature>getGuestOsFeatureList()A list of guest OS features that are applicable to this backup.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 3;
| Returns | |
|---|---|
| Type | Description |
List<GuestOsFeature> |
|
getGuestOsFeatureOrBuilder(int index)
publicGuestOsFeatureOrBuildergetGuestOsFeatureOrBuilder(intindex)A list of guest OS features that are applicable to this backup.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GuestOsFeatureOrBuilder |
|
getGuestOsFeatureOrBuilderList()
publicList<?extendsGuestOsFeatureOrBuilder>getGuestOsFeatureOrBuilderList()A list of guest OS features that are applicable to this backup.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 3;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.backupdr.v1.GuestOsFeatureOrBuilder> |
|
getLicenses(int index)
publicStringgetLicenses(intindex)A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image.
repeated string licenses = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int The index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The licenses at the given index. |
getLicensesBytes(int index)
publicByteStringgetLicensesBytes(intindex)A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image.
repeated string licenses = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
int The index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the licenses at the given index. |
getLicensesCount()
publicintgetLicensesCount()A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image.
repeated string licenses = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The count of licenses. |
getLicensesList()
publicProtocolStringListgetLicensesList()A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image.
repeated string licenses = 2;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the licenses. |
getRegion()
publicStringgetRegion()Region and zone are mutually exclusive fields. The URL of the region of the source disk.
optional string region = 7;
| Returns | |
|---|---|
| Type | Description |
String |
The region. |
getRegionBytes()
publicByteStringgetRegionBytes()Region and zone are mutually exclusive fields. The URL of the region of the source disk.
optional string region = 7;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for region. |
getReplicaZones(int index)
publicStringgetReplicaZones(intindex)The URL of the Zones where the source disk should be replicated.
repeated string replica_zones = 9;
| Parameter | |
|---|---|
| Name | Description |
index |
int The index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The replicaZones at the given index. |
getReplicaZonesBytes(int index)
publicByteStringgetReplicaZonesBytes(intindex)The URL of the Zones where the source disk should be replicated.
repeated string replica_zones = 9;
| Parameter | |
|---|---|
| Name | Description |
index |
int The index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the replicaZones at the given index. |
getReplicaZonesCount()
publicintgetReplicaZonesCount()The URL of the Zones where the source disk should be replicated.
repeated string replica_zones = 9;
| Returns | |
|---|---|
| Type | Description |
int |
The count of replicaZones. |
getReplicaZonesList()
publicProtocolStringListgetReplicaZonesList()The URL of the Zones where the source disk should be replicated.
repeated string replica_zones = 9;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the replicaZones. |
getSizeGb()
publiclonggetSizeGb()Size(in GB) of the source disk.
optional int64 size_gb = 6;
| Returns | |
|---|---|
| Type | Description |
long |
The sizeGb. |
getSourceDisk()
publicStringgetSourceDisk()The source disk used to create this backup.
optional string source_disk = 10;
| Returns | |
|---|---|
| Type | Description |
String |
The sourceDisk. |
getSourceDiskBytes()
publicByteStringgetSourceDiskBytes()The source disk used to create this backup.
optional string source_disk = 10;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for sourceDisk. |
getType()
publicStringgetType()The URL of the type of the disk.
optional string type = 5;
| Returns | |
|---|---|
| Type | Description |
String |
The type. |
getTypeBytes()
publicByteStringgetTypeBytes()The URL of the type of the disk.
optional string type = 5;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for type. |
getZone()
publicStringgetZone()The URL of the Zone where the source disk.
optional string zone = 8;
| Returns | |
|---|---|
| Type | Description |
String |
The zone. |
getZoneBytes()
publicByteStringgetZoneBytes()The URL of the Zone where the source disk.
optional string zone = 8;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for zone. |
hasArchitecture()
publicbooleanhasArchitecture()The architecture of the source disk. Valid values are ARM64 or X86_64.
optional .google.cloud.backupdr.v1.DiskBackupProperties.Architecture architecture = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the architecture field is set. |
hasDescription()
publicbooleanhasDescription()A description of the source disk.
optional string description = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the description field is set. |
hasRegion()
publicbooleanhasRegion()Region and zone are mutually exclusive fields. The URL of the region of the source disk.
optional string region = 7;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the region field is set. |
hasSizeGb()
publicbooleanhasSizeGb()Size(in GB) of the source disk.
optional int64 size_gb = 6;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sizeGb field is set. |
hasSourceDisk()
publicbooleanhasSourceDisk()The source disk used to create this backup.
optional string source_disk = 10;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sourceDisk field is set. |
hasType()
publicbooleanhasType()The URL of the type of the disk.
optional string type = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the type field is set. |
hasZone()
publicbooleanhasZone()The URL of the Zone where the source disk.
optional string zone = 8;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the zone field is set. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(DiskBackupProperties other)
publicDiskBackupProperties.BuildermergeFrom(DiskBackupPropertiesother)| Parameter | |
|---|---|
| Name | Description |
other |
DiskBackupProperties |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicDiskBackupProperties.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicDiskBackupProperties.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalDiskBackupProperties.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
|
removeGuestOsFeature(int index)
publicDiskBackupProperties.BuilderremoveGuestOsFeature(intindex)A list of guest OS features that are applicable to this backup.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
|
setArchitecture(DiskBackupProperties.Architecture value)
publicDiskBackupProperties.BuildersetArchitecture(DiskBackupProperties.Architecturevalue)The architecture of the source disk. Valid values are ARM64 or X86_64.
optional .google.cloud.backupdr.v1.DiskBackupProperties.Architecture architecture = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
DiskBackupProperties.Architecture The architecture to set. |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
setArchitectureValue(int value)
publicDiskBackupProperties.BuildersetArchitectureValue(intvalue)The architecture of the source disk. Valid values are ARM64 or X86_64.
optional .google.cloud.backupdr.v1.DiskBackupProperties.Architecture architecture = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
int The enum numeric value on the wire for architecture to set. |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
setDescription(String value)
publicDiskBackupProperties.BuildersetDescription(Stringvalue)A description of the source disk.
optional string description = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
String The description to set. |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
publicDiskBackupProperties.BuildersetDescriptionBytes(ByteStringvalue)A description of the source disk.
optional string description = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
publicDiskBackupProperties.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
|
setGuestOsFeature(int index, GuestOsFeature value)
publicDiskBackupProperties.BuildersetGuestOsFeature(intindex,GuestOsFeaturevalue)A list of guest OS features that are applicable to this backup.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
GuestOsFeature |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
|
setGuestOsFeature(int index, GuestOsFeature.Builder builderForValue)
publicDiskBackupProperties.BuildersetGuestOsFeature(intindex,GuestOsFeature.BuilderbuilderForValue)A list of guest OS features that are applicable to this backup.
repeated .google.cloud.backupdr.v1.GuestOsFeature guest_os_feature = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
GuestOsFeature.Builder |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
|
setLicenses(int index, String value)
publicDiskBackupProperties.BuildersetLicenses(intindex,Stringvalue)A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image.
repeated string licenses = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
int The index to set the value at. |
value |
String The licenses to set. |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
setRegion(String value)
publicDiskBackupProperties.BuildersetRegion(Stringvalue)Region and zone are mutually exclusive fields. The URL of the region of the source disk.
optional string region = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
String The region to set. |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
setRegionBytes(ByteString value)
publicDiskBackupProperties.BuildersetRegionBytes(ByteStringvalue)Region and zone are mutually exclusive fields. The URL of the region of the source disk.
optional string region = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for region to set. |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicDiskBackupProperties.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
|
setReplicaZones(int index, String value)
publicDiskBackupProperties.BuildersetReplicaZones(intindex,Stringvalue)The URL of the Zones where the source disk should be replicated.
repeated string replica_zones = 9;
| Parameters | |
|---|---|
| Name | Description |
index |
int The index to set the value at. |
value |
String The replicaZones to set. |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
setSizeGb(long value)
publicDiskBackupProperties.BuildersetSizeGb(longvalue)Size(in GB) of the source disk.
optional int64 size_gb = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
long The sizeGb to set. |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
setSourceDisk(String value)
publicDiskBackupProperties.BuildersetSourceDisk(Stringvalue)The source disk used to create this backup.
optional string source_disk = 10;
| Parameter | |
|---|---|
| Name | Description |
value |
String The sourceDisk to set. |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
setSourceDiskBytes(ByteString value)
publicDiskBackupProperties.BuildersetSourceDiskBytes(ByteStringvalue)The source disk used to create this backup.
optional string source_disk = 10;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for sourceDisk to set. |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
setType(String value)
publicDiskBackupProperties.BuildersetType(Stringvalue)The URL of the type of the disk.
optional string type = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
String The type to set. |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
setTypeBytes(ByteString value)
publicDiskBackupProperties.BuildersetTypeBytes(ByteStringvalue)The URL of the type of the disk.
optional string type = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for type to set. |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalDiskBackupProperties.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
|
setZone(String value)
publicDiskBackupProperties.BuildersetZone(Stringvalue)The URL of the Zone where the source disk.
optional string zone = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
String The zone to set. |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |
setZoneBytes(ByteString value)
publicDiskBackupProperties.BuildersetZoneBytes(ByteStringvalue)The URL of the Zone where the source disk.
optional string zone = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for zone to set. |
| Returns | |
|---|---|
| Type | Description |
DiskBackupProperties.Builder |
This builder for chaining. |