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

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

Overview

Error message per source response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ErrorMessage

Returns a new instance of ErrorMessage.



1427
1428
1429
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1427

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

Instance Attribute Details

#error_messageString

Corresponds to the JSON property errorMessage

Returns:

  • (String)


1420
1421
1422
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1420

def error_message
  @error_message
end

#sourceGoogle::Apis::CloudsearchV1::Source

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



1425
1426
1427
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1425

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1432
1433
1434
1435
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1432

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