Data Analytics API with Gemini V1BETA API - Class Google::Cloud::GeminiDataAnalytics::V1beta::Part (v1.2.0)

Reference documentation and code samples for the Data Analytics API with Gemini V1BETA API class Google::Cloud::GeminiDataAnalytics::V1beta::Part.

Part represents a container for a section of communication content. Parts can be purely textual, some sort of file (image, video, etc) or a structured data blob (i.e. JSON).

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#data

def data() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::DataPart
Returns

#data=

def data=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::DataPart
Parameter
Returns

#file

def file() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::FilePart
Returns

#file=

def file=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::FilePart
Parameter
Returns

#metadata

def metadata() -> ::Google::Protobuf::Struct
Returns

#metadata=

def metadata=(value) -> ::Google::Protobuf::Struct
Parameter
Returns

#text

def text() -> ::String
Returns
  • (::String) — Plain text content.

    Note: The following fields are mutually exclusive: text, file, data. If a field in that set is populated, all other fields in the set will automatically be cleared.

#text=

def text=(value) -> ::String
Parameter
  • value (::String) — Plain text content.

    Note: The following fields are mutually exclusive: text, file, data. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::String) — Plain text content.

    Note: The following fields are mutually exclusive: text, file, data. If a field in that set is populated, all other fields in the set will automatically be cleared.