Class: Google::Apis::CustomsearchV1::Query
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CustomsearchV1::Query
 
- Defined in:
- generated/google/apis/customsearch_v1/classes.rb,
 generated/google/apis/customsearch_v1/representations.rb,
 generated/google/apis/customsearch_v1/representations.rb
Instance Attribute Summary collapse
- 
  
    
      #count  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property count.
- 
  
    
      #cr  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property cr.
- 
  
    
      #cx  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property cx.
- 
  
    
      #date_restrict  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property dateRestrict.
- 
  
    
      #disable_cn_tw_translation  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property disableCnTwTranslation.
- 
  
    
      #exact_terms  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property exactTerms.
- 
  
    
      #exclude_terms  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property excludeTerms.
- 
  
    
      #file_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property fileType.
- 
  
    
      #filter  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property filter.
- 
  
    
      #gl  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property gl.
- 
  
    
      #google_host  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property googleHost.
- 
  
    
      #high_range  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property highRange.
- 
  
    
      #hl  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property hl.
- 
  
    
      #hq  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property hq.
- 
  
    
      #img_color_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property imgColorType.
- 
  
    
      #img_dominant_color  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property imgDominantColor.
- 
  
    
      #img_size  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property imgSize.
- 
  
    
      #img_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property imgType.
- 
  
    
      #input_encoding  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property inputEncoding.
- 
  
    
      #language  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property language.
- 
  
    
      #link_site  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property linkSite.
- 
  
    
      #low_range  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property lowRange.
- 
  
    
      #or_terms  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property orTerms.
- 
  
    
      #output_encoding  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property outputEncoding.
- 
  
    
      #related_site  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property relatedSite.
- 
  
    
      #rights  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property rights.
- 
  
    
      #safe  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property safe.
- 
  
    
      #search_terms  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property searchTerms.
- 
  
    
      #search_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property searchType.
- 
  
    
      #site_search  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property siteSearch.
- 
  
    
      #site_search_filter  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property siteSearchFilter.
- 
  
    
      #sort  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property sort.
- 
  
    
      #start_index  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property startIndex.
- 
  
    
      #start_page  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property startPage.
- 
  
    
      #title  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property title.
- 
  
    
      #total_results  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property totalResults.
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Query 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Query. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Query
Returns a new instance of Query
| 382 383 384 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 382 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#count ⇒ Fixnum
Corresponds to the JSON property count
| 205 206 207 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 205 def count @count end | 
#cr ⇒ String
Corresponds to the JSON property cr
| 210 211 212 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 210 def cr @cr end | 
#cx ⇒ String
Corresponds to the JSON property cx
| 215 216 217 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 215 def cx @cx end | 
#date_restrict ⇒ String
Corresponds to the JSON property dateRestrict
| 220 221 222 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 220 def date_restrict @date_restrict end | 
#disable_cn_tw_translation ⇒ String
Corresponds to the JSON property disableCnTwTranslation
| 225 226 227 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 225 def disable_cn_tw_translation @disable_cn_tw_translation end | 
#exact_terms ⇒ String
Corresponds to the JSON property exactTerms
| 230 231 232 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 230 def exact_terms @exact_terms end | 
#exclude_terms ⇒ String
Corresponds to the JSON property excludeTerms
| 235 236 237 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 235 def exclude_terms @exclude_terms end | 
#file_type ⇒ String
Corresponds to the JSON property fileType
| 240 241 242 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 240 def file_type @file_type end | 
#filter ⇒ String
Corresponds to the JSON property filter
| 245 246 247 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 245 def filter @filter end | 
#gl ⇒ String
Corresponds to the JSON property gl
| 250 251 252 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 250 def gl @gl end | 
#google_host ⇒ String
Corresponds to the JSON property googleHost
| 255 256 257 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 255 def google_host @google_host end | 
#high_range ⇒ String
Corresponds to the JSON property highRange
| 260 261 262 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 260 def high_range @high_range end | 
#hl ⇒ String
Corresponds to the JSON property hl
| 265 266 267 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 265 def hl @hl end | 
#hq ⇒ String
Corresponds to the JSON property hq
| 270 271 272 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 270 def hq @hq end | 
#img_color_type ⇒ String
Corresponds to the JSON property imgColorType
| 275 276 277 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 275 def img_color_type @img_color_type end | 
#img_dominant_color ⇒ String
Corresponds to the JSON property imgDominantColor
| 280 281 282 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 280 def img_dominant_color @img_dominant_color end | 
#img_size ⇒ String
Corresponds to the JSON property imgSize
| 285 286 287 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 285 def img_size @img_size end | 
#img_type ⇒ String
Corresponds to the JSON property imgType
| 290 291 292 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 290 def img_type @img_type end | 
#input_encoding ⇒ String
Corresponds to the JSON property inputEncoding
| 295 296 297 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 295 def input_encoding @input_encoding end | 
#language ⇒ String
Corresponds to the JSON property language
| 300 301 302 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 300 def language @language end | 
#link_site ⇒ String
Corresponds to the JSON property linkSite
| 305 306 307 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 305 def link_site @link_site end | 
#low_range ⇒ String
Corresponds to the JSON property lowRange
| 310 311 312 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 310 def low_range @low_range end | 
#or_terms ⇒ String
Corresponds to the JSON property orTerms
| 315 316 317 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 315 def or_terms @or_terms end | 
#output_encoding ⇒ String
Corresponds to the JSON property outputEncoding
| 320 321 322 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 320 def output_encoding @output_encoding end | 
#related_site ⇒ String
Corresponds to the JSON property relatedSite
| 325 326 327 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 325 def @related_site end | 
#rights ⇒ String
Corresponds to the JSON property rights
| 330 331 332 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 330 def rights @rights end | 
#safe ⇒ String
Corresponds to the JSON property safe
| 335 336 337 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 335 def safe @safe end | 
#search_terms ⇒ String
Corresponds to the JSON property searchTerms
| 340 341 342 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 340 def search_terms @search_terms end | 
#search_type ⇒ String
Corresponds to the JSON property searchType
| 345 346 347 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 345 def search_type @search_type end | 
#site_search ⇒ String
Corresponds to the JSON property siteSearch
| 350 351 352 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 350 def site_search @site_search end | 
#site_search_filter ⇒ String
Corresponds to the JSON property siteSearchFilter
| 355 356 357 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 355 def site_search_filter @site_search_filter end | 
#sort ⇒ String
Corresponds to the JSON property sort
| 360 361 362 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 360 def sort @sort end | 
#start_index ⇒ Fixnum
Corresponds to the JSON property startIndex
| 365 366 367 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 365 def start_index @start_index end | 
#start_page ⇒ Fixnum
Corresponds to the JSON property startPage
| 370 371 372 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 370 def start_page @start_page end | 
#title ⇒ String
Corresponds to the JSON property title
| 375 376 377 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 375 def title @title end | 
#total_results ⇒ Fixnum
Corresponds to the JSON property totalResults
| 380 381 382 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 380 def total_results @total_results end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 387 def update!(**args) @count = args[:count] if args.key?(:count) @cr = args[:cr] if args.key?(:cr) @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 |