google-cloud-vision-v1 0.6.4 → 0.9.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: 52910c7b44899ac515511259d2e2f8704b552366f38093ee450a5ca022c0620d
4
- data.tar.gz: f85f6cc480ca2bd32b3f2ba3797d9425c1ff0b4641bbc113991620c882c8eefd
3
+ metadata.gz: 90af1ca7ee6c5b4733fb24cfd3d3ae2a4fce345688247d5a8c2b813f40d5e7b9
4
+ data.tar.gz: fe441dd14da1bd0a73e284c800ea5480169ffc60157e88a57dfa7bb355803d32
5
5
  SHA512:
6
- metadata.gz: 92c418b56b69cf0ea77df5f5a7ff9f10f7910f54e01a3424efadd62001fd68516b9b0a6fd2c1d35940da1f5e6dd8ba71ec4852449f6677b90cef6b10a205431a
7
- data.tar.gz: 3653dac03e49851aa508479463b5f6513324e7c0a8ba42970fb4260262ed75d027db497a5f341c1fc68a357c1c6f4d9ac5e63a67cc6ed1aa64fb2f460f18d9fd
6
+ metadata.gz: 6e7b766a0709037d15aed5ba3fe90b33bd548f44f6e4c8c459a8abab8f4cf642a9a29ccbd6713d9d45106a88ad78e7075ad8b72200161e42c74b400df38f1a3c
7
+ data.tar.gz: cec8cc37fdd096e2c19182c90faef35a9f37a133a6491cd55d94bcc2d7e6b3aa14511764be26b6fc3a36431b2d2687147b6ae36175ba45f6c159399b2de481bc
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Vision::V1::CreateProductSetRequest.new # (request fi
37
37
  response = client.create_product_set request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-vision-v1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/vision)
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -1,7 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/vision/v1/geometry.proto
3
3
 
4
- require 'google/api/annotations_pb'
5
4
  require 'google/protobuf'
6
5
 
7
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -294,8 +294,8 @@ module Google
294
294
  # the default parameter values, pass an empty Hash as a request object (see above).
295
295
  #
296
296
  # @param requests [::Array<::Google::Cloud::Vision::V1::AnnotateFileRequest, ::Hash>]
297
- # Required. The list of file annotation requests. Right now we support only
298
- # one AnnotateFileRequest in BatchAnnotateFilesRequest.
297
+ # Required. The list of file annotation requests. Right now we support only one
298
+ # AnnotateFileRequest in BatchAnnotateFilesRequest.
299
299
  # @param parent [::String]
300
300
  # Optional. Target project and location to make a call.
301
301
  #
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/vision/v1/image_annotator.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -9,12 +11,10 @@ require 'google/cloud/vision/v1/product_search_pb'
9
11
  require 'google/cloud/vision/v1/text_annotation_pb'
10
12
  require 'google/cloud/vision/v1/web_detection_pb'
11
13
  require 'google/longrunning/operations_pb'
12
- require 'google/protobuf/field_mask_pb'
13
14
  require 'google/protobuf/timestamp_pb'
14
15
  require 'google/rpc/status_pb'
15
16
  require 'google/type/color_pb'
16
17
  require 'google/type/latlng_pb'
17
- require 'google/protobuf'
18
18
 
19
19
  Google::Protobuf::DescriptorPool.generated_pool.build do
20
20
  add_file("google/cloud/vision/v1/image_annotator.proto", :syntax => :proto3) do
@@ -138,12 +138,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
138
138
  optional :medical, :enum, 3, "google.cloud.vision.v1.Likelihood"
139
139
  optional :violence, :enum, 4, "google.cloud.vision.v1.Likelihood"
140
140
  optional :racy, :enum, 9, "google.cloud.vision.v1.Likelihood"
141
- optional :adult_confidence, :float, 16
142
- optional :spoof_confidence, :float, 18
143
- optional :medical_confidence, :float, 20
144
- optional :violence_confidence, :float, 22
145
- optional :racy_confidence, :float, 24
146
- optional :nsfw_confidence, :float, 26
147
141
  end
148
142
  add_message "google.cloud.vision.v1.LatLongRect" do
149
143
  optional :min_lat_lng, :message, 1, "google.type.LatLng"
@@ -176,6 +170,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
176
170
  end
177
171
  add_message "google.cloud.vision.v1.TextDetectionParams" do
178
172
  optional :enable_text_detection_confidence_score, :bool, 9
173
+ repeated :advanced_ocr_options, :string, 11
179
174
  end
180
175
  add_message "google.cloud.vision.v1.ImageContext" do
181
176
  optional :lat_long_rect, :message, 1, "google.cloud.vision.v1.LatLongRect"
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -1,12 +1,12 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/vision/v1/product_search.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/resource_pb'
5
7
  require 'google/cloud/vision/v1/geometry_pb'
6
8
  require 'google/cloud/vision/v1/product_search_service_pb'
7
9
  require 'google/protobuf/timestamp_pb'
8
- require 'google/api/annotations_pb'
9
- require 'google/protobuf'
10
10
 
11
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_file("google/cloud/vision/v1/product_search.proto", :syntax => :proto3) do
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/vision/v1/product_search_service.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -11,7 +13,6 @@ require 'google/protobuf/empty_pb'
11
13
  require 'google/protobuf/field_mask_pb'
12
14
  require 'google/protobuf/timestamp_pb'
13
15
  require 'google/rpc/status_pb'
14
- require 'google/protobuf'
15
16
 
16
17
  Google::Protobuf::DescriptorPool.generated_pool.build do
17
18
  add_file("google/cloud/vision/v1/product_search_service.proto", :syntax => :proto3) do
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/vision/v1/text_annotation.proto
3
3
 
