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.
18408 18409 18410 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18408 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
18400 18401 18402 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18400 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
18406 18407 18408 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18406 def id @id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
18413 18414 18415 18416 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18413 def update!(**args) @embed_item = args[:embed_item] if args.key?(:embed_item) @id = args[:id] if args.key?(:id) end |