Skip to content

Commit 4de577b

Browse files
feat(vision): update the api
#### vision:v1 The following keys were added: - schemas.AsyncBatchAnnotateFilesRequest.properties.labels (Total Keys: 2) - schemas.AsyncBatchAnnotateImagesRequest.properties.labels (Total Keys: 2) - schemas.BatchAnnotateFilesRequest.properties.labels (Total Keys: 2) - schemas.BatchAnnotateImagesRequest.properties.labels (Total Keys: 2) #### vision:v1p2beta1 The following keys were added: - schemas.GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesRequest.properties.labels (Total Keys: 2) - schemas.GoogleCloudVisionV1p2beta1AsyncBatchAnnotateImagesRequest.properties.labels (Total Keys: 2) - schemas.GoogleCloudVisionV1p2beta1BatchAnnotateFilesRequest.properties.labels (Total Keys: 2) - schemas.GoogleCloudVisionV1p2beta1BatchAnnotateImagesRequest.properties.labels (Total Keys: 2)
1 parent 7d2dfac commit 4de577b

14 files changed

+130
-2
lines changed

docs/dyn/vision_v1.files.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ <h3>Method Details</h3>
9393
The object takes the form of:
9494

9595
{ # A list of requests to annotate files using the BatchAnnotateFiles API.
96+
&quot;labels&quot;: { # Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
97+
&quot;a_key&quot;: &quot;A String&quot;,
98+
},
9699
&quot;parent&quot;: &quot;A String&quot;, # Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`.
97100
&quot;requests&quot;: [ # Required. The list of file annotation requests. Right now we support only one AnnotateFileRequest in BatchAnnotateFilesRequest.
98101
{ # A request to annotate one single file, e.g. a PDF, TIFF or GIF file.
@@ -768,6 +771,9 @@ <h3>Method Details</h3>
768771
The object takes the form of:
769772

770773
{ # Multiple async file annotation requests are batched into a single service call.
774+
&quot;labels&quot;: { # Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
775+
&quot;a_key&quot;: &quot;A String&quot;,
776+
},
771777
&quot;parent&quot;: &quot;A String&quot;, # Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`.
772778
&quot;requests&quot;: [ # Required. Individual async file annotation requests for this batch.
773779
{ # An offline file annotation request.

docs/dyn/vision_v1.images.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ <h3>Method Details</h3>
9393
The object takes the form of:
9494

9595
{ # Multiple image annotation requests are batched into a single service call.
96+
&quot;labels&quot;: { # Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
97+
&quot;a_key&quot;: &quot;A String&quot;,
98+
},
9699
&quot;parent&quot;: &quot;A String&quot;, # Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`.
97100
&quot;requests&quot;: [ # Required. Individual image annotation requests for this batch.
98101
{ # Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features, and with context information.
@@ -744,6 +747,9 @@ <h3>Method Details</h3>
744747
The object takes the form of:
745748

746749
{ # Request for async image annotation for a list of images.
750+
&quot;labels&quot;: { # Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
751+
&quot;a_key&quot;: &quot;A String&quot;,
752+
},
747753
&quot;outputConfig&quot;: { # The desired output location and metadata. # Required. The desired output location and metadata (e.g. format).
748754
&quot;batchSize&quot;: 42, # The max number of response protos to put into each output JSON file on Google Cloud Storage. The valid range is [1, 100]. If not specified, the default value is 20. For example, for one pdf file with 100 pages, 100 response protos will be generated. If `batch_size` = 20, then 5 json files each containing 20 response protos will be written under the prefix `gcs_destination`.`uri`. Currently, batch_size only applies to GcsDestination, with potential future support for other output configurations.
749755
&quot;gcsDestination&quot;: { # The Google Cloud Storage location where the output will be written to. # The Google Cloud Storage location to write the output(s) to.

docs/dyn/vision_v1.projects.files.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ <h3>Method Details</h3>
9494
The object takes the form of:
9595

9696
{ # A list of requests to annotate files using the BatchAnnotateFiles API.
97+
&quot;labels&quot;: { # Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
98+
&quot;a_key&quot;: &quot;A String&quot;,
99+
},
97100
&quot;parent&quot;: &quot;A String&quot;, # Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`.
98101
&quot;requests&quot;: [ # Required. The list of file annotation requests. Right now we support only one AnnotateFileRequest in BatchAnnotateFilesRequest.
99102
{ # A request to annotate one single file, e.g. a PDF, TIFF or GIF file.
@@ -770,6 +773,9 @@ <h3>Method Details</h3>
770773
The object takes the form of:
771774

772775
{ # Multiple async file annotation requests are batched into a single service call.
776+
&quot;labels&quot;: { # Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
777+
&quot;a_key&quot;: &quot;A String&quot;,
778+
},
773779
&quot;parent&quot;: &quot;A String&quot;, # Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`.
774780
&quot;requests&quot;: [ # Required. Individual async file annotation requests for this batch.
775781
{ # An offline file annotation request.

docs/dyn/vision_v1.projects.images.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ <h3>Method Details</h3>
9494
The object takes the form of:
9595

9696
{ # Multiple image annotation requests are batched into a single service call.
97+
&quot;labels&quot;: { # Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
98+
&quot;a_key&quot;: &quot;A String&quot;,
99+
},
97100
&quot;parent&quot;: &quot;A String&quot;, # Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`.
98101
&quot;requests&quot;: [ # Required. Individual image annotation requests for this batch.
99102
{ # Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features, and with context information.
@@ -746,6 +749,9 @@ <h3>Method Details</h3>
746749
The object takes the form of:
747750

748751
{ # Request for async image annotation for a list of images.
752+
&quot;labels&quot;: { # Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
753+
&quot;a_key&quot;: &quot;A String&quot;,
754+
},
749755
&quot;outputConfig&quot;: { # The desired output location and metadata. # Required. The desired output location and metadata (e.g. format).
750756
&quot;batchSize&quot;: 42, # The max number of response protos to put into each output JSON file on Google Cloud Storage. The valid range is [1, 100]. If not specified, the default value is 20. For example, for one pdf file with 100 pages, 100 response protos will be generated. If `batch_size` = 20, then 5 json files each containing 20 response protos will be written under the prefix `gcs_destination`.`uri`. Currently, batch_size only applies to GcsDestination, with potential future support for other output configurations.
751757
&quot;gcsDestination&quot;: { # The Google Cloud Storage location where the output will be written to. # The Google Cloud Storage location to write the output(s) to.

docs/dyn/vision_v1.projects.locations.files.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ <h3>Method Details</h3>
9494
The object takes the form of:
9595

9696
{ # A list of requests to annotate files using the BatchAnnotateFiles API.
97+
&quot;labels&quot;: { # Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
98+
&quot;a_key&quot;: &quot;A String&quot;,
99+
},
97100
&quot;parent&quot;: &quot;A String&quot;, # Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`.
98101
&quot;requests&quot;: [ # Required. The list of file annotation requests. Right now we support only one AnnotateFileRequest in BatchAnnotateFilesRequest.
99102
{ # A request to annotate one single file, e.g. a PDF, TIFF or GIF file.
@@ -770,6 +773,9 @@ <h3>Method Details</h3>
770773
The object takes the form of:
771774

772775
{ # Multiple async file annotation requests are batched into a single service call.
776+
&quot;labels&quot;: { # Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
777+
&quot;a_key&quot;: &quot;A String&quot;,
778+
},
773779
&quot;parent&quot;: &quot;A String&quot;, # Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`.
774780
&quot;requests&quot;: [ # Required. Individual async file annotation requests for this batch.
775781
{ # An offline file annotation request.

docs/dyn/vision_v1.projects.locations.images.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ <h3>Method Details</h3>
9494
The object takes the form of:
9595

9696
{ # Multiple image annotation requests are batched into a single service call.
97+
&quot;labels&quot;: { # Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
98+
&quot;a_key&quot;: &quot;A String&quot;,
99+
},
97100
&quot;parent&quot;: &quot;A String&quot;, # Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`.
98101
&quot;requests&quot;: [ # Required. Individual image annotation requests for this batch.
99102
{ # Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features, and with context information.
@@ -746,6 +749,9 @@ <h3>Method Details</h3>
746749
The object takes the form of:
747750

748751
{ # Request for async image annotation for a list of images.
752+
&quot;labels&quot;: { # Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
753+
&quot;a_key&quot;: &quot;A String&quot;,
754+
},
749755
&quot;outputConfig&quot;: { # The desired output location and metadata. # Required. The desired output location and metadata (e.g. format).
750756
&quot;batchSize&quot;: 42, # The max number of response protos to put into each output JSON file on Google Cloud Storage. The valid range is [1, 100]. If not specified, the default value is 20. For example, for one pdf file with 100 pages, 100 response protos will be generated. If `batch_size` = 20, then 5 json files each containing 20 response protos will be written under the prefix `gcs_destination`.`uri`. Currently, batch_size only applies to GcsDestination, with potential future support for other output configurations.
751757
&quot;gcsDestination&quot;: { # The Google Cloud Storage location where the output will be written to. # The Google Cloud Storage location to write the output(s) to.

docs/dyn/vision_v1p2beta1.files.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ <h3>Method Details</h3>
9393
The object takes the form of:
9494

9595
{ # A list of requests to annotate files using the BatchAnnotateFiles API.
96+
&quot;labels&quot;: { # Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
97+
&quot;a_key&quot;: &quot;A String&quot;,
98+
},
9699
&quot;parent&quot;: &quot;A String&quot;, # Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`.
97100
&quot;requests&quot;: [ # Required. The list of file annotation requests. Right now we support only one AnnotateFileRequest in BatchAnnotateFilesRequest.
98101
{ # A request to annotate one single file, e.g. a PDF, TIFF or GIF file.
@@ -768,6 +771,9 @@ <h3>Method Details</h3>
768771
The object takes the form of:
769772

770773
{ # Multiple async file annotation requests are batched into a single service call.
774+
&quot;labels&quot;: { # Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
775+
&quot;a_key&quot;: &quot;A String&quot;,
776+
},
771777
&quot;parent&quot;: &quot;A String&quot;, # Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`.
772778
&quot;requests&quot;: [ # Required. Individual async file annotation requests for this batch.
773779
{ # An offline file annotation request.

docs/dyn/vision_v1p2beta1.images.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ <h3>Method Details</h3>
9393
The object takes the form of:
9494

9595
{ # Multiple image annotation requests are batched into a single service call.
96+
&quot;labels&quot;: { # Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
97+
&quot;a_key&quot;: &quot;A String&quot;,
98+
},
9699
&quot;parent&quot;: &quot;A String&quot;, # Optional. Target project and location to make a call. Format: `projects/{project-id}/locations/{location-id}`. If no parent is specified, a region will be chosen automatically. Supported location-ids: `us`: USA country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The European Union. Example: `projects/project-A/locations/eu`.
97100
&quot;requests&quot;: [ # Required. Individual image annotation requests for this batch.
98101
{ # Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features, and with context information.
@@ -744,6 +747,9 @@ <h3>Method Details</h3>
744747
The object takes the form of:
745748

746749
{ # Request for async image annotation for a list of images.
750+
&quot;labels&quot;: { # Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
751+
&quot;a_key&quot;: &quot;A String&quot;,
752+
},
747753
&quot;outputConfig&quot;: { # The desired output location and metadata. # Required. The desired output location and metadata (e.g. format).
748754
&quot;batchSize&quot;: 42, # The max number of response protos to put into each output JSON file on Google Cloud Storage. The valid range is [1, 100]. If not specified, the default value is 20. For example, for one pdf file with 100 pages, 100 response protos will be generated. If `batch_size` = 20, then 5 json files each containing 20 response protos will be written under the prefix `gcs_destination`.`uri`. Currently, batch_size only applies to GcsDestination, with potential future support for other output configurations.
749755
&quot;gcsDestination&quot;: { # The Google Cloud Storage location where the output will be written to. # The Google Cloud Storage location to write the output(s) to.

0 commit comments

Comments
 (0)