Class: Google::Apis::BigqueryV2::InsertAllTableDataResponse::InsertError

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/bigquery_v2/classes.rb,
lib/google/apis/bigquery_v2/representations.rb,
lib/google/apis/bigquery_v2/representations.rb

Overview

Error details about a single row's insertion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InsertError

Returns a new instance of InsertError.



9893
9894
9895
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9893

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#errorsArray<Google::Apis::BigqueryV2::ErrorProto>

Error information for the row indicated by the index property. Corresponds to the JSON property errors



9886
9887
9888
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9886

def errors
  @errors
end

#indexFixnum

The index of the row that error applies to. Corresponds to the JSON property index

Returns:

  • (Fixnum)


9891
9892
9893
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9891

def index
  @index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9898
9899
9900
9901
# File 'lib/google/apis/bigquery_v2/classes.rb', line 9898

def update!(**args)
  @errors = args[:errors] if args.key?(:errors)
  @index = args[:index] if args.key?(:index)
end