google-cloud-vision-v1p4beta1 0.4.0 → 0.5.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: bd08f67a504e79810a61bf1a27613f4d169d5e4e1ca46351adfebcc55923ebc6
4
- data.tar.gz: e5e01d9873455d58f69602139c9e9638c349cb78b83d900b0b949e59ff40d4fa
3
+ metadata.gz: 5fad9aa9c8988ddd4753981a9a7dbb1c4fe9adaa724318fcb9a72caf590dd9ac
4
+ data.tar.gz: 91d48f015a9bb957384ed9e7c506b1f10050b1797eb21607aeeeece37d7a0689
5
5
  SHA512:
6
- metadata.gz: f61fc036bce04b7ac6bc881cec134ad3e6e27f19a28b06e373524dfb0eff7e559d3fff5ea8af305604e4ddeca56c2489c308a0d90d1bfefd12e010d19925dba8
7
- data.tar.gz: '065639a173006648de77ee4f6d7bf14868473f29ae3b518cb0fdc6946136355dd14f555295d5631e77570a55d5fc909bb7d844ea4a42335dd765e762a7d6c690'
6
+ metadata.gz: c70ced3ec7f9f9393e6bf679afa4015b44720d2e8900726ebc6e19486421e8c856ab9e7f044671871f423c5d7d5d74895b650121eba6733dcabe6dfbdcc4c702
7
+ data.tar.gz: d3de632f081a27a153697d6721cd497df1bda3dbcee416134c8f0ae49fe2cd5b228cc1509cf042a8babcbd317f28db2fd6b4dcf5b228626e6b7b5043605e2231
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Cloud Vision V1p4beta1 API
2
2
 
3
- API Client library for the Cloud Vision V1p4beta1 API
3
+ Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications.
4
4
 
5
5
  Cloud Vision API allows developers to easily integrate vision detection features within applications, including image labeling, face and landmark detection, optical character recognition (OCR), and tagging of explicit content.
6
6
 
@@ -47,7 +47,7 @@ for general usage information.
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
49
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/vision/v1p4beta1/face.proto
3
4
 
@@ -5,21 +6,31 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/cloud/vision/v1p4beta1/geometry_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/cloud/vision/v1p4beta1/face.proto", :syntax => :proto3) do
10
- add_message "google.cloud.vision.v1p4beta1.FaceRecognitionParams" do
11
- repeated :celebrity_set, :string, 1
12
- end
13
- add_message "google.cloud.vision.v1p4beta1.Celebrity" do
14
- optional :name, :string, 1
15
- optional :display_name, :string, 2
16
- optional :description, :string, 3
17
- end
18
- add_message "google.cloud.vision.v1p4beta1.FaceRecognitionResult" do
19
- optional :celebrity, :message, 1, "google.cloud.vision.v1p4beta1.Celebrity"
20
- optional :confidence, :float, 2
9
+
10
+ descriptor_data = "\n(google/cloud/vision/v1p4beta1/face.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a,google/cloud/vision/v1p4beta1/geometry.proto\".\n\x15\x46\x61\x63\x65RecognitionParams\x12\x15\n\rcelebrity_set\x18\x01 \x03(\t\"D\n\tCelebrity\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\"h\n\x15\x46\x61\x63\x65RecognitionResult\x12;\n\tcelebrity\x18\x01 \x01(\x0b\x32(.google.cloud.vision.v1p4beta1.Celebrity\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x42z\n!com.google.cloud.vision.v1p4beta1B\x0e\x43\x65lebrityProtoP\x01Z9cloud.google.com/go/vision/apiv1p4beta1/visionpb;visionpb\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
21
30
  end
22
31
  end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
23
34
  end
24
35
 
25
36
  module Google
@@ -1,28 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/vision/v1p4beta1/geometry.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/cloud/vision/v1p4beta1/geometry.proto", :syntax => :proto3) do
8
- add_message "google.cloud.vision.v1p4beta1.Vertex" do
9
- optional :x, :int32, 1
10
- optional :y, :int32, 2
11
- end
12
- add_message "google.cloud.vision.v1p4beta1.NormalizedVertex" do
13
- optional :x, :float, 1
14
- optional :y, :float, 2
15
- end
16
- add_message "google.cloud.vision.v1p4beta1.BoundingPoly" do
17
- repeated :vertices, :message, 1, "google.cloud.vision.v1p4beta1.Vertex"
18
- repeated :normalized_vertices, :message, 2, "google.cloud.vision.v1p4beta1.NormalizedVertex"
19
- end
20
- add_message "google.cloud.vision.v1p4beta1.Position" do
21
- optional :x, :float, 1
22
- optional :y, :float, 2
23
- optional :z, :float, 3
7
+
8
+ descriptor_data = "\n,google/cloud/vision/v1p4beta1/geometry.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\"\x1e\n\x06Vertex\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\"(\n\x10NormalizedVertex\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\"\x95\x01\n\x0c\x42oundingPoly\x12\x37\n\x08vertices\x18\x01 \x03(\x0b\x32%.google.cloud.vision.v1p4beta1.Vertex\x12L\n\x13normalized_vertices\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.NormalizedVertex\"+\n\x08Position\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02\x42y\n!com.google.cloud.vision.v1p4beta1B\rGeometryProtoP\x01Z9cloud.google.com/go/vision/apiv1p4beta1/visionpb;visionpb\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
24
28
  end
25
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
26
32
  end
27
33
 
28
34
  module Google
@@ -563,9 +563,9 @@ module Google
563
563
  # * (`String`) The path to a service account key file in JSON format
564
564
  # * (`Hash`) A service account key as a Hash
565
565
  # * (`Google::Auth::Credentials`) A googleauth credentials object
566
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
566
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
567
567
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
568
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
568
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
569
569
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
570
570
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
571
571
  # * (`nil`) indicating no credentials
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials
@@ -480,9 +480,9 @@ module Google
480
480
  # * (`String`) The path to a service account key file in JSON format
481
481
  # * (`Hash`) A service account key as a Hash
482
482
  # * (`Google::Auth::Credentials`) A googleauth credentials object
483
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
483
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
484
484
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
485
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
485
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
486
486
  # * (`nil`) indicating no credentials
487
487
  # @return [::Object]
488
488
  # @!attribute [rw] scope
@@ -411,9 +411,9 @@ module Google
411
411
  # * (`String`) The path to a service account key file in JSON format
412
412
  # * (`Hash`) A service account key as a Hash
413
413
  # * (`Google::Auth::Credentials`) A googleauth credentials object
414
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
414
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
415
415
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
416
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
416
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
417
417
  # * (`nil`) indicating no credentials
418
418
  # @return [::Object]
419
419
  # @!attribute [rw] scope
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/vision/v1p4beta1/image_annotator.proto
3
4
 
@@ -17,277 +18,40 @@ require 'google/rpc/status_pb'
17
18
  require 'google/type/color_pb'
18
19
  require 'google/type/latlng_pb'
19
20
 
