Common Protos for Google Cloud APIs Client - Class TableDataChange (0.4.2)

Reference documentation and code samples for the Common Protos for Google Cloud APIs Client class TableDataChange.

Table data change event.

Generated from protobuf message google.cloud.audit.BigQueryAuditMetadata.TableDataChange

Namespace

Google \ Cloud \ Audit \ BigQueryAuditMetadata

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ deleted_rows_count int|string

Number of deleted rows.

↳ inserted_rows_count int|string

Number of inserted rows.

↳ truncated bool

True if the table was truncated.

↳ reason int

Describes how the table data was changed.

↳ job_name string

The URI of the job that changed a table. Format: projects/<project_id>/jobs/<job_id>.

↳ stream_name string

If written from WRITE_API, the name of the stream. Format: projects/<project_id>/datasets/<dataset_id>/tables/<table_id>/streams/<stream_id>

getDeletedRowsCount

Number of deleted rows.

Returns
TypeDescription
int|string

setDeletedRowsCount

Number of deleted rows.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getInsertedRowsCount

Number of inserted rows.

Returns
TypeDescription
int|string

setInsertedRowsCount

Number of inserted rows.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getTruncated

True if the table was truncated.

Returns
TypeDescription
bool

setTruncated

True if the table was truncated.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getReason

Describes how the table data was changed.

Returns
TypeDescription
int

setReason

Describes how the table data was changed.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getJobName

The URI of the job that changed a table.

Format: projects/<project_id>/jobs/<job_id>.

Returns
TypeDescription
string

setJobName

The URI of the job that changed a table.

Format: projects/<project_id>/jobs/<job_id>.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getStreamName

If written from WRITE_API, the name of the stream.

Format: projects/<project_id>/datasets/<dataset_id>/tables/<table_id>/streams/<stream_id>

Returns
TypeDescription
string

setStreamName

If written from WRITE_API, the name of the stream.

Format: projects/<project_id>/datasets/<dataset_id>/tables/<table_id>/streams/<stream_id>

Parameter
NameDescription
var string
Returns
TypeDescription
$this