class Google::Apis::CustomsearchV1::Query

Attributes

count[RW]

Corresponds to the JSON property `count` @return [Fixnum]

cr[RW]

Corresponds to the JSON property `cr` @return [String]

cref[RW]

Corresponds to the JSON property `cref` @return [String]

cx[RW]

Corresponds to the JSON property `cx` @return [String]

date_restrict[RW]

Corresponds to the JSON property `dateRestrict` @return [String]

disable_cn_tw_translation[RW]

Corresponds to the JSON property `disableCnTwTranslation` @return [String]

exact_terms[RW]

Corresponds to the JSON property `exactTerms` @return [String]

exclude_terms[RW]

Corresponds to the JSON property `excludeTerms` @return [String]

file_type[RW]

Corresponds to the JSON property `fileType` @return [String]

filter[RW]

Corresponds to the JSON property `filter` @return [String]

gl[RW]

Corresponds to the JSON property `gl` @return [String]

google_host[RW]

Corresponds to the JSON property `googleHost` @return [String]

high_range[RW]

Corresponds to the JSON property `highRange` @return [String]

hl[RW]

Corresponds to the JSON property `hl` @return [String]

hq[RW]

Corresponds to the JSON property `hq` @return [String]

img_color_type[RW]

Corresponds to the JSON property `imgColorType` @return [String]

img_dominant_color[RW]

Corresponds to the JSON property `imgDominantColor` @return [String]

img_size[RW]

Corresponds to the JSON property `imgSize` @return [String]

img_type[RW]

Corresponds to the JSON property `imgType` @return [String]

input_encoding[RW]

Corresponds to the JSON property `inputEncoding` @return [String]

language[RW]

Corresponds to the JSON property `language` @return [String]

low_range[RW]

Corresponds to the JSON property `lowRange` @return [String]

or_terms[RW]

Corresponds to the JSON property `orTerms` @return [String]

output_encoding[RW]

Corresponds to the JSON property `outputEncoding` @return [String]

rights[RW]

Corresponds to the JSON property `rights` @return [String]

safe[RW]

Corresponds to the JSON property `safe` @return [String]

search_terms[RW]

Corresponds to the JSON property `searchTerms` @return [String]

search_type[RW]

Corresponds to the JSON property `searchType` @return [String]

site_search_filter[RW]

Corresponds to the JSON property `siteSearchFilter` @return [String]

sort[RW]

Corresponds to the JSON property `sort` @return [String]

start_index[RW]

Corresponds to the JSON property `startIndex` @return [Fixnum]

start_page[RW]

Corresponds to the JSON property `startPage` @return [Fixnum]

title[RW]

Corresponds to the JSON property `title` @return [String]

total_results[RW]

Corresponds to the JSON property `totalResults` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/customsearch_v1/classes.rb, line 392
def update!(**args)
  @count = args[:count] if args.key?(:count)
  @cr = args[:cr] if args.key?(:cr)
  @cref = args[:cref] if args.key?(:cref)
  @cx = args[:cx] if args.key?(:cx)
  @date_restrict = args[:date_restrict] if args.key?(:date_restrict)
  @disable_cn_tw_translation = args[:disable_cn_tw_translation] if args.key?(:disable_cn_tw_translation)
  @exact_terms = args[:exact_terms] if args.key?(:exact_terms)
  @exclude_terms = args[:exclude_terms] if args.key?(:exclude_terms)
  @file_type = args[:file_type] if args.key?(:file_type)
  @filter = args[:filter] if args.key?(:filter)
  @gl = args[:gl] if args.key?(:gl)
  @google_host = args[:google_host] if args.key?(:google_host)
  @high_range = args[:high_range] if args.key?(:high_range)
  @hl = args[:hl] if args.key?(:hl)
  @hq = args[:hq] if args.key?(:hq)
  @img_color_type = args[:img_color_type] if args.key?(:img_color_type)
  @img_dominant_color = args[:img_dominant_color] if args.key?(:img_dominant_color)
  @img_size = args[:img_size] if args.key?(:img_size)
  @img_type = args[:img_type] if args.key?(:img_type)
  @input_encoding = args[:input_encoding] if args.key?(:input_encoding)
  @language = args[:language] if args.key?(:language)
  @link_site = args[:link_site] if args.key?(:link_site)
  @low_range = args[:low_range] if args.key?(:low_range)
  @or_terms = args[:or_terms] if args.key?(:or_terms)
  @output_encoding = args[:output_encoding] if args.key?(:output_encoding)
  @related_site = args[:related_site] if args.key?(:related_site)
  @rights = args[:rights] if args.key?(:rights)
  @safe = args[:safe] if args.key?(:safe)
  @search_terms = args[:search_terms] if args.key?(:search_terms)
  @search_type = args[:search_type] if args.key?(:search_type)
  @site_search = args[:site_search] if args.key?(:site_search)
  @site_search_filter = args[:site_search_filter] if args.key?(:site_search_filter)
  @sort = args[:sort] if args.key?(:sort)
  @start_index = args[:start_index] if args.key?(:start_index)
  @start_page = args[:start_page] if args.key?(:start_page)
  @title = args[:title] if args.key?(:title)
  @total_results = args[:total_results] if args.key?(:total_results)
end