google-apis-vision_v1 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: d80928b70b9361a260732f66eedc040d2059fe2734249592b60fa712e573cbff
4
- data.tar.gz: 2e57c0bff9ab5331db1180f1981ac26f6695fca2bc98bb34c0fdc148dd137483
3
+ metadata.gz: 39142b75b02c3124d1db2fa5eef08bba24afb4da4cb40320c264a2e20d8be0c5
4
+ data.tar.gz: 4dd1a48977dc9a7ca862502af8bd54a45d144fe0ab7d7a6e8a14efbdbc81db55
5
5
  SHA512:
6
- metadata.gz: 44808ada4081cb7b99bdc6d6852ad39b02130c9492b2d5a8eb18a5a63a5c94f80a8b4bb38313d7471a0a6159d00c17234911371cdc972ffdac0b56f4c2bc85ec
7
- data.tar.gz: 14d90553c0e9426afdf47810ac11be01f50bf212cdf169487bdb5f9fb7dbeff9bf1e0a1b26a71a9daf89eefea2985e52a8451520d2094c854a81a41db41bd374
6
+ metadata.gz: 06b0dd0c046fc2421524998c289ae8e9013ee6f5cd13a99414cee8a20de2db3ae3b47b550ed6c712fcc1e1e8e2c522274978de31d5c8542b2a8b4a9159f137bb
7
+ data.tar.gz: 82636806e5d0130f15c291b437ed2ca42e21069a22d36496de3ba44d3ee8b4fee4b147a8149f84d354eaea0fffd4de33da08bdab7544e00dad440e7f3934c437
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-vision_v1
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
@@ -8557,6 +8557,12 @@ module Google
8557
8557
  # @return [Google::Apis::VisionV1::ProductSearchParams]
8558
8558
  attr_accessor :product_search_params
8559
8559
 
8560
+ # Parameters for text detections. This is used to control TEXT_DETECTION and
8561
+ # DOCUMENT_TEXT_DETECTION features.
8562
+ # Corresponds to the JSON property `textDetectionParams`
8563
+ # @return [Google::Apis::VisionV1::TextDetectionParams]
8564
+ attr_accessor :text_detection_params
8565
+
8560
8566
  # Parameters for web detection request.
8561
8567
  # Corresponds to the JSON property `webDetectionParams`
8562
8568
  # @return [Google::Apis::VisionV1::WebDetectionParams]
@@ -8572,6 +8578,7 @@ module Google
8572
8578
  @language_hints = args[:language_hints] if args.key?(:language_hints)
8573
8579
  @lat_long_rect = args[:lat_long_rect] if args.key?(:lat_long_rect)
8574
8580
  @product_search_params = args[:product_search_params] if args.key?(:product_search_params)
8581
+ @text_detection_params = args[:text_detection_params] if args.key?(:text_detection_params)
8575
8582
  @web_detection_params = args[:web_detection_params] if args.key?(:web_detection_params)
8576
8583
  end
8577
8584
  end
@@ -9932,6 +9939,29 @@ module Google
9932
9939
  end
9933
9940
  end
9934
9941
 
9942
+ # Parameters for text detections. This is used to control TEXT_DETECTION and
9943
+ # DOCUMENT_TEXT_DETECTION features.
9944
+ class TextDetectionParams
9945
+ include Google::Apis::Core::Hashable
9946
+
9947
+ # By default, Cloud Vision API only includes confidence score for
9948
+ # DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
9949
+ # score for TEXT_DETECTION as well.
9950
+ # Corresponds to the JSON property `enableTextDetectionConfidenceScore`
9951
+ # @return [Boolean]
9952
+ attr_accessor :enable_text_detection_confidence_score
9953
+ alias_method :enable_text_detection_confidence_score?, :enable_text_detection_confidence_score
9954
+
9955
+ def initialize(**args)
9956
+ update!(**args)
9957
+ end
9958
+
9959
+ # Update properties of this object
9960
+ def update!(**args)
9961
+ @enable_text_detection_confidence_score = args[:enable_text_detection_confidence_score] if args.key?(:enable_text_detection_confidence_score)
9962
+ end
9963
+ end
9964
+
9935
9965
  # Additional information detected on the structural component.
9936
9966
  class TextProperty
9937
9967
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module VisionV1
18
18
  # Version of the google-apis-vision_v1 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
@@ -1648,6 +1648,12 @@ module Google
1648
1648
  include Google::Apis::Core::JsonObjectSupport
1649
1649
  end
1650
1650
 
1651
+ class TextDetectionParams
1652
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1653
+
1654
+ include Google::Apis::Core::JsonObjectSupport
1655
+ end
1656
+
1651
1657
  class TextProperty
1652
1658
  class Representation < Google::Apis::Core::JsonRepresentation; end
1653
1659
 
@@ -4193,6 +4199,8 @@ module Google
4193
4199
 
4194
4200
  property :product_search_params, as: 'productSearchParams', class: Google::Apis::VisionV1::ProductSearchParams, decorator: Google::Apis::VisionV1::ProductSearchParams::Representation
4195
4201
 
4202
+ property :text_detection_params, as: 'textDetectionParams', class: Google::Apis::VisionV1::TextDetectionParams, decorator: Google::Apis::VisionV1::TextDetectionParams::Representation
4203
+
4196
4204
  property :web_detection_params, as: 'webDetectionParams', class: Google::Apis::VisionV1::WebDetectionParams, decorator: Google::Apis::VisionV1::WebDetectionParams::Representation
4197
4205
 
4198
4206
  end
@@ -4580,6 +4588,13 @@ module Google
4580
4588
  end
4581
4589
  end
4582
4590
 
4591
+ class TextDetectionParams
4592
+ # @private
4593
+ class Representation < Google::Apis::Core::JsonRepresentation
4594
+ property :enable_text_detection_confidence_score, as: 'enableTextDetectionConfidenceScore'
4595
+ end
4596
+ end
4597
+
4583
4598
  class TextProperty
4584
4599
  # @private
4585
4600
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-vision_v1
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_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-vision_v1/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-vision_v1/v0.2.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-vision_v1
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 V1