BigQuery Data Transfer V1 Client - Class FieldSchema (1.3.8)

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

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}

Generated from protobuf field string field_name = 1;

Returns
TypeDescription
string

setFieldName

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

Generated from protobuf field string field_name = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

Field type

Generated from protobuf field .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type type = 2;

Returns
TypeDescription
int

setType

Field type

Generated from protobuf field .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.FieldSchema.Type type = 2;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getIsRepeated

Is field repeated.

Generated from protobuf field bool is_repeated = 3;

Returns
TypeDescription
bool

setIsRepeated

Is field repeated.

Generated from protobuf field bool is_repeated = 3;

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getDescription

Description for this field.

Generated from protobuf field string description = 4;

Returns
TypeDescription
string

setDescription

Description for this field.

Generated from protobuf field string description = 4;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSchema

Present iff type == RECORD.

Generated from protobuf field .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;

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

setSchema

Present iff type == RECORD.

Generated from protobuf field .google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.RecordSchema schema = 5;

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