Content class final
The base structured datatype containing multi-part content of a message.
A Content includes a role field designating the producer of the Content
and a parts field containing multi-part data that contains the content of
the message turn.
- Inheritance
-
- Object
- ProtoMessage
- Content
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
parts
→ List<
Part> -
Ordered
Partsthat constitute a single message. Parts may have different MIME types.final - qualifiedName → String
-
The fully qualified name of this message, i.e.,
google.protobuf.Durationorgoogle.rpc.ErrorInfo.finalinherited - role → String
-
Optional. The producer of the content. Must be either 'user' or 'model'.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Object -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- fullyQualifiedName → const String