Class ComputeInstanceDataSourceProperties.Builder (0.14.0)

publicstaticfinalclass ComputeInstanceDataSourceProperties.BuilderextendsGeneratedMessageV3.Builder<ComputeInstanceDataSourceProperties.Builder>implementsComputeInstanceDataSourcePropertiesOrBuilder

ComputeInstanceDataSourceProperties represents the properties of a ComputeEngine resource that are stored in the DataSource.

Protobuf type google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicComputeInstanceDataSourceProperties.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder
Overrides

build()

publicComputeInstanceDataSourcePropertiesbuild()
Returns
Type Description
ComputeInstanceDataSourceProperties

buildPartial()

publicComputeInstanceDataSourcePropertiesbuildPartial()
Returns
Type Description
ComputeInstanceDataSourceProperties

clear()

publicComputeInstanceDataSourceProperties.Builderclear()
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder
Overrides

clearDescription()

publicComputeInstanceDataSourceProperties.BuilderclearDescription()

The description of the Compute Engine instance.

string description = 2;

Returns
Type Description
ComputeInstanceDataSourceProperties.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicComputeInstanceDataSourceProperties.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder
Overrides

clearMachineType()

publicComputeInstanceDataSourceProperties.BuilderclearMachineType()

The machine type of the instance.

string machine_type = 3;

Returns
Type Description
ComputeInstanceDataSourceProperties.Builder

This builder for chaining.

clearName()

publicComputeInstanceDataSourceProperties.BuilderclearName()

Name of the compute instance backed up by the datasource.

string name = 1;

Returns
Type Description
ComputeInstanceDataSourceProperties.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicComputeInstanceDataSourceProperties.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder
Overrides

clearTotalDiskCount()

publicComputeInstanceDataSourceProperties.BuilderclearTotalDiskCount()

The total number of disks attached to the Instance.

int64 total_disk_count = 4;

Returns
Type Description
ComputeInstanceDataSourceProperties.Builder

This builder for chaining.

clearTotalDiskSizeGb()

publicComputeInstanceDataSourceProperties.BuilderclearTotalDiskSizeGb()

The sum of all the disk sizes.

int64 total_disk_size_gb = 5;

Returns
Type Description
ComputeInstanceDataSourceProperties.Builder

This builder for chaining.

clone()

publicComputeInstanceDataSourceProperties.Builderclone()
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder
Overrides

getDefaultInstanceForType()

publicComputeInstanceDataSourcePropertiesgetDefaultInstanceForType()
Returns
Type Description
ComputeInstanceDataSourceProperties

getDescription()

publicStringgetDescription()

The description of the Compute Engine instance.

string description = 2;

Returns
Type Description
String

The description.

getDescriptionBytes()

publicByteStringgetDescriptionBytes()

The description of the Compute Engine instance.

string description = 2;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMachineType()

publicStringgetMachineType()

The machine type of the instance.

string machine_type = 3;

Returns
Type Description
String

The machineType.

getMachineTypeBytes()

publicByteStringgetMachineTypeBytes()

The machine type of the instance.

string machine_type = 3;

Returns
Type Description
ByteString

The bytes for machineType.

getName()

publicStringgetName()

Name of the compute instance backed up by the datasource.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

Name of the compute instance backed up by the datasource.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getTotalDiskCount()

publiclonggetTotalDiskCount()

The total number of disks attached to the Instance.

int64 total_disk_count = 4;

Returns
Type Description
long

The totalDiskCount.

getTotalDiskSizeGb()

publiclonggetTotalDiskSizeGb()

The sum of all the disk sizes.

int64 total_disk_size_gb = 5;

Returns
Type Description
long

The totalDiskSizeGb.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ComputeInstanceDataSourceProperties other)

publicComputeInstanceDataSourceProperties.BuildermergeFrom(ComputeInstanceDataSourcePropertiesother)
Parameter
Name Description
other ComputeInstanceDataSourceProperties
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicComputeInstanceDataSourceProperties.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicComputeInstanceDataSourceProperties.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalComputeInstanceDataSourceProperties.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder
Overrides

setDescription(String value)

publicComputeInstanceDataSourceProperties.BuildersetDescription(Stringvalue)

The description of the Compute Engine instance.

string description = 2;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
ComputeInstanceDataSourceProperties.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

publicComputeInstanceDataSourceProperties.BuildersetDescriptionBytes(ByteStringvalue)

The description of the Compute Engine instance.

string description = 2;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
ComputeInstanceDataSourceProperties.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicComputeInstanceDataSourceProperties.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder
Overrides

setMachineType(String value)

publicComputeInstanceDataSourceProperties.BuildersetMachineType(Stringvalue)

The machine type of the instance.

string machine_type = 3;

Parameter
Name Description
value String

The machineType to set.

Returns
Type Description
ComputeInstanceDataSourceProperties.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

publicComputeInstanceDataSourceProperties.BuildersetMachineTypeBytes(ByteStringvalue)

The machine type of the instance.

string machine_type = 3;

Parameter
Name Description
value ByteString

The bytes for machineType to set.

Returns
Type Description
ComputeInstanceDataSourceProperties.Builder

This builder for chaining.

setName(String value)

publicComputeInstanceDataSourceProperties.BuildersetName(Stringvalue)

Name of the compute instance backed up by the datasource.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ComputeInstanceDataSourceProperties.Builder

This builder for chaining.

setNameBytes(ByteString value)

publicComputeInstanceDataSourceProperties.BuildersetNameBytes(ByteStringvalue)

Name of the compute instance backed up by the datasource.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ComputeInstanceDataSourceProperties.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicComputeInstanceDataSourceProperties.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder
Overrides

setTotalDiskCount(long value)

publicComputeInstanceDataSourceProperties.BuildersetTotalDiskCount(longvalue)

The total number of disks attached to the Instance.

int64 total_disk_count = 4;

Parameter
Name Description
value long

The totalDiskCount to set.

Returns
Type Description
ComputeInstanceDataSourceProperties.Builder

This builder for chaining.

setTotalDiskSizeGb(long value)

publicComputeInstanceDataSourceProperties.BuildersetTotalDiskSizeGb(longvalue)

The sum of all the disk sizes.

int64 total_disk_size_gb = 5;

Parameter
Name Description
value long

The totalDiskSizeGb to set.

Returns
Type Description
ComputeInstanceDataSourceProperties.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalComputeInstanceDataSourceProperties.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.