Class ModelInfo (2.37.2) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 2.37.2keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   class  ModelInfo   implements   Serializable  
  Google BigQuery ML model information. Models are not created directly via the API, but by issuing
 a CREATE MODEL query.
See Also: CREATE  MODEL statement 
    Inheritance 
    Object  >  
    ModelInfo 
   
  
  
  Static Methods
   
  newBuilder(ModelId modelId) 
  
    
public   static   ModelInfo . Builder   newBuilder ( ModelId   modelId )  
  Returns a builder for a ModelInfo object given table identity.
    
      
        Parameter  
      
        Name Description  
      
        modelIdModelId  
     
  
  
  of(ModelId modelId) 
  
    
public   static   ModelInfo   of ( ModelId   modelId )  
  Returns a ModelInfo object given table identity.
    
      
        Parameter  
      
        Name Description  
      
        modelIdModelId  
     
  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getCreationTime() 
  
    
public   Long   getCreationTime ()  
  Returns the time when this model was created, in milliseconds since the epoch.
    
      
        Returns  
      
        Type Description  
      
        Long  
     
  
  getDescription() 
  
    
public   String   getDescription ()  
  Returns the user description of the model.
    
      
        Returns  
      
        Type Description  
      
        String  
     
  
  getEncryptionConfiguration() 
  
    
public   EncryptionConfiguration   getEncryptionConfiguration ()  
  
  getEtag() 
  
  Returns the hash of the model resource.
    
      
        Returns  
      
        Type Description  
      
        String  
     
  
  getExpirationTime() 
  
    
public   Long   getExpirationTime ()  
  Returns this this model expires, in milliseconds since the epoch. If not present, the model
 will persist indefinitely. Expired models will be deleted.
    
      
        Returns  
      
        Type Description  
      
        Long  
     
  
  getFeatureColumns() 
  
    
public   ImmutableList<StandardSQLField>   getFeatureColumns ()  
  Returns information about the feature columns for this model.
    
      
        Returns  
      
        Type Description  
      
        com.google.common.collect.ImmutableList <StandardSQLField > 
     
  
  getFriendlyName() 
  
    
public   String   getFriendlyName ()  
  Returns the user-friendly name for the model.
    
      
        Returns  
      
        Type Description  
      
        String  
     
  
  getLabelColumns() 
  
    
public   ImmutableList<StandardSQLField>   getLabelColumns ()  
  Returns information about the label columns for this model.
    
      
        Returns  
      
        Type Description  
      
        com.google.common.collect.ImmutableList <StandardSQLField > 
     
  
  getLabels() 
  
    
public   Map<String , String >  getLabels ()  
  Returns a map for labels applied to the model.
getLastModifiedTime() 
  
    
public   Long   getLastModifiedTime ()  
  Returns the time when this table was last modified, in milliseconds since the epoch.
    
      
        Returns  
      
        Type Description  
      
        Long  
     
  
  getLocation() 
  
    
public   String   getLocation ()  
  Returns a location of the model.
    
      
        Returns  
      
        Type Description  
      
        String  
     
  
  getModelId() 
  
    
public   ModelId   getModelId ()  
  Returns the model identity.
getModelType() 
  
    
public   String   getModelType ()  
  Returns the type of the ML model.
    
      
        Returns  
      
        Type Description  
      
        String  
     
  
  getTrainingRuns() 
  
    
public   ImmutableList<TrainingRun>   getTrainingRuns ()  
  Returns metadata about each training run iteration.
    
      
        Returns  
      
        Type Description  
      
        com.google.common.collect.ImmutableList <com.google.api.services.bigquery.model.TrainingRun > 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   ModelInfo . Builder   toBuilder ()  
  
  toString() 
  
  
    
      
        Returns  
      
        Type Description  
      
        String  
     
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  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.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]