Socket
Socket
Sign inDemoInstall

@google-cloud/vision

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/vision - npm Package Compare versions

Comparing version 1.8.0 to 1.9.0

12

CHANGELOG.md

@@ -7,2 +7,14 @@ # Changelog

## [1.9.0](https://www.github.com/googleapis/nodejs-vision/compare/v1.8.0...v1.9.0) (2020-02-10)
### Features
* bump release level to GA ([#530](https://www.github.com/googleapis/nodejs-vision/issues/530)) ([3b091ba](https://www.github.com/googleapis/nodejs-vision/commit/3b091ba7c67864e845d1f399b8052684a2d6030e))
### Bug Fixes
* **deps:** update dependency redis to v3 ([#533](https://www.github.com/googleapis/nodejs-vision/issues/533)) ([d9b50cb](https://www.github.com/googleapis/nodejs-vision/commit/d9b50cb2ac56a5eadab72efed59f12189418993c))
## [1.8.0](https://www.github.com/googleapis/nodejs-vision/compare/v1.7.2...v1.8.0) (2020-01-02)

@@ -9,0 +21,0 @@

12

package.json
{
"name": "@google-cloud/vision",
"description": "Google Cloud Vision API client for Node.js",
"version": "1.8.0",
"version": "1.9.0",
"license": "Apache-2.0",

@@ -14,5 +14,3 @@ "author": "Google Inc",

"protos",
"src",
"AUTHORS",
"LICENSE"
"src"
],

@@ -55,10 +53,8 @@ "keywords": [

"eslint-plugin-prettier": "^3.0.0",
"intelli-espower-loader": "^1.0.1",
"jsdoc": "^3.6.2",
"jsdoc-fresh": "^1.0.1",
"jsdoc-region-tag": "^1.0.2",
"linkinator": "^1.5.0",
"mocha": "^6.0.0",
"linkinator": "^2.0.0",
"mocha": "^7.0.0",
"nyc": "^14.0.0",
"power-assert": "^1.6.0",
"prettier": "^1.13.6",

@@ -65,0 +61,0 @@ "sinon": "^8.0.0",

@@ -7,3 +7,3 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost."

[![release level](https://img.shields.io/badge/release%20level-beta-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
[![release level](https://img.shields.io/badge/release%20level-general%20availability%20%28GA%29-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
[![npm version](https://img.shields.io/npm/v/@google-cloud/vision.svg)](https://www.npmjs.org/package/@google-cloud/vision)

@@ -94,2 +94,3 @@ [![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-vision/master.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-vision)

| Text Detection | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/textDetection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/textDetection.js,samples/README.md) |
| Vision-face-detection | [source code](https://github.com/googleapis/nodejs-vision/blob/master/samples/vision-face-detection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-vision&page=editor&open_in_editor=samples/vision-face-detection.js,samples/README.md) |

@@ -106,7 +107,8 @@

This library is considered to be **General Availability (GA)**. This means it
is stable; the code surface will not change in backwards-incompatible ways
unless absolutely necessary (e.g. because of critical security issues) or with
an extensive deprecation period. Issues and requests against **GA** libraries
are addressed with the highest priority.
This library is considered to be in **beta**. This means it is expected to be
mostly stable while we work toward a general availability release; however,
complete stability is not guaranteed. We will address issues and requests
against beta libraries with a high priority.

@@ -113,0 +115,0 @@

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -25,3 +25,3 @@ // Licensed under the Apache License, Version 2.0 (the "License");

* originally returns it. If you use the default HTTP mapping, the
* `name` should have the format of `operations/some/unique/name`.
* `name` should be a resource name ending with `operations/{unique_id}`.
*

@@ -28,0 +28,0 @@ * @property {Object} metadata

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -21,57 +21,10 @@ // Licensed under the Apache License, Version 2.0 (the "License");

* different programming environments, including REST APIs and RPC APIs. It is
* used by [gRPC](https://github.com/grpc). The error model is designed to be:
* used by [gRPC](https://github.com/grpc). Each `Status` message contains
* three pieces of data: error code, error message, and error details.
*
* - Simple to use and understand for most users
* - Flexible enough to meet unexpected needs
* You can find out more about this error model and how to work with it in the
* [API Design Guide](https://cloud.google.com/apis/design/errors).
*
* # Overview
*
* The `Status` message contains three pieces of data: error code, error
* message, and error details. The error code should be an enum value of
* google.rpc.Code, but it may accept additional error codes
* if needed. The error message should be a developer-facing English message
* that helps developers *understand* and *resolve* the error. If a localized
* user-facing error message is needed, put the localized message in the error
* details or localize it in the client. The optional error details may contain
* arbitrary information about the error. There is a predefined set of error
* detail types in the package `google.rpc` that can be used for common error
* conditions.
*
* # Language mapping
*
* The `Status` message is the logical representation of the error model, but it
* is not necessarily the actual wire format. When the `Status` message is
* exposed in different client libraries and different wire protocols, it can be
* mapped differently. For example, it will likely be mapped to some exceptions
* in Java, but more likely mapped to some error codes in C.
*
* # Other uses
*
* The error model and the `Status` message can be used in a variety of
* environments, either with or without APIs, to provide a
* consistent developer experience across different environments.
*
* Example uses of this error model include:
*
* - Partial errors. If a service needs to return partial errors to the client,
* it may embed the `Status` in the normal response to indicate the partial
* errors.
*
* - Workflow errors. A typical workflow has multiple steps. Each step may
* have a `Status` message for error reporting.
*
* - Batch operations. If a client uses batch request and batch response, the
* `Status` message should be used directly inside batch response, one for
* each error sub-response.
*
* - Asynchronous operations. If an API call embeds asynchronous operation
* results in its response, the status of those operations should be
* represented directly using the `Status` message.
*
* - Logging. If some API errors are stored in logs, the message `Status` could
* be used directly after any stripping needed for security/privacy reasons.
*
* @property {number} code
* The status code, which should be an enum value of
* google.rpc.Code.
* The status code, which should be an enum value of google.rpc.Code.
*

@@ -81,4 +34,3 @@ * @property {string} message

* user-facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized
* by the client.
* google.rpc.Status.details field, or localized by the client.
*

@@ -85,0 +37,0 @@ * @property {Object[]} details

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -893,3 +893,3 @@ // Licensed under the Apache License, Version 2.0 (the "License");

* @property {Object[]} requests
* Individual image annotation requests for this batch.
* Required. Individual image annotation requests for this batch.
*

@@ -896,0 +896,0 @@ * This object should have the same structure as [AnnotateImageRequest]{@link google.cloud.vision.v1p1beta1.AnnotateImageRequest}

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -21,57 +21,10 @@ // Licensed under the Apache License, Version 2.0 (the "License");

* different programming environments, including REST APIs and RPC APIs. It is
* used by [gRPC](https://github.com/grpc). The error model is designed to be:
* used by [gRPC](https://github.com/grpc). Each `Status` message contains
* three pieces of data: error code, error message, and error details.
*
* - Simple to use and understand for most users
* - Flexible enough to meet unexpected needs
* You can find out more about this error model and how to work with it in the
* [API Design Guide](https://cloud.google.com/apis/design/errors).
*
* # Overview
*
* The `Status` message contains three pieces of data: error code, error
* message, and error details. The error code should be an enum value of
* google.rpc.Code, but it may accept additional error codes
* if needed. The error message should be a developer-facing English message
* that helps developers *understand* and *resolve* the error. If a localized
* user-facing error message is needed, put the localized message in the error
* details or localize it in the client. The optional error details may contain
* arbitrary information about the error. There is a predefined set of error
* detail types in the package `google.rpc` that can be used for common error
* conditions.
*
* # Language mapping
*
* The `Status` message is the logical representation of the error model, but it
* is not necessarily the actual wire format. When the `Status` message is
* exposed in different client libraries and different wire protocols, it can be
* mapped differently. For example, it will likely be mapped to some exceptions
* in Java, but more likely mapped to some error codes in C.
*
* # Other uses
*
* The error model and the `Status` message can be used in a variety of
* environments, either with or without APIs, to provide a
* consistent developer experience across different environments.
*
* Example uses of this error model include:
*
* - Partial errors. If a service needs to return partial errors to the client,
* it may embed the `Status` in the normal response to indicate the partial
* errors.
*
* - Workflow errors. A typical workflow has multiple steps. Each step may
* have a `Status` message for error reporting.
*
* - Batch operations. If a client uses batch request and batch response, the
* `Status` message should be used directly inside batch response, one for
* each error sub-response.
*
* - Asynchronous operations. If an API call embeds asynchronous operation
* results in its response, the status of those operations should be
* represented directly using the `Status` message.
*
* - Logging. If some API errors are stored in logs, the message `Status` could
* be used directly after any stripping needed for security/privacy reasons.
*
* @property {number} code
* The status code, which should be an enum value of
* google.rpc.Code.
* The status code, which should be an enum value of google.rpc.Code.
*

@@ -81,4 +34,3 @@ * @property {string} message

* user-facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized
* by the client.
* google.rpc.Status.details field, or localized by the client.
*

@@ -85,0 +37,0 @@ * @property {Object[]} details

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -220,3 +220,3 @@ // Licensed under the Apache License, Version 2.0 (the "License");

* @param {Object[]} request.requests
* Individual image annotation requests for this batch.
* Required. Individual image annotation requests for this batch.
*

@@ -223,0 +223,0 @@ * This object should have the same structure as [AnnotateImageRequest]{@link google.cloud.vision.v1p1beta1.AnnotateImageRequest}

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -952,3 +952,3 @@ // Licensed under the Apache License, Version 2.0 (the "License");

* @property {Object[]} requests
* Individual image annotation requests for this batch.
* Required. Individual image annotation requests for this batch.
*

@@ -1033,3 +1033,3 @@ * This object should have the same structure as [AnnotateImageRequest]{@link google.cloud.vision.v1p2beta1.AnnotateImageRequest}

* @property {Object[]} requests
* Individual async file annotation requests for this batch.
* Required. Individual async file annotation requests for this batch.
*

@@ -1036,0 +1036,0 @@ * This object should have the same structure as [AsyncAnnotateFileRequest]{@link google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest}

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -25,3 +25,3 @@ // Licensed under the Apache License, Version 2.0 (the "License");

* originally returns it. If you use the default HTTP mapping, the
* `name` should have the format of `operations/some/unique/name`.
* `name` should be a resource name ending with `operations/{unique_id}`.
*

@@ -28,0 +28,0 @@ * @property {Object} metadata

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -21,57 +21,10 @@ // Licensed under the Apache License, Version 2.0 (the "License");

* different programming environments, including REST APIs and RPC APIs. It is
* used by [gRPC](https://github.com/grpc). The error model is designed to be:
* used by [gRPC](https://github.com/grpc). Each `Status` message contains
* three pieces of data: error code, error message, and error details.
*
* - Simple to use and understand for most users
* - Flexible enough to meet unexpected needs
* You can find out more about this error model and how to work with it in the
* [API Design Guide](https://cloud.google.com/apis/design/errors).
*
* # Overview
*
* The `Status` message contains three pieces of data: error code, error
* message, and error details. The error code should be an enum value of
* google.rpc.Code, but it may accept additional error codes
* if needed. The error message should be a developer-facing English message
* that helps developers *understand* and *resolve* the error. If a localized
* user-facing error message is needed, put the localized message in the error
* details or localize it in the client. The optional error details may contain
* arbitrary information about the error. There is a predefined set of error
* detail types in the package `google.rpc` that can be used for common error
* conditions.
*
* # Language mapping
*
* The `Status` message is the logical representation of the error model, but it
* is not necessarily the actual wire format. When the `Status` message is
* exposed in different client libraries and different wire protocols, it can be
* mapped differently. For example, it will likely be mapped to some exceptions
* in Java, but more likely mapped to some error codes in C.
*
* # Other uses
*
* The error model and the `Status` message can be used in a variety of
* environments, either with or without APIs, to provide a
* consistent developer experience across different environments.
*
* Example uses of this error model include:
*
* - Partial errors. If a service needs to return partial errors to the client,
* it may embed the `Status` in the normal response to indicate the partial
* errors.
*
* - Workflow errors. A typical workflow has multiple steps. Each step may
* have a `Status` message for error reporting.
*
* - Batch operations. If a client uses batch request and batch response, the
* `Status` message should be used directly inside batch response, one for
* each error sub-response.
*
* - Asynchronous operations. If an API call embeds asynchronous operation
* results in its response, the status of those operations should be
* represented directly using the `Status` message.
*
* - Logging. If some API errors are stored in logs, the message `Status` could
* be used directly after any stripping needed for security/privacy reasons.
*
* @property {number} code
* The status code, which should be an enum value of
* google.rpc.Code.
* The status code, which should be an enum value of google.rpc.Code.
*

@@ -81,4 +34,3 @@ * @property {string} message

* user-facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized
* by the client.
* google.rpc.Status.details field, or localized by the client.
*

@@ -85,0 +37,0 @@ * @property {Object[]} details

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -254,3 +254,3 @@ // Licensed under the Apache License, Version 2.0 (the "License");

* @param {Object[]} request.requests
* Individual image annotation requests for this batch.
* Required. Individual image annotation requests for this batch.
*

@@ -309,3 +309,3 @@ * This object should have the same structure as [AnnotateImageRequest]{@link google.cloud.vision.v1p2beta1.AnnotateImageRequest}

* @param {Object[]} request.requests
* Individual async file annotation requests for this batch.
* Required. Individual async file annotation requests for this batch.
*

@@ -312,0 +312,0 @@ * This object should have the same structure as [AsyncAnnotateFileRequest]{@link google.cloud.vision.v1p2beta1.AsyncAnnotateFileRequest}

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -1088,3 +1088,3 @@ // Licensed under the Apache License, Version 2.0 (the "License");

* @property {Object[]} requests
* Individual async file annotation requests for this batch.
* Required. Individual async file annotation requests for this batch.
*

@@ -1091,0 +1091,0 @@ * This object should have the same structure as [AsyncAnnotateFileRequest]{@link google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest}

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -38,7 +38,7 @@ // Licensed under the Apache License, Version 2.0 (the "License");

* @property {string} productCategory
* The category for the product identified by the reference image. This should
* be either "homegoods" or "apparel".
* Immutable. The category for the product identified by the reference image. This should
* be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
* "homegoods", "apparel", and "toys" are still supported, but these should
* not be used for new products.
*
* This field is immutable.
*
* @property {Object[]} productLabels

@@ -140,11 +140,9 @@ * Key-value pairs that can be attached to a product. At query time,

* @property {string} uri
* The Google Cloud Storage URI of the reference image.
* Required. The Google Cloud Storage URI of the reference image.
*
* The URI must start with `gs://`.
*
* Required.
*
* @property {Object[]} boundingPolys
* Bounding polygons around the areas of interest in the reference image.
* Optional. If this field is empty, the system will try to detect regions of
* Optional. Bounding polygons around the areas of interest in the reference image.
* If this field is empty, the system will try to detect regions of
* interest. At most 10 bounding polygons will be used.

@@ -171,3 +169,3 @@ *

* @property {string} parent
* The project in which the Product should be created.
* Required. The project in which the Product should be created.
*

@@ -178,3 +176,3 @@ * Format is

* @property {Object} product
* The product to create.
* Required. The product to create.
*

@@ -201,3 +199,3 @@ * This object should have the same structure as [Product]{@link google.cloud.vision.v1p3beta1.Product}

* @property {string} parent
* The project OR ProductSet from which Products should be listed.
* Required. The project OR ProductSet from which Products should be listed.
*

@@ -245,3 +243,3 @@ * Format:

* @property {string} name
* Resource name of the Product to get.
* Required. Resource name of the Product to get.
*

@@ -263,3 +261,3 @@ * Format is:

* @property {Object} product
* The Product resource which replaces the one on the server.
* Required. The Product resource which replaces the one on the server.
* product.name is immutable.

@@ -273,3 +271,3 @@ *

* If update_mask isn't specified, all mutable fields are to be updated.
* Valid mask paths include `product_labels`, `display_name` and
* Valid mask paths include `product_labels`, `display_name`, and
* `description`.

@@ -291,3 +289,3 @@ *

* @property {string} name
* Resource name of product to delete.
* Required. Resource name of product to delete.
*

@@ -309,3 +307,3 @@ * Format is:

* @property {string} parent
* The project in which the ProductSet should be created.
* Required. The project in which the ProductSet should be created.
*

@@ -315,3 +313,3 @@ * Format is `projects/PROJECT_ID/locations/LOC_ID`.

* @property {Object} productSet
* The ProductSet to create.
* Required. The ProductSet to create.
*

@@ -338,3 +336,3 @@ * This object should have the same structure as [ProductSet]{@link google.cloud.vision.v1p3beta1.ProductSet}

* @property {string} parent
* The project from which ProductSets should be listed.
* Required. The project from which ProductSets should be listed.
*

@@ -381,6 +379,6 @@ * Format is `projects/PROJECT_ID/locations/LOC_ID`.

* @property {string} name
* Resource name of the ProductSet to get.
* Required. Resource name of the ProductSet to get.
*
* Format is:
* `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
* `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
*

@@ -399,3 +397,3 @@ * @typedef GetProductSetRequest

* @property {Object} productSet
* The ProductSet resource which replaces the one on the server.
* Required. The ProductSet resource which replaces the one on the server.
*

@@ -424,3 +422,3 @@ * This object should have the same structure as [ProductSet]{@link google.cloud.vision.v1p3beta1.ProductSet}

* @property {string} name
* Resource name of the ProductSet to delete.
* Required. Resource name of the ProductSet to delete.
*

@@ -442,3 +440,3 @@ * Format is:

* @property {string} parent
* Resource name of the product in which to create the reference image.
* Required. Resource name of the product in which to create the reference image.
*

@@ -449,3 +447,3 @@ * Format is

* @property {Object} referenceImage
* The reference image to create.
* Required. The reference image to create.
* If an image ID is specified, it is ignored.

@@ -473,3 +471,3 @@ *

* @property {string} parent
* Resource name of the product containing the reference images.
* Required. Resource name of the product containing the reference images.
*

@@ -522,3 +520,3 @@ * Format is

* @property {string} name
* The resource name of the ReferenceImage to get.
* Required. The resource name of the ReferenceImage to get.
*

@@ -541,3 +539,3 @@ * Format is:

* @property {string} name
* The resource name of the reference image to delete.
* Required. The resource name of the reference image to delete.
*

@@ -560,3 +558,3 @@ * Format is:

* @property {string} name
* The resource name for the ProductSet to modify.
* Required. The resource name for the ProductSet to modify.
*

@@ -567,3 +565,3 @@ * Format is:

* @property {string} product
* The resource name for the Product to be added to this ProductSet.
* Required. The resource name for the Product to be added to this ProductSet.
*

@@ -585,3 +583,3 @@ * Format is:

* @property {string} name
* The resource name for the ProductSet to modify.
* Required. The resource name for the ProductSet to modify.
*

@@ -592,3 +590,3 @@ * Format is:

* @property {string} product
* The resource name for the Product to be removed from this ProductSet.
* Required. The resource name for the Product to be removed from this ProductSet.
*

@@ -610,3 +608,3 @@ * Format is:

* @property {string} name
* The ProductSet resource for which to retrieve Products.
* Required. The ProductSet resource for which to retrieve Products.
*

@@ -657,3 +655,3 @@ * Format is:

*
* The URI must start with gs://
* The URI must start with `gs://`.
*

@@ -743,3 +741,3 @@ * The format of the input csv file should be one image per line.

* @property {string} parent
* The project in which the ProductSets should be imported.
* Required. The project in which the ProductSets should be imported.
*

@@ -749,3 +747,3 @@ * Format is `projects/PROJECT_ID/locations/LOC_ID`.

* @property {Object} inputConfig
* The input content for the list of requests.
* Required. The input content for the list of requests.
*

@@ -752,0 +750,0 @@ * This object should have the same structure as [ImportProductSetsInputConfig]{@link google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig}

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -25,3 +25,3 @@ // Licensed under the Apache License, Version 2.0 (the "License");

* originally returns it. If you use the default HTTP mapping, the
* `name` should have the format of `operations/some/unique/name`.
* `name` should be a resource name ending with `operations/{unique_id}`.
*

@@ -28,0 +28,0 @@ * @property {Object} metadata

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -21,57 +21,10 @@ // Licensed under the Apache License, Version 2.0 (the "License");

* different programming environments, including REST APIs and RPC APIs. It is
* used by [gRPC](https://github.com/grpc). The error model is designed to be:
* used by [gRPC](https://github.com/grpc). Each `Status` message contains
* three pieces of data: error code, error message, and error details.
*
* - Simple to use and understand for most users
* - Flexible enough to meet unexpected needs
* You can find out more about this error model and how to work with it in the
* [API Design Guide](https://cloud.google.com/apis/design/errors).
*
* # Overview
*
* The `Status` message contains three pieces of data: error code, error
* message, and error details. The error code should be an enum value of
* google.rpc.Code, but it may accept additional error codes
* if needed. The error message should be a developer-facing English message
* that helps developers *understand* and *resolve* the error. If a localized
* user-facing error message is needed, put the localized message in the error
* details or localize it in the client. The optional error details may contain
* arbitrary information about the error. There is a predefined set of error
* detail types in the package `google.rpc` that can be used for common error
* conditions.
*
* # Language mapping
*
* The `Status` message is the logical representation of the error model, but it
* is not necessarily the actual wire format. When the `Status` message is
* exposed in different client libraries and different wire protocols, it can be
* mapped differently. For example, it will likely be mapped to some exceptions
* in Java, but more likely mapped to some error codes in C.
*
* # Other uses
*
* The error model and the `Status` message can be used in a variety of
* environments, either with or without APIs, to provide a
* consistent developer experience across different environments.
*
* Example uses of this error model include:
*
* - Partial errors. If a service needs to return partial errors to the client,
* it may embed the `Status` in the normal response to indicate the partial
* errors.
*
* - Workflow errors. A typical workflow has multiple steps. Each step may
* have a `Status` message for error reporting.
*
* - Batch operations. If a client uses batch request and batch response, the
* `Status` message should be used directly inside batch response, one for
* each error sub-response.
*
* - Asynchronous operations. If an API call embeds asynchronous operation
* results in its response, the status of those operations should be
* represented directly using the `Status` message.
*
* - Logging. If some API errors are stored in logs, the message `Status` could
* be used directly after any stripping needed for security/privacy reasons.
*
* @property {number} code
* The status code, which should be an enum value of
* google.rpc.Code.
* The status code, which should be an enum value of google.rpc.Code.
*

@@ -81,4 +34,3 @@ * @property {string} message

* user-facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized
* by the client.
* google.rpc.Status.details field, or localized by the client.
*

@@ -85,0 +37,0 @@ * @property {Object[]} details

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -308,3 +308,3 @@ // Licensed under the Apache License, Version 2.0 (the "License");

* @param {Object[]} request.requests
* Individual async file annotation requests for this batch.
* Required. Individual async file annotation requests for this batch.
*

@@ -311,0 +311,0 @@ * This object should have the same structure as [AsyncAnnotateFileRequest]{@link google.cloud.vision.v1p3beta1.AsyncAnnotateFileRequest}

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -1000,3 +1000,3 @@ // Licensed under the Apache License, Version 2.0 (the "License");

* @property {Object[]} requests
* Individual image annotation requests for this batch.
* Required. Individual image annotation requests for this batch.
*

@@ -1003,0 +1003,0 @@ * This object should have the same structure as [AnnotateImageRequest]{@link google.cloud.vision.v1p4beta1.AnnotateImageRequest}

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -375,3 +375,3 @@ // Licensed under the Apache License, Version 2.0 (the "License");

* Format is:
* `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
* `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
*

@@ -378,0 +378,0 @@ * @typedef GetProductSetRequest

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -25,3 +25,3 @@ // Licensed under the Apache License, Version 2.0 (the "License");

* originally returns it. If you use the default HTTP mapping, the
* `name` should have the format of `operations/some/unique/name`.
* `name` should be a resource name ending with `operations/{unique_id}`.
*

@@ -28,0 +28,0 @@ * @property {Object} metadata

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -21,57 +21,10 @@ // Licensed under the Apache License, Version 2.0 (the "License");

* different programming environments, including REST APIs and RPC APIs. It is
* used by [gRPC](https://github.com/grpc). The error model is designed to be:
* used by [gRPC](https://github.com/grpc). Each `Status` message contains
* three pieces of data: error code, error message, and error details.
*
* - Simple to use and understand for most users
* - Flexible enough to meet unexpected needs
* You can find out more about this error model and how to work with it in the
* [API Design Guide](https://cloud.google.com/apis/design/errors).
*
* # Overview
*
* The `Status` message contains three pieces of data: error code, error
* message, and error details. The error code should be an enum value of
* google.rpc.Code, but it may accept additional error codes
* if needed. The error message should be a developer-facing English message
* that helps developers *understand* and *resolve* the error. If a localized
* user-facing error message is needed, put the localized message in the error
* details or localize it in the client. The optional error details may contain
* arbitrary information about the error. There is a predefined set of error
* detail types in the package `google.rpc` that can be used for common error
* conditions.
*
* # Language mapping
*
* The `Status` message is the logical representation of the error model, but it
* is not necessarily the actual wire format. When the `Status` message is
* exposed in different client libraries and different wire protocols, it can be
* mapped differently. For example, it will likely be mapped to some exceptions
* in Java, but more likely mapped to some error codes in C.
*
* # Other uses
*
* The error model and the `Status` message can be used in a variety of
* environments, either with or without APIs, to provide a
* consistent developer experience across different environments.
*
* Example uses of this error model include:
*
* - Partial errors. If a service needs to return partial errors to the client,
* it may embed the `Status` in the normal response to indicate the partial
* errors.
*
* - Workflow errors. A typical workflow has multiple steps. Each step may
* have a `Status` message for error reporting.
*
* - Batch operations. If a client uses batch request and batch response, the
* `Status` message should be used directly inside batch response, one for
* each error sub-response.
*
* - Asynchronous operations. If an API call embeds asynchronous operation
* results in its response, the status of those operations should be
* represented directly using the `Status` message.
*
* - Logging. If some API errors are stored in logs, the message `Status` could
* be used directly after any stripping needed for security/privacy reasons.
*
* @property {number} code
* The status code, which should be an enum value of
* google.rpc.Code.
* The status code, which should be an enum value of google.rpc.Code.
*

@@ -81,4 +34,3 @@ * @property {string} message

* user-facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized
* by the client.
* google.rpc.Status.details field, or localized by the client.
*

@@ -85,0 +37,0 @@ * @property {Object[]} details

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -271,3 +271,3 @@ // Licensed under the Apache License, Version 2.0 (the "License");

* @param {Object[]} request.requests
* Individual image annotation requests for this batch.
* Required. Individual image annotation requests for this batch.
*

@@ -274,0 +274,0 @@ * This object should have the same structure as [AnnotateImageRequest]{@link google.cloud.vision.v1p4beta1.AnnotateImageRequest}

@@ -1,2 +0,2 @@

// Copyright 2019 Google LLC
// Copyright 2020 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc