Class: Google::Apis::CloudsearchV1::SocialCommonAttachmentAttachment

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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SocialCommonAttachmentAttachment

Returns a new instance of SocialCommonAttachmentAttachment.



19025
19026
19027
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19025

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

Instance Attribute Details

#embed_itemGoogle::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



19017
19018
19019
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19017

def embed_item
  @embed_item
end

#idString

An id to uniquely identify an attachment when several attachments are in a collection. Corresponds to the JSON property id

Returns:

  • (String)


19023
19024
19025
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19023

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19030
19031
19032
19033
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19030

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