Class StorageConfig.Builder

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

public static final class StorageConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<StorageConfig.Builder> implements StorageConfigOrBuilder
 Storage configuration for a model deployment.
 
Protobuf type google.cloud.gkerecommender.v1.StorageConfig
  • 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<StorageConfig.Builder>
    • clear

      public StorageConfig.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<StorageConfig.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<StorageConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public StorageConfig.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<StorageConfig.Builder>
    • mergeFrom

      public StorageConfig.Builder mergeFrom(StorageConfig other)
    • isInitialized

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

      public StorageConfig.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<StorageConfig.Builder>
      Throws:
      IOException
    • getModelBucketUri

      public String getModelBucketUri()
       Optional. The Google Cloud Storage bucket URI to load the model from. This
       URI must point to the directory containing the model's config file
       (`config.json`) and model weights. A tuned GCSFuse setup can improve
       LLM Pod startup time by more than 7x. Expected format:
       `gs://<bucket-name>/<path-to-model>`.
       
      string model_bucket_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getModelBucketUri in interface StorageConfigOrBuilder
      Returns:
      The modelBucketUri.
    • getModelBucketUriBytes

      public com.google.protobuf.ByteString getModelBucketUriBytes()
       Optional. The Google Cloud Storage bucket URI to load the model from. This
       URI must point to the directory containing the model's config file
       (`config.json`) and model weights. A tuned GCSFuse setup can improve
       LLM Pod startup time by more than 7x. Expected format:
       `gs://<bucket-name>/<path-to-model>`.
       
      string model_bucket_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getModelBucketUriBytes in interface StorageConfigOrBuilder
      Returns:
      The bytes for modelBucketUri.
    • setModelBucketUri

      public StorageConfig.Builder setModelBucketUri(String value)
       Optional. The Google Cloud Storage bucket URI to load the model from. This
       URI must point to the directory containing the model's config file
       (`config.json`) and model weights. A tuned GCSFuse setup can improve
       LLM Pod startup time by more than 7x. Expected format:
       `gs://<bucket-name>/<path-to-model>`.
       
      string model_bucket_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The modelBucketUri to set.
      Returns:
      This builder for chaining.
    • clearModelBucketUri

      public StorageConfig.Builder clearModelBucketUri()
       Optional. The Google Cloud Storage bucket URI to load the model from. This
       URI must point to the directory containing the model's config file
       (`config.json`) and model weights. A tuned GCSFuse setup can improve
       LLM Pod startup time by more than 7x. Expected format:
       `gs://<bucket-name>/<path-to-model>`.
       
      string model_bucket_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setModelBucketUriBytes

      public StorageConfig.Builder setModelBucketUriBytes(com.google.protobuf.ByteString value)
       Optional. The Google Cloud Storage bucket URI to load the model from. This
       URI must point to the directory containing the model's config file
       (`config.json`) and model weights. A tuned GCSFuse setup can improve
       LLM Pod startup time by more than 7x. Expected format:
       `gs://<bucket-name>/<path-to-model>`.
       
      string model_bucket_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for modelBucketUri to set.
      Returns:
      This builder for chaining.
    • getXlaCacheBucketUri

      public String getXlaCacheBucketUri()
       Optional. The URI for the GCS bucket containing the XLA compilation cache.
       If using TPUs, the XLA cache will be written to the same path as
       `model_bucket_uri`. This can speed up vLLM model preparation for repeated
       deployments.
       
      string xla_cache_bucket_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getXlaCacheBucketUri in interface StorageConfigOrBuilder
      Returns:
      The xlaCacheBucketUri.
    • getXlaCacheBucketUriBytes

      public com.google.protobuf.ByteString getXlaCacheBucketUriBytes()
       Optional. The URI for the GCS bucket containing the XLA compilation cache.
       If using TPUs, the XLA cache will be written to the same path as
       `model_bucket_uri`. This can speed up vLLM model preparation for repeated
       deployments.
       
      string xla_cache_bucket_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getXlaCacheBucketUriBytes in interface StorageConfigOrBuilder
      Returns:
      The bytes for xlaCacheBucketUri.
    • setXlaCacheBucketUri

      public StorageConfig.Builder setXlaCacheBucketUri(String value)
       Optional. The URI for the GCS bucket containing the XLA compilation cache.
       If using TPUs, the XLA cache will be written to the same path as
       `model_bucket_uri`. This can speed up vLLM model preparation for repeated
       deployments.
       
      string xla_cache_bucket_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The xlaCacheBucketUri to set.
      Returns:
      This builder for chaining.
    • clearXlaCacheBucketUri

      public StorageConfig.Builder clearXlaCacheBucketUri()
       Optional. The URI for the GCS bucket containing the XLA compilation cache.
       If using TPUs, the XLA cache will be written to the same path as
       `model_bucket_uri`. This can speed up vLLM model preparation for repeated
       deployments.
       
      string xla_cache_bucket_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setXlaCacheBucketUriBytes

      public StorageConfig.Builder setXlaCacheBucketUriBytes(com.google.protobuf.ByteString value)
       Optional. The URI for the GCS bucket containing the XLA compilation cache.
       If using TPUs, the XLA cache will be written to the same path as
       `model_bucket_uri`. This can speed up vLLM model preparation for repeated
       deployments.
       
      string xla_cache_bucket_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for xlaCacheBucketUri to set.
      Returns:
      This builder for chaining.