Class: Google::Apis::CloudsearchV1::ErrorMessage

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

Overview

Error message per source response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ErrorMessage

Returns a new instance of ErrorMessage



850
851
852
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 850

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

Instance Attribute Details

#error_messageString

Corresponds to the JSON property errorMessage

Returns:

  • (String)


843
844
845
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 843

def error_message
  @error_message
end

#sourceGoogle::Apis::CloudsearchV1::Source

Defines sources for the suggest/search APIs. Corresponds to the JSON property source



848
849
850
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 848

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



855
856
857
858
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 855

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