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

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

Overview

Shared request options for all RPC methods.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RequestOptions

Returns a new instance of RequestOptions.



17243
17244
17245
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17243

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



17213
17214
17215
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17213

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. Set this field using the language set in browser or for the page. In the event that the user's language preference is known, set this field to the known user language. When specified, the documents in search results are biased towards the specified language. From Suggest API perspective, for 3p suggest this is used as a hint while making predictions to add language boosting. Corresponds to the JSON property languageCode

Returns:

  • (String)


17225
17226
17227
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17225

def language_code
  @language_code
end

#search_application_idString

The ID generated when you create a search application using the admin console. Corresponds to the JSON property searchApplicationId

Returns:

  • (String)


17231
17232
17233
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17231

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. This field is used to correctly interpret date and time queries. If this field is not specified, the default time zone (UTC) is used. Corresponds to the JSON property timeZone

Returns:

  • (String)


17241
17242
17243
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17241

def time_zone
  @time_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17248
17249
17250
17251
17252
17253
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17248

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