Class StorageResource.Builder (0.1.0)

public static final class StorageResource.Builder extends GeneratedMessageV3.Builder<StorageResource.Builder> implements StorageResourceOrBuilder

A resource representing a form of persistent storage that is accessible to compute resources in the cluster.

Protobuf type google.cloud.hypercomputecluster.v1beta.StorageResource

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StorageResource build()
Returns
Type Description
StorageResource

buildPartial()

public StorageResource buildPartial()
Returns
Type Description
StorageResource

clear()

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

clearBucket()

public StorageResource.Builder clearBucket()

Reference to a Google Cloud Storage bucket. Populated if and only if the storage resource was configured to use Google Cloud Storage.

.google.cloud.hypercomputecluster.v1beta.BucketReference bucket = 2;

Returns
Type Description
StorageResource.Builder

clearConfig()

public StorageResource.Builder clearConfig()

Required. Immutable. Configuration for this storage resource, which describes how it should be created or imported. This field only controls how the storage resource is initially created or imported. Subsequent changes to the storage resource should be made via the resource's API and will not be reflected in the configuration.

.google.cloud.hypercomputecluster.v1beta.StorageResourceConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
StorageResource.Builder

clearField(Descriptors.FieldDescriptor field)

public StorageResource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StorageResource.Builder
Overrides

clearFilestore()

public StorageResource.Builder clearFilestore()

Reference to a Filestore instance. Populated if and only if the storage resource was configured to use Filestore.

.google.cloud.hypercomputecluster.v1beta.FilestoreReference filestore = 1;

Returns
Type Description
StorageResource.Builder

clearLustre()

public StorageResource.Builder clearLustre()

Reference to a Managed Lustre instance. Populated if and only if the storage resource was configured to use Managed Lustre.

.google.cloud.hypercomputecluster.v1beta.LustreReference lustre = 3;

Returns
Type Description
StorageResource.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReference()

public StorageResource.Builder clearReference()
Returns
Type Description
StorageResource.Builder

clone()

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

getBucket()

public BucketReference getBucket()

Reference to a Google Cloud Storage bucket. Populated if and only if the storage resource was configured to use Google Cloud Storage.

.google.cloud.hypercomputecluster.v1beta.BucketReference bucket = 2;

Returns
Type Description
BucketReference

The bucket.

getBucketBuilder()

public BucketReference.Builder getBucketBuilder()

Reference to a Google Cloud Storage bucket. Populated if and only if the storage resource was configured to use Google Cloud Storage.

.google.cloud.hypercomputecluster.v1beta.BucketReference bucket = 2;

Returns
Type Description
BucketReference.Builder

getBucketOrBuilder()

public BucketReferenceOrBuilder getBucketOrBuilder()

Reference to a Google Cloud Storage bucket. Populated if and only if the storage resource was configured to use Google Cloud Storage.

.google.cloud.hypercomputecluster.v1beta.BucketReference bucket = 2;

Returns
Type Description
BucketReferenceOrBuilder

getConfig()

public StorageResourceConfig getConfig()

Required. Immutable. Configuration for this storage resource, which describes how it should be created or imported. This field only controls how the storage resource is initially created or imported. Subsequent changes to the storage resource should be made via the resource's API and will not be reflected in the configuration.

.google.cloud.hypercomputecluster.v1beta.StorageResourceConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
StorageResourceConfig

The config.

getConfigBuilder()

public StorageResourceConfig.Builder getConfigBuilder()

Required. Immutable. Configuration for this storage resource, which describes how it should be created or imported. This field only controls how the storage resource is initially created or imported. Subsequent changes to the storage resource should be made via the resource's API and will not be reflected in the configuration.

.google.cloud.hypercomputecluster.v1beta.StorageResourceConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
StorageResourceConfig.Builder

getConfigOrBuilder()

public StorageResourceConfigOrBuilder getConfigOrBuilder()

Required. Immutable. Configuration for this storage resource, which describes how it should be created or imported. This field only controls how the storage resource is initially created or imported. Subsequent changes to the storage resource should be made via the resource's API and will not be reflected in the configuration.

.google.cloud.hypercomputecluster.v1beta.StorageResourceConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
StorageResourceConfigOrBuilder

getDefaultInstanceForType()

