google-cloud-vision-v1 0.1.2 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +48 -1
- data/lib/google-cloud-vision-v1.rb +21 -1
- data/lib/google/cloud/vision/v1.rb +16 -0
- data/lib/google/cloud/vision/v1/image_annotator.rb +33 -2
- data/lib/google/cloud/vision/v1/image_annotator/client.rb +154 -150
- data/lib/google/cloud/vision/v1/image_annotator/credentials.rb +1 -1
- data/lib/google/cloud/vision/v1/image_annotator/operations.rb +139 -127
- data/lib/google/cloud/vision/v1/image_annotator/paths.rb +3 -3
- data/lib/google/cloud/vision/v1/product_search.rb +44 -2
- data/lib/google/cloud/vision/v1/product_search/client.rb +530 -539
- data/lib/google/cloud/vision/v1/product_search/credentials.rb +1 -1
- data/lib/google/cloud/vision/v1/product_search/operations.rb +139 -127
- data/lib/google/cloud/vision/v1/product_search/paths.rb +12 -12
- data/lib/google/cloud/vision/v1/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/vision/v1/geometry.rb +17 -17
- data/proto_docs/google/cloud/vision/v1/image_annotator.rb +204 -204
- data/proto_docs/google/cloud/vision/v1/product_search.rb +28 -28
- data/proto_docs/google/cloud/vision/v1/product_search_service.rb +144 -144
- data/proto_docs/google/cloud/vision/v1/text_annotation.rb +49 -49
- data/proto_docs/google/cloud/vision/v1/web_detection.rb +28 -28
- data/proto_docs/google/longrunning/operations.rb +30 -30
- data/proto_docs/google/protobuf/any.rb +4 -4
- data/proto_docs/google/protobuf/empty.rb +2 -2
- data/proto_docs/google/protobuf/field_mask.rb +3 -3
- data/proto_docs/google/protobuf/timestamp.rb +4 -4
- data/proto_docs/google/protobuf/wrappers.rb +27 -27
- data/proto_docs/google/rpc/status.rb +6 -6
- data/proto_docs/google/type/color.rb +6 -6
- data/proto_docs/google/type/latlng.rb +4 -4
- metadata +32 -5
- data/lib/google/cloud/common_resources_pb.rb +0 -15
@@ -26,42 +26,42 @@ module Google
|
|
26
26
|
# TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
|
27
27
|
# Each structural component, starting from Page, may further have their own
|
28
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
|
29
|
+
# to the {::Google::Cloud::Vision::V1::TextAnnotation::TextProperty TextAnnotation.TextProperty} message definition below for more
|
30
30
|
# detail.
|
31
31
|
# @!attribute [rw] pages
|
32
|
-
# @return [Array
|
32
|
+
# @return [::Array<::Google::Cloud::Vision::V1::Page>]
|
33
33
|
# List of pages detected by OCR.
|
34
34
|
# @!attribute [rw] text
|
35
|
-
# @return [String]
|
35
|
+
# @return [::String]
|
36
36
|
# UTF-8 text detected on the pages.
|
37
37
|
class TextAnnotation
|
38
|
-
include Google::Protobuf::MessageExts
|
39
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
38
|
+
include ::Google::Protobuf::MessageExts
|
39
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
40
40
|
|
41
41
|
# Detected language for a structural component.
|
42
42
|
# @!attribute [rw] language_code
|
43
|
-
# @return [String]
|
43
|
+
# @return [::String]
|
44
44
|
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
45
45
|
# information, see
|
46
46
|
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
47
47
|
# @!attribute [rw] confidence
|
48
|
-
# @return [Float]
|
48
|
+
# @return [::Float]
|
49
49
|
# Confidence of detected language. Range [0, 1].
|
50
50
|
class DetectedLanguage
|
51
|
-
include Google::Protobuf::MessageExts
|
52
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
51
|
+
include ::Google::Protobuf::MessageExts
|
52
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
53
53
|
end
|
54
54
|
|
55
55
|
# Detected start or end of a structural component.
|
56
56
|
# @!attribute [rw] type
|
57
|
-
# @return [Google::Cloud::Vision::V1::TextAnnotation::DetectedBreak::BreakType]
|
57
|
+
# @return [::Google::Cloud::Vision::V1::TextAnnotation::DetectedBreak::BreakType]
|
58
58
|
# Detected break type.
|
59
59
|
# @!attribute [rw] is_prefix
|
60
|
-
# @return [Boolean]
|
60
|
+
# @return [::Boolean]
|
61
61
|
# True if break prepends the element.
|
62
62
|
class DetectedBreak
|
63
|
-
include Google::Protobuf::MessageExts
|
64
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
63
|
+
include ::Google::Protobuf::MessageExts
|
64
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
65
65
|
|
66
66
|
# Enum to denote the type of break found. New line, space etc.
|
67
67
|
module BreakType
|
@@ -88,46 +88,46 @@ module Google
|
|
88
88
|
|
89
89
|
# Additional information detected on the structural component.
|
90
90
|
# @!attribute [rw] detected_languages
|
91
|
-
# @return [Array
|
91
|
+
# @return [::Array<::Google::Cloud::Vision::V1::TextAnnotation::DetectedLanguage>]
|
92
92
|
# A list of detected languages together with confidence.
|
93
93
|
# @!attribute [rw] detected_break
|
94
|
-
# @return [Google::Cloud::Vision::V1::TextAnnotation::DetectedBreak]
|
94
|
+
# @return [::Google::Cloud::Vision::V1::TextAnnotation::DetectedBreak]
|
95
95
|
# Detected start or end of a text segment.
|
96
96
|
class TextProperty
|
97
|
-
include Google::Protobuf::MessageExts
|
98
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
97
|
+
include ::Google::Protobuf::MessageExts
|
98
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
99
99
|
end
|
100
100
|
end
|
101
101
|
|
102
102
|
# Detected page from OCR.
|
103
103
|
# @!attribute [rw] property
|
104
|
-
# @return [Google::Cloud::Vision::V1::TextAnnotation::TextProperty]
|
104
|
+
# @return [::Google::Cloud::Vision::V1::TextAnnotation::TextProperty]
|
105
105
|
# Additional information detected on the page.
|
106
106
|
# @!attribute [rw] width
|
107
|
-
# @return [Integer]
|
107
|
+
# @return [::Integer]
|
108
108
|
# Page width. For PDFs the unit is points. For images (including
|
109
109
|
# TIFFs) the unit is pixels.
|
110
110
|
# @!attribute [rw] height
|
111
|
-
# @return [Integer]
|
111
|
+
# @return [::Integer]
|
112
112
|
# Page height. For PDFs the unit is points. For images (including
|
113
113
|
# TIFFs) the unit is pixels.
|
114
114
|
# @!attribute [rw] blocks
|
115
|
-
# @return [Array
|
115
|
+
# @return [::Array<::Google::Cloud::Vision::V1::Block>]
|
116
116
|
# List of blocks of text, images etc on this page.
|
117
117
|
# @!attribute [rw] confidence
|
118
|
-
# @return [Float]
|
118
|
+
# @return [::Float]
|
119
119
|
# Confidence of the OCR results on the page. Range [0, 1].
|
120
120
|
class Page
|
121
|
-
include Google::Protobuf::MessageExts
|
122
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
121
|
+
include ::Google::Protobuf::MessageExts
|
122
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
123
123
|
end
|
124
124
|
|
125
125
|
# Logical element on the page.
|
126
126
|
# @!attribute [rw] property
|
127
|
-
# @return [Google::Cloud::Vision::V1::TextAnnotation::TextProperty]
|
127
|
+
# @return [::Google::Cloud::Vision::V1::TextAnnotation::TextProperty]
|
128
128
|
# Additional information detected for the block.
|
129
129
|
# @!attribute [rw] bounding_box
|
130
|
-
# @return [Google::Cloud::Vision::V1::BoundingPoly]
|
130
|
+
# @return [::Google::Cloud::Vision::V1::BoundingPoly]
|
131
131
|
# The bounding box for the block.
|
132
132
|
# The vertices are in the order of top-left, top-right, bottom-right,
|
133
133
|
# bottom-left. When a rotation of the bounding box is detected the rotation
|
@@ -149,17 +149,17 @@ module Google
|
|
149
149
|
#
|
150
150
|
# and the vertex order will still be (0, 1, 2, 3).
|
151
151
|
# @!attribute [rw] paragraphs
|
152
|
-
# @return [Array
|
152
|
+
# @return [::Array<::Google::Cloud::Vision::V1::Paragraph>]
|
153
153
|
# List of paragraphs in this block (if this blocks is of type text).
|
154
154
|
# @!attribute [rw] block_type
|
155
|
-
# @return [Google::Cloud::Vision::V1::Block::BlockType]
|
155
|
+
# @return [::Google::Cloud::Vision::V1::Block::BlockType]
|
156
156
|
# Detected block type (text, image etc) for this block.
|
157
157
|
# @!attribute [rw] confidence
|
158
|
-
# @return [Float]
|
158
|
+
# @return [::Float]
|
159
159
|
# Confidence of the OCR results on the block. Range [0, 1].
|
160
160
|
class Block
|
161
|
-
include Google::Protobuf::MessageExts
|
162
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
161
|
+
include ::Google::Protobuf::MessageExts
|
162
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
163
163
|
|
164
164
|
# Type of a block (text, image etc) as identified by OCR.
|
165
165
|
module BlockType
|
@@ -185,10 +185,10 @@ module Google
|
|
185
185
|
|
186
186
|
# Structural unit of text representing a number of words in certain order.
|
187
187
|
# @!attribute [rw] property
|
188
|
-
# @return [Google::Cloud::Vision::V1::TextAnnotation::TextProperty]
|
188
|
+
# @return [::Google::Cloud::Vision::V1::TextAnnotation::TextProperty]
|
189
189
|
# Additional information detected for the paragraph.
|
190
190
|
# @!attribute [rw] bounding_box
|
191
|
-
# @return [Google::Cloud::Vision::V1::BoundingPoly]
|
191
|
+
# @return [::Google::Cloud::Vision::V1::BoundingPoly]
|
192
192
|
# The bounding box for the paragraph.
|
193
193
|
# The vertices are in the order of top-left, top-right, bottom-right,
|
194
194
|
# bottom-left. When a rotation of the bounding box is detected the rotation
|
@@ -205,22 +205,22 @@ module Google
|
|
205
205
|
# 1----0
|
206
206
|
# and the vertex order will still be (0, 1, 2, 3).
|
207
207
|
# @!attribute [rw] words
|
208
|
-
# @return [Array
|
208
|
+
# @return [::Array<::Google::Cloud::Vision::V1::Word>]
|
209
209
|
# List of all words in this paragraph.
|
210
210
|
# @!attribute [rw] confidence
|
211
|
-
# @return [Float]
|
211
|
+
# @return [::Float]
|
212
212
|
# Confidence of the OCR results for the paragraph. Range [0, 1].
|
213
213
|
class Paragraph
|
214
|
-
include Google::Protobuf::MessageExts
|
215
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
214
|
+
include ::Google::Protobuf::MessageExts
|
215
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
216
216
|
end
|
217
217
|
|
218
218
|
# A word representation.
|
219
219
|
# @!attribute [rw] property
|
220
|
-
# @return [Google::Cloud::Vision::V1::TextAnnotation::TextProperty]
|
220
|
+
# @return [::Google::Cloud::Vision::V1::TextAnnotation::TextProperty]
|
221
221
|
# Additional information detected for the word.
|
222
222
|
# @!attribute [rw] bounding_box
|
223
|
-
# @return [Google::Cloud::Vision::V1::BoundingPoly]
|
223
|
+
# @return [::Google::Cloud::Vision::V1::BoundingPoly]
|
224
224
|
# The bounding box for the word.
|
225
225
|
# The vertices are in the order of top-left, top-right, bottom-right,
|
226
226
|
# bottom-left. When a rotation of the bounding box is detected the rotation
|
@@ -237,23 +237,23 @@ module Google
|
|
237
237
|
# 1----0
|
238
238
|
# and the vertex order will still be (0, 1, 2, 3).
|
239
239
|
# @!attribute [rw] symbols
|
240
|
-
# @return [Array
|
240
|
+
# @return [::Array<::Google::Cloud::Vision::V1::Symbol>]
|
241
241
|
# List of symbols in the word.
|
242
242
|
# The order of the symbols follows the natural reading order.
|
243
243
|
# @!attribute [rw] confidence
|
244
|
-
# @return [Float]
|
244
|
+
# @return [::Float]
|
245
245
|
# Confidence of the OCR results for the word. Range [0, 1].
|
246
246
|
class Word
|
247
|
-
include Google::Protobuf::MessageExts
|
248
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
247
|
+
include ::Google::Protobuf::MessageExts
|
248
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
249
249
|
end
|
250
250
|
|
251
251
|
# A single symbol representation.
|
252
252
|
# @!attribute [rw] property
|
253
|
-
# @return [Google::Cloud::Vision::V1::TextAnnotation::TextProperty]
|
253
|
+
# @return [::Google::Cloud::Vision::V1::TextAnnotation::TextProperty]
|
254
254
|
# Additional information detected for the symbol.
|
255
255
|
# @!attribute [rw] bounding_box
|
256
|
-
# @return [Google::Cloud::Vision::V1::BoundingPoly]
|
256
|
+
# @return [::Google::Cloud::Vision::V1::BoundingPoly]
|
257
257
|
# The bounding box for the symbol.
|
258
258
|
# The vertices are in the order of top-left, top-right, bottom-right,
|
259
259
|
# bottom-left. When a rotation of the bounding box is detected the rotation
|
@@ -270,14 +270,14 @@ module Google
|
|
270
270
|
# 1----0
|
271
271
|
# and the vertex order will still be (0, 1, 2, 3).
|
272
272
|
# @!attribute [rw] text
|
273
|
-
# @return [String]
|
273
|
+
# @return [::String]
|
274
274
|
# The actual UTF-8 representation of the symbol.
|
275
275
|
# @!attribute [rw] confidence
|
276
|
-
# @return [Float]
|
276
|
+
# @return [::Float]
|
277
277
|
# Confidence of the OCR results for the symbol. Range [0, 1].
|
278
278
|
class Symbol
|
279
|
-
include Google::Protobuf::MessageExts
|
280
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
279
|
+
include ::Google::Protobuf::MessageExts
|
280
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
281
281
|
end
|
282
282
|
end
|
283
283
|
end
|
@@ -23,96 +23,96 @@ module Google
|
|
23
23
|
module V1
|
24
24
|
# Relevant information for the image from the Internet.
|
25
25
|
# @!attribute [rw] web_entities
|
26
|
-
# @return [Array
|
26
|
+
# @return [::Array<::Google::Cloud::Vision::V1::WebDetection::WebEntity>]
|
27
27
|
# Deduced entities from similar images on the Internet.
|
28
28
|
# @!attribute [rw] full_matching_images
|
29
|
-
# @return [Array
|
29
|
+
# @return [::Array<::Google::Cloud::Vision::V1::WebDetection::WebImage>]
|
30
30
|
# Fully matching images from the Internet.
|
31
31
|
# Can include resized copies of the query image.
|
32
32
|
# @!attribute [rw] partial_matching_images
|
33
|
-
# @return [Array
|
33
|
+
# @return [::Array<::Google::Cloud::Vision::V1::WebDetection::WebImage>]
|
34
34
|
# Partial matching images from the Internet.
|
35
35
|
# Those images are similar enough to share some key-point features. For
|
36
36
|
# example an original image will likely have partial matching for its crops.
|
37
37
|
# @!attribute [rw] pages_with_matching_images
|
38
|
-
# @return [Array
|
38
|
+
# @return [::Array<::Google::Cloud::Vision::V1::WebDetection::WebPage>]
|
39
39
|
# Web pages containing the matching images from the Internet.
|
40
40
|
# @!attribute [rw] visually_similar_images
|
41
|
-
# @return [Array
|
41
|
+
# @return [::Array<::Google::Cloud::Vision::V1::WebDetection::WebImage>]
|
42
42
|
# The visually similar image results.
|
43
43
|
# @!attribute [rw] best_guess_labels
|
44
|
-
# @return [Array
|
44
|
+
# @return [::Array<::Google::Cloud::Vision::V1::WebDetection::WebLabel>]
|
45
45
|
# The service's best guess as to the topic of the request image.
|
46
46
|
# Inferred from similar images on the open web.
|
47
47
|
class WebDetection
|
48
|
-
include Google::Protobuf::MessageExts
|
49
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
48
|
+
include ::Google::Protobuf::MessageExts
|
49
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
50
50
|
|
51
51
|
# Entity deduced from similar images on the Internet.
|
52
52
|
# @!attribute [rw] entity_id
|
53
|
-
# @return [String]
|
53
|
+
# @return [::String]
|
54
54
|
# Opaque entity ID.
|
55
55
|
# @!attribute [rw] score
|
56
|
-
# @return [Float]
|
56
|
+
# @return [::Float]
|
57
57
|
# Overall relevancy score for the entity.
|
58
58
|
# Not normalized and not comparable across different image queries.
|
59
59
|
# @!attribute [rw] description
|
60
|
-
# @return [String]
|
60
|
+
# @return [::String]
|
61
61
|
# Canonical description of the entity, in English.
|
62
62
|
class WebEntity
|
63
|
-
include Google::Protobuf::MessageExts
|
64
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
63
|
+
include ::Google::Protobuf::MessageExts
|
64
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
65
65
|
end
|
66
66
|
|
67
67
|
# Metadata for online images.
|
68
68
|
# @!attribute [rw] url
|
69
|
-
# @return [String]
|
69
|
+
# @return [::String]
|
70
70
|
# The result image URL.
|
71
71
|
# @!attribute [rw] score
|
72
|
-
# @return [Float]
|
72
|
+
# @return [::Float]
|
73
73
|
# (Deprecated) Overall relevancy score for the image.
|
74
74
|
class WebImage
|
75
|
-
include Google::Protobuf::MessageExts
|
76
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
75
|
+
include ::Google::Protobuf::MessageExts
|
76
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
77
77
|
end
|
78
78
|
|
79
79
|
# Metadata for web pages.
|
80
80
|
# @!attribute [rw] url
|
81
|
-
# @return [String]
|
81
|
+
# @return [::String]
|
82
82
|
# The result web page URL.
|
83
83
|
# @!attribute [rw] score
|
84
|
-
# @return [Float]
|
84
|
+
# @return [::Float]
|
85
85
|
# (Deprecated) Overall relevancy score for the web page.
|
86
86
|
# @!attribute [rw] page_title
|
87
|
-
# @return [String]
|
87
|
+
# @return [::String]
|
88
88
|
# Title for the web page, may contain HTML markups.
|
89
89
|
# @!attribute [rw] full_matching_images
|
90
|
-
# @return [Array
|
90
|
+
# @return [::Array<::Google::Cloud::Vision::V1::WebDetection::WebImage>]
|
91
91
|
# Fully matching images on the page.
|
92
92
|
# Can include resized copies of the query image.
|
93
93
|
# @!attribute [rw] partial_matching_images
|
94
|
-
# @return [Array
|
94
|
+
# @return [::Array<::Google::Cloud::Vision::V1::WebDetection::WebImage>]
|
95
95
|
# Partial matching images on the page.
|
96
96
|
# Those images are similar enough to share some key-point features. For
|
97
97
|
# example an original image will likely have partial matching for its
|
98
98
|
# crops.
|
99
99
|
class WebPage
|
100
|
-
include Google::Protobuf::MessageExts
|
101
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
100
|
+
include ::Google::Protobuf::MessageExts
|
101
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
102
102
|
end
|
103
103
|
|
104
104
|
# Label to provide extra metadata for the web detection.
|
105
105
|
# @!attribute [rw] label
|
106
|
-
# @return [String]
|
106
|
+
# @return [::String]
|
107
107
|
# Label for extra metadata.
|
108
108
|
# @!attribute [rw] language_code
|
109
|
-
# @return [String]
|
109
|
+
# @return [::String]
|
110
110
|
# The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
|
111
111
|
# For more information, see
|
112
112
|
# http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
113
113
|
class WebLabel
|
114
|
-
include Google::Protobuf::MessageExts
|
115
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
114
|
+
include ::Google::Protobuf::MessageExts
|
115
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
116
116
|
end
|
117
117
|
end
|
118
118
|
end
|
@@ -22,26 +22,26 @@ module Google
|
|
22
22
|
# This resource represents a long-running operation that is the result of a
|
23
23
|
# network API call.
|
24
24
|
# @!attribute [rw] name
|
25
|
-
# @return [String]
|
25
|
+
# @return [::String]
|
26
26
|
# The server-assigned name, which is only unique within the same service that
|
27
27
|
# originally returns it. If you use the default HTTP mapping, the
|
28
28
|
# `name` should have the format of `operations/some/unique/name`.
|
29
29
|
# @!attribute [rw] metadata
|
30
|
-
# @return [Google::Protobuf::Any]
|
30
|
+
# @return [::Google::Protobuf::Any]
|
31
31
|
# Service-specific metadata associated with the operation. It typically
|
32
32
|
# contains progress information and common metadata such as create time.
|
33
33
|
# Some services might not provide such metadata. Any method that returns a
|
34
34
|
# long-running operation should document the metadata type, if any.
|
35
35
|
# @!attribute [rw] done
|
36
|
-
# @return [Boolean]
|
36
|
+
# @return [::Boolean]
|
37
37
|
# If the value is `false`, it means the operation is still in progress.
|
38
38
|
# If true, the operation is completed, and either `error` or `response` is
|
39
39
|
# available.
|
40
40
|
# @!attribute [rw] error
|
41
|
-
# @return [Google::Rpc::Status]
|
41
|
+
# @return [::Google::Rpc::Status]
|
42
42
|
# The error result of the operation in case of failure or cancellation.
|
43
43
|
# @!attribute [rw] response
|
44
|
-
# @return [Google::Protobuf::Any]
|
44
|
+
# @return [::Google::Protobuf::Any]
|
45
45
|
# The normal response of the operation in case of success. If the original
|
46
46
|
# method returns no data on success, such as `Delete`, the response is
|
47
47
|
# `google.protobuf.Empty`. If the original method is standard
|
@@ -51,65 +51,65 @@ module Google
|
|
51
51
|
# is `TakeSnapshot()`, the inferred response type is
|
52
52
|
# `TakeSnapshotResponse`.
|
53
53
|
class Operation
|
54
|
-
include Google::Protobuf::MessageExts
|
55
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
54
|
+
include ::Google::Protobuf::MessageExts
|
55
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
56
56
|
end
|
57
57
|
|
58
58
|
# The request message for Operations.GetOperation.
|
59
59
|
# @!attribute [rw] name
|
60
|
-
# @return [String]
|
60
|
+
# @return [::String]
|
61
61
|
# The name of the operation resource.
|
62
62
|
class GetOperationRequest
|
63
|
-
include Google::Protobuf::MessageExts
|
64
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
63
|
+
include ::Google::Protobuf::MessageExts
|
64
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
65
65
|
end
|
66
66
|
|
67
67
|
# The request message for Operations.ListOperations.
|
68
68
|
# @!attribute [rw] name
|
69
|
-
# @return [String]
|
69
|
+
# @return [::String]
|
70
70
|
# The name of the operation collection.
|
71
71
|
# @!attribute [rw] filter
|
72
|
-
# @return [String]
|
72
|
+
# @return [::String]
|
73
73
|
# The standard list filter.
|
74
74
|
# @!attribute [rw] page_size
|
75
|
-
# @return [Integer]
|
75
|
+
# @return [::Integer]
|
76
76
|
# The standard list page size.
|
77
77
|
# @!attribute [rw] page_token
|
78
|
-
# @return [String]
|
78
|
+
# @return [::String]
|
79
79
|
# The standard list page token.
|
80
80
|
class ListOperationsRequest
|
81
|
-
include Google::Protobuf::MessageExts
|
82
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
81
|
+
include ::Google::Protobuf::MessageExts
|
82
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
83
83
|
end
|
84
84
|
|
85
85
|
# The response message for Operations.ListOperations.
|
86
86
|
# @!attribute [rw] operations
|
87
|
-
# @return [Array
|
87
|
+
# @return [::Array<::Google::Longrunning::Operation>]
|
88
88
|
# A list of operations that matches the specified filter in the request.
|
89
89
|
# @!attribute [rw] next_page_token
|
90
|
-
# @return [String]
|
90
|
+
# @return [::String]
|
91
91
|
# The standard List next-page token.
|
92
92
|
class ListOperationsResponse
|
93
|
-
include Google::Protobuf::MessageExts
|
94
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
93
|
+
include ::Google::Protobuf::MessageExts
|
94
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
95
95
|
end
|
96
96
|
|
97
97
|
# The request message for Operations.CancelOperation.
|
98
98
|
# @!attribute [rw] name
|
99
|
-
# @return [String]
|
99
|
+
# @return [::String]
|
100
100
|
# The name of the operation resource to be cancelled.
|
101
101
|
class CancelOperationRequest
|
102
|
-
include Google::Protobuf::MessageExts
|
103
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
102
|
+
include ::Google::Protobuf::MessageExts
|
103
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
104
104
|
end
|
105
105
|
|
106
106
|
# The request message for Operations.DeleteOperation.
|
107
107
|
# @!attribute [rw] name
|
108
|
-
# @return [String]
|
108
|
+
# @return [::String]
|
109
109
|
# The name of the operation resource to be deleted.
|
110
110
|
class DeleteOperationRequest
|
111
|
-
include Google::Protobuf::MessageExts
|
112
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
111
|
+
include ::Google::Protobuf::MessageExts
|
112
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
113
113
|
end
|
114
114
|
|
115
115
|
# A message representing the message types used by a long-running operation.
|
@@ -124,7 +124,7 @@ module Google
|
|
124
124
|
# };
|
125
125
|
# }
|
126
126
|
# @!attribute [rw] response_type
|
127
|
-
# @return [String]
|
127
|
+
# @return [::String]
|
128
128
|
# Required. The message name of the primary return type for this
|
129
129
|
# long-running operation.
|
130
130
|
# This type will be used to deserialize the LRO's response.
|
@@ -134,7 +134,7 @@ module Google
|
|
134
134
|
#
|
135
135
|
# Note: Altering this value constitutes a breaking change.
|
136
136
|
# @!attribute [rw] metadata_type
|
137
|
-
# @return [String]
|
137
|
+
# @return [::String]
|
138
138
|
# Required. The message name of the metadata type for this long-running
|
139
139
|
# operation.
|
140
140
|
#
|
@@ -143,8 +143,8 @@ module Google
|
|
143
143
|
#
|
144
144
|
# Note: Altering this value constitutes a breaking change.
|
145
145
|
class OperationInfo
|
146
|
-
include Google::Protobuf::MessageExts
|
147
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
146
|
+
include ::Google::Protobuf::MessageExts
|
147
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
148
148
|
end
|
149
149
|
end
|
150
150
|
end
|