Skip to content

Commit 9d68bde

Browse files
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#745)
- [ ] 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 2a9d22b commit 9d68bde

File tree

226 files changed

+1136
-476
lines changed

Some content is hidden

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

226 files changed

+1136
-476
lines changed

tasks/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java

Lines changed: 5 additions & 2 deletions
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
CloudTasksSettings cloudTasksSettings =
3538
CloudTasksSettings.newBuilder()
3639
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))

tasks/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java

Lines changed: 5 additions & 2 deletions
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
CloudTasksSettings cloudTasksSettings =
3336
CloudTasksSettings.newBuilder()
3437
.setTransportChannelProvider(

tasks/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetEndpoint.java

Lines changed: 5 additions & 2 deletions
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
CloudTasksSettings cloudTasksSettings =
3437
CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build();
3538
CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);

tasks/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/AsyncCreateQueue.java

Lines changed: 5 additions & 2 deletions
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 asyncCreateQueue() 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 (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
3639
CreateQueueRequest request =
3740
CreateQueueRequest.newBuilder()

tasks/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueue.java

Lines changed: 5 additions & 2 deletions
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 syncCreateQueue() 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 (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
3538
CreateQueueRequest request =
3639
CreateQueueRequest.newBuilder()

tasks/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java

Lines changed: 5 additions & 2 deletions
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 syncCreateQueueLocationnameQueue() 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 (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
3437
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
3538
Queue queue = Queue.newBuilder().build();

tasks/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java

Lines changed: 5 additions & 2 deletions
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 syncCreateQueueStringQueue() 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 (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
3437
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
3538
Queue queue = Queue.newBuilder().build();

tasks/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/AsyncCreateTask.java

Lines changed: 5 additions & 2 deletions
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 asyncCreateTask() 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 (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
3639
CreateTaskRequest request =
3740
CreateTaskRequest.newBuilder()

tasks/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTask.java

Lines changed: 5 additions & 2 deletions
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 syncCreateTask() 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 (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
3538
CreateTaskRequest request =
3639
CreateTaskRequest.newBuilder()

tasks/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java

Lines changed: 5 additions & 2 deletions
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 syncCreateTaskQueuenameTask() 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 (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
3437
QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
3538
Task task = Task.newBuilder().build();

tasks/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java

Lines changed: 5 additions & 2 deletions
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 syncCreateTaskStringTask() 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 (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
3437
String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
3538
Task task = Task.newBuilder().build();

tasks/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java

Lines changed: 5 additions & 2 deletions
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 asyncDeleteQueue() 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 (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
3639
DeleteQueueRequest request =
3740
DeleteQueueRequest.newBuilder()

tasks/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueue.java

Lines changed: 5 additions & 2 deletions
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 syncDeleteQueue() 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 (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
3538
DeleteQueueRequest request =
3639
DeleteQueueRequest.newBuilder()

tasks/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java

Lines changed: 5 additions & 2 deletions
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 syncDeleteQueueQueuename() 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 (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
3437
QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
3538
cloudTasksClient.deleteQueue(name);

tasks/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java

Lines changed: 5 additions & 2 deletions
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 syncDeleteQueueString() 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 (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
3437
String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
3538
cloudTasksClient.deleteQueue(name);

tasks/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/AsyncDeleteTask.java

Lines changed: 5 additions & 2 deletions
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 asyncDeleteTask() 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 (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
3639
DeleteTaskRequest request =
3740
DeleteTaskRequest.newBuilder()

tasks/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTask.java

Lines changed: 5 additions & 2 deletions
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 syncDeleteTask() 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 (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
3538
DeleteTaskRequest request =
3639
DeleteTaskRequest.newBuilder()

tasks/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskString.java

Lines changed: 5 additions & 2 deletions
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 syncDeleteTaskString() 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 (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
3437
String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
3538
cloudTasksClient.deleteTask(name);

tasks/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java

Lines changed: 5 additions & 2 deletions
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 syncDeleteTaskTaskname() 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 (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
3437
TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
3538
cloudTasksClient.deleteTask(name);

tasks/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
3131
}
3232

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

tasks/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java

Lines changed: 5 additions & 2 deletions
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 syncGetIamPolicy() 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 (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
3639
GetIamPolicyRequest request =
3740
GetIamPolicyRequest.newBuilder()

tasks/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java

Lines changed: 5 additions & 2 deletions
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 syncGetIamPolicyResourcename() 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 (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
3538
ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
3639
Policy response = cloudTasksClient.getIamPolicy(resource);

0 commit comments

Comments
 (0)