Skip to content

Commit b1a124c

Browse files
committed
refactor(discovery): rename model QueryResultResultMetadata to QueryResultMetadata
BREAKING CHANGE: The name of the model `QueryResultResultMetadata` has been changed to `QueryResultMetadata` To migrate your code, use the model `QueryResultMetadata` instead of `QueryResultResultMetadata`:
1 parent 8eaa578 commit b1a124c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

UPGRADE-4.0.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ The following services have been deprecated for an extended period of time and w
6969
- Parameter name changed: `passages.count` -> `passages_count`
7070
- Parameter name changed: `passages.characters` -> `passages_characters`
7171

72+
#### model QueryResultResultMetadata
73+
- Model name changed: `QueryResultResultMetadata` -> `QueryResultMetadata`
7274

7375
### Natural Language Classifier Compatibility
7476
#### create

discovery/v1.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4591,7 +4591,7 @@ namespace DiscoveryV1 {
45914591
/** The collection ID of the collection containing the document for this result. */
45924592
collection_id?: string;
45934593
/** Metadata of the query result. */
4594-
result_metadata?: QueryResultResultMetadata;
4594+
result_metadata?: QueryResultMetadata;
45954595
/** The internal status code returned by the ingestion subsystem indicating the overall result of ingesting the source document. */
45964596
code?: number;
45974597
/** Name of the original source file (if available). */
@@ -4686,13 +4686,13 @@ namespace DiscoveryV1 {
46864686
/** The collection ID of the collection containing the document for this result. */
46874687
collection_id?: string;
46884688
/** Metadata of the query result. */
4689-
result_metadata?: QueryResultResultMetadata;
4689+
result_metadata?: QueryResultMetadata;
46904690
/** QueryResult accepts additional properties. */
46914691
[propName: string]: any;
46924692
}
46934693

46944694
/** Metadata of a query result. */
4695-
export interface QueryResultResultMetadata {
4695+
export interface QueryResultMetadata {
46964696
/** An unbounded measure of the relevance of a particular result, dependent on the query and matching document. A higher score indicates a greater match to the query parameters. */
46974697
score?: number;
46984698
/** The confidence score for the given result. Calculated based on how relevant the result is estimated to be, compared to a trained relevancy model. confidence can range from `0.0` to `1.0`. The higher the number, the more relevant the document. */

0 commit comments

Comments
 (0)