diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 4201012d..3f7432a5 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: - digest: sha256:2e88a4a7fe3377cf8de1fa5982134f6ef2768980fa2f94edcc1ba6604ae2e7ca image: gcr.io/repo-automation-bots/owlbot-java:latest + digest: sha256:12cbdc4f137152a1a8b83f50ebc1a4098be0d3baff78b46efaec306f7cfafd13 diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 8bf2504c..d23ee485 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-video-transcoder.git", - "sha": "7ece9cc87c30169c1c5952271a8c18cd3cfd0bd1" + "sha": "dee9115c1e87a36e123fc72433e5d1a32796e08c" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "0a071b3460344886297a304253bf924aa68ddb7e" + "sha": "3d32990b6f4b57be77455e3ca89e6e21cd0c06b3" } } ] diff --git a/.github/release-please.yml b/.github/release-please.yml index 8ca7f9ca..7bf58076 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -1,3 +1,8 @@ bumpMinorPreMajor: true handleGHRelease: true releaseType: java-yoshi +branches: + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-yoshi + branch: java7 diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 6bddd18e..ffd39f6f 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -1,49 +1,44 @@ - -# Whether or not rebase-merging is enabled on this repository. -# Defaults to `true` rebaseMergeAllowed: false - -# Whether or not squash-merging is enabled on this repository. -# Defaults to `true` squashMergeAllowed: true - -# Whether or not PRs are merged with a merge commit on this repository. -# Defaults to `false` mergeCommitAllowed: false - -# Rules for master branch protection branchProtectionRules: -# Identifies the protection rule pattern. Name of the branch to be protected. -# Defaults to `master` -- pattern: master - # Can admins overwrite branch protection. - # Defaults to `true` - isAdminEnforced: true - # Number of approving reviews required to update matching branches. - # Defaults to `1` - requiredApprovingReviewCount: 1 - # Are reviews from code owners required to update matching branches. - # Defaults to `false` - requiresCodeOwnerReviews: true - # Require up to date branches - requiresStrictStatusChecks: false - # List of required status check contexts that must pass for commits to be accepted to matching branches. - requiredStatusCheckContexts: - - "dependencies (8)" - - "dependencies (11)" - - "linkage-monitor" - - "lint" - - "clirr" - - "units (7)" - - "units (8)" - - "units (11)" - - "Kokoro - Test: Integration" - - "cla/google" -# List of explicit permissions to add (additive only) + - pattern: master + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (8) + - dependencies (11) + - linkage-monitor + - lint + - clirr + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google + - OwlBot Post Processor + - pattern: java7 + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (8) + - dependencies (11) + - linkage-monitor + - lint + - clirr + - units (7) + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google + - OwlBot Post Processor permissionRules: -- team: yoshi-admins - permission: admin -- team: yoshi-java-admins - permission: admin -- team: yoshi-java - permission: push \ No newline at end of file + - team: yoshi-admins + permission: admin + - team: yoshi-java-admins + permission: admin + - team: yoshi-java + permission: push diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0195b32f..65ae6ecd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [7, 8, 11] + java: [8, 11] steps: - uses: actions/checkout@v2 - uses: actions/setup-java@v1 diff --git a/CHANGELOG.md b/CHANGELOG.md index d55c5a49..80a51ad9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## [0.3.0](https://www.github.com/googleapis/java-video-transcoder/compare/v0.2.0...v0.3.0) (2021-08-10) + + +### ⚠ BREAKING CHANGES + +* release gapic-generator-java v2.0.0 (#199) + +### Features + +* Add video cropping feature ([#205](https://www.github.com/googleapis/java-video-transcoder/issues/205)) ([667278c](https://www.github.com/googleapis/java-video-transcoder/commit/667278c93ff8d44ae4fa429dac61a4f9f6fc9ccc)) +* release gapic-generator-java v2.0.0 ([#199](https://www.github.com/googleapis/java-video-transcoder/issues/199)) ([6300e88](https://www.github.com/googleapis/java-video-transcoder/commit/6300e88f8c85ed6093a75f1c59e4140d2099ce59)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2 ([#200](https://www.github.com/googleapis/java-video-transcoder/issues/200)) ([d926c90](https://www.github.com/googleapis/java-video-transcoder/commit/d926c9046c05e7cc232802c2e44b51d8b55ac802)) + ## [0.2.0](https://www.github.com/googleapis/java-video-transcoder/compare/v0.1.9...v0.2.0) (2021-07-12) diff --git a/README.md b/README.md index 95ac4819..7059c84a 100644 --- a/README.md +++ b/README.md @@ -11,33 +11,41 @@ Java idiomatic client for [Video Transcoder][product-docs]. > Note: This client is a work-in-progress, and may occasionally > make backwards-incompatible changes. + ## Quickstart If you are using Maven, add this to your pom.xml file: + ```xml com.google.cloud google-cloud-video-transcoder - 0.1.9 + 0.2.0 ``` If you are using Gradle without BOM, add this to your dependencies + ```Groovy -compile 'com.google.cloud:google-cloud-video-transcoder:0.1.9' +compile 'com.google.cloud:google-cloud-video-transcoder:0.2.0' ``` If you are using SBT, add this to your dependencies + ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "0.1.9" +libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "0.2.0" ``` ## Authentication See the [Authentication][authentication] section in the base directory's README. +## Authorization + +The client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired Video Transcoder APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the Video Transcoder API calls. + ## Getting Started ### Prerequisites @@ -74,10 +82,50 @@ To get help, follow the instructions in the [shared Troubleshooting document][tr Video Transcoder uses gRPC for the transport layer. -## Java Versions +## Supported Java Versions Java 7 or above is required for using this client. +Google's Java client libraries, +[Google Cloud Client Libraries][cloudlibs] +and +[Google Cloud API Libraries][apilibs], +follow the +[Oracle Java SE support roadmap][oracle] +(see the Oracle Java SE Product Releases section). + +### For new development + +In general, new feature development occurs with support for the lowest Java +LTS version covered by Oracle's Premier Support (which typically lasts 5 years +from initial General Availability). If the minimum required JVM for a given +library is changed, it is accompanied by a [semver][semver] major release. + +Java 11 and (in September 2021) Java 17 are the best choices for new +development. + +### Keeping production systems current + +Google tests its client libraries with all current LTS versions covered by +Oracle's Extended Support (which typically lasts 8 years from initial +General Availability). + +#### Legacy support + +Google's client libraries support legacy versions of Java runtimes with long +term stable libraries that don't receive feature updates on a best efforts basis +as it may not be possible to backport all patches. + +Google provides updates on a best efforts basis to apps that continue to use +Java 7, though apps might need to upgrade to current versions of the library +that supports their JVM. + +#### Where to find specific information + +The latest versions and the supported Java versions are identified on +the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` +and on [google-cloud-java][g-c-j]. + ## Versioning @@ -87,6 +135,7 @@ This library follows [Semantic Versioning](http://semver.org/). It is currently in major version zero (``0.y.z``), which means that anything may change at any time and the public API should not be considered stable. + ## Contributing @@ -98,6 +147,7 @@ Please note that this project is released with a Contributor Code of Conduct. By this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more information. + ## License Apache 2.0 - See [LICENSE][license] for more information. @@ -130,6 +180,9 @@ Java is a registered trademark of Oracle and/or its affiliates. [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-transcoder.svg [maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-video-transcoder&core=gav [authentication]: https://github.com/googleapis/google-cloud-java#authentication +[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes +[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles +[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy [developer-console]: https://console.developers.google.com/ [create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects [cloud-sdk]: https://cloud.google.com/sdk/ @@ -141,3 +194,9 @@ Java is a registered trademark of Oracle and/or its affiliates. [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=video-transcoder.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png + +[semver]: https://semver.org/ +[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained +[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries +[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html +[g-c-j]: http://github.com/googleapis/google-cloud-java diff --git a/google-cloud-video-transcoder-bom/pom.xml b/google-cloud-video-transcoder-bom/pom.xml index 9305d8ba..5edfbcee 100644 --- a/google-cloud-video-transcoder-bom/pom.xml +++ b/google-cloud-video-transcoder-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-video-transcoder-bom - 0.2.0 + 0.3.0 pom com.google.cloud google-cloud-shared-config - 0.12.0 + 1.0.0 Google Video Transcoder BOM @@ -57,27 +57,27 @@ com.google.cloud google-cloud-video-transcoder - 0.2.0 + 0.3.0 com.google.api.grpc grpc-google-cloud-video-transcoder-v1beta1 - 0.2.0 + 0.3.0 com.google.api.grpc grpc-google-cloud-video-transcoder-v1 - 0.2.0 + 0.3.0 com.google.api.grpc proto-google-cloud-video-transcoder-v1beta1 - 0.2.0 + 0.3.0 com.google.api.grpc proto-google-cloud-video-transcoder-v1 - 0.2.0 + 0.3.0 diff --git a/google-cloud-video-transcoder/pom.xml b/google-cloud-video-transcoder/pom.xml index d5fd2592..5cc7f523 100644 --- a/google-cloud-video-transcoder/pom.xml +++ b/google-cloud-video-transcoder/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-video-transcoder - 0.2.0 + 0.3.0 jar Google Video Transcoder https://github.com/googleapis/java-video-transcoder @@ -11,7 +11,7 @@ com.google.cloud google-cloud-video-transcoder-parent - 0.2.0 + 0.3.0 google-cloud-video-transcoder diff --git a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceClient.java b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceClient.java index 37f95d54..1f8b678d 100644 --- a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceClient.java +++ b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.video.transcoder.v1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -1068,14 +1067,7 @@ public static ApiFuture createAsync( ApiFuture futurePage = ListJobsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListJobsPagedResponse apply(ListJobsPage input) { - return new ListJobsPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); + futurePage, input -> new ListJobsPagedResponse(input), MoreExecutors.directExecutor()); } private ListJobsPagedResponse(ListJobsPage page) { @@ -1143,12 +1135,7 @@ public static ApiFuture createAsync( ListJobTemplatesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListJobTemplatesPagedResponse apply(ListJobTemplatesPage input) { - return new ListJobTemplatesPagedResponse(input); - } - }, + input -> new ListJobTemplatesPagedResponse(input), MoreExecutors.directExecutor()); } diff --git a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceSettings.java b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceSettings.java index 00f0a747..eb6546c1 100644 --- a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceSettings.java +++ b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/TranscoderServiceSettings.java @@ -199,14 +199,13 @@ public TranscoderServiceStubSettings.Builder getStubSettingsBuilder() { return ((TranscoderServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/GrpcTranscoderServiceStub.java b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/GrpcTranscoderServiceStub.java index 957683a0..780124b8 100644 --- a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/GrpcTranscoderServiceStub.java +++ b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/GrpcTranscoderServiceStub.java @@ -24,7 +24,6 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.video.transcoder.v1.CreateJobRequest; import com.google.cloud.video.transcoder.v1.CreateJobTemplateRequest; @@ -44,7 +43,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -195,65 +193,50 @@ protected GrpcTranscoderServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings listJobsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listJobsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListJobsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings deleteJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings createJobTemplateTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createJobTemplateMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateJobTemplateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -261,39 +244,30 @@ public Map extract(CreateJobTemplateRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listJobTemplatesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListJobTemplatesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getJobTemplateTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getJobTemplateMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetJobTemplateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings deleteJobTemplateTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteJobTemplateMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteJobTemplateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); @@ -394,7 +368,13 @@ public UnaryCallable deleteJobTemplateCallable( @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/TranscoderServiceStubSettings.java b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/TranscoderServiceStubSettings.java index c180567a..ad83962d 100644 --- a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/TranscoderServiceStubSettings.java +++ b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/TranscoderServiceStubSettings.java @@ -507,14 +507,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceClient.java b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceClient.java index 614787f4..03451ad4 100644 --- a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceClient.java +++ b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceClient.java @@ -16,7 +16,6 @@ package com.google.cloud.video.transcoder.v1beta1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -102,8 +101,11 @@ * } * *

