Skip to content

Commit ac0c79a

Browse files
committed
test: update goldens - include inline comment
1 parent 530edd4 commit ac0c79a

133 files changed

Lines changed: 5685 additions & 215 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import javax.annotation.Generated;
1616
* that map to API methods. Sample code to get started:
1717
*
1818
* <pre>{@code
19+
* // This snippet has been automatically generated for illustrative purposes only.
20+
* // It may require modifications to work in your environment.
1921
* try (BookshopClient bookshopClient = BookshopClient.create()) {
2022
* int booksCount = 1618425911;
2123
* List<Book> books = new ArrayList<>();
@@ -52,6 +54,8 @@ import javax.annotation.Generated;
5254
* <p>To customize credentials:
5355
*
5456
* <pre>{@code
57+
* // This snippet has been automatically generated for illustrative purposes only.
58+
* // It may require modifications to work in your environment.
5559
* BookshopSettings bookshopSettings =
5660
* BookshopSettings.newBuilder()
5761
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -62,6 +66,8 @@ import javax.annotation.Generated;
6266
* <p>To customize the endpoint:
6367
*
6468
* <pre>{@code
69+
* // This snippet has been automatically generated for illustrative purposes only.
70+
* // It may require modifications to work in your environment.
6571
* BookshopSettings bookshopSettings =
6672
* BookshopSettings.newBuilder().setEndpoint(myEndpoint).build();
6773
* BookshopClient bookshopClient = BookshopClient.create(bookshopSettings);
@@ -126,6 +132,8 @@ public class BookshopClient implements BackgroundResource {
126132
* Sample code:
127133
*
128134
* <pre>{@code
135+
* // This snippet has been automatically generated for illustrative purposes only.
136+
* // It may require modifications to work in your environment.
129137
* try (BookshopClient bookshopClient = BookshopClient.create()) {
130138
* int booksCount = 1618425911;
131139
* List<Book> books = new ArrayList<>();
@@ -148,6 +156,8 @@ public class BookshopClient implements BackgroundResource {
148156
* Sample code:
149157
*
150158
* <pre>{@code
159+
* // This snippet has been automatically generated for illustrative purposes only.
160+
* // It may require modifications to work in your environment.
151161
* try (BookshopClient bookshopClient = BookshopClient.create()) {
152162
* String booksList = "booksList2-1119589686";
153163
* List<Book> books = new ArrayList<>();
@@ -170,6 +180,8 @@ public class BookshopClient implements BackgroundResource {
170180
* Sample code:
171181
*
172182
* <pre>{@code
183+
* // This snippet has been automatically generated for illustrative purposes only.
184+
* // It may require modifications to work in your environment.
173185
* try (BookshopClient bookshopClient = BookshopClient.create()) {
174186
* GetBookRequest request =
175187
* GetBookRequest.newBuilder()
@@ -193,6 +205,8 @@ public class BookshopClient implements BackgroundResource {
193205
* Sample code:
194206
*
195207
* <pre>{@code
208+
* // This snippet has been automatically generated for illustrative purposes only.
209+
* // It may require modifications to work in your environment.
196210
* try (BookshopClient bookshopClient = BookshopClient.create()) {
197211
* GetBookRequest request =
198212
* GetBookRequest.newBuilder()

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import javax.annotation.Generated;
1616
* that map to API methods. Sample code to get started:
1717
*
1818
* <pre>{@code
19+
* // This snippet has been automatically generated for illustrative purposes only.
20+
* // It may require modifications to work in your environment.
1921
* try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
2022
* FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
2123
* deprecatedServiceClient.fastFibonacci(request);
@@ -52,6 +54,8 @@ import javax.annotation.Generated;
5254
* <p>To customize credentials:
5355
*
5456
* <pre>{@code
57+
* // This snippet has been automatically generated for illustrative purposes only.
58+
* // It may require modifications to work in your environment.
5559
* DeprecatedServiceSettings deprecatedServiceSettings =
5660
* DeprecatedServiceSettings.newBuilder()
5761
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -63,6 +67,8 @@ import javax.annotation.Generated;
6367
* <p>To customize the endpoint:
6468
*
6569
* <pre>{@code
70+
* // This snippet has been automatically generated for illustrative purposes only.
71+
* // It may require modifications to work in your environment.
6672
* DeprecatedServiceSettings deprecatedServiceSettings =
6773
* DeprecatedServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
6874
* DeprecatedServiceClient deprecatedServiceClient =
@@ -132,6 +138,8 @@ public class DeprecatedServiceClient implements BackgroundResource {
132138
* Sample code:
133139
*
134140
* <pre>{@code
141+
* // This snippet has been automatically generated for illustrative purposes only.
142+
* // It may require modifications to work in your environment.
135143
* try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
136144
* FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
137145
* deprecatedServiceClient.fastFibonacci(request);
@@ -150,6 +158,8 @@ public class DeprecatedServiceClient implements BackgroundResource {
150158
* Sample code:
151159
*
152160
* <pre>{@code
161+
* // This snippet has been automatically generated for illustrative purposes only.
162+
* // It may require modifications to work in your environment.
153163
* try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
154164
* FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
155165
* ApiFuture<Empty> future = deprecatedServiceClient.fastFibonacciCallable().futureCall(request);
@@ -167,6 +177,8 @@ public class DeprecatedServiceClient implements BackgroundResource {
167177
* Sample code:
168178
*
169179
* <pre>{@code
180+
* // This snippet has been automatically generated for illustrative purposes only.
181+
* // It may require modifications to work in your environment.
170182
* try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
171183
* FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
172184
* deprecatedServiceClient.slowFibonacci(request);
@@ -187,6 +199,8 @@ public class DeprecatedServiceClient implements BackgroundResource {
187199
* Sample code:
188200
*
189201
* <pre>{@code
202+
* // This snippet has been automatically generated for illustrative purposes only.
203+
* // It may require modifications to work in your environment.
190204
* try (DeprecatedServiceClient deprecatedServiceClient = DeprecatedServiceClient.create()) {
191205
* FibonacciRequest request = FibonacciRequest.newBuilder().setValue(111972721).build();
192206
* ApiFuture<Empty> future = deprecatedServiceClient.slowFibonacciCallable().futureCall(request);

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ import javax.annotation.Generated;
3535
* <p>For example, to set the total timeout of fastFibonacci to 30 seconds:
3636
*
3737
* <pre>{@code
38+
* // This snippet has been automatically generated for illustrative purposes only.
39+
* // It may require modifications to work in your environment.
3840
* DeprecatedServiceSettings.Builder deprecatedServiceSettingsBuilder =
3941
* DeprecatedServiceSettings.newBuilder();
4042
* deprecatedServiceSettingsBuilder

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ import org.threeten.bp.Duration;
4444
* <p>For example, to set the total timeout of fastFibonacci to 30 seconds:
4545
*
4646
* <pre>{@code
47+
* // This snippet has been automatically generated for illustrative purposes only.
48+
* // It may require modifications to work in your environment.
4749
* DeprecatedServiceStubSettings.Builder deprecatedServiceSettingsBuilder =
4850
* DeprecatedServiceStubSettings.newBuilder();
4951
* deprecatedServiceSettingsBuilder

0 commit comments

Comments
 (0)