Class TranscoderServiceClient (0.4.3)

public class TranscoderServiceClient implements BackgroundResource

(deprecated) This class is deprecated and will be removed in the next major version update.

Service 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.

This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   Job job = Job.newBuilder().build();
   Job response = transcoderServiceClient.createJob(parent, job);
 }
 

Note: close() needs to be called on the TranscoderServiceClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

See the individual methods for example code.

Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.

This class can be customized by passing in a custom instance of TranscoderServiceSettings to create(). For example:

To customize credentials:


 TranscoderServiceSettings transcoderServiceSettings =
     TranscoderServiceSettings.newBuilder()
         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
         .build();
 TranscoderServiceClient transcoderServiceClient =
     TranscoderServiceClient.create(transcoderServiceSettings);
 

To customize the endpoint:


 TranscoderServiceSettings transcoderServiceSettings =
     TranscoderServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
 TranscoderServiceClient transcoderServiceClient =
     TranscoderServiceClient.create(transcoderServiceSettings);
 

Please refer to the GitHub repository's samples for more quickstart code snippets.

Inheritance

java.lang.Object > TranscoderServiceClient

Implements

BackgroundResource

Constructors

TranscoderServiceClient(TranscoderServiceSettings settings) (deprecated)

protected TranscoderServiceClient(TranscoderServiceSettings settings)

Constructs an instance of TranscoderServiceClient, 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.

Parameter
NameDescription
settingsTranscoderServiceSettings

TranscoderServiceClient(TranscoderServiceStub stub) (deprecated)

protected TranscoderServiceClient(TranscoderServiceStub stub)
Parameter
NameDescription
stubTranscoderServiceStub

Methods

awaitTermination(long duration, TimeUnit unit) (deprecated)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close() (deprecated)

public final void close()

create() (deprecated)

public static final TranscoderServiceClient create()

Constructs an instance of TranscoderServiceClient with default settings.

Returns
TypeDescription
TranscoderServiceClient
Exceptions
TypeDescription
IOException

create(TranscoderServiceSettings settings) (deprecated)

public static final TranscoderServiceClient create(TranscoderServiceSettings settings)

Constructs an instance of TranscoderServiceClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.

Parameter
NameDescription
settingsTranscoderServiceSettings
Returns
TypeDescription
TranscoderServiceClient
Exceptions
TypeDescription
IOException

create(TranscoderServiceStub stub) (deprecated)

public static final TranscoderServiceClient create(TranscoderServiceStub stub)

Constructs an instance of TranscoderServiceClient, using the given stub for making calls. This is for advanced usage - prefer using create(TranscoderServiceSettings).

Parameter
NameDescription
stubTranscoderServiceStub
Returns
TypeDescription
TranscoderServiceClient

createJob(CreateJobRequest request) (deprecated)

public final Job createJob(CreateJobRequest request)

Creates a job in the specified region.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   CreateJobRequest request =
       CreateJobRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setJob(Job.newBuilder().build())
           .build();
   Job response = transcoderServiceClient.createJob(request);
 }
 
Parameter
NameDescription
requestCreateJobRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
Job

createJob(LocationName parent, Job job) (deprecated)

public final Job createJob(LocationName parent, Job job)

Creates a job in the specified region.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   Job job = Job.newBuilder().build();
   Job response = transcoderServiceClient.createJob(parent, job);
 }
 
Parameters
NameDescription
parentLocationName

Required. The parent location to create and process this job. Format: projects/{project}/locations/{location}

jobJob

Required. Parameters for creating transcoding job.

Returns
TypeDescription
Job

createJob(String parent, Job job) (deprecated)

public final Job createJob(String parent, Job job)

Creates a job in the specified region.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   Job job = Job.newBuilder().build();
   Job response = transcoderServiceClient.createJob(parent, job);
 }
 
Parameters
NameDescription
parentString

Required. The parent location to create and process this job. Format: projects/{project}/locations/{location}

jobJob

Required. Parameters for creating transcoding job.

Returns
TypeDescription
Job

createJobCallable() (deprecated)

public final UnaryCallable<CreateJobRequest,Job> createJobCallable()

Creates a job in the specified region.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   CreateJobRequest request =
       CreateJobRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setJob(Job.newBuilder().build())
           .build();
   ApiFuture<Job> future = transcoderServiceClient.createJobCallable().futureCall(request);
   // Do something.
   Job response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreateJobRequest,Job>

createJobTemplate(CreateJobTemplateRequest request) (deprecated)

public final JobTemplate createJobTemplate(CreateJobTemplateRequest request)

Creates a job template in the specified region.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   CreateJobTemplateRequest request =
       CreateJobTemplateRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setJobTemplate(JobTemplate.newBuilder().build())
           .setJobTemplateId("jobTemplateId-597733678")
           .build();
   JobTemplate response = transcoderServiceClient.createJobTemplate(request);
 }
 
Parameter
NameDescription
requestCreateJobTemplateRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
JobTemplate

createJobTemplate(LocationName parent, JobTemplate jobTemplate, String jobTemplateId) (deprecated)

public final JobTemplate createJobTemplate(LocationName parent, JobTemplate jobTemplate, String jobTemplateId)

Creates a job template in the specified region.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   JobTemplate jobTemplate = JobTemplate.newBuilder().build();
   String jobTemplateId = "jobTemplateId-597733678";
   JobTemplate response =
       transcoderServiceClient.createJobTemplate(parent, jobTemplate, jobTemplateId);
 }
 
Parameters
NameDescription
parentLocationName

Required. The parent location to create this job template. Format: projects/{project}/locations/{location}

jobTemplateJobTemplate

Required. Parameters for creating job template.

jobTemplateIdString

Required. The ID to use for the job template, which will become the final component of the job template's resource name.

This value should be 4-63 characters, and valid characters must match the regular expression a-zA-Z*.

Returns
TypeDescription
JobTemplate

createJobTemplate(String parent, JobTemplate jobTemplate, String jobTemplateId) (deprecated)

public final JobTemplate createJobTemplate(String parent, JobTemplate jobTemplate, String jobTemplateId)

Creates a job template in the specified region.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   JobTemplate jobTemplate = JobTemplate.newBuilder().build();
   String jobTemplateId = "jobTemplateId-597733678";
   JobTemplate response =
       transcoderServiceClient.createJobTemplate(parent, jobTemplate, jobTemplateId);
 }
 
Parameters
NameDescription
parentString

Required. The parent location to create this job template. Format: projects/{project}/locations/{location}

jobTemplateJobTemplate

Required. Parameters for creating job template.

jobTemplateIdString

Required. The ID to use for the job template, which will become the final component of the job template's resource name.

This value should be 4-63 characters, and valid characters must match the regular expression a-zA-Z*.

Returns
TypeDescription
JobTemplate

createJobTemplateCallable() (deprecated)

public final UnaryCallable<CreateJobTemplateRequest,JobTemplate> createJobTemplateCallable()

Creates a job template in the specified region.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   CreateJobTemplateRequest request =
       CreateJobTemplateRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setJobTemplate(JobTemplate.newBuilder().build())
           .setJobTemplateId("jobTemplateId-597733678")
           .build();
   ApiFuture
Returns
TypeDescription
UnaryCallable<CreateJobTemplateRequest,JobTemplate>

deleteJob(DeleteJobRequest request) (deprecated)

public final void deleteJob(DeleteJobRequest request)

Deletes a job.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   DeleteJobRequest request =
       DeleteJobRequest.newBuilder()
           .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
           .build();
   transcoderServiceClient.deleteJob(request);
 }
 
Parameter
NameDescription
requestDeleteJobRequest

The request object containing all of the parameters for the API call.

deleteJob(JobName name) (deprecated)

public final void deleteJob(JobName name)

Deletes a job.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
   transcoderServiceClient.deleteJob(name);
 }
 
Parameter
NameDescription
nameJobName

Required. The name of the job to delete. Format: projects/{project}/locations/{location}/jobs/{job}

deleteJob(String name) (deprecated)

public final void deleteJob(String name)

Deletes a job.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   String name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString();
   transcoderServiceClient.deleteJob(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the job to delete. Format: projects/{project}/locations/{location}/jobs/{job}

deleteJobCallable() (deprecated)

public final UnaryCallable<DeleteJobRequest,Empty> deleteJobCallable()

Deletes a job.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   DeleteJobRequest request =
       DeleteJobRequest.newBuilder()
           .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
           .build();
   ApiFuture<Empty> future = transcoderServiceClient.deleteJobCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteJobRequest,Empty>

deleteJobTemplate(DeleteJobTemplateRequest request) (deprecated)

public final void deleteJobTemplate(DeleteJobTemplateRequest request)

Deletes a job template.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   DeleteJobTemplateRequest request =
       DeleteJobTemplateRequest.newBuilder()
           .setName(JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]").toString())
           .build();
   transcoderServiceClient.deleteJobTemplate(request);
 }
 
Parameter
NameDescription
requestDeleteJobTemplateRequest

The request object containing all of the parameters for the API call.

deleteJobTemplate(JobTemplateName name) (deprecated)

public final void deleteJobTemplate(JobTemplateName name)

Deletes a job template.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   JobTemplateName name = JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]");
   transcoderServiceClient.deleteJobTemplate(name);
 }
 
Parameter
NameDescription
nameJobTemplateName

Required. The name of the job template to delete. projects/{project}/locations/{location}/jobTemplates/{job_template}

deleteJobTemplate(String name) (deprecated)

public final void deleteJobTemplate(String name)

Deletes a job template.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   String name = JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]").toString();
   transcoderServiceClient.deleteJobTemplate(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the job template to delete. projects/{project}/locations/{location}/jobTemplates/{job_template}

deleteJobTemplateCallable() (deprecated)

public final UnaryCallable<DeleteJobTemplateRequest,Empty> deleteJobTemplateCallable()

Deletes a job template.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   DeleteJobTemplateRequest request =
       DeleteJobTemplateRequest.newBuilder()
           .setName(JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]").toString())
           .build();
   ApiFuture<Empty> future =
       transcoderServiceClient.deleteJobTemplateCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteJobTemplateRequest,Empty>

getJob(GetJobRequest request) (deprecated)

public final Job getJob(GetJobRequest request)

Returns the job data.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   GetJobRequest request =
       GetJobRequest.newBuilder()
           .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
           .build();
   Job response = transcoderServiceClient.getJob(request);
 }
 
Parameter
NameDescription
requestGetJobRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
Job

getJob(JobName name) (deprecated)

public final Job getJob(JobName name)

Returns the job data.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
   Job response = transcoderServiceClient.getJob(name);
 }
 
Parameter
NameDescription
nameJobName

Required. The name of the job to retrieve. Format: projects/{project}/locations/{location}/jobs/{job}

Returns
TypeDescription
Job

getJob(String name) (deprecated)

public final Job getJob(String name)

Returns the job data.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   String name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString();
   Job response = transcoderServiceClient.getJob(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the job to retrieve. Format: projects/{project}/locations/{location}/jobs/{job}

Returns
TypeDescription
Job

getJobCallable() (deprecated)

public final UnaryCallable<GetJobRequest,Job> getJobCallable()

Returns the job data.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   GetJobRequest request =
       GetJobRequest.newBuilder()
           .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString())
           .build();
   ApiFuture<Job> future = transcoderServiceClient.getJobCallable().futureCall(request);
   // Do something.
   Job response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetJobRequest,Job>

getJobTemplate(GetJobTemplateRequest request) (deprecated)

public final JobTemplate getJobTemplate(GetJobTemplateRequest request)

Returns the job template data.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   GetJobTemplateRequest request =
       GetJobTemplateRequest.newBuilder()
           .setName(JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]").toString())
           .build();
   JobTemplate response = transcoderServiceClient.getJobTemplate(request);
 }
 
Parameter
NameDescription
requestGetJobTemplateRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
JobTemplate

getJobTemplate(JobTemplateName name) (deprecated)

public final JobTemplate getJobTemplate(JobTemplateName name)

Returns the job template data.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   JobTemplateName name = JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]");
   JobTemplate response = transcoderServiceClient.getJobTemplate(name);
 }
 
Parameter
NameDescription
nameJobTemplateName

Required. The name of the job template to retrieve. Format: projects/{project}/locations/{location}/jobTemplates/{job_template}

Returns
TypeDescription
JobTemplate

getJobTemplate(String name) (deprecated)

public final JobTemplate getJobTemplate(String name)

Returns the job template data.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   String name = JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]").toString();
   JobTemplate response = transcoderServiceClient.getJobTemplate(name);
 }
 
Parameter
NameDescription
nameString

Required. The name of the job template to retrieve. Format: projects/{project}/locations/{location}/jobTemplates/{job_template}

Returns
TypeDescription
JobTemplate

getJobTemplateCallable() (deprecated)

public final UnaryCallable<GetJobTemplateRequest,JobTemplate> getJobTemplateCallable()

Returns the job template data.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   GetJobTemplateRequest request =
       GetJobTemplateRequest.newBuilder()
           .setName(JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]").toString())
           .build();
   ApiFuture
Returns
TypeDescription
UnaryCallable<GetJobTemplateRequest,JobTemplate>

getSettings() (deprecated)

public final TranscoderServiceSettings getSettings()
Returns
TypeDescription
TranscoderServiceSettings

getStub() (deprecated)

public TranscoderServiceStub getStub()
Returns
TypeDescription
TranscoderServiceStub

