Class BigQueryInsertRowErrors (2.4.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
NameDescription
originalRowBigQueryInsertRow

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

errorsIReadOnlyList<TableDataInsertAllResponse.InsertErrorsData>

The errors information.

Properties

OriginalRow

public BigQueryInsertRow OriginalRow { get; }

The original row to which these errors are related to.

Property Value
TypeDescription
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
TypeDescription
Nullable<Int64>

Methods

GetEnumerator()

public IEnumerator<SingleError> GetEnumerator()

Returns an interator over the insert errors.

Returns
TypeDescription
IEnumerator<SingleError>

An iterator over the insert errors.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

IEnumerator IEnumerable.GetEnumerator()

Returns an iterator over the insert errors.

Returns
TypeDescription
IEnumerator

An iterator over the insert errors.