Google Cloud Gemini Data Analytics V1beta Client - Class Part (0.14.0)

Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class 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).

Generated from protobuf message google.cloud.geminidataanalytics.v1beta.Part

Namespace

Google \ Cloud \ GeminiDataAnalytics \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ text string

Plain text content.

↳ file FilePart

File content payload.

↳ data DataPart

Structured data content payload.

↳ metadata Google\Protobuf\Struct

Optional. Metadata associated with the part.

getText

Plain text content.

Returns
Type Description
string

hasText

setText

Plain text content.

Parameter
Name Description
var string
Returns
Type Description
$this

getFile

File content payload.

Returns
Type Description
FilePart|null

hasFile

setFile

File content payload.

Parameter
Name Description
var FilePart
Returns
Type Description
$this

getData

Structured data content payload.

Returns
Type Description
DataPart|null

hasData

setData

Structured data content payload.

Parameter
Name Description
var DataPart
Returns
Type Description
$this

getMetadata

Optional. Metadata associated with the part.

Returns
Type Description
Google\Protobuf\Struct|null

hasMetadata

clearMetadata

setMetadata

Optional. Metadata associated with the part.

Parameter
Name Description
var Google\Protobuf\Struct
Returns
Type Description
$this

getPart

Returns
Type Description
string