public static final class StorageConfig.Builder extends GeneratedMessage.Builder<StorageConfig.Builder> implements StorageConfigOrBuilderStorage configuration for a model deployment.
Protobuf type google.cloud.gkerecommender.v1.StorageConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > StorageConfig.BuilderImplements
StorageConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public StorageConfig build()| Returns | |
|---|---|
| Type | Description |
StorageConfig |
|
buildPartial()
public StorageConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
StorageConfig |
|
clear()
public StorageConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
StorageConfig.Builder |
|
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 | |
|---|---|
| Type | Description |
StorageConfig.Builder |
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 | |
|---|---|
| Type | Description |
StorageConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public StorageConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
StorageConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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];
| Returns | |
|---|---|
| Type | Description |
String |
The modelBucketUri. |
getModelBucketUriBytes()
public 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];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for modelBucketUri. |
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];
| Returns | |
|---|---|
| Type | Description |
String |
The xlaCacheBucketUri. |
getXlaCacheBucketUriBytes()
public 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];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for xlaCacheBucketUri. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(StorageConfig other)
public StorageConfig.Builder mergeFrom(StorageConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
StorageConfig |
| Returns | |
|---|---|
| Type | Description |
StorageConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public StorageConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
StorageConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public StorageConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
StorageConfig.Builder |
|
setModelBucketUri(String value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe modelBucketUri to set. |
| Returns | |
|---|---|
| Type | Description |
StorageConfig.Builder |
This builder for chaining. |
setModelBucketUriBytes(ByteString value)
public StorageConfig.Builder setModelBucketUriBytes(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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for modelBucketUri to set. |
| Returns | |
|---|---|
| Type | Description |
StorageConfig.Builder |
This builder for chaining. |
setXlaCacheBucketUri(String value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe xlaCacheBucketUri to set. |
| Returns | |
|---|---|
| Type | Description |
StorageConfig.Builder |
This builder for chaining. |
setXlaCacheBucketUriBytes(ByteString value)
public StorageConfig.Builder setXlaCacheBucketUriBytes(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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for xlaCacheBucketUri to set. |
| Returns | |
|---|---|
| Type | Description |
StorageConfig.Builder |
This builder for chaining. |