Class StorageConfig (0.1.0)

public final class StorageConfig extends GeneratedMessageV3 implements StorageConfigOrBuilder

Storage configuration for a model deployment.

Protobuf type google.cloud.gkerecommender.v1.StorageConfig

Static Fields

MODEL_BUCKET_URI_FIELD_NUMBER

public static final int MODEL_BUCKET_URI_FIELD_NUMBER
Field Value
Type Description
int

XLA_CACHE_BUCKET_URI_FIELD_NUMBER

public static final int XLA_CACHE_BUCKET_URI_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static StorageConfig getDefaultInstance()
Returns
Type Description
StorageConfig

getDescriptor()

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

newBuilder()

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

newBuilder(StorageConfig prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public StorageConfig getDefaultInstanceForType()
Returns
Type Description
StorageConfig

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.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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 StorageConfig.Builder newBuilderForType()
Returns
Type Description
StorageConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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