Class BigQueryInsertRowErrors (2.3.0)

public sealed class BigQueryInsertRowErrors : IEnumerable<SingleError>, IEnumerable

Represents insert errors related to one row.

Inheritance

Object > BigQueryInsertRowErrors

Namespace

Google.Cloud.BigQuery.V2

Assembly

Google.Cloud.BigQuery.V2.dll

Constructors

BigQueryInsertRowErrors(BigQueryInsertRow, IReadOnlyList<TableDataInsertAllResponse.InsertErrorsData>)

public BigQueryInsertRowErrors(BigQueryInsertRow originalRow, IReadOnlyList<TableDataInsertAllResponse.InsertErrorsData> errors)

Constructs a new set of insert errors related to one insert row.

Parameters
Name Description
originalRow BigQueryInsertRow

The original row to which these errors are related to if known. May be null.

errors IReadOnlyList<TableDataInsertAllResponse.InsertErrorsData>

The errors information.

Properties

OriginalRow

public BigQueryInsertRow OriginalRow { get; }

The original row to which these errors are related to.

Property Value
Type Description
BigQueryInsertRow
Remarks

Some errors obtained after an insert request might not contain enough information so as to associate them with one row. In such cases this may be null.

OriginalRowIndex

public long? OriginalRowIndex { get; }

The index of the row these errors relate to in the original inser request. Might be unknown.

Property Value
Type Description
Nullable<Int64>

Methods

GetEnumerator()

public IEnumerator<SingleError> GetEnumerator()

Returns an interator over the insert errors.

Returns
Type Description
IEnumerator<SingleError>

An iterator over the insert errors.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

IEnumerator IEnumerable.GetEnumerator()

Returns an iterator over the insert errors.

Returns
Type Description
IEnumerator

An iterator over the insert errors.