google-cloud-video_intelligence 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/video_intelligence.rb +1 -1
  3. data/lib/google/cloud/video_intelligence/v1.rb +1 -1
  4. data/lib/google/cloud/video_intelligence/v1/credentials.rb +1 -1
  5. data/lib/google/cloud/video_intelligence/v1/doc/google/cloud/videointelligence/v1/video_intelligence.rb +139 -7
  6. data/lib/google/cloud/video_intelligence/v1/doc/google/longrunning/operations.rb +1 -43
  7. data/lib/google/cloud/video_intelligence/v1/doc/google/protobuf/any.rb +1 -1
  8. data/lib/google/cloud/video_intelligence/v1/doc/google/protobuf/duration.rb +1 -1
  9. data/lib/google/cloud/video_intelligence/v1/doc/google/rpc/status.rb +18 -15
  10. data/lib/google/cloud/video_intelligence/v1/video_intelligence_service_client.rb +7 -7
  11. data/lib/google/cloud/video_intelligence/v1beta1.rb +1 -1
  12. data/lib/google/cloud/video_intelligence/v1beta1/credentials.rb +1 -1
  13. data/lib/google/cloud/video_intelligence/v1beta1/doc/google/cloud/videointelligence/v1beta1/video_intelligence.rb +22 -22
  14. data/lib/google/cloud/video_intelligence/v1beta1/doc/google/longrunning/operations.rb +1 -43
  15. data/lib/google/cloud/video_intelligence/v1beta1/doc/google/protobuf/any.rb +1 -1
  16. data/lib/google/cloud/video_intelligence/v1beta1/doc/google/rpc/status.rb +18 -15
  17. data/lib/google/cloud/video_intelligence/v1beta1/video_intelligence_service_client.rb +7 -7
  18. data/lib/google/cloud/video_intelligence/v1beta2.rb +1 -1
  19. data/lib/google/cloud/video_intelligence/v1beta2/credentials.rb +1 -1
  20. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/cloud/videointelligence/v1beta2/video_intelligence.rb +7 -7
  21. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/longrunning/operations.rb +1 -43
  22. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/protobuf/any.rb +1 -1
  23. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/protobuf/duration.rb +1 -1
  24. data/lib/google/cloud/video_intelligence/v1beta2/doc/google/rpc/status.rb +18 -15
  25. data/lib/google/cloud/video_intelligence/v1beta2/video_intelligence_service_client.rb +7 -7
  26. data/lib/google/cloud/video_intelligence/v1p1beta1.rb +1 -1
  27. data/lib/google/cloud/video_intelligence/v1p1beta1/credentials.rb +1 -1
  28. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/cloud/videointelligence/v1p1beta1/video_intelligence.rb +7 -7
  29. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/longrunning/operations.rb +1 -43
  30. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/protobuf/any.rb +1 -1
  31. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/protobuf/duration.rb +1 -1
  32. data/lib/google/cloud/video_intelligence/v1p1beta1/doc/google/rpc/status.rb +18 -15
  33. data/lib/google/cloud/video_intelligence/v1p1beta1/video_intelligence_service_client.rb +7 -7
  34. data/lib/google/cloud/video_intelligence/v1p2beta1.rb +1 -1
  35. data/lib/google/cloud/video_intelligence/v1p2beta1/credentials.rb +1 -1
  36. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/cloud/videointelligence/v1p2beta1/video_intelligence.rb +7 -7
  37. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/longrunning/operations.rb +1 -43
  38. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/protobuf/any.rb +1 -1
  39. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/protobuf/duration.rb +1 -1
  40. data/lib/google/cloud/video_intelligence/v1p2beta1/doc/google/rpc/status.rb +18 -15
  41. data/lib/google/cloud/video_intelligence/v1p2beta1/video_intelligence_service_client.rb +7 -7
  42. data/lib/google/cloud/videointelligence/v1/video_intelligence_pb.rb +49 -0
  43. data/lib/google/cloud/videointelligence/v1/video_intelligence_services_pb.rb +2 -1
  44. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17f16aa8f5c1074f53928da96f39f8973c2b5e05a10fd62e3ba4d54c95f1c017
