Class Part (1.48.0)

Part(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A datatype containing media that is part of a multi-part Content message.

A Part consists of data which has an associated datatype. A Part can only contain one of the accepted types in Part.data.

A Part must have a fixed IANA MIME type identifying the type and subtype of the media if inline_data or file_data field is filled with raw bytes.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
text str
Optional. Text part (can be code). This field is a member of oneof_ data.
inline_data google.cloud.aiplatform_v1.types.Blob
Optional. Inlined bytes data. This field is a member of oneof_ data.
file_data google.cloud.aiplatform_v1.types.FileData
Optional. URI based data. This field is a member of oneof_ data.
function_call google.cloud.aiplatform_v1.types.FunctionCall
Optional. A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] with the parameters and their values. This field is a member of oneof_ data.
function_response google.cloud.aiplatform_v1.types.FunctionResponse
Optional. The result output of a [FunctionCall] that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing any output from the function call. It is used as context to the model. This field is a member of oneof_ data.
video_metadata google.cloud.aiplatform_v1.types.VideoMetadata
Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data. This field is a member of oneof_ metadata.

Methods

Part

Part(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A datatype containing media that is part of a multi-part Content message.

A Part consists of data which has an associated datatype. A Part can only contain one of the accepted types in Part.data.

A Part must have a fixed IANA MIME type identifying the type and subtype of the media if inline_data or file_data field is filled with raw bytes.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields