Google Cloud Advisory Notifications V1 Client - Class Csv (0.2.1)

Reference documentation and code samples for the Google Cloud Advisory Notifications V1 Client class Csv.

A representation of a CSV file attachment, as a list of column headers and a list of data rows.

Generated from protobuf message google.cloud.advisorynotifications.v1.Csv

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ headers array

The list of headers for data columns in a CSV file.

↳ data_rows array<Google\Cloud\AdvisoryNotifications\V1\Csv\CsvRow>

The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.

getHeaders

The list of headers for data columns in a CSV file.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setHeaders

The list of headers for data columns in a CSV file.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getDataRows

The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDataRows

The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.

Parameter
NameDescription
var array<Google\Cloud\AdvisoryNotifications\V1\Csv\CsvRow>
Returns
TypeDescription
$this