public StorageResource getDefaultInstanceForType()
Returns
Type Description
StorageResource

getDescriptorForType()

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

getFilestore()

public FilestoreReference getFilestore()

Reference to a Filestore instance. Populated if and only if the storage resource was configured to use Filestore.

.google.cloud.hypercomputecluster.v1beta.FilestoreReference filestore = 1;

Returns
Type Description
FilestoreReference

The filestore.

getFilestoreBuilder()

public FilestoreReference.Builder getFilestoreBuilder()

Reference to a Filestore instance. Populated if and only if the storage resource was configured to use Filestore.

.google.cloud.hypercomputecluster.v1beta.FilestoreReference filestore = 1;

Returns
Type Description
FilestoreReference.Builder

getFilestoreOrBuilder()

public FilestoreReferenceOrBuilder getFilestoreOrBuilder()

Reference to a Filestore instance. Populated if and only if the storage resource was configured to use Filestore.

.google.cloud.hypercomputecluster.v1beta.FilestoreReference filestore = 1;

Returns
Type Description
FilestoreReferenceOrBuilder

getLustre()

public LustreReference getLustre()

Reference to a Managed Lustre instance. Populated if and only if the storage resource was configured to use Managed Lustre.

.google.cloud.hypercomputecluster.v1beta.LustreReference lustre = 3;

Returns
Type Description
LustreReference

The lustre.

getLustreBuilder()

public LustreReference.Builder getLustreBuilder()

Reference to a Managed Lustre instance. Populated if and only if the storage resource was configured to use Managed Lustre.

.google.cloud.hypercomputecluster.v1beta.LustreReference lustre = 3;

Returns
Type Description
LustreReference.Builder

getLustreOrBuilder()

public LustreReferenceOrBuilder getLustreOrBuilder()

Reference to a Managed Lustre instance. Populated if and only if the storage resource was configured to use Managed Lustre.

.google.cloud.hypercomputecluster.v1beta.LustreReference lustre = 3;

Returns
Type Description
LustreReferenceOrBuilder

getReferenceCase()

public StorageResource.ReferenceCase getReferenceCase()
Returns
Type Description
StorageResource.ReferenceCase

hasBucket()

public boolean hasBucket()

Reference to a Google Cloud Storage bucket. Populated if and only if the storage resource was configured to use Google Cloud Storage.

.google.cloud.hypercomputecluster.v1beta.BucketReference bucket = 2;

Returns
Type Description
boolean

Whether the bucket field is set.

hasConfig()

public boolean hasConfig()

Required. Immutable. Configuration for this storage resource, which describes how it should be created or imported. This field only controls how the storage resource is initially created or imported. Subsequent changes to the storage resource should be made via the resource's API and will not be reflected in the configuration.

.google.cloud.hypercomputecluster.v1beta.StorageResourceConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the config field is set.

hasFilestore()

public boolean hasFilestore()

Reference to a Filestore instance. Populated if and only if the storage resource was configured to use Filestore.

.google.cloud.hypercomputecluster.v1beta.FilestoreReference filestore = 1;

Returns
Type Description
boolean

Whether the filestore field is set.

hasLustre()

public boolean hasLustre()

Reference to a Managed Lustre instance. Populated if and only if the storage resource was configured to use Managed Lustre.

.google.cloud.hypercomputecluster.v1beta.LustreReference lustre = 3;

Returns
Type Description
boolean

Whether the lustre field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBucket(BucketReference value)

public StorageResource.Builder mergeBucket(BucketReference value)

Reference to a Google Cloud Storage bucket. Populated if and only if the storage resource was configured to use Google Cloud Storage.

.google.cloud.hypercomputecluster.v1beta.BucketReference bucket = 2;

Parameter
Name Description
value BucketReference
Returns
Type Description
StorageResource.Builder

mergeConfig(StorageResourceConfig value)

public StorageResource.Builder mergeConfig(StorageResourceConfig value)

Required. Immutable. Configuration for this storage resource, which describes how it should be created or imported. This field only controls how the storage resource is initially created or imported. Subsequent changes to the storage resource should be made via the resource's API and will not be reflected in the configuration.

.google.cloud.hypercomputecluster.v1beta.StorageResourceConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value StorageResourceConfig
Returns
Type Description
StorageResource.Builder

