google-cloud-vision-v1p3beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +203 -0
  5. data/README.md +24 -0
  6. data/lib/google-cloud-vision-v1p3beta1.rb +1 -0
  7. data/lib/google/cloud/common_resources_pb.rb +15 -0
  8. data/lib/google/cloud/vision/v1p3beta1.rb +20 -0
  9. data/lib/google/cloud/vision/v1p3beta1/geometry_pb.rb +44 -0
  10. data/lib/google/cloud/vision/v1p3beta1/image_annotator.rb +21 -0
  11. data/lib/google/cloud/vision/v1p3beta1/image_annotator/client.rb +462 -0
  12. data/lib/google/cloud/vision/v1p3beta1/image_annotator/credentials.rb +52 -0
  13. data/lib/google/cloud/vision/v1p3beta1/image_annotator/helpers.rb +1228 -0
  14. data/lib/google/cloud/vision/v1p3beta1/image_annotator/operations.rb +558 -0
  15. data/lib/google/cloud/vision/v1p3beta1/image_annotator/paths.rb +52 -0
  16. data/lib/google/cloud/vision/v1p3beta1/image_annotator_pb.rb +307 -0
  17. data/lib/google/cloud/vision/v1p3beta1/image_annotator_services_pb.rb +55 -0
  18. data/lib/google/cloud/vision/v1p3beta1/product_search.rb +21 -0
  19. data/lib/google/cloud/vision/v1p3beta1/product_search/client.rb +2033 -0
  20. data/lib/google/cloud/vision/v1p3beta1/product_search/credentials.rb +52 -0
  21. data/lib/google/cloud/vision/v1p3beta1/product_search/operations.rb +558 -0
  22. data/lib/google/cloud/vision/v1p3beta1/product_search/paths.rb +109 -0
  23. data/lib/google/cloud/vision/v1p3beta1/product_search_pb.rb +66 -0
  24. data/lib/google/cloud/vision/v1p3beta1/product_search_service_pb.rb +195 -0
  25. data/lib/google/cloud/vision/v1p3beta1/product_search_service_services_pb.rb +222 -0
  26. data/lib/google/cloud/vision/v1p3beta1/text_annotation_pb.rb +95 -0
  27. data/lib/google/cloud/vision/v1p3beta1/version.rb +28 -0
  28. data/lib/google/cloud/vision/v1p3beta1/web_detection_pb.rb +52 -0
  29. data/proto_docs/README.md +4 -0
  30. data/proto_docs/google/api/field_behavior.rb +59 -0
  31. data/proto_docs/google/api/resource.rb +247 -0
  32. data/proto_docs/google/cloud/vision/v1p3beta1/geometry.rb +91 -0
  33. data/proto_docs/google/cloud/vision/v1p3beta1/image_annotator.rb +869 -0
  34. data/proto_docs/google/cloud/vision/v1p3beta1/product_search.rb +172 -0
  35. data/proto_docs/google/cloud/vision/v1p3beta1/product_search_service.rb +630 -0
  36. data/proto_docs/google/cloud/vision/v1p3beta1/text_annotation.rb +286 -0
  37. data/proto_docs/google/cloud/vision/v1p3beta1/web_detection.rb +120 -0
  38. data/proto_docs/google/longrunning/operations.rb +150 -0
  39. data/proto_docs/google/protobuf/any.rb +137 -0
  40. data/proto_docs/google/protobuf/empty.rb +36 -0
  41. data/proto_docs/google/protobuf/field_mask.rb +237 -0
  42. data/proto_docs/google/protobuf/timestamp.rb +116 -0
  43. data/proto_docs/google/protobuf/wrappers.rb +121 -0
  44. data/proto_docs/google/rpc/status.rb +46 -0
  45. data/proto_docs/google/type/color.rb +168 -0
  46. data/proto_docs/google/type/latlng.rb +38 -0
  47. metadata +201 -0
