Google Cloud Data Catalog V1 Client - Class RoutineSpec (1.5.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
NameDescription
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
TypeDescription
int

setRoutineType

The type of the routine.

Parameter
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getRoutineArguments

Arguments of the routine.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setRoutineArguments

Arguments of the routine.

Parameter
NameDescription
var array<Google\Cloud\DataCatalog\V1\RoutineSpec\Argument>
Returns
TypeDescription
$this

getReturnType

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

Returns
TypeDescription
string

setReturnType

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDefinitionBody

The body of the routine.

Returns
TypeDescription
string

setDefinitionBody

The body of the routine.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBigqueryRoutineSpec

Fields specific for BigQuery routines.

Returns
TypeDescription
Google\Cloud\DataCatalog\V1\BigQueryRoutineSpec|null

hasBigqueryRoutineSpec

setBigqueryRoutineSpec

Fields specific for BigQuery routines.

Parameter
NameDescription
var Google\Cloud\DataCatalog\V1\BigQueryRoutineSpec
Returns
TypeDescription
$this

getSystemSpec

Returns
TypeDescription
string