mergeFilestore(FilestoreReference value)

public StorageResource.Builder mergeFilestore(FilestoreReference value)

Reference to a Filestore instance. Populated if and only if the storage resource was configured to use Filestore.

.google.cloud.hypercomputecluster.v1beta.FilestoreReference filestore = 1;

Parameter
Name Description
value FilestoreReference
Returns
Type Description
StorageResource.Builder

mergeFrom(StorageResource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLustre(LustreReference value)

public StorageResource.Builder mergeLustre(LustreReference value)

Reference to a Managed Lustre instance. Populated if and only if the storage resource was configured to use Managed Lustre.

.google.cloud.hypercomputecluster.v1beta.LustreReference lustre = 3;

Parameter
Name Description
value LustreReference
Returns
Type Description
StorageResource.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBucket(BucketReference value)

public StorageResource.Builder setBucket(BucketReference value)

Reference to a Google Cloud Storage bucket. Populated if and only if the storage resource was configured to use Google Cloud Storage.

.google.cloud.hypercomputecluster.v1beta.BucketReference bucket = 2;

Parameter
Name Description
value BucketReference
Returns
Type Description
StorageResource.Builder

setBucket(BucketReference.Builder builderForValue)

public StorageResource.Builder setBucket(BucketReference.Builder builderForValue)

Reference to a Google Cloud Storage bucket. Populated if and only if the storage resource was configured to use Google Cloud Storage.

.google.cloud.hypercomputecluster.v1beta.BucketReference bucket = 2;

Parameter
Name Description
builderForValue BucketReference.Builder
Returns
Type Description
StorageResource.Builder

setConfig(StorageResourceConfig value)

public StorageResource.Builder setConfig(StorageResourceConfig value)

Required. Immutable. Configuration for this storage resource, which describes how it should be created or imported. This field only controls how the storage resource is initially created or imported. Subsequent changes to the storage resource should be made via the resource's API and will not be reflected in the configuration.

.google.cloud.hypercomputecluster.v1beta.StorageResourceConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value StorageResourceConfig
Returns
Type Description
StorageResource.Builder

setConfig(StorageResourceConfig.Builder builderForValue)

public StorageResource.Builder setConfig(StorageResourceConfig.Builder builderForValue)

Required. Immutable. Configuration for this storage resource, which describes how it should be created or imported. This field only controls how the storage resource is initially created or imported. Subsequent changes to the storage resource should be made via the resource's API and will not be reflected in the configuration.

.google.cloud.hypercomputecluster.v1beta.StorageResourceConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
builderForValue StorageResourceConfig.Builder
Returns
Type Description
StorageResource.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFilestore(FilestoreReference value)

public StorageResource.Builder setFilestore(FilestoreReference value)

Reference to a Filestore instance. Populated if and only if the storage resource was configured to use Filestore.

.google.cloud.hypercomputecluster.v1beta.FilestoreReference filestore = 1;

Parameter
Name Description
value FilestoreReference
Returns
Type Description
StorageResource.Builder

setFilestore(FilestoreReference.Builder builderForValue)

public StorageResource.Builder setFilestore(FilestoreReference.Builder builderForValue)

Reference to a Filestore instance. Populated if and only if the storage resource was configured to use Filestore.

.google.cloud.hypercomputecluster.v1beta.FilestoreReference filestore = 1;

Parameter
Name Description
builderForValue FilestoreReference.Builder
Returns
Type Description
StorageResource.Builder

setLustre(LustreReference value)

public StorageResource.Builder setLustre(LustreReference value)

Reference to a Managed Lustre instance. Populated if and only if the storage resource was configured to use Managed Lustre.

.google.cloud.hypercomputecluster.v1beta.LustreReference lustre = 3;

Parameter
Name Description
value LustreReference
Returns
Type Description
StorageResource.Builder

setLustre(LustreReference.Builder builderForValue)

public StorageResource.Builder setLustre(LustreReference.Builder builderForValue)

Reference to a Managed Lustre instance. Populated if and only if the storage resource was configured to use Managed Lustre.

.google.cloud.hypercomputecluster.v1beta.LustreReference lustre = 3;

Parameter
Name Description
builderForValue LustreReference.Builder
Returns
Type Description
StorageResource.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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