ExampleStoreService class final

A service for managing and retrieving few-shot examples.

Constructors

ExampleStoreService({required Client client})
Creates a ExampleStoreService using client for transport.
ExampleStoreService.fromApiKey([String? apiKey])
Creates a ExampleStoreService that does authentication through an API key.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelOperation(CancelOperationRequest request) Future<void>
Provides the Operations service functionality in this service.
close() → void
Closes the client and cleans up any resources associated with it.
createExampleStore(CreateExampleStoreRequest request) Future<Operation<ExampleStore, CreateExampleStoreOperationMetadata>>
Create an ExampleStore.
deleteExampleStore(DeleteExampleStoreRequest request) Future<Operation<Empty, DeleteExampleStoreOperationMetadata>>
Delete an ExampleStore.
deleteOperation(DeleteOperationRequest request) Future<void>
Provides the Operations service functionality in this service.
fetchExamples(FetchExamplesRequest request) Future<FetchExamplesResponse>
Get Examples from the Example Store.
getExampleStore(GetExampleStoreRequest request) Future<ExampleStore>
Get an ExampleStore.
getIamPolicy(GetIamPolicyRequest request) Future<Policy>
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
getLocation(GetLocationRequest request) Future<Location>
Gets information about a location.
getOperation<T extends ProtoMessage, S extends ProtoMessage>(Operation<T, S> request) Future<Operation<T, S>>
Provides the Operations service functionality in this service.
listExampleStores(ListExampleStoresRequest request) Future<ListExampleStoresResponse>
List ExampleStores in a Location.
listLocations(ListLocationsRequest request) Future<ListLocationsResponse>
Lists information about the supported locations for this service.
listOperations(ListOperationsRequest request) Future<ListOperationsResponse>
Provides the Operations service functionality in this service.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeExamples(RemoveExamplesRequest request) Future<RemoveExamplesResponse>
Remove Examples from the Example Store.
searchExamples(SearchExamplesRequest request) Future<SearchExamplesResponse>
Search for similar Examples for given selection criteria.
setIamPolicy(SetIamPolicyRequest request) Future<Policy>
Sets the access control policy on the specified resource. Replaces any existing policy.
testIamPermissions(TestIamPermissionsRequest request) Future<TestIamPermissionsResponse>
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
toString() String
A string representation of this object.
inherited
updateExampleStore(UpdateExampleStoreRequest request) Future<Operation<ExampleStore, UpdateExampleStoreOperationMetadata>>
Update an ExampleStore.
upsertExamples(UpsertExamplesRequest request) Future<UpsertExamplesResponse>
Create or update Examples in the Example Store.
waitOperation(WaitOperationRequest request) Future<Operation<ProtoMessage, ProtoMessage>>
Provides the Operations service functionality in this service.

Operators

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