target.apidocs.com.google.api.services.bigquery.model.ViewDefinition.html Maven / Gradle / Ivy
ViewDefinition (BigQuery API v2-rev20201022-1.30.10)
com.google.api.services.bigquery.model
Class ViewDefinition
- 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.ViewDefinition
-
public final class ViewDefinition
extends GenericJson
Model definition for ViewDefinition.
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
ViewDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ViewDefinition
clone()
String
getQuery()
[Required] A query that BigQuery executes when the view is referenced.
Boolean
getUseLegacySql()
Specifies whether to use BigQuery's legacy SQL for this view.
List<UserDefinedFunctionResource>
getUserDefinedFunctionResources()
Describes user-defined function resources used in the query.
ViewDefinition
set(String fieldName,
Object value)
ViewDefinition
setQuery(String query)
[Required] A query that BigQuery executes when the view is referenced.
ViewDefinition
setUseLegacySql(Boolean useLegacySql)
Specifies whether to use BigQuery's legacy SQL for this view.
ViewDefinition
setUserDefinedFunctionResources(List<UserDefinedFunctionResource> userDefinedFunctionResources)
Describes user-defined function resources used in the query.
-
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
-
getQuery
public String getQuery()
[Required] A query that BigQuery executes when the view is referenced.
- Returns:
- value or
null
for none
-
setQuery
public ViewDefinition setQuery(String query)
[Required] A query that BigQuery executes when the view is referenced.
- Parameters:
query
- query or null
for none
-
getUseLegacySql
public Boolean getUseLegacySql()
Specifies whether to use BigQuery's legacy SQL for this view. The default value is true. If set
to false, the view will use BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-
reference/ Queries and views that reference this view must use the same flag value.
- Returns:
- value or
null
for none
-
setUseLegacySql
public ViewDefinition setUseLegacySql(Boolean useLegacySql)
Specifies whether to use BigQuery's legacy SQL for this view. The default value is true. If set
to false, the view will use BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-
reference/ Queries and views that reference this view must use the same flag value.
- Parameters:
useLegacySql
- useLegacySql or null
for none
-
getUserDefinedFunctionResources
public List<UserDefinedFunctionResource> getUserDefinedFunctionResources()
Describes user-defined function resources used in the query.
- Returns:
- value or
null
for none
-
setUserDefinedFunctionResources
public ViewDefinition setUserDefinedFunctionResources(List<UserDefinedFunctionResource> userDefinedFunctionResources)
Describes user-defined function resources used in the query.
- Parameters:
userDefinedFunctionResources
- userDefinedFunctionResources or null
for none
-
set
public ViewDefinition set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public ViewDefinition clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy