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

[composer][samplecode]Implement Setting Class Header Comment Sample Code #487

Merged
merged 42 commits into from
Nov 18, 2020

Conversation

summer-ji-eng
Copy link
Contributor

Generate sample code for ServiceSettingsClass header comment:

FoobarSettings.Builder foobarSettingsBuilder = FoobarSettings.newBuilder();
 foobarSettingsBuilder
   .<firstUnarySettingMethod>()
   .setRetrySettings(
       foobarSettingsBuilder
       .<firstUnarySettingMethod>()
       .getRetrySettings()
       .toBuilder()
       .setTotalTimeout(Duration.ofSeconds(30))
       .build());
FoobarSettings foobarSettings = foobarSettingsBuilder.build();

ServiceStubSettings header comment:

FoobarStubSettings.Builder foobarSettingsBuilder = FoobarSettings.newBuilder();
 foobarSettingsBuilder
   .<firstUnarySettingMethod>()
   .setRetrySettings(
       foobarSettingsBuilder
       .<firstUnarySettingMethod>()
       .getRetrySettings()
       .toBuilder()
       .setTotalTimeout(Duration.ofSeconds(30))
       .build());
FoobarStubSettings foobarSettings = foobarSettingsBuilder.build();

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 13, 2020
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Nov 16, 2020
Copy link
Contributor

@miraleung miraleung left a comment

Choose a reason for hiding this comment

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

LGTM with comments addressed.

@summer-ji-eng summer-ji-eng merged commit d3dce05 into master Nov 18, 2020
@summer-ji-eng summer-ji-eng deleted the setting_comment_sample_code_1 branch November 18, 2020 07:34
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
* chore(java): rename master branch to main

Source-Author: Neenu Shaji <[email protected]>
Source-Date: Mon Sep 27 10:04:11 2021 -0400
Source-Repo: googleapis/synthtool
Source-Sha: 67ab4f9f4272ad13f4b809de47fd0dec05f425ad
Source-Link: googleapis/synthtool@67ab4f9

* build: add jdk 17 to java units and dependency builds

* update dependencies.sh to not pass MaxPermSize when jdk 17 is used. MaxPermSize is an unrecognized flag in jdk 17.

Source-Author: BenWhitehead <[email protected]>
Source-Date: Mon Sep 27 11:34:46 2021 -0400
Source-Repo: googleapis/synthtool
Source-Sha: a4be3384ccb92364795d981f2863f6986fcee620
Source-Link: googleapis/synthtool@a4be338
suztomo pushed a commit that referenced this pull request Mar 21, 2023
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/e278faaf-4497-439c-a104-7bdeda21de9b/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

Source-Link: googleapis/synthtool@09c59c2
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.

3 participants