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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GenerateOptimizedManifestRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GenerateOptimizedManifestRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GenerateOptimizedManifestRequest.Builder>
    • getDefaultInstanceForType

      public GenerateOptimizedManifestRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GenerateOptimizedManifestRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GenerateOptimizedManifestRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerateOptimizedManifestRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasModelServerInfo in interface GenerateOptimizedManifestRequestOrBuilder
      Returns:
      Whether the modelServerInfo field is set.
    • getModelServerInfo

      public ModelServerInfo 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:
      getModelServerInfo in interface GenerateOptimizedManifestRequestOrBuilder
      Returns:
      The modelServerInfo.
    • setModelServerInfo

      public GenerateOptimizedManifestRequest.Builder setModelServerInfo(ModelServerInfo value)
       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

      public GenerateOptimizedManifestRequest.Builder mergeModelServerInfo(ModelServerInfo value)
       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

      public GenerateOptimizedManifestRequest.Builder 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

      public ModelServerInfo.Builder 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

      public ModelServerInfoOrBuilder 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:
      getModelServerInfoOrBuilder in interface GenerateOptimizedManifestRequestOrBuilder
    • getAcceleratorType

      public String 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:
      getAcceleratorType in interface GenerateOptimizedManifestRequestOrBuilder
      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:
      getAcceleratorTypeBytes in interface GenerateOptimizedManifestRequestOrBuilder
      Returns:
      The bytes for acceleratorType.
    • setAcceleratorType

      public GenerateOptimizedManifestRequest.Builder setAcceleratorType(String 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 acceleratorType to set.
      Returns:
      This builder for chaining.
    • clearAcceleratorType

      public GenerateOptimizedManifestRequest.Builder 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

      public String getKubernetesNamespace()
       Optional. The kubernetes namespace to deploy the manifests in.
       
      string kubernetes_namespace = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getKubernetesNamespace in interface GenerateOptimizedManifestRequestOrBuilder
      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:
      getKubernetesNamespaceBytes in interface GenerateOptimizedManifestRequestOrBuilder
      Returns:
      The bytes for kubernetesNamespace.
    • setKubernetesNamespace

      public GenerateOptimizedManifestRequest.Builder setKubernetesNamespace(String value)
       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

      public GenerateOptimizedManifestRequest.Builder 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:
      hasPerformanceRequirements in interface GenerateOptimizedManifestRequestOrBuilder
      Returns:
      Whether the performanceRequirements field is set.
    • 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];
      Specified by:
      getPerformanceRequirements in interface GenerateOptimizedManifestRequestOrBuilder
      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

      public GenerateOptimizedManifestRequest.Builder 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

      public PerformanceRequirements.Builder 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

      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];
      Specified by:
      getPerformanceRequirementsOrBuilder in interface GenerateOptimizedManifestRequestOrBuilder
    • 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:
      hasStorageConfig in interface GenerateOptimizedManifestRequestOrBuilder
      Returns:
      Whether the storageConfig field is set.
    • 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];
      Specified by:
      getStorageConfig in interface GenerateOptimizedManifestRequestOrBuilder
      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

      public GenerateOptimizedManifestRequest.Builder mergeStorageConfig(StorageConfig value)
       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

      public GenerateOptimizedManifestRequest.Builder 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

      public StorageConfig.Builder 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

      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];
      Specified by:
      getStorageConfigOrBuilder in interface GenerateOptimizedManifestRequestOrBuilder