Package com.google.cloud.bigquery
Class ModelInfo
- java.lang.Object
-
- com.google.cloud.bigquery.ModelInfo
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Model
public class ModelInfo extends Object 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, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModelInfo.BuilderA builder forModelInfoobjects.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)LonggetCreationTime()Returns the time when this model was created, in milliseconds since the epoch.StringgetDescription()Returns the user description of the model.EncryptionConfigurationgetEncryptionConfiguration()StringgetEtag()Returns the hash of the model resource.LonggetExpirationTime()Returns this this model expires, in milliseconds since the epoch.com.google.common.collect.ImmutableList<StandardSQLField>getFeatureColumns()Returns information about the feature columns for this model.StringgetFriendlyName()Returns the user-friendly name for the model.com.google.common.collect.ImmutableList<StandardSQLField>getLabelColumns()Returns information about the label columns for this model.Map<String,String>getLabels()Returns a map for labels applied to the model.LonggetLastModifiedTime()Returns the time when this table was last modified, in milliseconds since the epoch.StringgetLocation()Returns a location of the model.ModelIdgetModelId()Returns the model identity.StringgetModelType()Returns the type of the ML model.com.google.common.collect.ImmutableList<com.google.api.services.bigquery.model.TrainingRun>getTrainingRuns()Returns metadata about each training run iteration.inthashCode()static ModelInfo.BuildernewBuilder(ModelId modelId)Returns a builder for aModelInfoobject given table identity.static ModelInfoof(ModelId modelId)Returns aModelInfoobject given table identity.ModelInfo.BuildertoBuilder()StringtoString()
-
-
-
Method Detail
-
getEtag
public String getEtag()
Returns the hash of the model resource.
-
getModelId
public ModelId getModelId()
Returns the model identity.
-
getModelType
public String getModelType()
Returns the type of the ML model.
-
getDescription
public String getDescription()
Returns the user description of the model.
-
getFriendlyName
public String getFriendlyName()
Returns the user-friendly name for the model.
-
getCreationTime
public Long getCreationTime()
Returns the time when this model was created, in milliseconds since the epoch.
-
getLastModifiedTime
public Long getLastModifiedTime()
Returns the time when this table was last modified, in milliseconds since the epoch.
-
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.
-
getLocation
public String getLocation()
Returns a location of the model.
-
getTrainingRuns
@BetaApi public com.google.common.collect.ImmutableList<com.google.api.services.bigquery.model.TrainingRun> getTrainingRuns()
Returns metadata about each training run iteration.
-
getLabelColumns
@BetaApi public com.google.common.collect.ImmutableList<StandardSQLField> getLabelColumns()
Returns information about the label columns for this model.
-
getFeatureColumns
@BetaApi public com.google.common.collect.ImmutableList<StandardSQLField> getFeatureColumns()
Returns information about the feature columns for this model.
-
getEncryptionConfiguration
public EncryptionConfiguration getEncryptionConfiguration()
-
toBuilder
public ModelInfo.Builder toBuilder()
-
newBuilder
public static ModelInfo.Builder newBuilder(ModelId modelId)
Returns a builder for aModelInfoobject given table identity.
-
-