target.apidocs.com.google.api.services.bigquery.model.Argument.html Maven / Gradle / Ivy
Argument (BigQuery API v2-rev20240727-2.0.0)
com.google.api.services.bigquery.model
Class Argument
- 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.Argument
-
public final class Argument
extends com.google.api.client.json.GenericJson
Input/output argument of a function or a stored procedure.
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
Argument()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Argument
clone()
String
getArgumentKind()
Optional.
StandardSqlDataType
getDataType()
Required unless argument_kind = ANY_TYPE.
Boolean
getIsAggregate()
Optional.
String
getMode()
Optional.
String
getName()
Optional.
Argument
set(String fieldName,
Object value)
Argument
setArgumentKind(String argumentKind)
Optional.
Argument
setDataType(StandardSqlDataType dataType)
Required unless argument_kind = ANY_TYPE.
Argument
setIsAggregate(Boolean isAggregate)
Optional.
Argument
setMode(String mode)
Optional.
Argument
setName(String name)
Optional.
-
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
-
getArgumentKind
public String getArgumentKind()
Optional. Defaults to FIXED_TYPE.
- Returns:
- value or
null
for none
-
setArgumentKind
public Argument setArgumentKind(String argumentKind)
Optional. Defaults to FIXED_TYPE.
- Parameters:
argumentKind
- argumentKind or null
for none
-
getDataType
public StandardSqlDataType getDataType()
Required unless argument_kind = ANY_TYPE.
- Returns:
- value or
null
for none
-
setDataType
public Argument setDataType(StandardSqlDataType dataType)
Required unless argument_kind = ANY_TYPE.
- Parameters:
dataType
- dataType or null
for none
-
getIsAggregate
public Boolean getIsAggregate()
Optional. Whether the argument is an aggregate function parameter. Must be Unset for routine
types other than AGGREGATE_FUNCTION. For AGGREGATE_FUNCTION, if set to false, it is equivalent
to adding "NOT AGGREGATE" clause in DDL; Otherwise, it is equivalent to omitting "NOT
AGGREGATE" clause in DDL.
- Returns:
- value or
null
for none
-
setIsAggregate
public Argument setIsAggregate(Boolean isAggregate)
Optional. Whether the argument is an aggregate function parameter. Must be Unset for routine
types other than AGGREGATE_FUNCTION. For AGGREGATE_FUNCTION, if set to false, it is equivalent
to adding "NOT AGGREGATE" clause in DDL; Otherwise, it is equivalent to omitting "NOT
AGGREGATE" clause in DDL.
- Parameters:
isAggregate
- isAggregate or null
for none
-
getMode
public String getMode()
Optional. Specifies whether the argument is input or output. Can be set for procedures only.
- Returns:
- value or
null
for none
-
setMode
public Argument setMode(String mode)
Optional. Specifies whether the argument is input or output. Can be set for procedures only.
- Parameters:
mode
- mode or null
for none
-
getName
public String getName()
Optional. The name of this argument. Can be absent for function return argument.
- Returns:
- value or
null
for none
-
setName
public Argument setName(String name)
Optional. The name of this argument. Can be absent for function return argument.
- Parameters:
name
- name or null
for none
-
set
public Argument set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public Argument clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.