Class StorageConfig.Builder (0.1.0)

public static final class StorageConfig.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StorageConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StorageConfig.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public StorageConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public StorageConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StorageConfig.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StorageConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StorageConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public StorageConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

public StorageConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StorageConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StorageConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StorageConfig.Builder
Overrides