Class: Google::Apis::CustomsearchV1::Query

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Query

Returns a new instance of Query.


387
388
389
# File 'generated/google/apis/customsearch_v1/classes.rb', line 387

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

Instance Attribute Details

#countFixnum

Corresponds to the JSON property count

Returns:

  • (Fixnum)

205
206
207
# File 'generated/google/apis/customsearch_v1/classes.rb', line 205

def count
  @count
end

#crString

Corresponds to the JSON property cr

Returns:

  • (String)

210
211
212
# File 'generated/google/apis/customsearch_v1/classes.rb', line 210

def cr
  @cr
end

#crefString

Corresponds to the JSON property cref

Returns:

  • (String)

215
216
217
# File 'generated/google/apis/customsearch_v1/classes.rb', line 215

def cref
  @cref
end

#cxString

Corresponds to the JSON property cx

Returns:

  • (String)

220
221
222
# File 'generated/google/apis/customsearch_v1/classes.rb', line 220

def cx
  @cx
end

#date_restrictString

Corresponds to the JSON property dateRestrict

Returns:

  • (String)

225
226
227
# File 'generated/google/apis/customsearch_v1/classes.rb', line 225

def date_restrict
  @date_restrict
end

#disable_cn_tw_translationString

Corresponds to the JSON property disableCnTwTranslation

Returns:

  • (String)

230
231
232
# File 'generated/google/apis/customsearch_v1/classes.rb', line 230

def disable_cn_tw_translation
  @disable_cn_tw_translation
end

#exact_termsString

Corresponds to the JSON property exactTerms

Returns:

  • (String)

235
236
237
# File 'generated/google/apis/customsearch_v1/classes.rb', line 235

def exact_terms
  @exact_terms
end

#exclude_termsString

Corresponds to the JSON property excludeTerms

Returns:

  • (String)

240
241
242
# File 'generated/google/apis/customsearch_v1/classes.rb', line 240

def exclude_terms
  @exclude_terms
end

#file_typeString

Corresponds to the JSON property fileType

Returns:

  • (String)

245
246
247
# File 'generated/google/apis/customsearch_v1/classes.rb', line 245

def file_type
  @file_type
end

#filterString

Corresponds to the JSON property filter

Returns:

  • (String)

250
251
252
# File 'generated/google/apis/customsearch_v1/classes.rb', line 250

def filter
  @filter
end

#glString

Corresponds to the JSON property gl

Returns:

  • (String)

255
256
257
# File 'generated/google/apis/customsearch_v1/classes.rb', line 255

def gl
  @gl
end

#google_hostString

Corresponds to the JSON property googleHost

Returns:

  • (String)

260
261
262
# File 'generated/google/apis/customsearch_v1/classes.rb', line 260

def google_host
  @google_host
end

#high_rangeString

Corresponds to the JSON property highRange

Returns:

  • (String)

265
266
267
# File 'generated/google/apis/customsearch_v1/classes.rb', line 265

def high_range
  @high_range
end

#hlString

Corresponds to the JSON property hl

Returns:

  • (String)

270
271
272
# File 'generated/google/apis/customsearch_v1/classes.rb', line 270

def hl
  @hl
end

#hqString

Corresponds to the JSON property hq

Returns:

  • (String)

275
276
277
# File 'generated/google/apis/customsearch_v1/classes.rb', line 275

def hq
  @hq
end

#img_color_typeString

Corresponds to the JSON property imgColorType

Returns:

  • (String)

280
281
282
# File 'generated/google/apis/customsearch_v1/classes.rb', line 280

def img_color_type
  @img_color_type
end

#img_dominant_colorString

Corresponds to the JSON property imgDominantColor

Returns:

  • (String)

285
286
287
# File 'generated/google/apis/customsearch_v1/classes.rb', line 285

def img_dominant_color
  @img_dominant_color
end

#img_sizeString

Corresponds to the JSON property imgSize

Returns:

  • (String)

290
291
292
# File 'generated/google/apis/customsearch_v1/classes.rb', line 290

def img_size
  @img_size
end

#img_typeString

Corresponds to the JSON property imgType

Returns:

  • (String)

295
296
297
# File 'generated/google/apis/customsearch_v1/classes.rb', line 295

def img_type
  @img_type
end

#input_encodingString

Corresponds to the JSON property inputEncoding

Returns:

  • (String)

300
301
302
# File 'generated/google/apis/customsearch_v1/classes.rb', line 300

def input_encoding
  @input_encoding
end

#languageString

Corresponds to the JSON property language

Returns:

  • (String)

305
306
307
# File 'generated/google/apis/customsearch_v1/classes.rb', line 305

def language
  @language
end

Corresponds to the JSON property linkSite

Returns:

  • (String)

310
311
312
# File 'generated/google/apis/customsearch_v1/classes.rb', line 310

def link_site
  @link_site
end

#low_rangeString

Corresponds to the JSON property lowRange

Returns:

  • (String)

315
316
317
# File 'generated/google/apis/customsearch_v1/classes.rb', line 315

def low_range
  @low_range
end

#or_termsString

Corresponds to the JSON property orTerms

Returns:

  • (String)

320
321
322
# File 'generated/google/apis/customsearch_v1/classes.rb', line 320

def or_terms
  @or_terms
end

#output_encodingString

Corresponds to the JSON property outputEncoding

Returns:

  • (String)

325
326
327
# File 'generated/google/apis/customsearch_v1/classes.rb', line 325

def output_encoding
  @output_encoding
end

Corresponds to the JSON property relatedSite

Returns:

  • (String)

330
331
332
# File 'generated/google/apis/customsearch_v1/classes.rb', line 330

def related_site
  @related_site
end

#rightsString

Corresponds to the JSON property rights

Returns:

  • (String)

335
336
337
# File 'generated/google/apis/customsearch_v1/classes.rb', line 335

def rights
  @rights
end

#safeString

Corresponds to the JSON property safe

Returns:

  • (String)

340
341
342
# File 'generated/google/apis/customsearch_v1/classes.rb', line 340

def safe
  @safe
end

#search_termsString

Corresponds to the JSON property searchTerms

Returns:

  • (String)

345
346
347
# File 'generated/google/apis/customsearch_v1/classes.rb', line 345

def search_terms
  @search_terms
end

#search_typeString

Corresponds to the JSON property searchType

Returns:

  • (String)

350
351
352
# File 'generated/google/apis/customsearch_v1/classes.rb', line 350

def search_type
  @search_type
end

#site_searchString

Corresponds to the JSON property siteSearch

Returns:

  • (String)

355
356
357
# File 'generated/google/apis/customsearch_v1/classes.rb', line 355

def site_search
  @site_search
end

#site_search_filterString

Corresponds to the JSON property siteSearchFilter

Returns:

  • (String)

360
361
362
# File 'generated/google/apis/customsearch_v1/classes.rb', line 360

def site_search_filter
  @site_search_filter
end

#sortString

Corresponds to the JSON property sort

Returns:

  • (String)

365
366
367
# File 'generated/google/apis/customsearch_v1/classes.rb', line 365

def sort
  @sort
end

#start_indexFixnum

Corresponds to the JSON property startIndex

Returns:

  • (Fixnum)

370
371
372
# File 'generated/google/apis/customsearch_v1/classes.rb', line 370

def start_index
  @start_index
end

#start_pageFixnum

Corresponds to the JSON property startPage

Returns:

  • (Fixnum)

375
376
377
# File 'generated/google/apis/customsearch_v1/classes.rb', line 375

def start_page
  @start_page
end

#titleString

Corresponds to the JSON property title

Returns:

  • (String)

380
381
382
# File 'generated/google/apis/customsearch_v1/classes.rb', line 380

def title
  @title
end

#total_resultsString

Corresponds to the JSON property totalResults

Returns:

  • (String)

385
386
387
# File 'generated/google/apis/customsearch_v1/classes.rb', line 385

def total_results
  @total_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


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
425
426
427
428
429
430
# 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