Send feedback
  
   
 
  
    
      Class DeployRequest.CustomModel.Builder (3.79.0) 
  
  
  
   
  
    
  
  
    
    
    
    
    
  Version latestkeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  DeployRequest . CustomModel . Builder   extends   GeneratedMessageV3 . Builder<DeployRequest . CustomModel . Builder >  implements   DeployRequest . CustomModelOrBuilder  
   The custom model to deploy from model weights in a Google Cloud Storage URI
 or Model Registry model.
 Protobuf type google.cloud.aiplatform.v1beta1.DeployRequest.CustomModel
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  
    
public   DeployRequest . CustomModel . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  
    
public   DeployRequest . CustomModel   build ()  
  
  
    
public   DeployRequest . CustomModel   buildPartial ()  
  
  
    
public   DeployRequest . CustomModel . Builder   clear ()  
  
  Overrides 
  
  
    
public   DeployRequest . CustomModel . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  
    
public   DeployRequest . CustomModel . Builder   clearGcsUri ()  
   Immutable. The Google Cloud Storage URI of the custom model, storing
 weights and config files (which can be used to infer the base model).
 string gcs_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];
    
public   DeployRequest . CustomModel . Builder   clearModelSource ()  
  
  
    
public   DeployRequest . CustomModel . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  
    
public   DeployRequest . CustomModel . Builder   clone ()  
  
  Overrides 
  
  
    
public   DeployRequest . CustomModel   getDefaultInstanceForType ()  
  
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  
    
public   String   getGcsUri ()  
   Immutable. The Google Cloud Storage URI of the custom model, storing
 weights and config files (which can be used to infer the base model).
 string gcs_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];
    
      
        Returns  
      
        Type Description  
      
        String The gcsUri.
 
     
  
  
    
public   ByteString   getGcsUriBytes ()  
   Immutable. The Google Cloud Storage URI of the custom model, storing
 weights and config files (which can be used to infer the base model).
 string gcs_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for gcsUri.
 
     
  
  
    
public   DeployRequest . CustomModel . ModelSourceCase   getModelSourceCase ()  
  
  
    
public   boolean   hasGcsUri ()  
   Immutable. The Google Cloud Storage URI of the custom model, storing
 weights and config files (which can be used to infer the base model).
 string gcs_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the gcsUri field is set.
 
     
  
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  
    
public   DeployRequest . CustomModel . Builder   mergeFrom ( DeployRequest . CustomModel   other )  
  
  
  
    
public   DeployRequest . CustomModel . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  
    
public   DeployRequest . CustomModel . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  
    
public   final   DeployRequest . CustomModel . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  
    
public   DeployRequest . CustomModel . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  
    
public   DeployRequest . CustomModel . Builder   setGcsUri ( String   value )  
   Immutable. The Google Cloud Storage URI of the custom model, storing
 weights and config files (which can be used to infer the base model).
 string gcs_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];
    
      
        Parameter  
      
        Name Description  
      
        valueString The gcsUri to set.
 
     
  
  
  
    
public   DeployRequest . CustomModel . Builder   setGcsUriBytes ( ByteString   value )  
   Immutable. The Google Cloud Storage URI of the custom model, storing
 weights and config files (which can be used to infer the base model).
 string gcs_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];
    
      
        Parameter  
      
        Name Description  
      
        valueByteString The bytes for gcsUri to set.
 
     
  
  
  
    
public   DeployRequest . CustomModel . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  
    
public   final   DeployRequest . CustomModel . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  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."],[],[]]