Data Analytics API with Gemini v1beta API - Class Part (1.0.0-beta12)

public sealed class Part : IMessage<Part>, IEquatable<Part>, IDeepCloneable<Part>, IBufferMessage, IMessage

Reference documentation and code samples for the Data Analytics API with Gemini v1beta API 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).

Inheritance

object > Part

Namespace

Google.Cloud.GeminiDataAnalytics.V1Beta

Assembly

Google.Cloud.GeminiDataAnalytics.V1Beta.dll

Constructors

Part()

public Part()

Part(Part)

public Part(Part other)
Parameter
Name Description
other Part

Properties

Data

public DataPart Data { get; set; }

Structured data content payload.

Property Value
Type Description
DataPart

File

public FilePart File { get; set; }

File content payload.

Property Value
Type Description
FilePart

HasText

public bool HasText { get; }

Gets whether the "text" field is set

Property Value
Type Description
bool

Metadata

public Struct Metadata { get; set; }

Optional. Metadata associated with the part.

Property Value
Type Description
Struct

PartCase

public Part.PartOneofCase PartCase { get; }
Property Value
Type Description
PartPartOneofCase

Text

public string Text { get; set; }

Plain text content.

Property Value
Type Description
string