EmbedTextRequest class final
Request to get a text embedding from the model.
- Inheritance
-
- Object
- ProtoMessage
- EmbedTextRequest
Constructors
- EmbedTextRequest({required String model, String text = ''})
- EmbedTextRequest.fromJson(Object? j)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- model → String
-
Required. The model name to use with the format model=models/{model}.
final
- qualifiedName → String
-
The fully qualified name of this message, i.e.,
google.protobuf.Durationorgoogle.rpc.ErrorInfo.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
Optional. The free-form input text that the model will turn into an
embedding.
final
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