Skip to content

Commit

Permalink
fix note for default unary rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
summer-ji-eng committed Nov 18, 2020
1 parent 5b7a57c commit 0a5b153
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private static TryCatchStatement composeUnaryRpcDefaultMethodSampleCode(
"Note: Not Implement yet. Holder for unary %s rpc method sample code.",
(!method.hasLro() && !method.isPaged()
? "default"
: (method.hasLro() ? "lro" : "paged")));
: (method.hasLro() ? "lro default" : "paged default")));
return TryCatchStatement.builder()
.setTryResourceExpr(assignClientVariableWithCreateMethodExpr(clientType))
.setTryBody(Arrays.asList(createLineCommentStatement(content)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public class EchoClient implements BackgroundResource {
*
* <pre>{@code
* try (EchoClient echoClient = EchoClient.create()) {
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
* }
* }</pre>
*
Expand Down Expand Up @@ -392,7 +392,7 @@ public class EchoClient implements BackgroundResource {
*
* <pre>{@code
* try (EchoClient echoClient = EchoClient.create()) {
* // Note: Not Implement yet. Holder for unary lro rpc method sample code.
* // Note: Not Implement yet. Holder for unary lro default rpc method sample code.
* }
* }</pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ public class IdentityClient implements BackgroundResource {
*
* <pre>{@code
* try (IdentityClient identityClient = IdentityClient.create()) {
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
* }
* }</pre>
*
Expand Down
6 changes: 3 additions & 3 deletions test/integration/goldens/asset/AssetServiceClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public final OperationsClient getOperationsClient() {
*
* <pre>{@code
* try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
* // Note: Not Implement yet. Holder for unary lro rpc method sample code.
* // Note: Not Implement yet. Holder for unary lro default rpc method sample code.
* }
* }</pre>
*
Expand Down Expand Up @@ -644,7 +644,7 @@ public final SearchAllResourcesPagedResponse searchAllResources(
*
* <pre>{@code
* try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
* }
* }</pre>
*
Expand Down Expand Up @@ -750,7 +750,7 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies(String scope
*
* <pre>{@code
* try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
* }
* }</pre>
*
Expand Down
6 changes: 3 additions & 3 deletions test/integration/goldens/logging/ConfigServiceV2Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public final ListBucketsPagedResponse listBuckets(String parent) {
*
* <pre>{@code
* try (ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.create()) {
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
* }
* }</pre>
*
Expand Down Expand Up @@ -533,7 +533,7 @@ public final ListSinksPagedResponse listSinks(String parent) {
*
* <pre>{@code
* try (ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.create()) {
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
* }
* }</pre>
*
Expand Down Expand Up @@ -1254,7 +1254,7 @@ public final ListExclusionsPagedResponse listExclusions(String parent) {
*
* <pre>{@code
* try (ConfigServiceV2Client configServiceV2Client = ConfigServiceV2Client.create()) {
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
* }
* }</pre>
*
Expand Down
6 changes: 3 additions & 3 deletions test/integration/goldens/logging/LoggingServiceV2Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ public final ListLogEntriesPagedResponse listLogEntries(
*
* <pre>{@code
* try (LoggingServiceV2Client loggingServiceV2Client = LoggingServiceV2Client.create()) {
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
* }
* }</pre>
*
Expand Down Expand Up @@ -511,7 +511,7 @@ public final ListLogEntriesPagedResponse listLogEntries(ListLogEntriesRequest re
*
* <pre>{@code
* try (LoggingServiceV2Client loggingServiceV2Client = LoggingServiceV2Client.create()) {
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
* }
* }</pre>
*
Expand Down Expand Up @@ -683,7 +683,7 @@ public final ListLogsPagedResponse listLogs(String parent) {
*
* <pre>{@code
* try (LoggingServiceV2Client loggingServiceV2Client = LoggingServiceV2Client.create()) {
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
* }
* }</pre>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public final ListLogMetricsPagedResponse listLogMetrics(String parent) {
*
* <pre>{@code
* try (MetricsServiceV2Client metricsServiceV2Client = MetricsServiceV2Client.create()) {
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
* }
* }</pre>
*
Expand Down
16 changes: 8 additions & 8 deletions test/integration/goldens/redis/CloudRedisClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public final ListInstancesPagedResponse listInstances(String parent) {
*
* <pre>{@code
* try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
* // Note: Not Implement yet. Holder for unary paged rpc method sample code.
* // Note: Not Implement yet. Holder for unary paged default rpc method sample code.
* }
* }</pre>
*
Expand Down Expand Up @@ -502,7 +502,7 @@ public final OperationFuture<Instance, OperationMetadata> createInstanceAsync(
*
* <pre>{@code
* try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
* // Note: Not Implement yet. Holder for unary lro rpc method sample code.
* // Note: Not Implement yet. Holder for unary lro default rpc method sample code.
* }
* }</pre>
*
Expand Down Expand Up @@ -599,7 +599,7 @@ public final OperationFuture<Instance, OperationMetadata> updateInstanceAsync(
*
* <pre>{@code
* try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
* // Note: Not Implement yet. Holder for unary lro rpc method sample code.
* // Note: Not Implement yet. Holder for unary lro default rpc method sample code.
* }
* }</pre>
*
Expand Down Expand Up @@ -701,7 +701,7 @@ public final OperationFuture<Instance, OperationMetadata> upgradeInstanceAsync(
*
* <pre>{@code
* try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
* // Note: Not Implement yet. Holder for unary lro rpc method sample code.
* // Note: Not Implement yet. Holder for unary lro default rpc method sample code.
* }
* }</pre>
*
Expand Down Expand Up @@ -779,7 +779,7 @@ public final OperationFuture<Instance, OperationMetadata> importInstanceAsync(
*
* <pre>{@code
* try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
* // Note: Not Implement yet. Holder for unary lro rpc method sample code.
* // Note: Not Implement yet. Holder for unary lro default rpc method sample code.
* }
* }</pre>
*
Expand Down Expand Up @@ -867,7 +867,7 @@ public final OperationFuture<Instance, OperationMetadata> exportInstanceAsync(
*
* <pre>{@code
* try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
* // Note: Not Implement yet. Holder for unary lro rpc method sample code.
* // Note: Not Implement yet. Holder for unary lro default rpc method sample code.
* }
* }</pre>
*
Expand Down Expand Up @@ -979,7 +979,7 @@ public final OperationFuture<Instance, OperationMetadata> failoverInstanceAsync(
*
* <pre>{@code
* try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
* // Note: Not Implement yet. Holder for unary lro rpc method sample code.
* // Note: Not Implement yet. Holder for unary lro default rpc method sample code.
* }
* }</pre>
*
Expand Down Expand Up @@ -1069,7 +1069,7 @@ public final OperationFuture<Empty, OperationMetadata> deleteInstanceAsync(Strin
*
* <pre>{@code
* try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) {
* // Note: Not Implement yet. Holder for unary lro rpc method sample code.
* // Note: Not Implement yet. Holder for unary lro default rpc method sample code.
* }
* }</pre>
*
Expand Down

0 comments on commit 0a5b153

Please sign in to comment.