BigQuery Data Transfer V1 Client - Class FieldSchema (1.7.0)

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
NameDescription
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
TypeDescription
string

setFieldName

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

Field type

Returns
TypeDescription
int

setType

Field type

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getIsRepeated

Is field repeated.

Returns
TypeDescription
bool

setIsRepeated

Is field repeated.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getDescription

Description for this field.

Returns
TypeDescription
string

setDescription

Description for this field.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSchema

Present iff type == RECORD.

Returns
TypeDescription
Google\Cloud\BigQuery\DataTransfer\V1\ImportedDataInfo\RecordSchema

setSchema

Present iff type == RECORD.

Parameter
NameDescription
var Google\Cloud\BigQuery\DataTransfer\V1\ImportedDataInfo\RecordSchema
Returns
TypeDescription
$this