pub struct AnnotateVideoRequest {
pub input_uri: String,
pub input_content: Bytes,
pub features: Vec<i32>,
pub video_context: Option<VideoContext>,
pub output_uri: String,
pub location_id: String,
}
Expand description
Video annotation request.
Fields§
§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][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.
input_content: Bytes
The video data bytes.
If unset, the input video(s) should be specified via the input_uri
.
If set, input_uri
must 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 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][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 are: us-east1
, us-west1
, europe-west1
, asia-east1
. If no
region is specified, the region will be determined based on video file
location.
Implementations§
Trait Implementations§
source§impl Clone for AnnotateVideoRequest
impl Clone for AnnotateVideoRequest
source§fn clone(&self) -> AnnotateVideoRequest
fn clone(&self) -> AnnotateVideoRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnnotateVideoRequest
impl Debug for AnnotateVideoRequest
source§impl Default for AnnotateVideoRequest
impl Default for AnnotateVideoRequest
source§impl Message for AnnotateVideoRequest
impl Message for AnnotateVideoRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for AnnotateVideoRequest
impl PartialEq for AnnotateVideoRequest
source§fn eq(&self, other: &AnnotateVideoRequest) -> bool
fn eq(&self, other: &AnnotateVideoRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AnnotateVideoRequest
Auto Trait Implementations§
impl !Freeze for AnnotateVideoRequest
impl RefUnwindSafe for AnnotateVideoRequest
impl Send for AnnotateVideoRequest
impl Sync for AnnotateVideoRequest
impl Unpin for AnnotateVideoRequest
impl UnwindSafe for AnnotateVideoRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request