Class RoutineArgument.Builder (2.41.0)

publicabstractstaticclass RoutineArgument.Builder

Inheritance

java.lang.Object > RoutineArgument.Builder

Constructors

Builder()

publicBuilder()

Methods

build()

publicabstractRoutineArgumentbuild()

Creates a RoutineArgument object.

Returns
Type Description
RoutineArgument

setDataType(StandardSQLDataType dataType)

publicabstractRoutineArgument.BuildersetDataType(StandardSQLDataTypedataType)

Sets the data type specification for the argument. It is required except for ANY_TYPE argument kinds.

Parameter
Name Description
dataType StandardSQLDataType
Returns
Type Description
RoutineArgument.Builder

setKind(String kind)

publicabstractRoutineArgument.BuildersetKind(Stringkind)

Sets the kind of argument.

A FIXED_TYPE argument is a fully specified type. It can be a struct or an array, but not a table.

An ANY_TYPE argument is any type. It can be a struct or an array, but not a table.

Parameter
Name Description
kind String
Returns
Type Description
RoutineArgument.Builder

setMode(String mode)

publicabstractRoutineArgument.BuildersetMode(Stringmode)

Optionally specifies the input/output mode of the argument.

An IN mode argument is input-only. An OUT mode argument is output-only. An INOUT mode argument is both an input and output.

Parameter
Name Description
mode String
Returns
Type Description
RoutineArgument.Builder

setName(String name)

publicabstractRoutineArgument.BuildersetName(Stringname)

Sets the argument name.

Parameter
Name Description
name String
Returns
Type Description
RoutineArgument.Builder

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.