Class ComputeInstanceDataSourceProperties.Builder (0.13.0)

public static final class ComputeInstanceDataSourceProperties.Builder extends GeneratedMessageV3.Builder<ComputeInstanceDataSourceProperties.Builder> implements ComputeInstanceDataSourcePropertiesOrBuilder

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

Protobuf type google.cloud.backupdr.v1.ComputeInstanceDataSourceProperties

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ComputeInstanceDataSourceProperties.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder
Overrides

build()

public ComputeInstanceDataSourceProperties build()
Returns
Type Description
ComputeInstanceDataSourceProperties

buildPartial()

public ComputeInstanceDataSourceProperties buildPartial()
Returns
Type Description
ComputeInstanceDataSourceProperties

clear()

public ComputeInstanceDataSourceProperties.Builder clear()
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder
Overrides

clearDescription()

public ComputeInstanceDataSourceProperties.Builder clearDescription()

The description of the Compute Engine instance.

string description = 2;

Returns
Type Description
ComputeInstanceDataSourceProperties.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ComputeInstanceDataSourceProperties.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder
Overrides

clearMachineType()

public ComputeInstanceDataSourceProperties.Builder clearMachineType()

The machine type of the instance.

string machine_type = 3;

Returns
Type Description
ComputeInstanceDataSourceProperties.Builder

This builder for chaining.

clearName()

public ComputeInstanceDataSourceProperties.Builder clearName()

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)

public ComputeInstanceDataSourceProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder
Overrides

clearTotalDiskCount()

public ComputeInstanceDataSourceProperties.Builder clearTotalDiskCount()

The total number of disks attached to the Instance.

int64 total_disk_count = 4;

Returns
Type Description
ComputeInstanceDataSourceProperties.Builder

This builder for chaining.

clearTotalDiskSizeGb()

public ComputeInstanceDataSourceProperties.Builder clearTotalDiskSizeGb()

The sum of all the disk sizes.

int64 total_disk_size_gb = 5;

Returns
Type Description
ComputeInstanceDataSourceProperties.Builder

This builder for chaining.

clone()

public ComputeInstanceDataSourceProperties.Builder clone()
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder
Overrides

getDefaultInstanceForType()

public ComputeInstanceDataSourceProperties getDefaultInstanceForType()
Returns
Type Description
ComputeInstanceDataSourceProperties

getDescription()

public String getDescription()

The description of the Compute Engine instance.

string description = 2;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

The description of the Compute Engine instance.

string description = 2;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMachineType()

public String getMachineType()

The machine type of the instance.

string machine_type = 3;

Returns
Type Description
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

The machine type of the instance.

string machine_type = 3;

Returns
Type Description
ByteString

The bytes for machineType.

getName()

public String getName()

Name of the compute instance backed up by the datasource.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the compute instance backed up by the datasource.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getTotalDiskCount()

public long getTotalDiskCount()

The total number of disks attached to the Instance.

int64 total_disk_count = 4;

Returns
Type Description
long

The totalDiskCount.

getTotalDiskSizeGb()

public long getTotalDiskSizeGb()

The sum of all the disk sizes.

int64 total_disk_size_gb = 5;

Returns
Type Description
long

The totalDiskSizeGb.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ComputeInstanceDataSourceProperties other)

public ComputeInstanceDataSourceProperties.Builder mergeFrom(ComputeInstanceDataSourceProperties other)
Parameter
Name Description
other ComputeInstanceDataSourceProperties
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ComputeInstanceDataSourceProperties.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ComputeInstanceDataSourceProperties.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ComputeInstanceDataSourceProperties.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder
Overrides

setDescription(String value)

public ComputeInstanceDataSourceProperties.Builder setDescription(String value)

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)

public ComputeInstanceDataSourceProperties.Builder setDescriptionBytes(ByteString value)

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)

public ComputeInstanceDataSourceProperties.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder
Overrides

setMachineType(String value)

public ComputeInstanceDataSourceProperties.Builder setMachineType(String value)

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)

public ComputeInstanceDataSourceProperties.Builder setMachineTypeBytes(ByteString value)

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)

public ComputeInstanceDataSourceProperties.Builder setName(String value)

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)

public ComputeInstanceDataSourceProperties.Builder setNameBytes(ByteString value)

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)

public ComputeInstanceDataSourceProperties.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder
Overrides

setTotalDiskCount(long value)

public ComputeInstanceDataSourceProperties.Builder setTotalDiskCount(long value)

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)

public ComputeInstanceDataSourceProperties.Builder setTotalDiskSizeGb(long value)

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)

public final ComputeInstanceDataSourceProperties.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeInstanceDataSourceProperties.Builder
Overrides