Get Examples from the Example Store.
Endpoint
posthttps://{service-endpoint}/v1beta1/{exampleStore}:fetchExamples
Where {service-endpoint}
is one of the supported service endpoints.
Path parameters
exampleStore
string
Required. The name of the ExampleStore resource that the examples should be fetched from. Format: projects/{project}/locations/{location}/exampleStores/{exampleStore}
Request body
The request body contains data with the following structure:
pageSize
integer
Optional. The maximum number of examples to return. The service may return fewer than this value. If unspecified, at most 100 examples will be returned.
pageToken
string
Optional. The nextPageToken
value returned from a previous list [ExampleStoreService.FetchExamplesResponse][] call.
exampleIds[]
string
Optional. Example IDs to fetch. If both metadata filters and Example IDs are specified, then both id and metadata filtering will be applied.
metadata_filter
Union type
metadata_filter
can be only one of the following:The metadata filters for StoredContentsExamples.
Response body
Response message for ExampleStoreService.FetchExamples
.
If successful, the response body contains data with the following structure:
The examples in the Example Store that satisfy the metadata filters.
nextPageToken
string
A token, which can be sent as FetchExamplesRequest.page_token
to retrieve the next page. Absence of this field indicates there are no subsequent pages.
JSON representation |
---|
{
"examples": [
{
object ( |