google-cloud-vision-v1p4beta1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google/cloud/vision/v1p4beta1/face_pb.rb +35 -0
- data/lib/google/cloud/vision/v1p4beta1/geometry_pb.rb +40 -0
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/client.rb +629 -0
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/credentials.rb +52 -0
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/helpers.rb +1228 -0
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/operations.rb +664 -0
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/paths.rb +52 -0
- data/lib/google/cloud/vision/v1p4beta1/image_annotator.rb +52 -0
- data/lib/google/cloud/vision/v1p4beta1/image_annotator_pb.rb +343 -0
- data/lib/google/cloud/vision/v1p4beta1/image_annotator_services_pb.rb +73 -0
- data/lib/google/cloud/vision/v1p4beta1/product_search/client.rb +2106 -0
- data/lib/google/cloud/vision/v1p4beta1/product_search/credentials.rb +52 -0
- data/lib/google/cloud/vision/v1p4beta1/product_search/operations.rb +664 -0
- data/lib/google/cloud/vision/v1p4beta1/product_search/paths.rb +109 -0
- data/lib/google/cloud/vision/v1p4beta1/product_search.rb +67 -0
- data/lib/google/cloud/vision/v1p4beta1/product_search_pb.rb +55 -0
- data/lib/google/cloud/vision/v1p4beta1/product_search_service_pb.rb +208 -0
- data/lib/google/cloud/vision/v1p4beta1/product_search_service_services_pb.rb +236 -0
- data/lib/google/cloud/vision/v1p4beta1/text_annotation_pb.rb +95 -0
- data/lib/google/cloud/vision/v1p4beta1/version.rb +28 -0
- data/lib/google/cloud/vision/v1p4beta1/web_detection_pb.rb +52 -0
- data/lib/google/cloud/vision/v1p4beta1.rb +39 -0
- data/lib/google-cloud-vision-v1p4beta1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/cloud/vision/v1p4beta1/face.rb +68 -0
- data/proto_docs/google/cloud/vision/v1p4beta1/geometry.rb +82 -0
- data/proto_docs/google/cloud/vision/v1p4beta1/image_annotator.rb +989 -0
- data/proto_docs/google/cloud/vision/v1p4beta1/product_search.rb +136 -0
- data/proto_docs/google/cloud/vision/v1p4beta1/product_search_service.rb +676 -0
- data/proto_docs/google/cloud/vision/v1p4beta1/text_annotation.rb +286 -0
- data/proto_docs/google/cloud/vision/v1p4beta1/web_detection.rb +121 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- data/proto_docs/google/type/color.rb +173 -0
- data/proto_docs/google/type/latlng.rb +38 -0
- metadata +240 -0
@@ -0,0 +1,286 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Vision
|
23
|
+
module V1p4beta1
|
24
|
+
# TextAnnotation contains a structured representation of OCR extracted text.
|
25
|
+
# The hierarchy of an OCR extracted text structure is like this:
|
26
|
+
# TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
|
27
|
+
# Each structural component, starting from Page, may further have their own
|
28
|
+
# properties. Properties describe detected languages, breaks etc.. Please refer
|
29
|
+
# to the
|
30
|
+
# {::Google::Cloud::Vision::V1p4beta1::TextAnnotation::TextProperty TextAnnotation.TextProperty}
|
31
|
+
# message definition below for more detail.
|
32
|
+
# @!attribute [rw] pages
|
33
|
+
# @return [::Array<::Google::Cloud::Vision::V1p4beta1::Page>]
|
34
|
+
# List of pages detected by OCR.
|
35
|
+
# @!attribute [rw] text
|
36
|
+
# @return [::String]
|
37
|
+
# UTF-8 text detected on the pages.
|
38
|
+
class TextAnnotation
|
39
|
+
include ::Google::Protobuf::MessageExts
|
40
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
41
|
+
|
42
|
+
# Detected language for a structural component.
|
43
|
+
# @!attribute [rw] language_code
|
44
|
+
# @return [::String]
|
45
|
+
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
46
|
+
# information, see
|
47
|
+
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
48
|
+
# @!attribute [rw] confidence
|
49
|
+
# @return [::Float]
|
50
|
+
# Confidence of detected language. Range [0, 1].
|
51
|
+
class DetectedLanguage
|
52
|
+
include ::Google::Protobuf::MessageExts
|
53
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
54
|
+
end
|
55
|
+
|
56
|
+
# Detected start or end of a structural component.
|
57
|
+
# @!attribute [rw] type
|
58
|
+
# @return [::Google::Cloud::Vision::V1p4beta1::TextAnnotation::DetectedBreak::BreakType]
|
59
|
+
# Detected break type.
|
60
|
+
# @!attribute [rw] is_prefix
|
61
|
+
# @return [::Boolean]
|
62
|
+
# True if break prepends the element.
|
63
|
+
class DetectedBreak
|
64
|
+
include ::Google::Protobuf::MessageExts
|
65
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
66
|
+
|
67
|
+
# Enum to denote the type of break found. New line, space etc.
|
68
|
+
module BreakType
|
69
|
+
# Unknown break label type.
|
70
|
+
UNKNOWN = 0
|
71
|
+
|
72
|
+
# Regular space.
|
73
|
+
SPACE = 1
|
74
|
+
|
75
|
+
# Sure space (very wide).
|
76
|
+
SURE_SPACE = 2
|
77
|
+
|
78
|
+
# Line-wrapping break.
|
79
|
+
EOL_SURE_SPACE = 3
|
80
|
+
|
81
|
+
# End-line hyphen that is not present in text; does not co-occur with
|
82
|
+
# `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
|
83
|
+
HYPHEN = 4
|
84
|
+
|
85
|
+
# Line break that ends a paragraph.
|
86
|
+
LINE_BREAK = 5
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
# Additional information detected on the structural component.
|
91
|
+
# @!attribute [rw] detected_languages
|
92
|
+
# @return [::Array<::Google::Cloud::Vision::V1p4beta1::TextAnnotation::DetectedLanguage>]
|
93
|
+
# A list of detected languages together with confidence.
|
94
|
+
# @!attribute [rw] detected_break
|
95
|
+
# @return [::Google::Cloud::Vision::V1p4beta1::TextAnnotation::DetectedBreak]
|
96
|
+
# Detected start or end of a text segment.
|
97
|
+
class TextProperty
|
98
|
+
include ::Google::Protobuf::MessageExts
|
99
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
# Detected page from OCR.
|
104
|
+
# @!attribute [rw] property
|
105
|
+
# @return [::Google::Cloud::Vision::V1p4beta1::TextAnnotation::TextProperty]
|
106
|
+
# Additional information detected on the page.
|
107
|
+
# @!attribute [rw] width
|
108
|
+
# @return [::Integer]
|
109
|
+
# Page width. For PDFs the unit is points. For images (including
|
110
|
+
# TIFFs) the unit is pixels.
|
111
|
+
# @!attribute [rw] height
|
112
|
+
# @return [::Integer]
|
113
|
+
# Page height. For PDFs the unit is points. For images (including
|
114
|
+
# TIFFs) the unit is pixels.
|
115
|
+
# @!attribute [rw] blocks
|
116
|
+
# @return [::Array<::Google::Cloud::Vision::V1p4beta1::Block>]
|
117
|
+
# List of blocks of text, images etc on this page.
|
118
|
+
# @!attribute [rw] confidence
|
119
|
+
# @return [::Float]
|
120
|
+
# Confidence of the OCR results on the page. Range [0, 1].
|
121
|
+
class Page
|
122
|
+
include ::Google::Protobuf::MessageExts
|
123
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
124
|
+
end
|
125
|
+
|
126
|
+
# Logical element on the page.
|
127
|
+
# @!attribute [rw] property
|
128
|
+
# @return [::Google::Cloud::Vision::V1p4beta1::TextAnnotation::TextProperty]
|
129
|
+
# Additional information detected for the block.
|
130
|
+
# @!attribute [rw] bounding_box
|
131
|
+
# @return [::Google::Cloud::Vision::V1p4beta1::BoundingPoly]
|
132
|
+
# The bounding box for the block.
|
133
|
+
# The vertices are in the order of top-left, top-right, bottom-right,
|
134
|
+
# bottom-left. When a rotation of the bounding box is detected the rotation
|
135
|
+
# is represented as around the top-left corner as defined when the text is
|
136
|
+
# read in the 'natural' orientation.
|
137
|
+
# For example:
|
138
|
+
#
|
139
|
+
# * when the text is horizontal it might look like:
|
140
|
+
#
|
141
|
+
# 0----1
|
142
|
+
# | |
|
143
|
+
# 3----2
|
144
|
+
#
|
145
|
+
# * when it's rotated 180 degrees around the top-left corner it becomes:
|
146
|
+
#
|
147
|
+
# 2----3
|
148
|
+
# | |
|
149
|
+
# 1----0
|
150
|
+
#
|
151
|
+
# and the vertex order will still be (0, 1, 2, 3).
|
152
|
+
# @!attribute [rw] paragraphs
|
153
|
+
# @return [::Array<::Google::Cloud::Vision::V1p4beta1::Paragraph>]
|
154
|
+
# List of paragraphs in this block (if this blocks is of type text).
|
155
|
+
# @!attribute [rw] block_type
|
156
|
+
# @return [::Google::Cloud::Vision::V1p4beta1::Block::BlockType]
|
157
|
+
# Detected block type (text, image etc) for this block.
|
158
|
+
# @!attribute [rw] confidence
|
159
|
+
# @return [::Float]
|
160
|
+
# Confidence of the OCR results on the block. Range [0, 1].
|
161
|
+
class Block
|
162
|
+
include ::Google::Protobuf::MessageExts
|
163
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
164
|
+
|
165
|
+
# Type of a block (text, image etc) as identified by OCR.
|
166
|
+
module BlockType
|
167
|
+
# Unknown block type.
|
168
|
+
UNKNOWN = 0
|
169
|
+
|
170
|
+
# Regular text block.
|
171
|
+
TEXT = 1
|
172
|
+
|
173
|
+
# Table block.
|
174
|
+
TABLE = 2
|
175
|
+
|
176
|
+
# Image block.
|
177
|
+
PICTURE = 3
|
178
|
+
|
179
|
+
# Horizontal/vertical line box.
|
180
|
+
RULER = 4
|
181
|
+
|
182
|
+
# Barcode block.
|
183
|
+
BARCODE = 5
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
# Structural unit of text representing a number of words in certain order.
|
188
|
+
# @!attribute [rw] property
|
189
|
+
# @return [::Google::Cloud::Vision::V1p4beta1::TextAnnotation::TextProperty]
|
190
|
+
# Additional information detected for the paragraph.
|
191
|
+
# @!attribute [rw] bounding_box
|
192
|
+
# @return [::Google::Cloud::Vision::V1p4beta1::BoundingPoly]
|
193
|
+
# The bounding box for the paragraph.
|
194
|
+
# The vertices are in the order of top-left, top-right, bottom-right,
|
195
|
+
# bottom-left. When a rotation of the bounding box is detected the rotation
|
196
|
+
# is represented as around the top-left corner as defined when the text is
|
197
|
+
# read in the 'natural' orientation.
|
198
|
+
# For example:
|
199
|
+
# * when the text is horizontal it might look like:
|
200
|
+
# 0----1
|
201
|
+
# | |
|
202
|
+
# 3----2
|
203
|
+
# * when it's rotated 180 degrees around the top-left corner it becomes:
|
204
|
+
# 2----3
|
205
|
+
# | |
|
206
|
+
# 1----0
|
207
|
+
# and the vertex order will still be (0, 1, 2, 3).
|
208
|
+
# @!attribute [rw] words
|
209
|
+
# @return [::Array<::Google::Cloud::Vision::V1p4beta1::Word>]
|
210
|
+
# List of all words in this paragraph.
|
211
|
+
# @!attribute [rw] confidence
|
212
|
+
# @return [::Float]
|
213
|
+
# Confidence of the OCR results for the paragraph. Range [0, 1].
|
214
|
+
class Paragraph
|
215
|
+
include ::Google::Protobuf::MessageExts
|
216
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
217
|
+
end
|
218
|
+
|
219
|
+
# A word representation.
|
220
|
+
# @!attribute [rw] property
|
221
|
+
# @return [::Google::Cloud::Vision::V1p4beta1::TextAnnotation::TextProperty]
|
222
|
+
# Additional information detected for the word.
|
223
|
+
# @!attribute [rw] bounding_box
|
224
|
+
# @return [::Google::Cloud::Vision::V1p4beta1::BoundingPoly]
|
225
|
+
# The bounding box for the word.
|
226
|
+
# The vertices are in the order of top-left, top-right, bottom-right,
|
227
|
+
# bottom-left. When a rotation of the bounding box is detected the rotation
|
228
|
+
# is represented as around the top-left corner as defined when the text is
|
229
|
+
# read in the 'natural' orientation.
|
230
|
+
# For example:
|
231
|
+
# * when the text is horizontal it might look like:
|
232
|
+
# 0----1
|
233
|
+
# | |
|
234
|
+
# 3----2
|
235
|
+
# * when it's rotated 180 degrees around the top-left corner it becomes:
|
236
|
+
# 2----3
|
237
|
+
# | |
|
238
|
+
# 1----0
|
239
|
+
# and the vertex order will still be (0, 1, 2, 3).
|
240
|
+
# @!attribute [rw] symbols
|
241
|
+
# @return [::Array<::Google::Cloud::Vision::V1p4beta1::Symbol>]
|
242
|
+
# List of symbols in the word.
|
243
|
+
# The order of the symbols follows the natural reading order.
|
244
|
+
# @!attribute [rw] confidence
|
245
|
+
# @return [::Float]
|
246
|
+
# Confidence of the OCR results for the word. Range [0, 1].
|
247
|
+
class Word
|
248
|
+
include ::Google::Protobuf::MessageExts
|
249
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
250
|
+
end
|
251
|
+
|
252
|
+
# A single symbol representation.
|
253
|
+
# @!attribute [rw] property
|
254
|
+
# @return [::Google::Cloud::Vision::V1p4beta1::TextAnnotation::TextProperty]
|
255
|
+
# Additional information detected for the symbol.
|
256
|
+
# @!attribute [rw] bounding_box
|
257
|
+
# @return [::Google::Cloud::Vision::V1p4beta1::BoundingPoly]
|
258
|
+
# The bounding box for the symbol.
|
259
|
+
# The vertices are in the order of top-left, top-right, bottom-right,
|
260
|
+
# bottom-left. When a rotation of the bounding box is detected the rotation
|
261
|
+
# is represented as around the top-left corner as defined when the text is
|
262
|
+
# read in the 'natural' orientation.
|
263
|
+
# For example:
|
264
|
+
# * when the text is horizontal it might look like:
|
265
|
+
# 0----1
|
266
|
+
# | |
|
267
|
+
# 3----2
|
268
|
+
# * when it's rotated 180 degrees around the top-left corner it becomes:
|
269
|
+
# 2----3
|
270
|
+
# | |
|
271
|
+
# 1----0
|
272
|
+
# and the vertex order will still be (0, 1, 2, 3).
|
273
|
+
# @!attribute [rw] text
|
274
|
+
# @return [::String]
|
275
|
+
# The actual UTF-8 representation of the symbol.
|
276
|
+
# @!attribute [rw] confidence
|
277
|
+
# @return [::Float]
|
278
|
+
# Confidence of the OCR results for the symbol. Range [0, 1].
|
279
|
+
class Symbol
|
280
|
+
include ::Google::Protobuf::MessageExts
|
281
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
282
|
+
end
|
283
|
+
end
|
284
|
+
end
|
285
|
+
end
|
286
|
+
end
|
@@ -0,0 +1,121 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Vision
|
23
|
+
module V1p4beta1
|
24
|
+
# Relevant information for the image from the Internet.
|
25
|
+
# @!attribute [rw] web_entities
|
26
|
+
# @return [::Array<::Google::Cloud::Vision::V1p4beta1::WebDetection::WebEntity>]
|
27
|
+
# Deduced entities from similar images on the Internet.
|
28
|
+
# @!attribute [rw] full_matching_images
|
29
|
+
# @return [::Array<::Google::Cloud::Vision::V1p4beta1::WebDetection::WebImage>]
|
30
|
+
# Fully matching images from the Internet.
|
31
|
+
# Can include resized copies of the query image.
|
32
|
+
# @!attribute [rw] partial_matching_images
|
33
|
+
# @return [::Array<::Google::Cloud::Vision::V1p4beta1::WebDetection::WebImage>]
|
34
|
+
# Partial matching images from the Internet.
|
35
|
+
# Those images are similar enough to share some key-point features. For
|
36
|
+
# example an original image will likely have partial matching for its crops.
|
37
|
+
# @!attribute [rw] pages_with_matching_images
|
38
|
+
# @return [::Array<::Google::Cloud::Vision::V1p4beta1::WebDetection::WebPage>]
|
39
|
+
# Web pages containing the matching images from the Internet.
|
40
|
+
# @!attribute [rw] visually_similar_images
|
41
|
+
# @return [::Array<::Google::Cloud::Vision::V1p4beta1::WebDetection::WebImage>]
|
42
|
+
# The visually similar image results.
|
43
|
+
# @!attribute [rw] best_guess_labels
|
44
|
+
# @return [::Array<::Google::Cloud::Vision::V1p4beta1::WebDetection::WebLabel>]
|
45
|
+
# The service's best guess as to the topic of the request image.
|
46
|
+
# Inferred from similar images on the open web.
|
47
|
+
class WebDetection
|
48
|
+
include ::Google::Protobuf::MessageExts
|
49
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
50
|
+
|
51
|
+
# Entity deduced from similar images on the Internet.
|
52
|
+
# @!attribute [rw] entity_id
|
53
|
+
# @return [::String]
|
54
|
+
# Opaque entity ID.
|
55
|
+
# @!attribute [rw] score
|
56
|
+
# @return [::Float]
|
57
|
+
# Overall relevancy score for the entity.
|
58
|
+
# Not normalized and not comparable across different image queries.
|
59
|
+
# @!attribute [rw] description
|
60
|
+
# @return [::String]
|
61
|
+
# Canonical description of the entity, in English.
|
62
|
+
class WebEntity
|
63
|
+
include ::Google::Protobuf::MessageExts
|
64
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
65
|
+
end
|
66
|
+
|
67
|
+
# Metadata for online images.
|
68
|
+
# @!attribute [rw] url
|
69
|
+
# @return [::String]
|
70
|
+
# The result image URL.
|
71
|
+
# @!attribute [rw] score
|
72
|
+
# @return [::Float]
|
73
|
+
# (Deprecated) Overall relevancy score for the image.
|
74
|
+
class WebImage
|
75
|
+
include ::Google::Protobuf::MessageExts
|
76
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
77
|
+
end
|
78
|
+
|
79
|
+
# Metadata for web pages.
|
80
|
+
# @!attribute [rw] url
|
81
|
+
# @return [::String]
|
82
|
+
# The result web page URL.
|
83
|
+
# @!attribute [rw] score
|
84
|
+
# @return [::Float]
|
85
|
+
# (Deprecated) Overall relevancy score for the web page.
|
86
|
+
# @!attribute [rw] page_title
|
87
|
+
# @return [::String]
|
88
|
+
# Title for the web page, may contain HTML markups.
|
89
|
+
# @!attribute [rw] full_matching_images
|
90
|
+
# @return [::Array<::Google::Cloud::Vision::V1p4beta1::WebDetection::WebImage>]
|
91
|
+
# Fully matching images on the page.
|
92
|
+
# Can include resized copies of the query image.
|
93
|
+
# @!attribute [rw] partial_matching_images
|
94
|
+
# @return [::Array<::Google::Cloud::Vision::V1p4beta1::WebDetection::WebImage>]
|
95
|
+
# Partial matching images on the page.
|
96
|
+
# Those images are similar enough to share some key-point features. For
|
97
|
+
# example an original image will likely have partial matching for its
|
98
|
+
# crops.
|
99
|
+
class WebPage
|
100
|
+
include ::Google::Protobuf::MessageExts
|
101
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
102
|
+
end
|
103
|
+
|
104
|
+
# Label to provide extra metadata for the web detection.
|
105
|
+
# @!attribute [rw] label
|
106
|
+
# @return [::String]
|
107
|
+
# Label for extra metadata.
|
108
|
+
# @!attribute [rw] language_code
|
109
|
+
# @return [::String]
|
110
|
+
# The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
|
111
|
+
# For more information, see
|
112
|
+
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
113
|
+
class WebLabel
|
114
|
+
include ::Google::Protobuf::MessageExts
|
115
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
@@ -0,0 +1,164 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Longrunning
|
22
|
+
# This resource represents a long-running operation that is the result of a
|
23
|
+
# network API call.
|
24
|
+
# @!attribute [rw] name
|
25
|
+
# @return [::String]
|
26
|
+
# The server-assigned name, which is only unique within the same service that
|
27
|
+
# originally returns it. If you use the default HTTP mapping, the
|
28
|
+
# `name` should be a resource name ending with `operations/{unique_id}`.
|
29
|
+
# @!attribute [rw] metadata
|
30
|
+
# @return [::Google::Protobuf::Any]
|
31
|
+
# Service-specific metadata associated with the operation. It typically
|
32
|
+
# contains progress information and common metadata such as create time.
|
33
|
+
# Some services might not provide such metadata. Any method that returns a
|
34
|
+
# long-running operation should document the metadata type, if any.
|
35
|
+
# @!attribute [rw] done
|
36
|
+
# @return [::Boolean]
|
37
|
+
# If the value is `false`, it means the operation is still in progress.
|
38
|
+
# If `true`, the operation is completed, and either `error` or `response` is
|
39
|
+
# available.
|
40
|
+
# @!attribute [rw] error
|
41
|
+
# @return [::Google::Rpc::Status]
|
42
|
+
# The error result of the operation in case of failure or cancellation.
|
43
|
+
# @!attribute [rw] response
|
44
|
+
# @return [::Google::Protobuf::Any]
|
45
|
+
# The normal response of the operation in case of success. If the original
|
46
|
+
# method returns no data on success, such as `Delete`, the response is
|
47
|
+
# `google.protobuf.Empty`. If the original method is standard
|
48
|
+
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
49
|
+
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
50
|
+
# is the original method name. For example, if the original method name
|
51
|
+
# is `TakeSnapshot()`, the inferred response type is
|
52
|
+
# `TakeSnapshotResponse`.
|
53
|
+
class Operation
|
54
|
+
include ::Google::Protobuf::MessageExts
|
55
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
56
|
+
end
|
57
|
+
|
58
|
+
# The request message for Operations.GetOperation.
|
59
|
+
# @!attribute [rw] name
|
60
|
+
# @return [::String]
|
61
|
+
# The name of the operation resource.
|
62
|
+
class GetOperationRequest
|
63
|
+
include ::Google::Protobuf::MessageExts
|
64
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
65
|
+
end
|
66
|
+
|
67
|
+
# The request message for Operations.ListOperations.
|
68
|
+
# @!attribute [rw] name
|
69
|
+
# @return [::String]
|
70
|
+
# The name of the operation's parent resource.
|
71
|
+
# @!attribute [rw] filter
|
72
|
+
# @return [::String]
|
73
|
+
# The standard list filter.
|
74
|
+
# @!attribute [rw] page_size
|
75
|
+
# @return [::Integer]
|
76
|
+
# The standard list page size.
|
77
|
+
# @!attribute [rw] page_token
|
78
|
+
# @return [::String]
|
79
|
+
# The standard list page token.
|
80
|
+
class ListOperationsRequest
|
81
|
+
include ::Google::Protobuf::MessageExts
|
82
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
83
|
+
end
|
84
|
+
|
85
|
+
# The response message for Operations.ListOperations.
|
86
|
+
# @!attribute [rw] operations
|
87
|
+
# @return [::Array<::Google::Longrunning::Operation>]
|
88
|
+
# A list of operations that matches the specified filter in the request.
|
89
|
+
# @!attribute [rw] next_page_token
|
90
|
+
# @return [::String]
|
91
|
+
# The standard List next-page token.
|
92
|
+
class ListOperationsResponse
|
93
|
+
include ::Google::Protobuf::MessageExts
|
94
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
95
|
+
end
|
96
|
+
|
97
|
+
# The request message for Operations.CancelOperation.
|
98
|
+
# @!attribute [rw] name
|
99
|
+
# @return [::String]
|
100
|
+
# The name of the operation resource to be cancelled.
|
101
|
+
class CancelOperationRequest
|
102
|
+
include ::Google::Protobuf::MessageExts
|
103
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
104
|
+
end
|
105
|
+
|
106
|
+
# The request message for Operations.DeleteOperation.
|
107
|
+
# @!attribute [rw] name
|
108
|
+
# @return [::String]
|
109
|
+
# The name of the operation resource to be deleted.
|
110
|
+
class DeleteOperationRequest
|
111
|
+
include ::Google::Protobuf::MessageExts
|
112
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
113
|
+
end
|
114
|
+
|
115
|
+
# The request message for Operations.WaitOperation.
|
116
|
+
# @!attribute [rw] name
|
117
|
+
# @return [::String]
|
118
|
+
# The name of the operation resource to wait on.
|
119
|
+
# @!attribute [rw] timeout
|
120
|
+
# @return [::Google::Protobuf::Duration]
|
121
|
+
# The maximum duration to wait before timing out. If left blank, the wait
|
122
|
+
# will be at most the time permitted by the underlying HTTP/RPC protocol.
|
123
|
+
# If RPC context deadline is also specified, the shorter one will be used.
|
124
|
+
class WaitOperationRequest
|
125
|
+
include ::Google::Protobuf::MessageExts
|
126
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
127
|
+
end
|
128
|
+
|
129
|
+
# A message representing the message types used by a long-running operation.
|
130
|
+
#
|
131
|
+
# Example:
|
132
|
+
#
|
133
|
+
# rpc LongRunningRecognize(LongRunningRecognizeRequest)
|
134
|
+
# returns (google.longrunning.Operation) {
|
135
|
+
# option (google.longrunning.operation_info) = {
|
136
|
+
# response_type: "LongRunningRecognizeResponse"
|
137
|
+
# metadata_type: "LongRunningRecognizeMetadata"
|
138
|
+
# };
|
139
|
+
# }
|
140
|
+
# @!attribute [rw] response_type
|
141
|
+
# @return [::String]
|
142
|
+
# Required. The message name of the primary return type for this
|
143
|
+
# long-running operation.
|
144
|
+
# This type will be used to deserialize the LRO's response.
|
145
|
+
#
|
146
|
+
# If the response is in a different package from the rpc, a fully-qualified
|
147
|
+
# message name must be used (e.g. `google.protobuf.Struct`).
|
148
|
+
#
|
149
|
+
# Note: Altering this value constitutes a breaking change.
|
150
|
+
# @!attribute [rw] metadata_type
|
151
|
+
# @return [::String]
|
152
|
+
# Required. The message name of the metadata type for this long-running
|
153
|
+
# operation.
|
154
|
+
#
|
155
|
+
# If the response is in a different package from the rpc, a fully-qualified
|
156
|
+
# message name must be used (e.g. `google.protobuf.Struct`).
|
157
|
+
#
|
158
|
+
# Note: Altering this value constitutes a breaking change.
|
159
|
+
class OperationInfo
|
160
|
+
include ::Google::Protobuf::MessageExts
|
161
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|