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

chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions #374

Merged
merged 2 commits into from
Sep 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-video-transcoder</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
</dependency>
```

If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-video-transcoder:1.2.1'
implementation 'com.google.cloud:google-cloud-video-transcoder:1.2.2'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.2.1"
libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.2.2"
```

## Authentication
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@
* <p>For example, to set the total timeout of createJob to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* TranscoderServiceSettings.Builder transcoderServiceSettingsBuilder =
* TranscoderServiceSettings.newBuilder();
* transcoderServiceSettingsBuilder
* .createJobSettings()
* .setRetrySettings(
* transcoderServiceSettingsBuilder
* .createJobSettings()
* .getRetrySettings()
* .toBuilder()
* transcoderServiceSettingsBuilder.createJobSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* TranscoderServiceSettings transcoderServiceSettings = transcoderServiceSettingsBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@
* <p>Sample for TranscoderServiceClient:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* Job job = Job.newBuilder().build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ public class HttpJsonTranscoderServiceStub extends TranscoderServiceStub {
return fields;
})
.setRequestBodyExtractor(
request -> ProtoRestSerializer.create().toBody("job", request.getJob()))
request ->
ProtoRestSerializer.create().toBody("job", request.getJob(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Job>newBuilder()
Expand Down Expand Up @@ -229,7 +230,7 @@ public class HttpJsonTranscoderServiceStub extends TranscoderServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("jobTemplate", request.getJobTemplate()))
.toBody("jobTemplate", request.getJobTemplate(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<JobTemplate>newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,17 @@
* <p>For example, to set the total timeout of createJob to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* TranscoderServiceStubSettings.Builder transcoderServiceSettingsBuilder =
* TranscoderServiceStubSettings.newBuilder();
* transcoderServiceSettingsBuilder
* .createJobSettings()
* .setRetrySettings(
* transcoderServiceSettingsBuilder
* .createJobSettings()
* .getRetrySettings()
* .toBuilder()
* transcoderServiceSettingsBuilder.createJobSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* TranscoderServiceStubSettings transcoderServiceSettings =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception {
}

public static void syncCreateJob() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
TranscoderServiceStubSettings.Builder transcoderServiceSettingsBuilder =
TranscoderServiceStubSettings.newBuilder();
transcoderServiceSettingsBuilder
.createJobSettings()
.setRetrySettings(
transcoderServiceSettingsBuilder
.createJobSettings()
.getRetrySettings()
.toBuilder()
transcoderServiceSettingsBuilder.createJobSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
TranscoderServiceStubSettings transcoderServiceSettings =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncCreateSetCredentialsProvider() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
TranscoderServiceSettings transcoderServiceSettings =
TranscoderServiceSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncCreateSetCredentialsProvider1() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
TranscoderServiceSettings transcoderServiceSettings =
TranscoderServiceSettings.newBuilder()
.setTransportChannelProvider(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncCreateSetEndpoint() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
TranscoderServiceSettings transcoderServiceSettings =
TranscoderServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
TranscoderServiceClient transcoderServiceClient =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}

public static void asyncCreateJob() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
CreateJobRequest request =
CreateJobRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncCreateJob() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
CreateJobRequest request =
CreateJobRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncCreateJobLocationnameJob() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Job job = Job.newBuilder().build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncCreateJobStringJob() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Job job = Job.newBuilder().build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}

public static void asyncCreateJobTemplate() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
CreateJobTemplateRequest request =
CreateJobTemplateRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}

public static void syncCreateJobTemplate() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
CreateJobTemplateRequest request =
CreateJobTemplateRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

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

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

public static void syncCreateJobTemplateLocationnameJobtemplateString() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
JobTemplate jobTemplate = JobTemplate.newBuilder().build();
Expand All @@ -40,5 +42,4 @@ public static void syncCreateJobTemplateLocationnameJobtemplateString() throws E
}
}
}
// [END
// transcoder_v1_generated_transcoderserviceclient_createjobtemplate_locationnamejobtemplatestring_sync]
// [END transcoder_v1_generated_transcoderserviceclient_createjobtemplate_locationnamejobtemplatestring_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

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

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

public static void syncCreateJobTemplateStringJobtemplateString() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
JobTemplate jobTemplate = JobTemplate.newBuilder().build();
Expand All @@ -40,5 +42,4 @@ public static void syncCreateJobTemplateStringJobtemplateString() throws Excepti
}
}
}
// [END
// transcoder_v1_generated_transcoderserviceclient_createjobtemplate_stringjobtemplatestring_sync]
// [END transcoder_v1_generated_transcoderserviceclient_createjobtemplate_stringjobtemplatestring_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}

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