Skip to content

Commit 5f9a593

Browse files
committed
fix note for default unary rpc
1 parent 0571bbc commit 5f9a593

File tree

8 files changed

+22
-22
lines changed

8 files changed

+22
-22
lines changed

src/main/java/com/google/api/generator/gapic/composer/SampleCodeHelperComposer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private static TryCatchStatement composeUnaryRpcDefaultMethodSampleCode(
9595
"Note: Not Implement yet. Holder for unary %s rpc method sample code.",
9696
(!method.hasLro() && !method.isPaged()
9797
? "default"
98-
: (method.hasLro() ? "lro" : "paged")));
98+
: (method.hasLro() ? "lro default" : "paged default")));
9999
return TryCatchStatement.builder()
100100
.setTryResourceExpr(assignClientVariableWithCreateMethodExpr(clientType))
101101
.setTryBody(Arrays.asList(createLineCommentStatement(content)))

src/test/java/com/google/api/generator/gapic/composer/goldens/EchoClient.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ public class EchoClient implements BackgroundResource {
326326
*
327327
* <pre>{@code
328328
* try (EchoClient echoClient = EchoClient.create()) {
329-
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
329+
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
330330
* }
331331
* }</pre>
332332
*
@@ -392,7 +392,7 @@ public class EchoClient implements BackgroundResource {
392392
*
393393
* <pre>{@code
394394
* try (EchoClient echoClient = EchoClient.create()) {
395-
* // Note: Not Implement yet. Holder for unary lro rpc method sample code.
395+
* // Note: Not Implement yet. Holder for unary lro default rpc method sample code.
396396
* }
397397
* }</pre>
398398
*

src/test/java/com/google/api/generator/gapic/composer/goldens/IdentityClient.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ public class IdentityClient implements BackgroundResource {
360360
*
361361
* <pre>{@code
362362
* try (IdentityClient identityClient = IdentityClient.create()) {
363-
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
363+
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
364364
* }
365365
* }</pre>
366366
*

test/integration/goldens/asset/AssetServiceClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public final OperationsClient getOperationsClient() {
170170
*
171171
* <pre>{@code
172172
* try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
173-
* // Note: Not Implement yet. Holder for unary lro rpc method sample code.
173+
* // Note: Not Implement yet. Holder for unary lro default rpc method sample code.
174174
* }
175175
* }</pre>
176176
*
@@ -644,7 +644,7 @@ public final SearchAllResourcesPagedResponse searchAllResources(
644644
*
645645
* <pre>{@code
646646
* try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
647-
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
647+
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
648648
* }
649649
* }</pre>
650650
*
@@ -750,7 +750,7 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies(String scope
750750
*
751751
* <pre>{@code
752752
* try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
753-
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
753+
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
754754
* }
755755
* }</pre>
756756
*

test/integration/goldens/logging/ConfigServiceV2Client.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public final ListBucketsPagedResponse listBuckets(String parent) {
295295
*
296296
* <pre>{@code
297297
* try (ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.create()) {
298-
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
298+
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
299299
* }
300300
* }</pre>
301301
*
@@ -533,7 +533,7 @@ public final ListSinksPagedResponse listSinks(String parent) {
533533
*
534534
* <pre>{@code
535535
* try (ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.create()) {
536-
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
536+
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
537537
* }
538538
* }</pre>
539539
*
@@ -1254,7 +1254,7 @@ public final ListExclusionsPagedResponse listExclusions(String parent) {
12541254
*
12551255
* <pre>{@code
12561256
* try (ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.create()) {
1257-
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
1257+
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
12581258
* }
12591259
* }</pre>
12601260
*

test/integration/goldens/logging/LoggingServiceV2Client.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ public final ListLogEntriesPagedResponse listLogEntries(
466466
*
467467
* <pre>{@code
468468
* try (LoggingServiceV2Client loggingServiceV2Client = LoggingServiceV2Client.create()) {
469-
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
469+
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
470470
* }
471471
* }</pre>
472472
*
@@ -511,7 +511,7 @@ public final ListLogEntriesPagedResponse listLogEntries(ListLogEntriesRequest re
511511
*
512512
* <pre>{@code
513513
* try (LoggingServiceV2Client loggingServiceV2Client = LoggingServiceV2Client.create()) {
514-
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
514+
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
515515
* }
516516
* }</pre>
517517
*
@@ -683,7 +683,7 @@ public final ListLogsPagedResponse listLogs(String parent) {
683683
*
684684
* <pre>{@code
685685
* try (LoggingServiceV2Client loggingServiceV2Client = LoggingServiceV2Client.create()) {
686-
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
686+
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
687687
* }
688688
* }</pre>
689689
*

test/integration/goldens/logging/MetricsServiceV2Client.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public final ListLogMetricsPagedResponse listLogMetrics(String parent) {
197197
*
198198
* <pre>{@code
199199
* try (MetricsServiceV2Client metricsServiceV2Client = MetricsServiceV2Client.create()) {
200-
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
200+
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
201201
* }
202202
* }</pre>
203203
*

test/integration/goldens/redis/CloudRedisClient.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public final ListInstancesPagedResponse listInstances(String parent) {
257257
*
258258
* <pre>{@code
259259
* try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
260-
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
260+
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
261261
* }
262262
* }</pre>
263263
*
@@ -502,7 +502,7 @@ public final OperationFuture<Instance, OperationMetadata> createInstanceAsync(
502502
*
503503
* <pre>{@code
504504
* try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
505-
* // Note: Not Implement yet. Holder for unary lro rpc method sample code.
505+
* // Note: Not Implement yet. Holder for unary lro default rpc method sample code.
506506
* }
507507
* }</pre>
508508
*
@@ -599,7 +599,7 @@ public final OperationFuture<Instance, OperationMetadata> updateInstanceAsync(
599599
*
600600
* <pre>{@code
601601
* try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
602-
* // Note: Not Implement yet. Holder for unary lro rpc method sample code.
602+
* // Note: Not Implement yet. Holder for unary lro default rpc method sample code.
603603
* }
604604
* }</pre>
605605
*
@@ -701,7 +701,7 @@ public final OperationFuture<Instance, OperationMetadata> upgradeInstanceAsync(
701701
*
702702
* <pre>{@code
703703
* try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
704-
* // Note: Not Implement yet. Holder for unary lro rpc method sample code.
704+
* // Note: Not Implement yet. Holder for unary lro default rpc method sample code.
705705
* }
706706
* }</pre>
707707
*
@@ -779,7 +779,7 @@ public final OperationFuture<Instance, OperationMetadata> importInstanceAsync(
779779
*
780780
* <pre>{@code
781781
* try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
782-
* // Note: Not Implement yet. Holder for unary lro rpc method sample code.
782+
* // Note: Not Implement yet. Holder for unary lro default rpc method sample code.
783783
* }
784784
* }</pre>
785785
*
@@ -867,7 +867,7 @@ public final OperationFuture<Instance, OperationMetadata> exportInstanceAsync(
867867
*
868868
* <pre>{@code
869869
* try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
870-
* // Note: Not Implement yet. Holder for unary lro rpc method sample code.
870+
* // Note: Not Implement yet. Holder for unary lro default rpc method sample code.
871871
* }
872872
* }</pre>
873873
*
@@ -979,7 +979,7 @@ public final OperationFuture<Instance, OperationMetadata> failoverInstanceAsync(
979979
*
980980
* <pre>{@code
981981
* try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
982-
* // Note: Not Implement yet. Holder for unary lro rpc method sample code.
982+
* // Note: Not Implement yet. Holder for unary lro default rpc method sample code.
983983
* }
984984
* }</pre>
985985
*
@@ -1069,7 +1069,7 @@ public final OperationFuture<Empty, OperationMetadata> deleteInstanceAsync(Strin
10691069
*
10701070
* <pre>{@code
10711071
* try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
1072-
* // Note: Not Implement yet. Holder for unary lro rpc method sample code.
1072+
* // Note: Not Implement yet. Holder for unary lro default rpc method sample code.
10731073
* }
10741074
* }</pre>
10751075
*

0 commit comments

Comments
 (0)