[][src]Struct gcp_client::google::cloud::videointelligence::v1::AnnotateVideoRequest

pub struct AnnotateVideoRequest {
    pub input_uri: String,
    pub input_content: Vec<u8>,
    pub features: Vec<i32>,
    pub video_context: Option<VideoContext>,
    pub output_uri: String,
    pub location_id: String,
}

Video annotation request.

Fields

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][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: Vec<u8>

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

features: Vec<i32>

Required. Requested video annotation features.

video_context: Option<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][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.

Implementations

impl AnnotateVideoRequest[src]

pub fn features(
    &self
) -> FilterMap<Cloned<Iter<i32>>, fn(_: i32) -> Option<Feature>>
[src]

Returns an iterator which yields the valid enum values contained in features.

pub fn push_features(&mut self, value: Feature)[src]

Appends the provided enum value to features.

Trait Implementations

impl Clone for AnnotateVideoRequest[src]

impl Debug for AnnotateVideoRequest[src]

impl Default for AnnotateVideoRequest[src]

impl Message for AnnotateVideoRequest[src]

impl PartialEq<AnnotateVideoRequest> for AnnotateVideoRequest[src]

impl StructuralPartialEq for AnnotateVideoRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]