Class ExistingDisk.Builder (0.6.0)

public static final class ExistingDisk.Builder extends GeneratedMessageV3.Builder<ExistingDisk.Builder> implements ExistingDiskOrBuilder

Configuration for an existing disk to be attached to the VM.

Protobuf type google.cloud.lifesciences.v2beta.ExistingDisk

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExistingDisk.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExistingDisk.Builder
Overrides

build()

public ExistingDisk build()
Returns
TypeDescription
ExistingDisk

buildPartial()

public ExistingDisk buildPartial()
Returns
TypeDescription
ExistingDisk

clear()

public ExistingDisk.Builder clear()
Returns
TypeDescription
ExistingDisk.Builder
Overrides

clearDisk()

public ExistingDisk.Builder clearDisk()

If disk contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk. If disk does not contain slashes, the Cloud Life Sciences API assumes that the disk is a zonal disk and a URL will be generated of the form zones/<zone>/disks/<disk>, where <zone> is the zone in which the instance is allocated. The disk must be ext4 formatted. If all Mount references to this disk have the read_only flag set to true, the disk will be attached in read-only mode and can be shared with other instances. Otherwise, the disk will be available for writing but cannot be shared.

string disk = 1;

Returns
TypeDescription
ExistingDisk.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ExistingDisk.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ExistingDisk.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ExistingDisk.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ExistingDisk.Builder
Overrides

clone()

public ExistingDisk.Builder clone()
Returns
TypeDescription
ExistingDisk.Builder
Overrides

getDefaultInstanceForType()

public ExistingDisk getDefaultInstanceForType()
Returns
TypeDescription
ExistingDisk

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisk()

public String getDisk()

If disk contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk. If disk does not contain slashes, the Cloud Life Sciences API assumes that the disk is a zonal disk and a URL will be generated of the form zones/<zone>/disks/<disk>, where <zone> is the zone in which the instance is allocated. The disk must be ext4 formatted. If all Mount references to this disk have the read_only flag set to true, the disk will be attached in read-only mode and can be shared with other instances. Otherwise, the disk will be available for writing but cannot be shared.

string disk = 1;

Returns
TypeDescription
String

The disk.

getDiskBytes()

public ByteString getDiskBytes()

If disk contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk. If disk does not contain slashes, the Cloud Life Sciences API assumes that the disk is a zonal disk and a URL will be generated of the form zones/<zone>/disks/<disk>, where <zone> is the zone in which the instance is allocated. The disk must be ext4 formatted. If all Mount references to this disk have the read_only flag set to true, the disk will be attached in read-only mode and can be shared with other instances. Otherwise, the disk will be available for writing but cannot be shared.

string disk = 1;

Returns
TypeDescription
ByteString

The bytes for disk.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExistingDisk other)

public ExistingDisk.Builder mergeFrom(ExistingDisk other)
Parameter
NameDescription
otherExistingDisk
Returns
TypeDescription
ExistingDisk.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExistingDisk.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExistingDisk.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ExistingDisk.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ExistingDisk.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExistingDisk.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExistingDisk.Builder
Overrides

setDisk(String value)

public ExistingDisk.Builder setDisk(String value)

If disk contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk. If disk does not contain slashes, the Cloud Life Sciences API assumes that the disk is a zonal disk and a URL will be generated of the form zones/<zone>/disks/<disk>, where <zone> is the zone in which the instance is allocated. The disk must be ext4 formatted. If all Mount references to this disk have the read_only flag set to true, the disk will be attached in read-only mode and can be shared with other instances. Otherwise, the disk will be available for writing but cannot be shared.

string disk = 1;

Parameter
NameDescription
valueString

The disk to set.

Returns
TypeDescription
ExistingDisk.Builder

This builder for chaining.

setDiskBytes(ByteString value)

public ExistingDisk.Builder setDiskBytes(ByteString value)

If disk contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk. If disk does not contain slashes, the Cloud Life Sciences API assumes that the disk is a zonal disk and a URL will be generated of the form zones/<zone>/disks/<disk>, where <zone> is the zone in which the instance is allocated. The disk must be ext4 formatted. If all Mount references to this disk have the read_only flag set to true, the disk will be attached in read-only mode and can be shared with other instances. Otherwise, the disk will be available for writing but cannot be shared.

string disk = 1;

Parameter
NameDescription
valueByteString

The bytes for disk to set.

Returns
TypeDescription
ExistingDisk.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ExistingDisk.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExistingDisk.Builder
Overrides

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

public ExistingDisk.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ExistingDisk.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ExistingDisk.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExistingDisk.Builder
Overrides