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

Commit d00f4ba

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#374)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: googleapis/googleapis@88f2ea3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9
1 parent 72bb447 commit d00f4ba

File tree

44 files changed

+417
-186
lines changed

Some content is hidden

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

44 files changed

+417
-186
lines changed

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

+190-76
Large diffs are not rendered by default.

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,17 @@
5555
* <p>For example, to set the total timeout of createJob to 30 seconds:
5656
*
5757
* <pre>{@code
58-
* // This snippet has been automatically generated for illustrative purposes only.
59-
* // It may require modifications to work in your environment.
58+
* // This snippet has been automatically generated and should be regarded as a code template only.
59+
* // It will require modifications to work:
60+
* // - It may require correct/in-range values for request initialization.
61+
* // - It may require specifying regional endpoints when creating the service client as shown in
62+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6063
* TranscoderServiceSettings.Builder transcoderServiceSettingsBuilder =
6164
* TranscoderServiceSettings.newBuilder();
6265
* transcoderServiceSettingsBuilder
6366
* .createJobSettings()
6467
* .setRetrySettings(
65-
* transcoderServiceSettingsBuilder
66-
* .createJobSettings()
67-
* .getRetrySettings()
68-
* .toBuilder()
68+
* transcoderServiceSettingsBuilder.createJobSettings().getRetrySettings().toBuilder()
6969
* .setTotalTimeout(Duration.ofSeconds(30))
7070
* .build());
7171
* TranscoderServiceSettings transcoderServiceSettings = transcoderServiceSettingsBuilder.build();

google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/package-info.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@
2828
* <p>Sample for TranscoderServiceClient:
2929
*
3030
* <pre>{@code
31-
* // This snippet has been automatically generated for illustrative purposes only.
32-
* // It may require modifications to work in your environment.
31+
* // This snippet has been automatically generated and should be regarded as a code template only.
32+
* // It will require modifications to work:
33+
* // - It may require correct/in-range values for request initialization.
34+
* // - It may require specifying regional endpoints when creating the service client as shown in
35+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3336
* try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
3437
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
3538
* Job job = Job.newBuilder().build();

google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/HttpJsonTranscoderServiceStub.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ public class HttpJsonTranscoderServiceStub extends TranscoderServiceStub {
8888
return fields;
8989
})
9090
.setRequestBodyExtractor(
91-
request -> ProtoRestSerializer.create().toBody("job", request.getJob()))
91+
request ->
92+
ProtoRestSerializer.create().toBody("job", request.getJob(), false))
9293
.build())
9394
.setResponseParser(
9495
ProtoMessageResponseParser.<Job>newBuilder()
@@ -229,7 +230,7 @@ public class HttpJsonTranscoderServiceStub extends TranscoderServiceStub {
229230
.setRequestBodyExtractor(
230231
request ->
231232
ProtoRestSerializer.create()
232-
.toBody("jobTemplate", request.getJobTemplate()))
233+
.toBody("jobTemplate", request.getJobTemplate(), false))
233234
.build())
234235
.setResponseParser(
235236
ProtoMessageResponseParser.<JobTemplate>newBuilder()

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,17 @@
8484
* <p>For example, to set the total timeout of createJob to 30 seconds:
8585
*
8686
* <pre>{@code
87-
* // This snippet has been automatically generated for illustrative purposes only.
88-
* // It may require modifications to work in your environment.
87+
* // This snippet has been automatically generated and should be regarded as a code template only.
88+
* // It will require modifications to work:
89+
* // - It may require correct/in-range values for request initialization.
90+
* // - It may require specifying regional endpoints when creating the service client as shown in
91+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8992
* TranscoderServiceStubSettings.Builder transcoderServiceSettingsBuilder =
9093
* TranscoderServiceStubSettings.newBuilder();
9194
* transcoderServiceSettingsBuilder
9295
* .createJobSettings()
9396
* .setRetrySettings(
94-
* transcoderServiceSettingsBuilder
95-
* .createJobSettings()
96-
* .getRetrySettings()
97-
* .toBuilder()
97+
* transcoderServiceSettingsBuilder.createJobSettings().getRetrySettings().toBuilder()
9898
* .setTotalTimeout(Duration.ofSeconds(30))
9999
* .build());
100100
* TranscoderServiceStubSettings transcoderServiceSettings =

samples/snippets/generated/com/google/cloud/video/transcoder/v1/stub/transcoderservicestubsettings/createjob/SyncCreateJob.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
2727
}
2828

2929
public static void syncCreateJob() throws Exception {
30-
// This snippet has been automatically generated for illustrative purposes only.
31-
// It may require modifications to work in your environment.
30+
// This snippet has been automatically generated and should be regarded as a code template only.
31+
// It will require modifications to work:
32+
// - It may require correct/in-range values for request initialization.
33+
// - It may require specifying regional endpoints when creating the service client as shown in
34+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3235
TranscoderServiceStubSettings.Builder transcoderServiceSettingsBuilder =
3336
TranscoderServiceStubSettings.newBuilder();
3437
transcoderServiceSettingsBuilder
3538
.createJobSettings()
3639
.setRetrySettings(
37-
transcoderServiceSettingsBuilder
38-
.createJobSettings()
39-
.getRetrySettings()
40-
.toBuilder()
40+
transcoderServiceSettingsBuilder.createJobSettings().getRetrySettings().toBuilder()
4141
.setTotalTimeout(Duration.ofSeconds(30))
4242
.build());
4343
TranscoderServiceStubSettings transcoderServiceSettings =

samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/create/SyncCreateSetCredentialsProvider.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
2929
}
3030

3131
public static void syncCreateSetCredentialsProvider() throws Exception {
32-
// This snippet has been automatically generated for illustrative purposes only.
33-
// It may require modifications to work in your environment.
32+
// This snippet has been automatically generated and should be regarded as a code template only.
33+
// It will require modifications to work:
34+
// - It may require correct/in-range values for request initialization.
35+
// - It may require specifying regional endpoints when creating the service client as shown in
36+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3437
TranscoderServiceSettings transcoderServiceSettings =
3538
TranscoderServiceSettings.newBuilder()
3639
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))

samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/create/SyncCreateSetCredentialsProvider1.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
2727
}
2828

2929
public static void syncCreateSetCredentialsProvider1() throws Exception {
30-
// This snippet has been automatically generated for illustrative purposes only.
31-
// It may require modifications to work in your environment.
30+
// This snippet has been automatically generated and should be regarded as a code template only.
31+
// It will require modifications to work:
32+
// - It may require correct/in-range values for request initialization.
33+
// - It may require specifying regional endpoints when creating the service client as shown in
34+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3235
TranscoderServiceSettings transcoderServiceSettings =
3336
TranscoderServiceSettings.newBuilder()
3437
.setTransportChannelProvider(

samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/create/SyncCreateSetEndpoint.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
2828
}
2929

3030
public static void syncCreateSetEndpoint() throws Exception {
31-
// This snippet has been automatically generated for illustrative purposes only.
32-
// It may require modifications to work in your environment.
31+
// This snippet has been automatically generated and should be regarded as a code template only.
32+
// It will require modifications to work:
33+
// - It may require correct/in-range values for request initialization.
34+
// - It may require specifying regional endpoints when creating the service client as shown in
35+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3336
TranscoderServiceSettings transcoderServiceSettings =
3437
TranscoderServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
3538
TranscoderServiceClient transcoderServiceClient =

samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjob/AsyncCreateJob.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
3030
}
3131

3232
public static void asyncCreateJob() throws Exception {
33-
// This snippet has been automatically generated for illustrative purposes only.
34-
// It may require modifications to work in your environment.
33+
// This snippet has been automatically generated and should be regarded as a code template only.
34+
// It will require modifications to work:
35+
// - It may require correct/in-range values for request initialization.
36+
// - It may require specifying regional endpoints when creating the service client as shown in
37+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3538
try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
3639
CreateJobRequest request =
3740
CreateJobRequest.newBuilder()

samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjob/SyncCreateJob.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
2929
}
3030

3131
public static void syncCreateJob() throws Exception {
32-
// This snippet has been automatically generated for illustrative purposes only.
33-
// It may require modifications to work in your environment.
32+
// This snippet has been automatically generated and should be regarded as a code template only.
33+
// It will require modifications to work:
34+
// - It may require correct/in-range values for request initialization.
35+
// - It may require specifying regional endpoints when creating the service client as shown in
36+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3437
try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
3538
CreateJobRequest request =
3639
CreateJobRequest.newBuilder()

samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjob/SyncCreateJobLocationnameJob.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
2828
}
2929

3030
public static void syncCreateJobLocationnameJob() throws Exception {
31-
// This snippet has been automatically generated for illustrative purposes only.
32-
// It may require modifications to work in your environment.
31+
// This snippet has been automatically generated and should be regarded as a code template only.
32+
// It will require modifications to work:
33+
// - It may require correct/in-range values for request initialization.
34+
// - It may require specifying regional endpoints when creating the service client as shown in
35+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3336
try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
3437
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
3538
Job job = Job.newBuilder().build();

samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjob/SyncCreateJobStringJob.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
2828
}
2929

3030
public static void syncCreateJobStringJob() throws Exception {
31-
// This snippet has been automatically generated for illustrative purposes only.
32-
// It may require modifications to work in your environment.
31+
// This snippet has been automatically generated and should be regarded as a code template only.
32+
// It will require modifications to work:
33+
// - It may require correct/in-range values for request initialization.
34+
// - It may require specifying regional endpoints when creating the service client as shown in
35+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3336
try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
3437
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
3538
Job job = Job.newBuilder().build();

samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjobtemplate/AsyncCreateJobTemplate.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
3030
}
3131

3232
public static void asyncCreateJobTemplate() throws Exception {
33-
// This snippet has been automatically generated for illustrative purposes only.
34-
// It may require modifications to work in your environment.
33+
// This snippet has been automatically generated and should be regarded as a code template only.
34+
// It will require modifications to work:
35+
// - It may require correct/in-range values for request initialization.
36+
// - It may require specifying regional endpoints when creating the service client as shown in
37+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3538
try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
3639
CreateJobTemplateRequest request =
3740
CreateJobTemplateRequest.newBuilder()

samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjobtemplate/SyncCreateJobTemplate.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
2929
}
3030

3131
public static void syncCreateJobTemplate() throws Exception {
32-
// This snippet has been automatically generated for illustrative purposes only.
33-
// It may require modifications to work in your environment.
32+
// This snippet has been automatically generated and should be regarded as a code template only.
33+
// It will require modifications to work:
34+
// - It may require correct/in-range values for request initialization.
35+
// - It may require specifying regional endpoints when creating the service client as shown in
36+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3437
try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
3538
CreateJobTemplateRequest request =
3639
CreateJobTemplateRequest.newBuilder()

samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjobtemplate/SyncCreateJobTemplateLocationnameJobtemplateString.java

+7-6
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717
package com.google.cloud.video.transcoder.v1.samples;
1818

19-
// [START
20-
// transcoder_v1_generated_transcoderserviceclient_createjobtemplate_locationnamejobtemplatestring_sync]
19+
// [START transcoder_v1_generated_transcoderserviceclient_createjobtemplate_locationnamejobtemplatestring_sync]
2120
import com.google.cloud.video.transcoder.v1.JobTemplate;
2221
import com.google.cloud.video.transcoder.v1.LocationName;
2322
import com.google.cloud.video.transcoder.v1.TranscoderServiceClient;
@@ -29,8 +28,11 @@ public static void main(String[] args) throws Exception {
2928
}
3029

3130
public static void syncCreateJobTemplateLocationnameJobtemplateString() throws Exception {
32-
// This snippet has been automatically generated for illustrative purposes only.
33-
// It may require modifications to work in your environment.
31+
// This snippet has been automatically generated and should be regarded as a code template only.
32+
// It will require modifications to work:
33+
// - It may require correct/in-range values for request initialization.
34+
// - It may require specifying regional endpoints when creating the service client as shown in
35+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3436
try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
3537
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
3638
JobTemplate jobTemplate = JobTemplate.newBuilder().build();
@@ -40,5 +42,4 @@ public static void syncCreateJobTemplateLocationnameJobtemplateString() throws E
4042
}
4143
}
4244
}
43-
// [END
44-
// transcoder_v1_generated_transcoderserviceclient_createjobtemplate_locationnamejobtemplatestring_sync]
45+
// [END transcoder_v1_generated_transcoderserviceclient_createjobtemplate_locationnamejobtemplatestring_sync]

samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/createjobtemplate/SyncCreateJobTemplateStringJobtemplateString.java

+7-6
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717
package com.google.cloud.video.transcoder.v1.samples;
1818

19-
// [START
20-
// transcoder_v1_generated_transcoderserviceclient_createjobtemplate_stringjobtemplatestring_sync]
19+
// [START transcoder_v1_generated_transcoderserviceclient_createjobtemplate_stringjobtemplatestring_sync]
2120
import com.google.cloud.video.transcoder.v1.JobTemplate;
2221
import com.google.cloud.video.transcoder.v1.LocationName;
2322
import com.google.cloud.video.transcoder.v1.TranscoderServiceClient;
@@ -29,8 +28,11 @@ public static void main(String[] args) throws Exception {
2928
}
3029

3130
public static void syncCreateJobTemplateStringJobtemplateString() throws Exception {
32-
// This snippet has been automatically generated for illustrative purposes only.
33-
// It may require modifications to work in your environment.
31+
// This snippet has been automatically generated and should be regarded as a code template only.
32+
// It will require modifications to work:
33+
// - It may require correct/in-range values for request initialization.
34+
// - It may require specifying regional endpoints when creating the service client as shown in
35+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3436
try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
3537
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
3638
JobTemplate jobTemplate = JobTemplate.newBuilder().build();
@@ -40,5 +42,4 @@ public static void syncCreateJobTemplateStringJobtemplateString() throws Excepti
4042
}
4143
}
4244
}
43-
// [END
44-
// transcoder_v1_generated_transcoderserviceclient_createjobtemplate_stringjobtemplatestring_sync]
45+
// [END transcoder_v1_generated_transcoderserviceclient_createjobtemplate_stringjobtemplatestring_sync]

samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejob/AsyncDeleteJob.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
3030
}
3131

3232
public static void asyncDeleteJob() throws Exception {
33-
// This snippet has been automatically generated for illustrative purposes only.
34-
// It may require modifications to work in your environment.
33+
// This snippet has been automatically generated and should be regarded as a code template only.
34+
// It will require modifications to work:
35+
// - It may require correct/in-range values for request initialization.
36+
// - It may require specifying regional endpoints when creating the service client as shown in
37+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3538
try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
3639
DeleteJobRequest request =
3740
DeleteJobRequest.newBuilder()

samples/snippets/generated/com/google/cloud/video/transcoder/v1/transcoderserviceclient/deletejob/SyncDeleteJob.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import com.google.cloud.video.transcoder.v1.DeleteJobRequest;
2121
import com.google.cloud.video.transcoder.v1.JobName;
2222
import com.google.cloud.video.transcoder.v1.TranscoderServiceClient;
23+
import com.google.protobuf.Empty;
2324

2425
public class SyncDeleteJob {
2526

@@ -28,8 +29,11 @@ public static void main(String[] args) throws Exception {
2829
}
2930

3031
public static void syncDeleteJob() throws Exception {
31-
// This snippet has been automatically generated for illustrative purposes only.
32-
// It may require modifications to work in your environment.
32+
// This snippet has been automatically generated and should be regarded as a code template only.
33+
// It will require modifications to work:
34+
// - It may require correct/in-range values for request initialization.
35+
// - It may require specifying regional endpoints when creating the service client as shown in
36+
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3337
try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
3438
DeleteJobRequest request =
3539
DeleteJobRequest.newBuilder()

0 commit comments

Comments
 (0)