Class: Google::Apis::BigqueryV2::ErrorProto

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ErrorProto

Returns a new instance of ErrorProto.



2566
2567
2568
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2566

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

Instance Attribute Details

#debug_infoString

Debugging information. This property is internal to Google and should not be used. Corresponds to the JSON property debugInfo

Returns:

  • (String)


2549
2550
2551
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2549

def debug_info
  @debug_info
end

#locationString

Specifies where the error occurred, if present. Corresponds to the JSON property location

Returns:

  • (String)


2554
2555
2556
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2554

def location
  @location
end

#messageString

A human-readable description of the error. Corresponds to the JSON property message

Returns:

  • (String)


2559
2560
2561
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2559

def message
  @message
end

#reasonString

A short error code that summarizes the error. Corresponds to the JSON property reason

Returns:

  • (String)


2564
2565
2566
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2564

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2571
2572
2573
2574
2575
2576
# File 'lib/google/apis/bigquery_v2/classes.rb', line 2571

def update!(**args)
  @debug_info = args[:debug_info] if args.key?(:debug_info)
  @location = args[:location] if args.key?(:location)
  @message = args[:message] if args.key?(:message)
  @reason = args[:reason] if args.key?(:reason)
end