Please refer to the GitHub repository's samples for more quickstart code snippets. + * + * @deprecated This class is deprecated and will be removed in the next major version update. */ @BetaApi +@Deprecated @Generated("by gapic-generator-java") public class TranscoderServiceClient implements BackgroundResource { private final TranscoderServiceSettings settings; @@ -1057,14 +1059,7 @@ public static ApiFuture createAsync( ApiFuture futurePage = ListJobsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListJobsPagedResponse apply(ListJobsPage input) { - return new ListJobsPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); + futurePage, input -> new ListJobsPagedResponse(input), MoreExecutors.directExecutor()); } private ListJobsPagedResponse(ListJobsPage page) { @@ -1132,12 +1127,7 @@ public static ApiFuture createAsync( ListJobTemplatesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListJobTemplatesPagedResponse apply(ListJobTemplatesPage input) { - return new ListJobTemplatesPagedResponse(input); - } - }, + input -> new ListJobTemplatesPagedResponse(input), MoreExecutors.directExecutor()); } 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 ad1c04a8..963a6ed6 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 @@ -67,8 +67,11 @@ * .build()); * TranscoderServiceSettings transcoderServiceSettings = transcoderServiceSettingsBuilder.build(); * } + * + * @deprecated This class is deprecated and will be removed in the next major version update. */ @BetaApi +@Deprecated @Generated("by gapic-generator-java") public class TranscoderServiceSettings extends ClientSettings { @@ -200,14 +203,13 @@ public TranscoderServiceStubSettings.Builder getStubSettingsBuilder() { return ((TranscoderServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; 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 7b0aaec7..36948bf6 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 @@ -41,8 +41,11 @@ * gRPC callable factory implementation for the TranscoderService service API. * *

