Send feedback
  
   
 
  
    
      Class DeployRequest.ModelConfig (3.79.0) 
  
  
  
   
  
    
  
  
    
    
    
    
    
  Version latestkeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  DeployRequest . ModelConfig   extends   GeneratedMessageV3   implements   DeployRequest . ModelConfigOrBuilder  
   The model config to use for the deployment.
 Protobuf type google.cloud.aiplatform.v1.DeployRequest.ModelConfig
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  
  
    
public   static   final   int   ACCEPT_EULA_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   CONTAINER_SPEC_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   HUGGING_FACE_ACCESS_TOKEN_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   HUGGING_FACE_CACHE_ENABLED_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   MODEL_DISPLAY_NAME_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   MODEL_USER_ID_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  
    
public   static   DeployRequest . ModelConfig   getDefaultInstance ()  
  
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  
    
public   static   DeployRequest . ModelConfig . Builder   newBuilder ()  
  
  
    
public   static   DeployRequest . ModelConfig . Builder   newBuilder ( DeployRequest . ModelConfig   prototype )  
  
  
  
    
public   static   DeployRequest . ModelConfig   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   DeployRequest . ModelConfig   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   DeployRequest . ModelConfig   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  
    
public   static   DeployRequest . ModelConfig   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   DeployRequest . ModelConfig   parseFrom ( ByteString   data )  
  
  
  
  
    
public   static   DeployRequest . ModelConfig   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   DeployRequest . ModelConfig   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   DeployRequest . ModelConfig   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   DeployRequest . ModelConfig   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   DeployRequest . ModelConfig   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   DeployRequest . ModelConfig   parseFrom ( ByteBuffer   data )  
  
  
  
  
    
public   static   DeployRequest . ModelConfig   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Parser<DeployRequest . ModelConfig >  parser ()  
  
  Methods
   
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  
    
public   boolean   getAcceptEula ()  
   Optional. Whether the user accepts the End User License Agreement (EULA)
 for the model.
 bool accept_eula = 1 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        boolean The acceptEula.
 
     
  
  
    
public   ModelContainerSpec   getContainerSpec ()  
   Optional. The specification of the container that is to be used when
 deploying. If not set, the default container spec will be used.
 
 .google.cloud.aiplatform.v1.ModelContainerSpec container_spec = 5 [(.google.api.field_behavior) = OPTIONAL];
 
    
public   ModelContainerSpecOrBuilder   getContainerSpecOrBuilder ()  
   Optional. The specification of the container that is to be used when
 deploying. If not set, the default container spec will be used.
 
 .google.cloud.aiplatform.v1.ModelContainerSpec container_spec = 5 [(.google.api.field_behavior) = OPTIONAL];
 
    
public   DeployRequest . ModelConfig   getDefaultInstanceForType ()  
  
  
    
public   String   getHuggingFaceAccessToken ()  
   Optional. The Hugging Face read access token used to access the model
 artifacts of gated models.
 string hugging_face_access_token = 2 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        String The huggingFaceAccessToken.
 
     
  
  
    
public   ByteString   getHuggingFaceAccessTokenBytes ()  
   Optional. The Hugging Face read access token used to access the model
 artifacts of gated models.
 string hugging_face_access_token = 2 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for huggingFaceAccessToken.
 
     
  
  
    
public   boolean   getHuggingFaceCacheEnabled ()  
   Optional. If true, the model will deploy with a cached version instead of
 directly downloading the model artifacts from Hugging Face. This is
 suitable for VPC-SC users with limited internet access.
 bool hugging_face_cache_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        boolean The huggingFaceCacheEnabled.
 
     
  
  
    
public   String   getModelDisplayName ()  
   Optional. The user-specified display name of the uploaded model. If not
 set, a default name will be used.
 string model_display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        String The modelDisplayName.
 
     
  
  
    
public   ByteString   getModelDisplayNameBytes ()  
   Optional. The user-specified display name of the uploaded model. If not
 set, a default name will be used.
 string model_display_name = 4 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for modelDisplayName.
 
     
  
  
    
public   String   getModelUserId ()  
   Optional. The ID to use for the uploaded Model, which will become the
 final component of the model resource name. When not provided, Vertex AI
 will generate a value for this ID. When Model Registry model is provided,
 this field will be ignored.
 This value may be up to 63 characters, and valid characters are
 [a-z0-9_-]. The first character cannot be a number or hyphen.
 string model_user_id = 6 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        String The modelUserId.
 
     
  
  
    
public   ByteString   getModelUserIdBytes ()  
   Optional. The ID to use for the uploaded Model, which will become the
 final component of the model resource name. When not provided, Vertex AI
 will generate a value for this ID. When Model Registry model is provided,
 this field will be ignored.
 This value may be up to 63 characters, and valid characters are
 [a-z0-9_-]. The first character cannot be a number or hyphen.
 string model_user_id = 6 [(.google.api.field_behavior) = OPTIONAL];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for modelUserId.
 
     
  
  
    
public   Parser<DeployRequest . ModelConfig >  getParserForType ()  
  
  Overrides 
  
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
    
public   boolean   hasContainerSpec ()  
   Optional. The specification of the container that is to be used when
 deploying. If not set, the default container spec will be used.
 
 .google.cloud.aiplatform.v1.ModelContainerSpec container_spec = 5 [(.google.api.field_behavior) = OPTIONAL];
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the containerSpec field is set.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  
    
public   DeployRequest . ModelConfig . Builder   newBuilderForType ()  
  
  
    
protected   DeployRequest . ModelConfig . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  
    
public   DeployRequest . ModelConfig . Builder   toBuilder ()  
  
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]