Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 667278c

Browse files
feat: Add video cropping feature (#205)
* feat: Add video cropping feature feat: Add video padding feature feat: Add ttl_after_completion_days field to Job docs: Update proto documentation docs: Indicate v1beta1 deprecation PiperOrigin-RevId: 389250478 Source-Link: googleapis/googleapis@9a7d190 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c27e567bdcb376f4f12235cfa8b205458cdf5274 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 34790ca commit 667278c

File tree

25 files changed

+3872
-844
lines changed

25 files changed

+3872
-844
lines changed

google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceClient.java

+3
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,11 @@
101101
* }</pre>
102102
*
103103
* <p>Please refer to the GitHub repository's samples for more quickstart code snippets.
104+
*
105+
* @deprecated This class is deprecated and will be removed in the next major version update.
104106
*/
105107
@BetaApi
108+
@Deprecated
106109
@Generated("by gapic-generator-java")
107110
public class TranscoderServiceClient implements BackgroundResource {
108111
private final TranscoderServiceSettings settings;

google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceSettings.java

+3
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,11 @@
6767
* .build());
6868
* TranscoderServiceSettings transcoderServiceSettings = transcoderServiceSettingsBuilder.build();
6969
* }</pre>
70+
*
71+
* @deprecated This class is deprecated and will be removed in the next major version update.
7072
*/
7173
@BetaApi
74+
@Deprecated
7275
@Generated("by gapic-generator-java")
7376
public class TranscoderServiceSettings extends ClientSettings<TranscoderServiceSettings> {
7477

google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/GrpcTranscoderServiceCallableFactory.java

+3
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@
4141
* gRPC callable factory implementation for the TranscoderService service API.
4242
*
4343
* <p>This class is for advanced usage.
44+
*
45+
* @deprecated This class is deprecated and will be removed in the next major version update.
4446
*/
4547
@BetaApi
48+
@Deprecated
4649
@Generated("by gapic-generator-java")
4750
public class GrpcTranscoderServiceCallableFactory implements GrpcStubCallableFactory {
4851

google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/GrpcTranscoderServiceStub.java

+3
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,11 @@
5252
* gRPC stub implementation for the TranscoderService service API.
5353
*
5454
* <p>This class is for advanced usage and reflects the underlying API directly.
55+
*
56+
* @deprecated This class is deprecated and will be removed in the next major version update.
5557
*/
5658
@BetaApi
59+
@Deprecated
5760
@Generated("by gapic-generator-java")
5861
public class GrpcTranscoderServiceStub extends TranscoderServiceStub {
5962
private static final MethodDescriptor<CreateJobRequest, Job> createJobMethodDescriptor =

google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/TranscoderServiceStub.java

+3
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@
4242
* Base stub class for the TranscoderService service API.
4343
*
4444
* <p>This class is for advanced usage and reflects the underlying API directly.
45+
*
46+
* @deprecated This class is deprecated and will be removed in the next major version update.
4547
*/
4648
@BetaApi
49+
@Deprecated
4750
@Generated("by gapic-generator-java")
4851
public abstract class TranscoderServiceStub implements BackgroundResource {
4952

google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1beta1/stub/TranscoderServiceStubSettings.java

+3
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,11 @@
9595
* TranscoderServiceStubSettings transcoderServiceSettings =
9696
* transcoderServiceSettingsBuilder.build();
9797
* }</pre>
98+
*
99+
* @deprecated This class is deprecated and will be removed in the next major version update.
98100
*/
99101
@BetaApi
102+
@Deprecated
100103
@Generated("by gapic-generator-java")
101104
public class TranscoderServiceStubSettings extends StubSettings<TranscoderServiceStubSettings> {
102105
/** The default scopes of the service. */

google-cloud-video-transcoder/src/test/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceClientTest.java

+4
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ public void createJobTest() throws Exception {
9797
.setCreateTime(Timestamp.newBuilder().build())
9898
.setStartTime(Timestamp.newBuilder().build())
9999
.setEndTime(Timestamp.newBuilder().build())
100+
.setTtlAfterCompletionDays(107576420)
100101
.build();
101102
mockTranscoderService.addResponse(expectedResponse);
102103

@@ -148,6 +149,7 @@ public void createJobTest2() throws Exception {
148149
.setCreateTime(Timestamp.newBuilder().build())
149150
.setStartTime(Timestamp.newBuilder().build())
150151
.setEndTime(Timestamp.newBuilder().build())
152+
.setTtlAfterCompletionDays(107576420)
151153
.build();
152154
mockTranscoderService.addResponse(expectedResponse);
153155

@@ -287,6 +289,7 @@ public void getJobTest() throws Exception {
287289
.setCreateTime(Timestamp.newBuilder().build())
288290
.setStartTime(Timestamp.newBuilder().build())
289291
.setEndTime(Timestamp.newBuilder().build())
292+
.setTtlAfterCompletionDays(107576420)
290293
.build();
291294
mockTranscoderService.addResponse(expectedResponse);
292295

@@ -335,6 +338,7 @@ public void getJobTest2() throws Exception {
335338
.setCreateTime(Timestamp.newBuilder().build())
336339
.setStartTime(Timestamp.newBuilder().build())
337340
.setEndTime(Timestamp.newBuilder().build())
341+
.setTtlAfterCompletionDays(107576420)
338342
.build();
339343
mockTranscoderService.addResponse(expectedResponse);
340344

grpc-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/TranscoderServiceGrpc.java

+5
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
@javax.annotation.Generated(
3333
value = "by gRPC proto compiler",
3434
comments = "Source: google/cloud/video/transcoder/v1beta1/services.proto")
35+
@java.lang.Deprecated
3536
public final class TranscoderServiceGrpc {
3637

3738
private TranscoderServiceGrpc() {}
@@ -463,6 +464,7 @@ public TranscoderServiceFutureStub newStub(
463464
* concatenation, and digital ad-stitch ready content generation.
464465
* </pre>
465466
*/
467+
@java.lang.Deprecated
466468
public abstract static class TranscoderServiceImplBase implements io.grpc.BindableService {
467469

468470
/**
@@ -651,6 +653,7 @@ public final io.grpc.ServerServiceDefinition bindService() {
651653
* concatenation, and digital ad-stitch ready content generation.
652654
* </pre>
653655
*/
656+
@java.lang.Deprecated
654657
public static final class TranscoderServiceStub
655658
extends io.grpc.stub.AbstractAsyncStub<TranscoderServiceStub> {
656659
private TranscoderServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
@@ -803,6 +806,7 @@ public void deleteJobTemplate(
803806
* concatenation, and digital ad-stitch ready content generation.
804807
* </pre>
805808
*/
809+
@java.lang.Deprecated
806810
public static final class TranscoderServiceBlockingStub
807811
extends io.grpc.stub.AbstractBlockingStub<TranscoderServiceBlockingStub> {
808812
private TranscoderServiceBlockingStub(
@@ -933,6 +937,7 @@ public com.google.protobuf.Empty deleteJobTemplate(
933937
* concatenation, and digital ad-stitch ready content generation.
934938
* </pre>
935939
*/
940+
@java.lang.Deprecated
936941
public static final class TranscoderServiceFutureStub
937942
extends io.grpc.stub.AbstractFutureStub<TranscoderServiceFutureStub> {
938943
private TranscoderServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {

proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/Input.java

+21-21
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ public com.google.protobuf.ByteString getKeyBytes() {
194194
*
195195
*
196196
* <pre>
197-
* URI of the media. It must be stored in Cloud Storage. Example
198-
* `gs://bucket/inputs/file.mp4`.
199-
* If empty the value will be populated from `Job.input_uri`.
197+
* URI of the media. Input files must be at least 5 seconds in duration and
198+
* stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
199+
* If empty, the value will be populated from `Job.input_uri`.
200200
* </pre>
201201
*
202202
* <code>string uri = 2;</code>
@@ -219,9 +219,9 @@ public java.lang.String getUri() {
219219
*
220220
*
221221
* <pre>
222-
* URI of the media. It must be stored in Cloud Storage. Example
223-
* `gs://bucket/inputs/file.mp4`.
224-
* If empty the value will be populated from `Job.input_uri`.
222+
* URI of the media. Input files must be at least 5 seconds in duration and
223+
* stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
224+
* If empty, the value will be populated from `Job.input_uri`.
225225
* </pre>
226226
*
227227
* <code>string uri = 2;</code>
@@ -770,9 +770,9 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) {
770770
*
771771
*
772772
* <pre>
773-
* URI of the media. It must be stored in Cloud Storage. Example
774-
* `gs://bucket/inputs/file.mp4`.
775-
* If empty the value will be populated from `Job.input_uri`.
773+
* URI of the media. Input files must be at least 5 seconds in duration and
774+
* stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
775+
* If empty, the value will be populated from `Job.input_uri`.
776776
* </pre>
777777
*
778778
* <code>string uri = 2;</code>
@@ -794,9 +794,9 @@ public java.lang.String getUri() {
794794
*
795795
*
796796
* <pre>
797-
* URI of the media. It must be stored in Cloud Storage. Example
798-
* `gs://bucket/inputs/file.mp4`.
799-
* If empty the value will be populated from `Job.input_uri`.
797+
* URI of the media. Input files must be at least 5 seconds in duration and
798+
* stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
799+
* If empty, the value will be populated from `Job.input_uri`.
800800
* </pre>
801801
*
802802
* <code>string uri = 2;</code>
@@ -818,9 +818,9 @@ public com.google.protobuf.ByteString getUriBytes() {
818818
*
819819
*
820820
* <pre>
821-
* URI of the media. It must be stored in Cloud Storage. Example
822-
* `gs://bucket/inputs/file.mp4`.
823-
* If empty the value will be populated from `Job.input_uri`.
821+
* URI of the media. Input files must be at least 5 seconds in duration and
822+
* stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
823+
* If empty, the value will be populated from `Job.input_uri`.
824824
* </pre>
825825
*
826826
* <code>string uri = 2;</code>
@@ -841,9 +841,9 @@ public Builder setUri(java.lang.String value) {
841841
*
842842
*
843843
* <pre>
844-
* URI of the media. It must be stored in Cloud Storage. Example
845-
* `gs://bucket/inputs/file.mp4`.
846-
* If empty the value will be populated from `Job.input_uri`.
844+
* URI of the media. Input files must be at least 5 seconds in duration and
845+
* stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
846+
* If empty, the value will be populated from `Job.input_uri`.
847847
* </pre>
848848
*
849849
* <code>string uri = 2;</code>
@@ -860,9 +860,9 @@ public Builder clearUri() {
860860
*
861861
*
862862
* <pre>
863-
* URI of the media. It must be stored in Cloud Storage. Example
864-
* `gs://bucket/inputs/file.mp4`.
865-
* If empty the value will be populated from `Job.input_uri`.
863+
* URI of the media. Input files must be at least 5 seconds in duration and
864+
* stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
865+
* If empty, the value will be populated from `Job.input_uri`.
866866
* </pre>
867867
*
868868
* <code>string uri = 2;</code>

proto-google-cloud-video-transcoder-v1beta1/src/main/java/com/google/cloud/video/transcoder/v1beta1/InputOrBuilder.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ public interface InputOrBuilder
5454
*
5555
*
5656
* <pre>
57-
* URI of the media. It must be stored in Cloud Storage. Example
58-
* `gs://bucket/inputs/file.mp4`.
59-
* If empty the value will be populated from `Job.input_uri`.
57+
* URI of the media. Input files must be at least 5 seconds in duration and
58+
* stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
59+
* If empty, the value will be populated from `Job.input_uri`.
6060
* </pre>
6161
*
6262
* <code>string uri = 2;</code>
@@ -68,9 +68,9 @@ public interface InputOrBuilder
6868
*
6969
*
7070
* <pre>
71-
* URI of the media. It must be stored in Cloud Storage. Example
72-
* `gs://bucket/inputs/file.mp4`.
73-
* If empty the value will be populated from `Job.input_uri`.
71+
* URI of the media. Input files must be at least 5 seconds in duration and
72+
* stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
73+
* If empty, the value will be populated from `Job.input_uri`.
7474
* </pre>
7575
*
7676
* <code>string uri = 2;</code>

0 commit comments

Comments
 (0)