google-apis-vision_v1p1beta1 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec002b0ed3f7e409d766c3d5e274610a761473d03296e279701d9262405839bc
4
- data.tar.gz: 6ae67bd4004fe8d47bb46dc26e62753f6bf476988cfe34c025c5d2478f49ea5f
3
+ metadata.gz: 6ee018401ac22f10466c996edf02eeb276148a814b82446a36ea577d2dcbb208
4
+ data.tar.gz: d9d479c8d932c9a66cf6d141e17924f27e4fad60b15619b5cef5f25bdf283eae
5
5
  SHA512:
6
- metadata.gz: 20add9c26fbfa384f915c9970ba4e038bc7364d34cffeb4c749db477065ec17043abde2e1b82edbca78c36e7ecf83b82200de7c68cd10df4e57ecd847b58a5c5
7
- data.tar.gz: 4106ab46c2e450787d3fe958c519cfc4de47e541891792c97c8b66e4ff2abd3e34c4d0f4d92bcb2a3548ffbd85005a5c301fd7fafa75a0a529d0195bd6fb3bdd
6
+ metadata.gz: f1e91ee2d1f68b23bb7672d62f4677c5fb76e7cb826e49bc8ab8af8106c6fd96a8f0338abca078bf608d06940fac11054a76f2695fd440b02c83a2f9483e65c4
7
+ data.tar.gz: c8dcc3892e867536f78a574c5d777d8e47a78056fafee8af5b6915cc2148c72291bdd7d1edb6e837254f58705a524ce61c2e4277a29fe4aae208f37c002af325
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-vision_v1p1beta1
2
2
 
3
+ ### v0.2.0 (2021-02-10)
4
+
5
+ * Regenerated from discovery document revision 20210209
6
+ * Regenerated using generator version 0.1.2
7
+
3
8
  ### v0.1.0 (2021-01-07)
4
9
 
5
10
  * Regenerated using generator version 0.1.1
@@ -1979,6 +1979,12 @@ module Google
1979
1979
  # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ProductSearchParams]
1980
1980
  attr_accessor :product_search_params
1981
1981
 
1982
+ # Parameters for text detections. This is used to control TEXT_DETECTION and
1983
+ # DOCUMENT_TEXT_DETECTION features.
1984
+ # Corresponds to the JSON property `textDetectionParams`
1985
+ # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1TextDetectionParams]
1986
+ attr_accessor :text_detection_params
1987
+
1982
1988
  # Parameters for web detection request.
1983
1989
  # Corresponds to the JSON property `webDetectionParams`
1984
1990
  # @return [Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1WebDetectionParams]
@@ -1994,6 +2000,7 @@ module Google
1994
2000
  @language_hints = args[:language_hints] if args.key?(:language_hints)
1995
2001
  @lat_long_rect = args[:lat_long_rect] if args.key?(:lat_long_rect)
1996
2002
  @product_search_params = args[:product_search_params] if args.key?(:product_search_params)
2003
+ @text_detection_params = args[:text_detection_params] if args.key?(:text_detection_params)
1997
2004
  @web_detection_params = args[:web_detection_params] if args.key?(:web_detection_params)
1998
2005
  end
1999
2006
  end
@@ -2887,6 +2894,29 @@ module Google
2887
2894
  end
2888
2895
  end
2889
2896
 
2897
+ # Parameters for text detections. This is used to control TEXT_DETECTION and
2898
+ # DOCUMENT_TEXT_DETECTION features.
2899
+ class GoogleCloudVisionV1p1beta1TextDetectionParams
2900
+ include Google::Apis::Core::Hashable
2901
+
2902
+ # By default, Cloud Vision API only includes confidence score for
2903
+ # DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
2904
+ # score for TEXT_DETECTION as well.
2905
+ # Corresponds to the JSON property `enableTextDetectionConfidenceScore`
2906
+ # @return [Boolean]
2907
+ attr_accessor :enable_text_detection_confidence_score
2908
+ alias_method :enable_text_detection_confidence_score?, :enable_text_detection_confidence_score
2909
+
2910
+ def initialize(**args)
2911
+ update!(**args)
2912
+ end
2913
+
2914
+ # Update properties of this object
2915
+ def update!(**args)
2916
+ @enable_text_detection_confidence_score = args[:enable_text_detection_confidence_score] if args.key?(:enable_text_detection_confidence_score)
2917
+ end
2918
+ end
2919
+
2890
2920
  # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are
2891
2921
  # in the same scale as the original image.
2892
2922
  class GoogleCloudVisionV1p1beta1Vertex
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module VisionV1p1beta1
18
18
  # Version of the google-apis-vision_v1p1beta1 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.2.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.1.2"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201023"
25
+ REVISION = "20210209"
26
26
  end
27
27
  end
28
28
  end
@@ -472,6 +472,12 @@ module Google
472
472
  include Google::Apis::Core::JsonObjectSupport
473
473
  end
474
474
 
475
+ class GoogleCloudVisionV1p1beta1TextDetectionParams
476
+ class Representation < Google::Apis::Core::JsonRepresentation; end
477
+
478
+ include Google::Apis::Core::JsonObjectSupport
479
+ end
480
+
475
481
  class GoogleCloudVisionV1p1beta1Vertex
476
482
  class Representation < Google::Apis::Core::JsonRepresentation; end
477
483
 
@@ -2172,6 +2178,8 @@ module Google
2172
2178
 
2173
2179
  property :product_search_params, as: 'productSearchParams', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ProductSearchParams, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1ProductSearchParams::Representation
2174
2180
 
2181
+ property :text_detection_params, as: 'textDetectionParams', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1TextDetectionParams, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1TextDetectionParams::Representation
2182
+
2175
2183
  property :web_detection_params, as: 'webDetectionParams', class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1WebDetectionParams, decorator: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1WebDetectionParams::Representation
2176
2184
 
2177
2185
  end
@@ -2435,6 +2443,13 @@ module Google
2435
2443
  end
2436
2444
  end
2437
2445
 
2446
+ class GoogleCloudVisionV1p1beta1TextDetectionParams
2447
+ # @private
2448
+ class Representation < Google::Apis::Core::JsonRepresentation
2449
+ property :enable_text_detection_confidence_score, as: 'enableTextDetectionConfidenceScore'
2450
+ end
2451
+ end
2452
+
2438
2453
  class GoogleCloudVisionV1p1beta1Vertex
2439
2454
  # @private
2440
2455
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-vision_v1p1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-08 00:00:00.000000000 Z
11
+ date: 2021-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-vision_v1p1beta1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-vision_v1p1beta1/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-vision_v1p1beta1/v0.2.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-vision_v1p1beta1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.6
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Cloud Vision API V1p1beta1