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

Commit bc17256

Browse files
docs: generate sample code in the Java microgenerator (#351)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/e60e4eed-29ea-40db-9d76-db4f7b86bd2c/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 356341083 Source-Link: googleapis/googleapis@8d8c008
1 parent 05c3823 commit bc17256

File tree

7 files changed

+2486
-2
lines changed

7 files changed

+2486
-2
lines changed

β€Žgoogle-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java

Lines changed: 754 additions & 0 deletions
Large diffs are not rendered by default.

β€Žgoogle-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@
2323
* in their applications.
2424
*
2525
* <p>Sample for CloudTasksClient:
26+
*
27+
* <pre>{@code
28+
* try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
29+
* QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
30+
* Queue response = cloudTasksClient.getQueue(name);
31+
* }
32+
* }</pre>
2633
*/
2734
@Generated("by gapic-generator-java")
2835
package com.google.cloud.tasks.v2;

0 commit comments

Comments
 (0)