Google Cloud Data Catalog V1 Client - Class RoutineSpec (2.0.1)

Reference documentation and code samples for the Google Cloud Data Catalog V1 Client class RoutineSpec.

Specification that applies to a routine. Valid only for entries with the ROUTINE type.

Generated from protobuf message google.cloud.datacatalog.v1.RoutineSpec

Namespace

Google \ Cloud \ DataCatalog \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ routine_type int

The type of the routine.

↳ language string

The language the routine is written in. The exact value depends on the source system. For BigQuery routines, possible values are: * SQL * JAVASCRIPT

↳ routine_arguments array<Google\Cloud\DataCatalog\V1\RoutineSpec\Argument>

Arguments of the routine.

↳ return_type string

Return type of the argument. The exact value depends on the source system and the language.

↳ definition_body string

The body of the routine.

↳ bigquery_routine_spec Google\Cloud\DataCatalog\V1\BigQueryRoutineSpec

Fields specific for BigQuery routines.

getRoutineType

The type of the routine.

Returns
Type Description
int

setRoutineType

The type of the routine.

Parameter
Name Description
var int
Returns
Type Description
$this

getLanguage

The language the routine is written in. The exact value depends on the source system. For BigQuery routines, possible values are:

  • SQL
  • JAVASCRIPT
Returns
Type Description
string

setLanguage

The language the routine is written in. The exact value depends on the source system. For BigQuery routines, possible values are:

  • SQL
  • JAVASCRIPT
Parameter
Name Description
var string
Returns
Type Description
$this

getRoutineArguments

Arguments of the routine.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setRoutineArguments

Arguments of the routine.

Parameter
Name Description
var array<Google\Cloud\DataCatalog\V1\RoutineSpec\Argument>
Returns
Type Description
$this

getReturnType

Return type of the argument. The exact value depends on the source system and the language.

Returns
Type Description
string

setReturnType

Return type of the argument. The exact value depends on the source system and the language.

Parameter
Name Description
var string
Returns
Type Description
$this

getDefinitionBody

The body of the routine.

Returns
Type Description
string

setDefinitionBody

The body of the routine.

Parameter
Name Description
var string
Returns
Type Description
$this

getBigqueryRoutineSpec

Fields specific for BigQuery routines.

Returns
Type Description
Google\Cloud\DataCatalog\V1\BigQueryRoutineSpec|null

hasBigqueryRoutineSpec

setBigqueryRoutineSpec

Fields specific for BigQuery routines.

Parameter
Name Description
var Google\Cloud\DataCatalog\V1\BigQueryRoutineSpec
Returns
Type Description
$this

getSystemSpec

Returns
Type Description
string