4
- require 'google/cloud/vision/v1/geometry_pb'
5
- require 'google/api/annotations_pb'
6
4
  require 'google/protobuf'
7
5
 
6
+ require 'google/cloud/vision/v1/geometry_pb'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/cloud/vision/v1/text_annotation.proto", :syntax => :proto3) do
10
10
  add_message "google.cloud.vision.v1.TextAnnotation" do
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Vision
23
23
  module V1
24
- VERSION = "0.6.4"
24
+ VERSION = "0.9.0"
25
25
  end
26
26
  end
27
27
  end
@@ -1,7 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/vision/v1/web_detection.proto
3
3
 
4
- require 'google/api/annotations_pb'
5
4
  require 'google/protobuf'
6
5
 
7
6
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -26,6 +26,8 @@ module Google
26
26
  ##
27
27
  # To load this package, including all its services, and instantiate a client:
28
28
  #
29
+ # @example
30
+ #
29
31
  # require "google/cloud/vision/v1"
30
32
  # client = ::Google::Cloud::Vision::V1::ProductSearch::Client.new
31
33
  #
@@ -458,30 +458,6 @@ module Google
458
458
  # include (but is not limited to) skimpy or sheer clothing, strategically
459
459
  # covered nudity, lewd or provocative poses, or close-ups of sensitive
460
460
  # body areas.
461
- # @!attribute [rw] adult_confidence
462
- # @return [::Float]
463
- # Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means
464
- # very confident.
465
- # @!attribute [rw] spoof_confidence
466
- # @return [::Float]
467
- # Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means
468
- # very confident.
469
- # @!attribute [rw] medical_confidence
470
- # @return [::Float]
471
- # Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means
472
- # very confident.
473
- # @!attribute [rw] violence_confidence
474
- # @return [::Float]
475
- # Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means
476
- # very confident.
477
- # @!attribute [rw] racy_confidence
478
- # @return [::Float]
479
- # Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very
480
- # confident.
481
- # @!attribute [rw] nsfw_confidence
482
- # @return [::Float]
483
- # Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very
484
- # confident.
485
461
  class SafeSearchAnnotation
486
462
  include ::Google::Protobuf::MessageExts
487
463
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -590,6 +566,9 @@ module Google
590
566
  # By default, Cloud Vision API only includes confidence score for
591
567
  # DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
592
568
  # score for TEXT_DETECTION as well.
569
+ # @!attribute [rw] advanced_ocr_options
570
+ # @return [::Array<::String>]
571
+ # A list of advanced OCR options to fine-tune OCR behavior.
593
572
  class TextDetectionParams
594
573
  include ::Google::Protobuf::MessageExts
595
574
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -798,8 +777,8 @@ module Google
798
777
  # A list of requests to annotate files using the BatchAnnotateFiles API.
799
778
  # @!attribute [rw] requests
800
779
  # @return [::Array<::Google::Cloud::Vision::V1::AnnotateFileRequest>]
801
- # Required. The list of file annotation requests. Right now we support only
802
- # one AnnotateFileRequest in BatchAnnotateFilesRequest.
780
+ # Required. The list of file annotation requests. Right now we support only one
781
+ # AnnotateFileRequest in BatchAnnotateFilesRequest.
803
782
  # @!attribute [rw] parent
804
783
  # @return [::String]
805
784
  # Optional. Target project and location to make a call.
@@ -44,7 +44,7 @@ module Google
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
46
  #
47
- # Example 3: Pack and unpack a message in Python.
47
+ # Example 3: Pack and unpack a message in Python.
48
48
  #
49
49
  # foo = Foo(...)
50
50
  # any = Any()
@@ -54,7 +54,7 @@ module Google
54
54
  # any.Unpack(foo)
55
55
  # ...
56
56
  #
57
- # Example 4: Pack and unpack a message in Go
57
+ # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
60
  # any, err := anypb.New(foo)
@@ -75,7 +75,7 @@ module Google
75
75
  #
76
76
  #
77
77
  # JSON
78
- # ====
78
+ #
79
79
  # The JSON representation of an `Any` value uses the regular
80
80
  # representation of the deserialized, embedded message, with an
81
81
  # additional field `@type` which contains the type URL. Example:
@@ -26,8 +26,6 @@ module Google
26
26
  # service Foo {
27
27
  # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
28
28
  # }
29
- #
30
- # The JSON representation for `Empty` is empty JSON object `{}`.
31
29
  class Empty
32
30
  include ::Google::Protobuf::MessageExts
33
31
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-vision-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.9.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: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.7'
19
+ version: '0.10'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.7'
29
+ version: '0.10'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -50,28 +50,28 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 1.25.1
53
+ version: 1.26.1
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 1.25.1
60
+ version: 1.26.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: minitest
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '5.14'
67
+ version: '5.16'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '5.14'
74
+ version: '5.16'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: minitest-focus
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +106,14 @@ dependencies:
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: '12.0'
109
+ version: '13.0'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
- version: '12.0'
116
+ version: '13.0'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: redcarpet
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -224,14 +224,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
224
224
  requirements:
225
225
  - - ">="
226
226
  - !ruby/object:Gem::Version
227
- version: '2.5'
227
+ version: '2.6'
228
228
  required_rubygems_version: !ruby/object:Gem::Requirement
229
229
  requirements:
230
230
  - - ">="
231
231
  - !ruby/object:Gem::Version
232
232
  version: '0'
233
233
  requirements: []
234
- rubygems_version: 3.3.4
234
+ rubygems_version: 3.3.14
235
235
  signing_key:
236
236
  specification_version: 4
237
237
  summary: API Client library for the Cloud Vision V1 API