BigQuery Data Transfer V1 Client - Class FieldSchema (1.8.6)

Reference documentation and code samples for the BigQuery Data Transfer V1 Client class FieldSchema.

Defines schema of a field in the imported data.

Generated from protobuf message google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema

Namespace

Google \ Cloud \ BigQuery \ DataTransfer \ V1 \ ImportedDataInfo

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ field_name string

Field name. Matches: [A-Za-z_][A-Za-z_0-9]{0,127}

↳ type int

Field type

↳ is_repeated bool

Is field repeated.

↳ description string

Description for this field.

↳ schema Google\Cloud\BigQuery\DataTransfer\V1\ImportedDataInfo\RecordSchema

Present iff type == RECORD.

getFieldName

Field name. Matches: [A-Za-z_][A-Za-z_0-9]{0,127}

Returns
Type Description
string

setFieldName

Field name. Matches: [A-Za-z_][A-Za-z_0-9]{0,127}

Parameter
Name Description
var string
Returns
Type Description
$this

getType

Field type

Returns
Type Description
int

setType

Field type

Parameter
Name Description
var int
Returns
Type Description
$this

getIsRepeated

Is field repeated.

Returns
Type Description
bool

setIsRepeated

Is field repeated.

Parameter
Name Description
var bool
Returns
Type Description
$this

getDescription

Description for this field.

Returns
Type Description
string

setDescription

Description for this field.

Parameter
Name Description
var string
Returns
Type Description
$this

getSchema

Present iff type == RECORD.

Returns
Type Description
Google\Cloud\BigQuery\DataTransfer\V1\ImportedDataInfo\RecordSchema

setSchema

Present iff type == RECORD.

Parameter
Name Description
var Google\Cloud\BigQuery\DataTransfer\V1\ImportedDataInfo\RecordSchema
Returns
Type Description
$this