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 + *
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(). * @@ -84,30 +75,28 @@ * *
To customize credentials: * - *
- *
+ * {@code
* TranscoderServiceSettings transcoderServiceSettings =
* TranscoderServiceSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
* .build();
* TranscoderServiceClient transcoderServiceClient =
* TranscoderServiceClient.create(transcoderServiceSettings);
- *
- *
+ * }
*
- * To customize the endpoint:
+ * To customize the endpoint: * - *
- *
+ * {@code
* 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. */ -@Generated("by gapic-generator") @BetaApi +@Generated("by gapic-generator") public class TranscoderServiceClient implements BackgroundResource { private final TranscoderServiceSettings settings; private final TranscoderServiceStub stub; @@ -128,7 +117,7 @@ public static final TranscoderServiceClient create(TranscoderServiceSettings set /** * Constructs an instance of TranscoderServiceClient, using the given stub for making calls. This - * is for advanced usage - prefer to use TranscoderServiceSettings}. + * is for advanced usage - prefer using create(TranscoderServiceSettings). */ @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final TranscoderServiceClient create(TranscoderServiceStub stub) { @@ -160,20 +149,10 @@ public TranscoderServiceStub getStub() { return stub; } - // AUTO-GENERATED DOCUMENTATION AND METHOD + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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);
- * }
- *
- *
* @param parent Required. The parent location to create and process this job. Format:
* `projects/{project}/locations/{location}`
* @param job Required. Parameters for creating transcoding job.
@@ -188,20 +167,10 @@ public final Job createJob(LocationName parent, Job job) {
return createJob(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* 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.toString(), job);
- * }
- *
- *
* @param parent Required. The parent location to create and process this job. Format:
* `projects/{project}/locations/{location}`
* @param job Required. Parameters for creating transcoding job.
@@ -212,24 +181,10 @@ public final Job createJob(String parent, Job job) {
return createJob(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* 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();
- * CreateJobRequest request = CreateJobRequest.newBuilder()
- * .setParent(parent.toString())
- * .setJob(job)
- * .build();
- * Job response = transcoderServiceClient.createJob(request);
- * }
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -237,45 +192,20 @@ public final Job createJob(CreateJobRequest request) {
return createJobCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* 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();
- * CreateJobRequest request = CreateJobRequest.newBuilder()
- * .setParent(parent.toString())
- * .setJob(job)
- * .build();
- * ApiFuture<Job> future = transcoderServiceClient.createJobCallable().futureCall(request);
- * // Do something
- * Job response = future.get();
- * }
- *
*/
public final UnaryCallableSample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- * for (Job element : transcoderServiceClient.listJobs(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- *
- *
* @param parent Required. Format: `projects/{project}/locations/{location}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -285,21 +215,10 @@ public final ListJobsPagedResponse listJobs(LocationName parent) {
return listJobs(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* 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.toString()).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- *
- *
* @param parent Required. Format: `projects/{project}/locations/{location}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -308,24 +227,10 @@ public final ListJobsPagedResponse listJobs(String parent) {
return listJobs(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists jobs in the specified region.
*
- * Sample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- * ListJobsRequest request = ListJobsRequest.newBuilder()
- * .setParent(parent.toString())
- * .build();
- * for (Job element : transcoderServiceClient.listJobs(request).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -333,74 +238,30 @@ public final ListJobsPagedResponse listJobs(ListJobsRequest request) {
return listJobsPagedCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists jobs in the specified region.
*
* Sample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- * ListJobsRequest request = ListJobsRequest.newBuilder()
- * .setParent(parent.toString())
- * .build();
- * ApiFuture<ListJobsPagedResponse> future = transcoderServiceClient.listJobsPagedCallable().futureCall(request);
- * // Do something
- * for (Job element : future.get().iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- *
*/
public final UnaryCallableSample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- * ListJobsRequest request = ListJobsRequest.newBuilder()
- * .setParent(parent.toString())
- * .build();
- * while (true) {
- * ListJobsResponse response = transcoderServiceClient.listJobsCallable().call(request);
- * for (Job element : response.getJobsList()) {
- * // doThingsWith(element);
- * }
- * String nextPageToken = response.getNextPageToken();
- * if (!Strings.isNullOrEmpty(nextPageToken)) {
- * request = request.toBuilder().setPageToken(nextPageToken).build();
- * } else {
- * break;
- * }
- * }
- * }
- *
*/
public final UnaryCallableSample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
- * Job response = transcoderServiceClient.getJob(name);
- * }
- *
- *
* @param name Required. The name of the job to retrieve. Format:
* `projects/{project}/locations/{location}/jobs/{job}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -411,19 +272,10 @@ public final Job getJob(JobName name) {
return getJob(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns the job data.
*
- * Sample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
- * Job response = transcoderServiceClient.getJob(name.toString());
- * }
- *
- *
* @param name Required. The name of the job to retrieve. Format:
* `projects/{project}/locations/{location}/jobs/{job}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -433,22 +285,10 @@ public final Job getJob(String name) {
return getJob(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns the job data.
*
- * Sample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
- * GetJobRequest request = GetJobRequest.newBuilder()
- * .setName(name.toString())
- * .build();
- * Job response = transcoderServiceClient.getJob(request);
- * }
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -456,41 +296,20 @@ public final Job getJob(GetJobRequest request) {
return getJobCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns the job data.
*
* Sample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
- * GetJobRequest request = GetJobRequest.newBuilder()
- * .setName(name.toString())
- * .build();
- * ApiFuture<Job> future = transcoderServiceClient.getJobCallable().futureCall(request);
- * // Do something
- * Job response = future.get();
- * }
- *
*/
public final UnaryCallableSample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
- * transcoderServiceClient.deleteJob(name);
- * }
- *
- *
* @param name Required. The name of the job to delete. Format:
* `projects/{project}/locations/{location}/jobs/{job}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -501,19 +320,10 @@ public final void deleteJob(JobName name) {
deleteJob(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a job.
*
- * Sample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
- * transcoderServiceClient.deleteJob(name.toString());
- * }
- *
- *
* @param name Required. The name of the job to delete. Format:
* `projects/{project}/locations/{location}/jobs/{job}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -523,22 +333,10 @@ public final void deleteJob(String name) {
deleteJob(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a job.
*
- * Sample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
- * DeleteJobRequest request = DeleteJobRequest.newBuilder()
- * .setName(name.toString())
- * .build();
- * transcoderServiceClient.deleteJob(request);
- * }
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -546,43 +344,20 @@ public final void deleteJob(DeleteJobRequest request) {
deleteJobCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a job.
*
* Sample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * JobName name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]");
- * DeleteJobRequest request = DeleteJobRequest.newBuilder()
- * .setName(name.toString())
- * .build();
- * ApiFuture<Void> future = transcoderServiceClient.deleteJobCallable().futureCall(request);
- * // Do something
- * future.get();
- * }
- *
*/
public final UnaryCallableSample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- * JobTemplate jobTemplate = JobTemplate.newBuilder().build();
- * String jobTemplateId = "";
- * JobTemplate response = transcoderServiceClient.createJobTemplate(parent, jobTemplate, jobTemplateId);
- * }
- *
- *
* @param parent Required. The parent location to create this job template. Format:
* `projects/{project}/locations/{location}`
* @param jobTemplate Required. Parameters for creating job template.
@@ -603,21 +378,10 @@ public final JobTemplate createJobTemplate(
return createJobTemplate(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* 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 = "";
- * JobTemplate response = transcoderServiceClient.createJobTemplate(parent.toString(), jobTemplate, jobTemplateId);
- * }
- *
- *
* @param parent Required. The parent location to create this job template. Format:
* `projects/{project}/locations/{location}`
* @param jobTemplate Required. Parameters for creating job template.
@@ -638,26 +402,10 @@ public final JobTemplate createJobTemplate(
return createJobTemplate(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* 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 = "";
- * CreateJobTemplateRequest request = CreateJobTemplateRequest.newBuilder()
- * .setParent(parent.toString())
- * .setJobTemplate(jobTemplate)
- * .setJobTemplateId(jobTemplateId)
- * .build();
- * JobTemplate response = transcoderServiceClient.createJobTemplate(request);
- * }
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -665,47 +413,20 @@ public final JobTemplate createJobTemplate(CreateJobTemplateRequest request) {
return createJobTemplateCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* 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 = "";
- * CreateJobTemplateRequest request = CreateJobTemplateRequest.newBuilder()
- * .setParent(parent.toString())
- * .setJobTemplate(jobTemplate)
- * .setJobTemplateId(jobTemplateId)
- * .build();
- * ApiFuture<JobTemplate> future = transcoderServiceClient.createJobTemplateCallable().futureCall(request);
- * // Do something
- * JobTemplate response = future.get();
- * }
- *
*/
public final UnaryCallableSample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- * for (JobTemplate element : transcoderServiceClient.listJobTemplates(parent).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- *
- *
* @param parent Required. The parent location from which to retrieve the collection of job
* templates. Format: `projects/{project}/locations/{location}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -718,21 +439,10 @@ public final ListJobTemplatesPagedResponse listJobTemplates(LocationName parent)
return listJobTemplates(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* 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.toString()).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- *
- *
* @param parent Required. The parent location from which to retrieve the collection of job
* templates. Format: `projects/{project}/locations/{location}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -743,24 +453,10 @@ public final ListJobTemplatesPagedResponse listJobTemplates(String parent) {
return listJobTemplates(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists job templates in the specified region.
*
- * Sample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- * ListJobTemplatesRequest request = ListJobTemplatesRequest.newBuilder()
- * .setParent(parent.toString())
- * .build();
- * for (JobTemplate element : transcoderServiceClient.listJobTemplates(request).iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -768,76 +464,32 @@ public final ListJobTemplatesPagedResponse listJobTemplates(ListJobTemplatesRequ
return listJobTemplatesPagedCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists job templates in the specified region.
*
* Sample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- * ListJobTemplatesRequest request = ListJobTemplatesRequest.newBuilder()
- * .setParent(parent.toString())
- * .build();
- * ApiFuture<ListJobTemplatesPagedResponse> future = transcoderServiceClient.listJobTemplatesPagedCallable().futureCall(request);
- * // Do something
- * for (JobTemplate element : future.get().iterateAll()) {
- * // doThingsWith(element);
- * }
- * }
- *
*/
public final UnaryCallableSample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- * ListJobTemplatesRequest request = ListJobTemplatesRequest.newBuilder()
- * .setParent(parent.toString())
- * .build();
- * while (true) {
- * ListJobTemplatesResponse response = transcoderServiceClient.listJobTemplatesCallable().call(request);
- * for (JobTemplate element : response.getJobTemplatesList()) {
- * // doThingsWith(element);
- * }
- * String nextPageToken = response.getNextPageToken();
- * if (!Strings.isNullOrEmpty(nextPageToken)) {
- * request = request.toBuilder().setPageToken(nextPageToken).build();
- * } else {
- * break;
- * }
- * }
- * }
- *
*/
public final UnaryCallableSample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * JobTemplateName name = JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]");
- * JobTemplate response = transcoderServiceClient.getJobTemplate(name);
- * }
- *
- *
* @param name Required. The name of the job template to retrieve. Format:
* `projects/{project}/locations/{location}/jobTemplates/{job_template}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -848,19 +500,10 @@ public final JobTemplate getJobTemplate(JobTemplateName name) {
return getJobTemplate(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* 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.toString());
- * }
- *
- *
* @param name Required. The name of the job template to retrieve. Format:
* `projects/{project}/locations/{location}/jobTemplates/{job_template}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -870,22 +513,10 @@ public final JobTemplate getJobTemplate(String name) {
return getJobTemplate(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns the job template data.
*
- * Sample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * JobTemplateName name = JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]");
- * GetJobTemplateRequest request = GetJobTemplateRequest.newBuilder()
- * .setName(name.toString())
- * .build();
- * JobTemplate response = transcoderServiceClient.getJobTemplate(request);
- * }
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -893,41 +524,20 @@ public final JobTemplate getJobTemplate(GetJobTemplateRequest request) {
return getJobTemplateCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns the job template data.
*
* Sample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * JobTemplateName name = JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]");
- * GetJobTemplateRequest request = GetJobTemplateRequest.newBuilder()
- * .setName(name.toString())
- * .build();
- * ApiFuture<JobTemplate> future = transcoderServiceClient.getJobTemplateCallable().futureCall(request);
- * // Do something
- * JobTemplate response = future.get();
- * }
- *
*/
public final UnaryCallableSample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * JobTemplateName name = JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]");
- * transcoderServiceClient.deleteJobTemplate(name);
- * }
- *
- *
* @param name Required. The name of the job template to delete.
* `projects/{project}/locations/{location}/jobTemplates/{job_template}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -940,19 +550,10 @@ public final void deleteJobTemplate(JobTemplateName name) {
deleteJobTemplate(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a job template.
*
- * Sample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * JobTemplateName name = JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]");
- * transcoderServiceClient.deleteJobTemplate(name.toString());
- * }
- *
- *
* @param name Required. The name of the job template to delete.
* `projects/{project}/locations/{location}/jobTemplates/{job_template}`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -962,22 +563,10 @@ public final void deleteJobTemplate(String name) {
deleteJobTemplate(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a job template.
*
- * Sample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * JobTemplateName name = JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]");
- * DeleteJobTemplateRequest request = DeleteJobTemplateRequest.newBuilder()
- * .setName(name.toString())
- * .build();
- * transcoderServiceClient.deleteJobTemplate(request);
- * }
- *
- *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -985,23 +574,11 @@ public final void deleteJobTemplate(DeleteJobTemplateRequest request) {
deleteJobTemplateCallable().call(request);
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes a job template.
*
* Sample code: - * - *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * JobTemplateName name = JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]");
- * DeleteJobTemplateRequest request = DeleteJobTemplateRequest.newBuilder()
- * .setName(name.toString())
- * .build();
- * ApiFuture<Void> future = transcoderServiceClient.deleteJobTemplateCallable().futureCall(request);
- * // Do something
- * future.get();
- * }
- *
*/
public final UnaryCallableFor example, to set the total timeout of createJob to 30 seconds: * - *
- *
+ * {@code
* TranscoderServiceSettings.Builder transcoderServiceSettingsBuilder =
* TranscoderServiceSettings.newBuilder();
* transcoderServiceSettingsBuilder
* .createJobSettings()
* .setRetrySettings(
- * transcoderServiceSettingsBuilder.createJobSettings().getRetrySettings().toBuilder()
+ * transcoderServiceSettingsBuilder
+ * .createJobSettings()
+ * .getRetrySettings()
+ * .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* TranscoderServiceSettings transcoderServiceSettings = transcoderServiceSettingsBuilder.build();
- *
- *
+ * }
*/
-@Generated("by gapic-generator")
-@BetaApi
+@Generated("by gapic-generator-java")
public class TranscoderServiceSettings extends ClientSettingsThe interfaces provided are listed below, along with usage samples. + * The interfaces provided are listed below, along with usage samples. * *
======================= TranscoderServiceClient ======================= * @@ -28,18 +26,8 @@ * equalization, content concatenation, and digital ad-stitch ready content generation. * *
Sample for TranscoderServiceClient: - * - *
- *
- * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
- * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- * Job job = Job.newBuilder().build();
- * Job response = transcoderServiceClient.createJob(parent, job);
- * }
- *
- *
*/
-@Generated("by gapic-generator")
+@Generated("by gapic-generator-java")
package com.google.cloud.video.transcoder.v1beta1;
import javax.annotation.Generated;
diff --git a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/GrpcTranscoderServiceCallableFactory.java b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/GrpcTranscoderServiceCallableFactory.java
index 83d1c4cc..990959f4 100644
--- a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/GrpcTranscoderServiceCallableFactory.java
+++ b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/GrpcTranscoderServiceCallableFactory.java
@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * https://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
package com.google.cloud.video.transcoder.v1beta1.stub;
-import com.google.api.core.BetaApi;
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcCallableFactory;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
@@ -31,18 +31,19 @@
import com.google.api.gax.rpc.StreamingCallSettings;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.longrunning.Operation;
import com.google.longrunning.stub.OperationsStub;
import javax.annotation.Generated;
-// AUTO-GENERATED DOCUMENTATION AND CLASS
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
- * gRPC callable factory implementation for Transcoder API.
+ * gRPC callable factory implementation for the TranscoderService service API.
*
* This class is for advanced usage.
*/
@Generated("by gapic-generator")
-@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public class GrpcTranscoderServiceCallableFactory implements GrpcStubCallableFactory {
+
@Override
public This class is for advanced usage and reflects the underlying API directly.
*/
-@Generated("by gapic-generator")
-@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+@Generated("by gapic-generator-java")
public class GrpcTranscoderServiceStub extends TranscoderServiceStub {
-
private static final MethodDescriptor This class is for advanced usage and reflects the underlying API directly.
*/
@Generated("by gapic-generator")
-@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public abstract class TranscoderServiceStub implements BackgroundResource {
public UnaryCallable For example, to set the total timeout of createJob to 30 seconds:
*
- *
- *
+ * TranscoderServiceStubSettings transcoderServiceSettings =
+ * transcoderServiceSettingsBuilder.build();
+ * }
*/
-@Generated("by gapic-generator")
@BetaApi
+@Generated("by gapic-generator-java")
public class TranscoderServiceStubSettings extends StubSettings
+ *
- * {@code
* TranscoderServiceStubSettings.Builder transcoderServiceSettingsBuilder =
* TranscoderServiceStubSettings.newBuilder();
* transcoderServiceSettingsBuilder
* .createJobSettings()
* .setRetrySettings(
- * transcoderServiceSettingsBuilder.createJobSettings().getRetrySettings().toBuilder()
+ * transcoderServiceSettingsBuilder
+ * .createJobSettings()
+ * .getRetrySettings()
+ * .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
- * TranscoderServiceStubSettings transcoderServiceSettings = transcoderServiceSettingsBuilder.build();
- *