Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[draft][5/5]Implement default unary rpc method's sample code #517

Closed
wants to merge 12 commits into from

Conversation

summer-ji-eng
Copy link
Contributor

Default method generated from here

There are 3 kinds sample code for default unary rpc:

  1. pure unary rpc's sample code
  2. paged unary rpc's sample code
  3. lro unary rpc's sample code.

@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Nov 18, 2020
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 18, 2020
.setValueExpr(requestBuildExpr)
.build();
}

private static Expr assignMethodArgumentWithDefaultValue(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we refactor this so that we use the variable expr throughout (like one would do with Java programming) instead of recreating it several times?


if (method.isPaged()) {
// For loop on invoke client method's iterator with comment.
// e.g. for (EchoClient echoClient : echoClient.PagedExpand(request).iterateAll()) {//..}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line looks off, I'm not sure that iterateAll on that method would return a list of echoClients.

@summer-ji-eng summer-ji-eng changed the title [composer][5/5]Implement default unary rpc method's sample code [draft][5/5]Implement default unary rpc method's sample code Dec 1, 2020
@summer-ji-eng
Copy link
Contributor Author

refactor in #594

@summer-ji-eng summer-ji-eng deleted the rpc_unary_default_sc34 branch January 19, 2021 23:18
suztomo pushed a commit that referenced this pull request Dec 16, 2022
🤖 I have created a release *beep* *boop*
---


### Updating meta-information for bleeding-edge SNAPSHOT release.

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
suztomo pushed a commit that referenced this pull request Mar 21, 2023
🤖 I have created a release \*beep\* \*boop\*
---
## [2.5.0](https://www.github.com/googleapis/java-shared-dependencies/compare/2.4.0...v2.5.0) (2021-11-12)


### Features

* next release from main branch is 2.5.0 ([#510](https://www.github.com/googleapis/java-shared-dependencies/issues/510)) ([011be46](https://www.github.com/googleapis/java-shared-dependencies/commit/011be46db0ac3e1dfed31f078679a615757c4f55))


### Bug Fixes

* dependencies.sh to work with Java 17 ([#516](https://www.github.com/googleapis/java-shared-dependencies/issues/516)) ([b9c4b23](https://www.github.com/googleapis/java-shared-dependencies/commit/b9c4b23e5fdb5715d162057a43df5cbacac94acc))


### Dependencies

* update dependency com.google.api:api-common to v2.1.0 ([#508](https://www.github.com/googleapis/java-shared-dependencies/issues/508)) ([497ebf7](https://www.github.com/googleapis/java-shared-dependencies/commit/497ebf75e357688574fd9e9475b03ecc5bcbb723))
* update dependency com.google.auth:google-auth-library-bom to v1.2.2 ([#506](https://www.github.com/googleapis/java-shared-dependencies/issues/506)) ([b26fe14](https://www.github.com/googleapis/java-shared-dependencies/commit/b26fe140c251800090416a664538bd03affec264))
* update dependency com.google.auth:google-auth-library-bom to v1.3.0 ([#524](https://www.github.com/googleapis/java-shared-dependencies/issues/524)) ([615f0a9](https://www.github.com/googleapis/java-shared-dependencies/commit/615f0a9985f24a01c998583b0610a7df67421baf))
* update dependency com.google.code.gson:gson to v2.8.9 ([#509](https://www.github.com/googleapis/java-shared-dependencies/issues/509)) ([6d3efe9](https://www.github.com/googleapis/java-shared-dependencies/commit/6d3efe94a2ef062d5e7012a85c1b654d547f8a24))
* update dependency com.google.errorprone:error_prone_annotations to v2.10.0 ([#512](https://www.github.com/googleapis/java-shared-dependencies/issues/512)) ([ce4e329](https://www.github.com/googleapis/java-shared-dependencies/commit/ce4e3296f4cfe3df6dc94f8c067a2d609820ec88))
* update dependency com.google.protobuf:protobuf-bom to v3.19.1 ([#505](https://www.github.com/googleapis/java-shared-dependencies/issues/505)) ([59dc916](https://www.github.com/googleapis/java-shared-dependencies/commit/59dc916ba22ff2f5c59fe58631315030c86e9b77))
* update dependency io.grpc:grpc-bom to v1.42.1 ([#513](https://www.github.com/googleapis/java-shared-dependencies/issues/513)) ([ddeaf56](https://www.github.com/googleapis/java-shared-dependencies/commit/ddeaf56710b6bf89d14291491c05f97d1c230031))
* update dependency org.checkerframework:checker-qual to v3.19.0 ([#501](https://www.github.com/googleapis/java-shared-dependencies/issues/501)) ([8729670](https://www.github.com/googleapis/java-shared-dependencies/commit/87296708dcdcc5f35dc9b6ce5bfc5eba9cb54bbb))
* update dependency org.threeten:threetenbp to v1.5.2 ([#514](https://www.github.com/googleapis/java-shared-dependencies/issues/514)) ([34be959](https://www.github.com/googleapis/java-shared-dependencies/commit/34be9594cecb05cfec92bf44ce4695aa3c5cc68b))
* update gax.version to v2.7.0 ([#515](https://www.github.com/googleapis/java-shared-dependencies/issues/515)) ([2d288b4](https://www.github.com/googleapis/java-shared-dependencies/commit/2d288b49178e9809bfc314b053f9cedf8cf33fef))
* update google.core.version to v2.3.0 ([#530](https://www.github.com/googleapis/java-shared-dependencies/issues/530)) ([1d201fe](https://www.github.com/googleapis/java-shared-dependencies/commit/1d201fe452303f4ba31c23361cd1917b2d63e8a6))
* update iam.version to v1.1.7 ([#504](https://www.github.com/googleapis/java-shared-dependencies/issues/504)) ([ec3f58c](https://www.github.com/googleapis/java-shared-dependencies/commit/ec3f58ce7761c257c2eb12ba022a1e2dda8e4c05))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants