Class: Google::Apis::CloudsearchV1::ChatConserverMessageContent
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::ChatConserverMessageContent
- 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
The content of a chat message, which includes 0 or more segments along with 0 or more embeds, which represent various attachment types (like photos).
Instance Attribute Summary collapse
-
#attachment ⇒ Array<Google::Apis::CloudsearchV1::SocialCommonAttachmentAttachment>
Items attached to this message, such as photos.
-
#segment ⇒ Array<Google::Apis::CloudsearchV1::Segment>
The text part of the message content.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ChatConserverMessageContent
constructor
A new instance of ChatConserverMessageContent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ChatConserverMessageContent
Returns a new instance of ChatConserverMessageContent.
5793 5794 5795 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5793 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attachment ⇒ Array<Google::Apis::CloudsearchV1::SocialCommonAttachmentAttachment>
Items attached to this message, such as photos. This should NOT be set by
clients. It will be automatically set from media uploaded along with this
request and using the information provided in existing_media.
Corresponds to the JSON property attachment
5785 5786 5787 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5785 def @attachment end |
#segment ⇒ Array<Google::Apis::CloudsearchV1::Segment>
The text part of the message content. Segments are concatenated together to
yield the full message. A message can have zero or more segments.
Corresponds to the JSON property segment
5791 5792 5793 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5791 def segment @segment end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5798 5799 5800 5801 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5798 def update!(**args) @attachment = args[:attachment] if args.key?(:attachment) @segment = args[:segment] if args.key?(:segment) end |