Class HttpJsonTranscoderServiceStub (1.44.0)

public class HttpJsonTranscoderServiceStub extends TranscoderServiceStub

REST stub implementation for the TranscoderService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > TranscoderServiceStub > HttpJsonTranscoderServiceStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonTranscoderServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonTranscoderServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonTranscoderServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonTranscoderServiceStub
Exceptions
Type Description
IOException

create(TranscoderServiceStubSettings settings)

public static final HttpJsonTranscoderServiceStub create(TranscoderServiceStubSettings settings)
Parameter
Name Description
settings TranscoderServiceStubSettings
Returns
Type Description
HttpJsonTranscoderServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonTranscoderServiceStub(TranscoderServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonTranscoderServiceStub(TranscoderServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonTranscoderServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings TranscoderServiceStubSettings
clientContext ClientContext

HttpJsonTranscoderServiceStub(TranscoderServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonTranscoderServiceStub(TranscoderServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonTranscoderServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings TranscoderServiceStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createJobCallable()

public UnaryCallable<CreateJobRequest,Job> createJobCallable()
Returns
Type Description
UnaryCallable<CreateJobRequest,Job>
Overrides

createJobTemplateCallable()

public UnaryCallable<CreateJobTemplateRequest,JobTemplate> createJobTemplateCallable()
Returns
Type Description
UnaryCallable<CreateJobTemplateRequest,JobTemplate>
Overrides

deleteJobCallable()

public UnaryCallable<DeleteJobRequest,Empty> deleteJobCallable()
Returns
Type Description
UnaryCallable<DeleteJobRequest,Empty>
Overrides

deleteJobTemplateCallable()

public UnaryCallable<DeleteJobTemplateRequest,Empty> deleteJobTemplateCallable()
Returns
Type Description
UnaryCallable<DeleteJobTemplateRequest,Empty>
Overrides

getJobCallable()

public UnaryCallable<GetJobRequest,Job> getJobCallable()
Returns
Type Description
UnaryCallable<GetJobRequest,Job>
Overrides

getJobTemplateCallable()

public UnaryCallable<GetJobTemplateRequest,JobTemplate> getJobTemplateCallable()
Returns
Type Description
UnaryCallable<GetJobTemplateRequest,JobTemplate>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listJobTemplatesCallable()

public UnaryCallable<ListJobTemplatesRequest,ListJobTemplatesResponse> listJobTemplatesCallable()
Returns
Type Description
UnaryCallable<ListJobTemplatesRequest,ListJobTemplatesResponse>
Overrides

listJobTemplatesPagedCallable()

public UnaryCallable<ListJobTemplatesRequest,TranscoderServiceClient.ListJobTemplatesPagedResponse> listJobTemplatesPagedCallable()
Returns
Type Description
UnaryCallable<ListJobTemplatesRequest,ListJobTemplatesPagedResponse>
Overrides

listJobsCallable()

public UnaryCallable<ListJobsRequest,ListJobsResponse> listJobsCallable()
Returns
Type Description
UnaryCallable<ListJobsRequest,ListJobsResponse>
Overrides

listJobsPagedCallable()

public UnaryCallable<ListJobsRequest,TranscoderServiceClient.ListJobsPagedResponse> listJobsPagedCallable()
Returns
Type Description
UnaryCallable<ListJobsRequest,ListJobsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()