Class StorageConfig.Builder (0.1.0)

public static final class StorageConfig.Builder extends GeneratedMessageV3.Builder<StorageConfig.Builder> implements StorageConfigOrBuilder

Storage configuration for a model deployment.

Protobuf type google.cloud.gkerecommender.v1.StorageConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StorageConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StorageConfig.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public StorageConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StorageConfig.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public StorageConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StorageConfig.Builder
Overrides

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.

clone()

public StorageConfig.Builder clone()
Returns
Type Description
StorageConfig.Builder
Overrides

getDefaultInstanceForType()

public StorageConfig getDefaultInstanceForType()
Returns
Type Description
StorageConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StorageConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StorageConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StorageConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StorageConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public StorageConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StorageConfig.Builder
Overrides

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 String

The 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 ByteString

The bytes for modelBucketUri to set.

Returns
Type Description
StorageConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StorageConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StorageConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StorageConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StorageConfig.Builder
Overrides

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 String

The 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 ByteString

The bytes for xlaCacheBucketUri to set.

Returns
Type Description
StorageConfig.Builder

This builder for chaining.