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-
(::Google::Cloud::GeminiDataAnalytics::V1beta::DataPart) — Structured data content payload.
Note: The following fields are mutually exclusive:
data,text,file. If a field in that set is populated, all other fields in the set will automatically be cleared.
#data=
def data=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::DataPart-
value (::Google::Cloud::GeminiDataAnalytics::V1beta::DataPart) — Structured data content payload.
Note: The following fields are mutually exclusive:
data,text,file. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::GeminiDataAnalytics::V1beta::DataPart) — Structured data content payload.
Note: The following fields are mutually exclusive:
data,text,file. If a field in that set is populated, all other fields in the set will automatically be cleared.
#file
def file() -> ::Google::Cloud::GeminiDataAnalytics::V1beta::FilePart-
(::Google::Cloud::GeminiDataAnalytics::V1beta::FilePart) — File content payload.
Note: The following fields are mutually exclusive:
file,text,data. If a field in that set is populated, all other fields in the set will automatically be cleared.
#file=
def file=(value) -> ::Google::Cloud::GeminiDataAnalytics::V1beta::FilePart-
value (::Google::Cloud::GeminiDataAnalytics::V1beta::FilePart) — File content payload.
Note: The following fields are mutually exclusive:
file,text,data. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::GeminiDataAnalytics::V1beta::FilePart) — File content payload.
Note: The following fields are mutually exclusive:
file,text,data. If a field in that set is populated, all other fields in the set will automatically be cleared.
#metadata
def metadata() -> ::Google::Protobuf::Struct- (::Google::Protobuf::Struct) — Optional. Metadata associated with the part.
#metadata=
def metadata=(value) -> ::Google::Protobuf::Struct- value (::Google::Protobuf::Struct) — Optional. Metadata associated with the part.
- (::Google::Protobuf::Struct) — Optional. Metadata associated with the part.
#text
def text() -> ::String-
(::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-
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.
-
(::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.