Class StorageResource.Builder (0.1.0)

publicstaticfinalclass StorageResource.BuilderextendsGeneratedMessageV3.Builder<StorageResource.Builder>implementsStorageResourceOrBuilder

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

Protobuf type google.cloud.hypercomputecluster.v1beta.StorageResource

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicStorageResource.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StorageResource.Builder
Overrides

build()

publicStorageResourcebuild()
Returns
Type Description
StorageResource

buildPartial()

publicStorageResourcebuildPartial()
Returns
Type Description
StorageResource

clear()

publicStorageResource.Builderclear()
Returns
Type Description
StorageResource.Builder
Overrides

clearBucket()

publicStorageResource.BuilderclearBucket()

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()

publicStorageResource.BuilderclearConfig()

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)

publicStorageResource.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StorageResource.Builder
Overrides

clearFilestore()

publicStorageResource.BuilderclearFilestore()

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()

publicStorageResource.BuilderclearLustre()

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)

publicStorageResource.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StorageResource.Builder
Overrides

clearReference()

publicStorageResource.BuilderclearReference()
Returns
Type Description
StorageResource.Builder

clone()

publicStorageResource.Builderclone()
Returns
Type Description
StorageResource.Builder
Overrides

getBucket()

publicBucketReferencegetBucket()

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()

publicBucketReference.BuildergetBucketBuilder()

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()

publicBucketReferenceOrBuildergetBucketOrBuilder()

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()

publicStorageResourceConfiggetConfig()

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()

publicStorageResourceConfig.BuildergetConfigBuilder()

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()

publicStorageResourceConfigOrBuildergetConfigOrBuilder()

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()

publicStorageResourcegetDefaultInstanceForType()
Returns
Type Description
StorageResource

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFilestore()

publicFilestoreReferencegetFilestore()

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()

publicFilestoreReference.BuildergetFilestoreBuilder()

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()

publicFilestoreReferenceOrBuildergetFilestoreOrBuilder()

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()

publicLustreReferencegetLustre()

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()

publicLustreReference.BuildergetLustreBuilder()

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()

publicLustreReferenceOrBuildergetLustreOrBuilder()

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()

publicStorageResource.ReferenceCasegetReferenceCase()
Returns
Type Description
StorageResource.ReferenceCase

hasBucket()

publicbooleanhasBucket()

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()

publicbooleanhasConfig()

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()

publicbooleanhasFilestore()

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()

publicbooleanhasLustre()

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()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeBucket(BucketReference value)

publicStorageResource.BuildermergeBucket(BucketReferencevalue)

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)

publicStorageResource.BuildermergeConfig(StorageResourceConfigvalue)

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)

publicStorageResource.BuildermergeFilestore(FilestoreReferencevalue)

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)

publicStorageResource.BuildermergeFrom(StorageResourceother)
Parameter
Name Description
other StorageResource
Returns
Type Description
StorageResource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicStorageResource.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StorageResource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicStorageResource.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
StorageResource.Builder
Overrides

mergeLustre(LustreReference value)

publicStorageResource.BuildermergeLustre(LustreReferencevalue)

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)

publicfinalStorageResource.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StorageResource.Builder
Overrides

setBucket(BucketReference value)

publicStorageResource.BuildersetBucket(BucketReferencevalue)

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)

publicStorageResource.BuildersetBucket(BucketReference.BuilderbuilderForValue)

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)

publicStorageResource.BuildersetConfig(StorageResourceConfigvalue)

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)

publicStorageResource.BuildersetConfig(StorageResourceConfig.BuilderbuilderForValue)

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)

publicStorageResource.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StorageResource.Builder
Overrides

setFilestore(FilestoreReference value)

publicStorageResource.BuildersetFilestore(FilestoreReferencevalue)

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)

publicStorageResource.BuildersetFilestore(FilestoreReference.BuilderbuilderForValue)

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)

publicStorageResource.BuildersetLustre(LustreReferencevalue)

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)

publicStorageResource.BuildersetLustre(LustreReference.BuilderbuilderForValue)

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)

publicStorageResource.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StorageResource.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalStorageResource.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StorageResource.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年12月17日 UTC.