Class Volume.Builder (0.3.0)

public static final class Volume.Builder extends GeneratedMessage.Builder<Volume.Builder> implements VolumeOrBuilder

Information about a storage volume.

Protobuf type google.backstory.Volume

Implements

VolumeOrBuilder

Static 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
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

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 String

The 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 ByteString

The 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 String

The 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 ByteString

The 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 boolean

The 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 boolean

The 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 String

The 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 ByteString

The 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 String

The 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 ByteString

The bytes for name to set.

Returns
Type Description
Volume.Builder

This builder for chaining.