Class StorageResource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StorageResource.Builder>
com.google.cloud.hypercomputecluster.v1.StorageResource.Builder
All Implemented Interfaces:
StorageResourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
StorageResource

public static final class StorageResource.Builder extends com.google.protobuf.GeneratedMessage.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.v1.StorageResource
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<StorageResource.Builder>
    • clear

      public StorageResource.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<StorageResource.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<StorageResource.Builder>
    • getDefaultInstanceForType

      public StorageResource getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public StorageResource build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public StorageResource buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public StorageResource.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StorageResource.Builder>
    • mergeFrom

      public StorageResource.Builder mergeFrom(StorageResource other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<StorageResource.Builder>
    • mergeFrom

      public StorageResource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StorageResource.Builder>
      Throws:
      IOException
    • getReferenceCase

      public StorageResource.ReferenceCase getReferenceCase()
      Specified by:
      getReferenceCase in interface StorageResourceOrBuilder
    • clearReference

      public StorageResource.Builder clearReference()
    • 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.v1.FilestoreReference filestore = 1;
      Specified by:
      hasFilestore in interface StorageResourceOrBuilder
      Returns:
      Whether the filestore field is set.
    • 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.v1.FilestoreReference filestore = 1;
      Specified by:
      getFilestore in interface StorageResourceOrBuilder
      Returns:
      The filestore.
    • setFilestore

      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.v1.FilestoreReference filestore = 1;
    • setFilestore

      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.v1.FilestoreReference filestore = 1;
    • mergeFilestore

      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.v1.FilestoreReference filestore = 1;
    • 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.v1.FilestoreReference filestore = 1;
    • 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.v1.FilestoreReference filestore = 1;
    • 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.v1.FilestoreReference filestore = 1;
      Specified by:
      getFilestoreOrBuilder in interface StorageResourceOrBuilder
    • 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.v1.BucketReference bucket = 2;
      Specified by:
      hasBucket in interface StorageResourceOrBuilder
      Returns:
      Whether the bucket field is set.
    • 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.v1.BucketReference bucket = 2;
      Specified by:
      getBucket in interface StorageResourceOrBuilder
      Returns:
      The bucket.
    • setBucket

      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.v1.BucketReference bucket = 2;
    • setBucket

      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.v1.BucketReference bucket = 2;
    • mergeBucket

      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.v1.BucketReference bucket = 2;
    • 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.v1.BucketReference bucket = 2;
    • 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.v1.BucketReference bucket = 2;
    • 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.v1.BucketReference bucket = 2;
      Specified by:
      getBucketOrBuilder in interface StorageResourceOrBuilder
    • 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.v1.LustreReference lustre = 3;
      Specified by:
      hasLustre in interface StorageResourceOrBuilder
      Returns:
      Whether the lustre field is set.
    • 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.v1.LustreReference lustre = 3;
      Specified by:
      getLustre in interface StorageResourceOrBuilder
      Returns:
      The lustre.
    • setLustre

      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.v1.LustreReference lustre = 3;
    • setLustre

      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.v1.LustreReference lustre = 3;
    • mergeLustre

      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.v1.LustreReference lustre = 3;
    • 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.v1.LustreReference lustre = 3;
    • 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.v1.LustreReference lustre = 3;
    • 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.v1.LustreReference lustre = 3;
      Specified by:
      getLustreOrBuilder in interface StorageResourceOrBuilder
    • 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.v1.StorageResourceConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasConfig in interface StorageResourceOrBuilder
      Returns:
      Whether the config field is set.
    • 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.v1.StorageResourceConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getConfig in interface StorageResourceOrBuilder
      Returns:
      The config.
    • setConfig

       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.v1.StorageResourceConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • setConfig

      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.v1.StorageResourceConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • mergeConfig

      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.v1.StorageResourceConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • 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.v1.StorageResourceConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • 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.v1.StorageResourceConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • 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.v1.StorageResourceConfig config = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getConfigOrBuilder in interface StorageResourceOrBuilder