Skip to content

Commit

Permalink
refactor(discovery): rename model QueryResultResultMetadata to `Que…
Browse files Browse the repository at this point in the history
…ryResultMetadata`

BREAKING CHANGE: The name of the model `QueryResultResultMetadata` has been changed to `QueryResultMetadata`

To migrate your code, use the model `QueryResultMetadata` instead of `QueryResultResultMetadata`:
  • Loading branch information
dpopp07 committed Nov 2, 2018
1 parent 8eaa578 commit b1a124c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions UPGRADE-4.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ The following services have been deprecated for an extended period of time and w
- Parameter name changed: `passages.count` -> `passages_count`
- Parameter name changed: `passages.characters` -> `passages_characters`

#### model QueryResultResultMetadata
- Model name changed: `QueryResultResultMetadata` -> `QueryResultMetadata`

### Natural Language Classifier Compatibility
#### create
Expand Down
6 changes: 3 additions & 3 deletions discovery/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4591,7 +4591,7 @@ namespace DiscoveryV1 {
/** The collection ID of the collection containing the document for this result. */
collection_id?: string;
/** Metadata of the query result. */
result_metadata?: QueryResultResultMetadata;
result_metadata?: QueryResultMetadata;
/** The internal status code returned by the ingestion subsystem indicating the overall result of ingesting the source document. */
code?: number;
/** Name of the original source file (if available). */
Expand Down Expand Up @@ -4686,13 +4686,13 @@ namespace DiscoveryV1 {
/** The collection ID of the collection containing the document for this result. */
collection_id?: string;
/** Metadata of the query result. */
result_metadata?: QueryResultResultMetadata;
result_metadata?: QueryResultMetadata;
/** QueryResult accepts additional properties. */
[propName: string]: any;
}

/** Metadata of a query result. */
export interface QueryResultResultMetadata {
export interface QueryResultMetadata {
/** 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. */
score?: number;
/** 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. */
Expand Down

0 comments on commit b1a124c

Please sign in to comment.