double frame_rate = 20 [(.google.api.field_behavior) = REQUIRED];
@@ -3389,6 +3391,7 @@ public Builder clearBFrameCount() {
* the input FPS, and smaller or equal to the target FPS.
* The following table shows the computed video FPS given the target FPS (in
* parenthesis) and input FPS (in the first column):
+ * ```
* | | (30) | (60) | (25) | (50) |
* |--------|--------|--------|------|------|
* | 240 | Fail | Fail | Fail | Fail |
@@ -3405,6 +3408,7 @@ public Builder clearBFrameCount() {
* | 15 | 15 | 15 | 20 | 30 |
* | 12 | 12 | 12 | 20 | 30 |
* | 10 | 10 | 10 | 20 | 30 |
+ * ```
*
*
* double frame_rate = 20 [(.google.api.field_behavior) = REQUIRED];
@@ -3425,6 +3429,7 @@ public double getFrameRate() {
* the input FPS, and smaller or equal to the target FPS.
* The following table shows the computed video FPS given the target FPS (in
* parenthesis) and input FPS (in the first column):
+ * ```
* | | (30) | (60) | (25) | (50) |
* |--------|--------|--------|------|------|
* | 240 | Fail | Fail | Fail | Fail |
@@ -3441,6 +3446,7 @@ public double getFrameRate() {
* | 15 | 15 | 15 | 20 | 30 |
* | 12 | 12 | 12 | 20 | 30 |
* | 10 | 10 | 10 | 20 | 30 |
+ * ```
*
*
* double frame_rate = 20 [(.google.api.field_behavior) = REQUIRED];
@@ -3464,6 +3470,7 @@ public Builder setFrameRate(double value) {
* the input FPS, and smaller or equal to the target FPS.
* The following table shows the computed video FPS given the target FPS (in
* parenthesis) and input FPS (in the first column):
+ * ```
* | | (30) | (60) | (25) | (50) |
* |--------|--------|--------|------|------|
* | 240 | Fail | Fail | Fail | Fail |
@@ -3480,6 +3487,7 @@ public Builder setFrameRate(double value) {
* | 15 | 15 | 15 | 20 | 30 |
* | 12 | 12 | 12 | 20 | 30 |
* | 10 | 10 | 10 | 20 | 30 |
+ * ```
*
*
* double frame_rate = 20 [(.google.api.field_behavior) = REQUIRED];
diff --git a/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/VideoStreamOrBuilder.java b/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/VideoStreamOrBuilder.java
index 0ee6f072..90900323 100644
--- a/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/VideoStreamOrBuilder.java
+++ b/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/VideoStreamOrBuilder.java
@@ -450,6 +450,7 @@ public interface VideoStreamOrBuilder
* the input FPS, and smaller or equal to the target FPS.
* The following table shows the computed video FPS given the target FPS (in
* parenthesis) and input FPS (in the first column):
+ * ```
* | | (30) | (60) | (25) | (50) |
* |--------|--------|--------|------|------|
* | 240 | Fail | Fail | Fail | Fail |
@@ -466,6 +467,7 @@ public interface VideoStreamOrBuilder
* | 15 | 15 | 15 | 20 | 30 |
* | 12 | 12 | 12 | 20 | 30 |
* | 10 | 10 | 10 | 20 | 30 |
+ * ```
*
*
* double frame_rate = 20 [(.google.api.field_behavior) = REQUIRED];
diff --git a/proto-google-cloud-video-transcoder-v1beta1/src/main/proto/google/cloud/video/transcoder/v1beta1/resources.proto b/proto-google-cloud-video-transcoder-v1beta1/src/main/proto/google/cloud/video/transcoder/v1beta1/resources.proto
index 4e2163c9..71ba38f9 100644
--- a/proto-google-cloud-video-transcoder-v1beta1/src/main/proto/google/cloud/video/transcoder/v1beta1/resources.proto
+++ b/proto-google-cloud-video-transcoder-v1beta1/src/main/proto/google/cloud/video/transcoder/v1beta1/resources.proto
@@ -654,7 +654,7 @@ message VideoStream {
//
// The following table shows the computed video FPS given the target FPS (in
// parenthesis) and input FPS (in the first column):
- //
+ // ```
// | | (30) | (60) | (25) | (50) |
// |--------|--------|--------|------|------|
// | 240 | Fail | Fail | Fail | Fail |
@@ -671,6 +671,7 @@ message VideoStream {
// | 15 | 15 | 15 | 20 | 30 |
// | 12 | 12 | 12 | 20 | 30 |
// | 10 | 10 | 10 | 20 | 30 |
+ // ```
double frame_rate = 20 [(google.api.field_behavior) = REQUIRED];
// Specify the intensity of the adaptive quantizer (AQ). Must be between 0 and
diff --git a/synth.metadata b/synth.metadata
index efd5adbb..a0769edd 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -11,8 +11,8 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "857f70daef9f4c38f042fb3dfb7b8423ae18fd19",
- "internalRef": "346372957"
+ "sha": "2ccf8f460800e98884d1aa4ba61e344ad4cd5d04",
+ "internalRef": "348857882"
}
},
{
From a89edf9d9627be149ea697fbda52b68264bfca0e Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot Please refer to the GitHub repository's samples for more quickstart code snippets.
*/
@BetaApi
-@Generated("by gapic-generator")
+@Generated("by gapic-generator-java")
public class TranscoderServiceClient implements BackgroundResource {
private final TranscoderServiceSettings settings;
private final TranscoderServiceStub stub;
diff --git a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceSettings.java b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceSettings.java
index ee12c358..704e3c29 100644
--- a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceSettings.java
+++ b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceSettings.java
@@ -68,6 +68,7 @@
* TranscoderServiceSettings transcoderServiceSettings = transcoderServiceSettingsBuilder.build();
* }
*/
+@BetaApi
@Generated("by gapic-generator-java")
public class TranscoderServiceSettings extends ClientSettings This class is for advanced usage.
*/
-@Generated("by gapic-generator")
+@BetaApi
+@Generated("by gapic-generator-java")
public class GrpcTranscoderServiceCallableFactory implements GrpcStubCallableFactory {
@Override
diff --git a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/GrpcTranscoderServiceStub.java b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/GrpcTranscoderServiceStub.java
index e73175cd..b3138495 100644
--- a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/GrpcTranscoderServiceStub.java
+++ b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/GrpcTranscoderServiceStub.java
@@ -19,6 +19,7 @@
import static com.google.cloud.video.transcoder.v1beta1.TranscoderServiceClient.ListJobTemplatesPagedResponse;
import static com.google.cloud.video.transcoder.v1beta1.TranscoderServiceClient.ListJobsPagedResponse;
+import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.core.BackgroundResourceAggregation;
import com.google.api.gax.grpc.GrpcCallSettings;
@@ -54,6 +55,7 @@
*
* This class is for advanced usage and reflects the underlying API directly.
*/
+@BetaApi
@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
+@Generated("by gapic-generator-java")
public abstract class TranscoderServiceStub implements BackgroundResource {
public UnaryCallablegoogleapis/java-shared-dependencies
### [`v0.18.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#0180-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0171v0180-2021-01-13)
[Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.17.1...v0.18.0)
##### Features
- add commons-codec to dependencyManagement ([#251](https://www.github.com/googleapis/java-shared-dependencies/issues/251)) ([4ee990d](https://www.github.com/googleapis/java-shared-dependencies/commit/4ee990d79c9207c81155f6ee9279308a2d4d0f9d))
##### Dependencies
- update dependency com.google.errorprone:error_prone_annotations to v2.5.0 ([#247](https://www.github.com/googleapis/java-shared-dependencies/issues/247)) ([37c0861](https://www.github.com/googleapis/java-shared-dependencies/commit/37c0861cfb89f13a0682c98067c633b13b30b827))
##### [0.17.1](https://www.github.com/googleapis/java-shared-dependencies/compare/0.17.0...v0.17.1) (2021-01-12)
##### Dependencies
- update dependency com.fasterxml.jackson:jackson-bom to v2.12.1 ([#245](https://www.github.com/googleapis/java-shared-dependencies/issues/245)) ([5ffc8a0](https://www.github.com/googleapis/java-shared-dependencies/commit/5ffc8a0d173ea0222ac9610ece0ac2aeb1d17f27))
### [`v0.17.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#0171-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0170v0171-2021-01-12)
[Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.17.0...v0.17.1)
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: * + *
{@code + * 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(). @@ -153,6 +161,16 @@ public TranscoderServiceStub getStub() { /** * Creates a job in the specified region. * + *
Sample code: + * + *
{@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. @@ -171,6 +189,16 @@ public final Job createJob(LocationName parent, Job job) { /** * Creates a job in the specified region. * + *
Sample code: + * + *
{@code + * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * 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. @@ -185,6 +213,19 @@ public final Job createJob(String parent, Job job) { /** * Creates a job in the specified region. * + *
Sample code: + * + *
{@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); + * } + * }+ * * @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 */ @@ -197,6 +238,19 @@ public final Job createJob(CreateJobRequest request) { * Creates a job in the specified region. * *
Sample code: + * + *
{@code + * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { + * CreateJobRequest request = + * CreateJobRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setJob(Job.newBuilder().build()) + * .build(); + * ApiFuture*/ public final UnaryCallablefuture = transcoderServiceClient.createJobCallable().futureCall(request); + * // Do something. + * Job response = future.get(); + * } + * }
Sample code: + * + *
{@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 */ @@ -219,6 +284,17 @@ public final ListJobsPagedResponse listJobs(LocationName parent) { /** * Lists jobs in the specified region. * + *
Sample code: + * + *
{@code + * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * 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 */ @@ -231,6 +307,22 @@ public final ListJobsPagedResponse listJobs(String parent) { /** * Lists jobs in the specified region. * + *
Sample code: + * + *
{@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); + * } + * } + * }+ * * @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 */ @@ -243,6 +335,22 @@ public final ListJobsPagedResponse listJobs(ListJobsRequest request) { * Lists jobs in the specified region. * *
Sample code: + * + *
{@code + * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { + * ListJobsRequest request = + * ListJobsRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture*/ public final UnaryCallablefuture = transcoderServiceClient.listJobsPagedCallable().futureCall(request); + * // Do something. + * for (Job element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
Sample code: + * + *
{@code + * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { + * 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; + * } + * } + * } + * }*/ public final UnaryCallable
Sample code: + * + *
{@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 @@ -276,6 +410,15 @@ public final Job getJob(JobName name) { /** * Returns the job data. * + *
Sample code: + * + *
{@code + * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { + * String name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString(); + * 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 @@ -289,6 +432,18 @@ public final Job getJob(String name) { /** * Returns the job data. * + *
Sample code: + * + *
{@code + * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { + * GetJobRequest request = + * GetJobRequest.newBuilder() + * .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").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 */ @@ -301,6 +456,18 @@ public final Job getJob(GetJobRequest request) { * Returns the job data. * *
Sample code: + * + *
{@code + * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { + * GetJobRequest request = + * GetJobRequest.newBuilder() + * .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + * .build(); + * ApiFuture*/ public final UnaryCallablefuture = transcoderServiceClient.getJobCallable().futureCall(request); + * // Do something. + * Job response = future.get(); + * } + * }
Sample code: + * + *
{@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 @@ -324,6 +500,15 @@ public final void deleteJob(JobName name) { /** * Deletes a job. * + *
Sample code: + * + *
{@code + * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { + * String name = JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString(); + * 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 @@ -337,6 +522,18 @@ public final void deleteJob(String name) { /** * Deletes a job. * + *
Sample code: + * + *
{@code + * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { + * DeleteJobRequest request = + * DeleteJobRequest.newBuilder() + * .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").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 */ @@ -349,6 +546,18 @@ public final void deleteJob(DeleteJobRequest request) { * Deletes a job. * *
Sample code: + * + *
{@code + * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { + * DeleteJobRequest request = + * DeleteJobRequest.newBuilder() + * .setName(JobName.of("[PROJECT]", "[LOCATION]", "[JOB]").toString()) + * .build(); + * ApiFuture*/ public final UnaryCallablefuture = transcoderServiceClient.deleteJobCallable().futureCall(request); + * // Do something. + * future.get(); + * } + * }
Sample code: + * + *
{@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); + * } + * }+ * * @param parent Required. The parent location to create this job template. Format: * `projects/{project}/locations/{location}` * @param jobTemplate Required. Parameters for creating job template. @@ -382,6 +603,18 @@ public final JobTemplate createJobTemplate( /** * Creates a job template in the specified region. * + *
Sample code: + * + *
{@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); + * } + * }+ * * @param parent Required. The parent location to create this job template. Format: * `projects/{project}/locations/{location}` * @param jobTemplate Required. Parameters for creating job template. @@ -406,6 +639,20 @@ public final JobTemplate createJobTemplate( /** * Creates a job template in the specified region. * + *
Sample code: + * + *
{@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); + * } + * }+ * * @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 */ @@ -418,6 +665,21 @@ public final JobTemplate createJobTemplate(CreateJobTemplateRequest request) { * Creates a job template in the specified region. * *
Sample code: + * + *
{@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*/ public final UnaryCallablefuture = + * transcoderServiceClient.createJobTemplateCallable().futureCall(request); + * // Do something. + * JobTemplate response = future.get(); + * } + * }
Sample code: + * + *
{@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 @@ -443,6 +716,17 @@ public final ListJobTemplatesPagedResponse listJobTemplates(LocationName parent) /** * Lists job templates in the specified region. * + *
Sample code: + * + *
{@code + * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * 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 @@ -457,6 +741,22 @@ public final ListJobTemplatesPagedResponse listJobTemplates(String parent) { /** * Lists job templates in the specified region. * + *
Sample code: + * + *
{@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); + * } + * } + * }+ * * @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 */ @@ -469,6 +769,23 @@ public final ListJobTemplatesPagedResponse listJobTemplates(ListJobTemplatesRequ * Lists job templates in the specified region. * *
Sample code: + * + *
{@code + * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { + * ListJobTemplatesRequest request = + * ListJobTemplatesRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture*/ public final UnaryCallablefuture = + * transcoderServiceClient.listJobTemplatesPagedCallable().futureCall(request); + * // Do something. + * for (JobTemplate element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
Sample code: + * + *
{@code + * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { + * 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; + * } + * } + * } + * }*/ public final UnaryCallable
Sample code: + * + *
{@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 @@ -504,6 +848,15 @@ public final JobTemplate getJobTemplate(JobTemplateName name) { /** * Returns the job template data. * + *
Sample code: + * + *
{@code + * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { + * String name = JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]").toString(); + * 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 @@ -517,6 +870,18 @@ public final JobTemplate getJobTemplate(String name) { /** * Returns the job template data. * + *
Sample code: + * + *
{@code + * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { + * GetJobTemplateRequest request = + * GetJobTemplateRequest.newBuilder() + * .setName(JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]").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 */ @@ -529,6 +894,19 @@ public final JobTemplate getJobTemplate(GetJobTemplateRequest request) { * Returns the job template data. * *
Sample code: + * + *
{@code + * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { + * GetJobTemplateRequest request = + * GetJobTemplateRequest.newBuilder() + * .setName(JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]").toString()) + * .build(); + * ApiFuture*/ public final UnaryCallablefuture = + * transcoderServiceClient.getJobTemplateCallable().futureCall(request); + * // Do something. + * JobTemplate response = future.get(); + * } + * }
Sample code: + * + *
{@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 @@ -554,6 +941,15 @@ public final void deleteJobTemplate(JobTemplateName name) { /** * Deletes a job template. * + *
Sample code: + * + *
{@code + * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { + * String name = JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]").toString(); + * 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 @@ -567,6 +963,18 @@ public final void deleteJobTemplate(String name) { /** * Deletes a job template. * + *
Sample code: + * + *
{@code + * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { + * DeleteJobTemplateRequest request = + * DeleteJobTemplateRequest.newBuilder() + * .setName(JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]").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 */ @@ -579,6 +987,19 @@ public final void deleteJobTemplate(DeleteJobTemplateRequest request) { * Deletes a job template. * *
Sample code: + * + *
{@code + * try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) { + * DeleteJobTemplateRequest request = + * DeleteJobTemplateRequest.newBuilder() + * .setName(JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]").toString()) + * .build(); + * ApiFuture*/ public final UnaryCallablefuture = + * transcoderServiceClient.deleteJobTemplateCallable().futureCall(request); + * // Do something. + * future.get(); + * } + * }
Sample for TranscoderServiceClient: + * + *
{@code + * 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-java") package com.google.cloud.video.transcoder.v1beta1; diff --git a/synth.metadata b/synth.metadata index 6f023020..8ce2a6d4 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-video-transcoder.git", - "sha": "0f63e6c8415ab8b5c45166f9818c38c3a20a084f" + "sha": "10f9faba4198e698f35ae9d6e0ef02f673037dce" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "91e206bcfeaf8948ea03fe3cb1b7616108496cd3", - "internalRef": "350949863" + "sha": "8d8c008e56f1af31d57f75561e0f1848ffb29eeb", + "internalRef": "356341083" } }, { From 789c3eded68a7c363369368be4b8b303cd445f9d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot