Class GenerateOptimizedManifestRequest (0.1.0)

public final class GenerateOptimizedManifestRequest extends GeneratedMessageV3 implements GenerateOptimizedManifestRequestOrBuilder

Request message for GkeInferenceQuickstart.GenerateOptimizedManifest.

Protobuf type google.cloud.gkerecommender.v1.GenerateOptimizedManifestRequest

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > GenerateOptimizedManifestRequest

Static Fields

ACCELERATOR_TYPE_FIELD_NUMBER

public static final int ACCELERATOR_TYPE_FIELD_NUMBER
Field Value
Type Description
int

KUBERNETES_NAMESPACE_FIELD_NUMBER

public static final int KUBERNETES_NAMESPACE_FIELD_NUMBER
Field Value
Type Description
int

MODEL_SERVER_INFO_FIELD_NUMBER

public static final int MODEL_SERVER_INFO_FIELD_NUMBER
Field Value
Type Description
int

PERFORMANCE_REQUIREMENTS_FIELD_NUMBER

public static final int PERFORMANCE_REQUIREMENTS_FIELD_NUMBER
Field Value
Type Description
int

STORAGE_CONFIG_FIELD_NUMBER

public static final int STORAGE_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GenerateOptimizedManifestRequest getDefaultInstance()
Returns
Type Description
GenerateOptimizedManifestRequest

getDescriptor()

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

newBuilder()

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

newBuilder(GenerateOptimizedManifestRequest prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAcceleratorType()

public String getAcceleratorType()

Required. The accelerator type. Use GkeInferenceQuickstart.FetchProfiles to find valid accelerators for a given model_server_info.

string accelerator_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The acceleratorType.

getAcceleratorTypeBytes()

public ByteString getAcceleratorTypeBytes()

Required. The accelerator type. Use GkeInferenceQuickstart.FetchProfiles to find valid accelerators for a given model_server_info.

string accelerator_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for acceleratorType.

getDefaultInstanceForType()

public GenerateOptimizedManifestRequest getDefaultInstanceForType()
Returns
Type Description
GenerateOptimizedManifestRequest

getKubernetesNamespace()

public String getKubernetesNamespace()

Optional. The kubernetes namespace to deploy the manifests in.

string kubernetes_namespace = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The kubernetesNamespace.

getKubernetesNamespaceBytes()

public ByteString getKubernetesNamespaceBytes()

Optional. The kubernetes namespace to deploy the manifests in.

string kubernetes_namespace = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for kubernetesNamespace.

getModelServerInfo()

public ModelServerInfo getModelServerInfo()

Required. The model server configuration to generate the manifest for. Use GkeInferenceQuickstart.FetchProfiles to find valid configurations.

.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ModelServerInfo

The modelServerInfo.

getModelServerInfoOrBuilder()

public ModelServerInfoOrBuilder getModelServerInfoOrBuilder()

Required. The model server configuration to generate the manifest for. Use GkeInferenceQuickstart.FetchProfiles to find valid configurations.

.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ModelServerInfoOrBuilder

getParserForType()

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

getPerformanceRequirements()

public PerformanceRequirements getPerformanceRequirements()

Optional. The performance requirements to use for generating Horizontal Pod Autoscaler (HPA) resources. If provided, the manifest includes HPA resources to adjust the model server replica count to maintain the specified targets (e.g., NTPOT, TTFT) at a P50 latency. Cost targets are not currently supported for HPA generation. If the specified targets are not achievable, the HPA manifest will not be generated.

.google.cloud.gkerecommender.v1.PerformanceRequirements performance_requirements = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PerformanceRequirements

The performanceRequirements.

getPerformanceRequirementsOrBuilder()

public PerformanceRequirementsOrBuilder getPerformanceRequirementsOrBuilder()

Optional. The performance requirements to use for generating Horizontal Pod Autoscaler (HPA) resources. If provided, the manifest includes HPA resources to adjust the model server replica count to maintain the specified targets (e.g., NTPOT, TTFT) at a P50 latency. Cost targets are not currently supported for HPA generation. If the specified targets are not achievable, the HPA manifest will not be generated.

.google.cloud.gkerecommender.v1.PerformanceRequirements performance_requirements = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PerformanceRequirementsOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStorageConfig()

public StorageConfig getStorageConfig()

Optional. The storage configuration for the model. If not provided, the model is loaded from Huggingface.

.google.cloud.gkerecommender.v1.StorageConfig storage_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StorageConfig

The storageConfig.

getStorageConfigOrBuilder()

public StorageConfigOrBuilder getStorageConfigOrBuilder()

Optional. The storage configuration for the model. If not provided, the model is loaded from Huggingface.

.google.cloud.gkerecommender.v1.StorageConfig storage_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StorageConfigOrBuilder

hasModelServerInfo()

public boolean hasModelServerInfo()

Required. The model server configuration to generate the manifest for. Use GkeInferenceQuickstart.FetchProfiles to find valid configurations.

.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the modelServerInfo field is set.

hasPerformanceRequirements()

public boolean hasPerformanceRequirements()

Optional. The performance requirements to use for generating Horizontal Pod Autoscaler (HPA) resources. If provided, the manifest includes HPA resources to adjust the model server replica count to maintain the specified targets (e.g., NTPOT, TTFT) at a P50 latency. Cost targets are not currently supported for HPA generation. If the specified targets are not achievable, the HPA manifest will not be generated.

.google.cloud.gkerecommender.v1.PerformanceRequirements performance_requirements = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the performanceRequirements field is set.

hasStorageConfig()

public boolean hasStorageConfig()

Optional. The storage configuration for the model. If not provided, the model is loaded from Huggingface.

.google.cloud.gkerecommender.v1.StorageConfig storage_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the storageConfig field is set.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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