class Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1AnnotateVideoRequest

Video annotation request.

Attributes

features[RW]

Required. Requested video annotation features. Corresponds to the JSON property `features` @return [Array<String>]

input_content[RW]

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. @return [String]

input_uri[RW]

Input video location. Currently, only [Cloud Storage](cloud.google.com/ 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](cloud. google.com/storage/docs/request-endpoints). 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` @return [String]

location_id[RW]

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` @return [String]

output_uri[RW]

Optional. Location where the output (in JSON format) should be stored. Currently, only [Cloud Storage](cloud.google.com/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](cloud.google.com/storage/docs/ request-endpoints). Corresponds to the JSON property `outputUri` @return [String]

video_context[RW]

Video context and/or feature-specific parameters. Corresponds to the JSON property `videoContext` @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p1beta1VideoContext]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/videointelligence_v1p1beta1/classes.rb, line 2386
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/videointelligence_v1p1beta1/classes.rb, line 2391
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