
target.apidocs.com.google.api.services.bigquery.model.UserDefinedFunctionResource.html Maven / Gradle / Ivy
UserDefinedFunctionResource (BigQuery API v2-rev20210219-1.31.0)
com.google.api.services.bigquery.model
Class UserDefinedFunctionResource
- 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.UserDefinedFunctionResource
-
public final class UserDefinedFunctionResource
extends GenericJson
This is used for defining User Defined Function (UDF) resources only when using legacy SQL. Users
of Standard SQL should leverage either DDL (e.g. CREATE [TEMPORARY] FUNCTION ... ) or the
Routines API to define UDF resources. For additional information on migrating, see:
https://cloud.google.com/bigquery/docs/reference/standard-sql/migrating-from-legacy-sql
#differences_in_user-defined_javascript_functions
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
UserDefinedFunctionResource()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
UserDefinedFunctionResource
clone()
String
getInlineCode()
[Pick one] An inline resource that contains code for a user-defined function (UDF).
String
getResourceUri()
[Pick one] A code resource to load from a Google Cloud Storage URI (gs://bucket/path).
UserDefinedFunctionResource
set(String fieldName,
Object value)
UserDefinedFunctionResource
setInlineCode(String inlineCode)
[Pick one] An inline resource that contains code for a user-defined function (UDF).
UserDefinedFunctionResource
setResourceUri(String resourceUri)
[Pick one] A code resource to load from a Google Cloud Storage URI (gs://bucket/path).
-
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
-
getInlineCode
public String getInlineCode()
[Pick one] An inline resource that contains code for a user-defined function (UDF). Providing a
inline code resource is equivalent to providing a URI for a file containing the same code.
- Returns:
- value or
null
for none
-
setInlineCode
public UserDefinedFunctionResource setInlineCode(String inlineCode)
[Pick one] An inline resource that contains code for a user-defined function (UDF). Providing a
inline code resource is equivalent to providing a URI for a file containing the same code.
- Parameters:
inlineCode
- inlineCode or null
for none
-
getResourceUri
public String getResourceUri()
[Pick one] A code resource to load from a Google Cloud Storage URI (gs://bucket/path).
- Returns:
- value or
null
for none
-
setResourceUri
public UserDefinedFunctionResource setResourceUri(String resourceUri)
[Pick one] A code resource to load from a Google Cloud Storage URI (gs://bucket/path).
- Parameters:
resourceUri
- resourceUri or null
for none
-
set
public UserDefinedFunctionResource set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public UserDefinedFunctionResource clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy