Class: Google::Apis::CloudsearchV1::Content

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Content

Returns a new instance of Content.



245
246
247
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 245

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

Instance Attribute Details

#actionsArray<Google::Apis::CloudsearchV1::Action>

[Optional] Actions for this card. Corresponds to the JSON property actions



223
224
225
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 223

def actions
  @actions
end

#descriptionGoogle::Apis::CloudsearchV1::SafeHtmlProto

IMPORTANT: It is unsafe to accept this message from an untrusted source, since it's trivial for an attacker to forge serialized messages that don't fulfill the type's safety contract -- for example, it could contain attacker controlled script. A system which receives a SafeHtmlProto implicitly trusts the producer of the SafeHtmlProto. So, it's generally safe to return this message in RPC responses, but generally unsafe to accept it in RPC requests. Corresponds to the JSON property description



233
234
235
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 233

def description
  @description
end

#subtitleGoogle::Apis::CloudsearchV1::BackgroundColoredText

[Optional] Subtitle of the card. Corresponds to the JSON property subtitle



238
239
240
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 238

def subtitle
  @subtitle
end

#titleGoogle::Apis::CloudsearchV1::BackgroundColoredText

[Optional] Title of the card. Corresponds to the JSON property title



243
244
245
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 243

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



250
251
252
253
254
255
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 250

def update!(**args)
  @actions = args[:actions] if args.key?(:actions)
  @description = args[:description] if args.key?(:description)
  @subtitle = args[:subtitle] if args.key?(:subtitle)
  @title = args[:title] if args.key?(:title)
end