Class: Google::Apis::JobsV2::CompletionResult

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

Overview

Output only. Resource that represents completion results.

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) ⇒ CompletionResult

Returns a new instance of CompletionResult.



708
709
710
# File 'generated/google/apis/jobs_v2/classes.rb', line 708

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

Instance Attribute Details

#image_urlString

The URL for the company logo if type=COMPANY_NAME. Corresponds to the JSON property imageUrl

Returns:

  • (String)


696
697
698
# File 'generated/google/apis/jobs_v2/classes.rb', line 696

def image_url
  @image_url
end

#suggestionString

The suggestion for the query. Corresponds to the JSON property suggestion

Returns:

  • (String)


701
702
703
# File 'generated/google/apis/jobs_v2/classes.rb', line 701

def suggestion
  @suggestion
end

#typeString

The completion topic. Corresponds to the JSON property type

Returns:

  • (String)


706
707
708
# File 'generated/google/apis/jobs_v2/classes.rb', line 706

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



713
714
715
716
717
# File 'generated/google/apis/jobs_v2/classes.rb', line 713

def update!(**args)
  @image_url = args[:image_url] if args.key?(:image_url)
  @suggestion = args[:suggestion] if args.key?(:suggestion)
  @type = args[:type] if args.key?(:type)
end