target.apidocs.com.google.api.services.bigquery.model.ConnectionProperty.html Maven / Gradle / Ivy
ConnectionProperty (BigQuery API v2-rev20240727-2.0.0)
com.google.api.services.bigquery.model
Class ConnectionProperty
- 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.ConnectionProperty
-
public final class ConnectionProperty
extends com.google.api.client.json.GenericJson
A connection-level property to customize query behavior. Under JDBC, these correspond directly to
connection properties passed to the DriverManager. Under ODBC, these correspond to properties in
the connection string. Currently supported connection properties: * **dataset_project_id**:
represents the default project for datasets that are used in the query. Setting the system
variable `@@dataset_project_id` achieves the same behavior. For more information about system
variables, see: https://cloud.google.com/bigquery/docs/reference/system-variables *
**time_zone**: represents the default timezone used to run the query. * **session_id**:
associates the query with a given session. * **query_label**: associates the query with a given
job label. If set, all subsequent queries in a script or session will have this label. For the
format in which a you can specify a query label, see labels in the JobConfiguration resource
type: https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#jobconfiguration *
**service_account**: indicates the service account to use to run a continuous query. If set, the
query job uses the service account to access Google Cloud resources. Service account access is
bounded by the IAM permissions that you have granted to the service account. Additional
properties are allowed, but ignored. Specifying multiple connection properties with the same key
returns an error.
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
com.google.api.client.util.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
ConnectionProperty()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ConnectionProperty
clone()
String
getKey()
The key of the property to set.
String
getValue()
The value of the property to set.
ConnectionProperty
set(String fieldName,
Object value)
ConnectionProperty
setKey(String key)
The key of the property to set.
ConnectionProperty
setValue(String value)
The value of the property to set.
-
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
-
getKey
public String getKey()
The key of the property to set.
- Returns:
- value or
null
for none
-
setKey
public ConnectionProperty setKey(String key)
The key of the property to set.
- Parameters:
key
- key or null
for none
-
getValue
public String getValue()
The value of the property to set.
- Returns:
- value or
null
for none
-
setValue
public ConnectionProperty setValue(String value)
The value of the property to set.
- Parameters:
value
- value or null
for none
-
set
public ConnectionProperty set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public ConnectionProperty clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy