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

Commit 018d013

Browse files
feat: add support for user labels for job and job template (#352)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 455298767 Source-Link: googleapis/googleapis@a9969d3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/63c22c65700434a9dac45dbb4958954696755d07 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNjMjJjNjU3MDA0MzRhOWRhYzQ1ZGJiNDk1ODk1NDY5Njc1NWQwNyJ9
1 parent 6280cab commit 018d013

File tree

56 files changed

+2932
-236
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+2932
-236
lines changed

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

+9
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import io.grpc.StatusRuntimeException;
3535
import java.io.IOException;
3636
import java.util.Arrays;
37+
import java.util.HashMap;
3738
import java.util.List;
3839
import java.util.UUID;
3940
import javax.annotation.Generated;
@@ -93,6 +94,7 @@ public void createJobTest() throws Exception {
9394
.setStartTime(Timestamp.newBuilder().build())
9495
.setEndTime(Timestamp.newBuilder().build())
9596
.setTtlAfterCompletionDays(107576420)
97+
.putAllLabels(new HashMap<String, String>())
9698
.setError(Status.newBuilder().build())
9799
.build();
98100
mockTranscoderService.addResponse(expectedResponse);
@@ -141,6 +143,7 @@ public void createJobTest2() throws Exception {
141143
.setStartTime(Timestamp.newBuilder().build())
142144
.setEndTime(Timestamp.newBuilder().build())
143145
.setTtlAfterCompletionDays(107576420)
146+
.putAllLabels(new HashMap<String, String>())
144147
.setError(Status.newBuilder().build())
145148
.build();
146149
mockTranscoderService.addResponse(expectedResponse);
@@ -277,6 +280,7 @@ public void getJobTest() throws Exception {
277280
.setStartTime(Timestamp.newBuilder().build())
278281
.setEndTime(Timestamp.newBuilder().build())
279282
.setTtlAfterCompletionDays(107576420)
283+
.putAllLabels(new HashMap<String, String>())
280284
.setError(Status.newBuilder().build())
281285
.build();
282286
mockTranscoderService.addResponse(expectedResponse);
@@ -322,6 +326,7 @@ public void getJobTest2() throws Exception {
322326
.setStartTime(Timestamp.newBuilder().build())
323327
.setEndTime(Timestamp.newBuilder().build())
324328
.setTtlAfterCompletionDays(107576420)
329+
.putAllLabels(new HashMap<String, String>())
325330
.setError(Status.newBuilder().build())
326331
.build();
327332
mockTranscoderService.addResponse(expectedResponse);
@@ -430,6 +435,7 @@ public void createJobTemplateTest() throws Exception {
430435
JobTemplate.newBuilder()
431436
.setName(JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]").toString())
432437
.setConfig(JobConfig.newBuilder().build())
438+
.putAllLabels(new HashMap<String, String>())
433439
.build();
434440
mockTranscoderService.addResponse(expectedResponse);
435441

@@ -475,6 +481,7 @@ public void createJobTemplateTest2() throws Exception {
475481
JobTemplate.newBuilder()
476482
.setName(JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]").toString())
477483
.setConfig(JobConfig.newBuilder().build())
484+
.putAllLabels(new HashMap<String, String>())
478485
.build();
479486
mockTranscoderService.addResponse(expectedResponse);
480487

@@ -608,6 +615,7 @@ public void getJobTemplateTest() throws Exception {
608615
JobTemplate.newBuilder()
609616
.setName(JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]").toString())
610617
.setConfig(JobConfig.newBuilder().build())
618+
.putAllLabels(new HashMap<String, String>())
611619
.build();
612620
mockTranscoderService.addResponse(expectedResponse);
613621

@@ -647,6 +655,7 @@ public void getJobTemplateTest2() throws Exception {
647655
JobTemplate.newBuilder()
648656
.setName(JobTemplateName.of("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]").toString())
649657
.setConfig(JobConfig.newBuilder().build())
658+
.putAllLabels(new HashMap<String, String>())
650659
.build();
651660
mockTranscoderService.addResponse(expectedResponse);
652661

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

+21-7
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ public com.google.protobuf.ByteString getKeyBytes() {
197197
* <pre>
198198
* URI of the media. Input files must be at least 5 seconds in duration and
199199
* stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
200-
* If empty, the value will be populated from `Job.input_uri`.
200+
* If empty, the value is populated from `Job.input_uri`. See
201+
* [Supported input and output
202+
* formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
201203
* </pre>
202204
*
203205
* <code>string uri = 2;</code>
@@ -222,7 +224,9 @@ public java.lang.String getUri() {
222224
* <pre>
223225
* URI of the media. Input files must be at least 5 seconds in duration and
224226
* stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
225-
* If empty, the value will be populated from `Job.input_uri`.
227+
* If empty, the value is populated from `Job.input_uri`. See
228+
* [Supported input and output
229+
* formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
226230
* </pre>
227231
*
228232
* <code>string uri = 2;</code>
@@ -769,7 +773,9 @@ public Builder setKeyBytes(com.google.protobuf.ByteString value) {
769773
* <pre>
770774
* URI of the media. Input files must be at least 5 seconds in duration and
771775
* stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
772-
* If empty, the value will be populated from `Job.input_uri`.
776+
* If empty, the value is populated from `Job.input_uri`. See
777+
* [Supported input and output
778+
* formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
773779
* </pre>
774780
*
775781
* <code>string uri = 2;</code>
@@ -793,7 +799,9 @@ public java.lang.String getUri() {
793799
* <pre>
794800
* URI of the media. Input files must be at least 5 seconds in duration and
795801
* stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
796-
* If empty, the value will be populated from `Job.input_uri`.
802+
* If empty, the value is populated from `Job.input_uri`. See
803+
* [Supported input and output
804+
* formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
797805
* </pre>
798806
*
799807
* <code>string uri = 2;</code>
@@ -817,7 +825,9 @@ public com.google.protobuf.ByteString getUriBytes() {
817825
* <pre>
818826
* URI of the media. Input files must be at least 5 seconds in duration and
819827
* stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
820-
* If empty, the value will be populated from `Job.input_uri`.
828+
* If empty, the value is populated from `Job.input_uri`. See
829+
* [Supported input and output
830+
* formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
821831
* </pre>
822832
*
823833
* <code>string uri = 2;</code>
@@ -840,7 +850,9 @@ public Builder setUri(java.lang.String value) {
840850
* <pre>
841851
* URI of the media. Input files must be at least 5 seconds in duration and
842852
* stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
843-
* If empty, the value will be populated from `Job.input_uri`.
853+
* If empty, the value is populated from `Job.input_uri`. See
854+
* [Supported input and output
855+
* formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
844856
* </pre>
845857
*
846858
* <code>string uri = 2;</code>
@@ -859,7 +871,9 @@ public Builder clearUri() {
859871
* <pre>
860872
* URI of the media. Input files must be at least 5 seconds in duration and
861873
* stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
862-
* If empty, the value will be populated from `Job.input_uri`.
874+
* If empty, the value is populated from `Job.input_uri`. See
875+
* [Supported input and output
876+
* formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
863877
* </pre>
864878
*
865879
* <code>string uri = 2;</code>

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

+6-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ public interface InputOrBuilder
5656
* <pre>
5757
* URI of the media. Input files must be at least 5 seconds in duration and
5858
* stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
59-
* If empty, the value will be populated from `Job.input_uri`.
59+
* If empty, the value is populated from `Job.input_uri`. See
60+
* [Supported input and output
61+
* formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
6062
* </pre>
6163
*
6264
* <code>string uri = 2;</code>
@@ -70,7 +72,9 @@ public interface InputOrBuilder
7072
* <pre>
7173
* URI of the media. Input files must be at least 5 seconds in duration and
7274
* stored in Cloud Storage (for example, `gs://bucket/inputs/file.mp4`).
73-
* If empty, the value will be populated from `Job.input_uri`.
75+
* If empty, the value is populated from `Job.input_uri`. See
76+
* [Supported input and output
77+
* formats](https://cloud.google.com/transcoder/docs/concepts/supported-input-and-output-formats).
7478
* </pre>
7579
*
7680
* <code>string uri = 2;</code>

0 commit comments

Comments
 (0)