4
- data.tar.gz: ca2d14463d0bb2d695667675404f226434d4274f5f330aa1b644f2d2bf37eec9
3
+ metadata.gz: bdd61e269b6216532e99e3dba7b5ae4229b7957650cd7af157d842f969ae67b9
4
+ data.tar.gz: ef80336588e1e5dfd0e37590db5854c0c22d430b34a4099b3188d1db8cf12b94
5
5
  SHA512:
6
- metadata.gz: 4f50bdb3012b53f9eeb036e25985dfc82d783131a687671c7dabb6260a190306a9716d0618215b65a8b7db92df369c155d9cd59bb7f78457ed8f19e8a1ef2f0f
7
- data.tar.gz: 9f4375e444a101a90f8aecfe65dfb54d587f3fc1c84bb617ef7bf58688b3f3142882eeb3dd9f5f7ca4d822a8c67dff4deedbdb5465ef7d259aa07833b0997262
6
+ metadata.gz: b97f0d7ad74918b4aa2dd80e46434e73b77dd161dda704bb0a0a8f9f643bbf75996e6c623d5ccdf304efc4a8e6f6e4b2fe61e157f0bed81e015655d1bbbc04b8
7
+ data.tar.gz: 0f15661d7151abe675920e02e39ed30891966eb6ba2707114964162a441c529288c2b2c4af416e5138edf088fa33e7c9d9ca5ec6bf36a8440ff256c1bb248119
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -24,10 +24,10 @@ module Google
24
24
  # [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
25
25
  # supported, which must be specified in the following format:
26
26
  # `gs://bucket-id/object-id` (other URI formats return
27
- # {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
28
- # [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
29
- # A video URI may include wildcards in `object-id`, and thus identify
30
- # multiple videos. Supported wildcards: '*' to match 0 or more characters;
27
+ # {Google::Rpc::Code::INVALID_ARGUMENT}). For
28
+ # more information, see [Request URIs](https://cloud.google.com/storage/docs/reference-uris). A video
29
+ # URI may include wildcards in `object-id`, and thus identify multiple
30
+ # videos. Supported wildcards: '*' to match 0 or more characters;
31
31
  # '?' to match 1 character. If unset, the input video should be embedded
32
32
  # in the request as `input_content`. If set, `input_content` should be unset.
33
33
  # @!attribute [rw] input_content
@@ -47,8 +47,8 @@ module Google
47
47
  # Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
48
48
  # URIs are supported, which must be specified in the following format:
49
49
  # `gs://bucket-id/object-id` (other URI formats return
50
- # {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
51
- # [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
50
+ # {Google::Rpc::Code::INVALID_ARGUMENT}). For
51
+ # more information, see [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
52
52
  # @!attribute [rw] location_id
53
53
  # @return [String]
54
54
  # Optional cloud region where annotation should take place. Supported cloud
@@ -77,6 +77,9 @@ module Google
77
77
  # @!attribute [rw] speech_transcription_config
78
78
  # @return [Google::Cloud::Videointelligence::V1::SpeechTranscriptionConfig]
79
79
  # Config for SPEECH_TRANSCRIPTION.
80
+ # @!attribute [rw] text_detection_config
81
+ # @return [Google::Cloud::Videointelligence::V1::TextDetectionConfig]
82
+ # Config for TEXT_DETECTION.
80
83
  class VideoContext; end
81
84
 
82
85
  # Config for LABEL_DETECTION.
@@ -124,6 +127,16 @@ module Google
124
127
  # Whether bounding boxes be included in the face annotation output.
125
128
  class FaceDetectionConfig; end
126
129
 
130
+ # Config for TEXT_DETECTION.
131
+ # @!attribute [rw] language_hints
132
+ # @return [Array<String>]
133
+ # Language hint can be specified if the language to be detected is known a
134
+ # priori. It can increase the accuracy of the detection. Language hint must
135
+ # be language code in BCP-47 format.
136
+ #
137
+ # Automatic language detection is performed if no hint is provided.
138
+ class TextDetectionConfig; end
139
+
127
140
  # Video segment.