isShutdown() (deprecated)

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated() (deprecated)

public boolean isTerminated()
Returns
TypeDescription
boolean

listJobTemplates(ListJobTemplatesRequest request) (deprecated)

public final TranscoderServiceClient.ListJobTemplatesPagedResponse listJobTemplates(ListJobTemplatesRequest request)

Lists job templates in the specified region.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   ListJobTemplatesRequest request =
       ListJobTemplatesRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (JobTemplate element : transcoderServiceClient.listJobTemplates(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListJobTemplatesRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
TranscoderServiceClient.ListJobTemplatesPagedResponse

listJobTemplates(LocationName parent) (deprecated)

public final TranscoderServiceClient.ListJobTemplatesPagedResponse listJobTemplates(LocationName parent)

Lists job templates in the specified region.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (JobTemplate element : transcoderServiceClient.listJobTemplates(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentLocationName

Required. The parent location from which to retrieve the collection of job templates. Format: projects/{project}/locations/{location}

Returns
TypeDescription
TranscoderServiceClient.ListJobTemplatesPagedResponse

listJobTemplates(String parent) (deprecated)

public final TranscoderServiceClient.ListJobTemplatesPagedResponse listJobTemplates(String parent)

Lists job templates in the specified region.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   for (JobTemplate element : transcoderServiceClient.listJobTemplates(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. The parent location from which to retrieve the collection of job templates. Format: projects/{project}/locations/{location}

Returns
TypeDescription
TranscoderServiceClient.ListJobTemplatesPagedResponse

listJobTemplatesCallable() (deprecated)

public final UnaryCallable<ListJobTemplatesRequest,ListJobTemplatesResponse> listJobTemplatesCallable()

Lists job templates in the specified region.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   ListJobTemplatesRequest request =
       ListJobTemplatesRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListJobTemplatesResponse response =
         transcoderServiceClient.listJobTemplatesCallable().call(request);
     for (JobTemplate element : response.getResponsesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListJobTemplatesRequest,ListJobTemplatesResponse>

listJobTemplatesPagedCallable() (deprecated)

public final UnaryCallable<ListJobTemplatesRequest,TranscoderServiceClient.ListJobTemplatesPagedResponse> listJobTemplatesPagedCallable()

Lists job templates in the specified region.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   ListJobTemplatesRequest request =
       ListJobTemplatesRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture
Returns
TypeDescription
UnaryCallable<ListJobTemplatesRequest,ListJobTemplatesPagedResponse>

listJobs(ListJobsRequest request) (deprecated)

public final TranscoderServiceClient.ListJobsPagedResponse listJobs(ListJobsRequest request)

Lists jobs in the specified region.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   ListJobsRequest request =
       ListJobsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (Job element : transcoderServiceClient.listJobs(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListJobsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
TranscoderServiceClient.ListJobsPagedResponse

listJobs(LocationName parent) (deprecated)

public final TranscoderServiceClient.ListJobsPagedResponse listJobs(LocationName parent)

Lists jobs in the specified region.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (Job element : transcoderServiceClient.listJobs(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentLocationName

Required. Format: projects/{project}/locations/{location}

Returns
TypeDescription
TranscoderServiceClient.ListJobsPagedResponse

listJobs(String parent) (deprecated)

public final TranscoderServiceClient.ListJobsPagedResponse listJobs(String parent)

Lists jobs in the specified region.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   for (Job element : transcoderServiceClient.listJobs(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. Format: projects/{project}/locations/{location}

Returns
TypeDescription
TranscoderServiceClient.ListJobsPagedResponse

listJobsCallable() (deprecated)

public final UnaryCallable<ListJobsRequest,ListJobsResponse> listJobsCallable()

Lists jobs in the specified region.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   ListJobsRequest request =
       ListJobsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListJobsResponse response = transcoderServiceClient.listJobsCallable().call(request);
     for (Job element : response.getResponsesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListJobsRequest,ListJobsResponse>

listJobsPagedCallable() (deprecated)

public final UnaryCallable<ListJobsRequest,TranscoderServiceClient.ListJobsPagedResponse> listJobsPagedCallable()

Lists jobs in the specified region.

Sample code:


 try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
   ListJobsRequest request =
       ListJobsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<Job> future = transcoderServiceClient.listJobsPagedCallable().futureCall(request);
   // Do something.
   for (Job element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListJobsRequest,ListJobsPagedResponse>

shutdown() (deprecated)

public void shutdown()

shutdownNow() (deprecated)

public void shutdownNow()