Class: Google::Apis::CloudsearchV1::TextKeyValue

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

This is deprecated and please use KeyValue.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TextKeyValue

Returns a new instance of TextKeyValue.



16517
16518
16519
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16517

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

Instance Attribute Details

#keyString

Corresponds to the JSON property key

Returns:

  • (String)


16505
16506
16507
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16505

def key
  @key
end

#on_clickGoogle::Apis::CloudsearchV1::OnClick

Corresponds to the JSON property onClick



16510
16511
16512
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16510

def on_click
  @on_click
end

#textString

Corresponds to the JSON property text

Returns:

  • (String)


16515
16516
16517
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16515

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16522
16523
16524
16525
16526
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16522

def update!(**args)
  @key = args[:key] if args.key?(:key)
  @on_click = args[:on_click] if args.key?(:on_click)
  @text = args[:text] if args.key?(:text)
end