128
141
  # @!attribute [rw] start_time_offset
129
142
  # @return [Google::Protobuf::Duration]
@@ -280,6 +293,14 @@ module Google
280
293
  # @!attribute [rw] speech_transcriptions
281
294
  # @return [Array<Google::Cloud::Videointelligence::V1::SpeechTranscription>]
282
295
  # Speech transcription.
296
+ # @!attribute [rw] text_annotations
297
+ # @return [Array<Google::Cloud::Videointelligence::V1::TextAnnotation>]
298
+ # OCR text detection and tracking.
299
+ # Annotations for list of detected text snippets. Each will have list of
300
+ # frame information associated with it.
301
+ # @!attribute [rw] object_annotations
302
+ # @return [Array<Google::Cloud::Videointelligence::V1::ObjectTrackingAnnotation>]
303
+ # Annotations for list of objects detected and tracked in video.
283
304
  # @!attribute [rw] error
284
305
  # @return [Google::Rpc::Status]
285
306
  # If set, indicates an error. Note that for a single `AnnotateVideoRequest`
@@ -455,6 +476,111 @@ module Google
455
476
  # and is only set if speaker diarization is enabled.
456
477
  class WordInfo; end
457
478
 
479
+ # A vertex represents a 2D point in the image.
480
+ # NOTE: the normalized vertex coordinates are relative to the original image
481
+ # and range from 0 to 1.
482
+ # @!attribute [rw] x
483
+ # @return [Float]
484
+ # X coordinate.
485
+ # @!attribute [rw] y
486
+ # @return [Float]
487
+ # Y coordinate.
488
+ class NormalizedVertex; end
489
+
490
+ # Normalized bounding polygon for text (that might not be aligned with axis).
491
+ # Contains list of the corner points in clockwise order starting from
492
+ # top-left corner. For example, for a rectangular bounding box:
493
+ # When the text is horizontal it might look like:
494
+ # 0----1
495
+ # | |
496
+ # 3----2
497
+ #
498
+ # When it's clockwise rotated 180 degrees around the top-left corner it
499
+ # becomes:
500
+ # 2----3
501
+ # | |
502
+ # 1----0
503
+ #
504
+ # and the vertex order will still be (0, 1, 2, 3). Note that values can be less
505
+ # than 0, or greater than 1 due to trignometric calculations for location of
506
+ # the box.
507
+ # @!attribute [rw] vertices
508
+ # @return [Array<Google::Cloud::Videointelligence::V1::NormalizedVertex>]
509
+ # Normalized vertices of the bounding polygon.
510
+ class NormalizedBoundingPoly; end
511
+
512
+ # Video segment level annotation results for text detection.
513
+ # @!attribute [rw] segment
514
+ # @return [Google::Cloud::Videointelligence::V1::VideoSegment]
515
+ # Video segment where a text snippet was detected.
516
+ # @!attribute [rw] confidence
517
+ # @return [Float]
518
+ # Confidence for the track of detected text. It is calculated as the highest
519
+ # over all frames where OCR detected text appears.
520
+ # @!attribute [rw] frames
521
+ # @return [Array<Google::Cloud::Videointelligence::V1::TextFrame>]
522
+ # Information related to the frames where OCR detected text appears.
523
+ class TextSegment; end
524
+
525
+ # Video frame level annotation results for text annotation (OCR).
526
+ # Contains information regarding timestamp and bounding box locations for the
527
+ # frames containing detected OCR text snippets.
528
+ # @!attribute [rw] rotated_bounding_box
529
+ # @return [Google::Cloud::Videointelligence::V1::NormalizedBoundingPoly]
530
+ # Bounding polygon of the detected text for this frame.
531
+ # @!attribute [rw] time_offset
532
+ # @return [Google::Protobuf::Duration]
533
+ # Timestamp of this frame.
534
+ class TextFrame; end
535
+
536
+ # Annotations related to one detected OCR text snippet. This will contain the
537
+ # corresponding text, confidence value, and frame level information for each
538
+ # detection.
539
+ # @!attribute [rw] text
540
+ # @return [String]
541
+ # The detected text.
542
+ # @!attribute [rw] segments
543
+ # @return [Array<Google::Cloud::Videointelligence::V1::TextSegment>]
544
+ # All video segments where OCR detected text appears.
545
+ class TextAnnotation; end
546
+
547
+ # Video frame level annotations for object detection and tracking. This field
548
+ # stores per frame location, time offset, and confidence.
549
+ # @!attribute [rw] normalized_bounding_box
550
+ # @return [Google::Cloud::Videointelligence::V1::NormalizedBoundingBox]
551
+ # The normalized bounding box location of this object track for the frame.
552
+ # @!attribute [rw] time_offset
553
+ # @return [Google::Protobuf::Duration]
554
+ # The timestamp of the frame in microseconds.
555
+ class ObjectTrackingFrame; end
556
+
557
+ # Annotations corresponding to one tracked object.
558
+ # @!attribute [rw] segment
559
+ # @return [Google::Cloud::Videointelligence::V1::VideoSegment]
560
+ # Non-streaming batch mode ONLY.
561
+ # Each object track corresponds to one video segment where it appears.
562
+ # @!attribute [rw] track_id
563
+ # @return [Integer]
564
+ # Streaming mode ONLY.
565
+ # In streaming mode, we do not know the end time of a tracked object
566
+ # before it is completed. Hence, there is no VideoSegment info returned.
567
+ # Instead, we provide a unique identifiable integer track_id so that
568
+ # the customers can correlate the results of the ongoing
569
+ # ObjectTrackAnnotation of the same track_id over time.
570
+ # @!attribute [rw] entity
571
+ # @return [Google::Cloud::Videointelligence::V1::Entity]
572
+ # Entity to specify the object category that this track is labeled as.
573
+ # @!attribute [rw] confidence
574
+ # @return [Float]
575
+ # Object category's labeling confidence of this track.
576
+ # @!attribute [rw] frames
577
+ # @return [Array<Google::Cloud::Videointelligence::V1::ObjectTrackingFrame>]
578
+ # Information corresponding to all frames where this object track appears.
579
+ # Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
580
+ # messages in frames.
581
+ # Streaming mode: it can only be one ObjectTrackingFrame message in frames.
582
+ class ObjectTrackingAnnotation; end
583
+
458
584
  # Video annotation feature.
