Context class

Represents a context.

Constructors

Context({@required String name, int lifespanCount, Map<String, dynamic> parameters})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
lifespanCount int
The number of conversational query requests after which the context expires. If set to 0 (the default) the context expires immediately. Contexts expire automatically after 20 minutes if there are no matching queries.
final
name String
The unique identifier of the context. Format: projects//agent/sessions//contexts/. The Context ID is always converted to lowercase, may only contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
final
parameters Map<String, dynamic>
The collection of parameters associated with this context. Refer to this doc for syntax.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

fromJson(Map<String, dynamic> json) Context