Class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1AnnotateVideoRequest
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1AnnotateVideoRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/videointelligence_v1p3beta1/classes.rb,
generated/google/apis/videointelligence_v1p3beta1/representations.rb,
generated/google/apis/videointelligence_v1p3beta1/representations.rb
Overview
Video annotation request.
Instance Attribute Summary collapse
-
#features ⇒ Array<String>
Required.
-
#input_content ⇒ String
The video data bytes.
-
#input_uri ⇒ String
Input video location.
-
#location_id ⇒ String
Optional.
-
#output_uri ⇒ String
Optional.
-
#video_context ⇒ Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1VideoContext
Video context and/or feature-specific parameters.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1AnnotateVideoRequest
constructor
A new instance of GoogleCloudVideointelligenceV1p3beta1AnnotateVideoRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1AnnotateVideoRequest
Returns a new instance of GoogleCloudVideointelligenceV1p3beta1AnnotateVideoRequest.
4674 4675 4676 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4674 def initialize(**args) update!(**args) end |
Instance Attribute Details
#features ⇒ Array<String>
Required. Requested video annotation features.
Corresponds to the JSON property features
4629 4630 4631 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4629 def features @features end |
#input_content ⇒ String
The video data bytes. If unset, the input video(s) should be specified via the
input_uri
. If set, input_uri
must be unset.
Corresponds to the JSON property inputContent
NOTE: Values are automatically base64 encoded/decoded in the client library.
4636 4637 4638 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4636 def input_content @input_content end |
#input_uri ⇒ String
Input video location. Currently, only Cloud Storage URIs are supported. URIs must be specified in the following format:
gs://bucket-id/object-id
(other URI formats return google.rpc.Code.
INVALID_ARGUMENT). For more information, see Request URIs. To identify multiple videos, a
video URI may include wildcards in the object-id
. Supported wildcards: '*'
to match 0 or more characters; '?' to match 1 character. If unset, the input
video should be embedded in the request as input_content
. If set,
input_content
must be unset.
Corresponds to the JSON property inputUri
4649 4650 4651 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4649 def input_uri @input_uri end |
#location_id ⇒ String
Optional. Cloud region where annotation should take place. Supported cloud
regions are: us-east1
, us-west1
, europe-west1
, asia-east1
. If no
region is specified, the region will be determined based on video file
location.
Corresponds to the JSON property locationId
4657 4658 4659 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4657 def location_id @location_id end |
#output_uri ⇒ String
Optional. Location where the output (in JSON format) should be stored.
Currently, only Cloud Storage URIs are
supported. These must be specified in the following format: gs://bucket-id/
object-id
(other URI formats return google.rpc.Code.INVALID_ARGUMENT). For
more information, see Request URIs.
Corresponds to the JSON property outputUri
4667 4668 4669 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4667 def output_uri @output_uri end |
#video_context ⇒ Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1VideoContext
Video context and/or feature-specific parameters.
Corresponds to the JSON property videoContext
4672 4673 4674 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4672 def video_context @video_context end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4679 4680 4681 4682 4683 4684 4685 4686 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4679 def update!(**args) @features = args[:features] if args.key?(:features) @input_content = args[:input_content] if args.key?(:input_content) @input_uri = args[:input_uri] if args.key?(:input_uri) @location_id = args[:location_id] if args.key?(:location_id) @output_uri = args[:output_uri] if args.key?(:output_uri) @video_context = args[:video_context] if args.key?(:video_context) end |