459
585
  module Feature
460
586
  # Unspecified.
@@ -474,6 +600,12 @@ module Google
474
600
 
475
601
  # Speech transcription.
476
602
  SPEECH_TRANSCRIPTION = 6
603
+
604
+ # OCR text detection and tracking.
605
+ TEXT_DETECTION = 7
606
+
607
+ # Object detection and tracking.
608
+ OBJECT_TRACKING = 9
477
609
  end
478
610
 
479
611
  # Label detection mode.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -47,47 +47,5 @@ module Google
47
47
  # is `TakeSnapshot()`, the inferred response type is
48
48
  # `TakeSnapshotResponse`.
49
49
  class Operation; end
50
-
51
- # The request message for {Google::Longrunning::Operations::GetOperation Operations::GetOperation}.
52
- # @!attribute [rw] name
53
- # @return [String]
54
- # The name of the operation resource.
55
- class GetOperationRequest; end
56
-
57
- # The request message for {Google::Longrunning::Operations::ListOperations Operations::ListOperations}.
58
- # @!attribute [rw] name
59
- # @return [String]
60
- # The name of the operation collection.
61
- # @!attribute [rw] filter
62
- # @return [String]
63
- # The standard list filter.
64
- # @!attribute [rw] page_size
65
- # @return [Integer]
66
- # The standard list page size.
67
- # @!attribute [rw] page_token
68
- # @return [String]
69
- # The standard list page token.
70
- class ListOperationsRequest; end
71
-
72
- # The response message for {Google::Longrunning::Operations::ListOperations Operations::ListOperations}.
73
- # @!attribute [rw] operations
74
- # @return [Array<Google::Longrunning::Operation>]
75
- # A list of operations that matches the specified filter in the request.
76
- # @!attribute [rw] next_page_token
77
- # @return [String]
78
- # The standard List next-page token.
79
- class ListOperationsResponse; end
80
-
81
- # The request message for {Google::Longrunning::Operations::CancelOperation Operations::CancelOperation}.
82
- # @!attribute [rw] name
83
- # @return [String]
84
- # The name of the operation resource to be cancelled.
85
- class CancelOperationRequest; end
86
-
87
- # The request message for {Google::Longrunning::Operations::DeleteOperation Operations::DeleteOperation}.
88
- # @!attribute [rw] name
89
- # @return [String]
90
- # The name of the operation resource to be deleted.
91
- class DeleteOperationRequest; end
92
50
  end
