FakeTextService class base

Testing fake for TextService.

Implemented types

Constructors

FakeTextService({Future<GenerateTextResponse> generateText(GenerateTextRequest request)?, Future<EmbedTextResponse> embedText(EmbedTextRequest request)?, Future<BatchEmbedTextResponse> batchEmbedText(BatchEmbedTextRequest request)?, Future<CountTextTokensResponse> countTextTokens(CountTextTokensRequest request)?, Future<ListOperationsResponse> listOperations(ListOperationsRequest request)?, Future<Operation<T, S>> getOperation<T extends ProtoMessage, S extends ProtoMessage>(Operation<T, S> request)?, Future<void> deleteOperation(DeleteOperationRequest request)?, Future<void> cancelOperation(CancelOperationRequest request)?})

Properties

hashCode int
The hash code for this object.
no setterinherited
isClosed bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

batchEmbedText(BatchEmbedTextRequest request) Future<BatchEmbedTextResponse>
Generates multiple embeddings from the model given input text in a synchronous call.
override
cancelOperation(CancelOperationRequest request) Future<void>
Provides the Operations service functionality in this service.
override
close() → void
Closes the client and cleans up any resources associated with it.
override
countTextTokens(CountTextTokensRequest request) Future<CountTextTokensResponse>
Runs a model's tokenizer on a text and returns the token count.
override
deleteOperation(DeleteOperationRequest request) Future<void>
Provides the Operations service functionality in this service.
override
embedText(EmbedTextRequest request) Future<EmbedTextResponse>
Generates an embedding from the model given an input message.
override
generateText(GenerateTextRequest request) Future<GenerateTextResponse>
Generates a response from the model given an input message.
override
getOperation<T extends ProtoMessage, S extends ProtoMessage>(Operation<T, S> request) Future<Operation<T, S>>
Provides the Operations service functionality in this service.
override
listOperations(ListOperationsRequest request) Future<ListOperationsResponse>
Provides the Operations service functionality in this service.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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