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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ErrorProto

Returns a new instance of ErrorProto.



587
588
589
# File 'generated/google/apis/bigquery_v2/classes.rb', line 587

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)


570
571
572
# File 'generated/google/apis/bigquery_v2/classes.rb', line 570

def debug_info
  @debug_info
end

#locationString

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

Returns:

  • (String)


575
576
577
# File 'generated/google/apis/bigquery_v2/classes.rb', line 575

def location
  @location
end

#messageString

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

Returns:

  • (String)


580
581
582
# File 'generated/google/apis/bigquery_v2/classes.rb', line 580

def message
  @message
end

#reasonString

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

Returns:

  • (String)


585
586
587
# File 'generated/google/apis/bigquery_v2/classes.rb', line 585

def reason
  @reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



592
593
594
595
596
597
# File 'generated/google/apis/bigquery_v2/classes.rb', line 592

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