Class GenerateOptimizedManifestRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GenerateOptimizedManifestRequest.Builder>
com.google.cloud.gkerecommender.v1.GenerateOptimizedManifestRequest.Builder
- All Implemented Interfaces:
GenerateOptimizedManifestRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GenerateOptimizedManifestRequest
public static final class GenerateOptimizedManifestRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GenerateOptimizedManifestRequest.Builder>
implements GenerateOptimizedManifestRequestOrBuilder
Request message for [GkeInferenceQuickstart.GenerateOptimizedManifest][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.GenerateOptimizedManifest].Protobuf type
google.cloud.gkerecommender.v1.GenerateOptimizedManifestRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Optional.Required.Optional.Optional.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Required.Required.Required.Optional.Optional.Optional.Optional.Optional.Optional.booleanRequired.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Required.Optional.mergeStorageConfig(StorageConfig value) Optional.setAcceleratorType(String value) Required.setAcceleratorTypeBytes(com.google.protobuf.ByteString value) Required.setKubernetesNamespace(String value) Optional.setKubernetesNamespaceBytes(com.google.protobuf.ByteString value) Optional.Required.setModelServerInfo(ModelServerInfo.Builder builderForValue) Required.Optional.setPerformanceRequirements(PerformanceRequirements.Builder builderForValue) Optional.setStorageConfig(StorageConfig value) Optional.setStorageConfig(StorageConfig.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GenerateOptimizedManifestRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GenerateOptimizedManifestRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GenerateOptimizedManifestRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerateOptimizedManifestRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GenerateOptimizedManifestRequest.Builder>
-
mergeFrom
public GenerateOptimizedManifestRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GenerateOptimizedManifestRequest.Builder>- Throws:
IOException
-
hasModelServerInfo
public boolean hasModelServerInfo()Required. The model server configuration to generate the manifest for. Use [GkeInferenceQuickstart.FetchProfiles][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles] to find valid configurations.
.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasModelServerInfoin interfaceGenerateOptimizedManifestRequestOrBuilder- Returns:
- Whether the modelServerInfo field is set.
-
getModelServerInfo
Required. The model server configuration to generate the manifest for. Use [GkeInferenceQuickstart.FetchProfiles][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles] to find valid configurations.
.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getModelServerInfoin interfaceGenerateOptimizedManifestRequestOrBuilder- Returns:
- The modelServerInfo.
-
setModelServerInfo
Required. The model server configuration to generate the manifest for. Use [GkeInferenceQuickstart.FetchProfiles][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles] to find valid configurations.
.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = REQUIRED]; -
setModelServerInfo
public GenerateOptimizedManifestRequest.Builder setModelServerInfo(ModelServerInfo.Builder builderForValue) Required. The model server configuration to generate the manifest for. Use [GkeInferenceQuickstart.FetchProfiles][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles] to find valid configurations.
.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = REQUIRED]; -
mergeModelServerInfo
Required. The model server configuration to generate the manifest for. Use [GkeInferenceQuickstart.FetchProfiles][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles] to find valid configurations.
.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = REQUIRED]; -
clearModelServerInfo
Required. The model server configuration to generate the manifest for. Use [GkeInferenceQuickstart.FetchProfiles][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles] to find valid configurations.
.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = REQUIRED]; -
getModelServerInfoBuilder
Required. The model server configuration to generate the manifest for. Use [GkeInferenceQuickstart.FetchProfiles][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles] to find valid configurations.
.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = REQUIRED]; -
getModelServerInfoOrBuilder
Required. The model server configuration to generate the manifest for. Use [GkeInferenceQuickstart.FetchProfiles][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles] to find valid configurations.
.google.cloud.gkerecommender.v1.ModelServerInfo model_server_info = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getModelServerInfoOrBuilderin interfaceGenerateOptimizedManifestRequestOrBuilder
-
getAcceleratorType
Required. The accelerator type. Use [GkeInferenceQuickstart.FetchProfiles][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles] to find valid accelerators for a given `model_server_info`.
string accelerator_type = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAcceleratorTypein interfaceGenerateOptimizedManifestRequestOrBuilder- Returns:
- The acceleratorType.
-
getAcceleratorTypeBytes
public com.google.protobuf.ByteString getAcceleratorTypeBytes()Required. The accelerator type. Use [GkeInferenceQuickstart.FetchProfiles][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles] to find valid accelerators for a given `model_server_info`.
string accelerator_type = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAcceleratorTypeBytesin interfaceGenerateOptimizedManifestRequestOrBuilder- Returns:
- The bytes for acceleratorType.
-
setAcceleratorType
Required. The accelerator type. Use [GkeInferenceQuickstart.FetchProfiles][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles] to find valid accelerators for a given `model_server_info`.
string accelerator_type = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The acceleratorType to set.- Returns:
- This builder for chaining.
-
clearAcceleratorType
Required. The accelerator type. Use [GkeInferenceQuickstart.FetchProfiles][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles] to find valid accelerators for a given `model_server_info`.
string accelerator_type = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setAcceleratorTypeBytes
public GenerateOptimizedManifestRequest.Builder setAcceleratorTypeBytes(com.google.protobuf.ByteString value) Required. The accelerator type. Use [GkeInferenceQuickstart.FetchProfiles][google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles] to find valid accelerators for a given `model_server_info`.
string accelerator_type = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for acceleratorType to set.- Returns:
- This builder for chaining.
-
getKubernetesNamespace
Optional. The kubernetes namespace to deploy the manifests in.
string kubernetes_namespace = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getKubernetesNamespacein interfaceGenerateOptimizedManifestRequestOrBuilder- Returns:
- The kubernetesNamespace.
-
getKubernetesNamespaceBytes
public com.google.protobuf.ByteString getKubernetesNamespaceBytes()Optional. The kubernetes namespace to deploy the manifests in.
string kubernetes_namespace = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getKubernetesNamespaceBytesin interfaceGenerateOptimizedManifestRequestOrBuilder- Returns:
- The bytes for kubernetesNamespace.
-
setKubernetesNamespace
Optional. The kubernetes namespace to deploy the manifests in.
string kubernetes_namespace = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The kubernetesNamespace to set.- Returns:
- This builder for chaining.
-
clearKubernetesNamespace
Optional. The kubernetes namespace to deploy the manifests in.
string kubernetes_namespace = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setKubernetesNamespaceBytes
public GenerateOptimizedManifestRequest.Builder setKubernetesNamespaceBytes(com.google.protobuf.ByteString value) Optional. The kubernetes namespace to deploy the manifests in.
string kubernetes_namespace = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for kubernetesNamespace to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasPerformanceRequirementsin interfaceGenerateOptimizedManifestRequestOrBuilder- Returns:
- Whether the performanceRequirements field is set.
-
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];- Specified by:
getPerformanceRequirementsin interfaceGenerateOptimizedManifestRequestOrBuilder- Returns:
- The performanceRequirements.
-
setPerformanceRequirements
public GenerateOptimizedManifestRequest.Builder setPerformanceRequirements(PerformanceRequirements value) 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]; -
setPerformanceRequirements
public GenerateOptimizedManifestRequest.Builder setPerformanceRequirements(PerformanceRequirements.Builder builderForValue) 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]; -
mergePerformanceRequirements
public GenerateOptimizedManifestRequest.Builder mergePerformanceRequirements(PerformanceRequirements value) 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]; -
clearPerformanceRequirements
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]; -
getPerformanceRequirementsBuilder
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]; -
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];- Specified by:
getPerformanceRequirementsOrBuilderin interfaceGenerateOptimizedManifestRequestOrBuilder
-
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];- Specified by:
hasStorageConfigin interfaceGenerateOptimizedManifestRequestOrBuilder- Returns:
- Whether the storageConfig field is set.
-
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];- Specified by:
getStorageConfigin interfaceGenerateOptimizedManifestRequestOrBuilder- Returns:
- The storageConfig.
-
setStorageConfig
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]; -
setStorageConfig
public GenerateOptimizedManifestRequest.Builder setStorageConfig(StorageConfig.Builder builderForValue) 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]; -
mergeStorageConfig
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]; -
clearStorageConfig
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]; -
getStorageConfigBuilder
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]; -
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];- Specified by:
getStorageConfigOrBuilderin interfaceGenerateOptimizedManifestRequestOrBuilder
-