google-apis-vision_v1p2beta1 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eba59949cb0c4205c6a904c4469f876a53f7e68736fdad20fd05df1710b3070f
4
- data.tar.gz: 679759d7bf2175131f2bd770ab9bbab3afa4f54f36795f83cf7f26282ddfd6d6
3
+ metadata.gz: 419d9504493b32a43e6a4c880c4848ec4c9e9d210aaea4ae0703ca7b34525d32
4
+ data.tar.gz: 86c406c02f54ad9e61bea738a56e57c3106ada00b83d1f68d06c6853c4ad6a8f
5
5
  SHA512:
6
- metadata.gz: f56d43be86680a50e8859c544879bf7e083cf8f06cb4f216864ce6e078f713e0fa26d82df593b00977c59d0ef299f9afee9c397fed8f4d6874f6691e24ee4abd
7
- data.tar.gz: 5837468d9a7707865cd6b9bd70a6e458f919c1c1ebf7e0983d8f556a75ebeff3181c1a184f76a49436dcc8038787b1b3f880b8744aacb4ce0cecc0701f6bdd41
6
+ metadata.gz: 68748f4749218e209b63da4cc617e891a2bb34d371ccbc61331fabf0a4c230efe30a22ab8ffdf4f942ddd5e966e319e2db9032c704ac7b7d03a22a141502afaa
7
+ data.tar.gz: 7048141f23a1ee44865599178c89efd04eaaae04e51ad5325ca457d36fc82deea1f5e8a0f09f71e6d9eb037e9be82450150b8f391bdd11467f816426335b77d5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-vision_v1p2beta1
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
@@ -3699,6 +3699,12 @@ module Google
3699
3699
  # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ProductSearchParams]
3700
3700
  attr_accessor :product_search_params
3701
3701
 
3702
+ # Parameters for text detections. This is used to control TEXT_DETECTION and
3703
+ # DOCUMENT_TEXT_DETECTION features.
3704
+ # Corresponds to the JSON property `textDetectionParams`
3705
+ # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1TextDetectionParams]
3706
+ attr_accessor :text_detection_params
3707
+
3702
3708
  # Parameters for web detection request.
3703
3709
  # Corresponds to the JSON property `webDetectionParams`
3704
3710
  # @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetectionParams]
@@ -3714,6 +3720,7 @@ module Google
3714
3720
  @language_hints = args[:language_hints] if args.key?(:language_hints)
3715
3721
  @lat_long_rect = args[:lat_long_rect] if args.key?(:lat_long_rect)
3716
3722
  @product_search_params = args[:product_search_params] if args.key?(:product_search_params)
3723
+ @text_detection_params = args[:text_detection_params] if args.key?(:text_detection_params)
3717
3724
  @web_detection_params = args[:web_detection_params] if args.key?(:web_detection_params)
3718
3725
  end
3719
3726
  end
@@ -4607,6 +4614,29 @@ module Google
4607
4614
  end
4608
4615
  end
4609
4616
 
4617
+ # Parameters for text detections. This is used to control TEXT_DETECTION and
4618
+ # DOCUMENT_TEXT_DETECTION features.
4619
+ class GoogleCloudVisionV1p2beta1TextDetectionParams
4620
+ include Google::Apis::Core::Hashable
4621
+
4622
+ # By default, Cloud Vision API only includes confidence score for
4623
+ # DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
4624
+ # score for TEXT_DETECTION as well.
4625
+ # Corresponds to the JSON property `enableTextDetectionConfidenceScore`
4626
+ # @return [Boolean]
4627
+ attr_accessor :enable_text_detection_confidence_score
4628
+ alias_method :enable_text_detection_confidence_score?, :enable_text_detection_confidence_score
4629
+
4630
+ def initialize(**args)
4631
+ update!(**args)
4632
+ end
4633
+
4634
+ # Update properties of this object
4635
+ def update!(**args)
4636
+ @enable_text_detection_confidence_score = args[:enable_text_detection_confidence_score] if args.key?(:enable_text_detection_confidence_score)
4637
+ end
4638
+ end
4639
+
4610
4640
  # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are
4611
4641
  # in the same scale as the original image.
4612
4642
  class GoogleCloudVisionV1p2beta1Vertex
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module VisionV1p2beta1
18
18
  # Version of the google-apis-vision_v1p2beta1 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
@@ -748,6 +748,12 @@ module Google
748
748
  include Google::Apis::Core::JsonObjectSupport
749
749
  end
750
750
 
751
+ class GoogleCloudVisionV1p2beta1TextDetectionParams
752
+ class Representation < Google::Apis::Core::JsonRepresentation; end
753
+
754
+ include Google::Apis::Core::JsonObjectSupport
755
+ end
756
+
751
757
  class GoogleCloudVisionV1p2beta1Vertex
752
758
  class Representation < Google::Apis::Core::JsonRepresentation; end
753
759
 
@@ -2674,6 +2680,8 @@ module Google
2674
2680
 
2675
2681
  property :product_search_params, as: 'productSearchParams', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ProductSearchParams, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ProductSearchParams::Representation
2676
2682
 
2683
+ property :text_detection_params, as: 'textDetectionParams', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1TextDetectionParams, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1TextDetectionParams::Representation
2684
+
2677
2685
  property :web_detection_params, as: 'webDetectionParams', class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetectionParams, decorator: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetectionParams::Representation
2678
2686
 
2679
2687
  end
@@ -2937,6 +2945,13 @@ module Google
2937
2945
  end
2938
2946
  end
2939
2947
 
2948
+ class GoogleCloudVisionV1p2beta1TextDetectionParams
2949
+ # @private
2950
+ class Representation < Google::Apis::Core::JsonRepresentation
2951
+ property :enable_text_detection_confidence_score, as: 'enableTextDetectionConfidenceScore'
2952
+ end
2953
+ end
2954
+
2940
2955
  class GoogleCloudVisionV1p2beta1Vertex
2941
2956
  # @private
2942
2957
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-vision_v1p2beta1
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_v1p2beta1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-vision_v1p2beta1/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-vision_v1p2beta1/v0.2.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-vision_v1p2beta1
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 V1p2beta1