BigQuery Data Transfer V1 Client - Class CsvOptions (1.4.5)

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

CSV specific options.

Generated from protobuf message google.cloud.bigquery.datatransfer.v1.ImportedDataInfo.TableDefinition.CsvOptions

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ field_delimiter Google\Protobuf\StringValue

The delimiter. We currently restrict this to U+0001 to U+00FF and apply additional constraints during validation.

↳ allow_quoted_newlines Google\Protobuf\BoolValue

Whether CSV files are allowed to have quoted newlines. If quoted newlines are allowed, we can't split CSV files.

↳ quote_char Google\Protobuf\StringValue

The quote character. We currently restrict this to U+0000 to U+00FF and apply additional constraints during validation. Set to '\0' to indicate no quote is used.

↳ skip_leading_rows Google\Protobuf\Int64Value

Number of leading rows to skip.

↳ allow_jagged_rows Google\Protobuf\BoolValue

Accept rows that are missing trailing optional columns.

getFieldDelimiter

The delimiter. We currently restrict this to U+0001 to U+00FF and apply additional constraints during validation.

Returns
TypeDescription
Google\Protobuf\StringValue

getFieldDelimiterValue

Returns the unboxed value from getFieldDelimiter()

The delimiter. We currently restrict this to U+0001 to U+00FF and apply additional constraints during validation.

Returns
TypeDescription
string|null

setFieldDelimiter

The delimiter. We currently restrict this to U+0001 to U+00FF and apply additional constraints during validation.

Parameter
NameDescription
var Google\Protobuf\StringValue
Returns
TypeDescription
$this

setFieldDelimiterValue

Sets the field by wrapping a primitive type in a Google\Protobuf\StringValue object.

The delimiter. We currently restrict this to U+0001 to U+00FF and apply additional constraints during validation.

Parameter
NameDescription
var string|null
Returns
TypeDescription
$this

getAllowQuotedNewlines

Whether CSV files are allowed to have quoted newlines. If quoted newlines are allowed, we can't split CSV files.

Returns
TypeDescription
Google\Protobuf\BoolValue

getAllowQuotedNewlinesValue

Returns the unboxed value from getAllowQuotedNewlines()

Whether CSV files are allowed to have quoted newlines. If quoted newlines are allowed, we can't split CSV files.

Returns
TypeDescription
bool|null

setAllowQuotedNewlines

Whether CSV files are allowed to have quoted newlines. If quoted newlines are allowed, we can't split CSV files.

Parameter
NameDescription
var Google\Protobuf\BoolValue
Returns
TypeDescription
$this

setAllowQuotedNewlinesValue

Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.

Whether CSV files are allowed to have quoted newlines. If quoted newlines are allowed, we can't split CSV files.

Parameter
NameDescription
var bool|null
Returns
TypeDescription
$this

getQuoteChar

The quote character. We currently restrict this to U+0000 to U+00FF and apply additional constraints during validation. Set to '\0' to indicate no quote is used.

Returns
TypeDescription
Google\Protobuf\StringValue

getQuoteCharValue

Returns the unboxed value from getQuoteChar()

The quote character. We currently restrict this to U+0000 to U+00FF and apply additional constraints during validation. Set to '\0' to indicate no quote is used.

Returns
TypeDescription
string|null

setQuoteChar

The quote character. We currently restrict this to U+0000 to U+00FF and apply additional constraints during validation. Set to '\0' to indicate no quote is used.

Parameter
NameDescription
var Google\Protobuf\StringValue
Returns
TypeDescription
$this

setQuoteCharValue

Sets the field by wrapping a primitive type in a Google\Protobuf\StringValue object.

The quote character. We currently restrict this to U+0000 to U+00FF and apply additional constraints during validation. Set to '\0' to indicate no quote is used.

Parameter
NameDescription
var string|null
Returns
TypeDescription
$this

getSkipLeadingRows

Number of leading rows to skip.

Returns
TypeDescription
Google\Protobuf\Int64Value

getSkipLeadingRowsValue

Returns the unboxed value from getSkipLeadingRows()

Number of leading rows to skip.

Returns
TypeDescription
int|string|null

setSkipLeadingRows

Number of leading rows to skip.

Parameter
NameDescription
var Google\Protobuf\Int64Value
Returns
TypeDescription
$this

setSkipLeadingRowsValue

Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object.

Number of leading rows to skip.

Parameter
NameDescription
var int|string|null
Returns
TypeDescription
$this

getAllowJaggedRows

Accept rows that are missing trailing optional columns.

Returns
TypeDescription
Google\Protobuf\BoolValue

getAllowJaggedRowsValue

Returns the unboxed value from getAllowJaggedRows()

Accept rows that are missing trailing optional columns.

Returns
TypeDescription
bool|null

setAllowJaggedRows

Accept rows that are missing trailing optional columns.

Parameter
NameDescription
var Google\Protobuf\BoolValue
Returns
TypeDescription
$this

setAllowJaggedRowsValue

Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.

Accept rows that are missing trailing optional columns.

Parameter
NameDescription
var bool|null
Returns
TypeDescription
$this