93
51
  end
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -15,24 +15,25 @@
15
15
 
16
16
  module Google
17
17
  module Rpc
18
- # The `Status` type defines a logical error model that is suitable for different
19
- # programming environments, including REST APIs and RPC APIs. It is used by
20
- # [gRPC](https://github.com/grpc). The error model is designed to be:
18
+ # The `Status` type defines a logical error model that is suitable for
19
+ # different programming environments, including REST APIs and RPC APIs. It is
20
+ # used by [gRPC](https://github.com/grpc). The error model is designed to be:
21
21
  #
22
22
  # * Simple to use and understand for most users
23
23
  # * Flexible enough to meet unexpected needs
24
24
  #
25
25
  # = Overview
26
26
  #
27
- # The `Status` message contains three pieces of data: error code, error message,
28
- # and error details. The error code should be an enum value of
29
- # {Google::Rpc::Code}, but it may accept additional error codes if needed. The
30
- # error message should be a developer-facing English message that helps
31
- # developers *understand* and *resolve* the error. If a localized user-facing
32
- # error message is needed, put the localized message in the error details or
33
- # localize it in the client. The optional error details may contain arbitrary
34
- # information about the error. There is a predefined set of error detail types
35
- # in the package `google.rpc` that can be used for common error conditions.
27
+ # The `Status` message contains three pieces of data: error code, error
28
+ # message, and error details. The error code should be an enum value of
29
+ # {Google::Rpc::Code}, but it may accept additional error codes
30
+ # if needed. The error message should be a developer-facing English message
31
+ # that helps developers *understand* and *resolve* the error. If a localized
32
+ # user-facing error message is needed, put the localized message in the error
33
+ # details or localize it in the client. The optional error details may contain
34
+ # arbitrary information about the error. There is a predefined set of error
35
+ # detail types in the package `google.rpc` that can be used for common error
36
+ # conditions.
36
37
  #
37
38
  # = Language mapping
38
39
  #
@@ -69,12 +70,14 @@ module Google
69
70
  # be used directly after any stripping needed for security/privacy reasons.
70
71
  # @!attribute [rw] code
71
72
  # @return [Integer]
72
- # The status code, which should be an enum value of {Google::Rpc::Code}.
73
+ # The status code, which should be an enum value of
74
+ # {Google::Rpc::Code}.
73
75
  # @!attribute [rw] message
74
76
  # @return [String]
75
77
  # A developer-facing error message, which should be in English. Any
76
78
  # user-facing error message should be localized and sent in the
77
- # {Google::Rpc::Status#details} field, or localized by the client.
79
+ # {Google::Rpc::Status#details} field, or localized
80
+ # by the client.
78
81
  # @!attribute [rw] details
79
82
  # @return [Array<Google::Protobuf::Any>]
80
83
  # A list of messages that carry the error details. There is a common set of
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -195,10 +195,10 @@ module Google
195
195
  # [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
196
196
  # supported, which must be specified in the following format:
197
197
  # `gs://bucket-id/object-id` (other URI formats return
