public static final class Volume.Builder extends GeneratedMessage.Builder<Volume.Builder> implements VolumeOrBuilderInformation about a storage volume.
Protobuf type google.backstory.Volume
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Volume.BuilderImplements
VolumeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Volume build()| Returns | |
|---|---|
| Type | Description |
Volume |
|
buildPartial()
public Volume buildPartial()| Returns | |
|---|---|
| Type | Description |
Volume |
|
clear()
public Volume.Builder clear()| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
clearDevicePath()
public Volume.Builder clearDevicePath()The system path to the device (e.g., "\\.\HarddiskVolume1", "/dev/sda1").
string device_path = 3;
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
This builder for chaining. |
clearFileSystem()
public Volume.Builder clearFileSystem()The name of the file system on the volume (e.g., "NTFS", "FAT32").
string file_system = 1;
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
This builder for chaining. |
clearIsMounted()
public Volume.Builder clearIsMounted()Indicates whether the volume is currently mounted.
bool is_mounted = 4;
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
This builder for chaining. |
clearIsReadOnly()
public Volume.Builder clearIsReadOnly()Indicates whether the volume is mounted as read-only.
bool is_read_only = 5;
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
This builder for chaining. |
clearMountPoint()
public Volume.Builder clearMountPoint()The path where the volume is mounted (e.g., "C:", "/mnt/data").
string mount_point = 2;
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
This builder for chaining. |
clearName()
public Volume.Builder clearName()The user-assigned label or name for the volume.
string name = 6;
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Volume getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Volume |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDevicePath()
public String getDevicePath()The system path to the device (e.g., "\\.\HarddiskVolume1", "/dev/sda1").
string device_path = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The devicePath. |
getDevicePathBytes()
public ByteString getDevicePathBytes()The system path to the device (e.g., "\\.\HarddiskVolume1", "/dev/sda1").
string device_path = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for devicePath. |
getFileSystem()
public String getFileSystem()The name of the file system on the volume (e.g., "NTFS", "FAT32").
string file_system = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The fileSystem. |
getFileSystemBytes()
public ByteString getFileSystemBytes()The name of the file system on the volume (e.g., "NTFS", "FAT32").
string file_system = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for fileSystem. |
getIsMounted()
public boolean getIsMounted()Indicates whether the volume is currently mounted.
bool is_mounted = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
The isMounted. |
getIsReadOnly()
public boolean getIsReadOnly()Indicates whether the volume is mounted as read-only.
bool is_read_only = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
The isReadOnly. |
getMountPoint()
public String getMountPoint()The path where the volume is mounted (e.g., "C:", "/mnt/data").
string mount_point = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The mountPoint. |
getMountPointBytes()
public ByteString getMountPointBytes()The path where the volume is mounted (e.g., "C:", "/mnt/data").
string mount_point = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for mountPoint. |
getName()
public String getName()The user-assigned label or name for the volume.
string name = 6;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()The user-assigned label or name for the volume.
string name = 6;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Volume other)
public Volume.Builder mergeFrom(Volume other)| Parameter | |
|---|---|
| Name | Description |
other |
Volume |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Volume.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Volume.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
|
setDevicePath(String value)
public Volume.Builder setDevicePath(String value)The system path to the device (e.g., "\\.\HarddiskVolume1", "/dev/sda1").
string device_path = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe devicePath to set. |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
This builder for chaining. |
setDevicePathBytes(ByteString value)
public Volume.Builder setDevicePathBytes(ByteString value)The system path to the device (e.g., "\\.\HarddiskVolume1", "/dev/sda1").
string device_path = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for devicePath to set. |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
This builder for chaining. |
setFileSystem(String value)
public Volume.Builder setFileSystem(String value)The name of the file system on the volume (e.g., "NTFS", "FAT32").
string file_system = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe fileSystem to set. |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
This builder for chaining. |
setFileSystemBytes(ByteString value)
public Volume.Builder setFileSystemBytes(ByteString value)The name of the file system on the volume (e.g., "NTFS", "FAT32").
string file_system = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for fileSystem to set. |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
This builder for chaining. |
setIsMounted(boolean value)
public Volume.Builder setIsMounted(boolean value)Indicates whether the volume is currently mounted.
bool is_mounted = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe isMounted to set. |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
This builder for chaining. |
setIsReadOnly(boolean value)
public Volume.Builder setIsReadOnly(boolean value)Indicates whether the volume is mounted as read-only.
bool is_read_only = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe isReadOnly to set. |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
This builder for chaining. |
setMountPoint(String value)
public Volume.Builder setMountPoint(String value)The path where the volume is mounted (e.g., "C:", "/mnt/data").
string mount_point = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe mountPoint to set. |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
This builder for chaining. |
setMountPointBytes(ByteString value)
public Volume.Builder setMountPointBytes(ByteString value)The path where the volume is mounted (e.g., "C:", "/mnt/data").
string mount_point = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for mountPoint to set. |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
This builder for chaining. |
setName(String value)
public Volume.Builder setName(String value)The user-assigned label or name for the volume.
string name = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Volume.Builder setNameBytes(ByteString value)The user-assigned label or name for the volume.
string name = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Volume.Builder |
This builder for chaining. |