@@ -0,0 +1,286 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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 V1p3beta1
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::V1p3beta1::TextAnnotation::TextProperty TextAnnotation.TextProperty}
31
+ # message definition below for more detail.
32
+ # @!attribute [rw] pages
33
+ # @return [Array<Google::Cloud::Vision::V1p3beta1::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::V1p3beta1::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::V1p3beta1::TextAnnotation::DetectedLanguage>]
93
+ # A list of detected languages together with confidence.
94
+ # @!attribute [rw] detected_break
95
+ # @return [Google::Cloud::Vision::V1p3beta1::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::V1p3beta1::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::V1p3beta1::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::V1p3beta1::TextAnnotation::TextProperty]
129
+ # Additional information detected for the block.
130
+ # @!attribute [rw] bounding_box
131
+ # @return [Google::Cloud::Vision::V1p3beta1::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 vertice order will still be (0, 1, 2, 3).
152
+ # @!attribute [rw] paragraphs
153
+ # @return [Array<Google::Cloud::Vision::V1p3beta1::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::V1p3beta1::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::V1p3beta1::TextAnnotation::TextProperty]
190
+ # Additional information detected for the paragraph.
191
+ # @!attribute [rw] bounding_box
192
+ # @return [Google::Cloud::Vision::V1p3beta1::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 vertice order will still be (0, 1, 2, 3).
208
+ # @!attribute [rw] words
209
+ # @return [Array<Google::Cloud::Vision::V1p3beta1::Word>]
210
+ # List of 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::V1p3beta1::TextAnnotation::TextProperty]
222
+ # Additional information detected for the word.
223
+ # @!attribute [rw] bounding_box
224
+ # @return [Google::Cloud::Vision::V1p3beta1::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 vertice order will still be (0, 1, 2, 3).
240
+ # @!attribute [rw] symbols
241
+ # @return [Array<Google::Cloud::Vision::V1p3beta1::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::V1p3beta1::TextAnnotation::TextProperty]
255
+ # Additional information detected for the symbol.
256
+ # @!attribute [rw] bounding_box
257
+ # @return [Google::Cloud::Vision::V1p3beta1::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 vertice 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,120 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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 V1p3beta1
24
+ # Relevant information for the image from the Internet.
25
+ # @!attribute [rw] web_entities
26
+ # @return [Array<Google::Cloud::Vision::V1p3beta1::WebDetection::WebEntity>]
27
+ # Deduced entities from similar images on the Internet.
28
+ # @!attribute [rw] full_matching_images
29
+ # @return [Array<Google::Cloud::Vision::V1p3beta1::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::V1p3beta1::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::V1p3beta1::WebDetection::WebPage>]
39
+ # Web pages containing the matching images from the Internet.
40
+ # @!attribute [rw] visually_similar_images
41
+ # @return [Array<Google::Cloud::Vision::V1p3beta1::WebDetection::WebImage>]
42
+ # The visually similar image results.
43
+ # @!attribute [rw] best_guess_labels
44
+ # @return [Array<Google::Cloud::Vision::V1p3beta1::WebDetection::WebLabel>]
45
+ # Best guess text labels for the request image.
46
+ class WebDetection
47
+ include Google::Protobuf::MessageExts
48
+ extend Google::Protobuf::MessageExts::ClassMethods
49
+
50
+ # Entity deduced from similar images on the Internet.
51
+ # @!attribute [rw] entity_id
52
+ # @return [String]
53
+ # Opaque entity ID.
54
+ # @!attribute [rw] score
55
+ # @return [Float]
56
+ # Overall relevancy score for the entity.
57
+ # Not normalized and not comparable across different image queries.
58
+ # @!attribute [rw] description
59
+ # @return [String]
60
+ # Canonical description of the entity, in English.
61
+ class WebEntity
62
+ include Google::Protobuf::MessageExts
63
+ extend Google::Protobuf::MessageExts::ClassMethods
64
+ end
65
+
66
+ # Metadata for online images.
67
+ # @!attribute [rw] url
68
+ # @return [String]
69
+ # The result image URL.
70
+ # @!attribute [rw] score
71
+ # @return [Float]
72
+ # (Deprecated) Overall relevancy score for the image.
73
+ class WebImage
74
+ include Google::Protobuf::MessageExts
75
+ extend Google::Protobuf::MessageExts::ClassMethods
76
+ end
77
+
78
+ # Metadata for web pages.
79
+ # @!attribute [rw] url
80
+ # @return [String]
81
+ # The result web page URL.
82
+ # @!attribute [rw] score
83
+ # @return [Float]
84
+ # (Deprecated) Overall relevancy score for the web page.
85
+ # @!attribute [rw] page_title
86
+ # @return [String]
87
+ # Title for the web page, may contain HTML markups.
88
+ # @!attribute [rw] full_matching_images
89
+ # @return [Array<Google::Cloud::Vision::V1p3beta1::WebDetection::WebImage>]
90
+ # Fully matching images on the page.
91
+ # Can include resized copies of the query image.
92
+ # @!attribute [rw] partial_matching_images
93
+ # @return [Array<Google::Cloud::Vision::V1p3beta1::WebDetection::WebImage>]
94
+ # Partial matching images on the page.
95
+ # Those images are similar enough to share some key-point features. For
96
+ # example an original image will likely have partial matching for its
97
+ # crops.
98
+ class WebPage
99
+ include Google::Protobuf::MessageExts
100
+ extend Google::Protobuf::MessageExts::ClassMethods
101
+ end
102
+
103
+ # Label to provide extra metadata for the web detection.
104
+ # @!attribute [rw] label
105
+ # @return [String]
106
+ # Label for extra metadata.
107
+ # @!attribute [rw] language_code
108
+ # @return [String]
109
+ # The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
110
+ # For more information, see
111
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
112
+ class WebLabel
113
+ include Google::Protobuf::MessageExts
114
+ extend Google::Protobuf::MessageExts::ClassMethods
115
+ end
116
+ end
117
+ end
118
+ end
119
+ end
120
+ end
@@ -0,0 +1,150 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 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 have the format of `operations/some/unique/name`.
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 collection.
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
+ # A message representing the message types used by a long-running operation.
116
+ #
117
+ # Example:
118
+ #
119
+ # rpc LongRunningRecognize(LongRunningRecognizeRequest)
120
+ # returns (google.longrunning.Operation) {
121
+ # option (google.longrunning.operation_info) = {
122
+ # response_type: "LongRunningRecognizeResponse"
123
+ # metadata_type: "LongRunningRecognizeMetadata"
124
+ # };
125
+ # }
126
+ # @!attribute [rw] response_type
127
+ # @return [String]
128
+ # Required. The message name of the primary return type for this
129
+ # long-running operation.
130
+ # This type will be used to deserialize the LRO's response.
131
+ #
132
+ # If the response is in a different package from the rpc, a fully-qualified
133
+ # message name must be used (e.g. `google.protobuf.Struct`).
134
+ #
135
+ # Note: Altering this value constitutes a breaking change.
136
+ # @!attribute [rw] metadata_type
137
+ # @return [String]
138
+ # Required. The message name of the metadata type for this long-running
139
+ # operation.
140
+ #
141
+ # If the response is in a different package from the rpc, a fully-qualified
142
+ # message name must be used (e.g. `google.protobuf.Struct`).
143
+ #
144
+ # Note: Altering this value constitutes a breaking change.
145
+ class OperationInfo
146
+ include Google::Protobuf::MessageExts
147
+ extend Google::Protobuf::MessageExts::ClassMethods
148
+ end
149
+ end
150
+ end