Class StorageConfig.Builder (0.5.0)

public static final class StorageConfig.Builder extends GeneratedMessage.Builder<StorageConfig.Builder> implements StorageConfigOrBuilder

Description of how a storage resource should be mounted on a VM instance.

Protobuf type google.cloud.hypercomputecluster.v1beta.StorageConfig

Static Methods

getDescriptor()

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

Methods

build()

public StorageConfig build()
Returns
Type Description
StorageConfig

buildPartial()

public StorageConfig buildPartial()
Returns
Type Description
StorageConfig

clear()

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

clearId()

public StorageConfig.Builder clearId()

Required. ID of the storage resource to mount, which must match a key in the cluster's storage_resources.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StorageConfig.Builder

This builder for chaining.

clearLocalMount()

public StorageConfig.Builder clearLocalMount()

Required. A directory inside the VM instance's file system where the storage resource should be mounted (e.g., /mnt/share).

string local_mount = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StorageConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public StorageConfig getDefaultInstanceForType()
Returns
Type Description
StorageConfig

getDescriptorForType()

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

getId()

public String getId()

Required. ID of the storage resource to mount, which must match a key in the cluster's storage_resources.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Required. ID of the storage resource to mount, which must match a key in the cluster's storage_resources.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for id.

getLocalMount()

public String getLocalMount()

Required. A directory inside the VM instance's file system where the storage resource should be mounted (e.g., /mnt/share).

string local_mount = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The localMount.

getLocalMountBytes()

public ByteString getLocalMountBytes()

Required. A directory inside the VM instance's file system where the storage resource should be mounted (e.g., /mnt/share).

string local_mount = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for localMount.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StorageConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setId(String value)

public StorageConfig.Builder setId(String value)

Required. ID of the storage resource to mount, which must match a key in the cluster's storage_resources.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The id to set.

Returns
Type Description
StorageConfig.Builder

This builder for chaining.

setIdBytes(ByteString value)

public StorageConfig.Builder setIdBytes(ByteString value)

Required. ID of the storage resource to mount, which must match a key in the cluster's storage_resources.

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
StorageConfig.Builder

This builder for chaining.

setLocalMount(String value)

public StorageConfig.Builder setLocalMount(String value)

Required. A directory inside the VM instance's file system where the storage resource should be mounted (e.g., /mnt/share).

string local_mount = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The localMount to set.

Returns
Type Description
StorageConfig.Builder

This builder for chaining.

setLocalMountBytes(ByteString value)

public StorageConfig.Builder setLocalMountBytes(ByteString value)

Required. A directory inside the VM instance's file system where the storage resource should be mounted (e.g., /mnt/share).

string local_mount = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for localMount to set.

Returns
Type Description
StorageConfig.Builder

This builder for chaining.