# Interface StorageResourceOrBuilder (0.13.0)

0.13.0 (latest) 0.11.0 0.8.0 0.7.0 0.5.0 0.3.0 0.2.0 0.1.0

    public interface StorageResourceOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getBucket()

    public abstract 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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/com.google.cloud.hypercomputecluster.v1beta.BucketReference` | The bucket. |

### getBucketOrBuilder()

    public abstract 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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/com.google.cloud.hypercomputecluster.v1beta.BucketReferenceOrBuilder` |   |

### getConfig()

    public abstract 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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/com.google.cloud.hypercomputecluster.v1beta.StorageResourceConfig` | The config. |

### getConfigOrBuilder()

    public abstract 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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/com.google.cloud.hypercomputecluster.v1beta.StorageResourceConfigOrBuilder` |   |

### getFilestore()

    public abstract 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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/com.google.cloud.hypercomputecluster.v1beta.FilestoreReference` | The filestore. |

### getFilestoreOrBuilder()

    public abstract 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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/com.google.cloud.hypercomputecluster.v1beta.FilestoreReferenceOrBuilder` |   |

### getLustre()

    public abstract 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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/com.google.cloud.hypercomputecluster.v1beta.LustreReference` | The lustre. |

### getLustreOrBuilder()

    public abstract 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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/com.google.cloud.hypercomputecluster.v1beta.LustreReferenceOrBuilder` |   |

### getReferenceCase()

    public abstract StorageResource.ReferenceCase getReferenceCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/com.google.cloud.hypercomputecluster.v1beta.StorageResource.ReferenceCase` |   |

### hasBucket()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the bucket field is set. |

### hasConfig()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the config field is set. |

### hasFilestore()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the filestore field is set. |

### hasLustre()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the lustre field is set. |