Reference documentation and code samples for the Data Analytics API with Gemini V1BETA API class Google::Cloud::GeminiDataAnalytics::V1beta::A2AMessage.
A2AMessage is one unit of communication between client and server.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#content
def content() -> ::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::Part>
Returns
- (::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::Part>) — Optional. Content is the container of the message content.
#content=
def content=(value) -> ::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::Part>
Parameter
- value (::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::Part>) — Optional. Content is the container of the message content.
Returns
- (::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::Part>) — Optional. Content is the container of the message content.
#context_id
def context_id() -> ::String
Returns
- (::String) — Optional. The context id of the message.
#context_id=
def context_id=(value) -> ::String
Parameter
- value (::String) — Optional. The context id of the message.
Returns
- (::String) — Optional. The context id of the message.
#extensions
def extensions() -> ::Array<::String>
Returns
- (::Array<::String>) — Optional. The URIs of extensions that are present or contributed to this Message.
#extensions=
def extensions=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — Optional. The URIs of extensions that are present or contributed to this Message.
Returns
- (::Array<::String>) — Optional. The URIs of extensions that are present or contributed to this Message.
#message_id
def message_id() -> ::String
Returns
- (::String) — Optional. The unique identifier (e.g. UUID) of the message.
#message_id=
def message_id=(value) -> ::String
Parameter
- value (::String) — Optional. The unique identifier (e.g. UUID) of the message.
Returns
- (::String) — Optional. The unique identifier (e.g. UUID) of the message.
#metadata
def metadata() -> ::Google::Protobuf::Struct
Returns
- (::Google::Protobuf::Struct) — Optional. Any optional metadata to provide along with the message.
#metadata=
def metadata=(value) -> ::Google::Protobuf::Struct
Parameter
- value (::Google::Protobuf::Struct) — Optional. Any optional metadata to provide along with the message.
Returns
- (::Google::Protobuf::Struct) — Optional. Any optional metadata to provide along with the message.
#role
def role() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::Role
Returns
- (::Google::Cloud::GeminiDataAnalytics::V1beta::Role) — Optional. A role for the message.
#role=
def role=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::Role
Parameter
- value (::Google::Cloud::GeminiDataAnalytics::V1beta::Role) — Optional. A role for the message.
Returns
- (::Google::Cloud::GeminiDataAnalytics::V1beta::Role) — Optional. A role for the message.
#task_id
def task_id() -> ::String
Returns
- (::String) — Optional. The task id of the message.
#task_id=
def task_id=(value) -> ::String
Parameter
- value (::String) — Optional. The task id of the message.
Returns
- (::String) — Optional. The task id of the message.