google-cloud-video_intelligence-v1beta2 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.
@@ -0,0 +1,439 @@
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 VideoIntelligence
23
+ module V1beta2
24
+ # Video annotation request.
25
+ # @!attribute [rw] input_uri
26
+ # @return [String]
27
+ # Input video location. Currently, only
28
+ # [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
29
+ # supported, which must be specified in the following format:
30
+ # `gs://bucket-id/object-id` (other URI formats return
31
+ # [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
32
+ # more information, see [Request URIs](https://cloud.google.com/storage/docs/request-endpoints). A video
33
+ # URI may include wildcards in `object-id`, and thus identify multiple
34
+ # videos. Supported wildcards: '*' to match 0 or more characters;
35
+ # '?' to match 1 character. If unset, the input video should be embedded
36
+ # in the request as `input_content`. If set, `input_content` should be unset.
37
+ # @!attribute [rw] input_content
38
+ # @return [String]
39
+ # The video data bytes.
40
+ # If unset, the input video(s) should be specified via `input_uri`.
41
+ # If set, `input_uri` should be unset.
42
+ # @!attribute [rw] features
43
+ # @return [Array<Google::Cloud::VideoIntelligence::V1beta2::Feature>]
44
+ # Required. Requested video annotation features.
45
+ # @!attribute [rw] video_context
46
+ # @return [Google::Cloud::VideoIntelligence::V1beta2::VideoContext]
47
+ # Additional video context and/or feature-specific parameters.
48
+ # @!attribute [rw] output_uri
49
+ # @return [String]
50
+ # Optional. Location where the output (in JSON format) should be stored.
51
+ # Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
52
+ # URIs are supported, which must be specified in the following format:
53
+ # `gs://bucket-id/object-id` (other URI formats return
54
+ # [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
55
+ # more information, see [Request URIs](https://cloud.google.com/storage/docs/request-endpoints).
56
+ # @!attribute [rw] location_id
57
+ # @return [String]
58
+ # Optional. Cloud region where annotation should take place. Supported cloud
59
+ # regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
60
+ # is specified, a region will be determined based on video file location.
61
+ class AnnotateVideoRequest
62
+ include Google::Protobuf::MessageExts
63
+ extend Google::Protobuf::MessageExts::ClassMethods
64
+ end
65
+
66
+ # Video context and/or feature-specific parameters.
67
+ # @!attribute [rw] segments
68
+ # @return [Array<Google::Cloud::VideoIntelligence::V1beta2::VideoSegment>]
69
+ # Video segments to annotate. The segments may overlap and are not required
70
+ # to be contiguous or span the whole video. If unspecified, each video is
71
+ # treated as a single segment.
72
+ # @!attribute [rw] label_detection_config
73
+ # @return [Google::Cloud::VideoIntelligence::V1beta2::LabelDetectionConfig]
74
+ # Config for LABEL_DETECTION.
75
+ # @!attribute [rw] shot_change_detection_config
76
+ # @return [Google::Cloud::VideoIntelligence::V1beta2::ShotChangeDetectionConfig]
77
+ # Config for SHOT_CHANGE_DETECTION.
78
+ # @!attribute [rw] explicit_content_detection_config
79
+ # @return [Google::Cloud::VideoIntelligence::V1beta2::ExplicitContentDetectionConfig]
80
+ # Config for EXPLICIT_CONTENT_DETECTION.
81
+ # @!attribute [rw] face_detection_config
82
+ # @return [Google::Cloud::VideoIntelligence::V1beta2::FaceDetectionConfig]
83
+ # Config for FACE_DETECTION.
84
+ class VideoContext
85
+ include Google::Protobuf::MessageExts
86
+ extend Google::Protobuf::MessageExts::ClassMethods
87
+ end
88
+
89
+ # Config for LABEL_DETECTION.
90
+ # @!attribute [rw] label_detection_mode
91
+ # @return [Google::Cloud::VideoIntelligence::V1beta2::LabelDetectionMode]
92
+ # What labels should be detected with LABEL_DETECTION, in addition to
93
+ # video-level labels or segment-level labels.
94
+ # If unspecified, defaults to `SHOT_MODE`.
95
+ # @!attribute [rw] stationary_camera
96
+ # @return [Boolean]
97
+ # Whether the video has been shot from a stationary (i.e. non-moving) camera.
98
+ # When set to true, might improve detection accuracy for moving objects.
99
+ # Should be used with `SHOT_AND_FRAME_MODE` enabled.
100
+ # @!attribute [rw] model
101
+ # @return [String]
102
+ # Model to use for label detection.
103
+ # Supported values: "builtin/stable" (the default if unset) and
104
+ # "builtin/latest".
105
+ class LabelDetectionConfig
106
+ include Google::Protobuf::MessageExts
107
+ extend Google::Protobuf::MessageExts::ClassMethods
108
+ end
109
+
110
+ # Config for SHOT_CHANGE_DETECTION.
111
+ # @!attribute [rw] model
112
+ # @return [String]
113
+ # Model to use for shot change detection.
114
+ # Supported values: "builtin/stable" (the default if unset) and
115
+ # "builtin/latest".
116
+ class ShotChangeDetectionConfig
117
+ include Google::Protobuf::MessageExts
118
+ extend Google::Protobuf::MessageExts::ClassMethods
119
+ end
120
+
121
+ # Config for EXPLICIT_CONTENT_DETECTION.
122
+ # @!attribute [rw] model
123
+ # @return [String]
124
+ # Model to use for explicit content detection.
125
+ # Supported values: "builtin/stable" (the default if unset) and
126
+ # "builtin/latest".
127
+ class ExplicitContentDetectionConfig
128
+ include Google::Protobuf::MessageExts
129
+ extend Google::Protobuf::MessageExts::ClassMethods
130
+ end
131
+
132
+ # Config for FACE_DETECTION.
133
+ # @!attribute [rw] model
134
+ # @return [String]
135
+ # Model to use for face detection.
136
+ # Supported values: "builtin/stable" (the default if unset) and
137
+ # "builtin/latest".
138
+ # @!attribute [rw] include_bounding_boxes
139
+ # @return [Boolean]
140
+ # Whether bounding boxes be included in the face annotation output.
141
+ class FaceDetectionConfig
142
+ include Google::Protobuf::MessageExts
143
+ extend Google::Protobuf::MessageExts::ClassMethods
144
+ end
145
+
146
+ # Video segment.
147
+ # @!attribute [rw] start_time_offset
148
+ # @return [Google::Protobuf::Duration]
149
+ # Time-offset, relative to the beginning of the video,
150
+ # corresponding to the start of the segment (inclusive).
151
+ # @!attribute [rw] end_time_offset
152
+ # @return [Google::Protobuf::Duration]
153
+ # Time-offset, relative to the beginning of the video,
154
+ # corresponding to the end of the segment (inclusive).
155
+ class VideoSegment
156
+ include Google::Protobuf::MessageExts
157
+ extend Google::Protobuf::MessageExts::ClassMethods
158
+ end
159
+
160
+ # Video segment level annotation results for label detection.
161
+ # @!attribute [rw] segment
162
+ # @return [Google::Cloud::VideoIntelligence::V1beta2::VideoSegment]
163
+ # Video segment where a label was detected.
164
+ # @!attribute [rw] confidence
165
+ # @return [Float]
166
+ # Confidence that the label is accurate. Range: [0, 1].
167
+ class LabelSegment
168
+ include Google::Protobuf::MessageExts
169
+ extend Google::Protobuf::MessageExts::ClassMethods
170
+ end
171
+
172
+ # Video frame level annotation results for label detection.
173
+ # @!attribute [rw] time_offset
174
+ # @return [Google::Protobuf::Duration]
175
+ # Time-offset, relative to the beginning of the video, corresponding to the
176
+ # video frame for this location.
177
+ # @!attribute [rw] confidence
178
+ # @return [Float]
179
+ # Confidence that the label is accurate. Range: [0, 1].
180
+ class LabelFrame
181
+ include Google::Protobuf::MessageExts
182
+ extend Google::Protobuf::MessageExts::ClassMethods
183
+ end
184
+
185
+ # Detected entity from video analysis.
186
+ # @!attribute [rw] entity_id
187
+ # @return [String]
188
+ # Opaque entity ID. Some IDs may be available in
189
+ # [Google Knowledge Graph Search
190
+ # API](https://developers.google.com/knowledge-graph/).
191
+ # @!attribute [rw] description
192
+ # @return [String]
193
+ # Textual description, e.g. `Fixed-gear bicycle`.
194
+ # @!attribute [rw] language_code
195
+ # @return [String]
196
+ # Language code for `description` in BCP-47 format.
197
+ class Entity
198
+ include Google::Protobuf::MessageExts
199
+ extend Google::Protobuf::MessageExts::ClassMethods
200
+ end
201
+
202
+ # Label annotation.
203
+ # @!attribute [rw] entity
204
+ # @return [Google::Cloud::VideoIntelligence::V1beta2::Entity]
205
+ # Detected entity.
206
+ # @!attribute [rw] category_entities
207
+ # @return [Array<Google::Cloud::VideoIntelligence::V1beta2::Entity>]
208
+ # Common categories for the detected entity.
209
+ # E.g. when the label is `Terrier` the category is likely `dog`. And in some
210
+ # cases there might be more than one categories e.g. `Terrier` could also be
211
+ # a `pet`.
212
+ # @!attribute [rw] segments
213
+ # @return [Array<Google::Cloud::VideoIntelligence::V1beta2::LabelSegment>]
214
+ # All video segments where a label was detected.
215
+ # @!attribute [rw] frames
216
+ # @return [Array<Google::Cloud::VideoIntelligence::V1beta2::LabelFrame>]
217
+ # All video frames where a label was detected.
218
+ class LabelAnnotation
219
+ include Google::Protobuf::MessageExts
220
+ extend Google::Protobuf::MessageExts::ClassMethods
221
+ end
222
+
223
+ # Video frame level annotation results for explicit content.
224
+ # @!attribute [rw] time_offset
225
+ # @return [Google::Protobuf::Duration]
226
+ # Time-offset, relative to the beginning of the video, corresponding to the
227
+ # video frame for this location.
228
+ # @!attribute [rw] pornography_likelihood
229
+ # @return [Google::Cloud::VideoIntelligence::V1beta2::Likelihood]
230
+ # Likelihood of the pornography content..
231
+ class ExplicitContentFrame
232
+ include Google::Protobuf::MessageExts
233
+ extend Google::Protobuf::MessageExts::ClassMethods
234
+ end
235
+
236
+ # Explicit content annotation (based on per-frame visual signals only).
237
+ # If no explicit content has been detected in a frame, no annotations are
238
+ # present for that frame.
239
+ # @!attribute [rw] frames
240
+ # @return [Array<Google::Cloud::VideoIntelligence::V1beta2::ExplicitContentFrame>]
241
+ # All video frames where explicit content was detected.
242
+ class ExplicitContentAnnotation
243
+ include Google::Protobuf::MessageExts
244
+ extend Google::Protobuf::MessageExts::ClassMethods
245
+ end
246
+
247
+ # Normalized bounding box.
248
+ # The normalized vertex coordinates are relative to the original image.
249
+ # Range: [0, 1].
250
+ # @!attribute [rw] left
251
+ # @return [Float]
252
+ # Left X coordinate.
253
+ # @!attribute [rw] top
254
+ # @return [Float]
255
+ # Top Y coordinate.
256
+ # @!attribute [rw] right
257
+ # @return [Float]
258
+ # Right X coordinate.
259
+ # @!attribute [rw] bottom
260
+ # @return [Float]
261
+ # Bottom Y coordinate.
262
+ class NormalizedBoundingBox
263
+ include Google::Protobuf::MessageExts
264
+ extend Google::Protobuf::MessageExts::ClassMethods
265
+ end
266
+
267
+ # Video segment level annotation results for face detection.
268
+ # @!attribute [rw] segment
269
+ # @return [Google::Cloud::VideoIntelligence::V1beta2::VideoSegment]
270
+ # Video segment where a face was detected.
271
+ class FaceSegment
272
+ include Google::Protobuf::MessageExts
273
+ extend Google::Protobuf::MessageExts::ClassMethods
274
+ end
275
+
276
+ # Video frame level annotation results for face detection.
277
+ # @!attribute [rw] normalized_bounding_boxes
278
+ # @return [Array<Google::Cloud::VideoIntelligence::V1beta2::NormalizedBoundingBox>]
279
+ # Normalized Bounding boxes in a frame.
280
+ # There can be more than one boxes if the same face is detected in multiple
281
+ # locations within the current frame.
282
+ # @!attribute [rw] time_offset
283
+ # @return [Google::Protobuf::Duration]
284
+ # Time-offset, relative to the beginning of the video,
285
+ # corresponding to the video frame for this location.
286
+ class FaceFrame
287
+ include Google::Protobuf::MessageExts
288
+ extend Google::Protobuf::MessageExts::ClassMethods
289
+ end
290
+
291
+ # Face annotation.
292
+ # @!attribute [rw] thumbnail
293
+ # @return [String]
294
+ # Thumbnail of a representative face view (in JPEG format).
295
+ # @!attribute [rw] segments
296
+ # @return [Array<Google::Cloud::VideoIntelligence::V1beta2::FaceSegment>]
297
+ # All video segments where a face was detected.
298
+ # @!attribute [rw] frames
299
+ # @return [Array<Google::Cloud::VideoIntelligence::V1beta2::FaceFrame>]
300
+ # All video frames where a face was detected.
301
+ class FaceAnnotation
302
+ include Google::Protobuf::MessageExts
303
+ extend Google::Protobuf::MessageExts::ClassMethods
304
+ end
305
+
306
+ # Annotation results for a single video.
307
+ # @!attribute [rw] input_uri
308
+ # @return [String]
309
+ # Video file location in
310
+ # [Google Cloud Storage](https://cloud.google.com/storage/).
311
+ # @!attribute [rw] segment_label_annotations
312
+ # @return [Array<Google::Cloud::VideoIntelligence::V1beta2::LabelAnnotation>]
313
+ # Label annotations on video level or user specified segment level.
314
+ # There is exactly one element for each unique label.
315
+ # @!attribute [rw] shot_label_annotations
316
+ # @return [Array<Google::Cloud::VideoIntelligence::V1beta2::LabelAnnotation>]
317
+ # Label annotations on shot level.
318
+ # There is exactly one element for each unique label.
319
+ # @!attribute [rw] frame_label_annotations
320
+ # @return [Array<Google::Cloud::VideoIntelligence::V1beta2::LabelAnnotation>]
321
+ # Label annotations on frame level.
322
+ # There is exactly one element for each unique label.
323
+ # @!attribute [rw] face_annotations
324
+ # @return [Array<Google::Cloud::VideoIntelligence::V1beta2::FaceAnnotation>]
325
+ # Face annotations. There is exactly one element for each unique face.
326
+ # @!attribute [rw] shot_annotations
327
+ # @return [Array<Google::Cloud::VideoIntelligence::V1beta2::VideoSegment>]
328
+ # Shot annotations. Each shot is represented as a video segment.
329
+ # @!attribute [rw] explicit_annotation
330
+ # @return [Google::Cloud::VideoIntelligence::V1beta2::ExplicitContentAnnotation]
331
+ # Explicit content annotation.
332
+ # @!attribute [rw] error
333
+ # @return [Google::Rpc::Status]
334
+ # If set, indicates an error. Note that for a single `AnnotateVideoRequest`
335
+ # some videos may succeed and some may fail.
336
+ class VideoAnnotationResults
337
+ include Google::Protobuf::MessageExts
338
+ extend Google::Protobuf::MessageExts::ClassMethods
339
+ end
340
+
341
+ # Video annotation response. Included in the `response`
342
+ # field of the `Operation` returned by the `GetOperation`
343
+ # call of the `google::longrunning::Operations` service.
344
+ # @!attribute [rw] annotation_results
345
+ # @return [Array<Google::Cloud::VideoIntelligence::V1beta2::VideoAnnotationResults>]
346
+ # Annotation results for all videos specified in `AnnotateVideoRequest`.
347
+ class AnnotateVideoResponse
348
+ include Google::Protobuf::MessageExts
349
+ extend Google::Protobuf::MessageExts::ClassMethods
350
+ end
351
+
352
+ # Annotation progress for a single video.
353
+ # @!attribute [rw] input_uri
354
+ # @return [String]
355
+ # Video file location in
356
+ # [Google Cloud Storage](https://cloud.google.com/storage/).
357
+ # @!attribute [rw] progress_percent
358
+ # @return [Integer]
359
+ # Approximate percentage processed thus far.
360
+ # Guaranteed to be 100 when fully processed.
361
+ # @!attribute [rw] start_time
362
+ # @return [Google::Protobuf::Timestamp]
363
+ # Time when the request was received.
364
+ # @!attribute [rw] update_time
365
+ # @return [Google::Protobuf::Timestamp]
366
+ # Time of the most recent update.
367
+ class VideoAnnotationProgress
368
+ include Google::Protobuf::MessageExts
369
+ extend Google::Protobuf::MessageExts::ClassMethods
370
+ end
371
+
372
+ # Video annotation progress. Included in the `metadata`
373
+ # field of the `Operation` returned by the `GetOperation`
374
+ # call of the `google::longrunning::Operations` service.
375
+ # @!attribute [rw] annotation_progress
376
+ # @return [Array<Google::Cloud::VideoIntelligence::V1beta2::VideoAnnotationProgress>]
377
+ # Progress metadata for all videos specified in `AnnotateVideoRequest`.
378
+ class AnnotateVideoProgress
379
+ include Google::Protobuf::MessageExts
380
+ extend Google::Protobuf::MessageExts::ClassMethods
381
+ end
382
+
383
+ # Video annotation feature.
384
+ module Feature
385
+ # Unspecified.
386
+ FEATURE_UNSPECIFIED = 0
387
+
388
+ # Label detection. Detect objects, such as dog or flower.
389
+ LABEL_DETECTION = 1
390
+
391
+ # Shot change detection.
392
+ SHOT_CHANGE_DETECTION = 2
393
+
394
+ # Explicit content detection.
395
+ EXPLICIT_CONTENT_DETECTION = 3
396
+
397
+ # Human face detection and tracking.
398
+ FACE_DETECTION = 4
399
+ end
400
+
401
+ # Label detection mode.
402
+ module LabelDetectionMode
403
+ # Unspecified.
404
+ LABEL_DETECTION_MODE_UNSPECIFIED = 0
405
+
406
+ # Detect shot-level labels.
407
+ SHOT_MODE = 1
408
+
409
+ # Detect frame-level labels.
410
+ FRAME_MODE = 2
411
+
412
+ # Detect both shot-level and frame-level labels.
413
+ SHOT_AND_FRAME_MODE = 3
414
+ end
415
+
416
+ # Bucketized representation of likelihood.
417
+ module Likelihood
418
+ # Unspecified likelihood.
419
+ LIKELIHOOD_UNSPECIFIED = 0
420
+
421
+ # Very unlikely.
422
+ VERY_UNLIKELY = 1
423
+
424
+ # Unlikely.
425
+ UNLIKELY = 2
426
+
427
+ # Possible.
428
+ POSSIBLE = 3
429
+
430
+ # Likely.
431
+ LIKELY = 4
432
+
433
+ # Very likely.
434
+ VERY_LIKELY = 5
435
+ end
436
+ end
437
+ end
438
+ end
439
+ 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