google-cloud-vision-v1 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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-v1.rb +1 -0
  7. data/lib/google/cloud/common_resources_pb.rb +15 -0
  8. data/lib/google/cloud/vision/v1.rb +20 -0
  9. data/lib/google/cloud/vision/v1/geometry_pb.rb +40 -0
  10. data/lib/google/cloud/vision/v1/image_annotator.rb +21 -0
  11. data/lib/google/cloud/vision/v1/image_annotator/client.rb +682 -0
  12. data/lib/google/cloud/vision/v1/image_annotator/credentials.rb +52 -0
  13. data/lib/google/cloud/vision/v1/image_annotator/helpers.rb +1228 -0
  14. data/lib/google/cloud/vision/v1/image_annotator/operations.rb +558 -0
  15. data/lib/google/cloud/vision/v1/image_annotator/paths.rb +52 -0
  16. data/lib/google/cloud/vision/v1/image_annotator_pb.rb +345 -0
  17. data/lib/google/cloud/vision/v1/image_annotator_services_pb.rb +73 -0
  18. data/lib/google/cloud/vision/v1/product_search.rb +21 -0
  19. data/lib/google/cloud/vision/v1/product_search/client.rb +2134 -0
  20. data/lib/google/cloud/vision/v1/product_search/credentials.rb +52 -0
  21. data/lib/google/cloud/vision/v1/product_search/operations.rb +558 -0
  22. data/lib/google/cloud/vision/v1/product_search/paths.rb +109 -0
  23. data/lib/google/cloud/vision/v1/product_search_pb.rb +55 -0
  24. data/lib/google/cloud/vision/v1/product_search_service_pb.rb +208 -0
  25. data/lib/google/cloud/vision/v1/product_search_service_services_pb.rb +232 -0
  26. data/lib/google/cloud/vision/v1/text_annotation_pb.rb +95 -0
  27. data/lib/google/cloud/vision/v1/version.rb +28 -0
  28. data/lib/google/cloud/vision/v1/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/v1/geometry.rb +82 -0
  33. data/proto_docs/google/cloud/vision/v1/image_annotator.rb +1044 -0
  34. data/proto_docs/google/cloud/vision/v1/product_search.rb +134 -0
  35. data/proto_docs/google/cloud/vision/v1/product_search_service.rb +669 -0
  36. data/proto_docs/google/cloud/vision/v1/text_annotation.rb +285 -0
  37. data/proto_docs/google/cloud/vision/v1/web_detection.rb +121 -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,285 @@
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 V1
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 {Google::Cloud::Vision::V1::TextAnnotation::TextProperty TextAnnotation.TextProperty} message definition below for more
30
+ # detail.
31
+ # @!attribute [rw] pages
32
+ # @return [Array<Google::Cloud::Vision::V1::Page>]
33
+ # List of pages detected by OCR.
34
+ # @!attribute [rw] text
35
+ # @return [String]
36
+ # UTF-8 text detected on the pages.
37
+ class TextAnnotation
38
+ include Google::Protobuf::MessageExts
39
+ extend Google::Protobuf::MessageExts::ClassMethods
40
+
41
+ # Detected language for a structural component.
42
+ # @!attribute [rw] language_code
43
+ # @return [String]
44
+ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more
45
+ # information, see
46
+ # http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
47
+ # @!attribute [rw] confidence
48
+ # @return [Float]
49
+ # Confidence of detected language. Range [0, 1].
50
+ class DetectedLanguage
51
+ include Google::Protobuf::MessageExts
52
+ extend Google::Protobuf::MessageExts::ClassMethods
53
+ end
54
+
55
+ # Detected start or end of a structural component.
56
+ # @!attribute [rw] type
57
+ # @return [Google::Cloud::Vision::V1::TextAnnotation::DetectedBreak::BreakType]
58
+ # Detected break type.
59
+ # @!attribute [rw] is_prefix
60
+ # @return [Boolean]
61
+ # True if break prepends the element.
62
+ class DetectedBreak
63
+ include Google::Protobuf::MessageExts
64
+ extend Google::Protobuf::MessageExts::ClassMethods
65
+
66
+ # Enum to denote the type of break found. New line, space etc.
67
+ module BreakType
68
+ # Unknown break label type.
69
+ UNKNOWN = 0
70
+
71
+ # Regular space.
72
+ SPACE = 1
73
+
74
+ # Sure space (very wide).
75
+ SURE_SPACE = 2
76
+
77
+ # Line-wrapping break.
78
+ EOL_SURE_SPACE = 3
79
+
80
+ # End-line hyphen that is not present in text; does not co-occur with
81
+ # `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
82
+ HYPHEN = 4
83
+
84
+ # Line break that ends a paragraph.
85
+ LINE_BREAK = 5
86
+ end
87
+ end
88
+
89
+ # Additional information detected on the structural component.
90
+ # @!attribute [rw] detected_languages
91
+ # @return [Array<Google::Cloud::Vision::V1::TextAnnotation::DetectedLanguage>]
92
+ # A list of detected languages together with confidence.
93
+ # @!attribute [rw] detected_break
94
+ # @return [Google::Cloud::Vision::V1::TextAnnotation::DetectedBreak]
95
+ # Detected start or end of a text segment.
96
+ class TextProperty
97
+ include Google::Protobuf::MessageExts
98
+ extend Google::Protobuf::MessageExts::ClassMethods
99
+ end
100
+ end
101
+
102
+ # Detected page from OCR.
103
+ # @!attribute [rw] property
104
+ # @return [Google::Cloud::Vision::V1::TextAnnotation::TextProperty]
105
+ # Additional information detected on the page.
106
+ # @!attribute [rw] width
107
+ # @return [Integer]
108
+ # Page width. For PDFs the unit is points. For images (including
109
+ # TIFFs) the unit is pixels.
110
+ # @!attribute [rw] height
111
+ # @return [Integer]
112
+ # Page height. For PDFs the unit is points. For images (including
113
+ # TIFFs) the unit is pixels.
114
+ # @!attribute [rw] blocks
115
+ # @return [Array<Google::Cloud::Vision::V1::Block>]
116
+ # List of blocks of text, images etc on this page.
117
+ # @!attribute [rw] confidence
118
+ # @return [Float]
119
+ # Confidence of the OCR results on the page. Range [0, 1].
120
+ class Page
121
+ include Google::Protobuf::MessageExts
122
+ extend Google::Protobuf::MessageExts::ClassMethods
123
+ end
124
+
125
+ # Logical element on the page.
126
+ # @!attribute [rw] property
127
+ # @return [Google::Cloud::Vision::V1::TextAnnotation::TextProperty]
128
+ # Additional information detected for the block.
129
+ # @!attribute [rw] bounding_box
130
+ # @return [Google::Cloud::Vision::V1::BoundingPoly]
131
+ # The bounding box for the block.
132
+ # The vertices are in the order of top-left, top-right, bottom-right,
133
+ # bottom-left. When a rotation of the bounding box is detected the rotation
134
+ # is represented as around the top-left corner as defined when the text is
135
+ # read in the 'natural' orientation.
136
+ # For example:
137
+ #
138
+ # * when the text is horizontal it might look like:
139
+ #
140
+ # 0----1
141
+ # | |
142
+ # 3----2
143
+ #
144
+ # * when it's rotated 180 degrees around the top-left corner it becomes:
145
+ #
146
+ # 2----3
147
+ # | |
148
+ # 1----0
149
+ #
150
+ # and the vertex order will still be (0, 1, 2, 3).
151
+ # @!attribute [rw] paragraphs
152
+ # @return [Array<Google::Cloud::Vision::V1::Paragraph>]
153
+ # List of paragraphs in this block (if this blocks is of type text).
154
+ # @!attribute [rw] block_type
155
+ # @return [Google::Cloud::Vision::V1::Block::BlockType]
156
+ # Detected block type (text, image etc) for this block.
157
+ # @!attribute [rw] confidence
158
+ # @return [Float]
159
+ # Confidence of the OCR results on the block. Range [0, 1].
160
+ class Block
161
+ include Google::Protobuf::MessageExts
162
+ extend Google::Protobuf::MessageExts::ClassMethods
163
+
164
+ # Type of a block (text, image etc) as identified by OCR.
165
+ module BlockType
166
+ # Unknown block type.
167
+ UNKNOWN = 0
168
+
169
+ # Regular text block.
170
+ TEXT = 1
171
+
172
+ # Table block.
173
+ TABLE = 2
174
+
175
+ # Image block.
176
+ PICTURE = 3
177
+
178
+ # Horizontal/vertical line box.
179
+ RULER = 4
180
+
181
+ # Barcode block.
182
+ BARCODE = 5
183
+ end
184
+ end
185
+
186
+ # Structural unit of text representing a number of words in certain order.
187
+ # @!attribute [rw] property
188
+ # @return [Google::Cloud::Vision::V1::TextAnnotation::TextProperty]
189
+ # Additional information detected for the paragraph.
190
+ # @!attribute [rw] bounding_box
191
+ # @return [Google::Cloud::Vision::V1::BoundingPoly]
192
+ # The bounding box for the paragraph.
193
+ # The vertices are in the order of top-left, top-right, bottom-right,
194
+ # bottom-left. When a rotation of the bounding box is detected the rotation
195
+ # is represented as around the top-left corner as defined when the text is
196
+ # read in the 'natural' orientation.
197
+ # For example:
198
+ # * when the text is horizontal it might look like:
199
+ # 0----1
200
+ # | |
201
+ # 3----2
202
+ # * when it's rotated 180 degrees around the top-left corner it becomes:
203
+ # 2----3
204
+ # | |
205
+ # 1----0
206
+ # and the vertex order will still be (0, 1, 2, 3).
207
+ # @!attribute [rw] words
208
+ # @return [Array<Google::Cloud::Vision::V1::Word>]
209
+ # List of all words in this paragraph.
210
+ # @!attribute [rw] confidence
211
+ # @return [Float]
212
+ # Confidence of the OCR results for the paragraph. Range [0, 1].
213
+ class Paragraph
214
+ include Google::Protobuf::MessageExts
215
+ extend Google::Protobuf::MessageExts::ClassMethods
216
+ end
217
+
218
+ # A word representation.
219
+ # @!attribute [rw] property
220
+ # @return [Google::Cloud::Vision::V1::TextAnnotation::TextProperty]
221
+ # Additional information detected for the word.
222
+ # @!attribute [rw] bounding_box
223
+ # @return [Google::Cloud::Vision::V1::BoundingPoly]
224
+ # The bounding box for the word.
225
+ # The vertices are in the order of top-left, top-right, bottom-right,
226
+ # bottom-left. When a rotation of the bounding box is detected the rotation
227
+ # is represented as around the top-left corner as defined when the text is
228
+ # read in the 'natural' orientation.
229
+ # For example:
230
+ # * when the text is horizontal it might look like:
231
+ # 0----1
232
+ # | |
233
+ # 3----2
234
+ # * when it's rotated 180 degrees around the top-left corner it becomes:
235
+ # 2----3
236
+ # | |
237
+ # 1----0
238
+ # and the vertex order will still be (0, 1, 2, 3).
239
+ # @!attribute [rw] symbols
240
+ # @return [Array<Google::Cloud::Vision::V1::Symbol>]
241
+ # List of symbols in the word.
242
+ # The order of the symbols follows the natural reading order.
243
+ # @!attribute [rw] confidence
244
+ # @return [Float]
245
+ # Confidence of the OCR results for the word. Range [0, 1].
246
+ class Word
247
+ include Google::Protobuf::MessageExts
248
+ extend Google::Protobuf::MessageExts::ClassMethods
249
+ end
250
+
251
+ # A single symbol representation.
252
+ # @!attribute [rw] property
253
+ # @return [Google::Cloud::Vision::V1::TextAnnotation::TextProperty]
254
+ # Additional information detected for the symbol.
255
+ # @!attribute [rw] bounding_box
256
+ # @return [Google::Cloud::Vision::V1::BoundingPoly]
257
+ # The bounding box for the symbol.
258
+ # The vertices are in the order of top-left, top-right, bottom-right,
259
+ # bottom-left. When a rotation of the bounding box is detected the rotation
260
+ # is represented as around the top-left corner as defined when the text is
261
+ # read in the 'natural' orientation.
262
+ # For example:
263
+ # * when the text is horizontal it might look like:
264
+ # 0----1
265
+ # | |
266
+ # 3----2
267
+ # * when it's rotated 180 degrees around the top-left corner it becomes:
268
+ # 2----3
269
+ # | |
270
+ # 1----0
271
+ # and the vertex order will still be (0, 1, 2, 3).
272
+ # @!attribute [rw] text
273
+ # @return [String]
274
+ # The actual UTF-8 representation of the symbol.
275
+ # @!attribute [rw] confidence
276
+ # @return [Float]
277
+ # Confidence of the OCR results for the symbol. Range [0, 1].
278
+ class Symbol
279
+ include Google::Protobuf::MessageExts
280
+ extend Google::Protobuf::MessageExts::ClassMethods
281
+ end
282
+ end
283
+ end
284
+ end
285
+ end
@@ -0,0 +1,121 @@
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 V1
24
+ # Relevant information for the image from the Internet.
25
+ # @!attribute [rw] web_entities
26
+ # @return [Array<Google::Cloud::Vision::V1::WebDetection::WebEntity>]
27
+ # Deduced entities from similar images on the Internet.
28
+ # @!attribute [rw] full_matching_images
29
+ # @return [Array<Google::Cloud::Vision::V1::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::V1::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::V1::WebDetection::WebPage>]
39
+ # Web pages containing the matching images from the Internet.
40
+ # @!attribute [rw] visually_similar_images
41
+ # @return [Array<Google::Cloud::Vision::V1::WebDetection::WebImage>]
42
+ # The visually similar image results.
43
+ # @!attribute [rw] best_guess_labels
44
+ # @return [Array<Google::Cloud::Vision::V1::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::V1::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::V1::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,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