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
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()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ExistingDisk.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ExistingDisk build()
buildPartial()
public ExistingDisk buildPartial()
clear()
public ExistingDisk.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public ExistingDisk.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ExistingDisk.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public ExistingDisk.Builder clone()
Overrides
getDefaultInstanceForType()
public ExistingDisk getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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 |
---|
Type | Description |
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 |
---|
Type | Description |
ByteString | The bytes for disk.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ExistingDisk other)
public ExistingDisk.Builder mergeFrom(ExistingDisk other)
public ExistingDisk.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ExistingDisk.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ExistingDisk.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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 |
---|
Name | Description |
value | String
The disk to set.
|
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 |
---|
Name | Description |
value | ByteString
The bytes for disk to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public ExistingDisk.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ExistingDisk.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ExistingDisk.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides