class Google::Apis::KgsearchV1::SearchResponse

Response message includes the context and a list of matching results which contain the detail of associated entities.

Attributes

context[RW]

The local context applicable for the response. See more details at www. w3.org/TR/json-ld/#context-definitions. Corresponds to the JSON property `context` @return [Object]

item_list_element[RW]

The item list of search results. Corresponds to the JSON property `itemListElement` @return [Array<Object>]

type[RW]

The schema type of top-level JSON-LD object, e.g. ItemList. Corresponds to the JSON property `type` @return [Object]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/kgsearch_v1/classes.rb, line 46
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/kgsearch_v1/classes.rb, line 51
def update!(**args)
  @context = args[:context] if args.key?(:context)
  @type = args[:type] if args.key?(:type)
  @item_list_element = args[:item_list_element] if args.key?(:item_list_element)
end