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



734
735
736
# File 'generated/google/apis/jobs_v2/classes.rb', line 734

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)


722
723
724
# File 'generated/google/apis/jobs_v2/classes.rb', line 722

def image_url
  @image_url
end

#suggestionString

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

Returns:

  • (String)


727
728
729
# File 'generated/google/apis/jobs_v2/classes.rb', line 727

def suggestion
  @suggestion
end

#typeString

The completion topic. Corresponds to the JSON property type

Returns:

  • (String)


732
733
734
# File 'generated/google/apis/jobs_v2/classes.rb', line 732

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



739
740
741
742
743
# File 'generated/google/apis/jobs_v2/classes.rb', line 739

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