198
- # {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
199
- # [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
200
- # A video URI may include wildcards in `object-id`, and thus identify
201
- # multiple videos. Supported wildcards: '*' to match 0 or more characters;
198
+ # {Google::Rpc::Code::INVALID_ARGUMENT}). For
199
+ # more information, see [Request URIs](https://cloud.google.com/storage/docs/reference-uris). A video
200
+ # URI may include wildcards in `object-id`, and thus identify multiple
201
+ # videos. Supported wildcards: '*' to match 0 or more characters;
202
202
  # '?' to match 1 character. If unset, the input video should be embedded
203
203
  # in the request as `input_content`. If set, `input_content` should be unset.
204
204
  # @param input_content [String]
@@ -216,8 +216,8 @@ module Google
216
216
  # Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
217
217
  # URIs are supported, which must be specified in the following format:
218
218
  # `gs://bucket-id/object-id` (other URI formats return
219
- # {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
220
- # [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
219
+ # {Google::Rpc::Code::INVALID_ARGUMENT}). For
220
+ # more information, see [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
221
221
  # @param location_id [String]
222
222
  # Optional cloud region where annotation should take place. Supported cloud
223
223
  # regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -24,10 +24,10 @@ module Google
24
24
  # [Google Cloud Storage](https://cloud.google.com/storage/) URIs are
25
25
  # supported, which must be specified in the following format:
26
26
  # `gs://bucket-id/object-id` (other URI formats return
27
- # {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
28
- # [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
29
- # A video URI may include wildcards in `object-id`, and thus identify
30
- # multiple videos. Supported wildcards: '*' to match 0 or more characters;
27
+ # {Google::Rpc::Code::INVALID_ARGUMENT}). For
28
+ # more information, see [Request URIs](https://cloud.google.com/storage/docs/reference-uris). A video
29
+ # URI may include wildcards in `object-id`, and thus identify multiple
30
+ # videos. Supported wildcards: '*' to match 0 or more characters;
31
31
  # '?' to match 1 character. If unset, the input video should be embedded
32
32
  # in the request as `input_content`. If set, `input_content` should be unset.
33
33
  # @!attribute [rw] input_content
@@ -46,8 +46,8 @@ module Google
46
46
  # Currently, only [Google Cloud Storage](https://cloud.google.com/storage/)
47
47
  # URIs are supported, which must be specified in the following format:
48
48
  # `gs://bucket-id/object-id` (other URI formats return
49
- # {Google::Rpc::Code::INVALID_ARGUMENT}). For more information, see
50
- # [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
49
+ # {Google::Rpc::Code::INVALID_ARGUMENT}). For
50
+ # more information, see [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
51
51
  # @!attribute [rw] location_id
52
52
  # @return [String]
53
53
  # Optional cloud region where annotation should take place. Supported cloud
@@ -262,6 +262,21 @@ module Google
262
262
  SAFE_SEARCH_DETECTION = 4
263
263
  end
264
264
 
265
+ # Label detection mode.
266
+ module LabelDetectionMode
267
+ # Unspecified.
268
+ LABEL_DETECTION_MODE_UNSPECIFIED = 0
269
+
270
+ # Detect shot-level labels.
271
+ SHOT_MODE = 1
272
+
273
+ # Detect frame-level labels.
274
+ FRAME_MODE = 2
275
+
276
+ # Detect both shot-level and frame-level labels.
277
+ SHOT_AND_FRAME_MODE = 3
278
+ end
279
+
265
280
  # Label level (scope).
266
281
  module LabelLevel
267
282
  # Unspecified.
@@ -281,21 +296,6 @@ module Google
281
296
  FRAME_LEVEL = 4
282
297
  end
283
298
 
284
- # Label detection mode.
285
- module LabelDetectionMode
286
- # Unspecified.
287
- LABEL_DETECTION_MODE_UNSPECIFIED = 0
288
-
289
- # Detect shot-level labels.
290
- SHOT_MODE = 1
291
-
292
- # Detect frame-level labels.
293
- FRAME_MODE = 2
294
-
295
- # Detect both shot-level and frame-level labels.
296
- SHOT_AND_FRAME_MODE = 3
297
- end
298
-
299
299
  # Bucketized representation of likelihood.
300
300
  module Likelihood
301
301
  # Unknown likelihood.