GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [draft][5/5]Implement default unary rpc method's sample code by summer-ji-eng · Pull Request #517 · googleapis/sdk-platform-java

This repository was archived by the owner on Oct 29, 2026. It is now read-only.

Conversation

@summer-ji-eng

@summer-ji-eng summer-ji-eng commented Nov 18, 2020

Copy link
Copy Markdown
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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
summer-ji-eng added 10 commits November 18, 2020 11:39
@summer-ji-eng
Implement paged unary rpc method' sample code
2d8fd9d
@summer-ji-eng
rebase previous branch
30526c4
@summer-ji-eng
add missing request assignment expr
fae22c3
@summer-ji-eng
remove request assignment expr
761c134
@summer-ji-eng
run google format
29b5606
@summer-ji-eng
rebase previous branch
08c3440
@summer-ji-eng
add missing request assignment expr
611901c
@summer-ji-eng
rebase upstream
17faa41
@summer-ji-eng
Implement default unary rpc sample code
3b2d445
@summer-ji-eng
rebase branch33
82e7d38
@summer-ji-eng
summer-ji-eng requested review from miraleung and xiaozhenliu-gg5 as code owners November 18, 2020 19:47
@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
miraleung
miraleung reviewed Nov 19, 2020
View reviewed changes
Comment thread src/main/java/com/google/api/generator/gapic/composer/SampleCodeHelperComposer.java
.build();
}

private static Expr assignMethodArgumentWithDefaultValue(

@miraleung miraleung Nov 19, 2020

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

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?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
miraleung
miraleung suggested changes Nov 19, 2020
View reviewed changes
Comment thread src/main/java/com/google/api/generator/gapic/composer/SampleCodeHelperComposer.java Outdated

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

@miraleung miraleung Nov 19, 2020

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
summer-ji-eng added 2 commits November 20, 2020 00:38
@summer-ji-eng
Merge branch 'rpc_unary_lro_sc34' into rpc_unary_default_sc34
b5870a5
@summer-ji-eng
reuse variable expr, fix toString
3d7ce6b
@summer-ji-eng summer-ji-eng mentioned this pull request Nov 25, 2020
[composer][1/5]Outline Unary RPC methods' sample code implementation #506
Closed
@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

summer-ji-eng commented Dec 14, 2020

Copy link
Copy Markdown
Contributor Author

refactor in #594

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@summer-ji-eng summer-ji-eng closed this Dec 14, 2020
@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
@release-please
chore(main): release 1.6.11-SNAPSHOT (#517)
518bc48
🤖 I have created a release *beep* *boop*
---


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

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
suztomo pushed a commit that referenced this pull request Mar 21, 2023
@release-please
chore: release 2.5.0 (#517)
2847554
🤖 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).
suztomo pushed a commit that referenced this pull request Mar 21, 2023
@release-please
chore: release 2.0.4 (#517)
1e43088
🤖 I have created a release \*beep\* \*boop\*
---
### [2.0.4](https://www.github.com/googleapis/java-core/compare/v2.0.3...v2.0.4) (2021-08-11)


### Dependencies

* update dependency com.google.api:api-common to v2.0.1 ([#516](https://www.github.com/googleapis/java-core/issues/516)) ([0d08b09](https://www.github.com/googleapis/java-core/commit/0d08b09112f190f4f008d811e9f242cc2d928245))
---


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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@xiaozhenliu-gg5 xiaozhenliu-gg5 Awaiting requested review from xiaozhenliu-gg5
1 more reviewer
@miraleung miraleung miraleung requested changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@summer-ji-eng @miraleung
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.