Struct google_api_proto::google::cloud::video::transcoder::v1::transcoder_service_client::TranscoderServiceClient
source · pub struct TranscoderServiceClient<T> { /* private fields */ }
Expand description
Using the Transcoder API, you can queue asynchronous jobs for transcoding media into various output formats. Output formats may include different streaming standards such as HTTP Live Streaming (HLS) and Dynamic Adaptive Streaming over HTTP (DASH). You can also customize jobs using advanced features such as Digital Rights Management (DRM), audio equalization, content concatenation, and digital ad-stitch ready content generation.
Implementations§
source§impl<T> TranscoderServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> TranscoderServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> TranscoderServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn create_job(
&mut self,
request: impl IntoRequest<CreateJobRequest>,
) -> Result<Response<Job>, Status>
pub async fn create_job( &mut self, request: impl IntoRequest<CreateJobRequest>, ) -> Result<Response<Job>, Status>
Creates a job in the specified region.
sourcepub async fn list_jobs(
&mut self,
request: impl IntoRequest<ListJobsRequest>,
) -> Result<Response<ListJobsResponse>, Status>
pub async fn list_jobs( &mut self, request: impl IntoRequest<ListJobsRequest>, ) -> Result<Response<ListJobsResponse>, Status>
Lists jobs in the specified region.
sourcepub async fn get_job(
&mut self,
request: impl IntoRequest<GetJobRequest>,
) -> Result<Response<Job>, Status>
pub async fn get_job( &mut self, request: impl IntoRequest<GetJobRequest>, ) -> Result<Response<Job>, Status>
Returns the job data.
sourcepub async fn delete_job(
&mut self,
request: impl IntoRequest<DeleteJobRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_job( &mut self, request: impl IntoRequest<DeleteJobRequest>, ) -> Result<Response<()>, Status>
Deletes a job.
sourcepub async fn create_job_template(
&mut self,
request: impl IntoRequest<CreateJobTemplateRequest>,
) -> Result<Response<JobTemplate>, Status>
pub async fn create_job_template( &mut self, request: impl IntoRequest<CreateJobTemplateRequest>, ) -> Result<Response<JobTemplate>, Status>
Creates a job template in the specified region.
sourcepub async fn list_job_templates(
&mut self,
request: impl IntoRequest<ListJobTemplatesRequest>,
) -> Result<Response<ListJobTemplatesResponse>, Status>
pub async fn list_job_templates( &mut self, request: impl IntoRequest<ListJobTemplatesRequest>, ) -> Result<Response<ListJobTemplatesResponse>, Status>
Lists job templates in the specified region.
sourcepub async fn get_job_template(
&mut self,
request: impl IntoRequest<GetJobTemplateRequest>,
) -> Result<Response<JobTemplate>, Status>
pub async fn get_job_template( &mut self, request: impl IntoRequest<GetJobTemplateRequest>, ) -> Result<Response<JobTemplate>, Status>
Returns the job template data.
sourcepub async fn delete_job_template(
&mut self,
request: impl IntoRequest<DeleteJobTemplateRequest>,
) -> Result<Response<()>, Status>
pub async fn delete_job_template( &mut self, request: impl IntoRequest<DeleteJobTemplateRequest>, ) -> Result<Response<()>, Status>
Deletes a job template.
Trait Implementations§
source§impl<T: Clone> Clone for TranscoderServiceClient<T>
impl<T: Clone> Clone for TranscoderServiceClient<T>
source§fn clone(&self) -> TranscoderServiceClient<T>
fn clone(&self) -> TranscoderServiceClient<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl<T> !Freeze for TranscoderServiceClient<T>
impl<T> RefUnwindSafe for TranscoderServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for TranscoderServiceClient<T>where
T: Send,
impl<T> Sync for TranscoderServiceClient<T>where
T: Sync,
impl<T> Unpin for TranscoderServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for TranscoderServiceClient<T>where
T: UnwindSafe,
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