google-cloud-vision-v1 0.6.4 → 0.7.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: 3f969984ea1c1ac65548fa14bec2c85b0d028438238b9e28bacb922211b037a1
4
+ data.tar.gz: c3ab61ae57c70debc27f27a68d6cc4f3aed59938b08a9f3dad9d7eddd48e8ae8
5
5
  SHA512:
6
- metadata.gz: 92c418b56b69cf0ea77df5f5a7ff9f10f7910f54e01a3424efadd62001fd68516b9b0a6fd2c1d35940da1f5e6dd8ba71ec4852449f6677b90cef6b10a205431a
7
- data.tar.gz: 3653dac03e49851aa508479463b5f6513324e7c0a8ba42970fb4260262ed75d027db497a5f341c1fc68a357c1c6f4d9ac5e63a67cc6ed1aa64fb2f460f18d9fd
6
+ metadata.gz: 0cff33062e853c17b4de13ac8150d599ef1834d524b3b60f263ac487481f079c7a27250183d9ace7e5d224736395d7172f4815ef88cfc43b20e5f66dca03c437
7
+ data.tar.gz: ab81ba5cc871075c6c7291b1294457ed3d38ef55ac965a6a897f44c0bccce7b59c089073f270ea20c06696f0cca26f76f1be779926c88e00c311eb5026c87524
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,6 +69,11 @@ 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
79
  This library is supported on Ruby 2.5+.
@@ -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
  #
@@ -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"
@@ -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.7.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
@@ -798,8 +774,8 @@ module Google
798
774
  # A list of requests to annotate files using the BatchAnnotateFiles API.
799
775
  # @!attribute [rw] requests
800
776
  # @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.
777
+ # Required. The list of file annotation requests. Right now we support only one
778
+ # AnnotateFileRequest in BatchAnnotateFilesRequest.
803
779
  # @!attribute [rw] parent
804
780
  # @return [::String]
805
781
  # 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:
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.7.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-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -231,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
231
231
  - !ruby/object:Gem::Version
232
232
  version: '0'
233
233
  requirements: []
234
- rubygems_version: 3.3.4
234
+ rubygems_version: 3.3.5
235
235
  signing_key:
236
236
  specification_version: 4
237
237
  summary: API Client library for the Cloud Vision V1 API