20
- Google::Protobuf::DescriptorPool.generated_pool.build do
21
- add_file("google/cloud/vision/v1p4beta1/image_annotator.proto", :syntax => :proto3) do
22
- add_message "google.cloud.vision.v1p4beta1.Feature" do
23
- optional :type, :enum, 1, "google.cloud.vision.v1p4beta1.Feature.Type"
24
- optional :max_results, :int32, 2
25
- optional :model, :string, 3
26
- end
27
- add_enum "google.cloud.vision.v1p4beta1.Feature.Type" do
28
- value :TYPE_UNSPECIFIED, 0
29
- value :FACE_DETECTION, 1
30
- value :LANDMARK_DETECTION, 2
31
- value :LOGO_DETECTION, 3
32
- value :LABEL_DETECTION, 4
33
- value :TEXT_DETECTION, 5
34
- value :DOCUMENT_TEXT_DETECTION, 11
35
- value :SAFE_SEARCH_DETECTION, 6
36
- value :IMAGE_PROPERTIES, 7
37
- value :CROP_HINTS, 9
38
- value :WEB_DETECTION, 10
39
- value :PRODUCT_SEARCH, 12
40
- value :OBJECT_LOCALIZATION, 19
41
- end
42
- add_message "google.cloud.vision.v1p4beta1.ImageSource" do
43
- optional :gcs_image_uri, :string, 1
44
- optional :image_uri, :string, 2
45
- end
46
- add_message "google.cloud.vision.v1p4beta1.Image" do
47
- optional :content, :bytes, 1
48
- optional :source, :message, 2, "google.cloud.vision.v1p4beta1.ImageSource"
49
- end
50
- add_message "google.cloud.vision.v1p4beta1.FaceAnnotation" do
51
- optional :bounding_poly, :message, 1, "google.cloud.vision.v1p4beta1.BoundingPoly"
52
- optional :fd_bounding_poly, :message, 2, "google.cloud.vision.v1p4beta1.BoundingPoly"
53
- repeated :landmarks, :message, 3, "google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark"
54
- optional :roll_angle, :float, 4
55
- optional :pan_angle, :float, 5
56
- optional :tilt_angle, :float, 6
57
- optional :detection_confidence, :float, 7
58
- optional :landmarking_confidence, :float, 8
59
- optional :joy_likelihood, :enum, 9, "google.cloud.vision.v1p4beta1.Likelihood"
60
- optional :sorrow_likelihood, :enum, 10, "google.cloud.vision.v1p4beta1.Likelihood"
61
- optional :anger_likelihood, :enum, 11, "google.cloud.vision.v1p4beta1.Likelihood"
62
- optional :surprise_likelihood, :enum, 12, "google.cloud.vision.v1p4beta1.Likelihood"
63
- optional :under_exposed_likelihood, :enum, 13, "google.cloud.vision.v1p4beta1.Likelihood"
64
- optional :blurred_likelihood, :enum, 14, "google.cloud.vision.v1p4beta1.Likelihood"
65
- optional :headwear_likelihood, :enum, 15, "google.cloud.vision.v1p4beta1.Likelihood"
66
- repeated :recognition_result, :message, 16, "google.cloud.vision.v1p4beta1.FaceRecognitionResult"
67
- end
68
- add_message "google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark" do
69
- optional :type, :enum, 3, "google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type"
70
- optional :position, :message, 4, "google.cloud.vision.v1p4beta1.Position"
71
- end
72
- add_enum "google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type" do
73
- value :UNKNOWN_LANDMARK, 0
74
- value :LEFT_EYE, 1
75
- value :RIGHT_EYE, 2
76
- value :LEFT_OF_LEFT_EYEBROW, 3
77
- value :RIGHT_OF_LEFT_EYEBROW, 4
78
- value :LEFT_OF_RIGHT_EYEBROW, 5
79
- value :RIGHT_OF_RIGHT_EYEBROW, 6
80
- value :MIDPOINT_BETWEEN_EYES, 7
81
- value :NOSE_TIP, 8
82
- value :UPPER_LIP, 9
83
- value :LOWER_LIP, 10
84
- value :MOUTH_LEFT, 11
85
- value :MOUTH_RIGHT, 12
86
- value :MOUTH_CENTER, 13
87
- value :NOSE_BOTTOM_RIGHT, 14
88
- value :NOSE_BOTTOM_LEFT, 15
89
- value :NOSE_BOTTOM_CENTER, 16
90
- value :LEFT_EYE_TOP_BOUNDARY, 17
91
- value :LEFT_EYE_RIGHT_CORNER, 18
92
- value :LEFT_EYE_BOTTOM_BOUNDARY, 19
93
- value :LEFT_EYE_LEFT_CORNER, 20
94
- value :RIGHT_EYE_TOP_BOUNDARY, 21
95
- value :RIGHT_EYE_RIGHT_CORNER, 22
96
- value :RIGHT_EYE_BOTTOM_BOUNDARY, 23
97
- value :RIGHT_EYE_LEFT_CORNER, 24
98
- value :LEFT_EYEBROW_UPPER_MIDPOINT, 25
99
- value :RIGHT_EYEBROW_UPPER_MIDPOINT, 26
100
- value :LEFT_EAR_TRAGION, 27
101
- value :RIGHT_EAR_TRAGION, 28
102
- value :LEFT_EYE_PUPIL, 29
103
- value :RIGHT_EYE_PUPIL, 30
104
- value :FOREHEAD_GLABELLA, 31
105
- value :CHIN_GNATHION, 32
106
- value :CHIN_LEFT_GONION, 33
107
- value :CHIN_RIGHT_GONION, 34
108
- end
109
- add_message "google.cloud.vision.v1p4beta1.LocationInfo" do
110
- optional :lat_lng, :message, 1, "google.type.LatLng"
111
- end
112
- add_message "google.cloud.vision.v1p4beta1.Property" do
113
- optional :name, :string, 1
114
- optional :value, :string, 2
115
- optional :uint64_value, :uint64, 3
116
- end
117
- add_message "google.cloud.vision.v1p4beta1.EntityAnnotation" do
118
- optional :mid, :string, 1
119
- optional :locale, :string, 2
120
- optional :description, :string, 3
121
- optional :score, :float, 4
122
- optional :confidence, :float, 5
123
- optional :topicality, :float, 6
124
- optional :bounding_poly, :message, 7, "google.cloud.vision.v1p4beta1.BoundingPoly"
125
- repeated :locations, :message, 8, "google.cloud.vision.v1p4beta1.LocationInfo"
126
- repeated :properties, :message, 9, "google.cloud.vision.v1p4beta1.Property"
127
- end
128
- add_message "google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation" do
129
- optional :mid, :string, 1
130
- optional :language_code, :string, 2
131
- optional :name, :string, 3
132
- optional :score, :float, 4
133
- optional :bounding_poly, :message, 5, "google.cloud.vision.v1p4beta1.BoundingPoly"
134
- end
135
- add_message "google.cloud.vision.v1p4beta1.SafeSearchAnnotation" do
136
- optional :adult, :enum, 1, "google.cloud.vision.v1p4beta1.Likelihood"
137
- optional :spoof, :enum, 2, "google.cloud.vision.v1p4beta1.Likelihood"
138
- optional :medical, :enum, 3, "google.cloud.vision.v1p4beta1.Likelihood"
139
- optional :violence, :enum, 4, "google.cloud.vision.v1p4beta1.Likelihood"
140
- optional :racy, :enum, 9, "google.cloud.vision.v1p4beta1.Likelihood"
141
- end
142
- add_message "google.cloud.vision.v1p4beta1.LatLongRect" do
143
- optional :min_lat_lng, :message, 1, "google.type.LatLng"
144
- optional :max_lat_lng, :message, 2, "google.type.LatLng"
145
- end
146
- add_message "google.cloud.vision.v1p4beta1.ColorInfo" do
147
- optional :color, :message, 1, "google.type.Color"
148
- optional :score, :float, 2
149
- optional :pixel_fraction, :float, 3
150
- end
151
- add_message "google.cloud.vision.v1p4beta1.DominantColorsAnnotation" do
152
- repeated :colors, :message, 1, "google.cloud.vision.v1p4beta1.ColorInfo"
153
- end
154
- add_message "google.cloud.vision.v1p4beta1.ImageProperties" do
155
- optional :dominant_colors, :message, 1, "google.cloud.vision.v1p4beta1.DominantColorsAnnotation"
156
- end
157
- add_message "google.cloud.vision.v1p4beta1.CropHint" do
158
- optional :bounding_poly, :message, 1, "google.cloud.vision.v1p4beta1.BoundingPoly"
159
- optional :confidence, :float, 2
160
- optional :importance_fraction, :float, 3
161
- end
162
- add_message "google.cloud.vision.v1p4beta1.CropHintsAnnotation" do
163
- repeated :crop_hints, :message, 1, "google.cloud.vision.v1p4beta1.CropHint"
164
- end
165
- add_message "google.cloud.vision.v1p4beta1.CropHintsParams" do
166
- repeated :aspect_ratios, :float, 1
167
- end
168
- add_message "google.cloud.vision.v1p4beta1.WebDetectionParams" do
169
- optional :include_geo_results, :bool, 2
170
- end
171
- add_message "google.cloud.vision.v1p4beta1.TextDetectionParams" do
172
- optional :enable_text_detection_confidence_score, :bool, 9
173
- repeated :advanced_ocr_options, :string, 11
174
- end
175
- add_message "google.cloud.vision.v1p4beta1.ImageContext" do
176
- optional :lat_long_rect, :message, 1, "google.cloud.vision.v1p4beta1.LatLongRect"
177
- repeated :language_hints, :string, 2
178
- optional :crop_hints_params, :message, 4, "google.cloud.vision.v1p4beta1.CropHintsParams"
179
- optional :face_recognition_params, :message, 10, "google.cloud.vision.v1p4beta1.FaceRecognitionParams"
180
- optional :product_search_params, :message, 5, "google.cloud.vision.v1p4beta1.ProductSearchParams"
181
- optional :web_detection_params, :message, 6, "google.cloud.vision.v1p4beta1.WebDetectionParams"
182
- optional :text_detection_params, :message, 12, "google.cloud.vision.v1p4beta1.TextDetectionParams"
183
- end
184
- add_message "google.cloud.vision.v1p4beta1.AnnotateImageRequest" do
185
- optional :image, :message, 1, "google.cloud.vision.v1p4beta1.Image"
186
- repeated :features, :message, 2, "google.cloud.vision.v1p4beta1.Feature"
187
- optional :image_context, :message, 3, "google.cloud.vision.v1p4beta1.ImageContext"
188
- end
189
- add_message "google.cloud.vision.v1p4beta1.ImageAnnotationContext" do
190
- optional :uri, :string, 1
191
- optional :page_number, :int32, 2
192
- end
193
- add_message "google.cloud.vision.v1p4beta1.AnnotateImageResponse" do
194
- repeated :face_annotations, :message, 1, "google.cloud.vision.v1p4beta1.FaceAnnotation"
195
- repeated :landmark_annotations, :message, 2, "google.cloud.vision.v1p4beta1.EntityAnnotation"
196
- repeated :logo_annotations, :message, 3, "google.cloud.vision.v1p4beta1.EntityAnnotation"
197
- repeated :label_annotations, :message, 4, "google.cloud.vision.v1p4beta1.EntityAnnotation"
198
- repeated :localized_object_annotations, :message, 22, "google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation"
199
- repeated :text_annotations, :message, 5, "google.cloud.vision.v1p4beta1.EntityAnnotation"
200
- optional :full_text_annotation, :message, 12, "google.cloud.vision.v1p4beta1.TextAnnotation"
201
- optional :safe_search_annotation, :message, 6, "google.cloud.vision.v1p4beta1.SafeSearchAnnotation"
202
- optional :image_properties_annotation, :message, 8, "google.cloud.vision.v1p4beta1.ImageProperties"
203
- optional :crop_hints_annotation, :message, 11, "google.cloud.vision.v1p4beta1.CropHintsAnnotation"
204
- optional :web_detection, :message, 13, "google.cloud.vision.v1p4beta1.WebDetection"
205
- optional :product_search_results, :message, 14, "google.cloud.vision.v1p4beta1.ProductSearchResults"
206
- optional :error, :message, 9, "google.rpc.Status"
207
- optional :context, :message, 21, "google.cloud.vision.v1p4beta1.ImageAnnotationContext"
208
- end
209
- add_message "google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest" do
210
- repeated :requests, :message, 1, "google.cloud.vision.v1p4beta1.AnnotateImageRequest"
211
- end
212
- add_message "google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse" do
213
- repeated :responses, :message, 1, "google.cloud.vision.v1p4beta1.AnnotateImageResponse"
214
- end
215
- add_message "google.cloud.vision.v1p4beta1.AnnotateFileRequest" do
216
- optional :input_config, :message, 1, "google.cloud.vision.v1p4beta1.InputConfig"
217
- repeated :features, :message, 2, "google.cloud.vision.v1p4beta1.Feature"
218
- optional :image_context, :message, 3, "google.cloud.vision.v1p4beta1.ImageContext"
219
- repeated :pages, :int32, 4
220
- end
221
- add_message "google.cloud.vision.v1p4beta1.AnnotateFileResponse" do
222
- optional :input_config, :message, 1, "google.cloud.vision.v1p4beta1.InputConfig"
223
- repeated :responses, :message, 2, "google.cloud.vision.v1p4beta1.AnnotateImageResponse"
224
- optional :total_pages, :int32, 3
225
- optional :error, :message, 4, "google.rpc.Status"
226
- end
227
- add_message "google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest" do
228
- repeated :requests, :message, 1, "google.cloud.vision.v1p4beta1.AnnotateFileRequest"
229
- end
230
- add_message "google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse" do
231
- repeated :responses, :message, 1, "google.cloud.vision.v1p4beta1.AnnotateFileResponse"
232
- end
233
- add_message "google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest" do
234
- optional :input_config, :message, 1, "google.cloud.vision.v1p4beta1.InputConfig"
235
- repeated :features, :message, 2, "google.cloud.vision.v1p4beta1.Feature"
236
- optional :image_context, :message, 3, "google.cloud.vision.v1p4beta1.ImageContext"
237
- optional :output_config, :message, 4, "google.cloud.vision.v1p4beta1.OutputConfig"
238
- end
239
- add_message "google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse" do
240
- optional :output_config, :message, 1, "google.cloud.vision.v1p4beta1.OutputConfig"
241
- end
242
- add_message "google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest" do
243
- repeated :requests, :message, 1, "google.cloud.vision.v1p4beta1.AnnotateImageRequest"
244
- optional :output_config, :message, 2, "google.cloud.vision.v1p4beta1.OutputConfig"
245
- end
246
- add_message "google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse" do
247
- optional :output_config, :message, 1, "google.cloud.vision.v1p4beta1.OutputConfig"
248
- end
249
- add_message "google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest" do
250
- repeated :requests, :message, 1, "google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest"
251
- end
252
- add_message "google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse" do
253
- repeated :responses, :message, 1, "google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse"
254
- end
255
- add_message "google.cloud.vision.v1p4beta1.InputConfig" do
256
- optional :gcs_source, :message, 1, "google.cloud.vision.v1p4beta1.GcsSource"
257
- optional :content, :bytes, 3
258
- optional :mime_type, :string, 2
259
- end
260
- add_message "google.cloud.vision.v1p4beta1.OutputConfig" do
261
- optional :gcs_destination, :message, 1, "google.cloud.vision.v1p4beta1.GcsDestination"
262
- optional :batch_size, :int32, 2
263
- end
264
- add_message "google.cloud.vision.v1p4beta1.GcsSource" do
265
- optional :uri, :string, 1
266
- end
267
- add_message "google.cloud.vision.v1p4beta1.GcsDestination" do
268
- optional :uri, :string, 1
269
- end
270
- add_message "google.cloud.vision.v1p4beta1.OperationMetadata" do
271
- optional :state, :enum, 1, "google.cloud.vision.v1p4beta1.OperationMetadata.State"
272
- optional :create_time, :message, 5, "google.protobuf.Timestamp"
273
- optional :update_time, :message, 6, "google.protobuf.Timestamp"
274
- end
275
- add_enum "google.cloud.vision.v1p4beta1.OperationMetadata.State" do
276
- value :STATE_UNSPECIFIED, 0
277
- value :CREATED, 1
278
- value :RUNNING, 2
279
- value :DONE, 3
280
- value :CANCELLED, 4
281
- end
282
- add_enum "google.cloud.vision.v1p4beta1.Likelihood" do
283
- value :UNKNOWN, 0
284
- value :VERY_UNLIKELY, 1
285
- value :UNLIKELY, 2
286
- value :POSSIBLE, 3
287
- value :LIKELY, 4
288
- value :VERY_LIKELY, 5
21
+
22
+ descriptor_data = "\n3google/cloud/vision/v1p4beta1/image_annotator.proto\x12\x1dgoogle.cloud.vision.v1p4beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a(google/cloud/vision/v1p4beta1/face.proto\x1a,google/cloud/vision/v1p4beta1/geometry.proto\x1a\x32google/cloud/vision/v1p4beta1/product_search.proto\x1a\x33google/cloud/vision/v1p4beta1/text_annotation.proto\x1a\x31google/cloud/vision/v1p4beta1/web_detection.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x18google/type/latlng.proto\"\x8e\x03\n\x07\x46\x65\x61ture\x12\x39\n\x04type\x18\x01 \x01(\x0e\x32+.google.cloud.vision.v1p4beta1.Feature.Type\x12\x13\n\x0bmax_results\x18\x02 \x01(\x05\x12\r\n\x05model\x18\x03 \x01(\t\"\xa3\x02\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x01\x12\x16\n\x12LANDMARK_DETECTION\x10\x02\x12\x12\n\x0eLOGO_DETECTION\x10\x03\x12\x13\n\x0fLABEL_DETECTION\x10\x04\x12\x12\n\x0eTEXT_DETECTION\x10\x05\x12\x1b\n\x17\x44OCUMENT_TEXT_DETECTION\x10\x0b\x12\x19\n\x15SAFE_SEARCH_DETECTION\x10\x06\x12\x14\n\x10IMAGE_PROPERTIES\x10\x07\x12\x0e\n\nCROP_HINTS\x10\t\x12\x11\n\rWEB_DETECTION\x10\n\x12\x12\n\x0ePRODUCT_SEARCH\x10\x0c\x12\x17\n\x13OBJECT_LOCALIZATION\x10\x13\"7\n\x0bImageSource\x12\x15\n\rgcs_image_uri\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t\"T\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12:\n\x06source\x18\x02 \x01(\x0b\x32*.google.cloud.vision.v1p4beta1.ImageSource\"\xed\x0e\n\x0e\x46\x61\x63\x65\x41nnotation\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12\x45\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12I\n\tlandmarks\x18\x03 \x03(\x0b\x32\x36.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12\x41\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x44\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x43\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x46\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12K\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x45\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x46\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12P\n\x12recognition_result\x18\x10 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.FaceRecognitionResult\x1a\xc7\x07\n\x08Landmark\x12I\n\x04type\x18\x03 \x01(\x0e\x32;.google.cloud.vision.v1p4beta1.FaceAnnotation.Landmark.Type\x12\x39\n\x08position\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1p4beta1.Position\"\xb4\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10\"\"4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04\"\xc0\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x16\n\nconfidence\x18\x05 \x01(\x02\x42\x02\x18\x01\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12\x42\n\rbounding_poly\x18\x07 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12>\n\tlocations\x18\x08 \x03(\x0b\x32+.google.cloud.vision.v1p4beta1.LocationInfo\x12;\n\nproperties\x18\t \x03(\x0b\x32\'.google.cloud.vision.v1p4beta1.Property\"\xa0\x01\n\x19LocalizedObjectAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x42\n\rbounding_poly\x18\x05 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\"\xbc\x02\n\x14SafeSearchAnnotation\x12\x38\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x38\n\x05spoof\x18\x02 \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12:\n\x07medical\x18\x03 \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12;\n\x08violence\x18\x04 \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\x12\x37\n\x04racy\x18\t \x01(\x0e\x32).google.cloud.vision.v1p4beta1.Likelihood\"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng\"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02\"T\n\x18\x44ominantColorsAnnotation\x12\x38\n\x06\x63olors\x18\x01 \x03(\x0b\x32(.google.cloud.vision.v1p4beta1.ColorInfo\"c\n\x0fImageProperties\x12P\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x37.google.cloud.vision.v1p4beta1.DominantColorsAnnotation\"\x7f\n\x08\x43ropHint\x12\x42\n\rbounding_poly\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02\"R\n\x13\x43ropHintsAnnotation\x12;\n\ncrop_hints\x18\x01 \x03(\x0b\x32\'.google.cloud.vision.v1p4beta1.CropHint\"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02\"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08\"c\n\x13TextDetectionParams\x12.\n&enable_text_detection_confidence_score\x18\t \x01(\x08\x12\x1c\n\x14\x61\x64vanced_ocr_options\x18\x0b \x03(\t\"\x82\x04\n\x0cImageContext\x12\x41\n\rlat_long_rect\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p4beta1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12I\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32..google.cloud.vision.v1p4beta1.CropHintsParams\x12U\n\x17\x66\x61\x63\x65_recognition_params\x18\n \x01(\x0b\x32\x34.google.cloud.vision.v1p4beta1.FaceRecognitionParams\x12Q\n\x15product_search_params\x18\x05 \x01(\x0b\x32\x32.google.cloud.vision.v1p4beta1.ProductSearchParams\x12O\n\x14web_detection_params\x18\x06 \x01(\x0b\x32\x31.google.cloud.vision.v1p4beta1.WebDetectionParams\x12Q\n\x15text_detection_params\x18\x0c \x01(\x0b\x32\x32.google.cloud.vision.v1p4beta1.TextDetectionParams\"\xc9\x01\n\x14\x41nnotateImageRequest\x12\x33\n\x05image\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1p4beta1.Image\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p4beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.ImageContext\":\n\x16ImageAnnotationContext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x13\n\x0bpage_number\x18\x02 \x01(\x05\"\xbf\x08\n\x15\x41nnotateImageResponse\x12G\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1p4beta1.FaceAnnotation\x12M\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.EntityAnnotation\x12I\n\x10logo_annotations\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.EntityAnnotation\x12J\n\x11label_annotations\x18\x04 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.EntityAnnotation\x12^\n\x1clocalized_object_annotations\x18\x16 \x03(\x0b\x32\x38.google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation\x12I\n\x10text_annotations\x18\x05 \x03(\x0b\x32/.google.cloud.vision.v1p4beta1.EntityAnnotation\x12K\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32-.google.cloud.vision.v1p4beta1.TextAnnotation\x12S\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32\x33.google.cloud.vision.v1p4beta1.SafeSearchAnnotation\x12S\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32..google.cloud.vision.v1p4beta1.ImageProperties\x12Q\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32\x32.google.cloud.vision.v1p4beta1.CropHintsAnnotation\x12\x42\n\rweb_detection\x18\r \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.WebDetection\x12S\n\x16product_search_results\x18\x0e \x01(\x0b\x32\x33.google.cloud.vision.v1p4beta1.ProductSearchResults\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\x12\x46\n\x07\x63ontext\x18\x15 \x01(\x0b\x32\x35.google.cloud.vision.v1p4beta1.ImageAnnotationContext\"h\n\x1a\x42\x61tchAnnotateImagesRequest\x12J\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p4beta1.AnnotateImageRequestB\x03\xe0\x41\x02\"f\n\x1b\x42\x61tchAnnotateImagesResponse\x12G\n\tresponses\x18\x01 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.AnnotateImageResponse\"\xe4\x01\n\x13\x41nnotateFileRequest\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p4beta1.InputConfig\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p4beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.ImageContext\x12\r\n\x05pages\x18\x04 \x03(\x05\"\xd9\x01\n\x14\x41nnotateFileResponse\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p4beta1.InputConfig\x12G\n\tresponses\x18\x02 \x03(\x0b\x32\x34.google.cloud.vision.v1p4beta1.AnnotateImageResponse\x12\x13\n\x0btotal_pages\x18\x03 \x01(\x05\x12!\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x12.google.rpc.Status\"f\n\x19\x42\x61tchAnnotateFilesRequest\x12I\n\x08requests\x18\x01 \x03(\x0b\x32\x32.google.cloud.vision.v1p4beta1.AnnotateFileRequestB\x03\xe0\x41\x02\"d\n\x1a\x42\x61tchAnnotateFilesResponse\x12\x46\n\tresponses\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p4beta1.AnnotateFileResponse\"\x9e\x02\n\x18\x41syncAnnotateFileRequest\x12@\n\x0cinput_config\x18\x01 \x01(\x0b\x32*.google.cloud.vision.v1p4beta1.InputConfig\x12\x38\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32&.google.cloud.vision.v1p4beta1.Feature\x12\x42\n\rimage_context\x18\x03 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.ImageContext\x12\x42\n\routput_config\x18\x04 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.OutputConfig\"_\n\x19\x41syncAnnotateFileResponse\x12\x42\n\routput_config\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.OutputConfig\"\xb6\x01\n\x1f\x41syncBatchAnnotateImagesRequest\x12J\n\x08requests\x18\x01 \x03(\x0b\x32\x33.google.cloud.vision.v1p4beta1.AnnotateImageRequestB\x03\xe0\x41\x02\x12G\n\routput_config\x18\x02 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.OutputConfigB\x03\xe0\x41\x02\"f\n AsyncBatchAnnotateImagesResponse\x12\x42\n\routput_config\x18\x01 \x01(\x0b\x32+.google.cloud.vision.v1p4beta1.OutputConfig\"p\n\x1e\x41syncBatchAnnotateFilesRequest\x12N\n\x08requests\x18\x01 \x03(\x0b\x32\x37.google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequestB\x03\xe0\x41\x02\"n\n\x1f\x41syncBatchAnnotateFilesResponse\x12K\n\tresponses\x18\x01 \x03(\x0b\x32\x38.google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse\"o\n\x0bInputConfig\x12<\n\ngcs_source\x18\x01 \x01(\x0b\x32(.google.cloud.vision.v1p4beta1.GcsSource\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\x0c\x12\x11\n\tmime_type\x18\x02 \x01(\t\"j\n\x0cOutputConfig\x12\x46\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32-.google.cloud.vision.v1p4beta1.GcsDestination\x12\x12\n\nbatch_size\x18\x02 \x01(\x05\"\x18\n\tGcsSource\x12\x0b\n\x03uri\x18\x01 \x01(\t\"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t\"\x8f\x02\n\x11OperationMetadata\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.vision.v1p4beta1.OperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xf1\x07\n\x0eImageAnnotator\x12\xbe\x01\n\x13\x42\x61tchAnnotateImages\x12\x39.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest\x1a:.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse\"0\x82\xd3\xe4\x93\x02\x1f\"\x1a/v1p4beta1/images:annotate:\x01*\xda\x41\x08requests\x12\xba\x01\n\x12\x42\x61tchAnnotateFiles\x12\x38.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest\x1a\x39.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse\"/\x82\xd3\xe4\x93\x02\x1e\"\x19/v1p4beta1/files:annotate:\x01*\xda\x41\x08requests\x12\xfc\x01\n\x18\x41syncBatchAnnotateImages\x12>.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest\x1a\x1d.google.longrunning.Operation\"\x80\x01\x82\xd3\xe4\x93\x02)\"$/v1p4beta1/images:asyncBatchAnnotate:\x01*\xda\x41\x16requests,output_config\xca\x41\x35\n AsyncBatchAnnotateImagesResponse\x12\x11OperationMetadata\x12\xe9\x01\n\x17\x41syncBatchAnnotateFiles\x12=.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest\x1a\x1d.google.longrunning.Operation\"p\x82\xd3\xe4\x93\x02(\"#/v1p4beta1/files:asyncBatchAnnotate:\x01*\xda\x41\x08requests\xca\x41\x34\n\x1f\x41syncBatchAnnotateFilesResponse\x12\x11OperationMetadata\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionB\x7f\n!com.google.cloud.vision.v1p4beta1B\x13ImageAnnotatorProtoP\x01Z9cloud.google.com/go/vision/apiv1p4beta1/visionpb;visionpb\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3"
23
+
24
+ pool = Google::Protobuf::DescriptorPool.generated_pool
25
+
26
+ begin
27
+ pool.add_serialized_file(descriptor_data)
28
+ rescue TypeError => e
29
+ # Compatibility code: will be removed in the next major version.
30
+ require 'google/protobuf/descriptor_pb'
31
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
32
+ parsed.clear_dependency
33
+ serialized = parsed.class.encode(parsed)
34
+ file = pool.add_serialized_file(serialized)
35
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
36
+ imports = [
37
+ ["google.cloud.vision.v1p4beta1.BoundingPoly", "google/cloud/vision/v1p4beta1/geometry.proto"],
38
+ ["google.cloud.vision.v1p4beta1.FaceRecognitionResult", "google/cloud/vision/v1p4beta1/face.proto"],
39
+ ["google.type.LatLng", "google/type/latlng.proto"],
40
+ ["google.type.Color", "google/type/color.proto"],
41
+ ["google.cloud.vision.v1p4beta1.ProductSearchParams", "google/cloud/vision/v1p4beta1/product_search.proto"],
42
+ ["google.cloud.vision.v1p4beta1.TextAnnotation", "google/cloud/vision/v1p4beta1/text_annotation.proto"],
43
+ ["google.cloud.vision.v1p4beta1.WebDetection", "google/cloud/vision/v1p4beta1/web_detection.proto"],
44
+ ["google.rpc.Status", "google/rpc/status.proto"],
45
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
46
+ ]
47
+ imports.each do |type_name, expected_filename|
48
+ import_file = pool.lookup(type_name).file_descriptor
49
+ if import_file.name != expected_filename
50
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
289
51
  end
