target.apidocs.com.google.api.services.bigquery.model.Model.html Maven / Gradle / Ivy
Model (BigQuery API v2-rev20190616-1.29.2)
com.google.api.services.bigquery.model
Class Model
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.bigquery.model.Model
-
public final class Model
extends GenericJson
Model definition for Model.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the BigQuery API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Model()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Model
clone()
Long
getCreationTime()
Output only.
String
getDescription()
[Optional] A user-friendly description of this model.
String
getEtag()
Output only.
Long
getExpirationTime()
[Optional] The time when this model expires, in milliseconds since the epoch.
List<StandardSqlField>
getFeatureColumns()
Output only.
String
getFriendlyName()
[Optional] A descriptive name for this model.
List<StandardSqlField>
getLabelColumns()
Output only.
Map<String,String>
getLabels()
[Optional] The labels associated with this model.
Long
getLastModifiedTime()
Output only.
String
getLocation()
Output only.
ModelReference
getModelReference()
Required.
String
getModelType()
Output only.
List<TrainingRun>
getTrainingRuns()
Output only.
Model
set(String fieldName,
Object value)
Model
setCreationTime(Long creationTime)
Output only.
Model
setDescription(String description)
[Optional] A user-friendly description of this model.
Model
setEtag(String etag)
Output only.
Model
setExpirationTime(Long expirationTime)
[Optional] The time when this model expires, in milliseconds since the epoch.
Model
setFeatureColumns(List<StandardSqlField> featureColumns)
Output only.
Model
setFriendlyName(String friendlyName)
[Optional] A descriptive name for this model.
Model
setLabelColumns(List<StandardSqlField> labelColumns)
Output only.
Model
setLabels(Map<String,String> labels)
[Optional] The labels associated with this model.
Model
setLastModifiedTime(Long lastModifiedTime)
Output only.
Model
setLocation(String location)
Output only.
Model
setModelReference(ModelReference modelReference)
Required.
Model
setModelType(String modelType)
Output only.
Model
setTrainingRuns(List<TrainingRun> trainingRuns)
Output only.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getCreationTime
public Long getCreationTime()
Output only. The time when this model was created, in millisecs since the epoch.
- Returns:
- value or
null
for none
-
setCreationTime
public Model setCreationTime(Long creationTime)
Output only. The time when this model was created, in millisecs since the epoch.
- Parameters:
creationTime
- creationTime or null
for none
-
getDescription
public String getDescription()
[Optional] A user-friendly description of this model.
- Returns:
- value or
null
for none
-
setDescription
public Model setDescription(String description)
[Optional] A user-friendly description of this model.
- Parameters:
description
- description or null
for none
-
getEtag
public String getEtag()
Output only. A hash of this resource.
- Returns:
- value or
null
for none
-
setEtag
public Model setEtag(String etag)
Output only. A hash of this resource.
- Parameters:
etag
- etag or null
for none
-
getExpirationTime
public Long getExpirationTime()
[Optional] The time when this model expires, in milliseconds since the epoch. If not present,
the model will persist indefinitely. Expired models will be deleted and their storage
reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to
set a default expirationTime on newly created models.
- Returns:
- value or
null
for none
-
setExpirationTime
public Model setExpirationTime(Long expirationTime)
[Optional] The time when this model expires, in milliseconds since the epoch. If not present,
the model will persist indefinitely. Expired models will be deleted and their storage
reclaimed. The defaultTableExpirationMs property of the encapsulating dataset can be used to
set a default expirationTime on newly created models.
- Parameters:
expirationTime
- expirationTime or null
for none
-
getFeatureColumns
public List<StandardSqlField> getFeatureColumns()
Output only. Input feature columns that were used to train this model.
- Returns:
- value or
null
for none
-
setFeatureColumns
public Model setFeatureColumns(List<StandardSqlField> featureColumns)
Output only. Input feature columns that were used to train this model.
- Parameters:
featureColumns
- featureColumns or null
for none
-
getFriendlyName
public String getFriendlyName()
[Optional] A descriptive name for this model.
- Returns:
- value or
null
for none
-
setFriendlyName
public Model setFriendlyName(String friendlyName)
[Optional] A descriptive name for this model.
- Parameters:
friendlyName
- friendlyName or null
for none
-
getLabelColumns
public List<StandardSqlField> getLabelColumns()
Output only. Label columns that were used to train this model. The output of the model will
have a "predicted_" prefix to these columns.
- Returns:
- value or
null
for none
-
setLabelColumns
public Model setLabelColumns(List<StandardSqlField> labelColumns)
Output only. Label columns that were used to train this model. The output of the model will
have a "predicted_" prefix to these columns.
- Parameters:
labelColumns
- labelColumns or null
for none
-
getLabels
public Map<String,String> getLabels()
[Optional] The labels associated with this model. You can use these to organize and group your
models. Label keys and values can be no longer than 63 characters, can only contain lowercase
letters, numeric characters, underscores and dashes. International characters are allowed.
Label values are optional. Label keys must start with a letter and each label in the list must
have a different key.
- Returns:
- value or
null
for none
-
setLabels
public Model setLabels(Map<String,String> labels)
[Optional] The labels associated with this model. You can use these to organize and group your
models. Label keys and values can be no longer than 63 characters, can only contain lowercase
letters, numeric characters, underscores and dashes. International characters are allowed.
Label values are optional. Label keys must start with a letter and each label in the list must
have a different key.
- Parameters:
labels
- labels or null
for none
-
getLastModifiedTime
public Long getLastModifiedTime()
Output only. The time when this model was last modified, in millisecs since the epoch.
- Returns:
- value or
null
for none
-
setLastModifiedTime
public Model setLastModifiedTime(Long lastModifiedTime)
Output only. The time when this model was last modified, in millisecs since the epoch.
- Parameters:
lastModifiedTime
- lastModifiedTime or null
for none
-
getLocation
public String getLocation()
Output only. The geographic location where the model resides. This value is inherited from the
dataset.
- Returns:
- value or
null
for none
-
setLocation
public Model setLocation(String location)
Output only. The geographic location where the model resides. This value is inherited from the
dataset.
- Parameters:
location
- location or null
for none
-
getModelReference
public ModelReference getModelReference()
Required. Unique identifier for this model.
- Returns:
- value or
null
for none
-
setModelReference
public Model setModelReference(ModelReference modelReference)
Required. Unique identifier for this model.
- Parameters:
modelReference
- modelReference or null
for none
-
getModelType
public String getModelType()
Output only. Type of the model resource.
- Returns:
- value or
null
for none
-
setModelType
public Model setModelType(String modelType)
Output only. Type of the model resource.
- Parameters:
modelType
- modelType or null
for none
-
getTrainingRuns
public List<TrainingRun> getTrainingRuns()
Output only. Information for all training runs in increasing order of start_time.
- Returns:
- value or
null
for none
-
setTrainingRuns
public Model setTrainingRuns(List<TrainingRun> trainingRuns)
Output only. Information for all training runs in increasing order of start_time.
- Parameters:
trainingRuns
- trainingRuns or null
for none
-
set
public Model set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Model clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2019 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy