Class: Google::Apis::CloudsearchV1::SocialCommonAttachmentAttachment
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::SocialCommonAttachmentAttachment
- 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
An Attachment represents a linked entity associated with a piece of social content. This may be a 1st-party or 3rd-party entity. In the Papyrus context, an Attachment is part of a Cent, and sits alongside the main content of the cent, which is represented as a sequence of Segments. Right now an Attachment is just a wrapper around an Embed, but we provide the extra layer of abstraction since, as Embeds move to separate storage in Briefcase, we may want to add additional fields that are not part of the Embed proper, but that ( for example) relate to the usage of the linked content within the particular post/cent.
Instance Attribute Summary collapse
-
#embed_item ⇒ Google::Apis::CloudsearchV1::EmbedClientItem
Represents an embedded object in an update.
-
#id ⇒ String
An id to uniquely identify an attachment when several attachments are in a collection.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SocialCommonAttachmentAttachment
constructor
A new instance of SocialCommonAttachmentAttachment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SocialCommonAttachmentAttachment
Returns a new instance of SocialCommonAttachmentAttachment.
18346 18347 18348 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18346 def initialize(**args) update!(**args) end |
Instance Attribute Details
#embed_item ⇒ Google::Apis::CloudsearchV1::EmbedClientItem
Represents an embedded object in an update. This is a wrapper class that can
contain a single specific item proto in an extension field. Think of it as a
base class like Message in Java. Each item proto must declare that it
extends this proto: message ExampleObject option (item_type) =
EXAMPLE_OBJECT; extend EmbedClientItem optional ExampleObject example_object
= ; See go/es-embeds for details.
Corresponds to the JSON property embedItem
18338 18339 18340 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18338 def @embed_item end |
#id ⇒ String
An id to uniquely identify an attachment when several attachments are in a
collection.
Corresponds to the JSON property id
18344 18345 18346 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18344 def id @id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
18351 18352 18353 18354 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18351 def update!(**args) @embed_item = args[:embed_item] if args.key?(:embed_item) @id = args[:id] if args.key?(:id) end |