290
52
  end
53
+ warn "Each proto file must use a consistent fully-qualified name."
54
+ warn "This will become an error in the next major version."
291
55
  end
292
56
 
293
57
  module Google
@@ -2214,9 +2214,9 @@ module Google
2214
2214
  # * (`String`) The path to a service account key file in JSON format
2215
2215
  # * (`Hash`) A service account key as a Hash
2216
2216
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2217
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
2217
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2218
2218
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2219
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
2219
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2220
2220
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
2221
2221
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2222
2222
  # * (`nil`) indicating no credentials
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials
@@ -1738,9 +1738,9 @@ module Google
1738
1738
  # * (`String`) The path to a service account key file in JSON format
1739
1739
  # * (`Hash`) A service account key as a Hash
1740
1740
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1741
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1741
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1742
1742
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1743
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1743
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1744
1744
  # * (`nil`) indicating no credentials
1745
1745
  # @return [::Object]
1746
1746
  # @!attribute [rw] scope
@@ -411,9 +411,9 @@ module Google
411
411
  # * (`String`) The path to a service account key file in JSON format
412
412
  # * (`Hash`) A service account key as a Hash
413
413
  # * (`Google::Auth::Credentials`) A googleauth credentials object
414
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
414
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
415
415
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
416
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
416
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
417
417
  # * (`nil`) indicating no credentials
418
418
  # @return [::Object]
419
419
  # @!attribute [rw] scope