This class is for advanced usage. + * + * @deprecated This class is deprecated and will be removed in the next major version update. */ @BetaApi +@Deprecated @Generated("by gapic-generator-java") public class GrpcTranscoderServiceCallableFactory implements GrpcStubCallableFactory { 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 8bf54fb7..4bc02923 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 @@ -25,7 +25,6 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.video.transcoder.v1beta1.CreateJobRequest; import com.google.cloud.video.transcoder.v1beta1.CreateJobTemplateRequest; @@ -45,7 +44,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -54,8 +52,11 @@ * gRPC stub implementation for the TranscoderService service API. * *

This class is for advanced usage and reflects the underlying API directly. + * + * @deprecated This class is deprecated and will be removed in the next major version update. */ @BetaApi +@Deprecated @Generated("by gapic-generator-java") public class GrpcTranscoderServiceStub extends TranscoderServiceStub { private static final MethodDescriptor createJobMethodDescriptor = @@ -197,65 +198,50 @@ protected GrpcTranscoderServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings listJobsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listJobsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListJobsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings deleteJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteJobMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteJobRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings createJobTemplateTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createJobTemplateMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateJobTemplateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -263,39 +249,30 @@ public Map extract(CreateJobTemplateRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(listJobTemplatesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListJobTemplatesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getJobTemplateTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getJobTemplateMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetJobTemplateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings deleteJobTemplateTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteJobTemplateMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteJobTemplateRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); @@ -396,7 +373,13 @@ public UnaryCallable deleteJobTemplateCallable( @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/TranscoderServiceStub.java b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/TranscoderServiceStub.java index ebaf896a..cada3df2 100644 --- a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/TranscoderServiceStub.java +++ b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/TranscoderServiceStub.java @@ -42,8 +42,11 @@ * Base stub class for the TranscoderService service API. * *

This class is for advanced usage and reflects the underlying API directly. + * + * @deprecated This class is deprecated and will be removed in the next major version update. */ @BetaApi +@Deprecated @Generated("by gapic-generator-java") public abstract class TranscoderServiceStub implements BackgroundResource { diff --git a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/TranscoderServiceStubSettings.java b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/TranscoderServiceStubSettings.java index 77d0292d..b6d7d951 100644 --- a/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/TranscoderServiceStubSettings.java +++ b/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/TranscoderServiceStubSettings.java @@ -95,8 +95,11 @@ * TranscoderServiceStubSettings transcoderServiceSettings = * transcoderServiceSettingsBuilder.build(); * } + * + * @deprecated This class is deprecated and will be removed in the next major version update. */ @BetaApi +@Deprecated @Generated("by gapic-generator-java") public class TranscoderServiceStubSettings extends StubSettings { /** The default scopes of the service. */ @@ -508,14 +511,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-video-transcoder/src/test/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceClientTest.java b/google-cloud-video-transcoder/src/test/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceClientTest.java index 7760d20c..b1cc834d 100644 --- a/google-cloud-video-transcoder/src/test/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceClientTest.java +++ b/google-cloud-video-transcoder/src/test/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceClientTest.java @@ -97,6 +97,7 @@ public void createJobTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) + .setTtlAfterCompletionDays(107576420) .build(); mockTranscoderService.addResponse(expectedResponse); @@ -148,6 +149,7 @@ public void createJobTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) + .setTtlAfterCompletionDays(107576420) .build(); mockTranscoderService.addResponse(expectedResponse); @@ -287,6 +289,7 @@ public void getJobTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) + .setTtlAfterCompletionDays(107576420) .build(); mockTranscoderService.addResponse(expectedResponse); @@ -335,6 +338,7 @@ public void getJobTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) + .setTtlAfterCompletionDays(107576420) .build(); mockTranscoderService.addResponse(expectedResponse); diff --git a/grpc-google-cloud-video-transcoder-v1/pom.xml b/grpc-google-cloud-video-transcoder-v1/pom.xml index 93a2455b..8ec3668c 100644 --- a/grpc-google-cloud-video-transcoder-v1/pom.xml +++ b/grpc-google-cloud-video-transcoder-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-transcoder-v1 - 0.2.0 + 0.3.0 grpc-google-cloud-video-transcoder-v1 GRPC library for google-cloud-video-transcoder com.google.cloud google-cloud-video-transcoder-parent - 0.2.0 + 0.3.0 diff --git a/grpc-google-cloud-video-transcoder-v1beta1/pom.xml b/grpc-google-cloud-video-transcoder-v1beta1/pom.xml index f285df37..93ca1c6d 100644 --- a/grpc-google-cloud-video-transcoder-v1beta1/pom.xml +++ b/grpc-google-cloud-video-transcoder-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-transcoder-v1beta1 - 0.2.0 + 0.3.0 grpc-google-cloud-video-transcoder-v1beta1 GRPC library for google-cloud-video-transcoder com.google.cloud google-cloud-video-transcoder-parent - 0.2.0 + 0.3.0 diff --git a/grpc-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceGrpc.java b/grpc-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceGrpc.java index 62a501d6..a0900742 100644 --- a/grpc-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceGrpc.java +++ b/grpc-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceGrpc.java @@ -32,6 +32,7 @@ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/video/transcoder/v1beta1/services.proto") +@java.lang.Deprecated public final class TranscoderServiceGrpc { private TranscoderServiceGrpc() {} @@ -463,6 +464,7 @@ public TranscoderServiceFutureStub newStub( * concatenation, and digital ad-stitch ready content generation. * */ + @java.lang.Deprecated public abstract static class TranscoderServiceImplBase implements io.grpc.BindableService { /** @@ -651,6 +653,7 @@ public final io.grpc.ServerServiceDefinition bindService() { * concatenation, and digital ad-stitch ready content generation. * */ + @java.lang.Deprecated public static final class TranscoderServiceStub extends io.grpc.stub.AbstractAsyncStub { private TranscoderServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { @@ -803,6 +806,7 @@ public void deleteJobTemplate( * concatenation, and digital ad-stitch ready content generation. * */ + @java.lang.Deprecated public static final class TranscoderServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private TranscoderServiceBlockingStub( @@ -933,6 +937,7 @@ public com.google.protobuf.Empty deleteJobTemplate( * concatenation, and digital ad-stitch ready content generation. * */ + @java.lang.Deprecated public static final class TranscoderServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private TranscoderServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { diff --git a/pom.xml b/pom.xml index 4f64326a..343161a5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-video-transcoder-parent pom - 0.2.0 + 0.3.0 Google Video Transcoder Parent https://github.com/googleapis/java- @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.12.0 + 1.0.0 @@ -61,33 +61,33 @@ com.google.cloud google-cloud-video-transcoder - 0.2.0 + 0.3.0 com.google.api.grpc proto-google-cloud-video-transcoder-v1 - 0.2.0 + 0.3.0 com.google.api.grpc grpc-google-cloud-video-transcoder-v1 - 0.2.0 + 0.3.0 com.google.api.grpc proto-google-cloud-video-transcoder-v1beta1 - 0.2.0 + 0.3.0 com.google.api.grpc grpc-google-cloud-video-transcoder-v1beta1 - 0.2.0 + 0.3.0 com.google.cloud google-cloud-shared-dependencies - 1.4.0 + 2.0.0 pom import diff --git a/proto-google-cloud-video-transcoder-v1/pom.xml b/proto-google-cloud-video-transcoder-v1/pom.xml index 073cb6e5..38463d06 100644 --- a/proto-google-cloud-video-transcoder-v1/pom.xml +++ b/proto-google-cloud-video-transcoder-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-transcoder-v1 - 0.2.0 + 0.3.0 proto-google-cloud-video-transcoder-v1 Proto library for google-cloud-video-transcoder com.google.cloud google-cloud-video-transcoder-parent - 0.2.0 + 0.3.0 diff --git a/proto-google-cloud-video-transcoder-v1beta1/clirr-ignored-differences.xml b/proto-google-cloud-video-transcoder-v1beta1/clirr-ignored-differences.xml index 30ed4411..313e1f69 100644 --- a/proto-google-cloud-video-transcoder-v1beta1/clirr-ignored-differences.xml +++ b/proto-google-cloud-video-transcoder-v1beta1/clirr-ignored-differences.xml @@ -4,6 +4,16 @@ 7012 com/google/cloud/video/transcoder/v1beta1/*OrBuilder - * has*(*) + * get*(*) + + + 7012 + com/google/cloud/video/transcoder/v1beta1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/video/transcoder/v1beta1/*OrBuilder + boolean has*(*) diff --git a/proto-google-cloud-video-transcoder-v1beta1/pom.xml b/proto-google-cloud-video-transcoder-v1beta1/pom.xml index 4f92429c..a6f5463c 100644 --- a/proto-google-cloud-video-transcoder-v1beta1/pom.xml +++ b/proto-google-cloud-video-transcoder-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-transcoder-v1beta1 - 0.2.0 + 0.3.0 proto-google-cloud-video-transcoder-v1beta1 Proto library for google-cloud-video-transcoder com.google.cloud google-cloud-video-transcoder-parent - 0.2.0 + 0.3.0 diff --git a/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/Input.java b/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/Input.java index 6cca5052..4c83aa4d 100644 --- a/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/Input.java +++ b/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/Input.java @@ -194,9 +194,9 @@ public com.google.protobuf.ByteString getKeyBytes() { * * *

-   * URI of the media. It must be stored in Cloud Storage. Example
-   * `gs://bucket/inputs/file.mp4`.
-   * If empty the value will be populated from `Job.input_uri`.
+   * URI of the media. Input files must be at least 5 seconds in duration and
+   * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
+   * If empty, the value will be populated from `Job.input_uri`.
    * 
* * string uri = 2; @@ -219,9 +219,9 @@ public java.lang.String getUri() { * * *
-   * URI of the media. It must be stored in Cloud Storage. Example
-   * `gs://bucket/inputs/file.mp4`.
-   * If empty the value will be populated from `Job.input_uri`.
+   * URI of the media. Input files must be at least 5 seconds in duration and
+   * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
+   * If empty, the value will be populated from `Job.input_uri`.
    * 
* * string uri = 2; @@ -770,9 +770,9 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) { * * *
-     * URI of the media. It must be stored in Cloud Storage. Example
-     * `gs://bucket/inputs/file.mp4`.
-     * If empty the value will be populated from `Job.input_uri`.
+     * URI of the media. Input files must be at least 5 seconds in duration and
+     * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
+     * If empty, the value will be populated from `Job.input_uri`.
      * 
* * string uri = 2; @@ -794,9 +794,9 @@ public java.lang.String getUri() { * * *
-     * URI of the media. It must be stored in Cloud Storage. Example
-     * `gs://bucket/inputs/file.mp4`.
-     * If empty the value will be populated from `Job.input_uri`.
+     * URI of the media. Input files must be at least 5 seconds in duration and
+     * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
+     * If empty, the value will be populated from `Job.input_uri`.
      * 
* * string uri = 2; @@ -818,9 +818,9 @@ public com.google.protobuf.ByteString getUriBytes() { * * *
-     * URI of the media. It must be stored in Cloud Storage. Example
-     * `gs://bucket/inputs/file.mp4`.
-     * If empty the value will be populated from `Job.input_uri`.
+     * URI of the media. Input files must be at least 5 seconds in duration and
+     * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
+     * If empty, the value will be populated from `Job.input_uri`.
      * 
* * string uri = 2; @@ -841,9 +841,9 @@ public Builder setUri(java.lang.String value) { * * *
-     * URI of the media. It must be stored in Cloud Storage. Example
-     * `gs://bucket/inputs/file.mp4`.
-     * If empty the value will be populated from `Job.input_uri`.
+     * URI of the media. Input files must be at least 5 seconds in duration and
+     * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
+     * If empty, the value will be populated from `Job.input_uri`.
      * 
* * string uri = 2; @@ -860,9 +860,9 @@ public Builder clearUri() { * * *
-     * URI of the media. It must be stored in Cloud Storage. Example
-     * `gs://bucket/inputs/file.mp4`.
-     * If empty the value will be populated from `Job.input_uri`.
+     * URI of the media. Input files must be at least 5 seconds in duration and
+     * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
+     * If empty, the value will be populated from `Job.input_uri`.
      * 
* * string uri = 2; diff --git a/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/InputOrBuilder.java b/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/InputOrBuilder.java index 10b8c388..53891dac 100644 --- a/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/InputOrBuilder.java +++ b/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/InputOrBuilder.java @@ -54,9 +54,9 @@ public interface InputOrBuilder * * *
-   * URI of the media. It must be stored in Cloud Storage. Example
-   * `gs://bucket/inputs/file.mp4`.
-   * If empty the value will be populated from `Job.input_uri`.
+   * URI of the media. Input files must be at least 5 seconds in duration and
+   * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
+   * If empty, the value will be populated from `Job.input_uri`.
    * 
* * string uri = 2; @@ -68,9 +68,9 @@ public interface InputOrBuilder * * *
-   * URI of the media. It must be stored in Cloud Storage. Example
-   * `gs://bucket/inputs/file.mp4`.
-   * If empty the value will be populated from `Job.input_uri`.
+   * URI of the media. Input files must be at least 5 seconds in duration and
+   * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
+   * If empty, the value will be populated from `Job.input_uri`.
    * 
* * string uri = 2; diff --git a/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/Job.java b/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/Job.java index e86fa21a..24d3bf10 100644 --- a/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/Job.java +++ b/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/Job.java @@ -233,6 +233,11 @@ private Job( endTime_ = subBuilder.buildPartial(); } + break; + } + case 120: + { + ttlAfterCompletionDays_ = input.readInt32(); break; } default: @@ -486,8 +491,8 @@ public interface OriginUriOrBuilder * * *
-     * HLS master manifest URI. If multiple HLS master manifests are created
-     * only first one is listed.
+     * HLS manifest URI per https://tools.ietf.org/html/rfc8216#section-4.3.4.
+     * If multiple HLS manifests are created, only the first one is listed.
      * 
* * string hls = 1; @@ -499,8 +504,8 @@ public interface OriginUriOrBuilder * * *
-     * HLS master manifest URI. If multiple HLS master manifests are created
-     * only first one is listed.
+     * HLS manifest URI per https://tools.ietf.org/html/rfc8216#section-4.3.4.
+     * If multiple HLS manifests are created, only the first one is listed.
      * 
* * string hls = 1; @@ -643,8 +648,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * HLS master manifest URI. If multiple HLS master manifests are created
-     * only first one is listed.
+     * HLS manifest URI per https://tools.ietf.org/html/rfc8216#section-4.3.4.
+     * If multiple HLS manifests are created, only the first one is listed.
      * 
* * string hls = 1; @@ -667,8 +672,8 @@ public java.lang.String getHls() { * * *
-     * HLS master manifest URI. If multiple HLS master manifests are created
-     * only first one is listed.
+     * HLS manifest URI per https://tools.ietf.org/html/rfc8216#section-4.3.4.
+     * If multiple HLS manifests are created, only the first one is listed.
      * 
* * string hls = 1; @@ -1083,8 +1088,8 @@ public Builder mergeFrom( * * *
-       * HLS master manifest URI. If multiple HLS master manifests are created
-       * only first one is listed.
+       * HLS manifest URI per https://tools.ietf.org/html/rfc8216#section-4.3.4.
+       * If multiple HLS manifests are created, only the first one is listed.
        * 
* * string hls = 1; @@ -1106,8 +1111,8 @@ public java.lang.String getHls() { * * *
-       * HLS master manifest URI. If multiple HLS master manifests are created
-       * only first one is listed.
+       * HLS manifest URI per https://tools.ietf.org/html/rfc8216#section-4.3.4.
+       * If multiple HLS manifests are created, only the first one is listed.
        * 
* * string hls = 1; @@ -1129,8 +1134,8 @@ public com.google.protobuf.ByteString getHlsBytes() { * * *
-       * HLS master manifest URI. If multiple HLS master manifests are created
-       * only first one is listed.
+       * HLS manifest URI per https://tools.ietf.org/html/rfc8216#section-4.3.4.
+       * If multiple HLS manifests are created, only the first one is listed.
        * 
* * string hls = 1; @@ -1151,8 +1156,8 @@ public Builder setHls(java.lang.String value) { * * *
-       * HLS master manifest URI. If multiple HLS master manifests are created
-       * only first one is listed.
+       * HLS manifest URI per https://tools.ietf.org/html/rfc8216#section-4.3.4.
+       * If multiple HLS manifests are created, only the first one is listed.
        * 
* * string hls = 1; @@ -1169,8 +1174,8 @@ public Builder clearHls() { * * *
-       * HLS master manifest URI. If multiple HLS master manifests are created
-       * only first one is listed.
+       * HLS manifest URI per https://tools.ietf.org/html/rfc8216#section-4.3.4.
+       * If multiple HLS manifests are created, only the first one is listed.
        * 
* * string hls = 1; @@ -1458,8 +1463,8 @@ public com.google.protobuf.ByteString getNameBytes() { *
    * Input only. Specify the `input_uri` to populate empty `uri` fields in each element of
    * `Job.config.inputs` or `JobTemplate.config.inputs` when using template.
-   * URI of the media. It must be stored in Cloud Storage. For example,
-   * `gs://bucket/inputs/file.mp4`.
+   * URI of the media. Input files must be at least 5 seconds in duration and
+   * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
    * 
* * string input_uri = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -1484,8 +1489,8 @@ public java.lang.String getInputUri() { *
    * Input only. Specify the `input_uri` to populate empty `uri` fields in each element of
    * `Job.config.inputs` or `JobTemplate.config.inputs` when using template.
-   * URI of the media. It must be stored in Cloud Storage. For example,
-   * `gs://bucket/inputs/file.mp4`.
+   * URI of the media. Input files must be at least 5 seconds in duration and
+   * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
    * 
* * string input_uri = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -1720,6 +1725,7 @@ public int getPriority() { * *
    * Output only. The origin URI.
+   * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
    * 
* * @@ -1737,6 +1743,7 @@ public boolean hasOriginUri() { * *
    * Output only. The origin URI.
+   * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
    * 
* * @@ -1756,6 +1763,7 @@ public com.google.cloud.video.transcoder.v1beta1.Job.OriginUri getOriginUri() { * *
    * Output only. The origin URI.
+   * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
    * 
* * @@ -1817,6 +1825,7 @@ public com.google.cloud.video.transcoder.v1beta1.Job.ProcessingState getState() *
    * Output only. Estimated fractional progress, from `0` to `1` for each
    * step.
+   * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
    * 
* * @@ -1835,6 +1844,7 @@ public boolean hasProgress() { *
    * Output only. Estimated fractional progress, from `0` to `1` for each
    * step.
+   * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
    * 
* * @@ -1855,6 +1865,7 @@ public com.google.cloud.video.transcoder.v1beta1.Progress getProgress() { *
    * Output only. Estimated fractional progress, from `0` to `1` for each
    * step.
+   * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
    * 
* * @@ -1925,6 +1936,7 @@ public com.google.protobuf.ByteString getFailureReasonBytes() { *
    * Output only. List of failure details. This property may contain additional
    * information about the failure when `failure_reason` is present.
+   * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
    * 
* * @@ -1942,6 +1954,7 @@ public com.google.protobuf.ByteString getFailureReasonBytes() { *
    * Output only. List of failure details. This property may contain additional
    * information about the failure when `failure_reason` is present.
+   * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
    * 
* * @@ -1959,6 +1972,7 @@ public com.google.protobuf.ByteString getFailureReasonBytes() { *
    * Output only. List of failure details. This property may contain additional
    * information about the failure when `failure_reason` is present.
+   * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
    * 
* * @@ -1975,6 +1989,7 @@ public int getFailureDetailsCount() { *
    * Output only. List of failure details. This property may contain additional
    * information about the failure when `failure_reason` is present.
+   * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
    * 
* * @@ -1991,6 +2006,7 @@ public com.google.cloud.video.transcoder.v1beta1.FailureDetail getFailureDetails *
    * Output only. List of failure details. This property may contain additional
    * information about the failure when `failure_reason` is present.
+   * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
    * 
* * @@ -2150,6 +2166,26 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { return getEndTime(); } + public static final int TTL_AFTER_COMPLETION_DAYS_FIELD_NUMBER = 15; + private int ttlAfterCompletionDays_; + /** + * + * + *
+   * Job time to live value in days, which will be effective after job
+   * completion. Job should be deleted automatically after the given TTL. Enter
+   * a value between 1 and 90. The default is 30.
+   * 
+ * + * int32 ttl_after_completion_days = 15; + * + * @return The ttlAfterCompletionDays. + */ + @java.lang.Override + public int getTtlAfterCompletionDays() { + return ttlAfterCompletionDays_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2209,6 +2245,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (endTime_ != null) { output.writeMessage(14, getEndTime()); } + if (ttlAfterCompletionDays_ != 0) { + output.writeInt32(15, ttlAfterCompletionDays_); + } unknownFields.writeTo(output); } @@ -2265,6 +2304,9 @@ public int getSerializedSize() { if (endTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getEndTime()); } + if (ttlAfterCompletionDays_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(15, ttlAfterCompletionDays_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2308,6 +2350,7 @@ public boolean equals(final java.lang.Object obj) { if (hasEndTime()) { if (!getEndTime().equals(other.getEndTime())) return false; } + if (getTtlAfterCompletionDays() != other.getTtlAfterCompletionDays()) return false; if (!getJobConfigCase().equals(other.getJobConfigCase())) return false; switch (jobConfigCase_) { case 4: @@ -2366,6 +2409,8 @@ public int hashCode() { hash = (37 * hash) + END_TIME_FIELD_NUMBER; hash = (53 * hash) + getEndTime().hashCode(); } + hash = (37 * hash) + TTL_AFTER_COMPLETION_DAYS_FIELD_NUMBER; + hash = (53 * hash) + getTtlAfterCompletionDays(); switch (jobConfigCase_) { case 4: hash = (37 * hash) + TEMPLATE_ID_FIELD_NUMBER; @@ -2573,6 +2618,8 @@ public Builder clear() { endTime_ = null; endTimeBuilder_ = null; } + ttlAfterCompletionDays_ = 0; + jobConfigCase_ = 0; jobConfig_ = null; return this; @@ -2653,6 +2700,7 @@ public com.google.cloud.video.transcoder.v1beta1.Job buildPartial() { } else { result.endTime_ = endTimeBuilder_.build(); } + result.ttlAfterCompletionDays_ = ttlAfterCompletionDays_; result.jobConfigCase_ = jobConfigCase_; onBuilt(); return result; @@ -2767,6 +2815,9 @@ public Builder mergeFrom(com.google.cloud.video.transcoder.v1beta1.Job other) { if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } + if (other.getTtlAfterCompletionDays() != 0) { + setTtlAfterCompletionDays(other.getTtlAfterCompletionDays()); + } switch (other.getJobConfigCase()) { case TEMPLATE_ID: { @@ -2948,8 +2999,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
      * Input only. Specify the `input_uri` to populate empty `uri` fields in each element of
      * `Job.config.inputs` or `JobTemplate.config.inputs` when using template.
-     * URI of the media. It must be stored in Cloud Storage. For example,
-     * `gs://bucket/inputs/file.mp4`.
+     * URI of the media. Input files must be at least 5 seconds in duration and
+     * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
      * 
* * string input_uri = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -2973,8 +3024,8 @@ public java.lang.String getInputUri() { *
      * Input only. Specify the `input_uri` to populate empty `uri` fields in each element of
      * `Job.config.inputs` or `JobTemplate.config.inputs` when using template.
-     * URI of the media. It must be stored in Cloud Storage. For example,
-     * `gs://bucket/inputs/file.mp4`.
+     * URI of the media. Input files must be at least 5 seconds in duration and
+     * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
      * 
* * string input_uri = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -2998,8 +3049,8 @@ public com.google.protobuf.ByteString getInputUriBytes() { *
      * Input only. Specify the `input_uri` to populate empty `uri` fields in each element of
      * `Job.config.inputs` or `JobTemplate.config.inputs` when using template.
-     * URI of the media. It must be stored in Cloud Storage. For example,
-     * `gs://bucket/inputs/file.mp4`.
+     * URI of the media. Input files must be at least 5 seconds in duration and
+     * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
      * 
* * string input_uri = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -3022,8 +3073,8 @@ public Builder setInputUri(java.lang.String value) { *
      * Input only. Specify the `input_uri` to populate empty `uri` fields in each element of
      * `Job.config.inputs` or `JobTemplate.config.inputs` when using template.
-     * URI of the media. It must be stored in Cloud Storage. For example,
-     * `gs://bucket/inputs/file.mp4`.
+     * URI of the media. Input files must be at least 5 seconds in duration and
+     * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
      * 
* * string input_uri = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -3042,8 +3093,8 @@ public Builder clearInputUri() { *
      * Input only. Specify the `input_uri` to populate empty `uri` fields in each element of
      * `Job.config.inputs` or `JobTemplate.config.inputs` when using template.
-     * URI of the media. It must be stored in Cloud Storage. For example,
-     * `gs://bucket/inputs/file.mp4`.
+     * URI of the media. Input files must be at least 5 seconds in duration and
+     * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
      * 
* * string input_uri = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -3618,6 +3669,7 @@ public Builder clearPriority() { * *
      * Output only. The origin URI.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -3634,6 +3686,7 @@ public boolean hasOriginUri() { * *
      * Output only. The origin URI.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -3656,6 +3709,7 @@ public com.google.cloud.video.transcoder.v1beta1.Job.OriginUri getOriginUri() { * *
      * Output only. The origin URI.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -3680,6 +3734,7 @@ public Builder setOriginUri(com.google.cloud.video.transcoder.v1beta1.Job.Origin * *
      * Output only. The origin URI.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -3702,6 +3757,7 @@ public Builder setOriginUri( * *
      * Output only. The origin URI.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -3730,6 +3786,7 @@ public Builder mergeOriginUri(com.google.cloud.video.transcoder.v1beta1.Job.Orig * *
      * Output only. The origin URI.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -3752,6 +3809,7 @@ public Builder clearOriginUri() { * *
      * Output only. The origin URI.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -3768,6 +3826,7 @@ public com.google.cloud.video.transcoder.v1beta1.Job.OriginUri.Builder getOrigin * *
      * Output only. The origin URI.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -3789,6 +3848,7 @@ public com.google.cloud.video.transcoder.v1beta1.Job.OriginUri.Builder getOrigin * *
      * Output only. The origin URI.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -3927,6 +3987,7 @@ public Builder clearState() { *
      * Output only. Estimated fractional progress, from `0` to `1` for each
      * step.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -3944,6 +4005,7 @@ public boolean hasProgress() { *
      * Output only. Estimated fractional progress, from `0` to `1` for each
      * step.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -3967,6 +4029,7 @@ public com.google.cloud.video.transcoder.v1beta1.Progress getProgress() { *
      * Output only. Estimated fractional progress, from `0` to `1` for each
      * step.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -3992,6 +4055,7 @@ public Builder setProgress(com.google.cloud.video.transcoder.v1beta1.Progress va *
      * Output only. Estimated fractional progress, from `0` to `1` for each
      * step.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4015,6 +4079,7 @@ public Builder setProgress( *
      * Output only. Estimated fractional progress, from `0` to `1` for each
      * step.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4044,6 +4109,7 @@ public Builder mergeProgress(com.google.cloud.video.transcoder.v1beta1.Progress *
      * Output only. Estimated fractional progress, from `0` to `1` for each
      * step.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4067,6 +4133,7 @@ public Builder clearProgress() { *
      * Output only. Estimated fractional progress, from `0` to `1` for each
      * step.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4084,6 +4151,7 @@ public com.google.cloud.video.transcoder.v1beta1.Progress.Builder getProgressBui *
      * Output only. Estimated fractional progress, from `0` to `1` for each
      * step.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4105,6 +4173,7 @@ public com.google.cloud.video.transcoder.v1beta1.ProgressOrBuilder getProgressOr *
      * Output only. Estimated fractional progress, from `0` to `1` for each
      * step.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4263,6 +4332,7 @@ private void ensureFailureDetailsIsMutable() { *
      * Output only. List of failure details. This property may contain additional
      * information about the failure when `failure_reason` is present.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4283,6 +4353,7 @@ private void ensureFailureDetailsIsMutable() { *
      * Output only. List of failure details. This property may contain additional
      * information about the failure when `failure_reason` is present.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4302,6 +4373,7 @@ public int getFailureDetailsCount() { *
      * Output only. List of failure details. This property may contain additional
      * information about the failure when `failure_reason` is present.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4321,6 +4393,7 @@ public com.google.cloud.video.transcoder.v1beta1.FailureDetail getFailureDetails *
      * Output only. List of failure details. This property may contain additional
      * information about the failure when `failure_reason` is present.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4347,6 +4420,7 @@ public Builder setFailureDetails( *
      * Output only. List of failure details. This property may contain additional
      * information about the failure when `failure_reason` is present.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4371,6 +4445,7 @@ public Builder setFailureDetails( *
      * Output only. List of failure details. This property may contain additional
      * information about the failure when `failure_reason` is present.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4397,6 +4472,7 @@ public Builder addFailureDetails( *
      * Output only. List of failure details. This property may contain additional
      * information about the failure when `failure_reason` is present.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4423,6 +4499,7 @@ public Builder addFailureDetails( *
      * Output only. List of failure details. This property may contain additional
      * information about the failure when `failure_reason` is present.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4446,6 +4523,7 @@ public Builder addFailureDetails( *
      * Output only. List of failure details. This property may contain additional
      * information about the failure when `failure_reason` is present.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4470,6 +4548,7 @@ public Builder addFailureDetails( *
      * Output only. List of failure details. This property may contain additional
      * information about the failure when `failure_reason` is present.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4494,6 +4573,7 @@ public Builder addAllFailureDetails( *
      * Output only. List of failure details. This property may contain additional
      * information about the failure when `failure_reason` is present.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4516,6 +4596,7 @@ public Builder clearFailureDetails() { *
      * Output only. List of failure details. This property may contain additional
      * information about the failure when `failure_reason` is present.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4538,6 +4619,7 @@ public Builder removeFailureDetails(int index) { *
      * Output only. List of failure details. This property may contain additional
      * information about the failure when `failure_reason` is present.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4554,6 +4636,7 @@ public com.google.cloud.video.transcoder.v1beta1.FailureDetail.Builder getFailur *
      * Output only. List of failure details. This property may contain additional
      * information about the failure when `failure_reason` is present.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4574,6 +4657,7 @@ public com.google.cloud.video.transcoder.v1beta1.FailureDetail.Builder getFailur *
      * Output only. List of failure details. This property may contain additional
      * information about the failure when `failure_reason` is present.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4595,6 +4679,7 @@ public com.google.cloud.video.transcoder.v1beta1.FailureDetail.Builder getFailur *
      * Output only. List of failure details. This property may contain additional
      * information about the failure when `failure_reason` is present.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4612,6 +4697,7 @@ public com.google.cloud.video.transcoder.v1beta1.FailureDetail.Builder getFailur *
      * Output only. List of failure details. This property may contain additional
      * information about the failure when `failure_reason` is present.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -4630,6 +4716,7 @@ public com.google.cloud.video.transcoder.v1beta1.FailureDetail.Builder addFailur *
      * Output only. List of failure details. This property may contain additional
      * information about the failure when `failure_reason` is present.
+     * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
      * 
* * @@ -5247,6 +5334,64 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { return endTimeBuilder_; } + private int ttlAfterCompletionDays_; + /** + * + * + *
+     * Job time to live value in days, which will be effective after job
+     * completion. Job should be deleted automatically after the given TTL. Enter
+     * a value between 1 and 90. The default is 30.
+     * 
+ * + * int32 ttl_after_completion_days = 15; + * + * @return The ttlAfterCompletionDays. + */ + @java.lang.Override + public int getTtlAfterCompletionDays() { + return ttlAfterCompletionDays_; + } + /** + * + * + *
+     * Job time to live value in days, which will be effective after job
+     * completion. Job should be deleted automatically after the given TTL. Enter
+     * a value between 1 and 90. The default is 30.
+     * 
+ * + * int32 ttl_after_completion_days = 15; + * + * @param value The ttlAfterCompletionDays to set. + * @return This builder for chaining. + */ + public Builder setTtlAfterCompletionDays(int value) { + + ttlAfterCompletionDays_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Job time to live value in days, which will be effective after job
+     * completion. Job should be deleted automatically after the given TTL. Enter
+     * a value between 1 and 90. The default is 30.
+     * 
+ * + * int32 ttl_after_completion_days = 15; + * + * @return This builder for chaining. + */ + public Builder clearTtlAfterCompletionDays() { + + ttlAfterCompletionDays_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/JobOrBuilder.java b/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/JobOrBuilder.java index 4cd614d2..b209c1a7 100644 --- a/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/JobOrBuilder.java +++ b/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/JobOrBuilder.java @@ -56,8 +56,8 @@ public interface JobOrBuilder *
    * Input only. Specify the `input_uri` to populate empty `uri` fields in each element of
    * `Job.config.inputs` or `JobTemplate.config.inputs` when using template.
-   * URI of the media. It must be stored in Cloud Storage. For example,
-   * `gs://bucket/inputs/file.mp4`.
+   * URI of the media. Input files must be at least 5 seconds in duration and
+   * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
    * 
* * string input_uri = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -71,8 +71,8 @@ public interface JobOrBuilder *
    * Input only. Specify the `input_uri` to populate empty `uri` fields in each element of
    * `Job.config.inputs` or `JobTemplate.config.inputs` when using template.
-   * URI of the media. It must be stored in Cloud Storage. For example,
-   * `gs://bucket/inputs/file.mp4`.
+   * URI of the media. Input files must be at least 5 seconds in duration and
+   * stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
    * 
* * string input_uri = 2 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -216,6 +216,7 @@ public interface JobOrBuilder * *
    * Output only. The origin URI.
+   * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
    * 
* * @@ -230,6 +231,7 @@ public interface JobOrBuilder * *
    * Output only. The origin URI.
+   * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
    * 
* * @@ -244,6 +246,7 @@ public interface JobOrBuilder * *
    * Output only. The origin URI.
+   * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
    * 
* * @@ -287,6 +290,7 @@ public interface JobOrBuilder *
    * Output only. Estimated fractional progress, from `0` to `1` for each
    * step.
+   * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
    * 
* * @@ -302,6 +306,7 @@ public interface JobOrBuilder *
    * Output only. Estimated fractional progress, from `0` to `1` for each
    * step.
+   * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
    * 
* * @@ -317,6 +322,7 @@ public interface JobOrBuilder *
    * Output only. Estimated fractional progress, from `0` to `1` for each
    * step.
+   * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
    * 
* * @@ -358,6 +364,7 @@ public interface JobOrBuilder *
    * Output only. List of failure details. This property may contain additional
    * information about the failure when `failure_reason` is present.
+   * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
    * 
* * @@ -371,6 +378,7 @@ public interface JobOrBuilder *
    * Output only. List of failure details. This property may contain additional
    * information about the failure when `failure_reason` is present.
+   * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
    * 
* * @@ -384,6 +392,7 @@ public interface JobOrBuilder *
    * Output only. List of failure details. This property may contain additional
    * information about the failure when `failure_reason` is present.
+   * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
    * 
* * @@ -397,6 +406,7 @@ public interface JobOrBuilder *
    * Output only. List of failure details. This property may contain additional
    * information about the failure when `failure_reason` is present.
+   * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
    * 
* * @@ -411,6 +421,7 @@ public interface JobOrBuilder *
    * Output only. List of failure details. This property may contain additional
    * information about the failure when `failure_reason` is present.
+   * <aside class="note"><b>Note</b>: This feature is not yet available.</aside>
    * 
* * @@ -534,5 +545,20 @@ com.google.cloud.video.transcoder.v1beta1.FailureDetailOrBuilder getFailureDetai */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + /** + * + * + *
+   * Job time to live value in days, which will be effective after job
+   * completion. Job should be deleted automatically after the given TTL. Enter
+   * a value between 1 and 90. The default is 30.
+   * 
+ * + * int32 ttl_after_completion_days = 15; + * + * @return The ttlAfterCompletionDays. + */ + int getTtlAfterCompletionDays(); + public com.google.cloud.video.transcoder.v1beta1.Job.JobConfigCase getJobConfigCase(); } diff --git a/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/Overlay.java b/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/Overlay.java index 2ccd23a7..400730bb 100644 --- a/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/Overlay.java +++ b/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/Overlay.java @@ -983,8 +983,8 @@ public interface ImageOrBuilder * * *
-     * Required. URI of the image in Cloud Storage. For example,
-     * `gs://bucket/inputs/image.jpeg`.
+     * Required. URI of the JPEG image in Cloud Storage. For example,
+     * `gs://bucket/inputs/image.jpeg`. JPEG is the only supported image type.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -996,8 +996,8 @@ public interface ImageOrBuilder * * *
-     * Required. URI of the image in Cloud Storage. For example,
-     * `gs://bucket/inputs/image.jpeg`.
+     * Required. URI of the JPEG image in Cloud Storage. For example,
+     * `gs://bucket/inputs/image.jpeg`. JPEG is the only supported image type.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1058,8 +1058,8 @@ public interface ImageOrBuilder * * *
-     * Target image opacity. Valid values: `1` (solid, default),
-     * `0` (transparent).
+     * Target image opacity. Valid values are from  `1.0` (solid, default) to
+     * `0.0` (transparent), exclusive. Set this to a value greater than `0.0`.
      * 
* * double alpha = 3; @@ -1191,8 +1191,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * Required. URI of the image in Cloud Storage. For example,
-     * `gs://bucket/inputs/image.jpeg`.
+     * Required. URI of the JPEG image in Cloud Storage. For example,
+     * `gs://bucket/inputs/image.jpeg`. JPEG is the only supported image type.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1215,8 +1215,8 @@ public java.lang.String getUri() { * * *
-     * Required. URI of the image in Cloud Storage. For example,
-     * `gs://bucket/inputs/image.jpeg`.
+     * Required. URI of the JPEG image in Cloud Storage. For example,
+     * `gs://bucket/inputs/image.jpeg`. JPEG is the only supported image type.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1304,8 +1304,8 @@ public com.google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate ge * * *
-     * Target image opacity. Valid values: `1` (solid, default),
-     * `0` (transparent).
+     * Target image opacity. Valid values are from  `1.0` (solid, default) to
+     * `0.0` (transparent), exclusive. Set this to a value greater than `0.0`.
      * 
* * double alpha = 3; @@ -1692,8 +1692,8 @@ public Builder mergeFrom( * * *
-       * Required. URI of the image in Cloud Storage. For example,
-       * `gs://bucket/inputs/image.jpeg`.
+       * Required. URI of the JPEG image in Cloud Storage. For example,
+       * `gs://bucket/inputs/image.jpeg`. JPEG is the only supported image type.
        * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1715,8 +1715,8 @@ public java.lang.String getUri() { * * *
-       * Required. URI of the image in Cloud Storage. For example,
-       * `gs://bucket/inputs/image.jpeg`.
+       * Required. URI of the JPEG image in Cloud Storage. For example,
+       * `gs://bucket/inputs/image.jpeg`. JPEG is the only supported image type.
        * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1738,8 +1738,8 @@ public com.google.protobuf.ByteString getUriBytes() { * * *
-       * Required. URI of the image in Cloud Storage. For example,
-       * `gs://bucket/inputs/image.jpeg`.
+       * Required. URI of the JPEG image in Cloud Storage. For example,
+       * `gs://bucket/inputs/image.jpeg`. JPEG is the only supported image type.
        * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1760,8 +1760,8 @@ public Builder setUri(java.lang.String value) { * * *
-       * Required. URI of the image in Cloud Storage. For example,
-       * `gs://bucket/inputs/image.jpeg`.
+       * Required. URI of the JPEG image in Cloud Storage. For example,
+       * `gs://bucket/inputs/image.jpeg`. JPEG is the only supported image type.
        * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1778,8 +1778,8 @@ public Builder clearUri() { * * *
-       * Required. URI of the image in Cloud Storage. For example,
-       * `gs://bucket/inputs/image.jpeg`.
+       * Required. URI of the JPEG image in Cloud Storage. For example,
+       * `gs://bucket/inputs/image.jpeg`. JPEG is the only supported image type.
        * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -2034,8 +2034,8 @@ public Builder clearResolution() { * * *
-       * Target image opacity. Valid values: `1` (solid, default),
-       * `0` (transparent).
+       * Target image opacity. Valid values are from  `1.0` (solid, default) to
+       * `0.0` (transparent), exclusive. Set this to a value greater than `0.0`.
        * 
* * double alpha = 3; @@ -2050,8 +2050,8 @@ public double getAlpha() { * * *
-       * Target image opacity. Valid values: `1` (solid, default),
-       * `0` (transparent).
+       * Target image opacity. Valid values are from  `1.0` (solid, default) to
+       * `0.0` (transparent), exclusive. Set this to a value greater than `0.0`.
        * 
* * double alpha = 3; @@ -2069,8 +2069,8 @@ public Builder setAlpha(double value) { * * *
-       * Target image opacity. Valid values: `1` (solid, default),
-       * `0` (transparent).
+       * Target image opacity. Valid values are from  `1.0` (solid, default) to
+       * `0.0` (transparent), exclusive. Set this to a value greater than `0.0`.
        * 
* * double alpha = 3; @@ -2147,7 +2147,9 @@ public interface AnimationStaticOrBuilder *
      * Normalized coordinates based on output video resolution. Valid
      * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-     * object.
+     * object. For example, use the x and y coordinates {0,0} to position the
+     * top-left corner of the overlay animation in the top-left corner of the
+     * output video.
      * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 1; @@ -2161,7 +2163,9 @@ public interface AnimationStaticOrBuilder *
      * Normalized coordinates based on output video resolution. Valid
      * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-     * object.
+     * object. For example, use the x and y coordinates {0,0} to position the
+     * top-left corner of the overlay animation in the top-left corner of the
+     * output video.
      * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 1; @@ -2175,7 +2179,9 @@ public interface AnimationStaticOrBuilder *
      * Normalized coordinates based on output video resolution. Valid
      * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-     * object.
+     * object. For example, use the x and y coordinates {0,0} to position the
+     * top-left corner of the overlay animation in the top-left corner of the
+     * output video.
      * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 1; @@ -2344,7 +2350,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
      * Normalized coordinates based on output video resolution. Valid
      * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-     * object.
+     * object. For example, use the x and y coordinates {0,0} to position the
+     * top-left corner of the overlay animation in the top-left corner of the
+     * output video.
      * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 1; @@ -2361,7 +2369,9 @@ public boolean hasXy() { *
      * Normalized coordinates based on output video resolution. Valid
      * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-     * object.
+     * object. For example, use the x and y coordinates {0,0} to position the
+     * top-left corner of the overlay animation in the top-left corner of the
+     * output video.
      * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 1; @@ -2381,7 +2391,9 @@ public com.google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate ge *
      * Normalized coordinates based on output video resolution. Valid
      * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-     * object.
+     * object. For example, use the x and y coordinates {0,0} to position the
+     * top-left corner of the overlay animation in the top-left corner of the
+     * output video.
      * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 1; @@ -2823,7 +2835,9 @@ public Builder mergeFrom( *
        * Normalized coordinates based on output video resolution. Valid
        * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-       * object.
+       * object. For example, use the x and y coordinates {0,0} to position the
+       * top-left corner of the overlay animation in the top-left corner of the
+       * output video.
        * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 1; @@ -2839,7 +2853,9 @@ public boolean hasXy() { *
        * Normalized coordinates based on output video resolution. Valid
        * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-       * object.
+       * object. For example, use the x and y coordinates {0,0} to position the
+       * top-left corner of the overlay animation in the top-left corner of the
+       * output video.
        * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 1; @@ -2862,7 +2878,9 @@ public com.google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate ge *
        * Normalized coordinates based on output video resolution. Valid
        * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-       * object.
+       * object. For example, use the x and y coordinates {0,0} to position the
+       * top-left corner of the overlay animation in the top-left corner of the
+       * output video.
        * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 1; @@ -2887,7 +2905,9 @@ public Builder setXy( *
        * Normalized coordinates based on output video resolution. Valid
        * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-       * object.
+       * object. For example, use the x and y coordinates {0,0} to position the
+       * top-left corner of the overlay animation in the top-left corner of the
+       * output video.
        * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 1; @@ -2910,7 +2930,9 @@ public Builder setXy( *
        * Normalized coordinates based on output video resolution. Valid
        * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-       * object.
+       * object. For example, use the x and y coordinates {0,0} to position the
+       * top-left corner of the overlay animation in the top-left corner of the
+       * output video.
        * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 1; @@ -2940,7 +2962,9 @@ public Builder mergeXy( *
        * Normalized coordinates based on output video resolution. Valid
        * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-       * object.
+       * object. For example, use the x and y coordinates {0,0} to position the
+       * top-left corner of the overlay animation in the top-left corner of the
+       * output video.
        * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 1; @@ -2962,7 +2986,9 @@ public Builder clearXy() { *
        * Normalized coordinates based on output video resolution. Valid
        * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-       * object.
+       * object. For example, use the x and y coordinates {0,0} to position the
+       * top-left corner of the overlay animation in the top-left corner of the
+       * output video.
        * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 1; @@ -2979,7 +3005,9 @@ public Builder clearXy() { *
        * Normalized coordinates based on output video resolution. Valid
        * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-       * object.
+       * object. For example, use the x and y coordinates {0,0} to position the
+       * top-left corner of the overlay animation in the top-left corner of the
+       * output video.
        * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 1; @@ -3001,7 +3029,9 @@ public Builder clearXy() { *
        * Normalized coordinates based on output video resolution. Valid
        * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-       * object.
+       * object. For example, use the x and y coordinates {0,0} to position the
+       * top-left corner of the overlay animation in the top-left corner of the
+       * output video.
        * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 1; @@ -3303,7 +3333,9 @@ public interface AnimationFadeOrBuilder *
      * Normalized coordinates based on output video resolution. Valid
      * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-     * object.
+     * object. For example, use the x and y coordinates {0,0} to position the
+     * top-left corner of the overlay animation in the top-left corner of the
+     * output video.
      * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 2; @@ -3317,7 +3349,9 @@ public interface AnimationFadeOrBuilder *
      * Normalized coordinates based on output video resolution. Valid
      * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-     * object.
+     * object. For example, use the x and y coordinates {0,0} to position the
+     * top-left corner of the overlay animation in the top-left corner of the
+     * output video.
      * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 2; @@ -3331,7 +3365,9 @@ public interface AnimationFadeOrBuilder *
      * Normalized coordinates based on output video resolution. Valid
      * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-     * object.
+     * object. For example, use the x and y coordinates {0,0} to position the
+     * top-left corner of the overlay animation in the top-left corner of the
+     * output video.
      * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 2; @@ -3604,7 +3640,9 @@ public com.google.cloud.video.transcoder.v1beta1.Overlay.FadeType getFadeType() *
      * Normalized coordinates based on output video resolution. Valid
      * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-     * object.
+     * object. For example, use the x and y coordinates {0,0} to position the
+     * top-left corner of the overlay animation in the top-left corner of the
+     * output video.
      * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 2; @@ -3621,7 +3659,9 @@ public boolean hasXy() { *
      * Normalized coordinates based on output video resolution. Valid
      * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-     * object.
+     * object. For example, use the x and y coordinates {0,0} to position the
+     * top-left corner of the overlay animation in the top-left corner of the
+     * output video.
      * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 2; @@ -3641,7 +3681,9 @@ public com.google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate ge *
      * Normalized coordinates based on output video resolution. Valid
      * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-     * object.
+     * object. For example, use the x and y coordinates {0,0} to position the
+     * top-left corner of the overlay animation in the top-left corner of the
+     * output video.
      * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 2; @@ -4282,7 +4324,9 @@ public Builder clearFadeType() { *
        * Normalized coordinates based on output video resolution. Valid
        * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-       * object.
+       * object. For example, use the x and y coordinates {0,0} to position the
+       * top-left corner of the overlay animation in the top-left corner of the
+       * output video.
        * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 2; @@ -4298,7 +4342,9 @@ public boolean hasXy() { *
        * Normalized coordinates based on output video resolution. Valid
        * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-       * object.
+       * object. For example, use the x and y coordinates {0,0} to position the
+       * top-left corner of the overlay animation in the top-left corner of the
+       * output video.
        * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 2; @@ -4321,7 +4367,9 @@ public com.google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate ge *
        * Normalized coordinates based on output video resolution. Valid
        * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-       * object.
+       * object. For example, use the x and y coordinates {0,0} to position the
+       * top-left corner of the overlay animation in the top-left corner of the
+       * output video.
        * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 2; @@ -4346,7 +4394,9 @@ public Builder setXy( *
        * Normalized coordinates based on output video resolution. Valid
        * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-       * object.
+       * object. For example, use the x and y coordinates {0,0} to position the
+       * top-left corner of the overlay animation in the top-left corner of the
+       * output video.
        * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 2; @@ -4369,7 +4419,9 @@ public Builder setXy( *
        * Normalized coordinates based on output video resolution. Valid
        * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-       * object.
+       * object. For example, use the x and y coordinates {0,0} to position the
+       * top-left corner of the overlay animation in the top-left corner of the
+       * output video.
        * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 2; @@ -4399,7 +4451,9 @@ public Builder mergeXy( *
        * Normalized coordinates based on output video resolution. Valid
        * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-       * object.
+       * object. For example, use the x and y coordinates {0,0} to position the
+       * top-left corner of the overlay animation in the top-left corner of the
+       * output video.
        * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 2; @@ -4421,7 +4475,9 @@ public Builder clearXy() { *
        * Normalized coordinates based on output video resolution. Valid
        * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-       * object.
+       * object. For example, use the x and y coordinates {0,0} to position the
+       * top-left corner of the overlay animation in the top-left corner of the
+       * output video.
        * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 2; @@ -4438,7 +4494,9 @@ public Builder clearXy() { *
        * Normalized coordinates based on output video resolution. Valid
        * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-       * object.
+       * object. For example, use the x and y coordinates {0,0} to position the
+       * top-left corner of the overlay animation in the top-left corner of the
+       * output video.
        * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 2; @@ -4460,7 +4518,9 @@ public Builder clearXy() { *
        * Normalized coordinates based on output video resolution. Valid
        * values: `0.0`–`1.0`. `xy` is the upper-left coordinate of the overlay
-       * object.
+       * object. For example, use the x and y coordinates {0,0} to position the
+       * top-left corner of the overlay animation in the top-left corner of the
+       * output video.
        * 
* * .google.cloud.video.transcoder.v1beta1.Overlay.NormalizedCoordinate xy = 2; diff --git a/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/PreprocessingConfig.java b/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/PreprocessingConfig.java index 7c44c81d..b4c85e44 100644 --- a/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/PreprocessingConfig.java +++ b/proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/PreprocessingConfig.java @@ -140,6 +140,42 @@ private PreprocessingConfig( audio_ = subBuilder.buildPartial(); } + break; + } + case 42: + { + com.google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Crop.Builder + subBuilder = null; + if (crop_ != null) { + subBuilder = crop_.toBuilder(); + } + crop_ = + input.readMessage( + com.google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Crop.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(crop_); + crop_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + com.google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Pad.Builder subBuilder = + null; + if (pad_ != null) { + subBuilder = pad_.toBuilder(); + } + pad_ = + input.readMessage( + com.google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Pad.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pad_); + pad_ = subBuilder.buildPartial(); + } + break; } default: @@ -2486,12 +2522,15 @@ public interface AudioOrBuilder * *
      * Specify audio loudness normalization in loudness units relative to full
-     * scale (LUFS). Enter a value between -24 and 0, where -24 is the Advanced
-     * Television Systems Committee (ATSC A/85), -23 is the EU R128 broadcast
-     * standard, -19 is the prior standard for online mono audio, -18 is the
-     * ReplayGain standard, -16 is the prior standard for stereo audio, -14 is
-     * the new online audio standard recommended by Spotify, as well as Amazon
-     * Echo, and 0 disables normalization. The default is 0.
+     * scale (LUFS). Enter a value between -24 and 0 (the default), where:
+     * *   -24 is the Advanced Television Systems Committee (ATSC A/85) standard
+     * *   -23 is the EU R128 broadcast standard
+     * *   -19 is the prior standard for online mono audio
+     * *   -18 is the ReplayGain standard
+     * *   -16 is the prior standard for stereo audio
+     * *   -14 is the new online audio standard recommended by Spotify, as well
+     *     as Amazon Echo
+     * *   0 disables normalization
      * 
* * double lufs = 1; @@ -2632,12 +2671,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
      * Specify audio loudness normalization in loudness units relative to full
-     * scale (LUFS). Enter a value between -24 and 0, where -24 is the Advanced
-     * Television Systems Committee (ATSC A/85), -23 is the EU R128 broadcast
-     * standard, -19 is the prior standard for online mono audio, -18 is the
-     * ReplayGain standard, -16 is the prior standard for stereo audio, -14 is
-     * the new online audio standard recommended by Spotify, as well as Amazon
-     * Echo, and 0 disables normalization. The default is 0.
+     * scale (LUFS). Enter a value between -24 and 0 (the default), where:
+     * *   -24 is the Advanced Television Systems Committee (ATSC A/85) standard
+     * *   -23 is the EU R128 broadcast standard
+     * *   -19 is the prior standard for online mono audio
+     * *   -18 is the ReplayGain standard
+     * *   -16 is the prior standard for stereo audio
+     * *   -14 is the new online audio standard recommended by Spotify, as well
+     *     as Amazon Echo
+     * *   0 disables normalization
      * 
* * double lufs = 1; @@ -3054,12 +3096,15 @@ public Builder mergeFrom( * *
        * Specify audio loudness normalization in loudness units relative to full
-       * scale (LUFS). Enter a value between -24 and 0, where -24 is the Advanced
-       * Television Systems Committee (ATSC A/85), -23 is the EU R128 broadcast
-       * standard, -19 is the prior standard for online mono audio, -18 is the
-       * ReplayGain standard, -16 is the prior standard for stereo audio, -14 is
-       * the new online audio standard recommended by Spotify, as well as Amazon
-       * Echo, and 0 disables normalization. The default is 0.
+       * scale (LUFS). Enter a value between -24 and 0 (the default), where:
+       * *   -24 is the Advanced Television Systems Committee (ATSC A/85) standard
+       * *   -23 is the EU R128 broadcast standard
+       * *   -19 is the prior standard for online mono audio
+       * *   -18 is the ReplayGain standard
+       * *   -16 is the prior standard for stereo audio
+       * *   -14 is the new online audio standard recommended by Spotify, as well
+       *     as Amazon Echo
+       * *   0 disables normalization
        * 
* * double lufs = 1; @@ -3075,12 +3120,15 @@ public double getLufs() { * *
        * Specify audio loudness normalization in loudness units relative to full
-       * scale (LUFS). Enter a value between -24 and 0, where -24 is the Advanced
-       * Television Systems Committee (ATSC A/85), -23 is the EU R128 broadcast
-       * standard, -19 is the prior standard for online mono audio, -18 is the
-       * ReplayGain standard, -16 is the prior standard for stereo audio, -14 is
-       * the new online audio standard recommended by Spotify, as well as Amazon
-       * Echo, and 0 disables normalization. The default is 0.
+       * scale (LUFS). Enter a value between -24 and 0 (the default), where:
+       * *   -24 is the Advanced Television Systems Committee (ATSC A/85) standard
+       * *   -23 is the EU R128 broadcast standard
+       * *   -19 is the prior standard for online mono audio
+       * *   -18 is the ReplayGain standard
+       * *   -16 is the prior standard for stereo audio
+       * *   -14 is the new online audio standard recommended by Spotify, as well
+       *     as Amazon Echo
+       * *   0 disables normalization
        * 
* * double lufs = 1; @@ -3099,12 +3147,15 @@ public Builder setLufs(double value) { * *
        * Specify audio loudness normalization in loudness units relative to full
-       * scale (LUFS). Enter a value between -24 and 0, where -24 is the Advanced
-       * Television Systems Committee (ATSC A/85), -23 is the EU R128 broadcast
-       * standard, -19 is the prior standard for online mono audio, -18 is the
-       * ReplayGain standard, -16 is the prior standard for stereo audio, -14 is
-       * the new online audio standard recommended by Spotify, as well as Amazon
-       * Echo, and 0 disables normalization. The default is 0.
+       * scale (LUFS). Enter a value between -24 and 0 (the default), where:
+       * *   -24 is the Advanced Television Systems Committee (ATSC A/85) standard
+       * *   -23 is the EU R128 broadcast standard
+       * *   -19 is the prior standard for online mono audio
+       * *   -18 is the ReplayGain standard
+       * *   -16 is the prior standard for stereo audio
+       * *   -14 is the new online audio standard recommended by Spotify, as well
+       *     as Amazon Echo
+       * *   0 disables normalization
        * 
* * double lufs = 1; @@ -3277,213 +3328,2057 @@ public com.google.protobuf.Parser