Resource: SampleQuery
Sample Query captures metadata to be used for evaluation.
| JSON representation | 
|---|
| { "name": string, "createTime": string, // Union field | 
| Fields | |
|---|---|
| name | 
 Identifier. The full resource name of the sample query, in the format of  This field must be a UTF-8 encoded string with a length limit of 1024 characters. | 
| createTime | 
 Output only. Timestamp the  Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:  | 
| Union field content. The content of the sample query.contentcan be only one of the following: | |
| queryEntry | 
 The query entry. | 
QueryEntry
Query Entry captures metadata to be used for search evaluation.
| JSON representation | 
|---|
| {
  "query": string,
  "targets": [
    {
      object ( | 
| Fields | |
|---|---|
| query | 
 Required. The query. | 
| targets[] | 
 List of targets for the query. | 
Target
Defines the parameters of the query's expected outcome.
| JSON representation | 
|---|
| { "uri": string, "pageNumbers": [ integer ], "score": number } | 
| Fields | |
|---|---|
| uri | 
 Expected uri of the target. This field must be a UTF-8 encoded string with a length limit of 2048 characters. Example of valid uris:  | 
| pageNumbers[] | 
 Expected page numbers of the target. Each page number must be non negative. | 
| score | 
 Relevance score of the target. | 
| Methods | |
|---|---|
| 
 | Creates a SampleQuery | 
| 
 | Deletes a SampleQuery. | 
| 
 | Gets a SampleQuery. | 
| 
 | Bulk import of multiple SampleQuerys. | 
| 
 | Gets a list of SampleQuerys. | 
| 
 | Updates a SampleQuery. |