Class StorageResource (0.1.0)

public final class StorageResource extends GeneratedMessageV3 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 Fields

BUCKET_FIELD_NUMBER

public static final int BUCKET_FIELD_NUMBER
Field Value
Type Description
int

CONFIG_FIELD_NUMBER

public static final int CONFIG_FIELD_NUMBER
Field Value
Type Description
int

FILESTORE_FIELD_NUMBER

public static final int FILESTORE_FIELD_NUMBER
Field Value
Type Description
int

LUSTRE_FIELD_NUMBER

public static final int LUSTRE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static StorageResource getDefaultInstance()
Returns
Type Description
StorageResource

getDescriptor()

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

newBuilder()

public static StorageResource.Builder newBuilder()
Returns
Type Description
StorageResource.Builder

newBuilder(StorageResource prototype)

public static StorageResource.Builder newBuilder(StorageResource prototype)
Parameter
Name Description
prototype StorageResource
Returns
Type Description
StorageResource.Builder

parseDelimitedFrom(InputStream input)

public static StorageResource parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StorageResource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StorageResource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StorageResource
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static StorageResource parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
StorageResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StorageResource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StorageResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StorageResource parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
StorageResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StorageResource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StorageResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StorageResource parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
StorageResource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StorageResource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StorageResource
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static StorageResource parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
StorageResource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StorageResource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StorageResource
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static StorageResource parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
StorageResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StorageResource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StorageResource
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<StorageResource> parser()
Returns
Type Description
Parser<StorageResource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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.

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

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.

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.

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

getParserForType()

public Parser<StorageResource> getParserForType()
Returns
Type Description
Parser<StorageResource>
Overrides

getReferenceCase()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected StorageResource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
StorageResource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException