Class: Google::Apis::CloudsearchV1::RequestOptions

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb

Overview

Shared request options for all RPC methods.

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) ⇒ RequestOptions

Returns a new instance of RequestOptions



3246
3247
3248
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3246

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

Instance Attribute Details

#debug_optionsGoogle::Apis::CloudsearchV1::DebugOptions

Shared request debug options for all cloudsearch RPC methods. Corresponds to the JSON property debugOptions



3222
3223
3224
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3222

def debug_options
  @debug_options
end

#language_codeString

The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. For translations. Corresponds to the JSON property languageCode

Returns:

  • (String)


3230
3231
3232
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3230

def language_code
  @language_code
end

#search_application_idString

Id of the application created using SearchApplicationsService. Corresponds to the JSON property searchApplicationId

Returns:

  • (String)


3235
3236
3237
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3235

def search_application_id
  @search_application_id
end

#time_zoneString

Current user's time zone id, such as "America/Los_Angeles" or "Australia/Sydney". These IDs are defined by Unicode Common Locale Data Repository (CLDR) project, and currently available in the file timezone.xml Corresponds to the JSON property timeZone

Returns:

  • (String)


3244
3245
3246
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3244

def time_zone
  @time_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3251
3252
3253
3254
3255
3256
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 3251

def update!(**args)
  @debug_options = args[:debug_options] if args.key?(:debug_options)
  @language_code = args[:language_code] if args.key?(:language_code)
  @search_application_id = args[:search_application_id] if args.key?(:search_application_id)
  @time_zone = args[:time_zone] if args.key?(:time_zone)
end