Cloud Video Intelligence V1beta2 Client - Class AnnotateVideoRequest (1.13.1)

Reference documentation and code samples for the Cloud Video Intelligence V1beta2 Client class AnnotateVideoRequest.

Video annotation request.

Generated from protobuf message google.cloud.videointelligence.v1beta2.AnnotateVideoRequest

Namespace

Google \ Cloud \ VideoIntelligence \ V1beta2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ input_uri string

Input video location. Currently, only Google Cloud Storage URIs are supported, which 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. A video URI may include wildcards in object-id, and thus identify multiple videos. 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 should be unset.

↳ input_content string

The video data bytes. If unset, the input video(s) should be specified via input_uri. If set, input_uri should be unset.

↳ features array

Required. Requested video annotation features.

↳ video_context Google\Cloud\VideoIntelligence\V1beta2\VideoContext

Additional video context and/or feature-specific parameters.

↳ output_uri string

Optional. Location where the output (in JSON format) should be stored. Currently, only Google Cloud Storage URIs are supported, which 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.

↳ location_id string

Optional. Cloud region where annotation should take place. Supported cloud regions: us-east1, us-west1, europe-west1, asia-east1. If no region is specified, a region will be determined based on video file location.

getInputUri

Input video location. Currently, only Google Cloud Storage URIs are supported, which 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. A video URI may include wildcards in object-id, and thus identify multiple videos.

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 should be unset.

Returns
TypeDescription
string

setInputUri

Input video location. Currently, only Google Cloud Storage URIs are supported, which 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. A video URI may include wildcards in object-id, and thus identify multiple videos.

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 should be unset.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInputContent

The video data bytes.

If unset, the input video(s) should be specified via input_uri. If set, input_uri should be unset.

Returns
TypeDescription
string

setInputContent

The video data bytes.

If unset, the input video(s) should be specified via input_uri. If set, input_uri should be unset.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFeatures

Required. Requested video annotation features.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setFeatures

Required. Requested video annotation features.

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this

getVideoContext

Additional video context and/or feature-specific parameters.

Returns
TypeDescription
Google\Cloud\VideoIntelligence\V1beta2\VideoContext|null

hasVideoContext

clearVideoContext

setVideoContext

Additional video context and/or feature-specific parameters.

Parameter
NameDescription
var Google\Cloud\VideoIntelligence\V1beta2\VideoContext
Returns
TypeDescription
$this

getOutputUri

Optional. Location where the output (in JSON format) should be stored.

Currently, only Google Cloud Storage URIs are supported, which 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.

Returns
TypeDescription
string

setOutputUri

Optional. Location where the output (in JSON format) should be stored.

Currently, only Google Cloud Storage URIs are supported, which 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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLocationId

Optional. Cloud region where annotation should take place. Supported cloud regions: us-east1, us-west1, europe-west1, asia-east1. If no region is specified, a region will be determined based on video file location.

Returns
TypeDescription
string

setLocationId

Optional. Cloud region where annotation should take place. Supported cloud regions: us-east1, us-west1, europe-west1, asia-east1. If no region is specified, a region will be determined based on video file location.

Parameter
NameDescription
var string
Returns
TypeDescription
$this