Skip to content

Commit f919e8a

Browse files
committed
test: integration goldens - update inline samples
1 parent fdd879a commit f919e8a

59 files changed

Lines changed: 1556 additions & 0 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.

test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceClient.java

Lines changed: 90 additions & 0 deletions
Large diffs are not rendered by default.

test/integration/goldens/asset/com/google/cloud/asset/v1/AssetServiceSettings.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858
* <p>For example, to set the total timeout of batchGetAssetsHistory to 30 seconds:
5959
*
6060
* <pre>{@code
61+
* // This snippet has been automatically generated for illustrative purposes only.
62+
* // It may require modifications to work in your environment.
6163
* AssetServiceSettings.Builder assetServiceSettingsBuilder = AssetServiceSettings.newBuilder();
6264
* assetServiceSettingsBuilder
6365
* .batchGetAssetsHistorySettings()

test/integration/goldens/asset/com/google/cloud/asset/v1/package-info.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
* <p>Sample for AssetServiceClient:
2525
*
2626
* <pre>{@code
27+
* // This snippet has been automatically generated for illustrative purposes only.
28+
* // It may require modifications to work in your environment.
2729
* try (AssetServiceClient assetServiceClient = AssetServiceClient.create()) {
2830
* BatchGetAssetsHistoryRequest request =
2931
* BatchGetAssetsHistoryRequest.newBuilder()

test/integration/goldens/asset/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@
102102
* <p>For example, to set the total timeout of batchGetAssetsHistory to 30 seconds:
103103
*
104104
* <pre>{@code
105+
* // This snippet has been automatically generated for illustrative purposes only.
106+
* // It may require modifications to work in your environment.
105107
* AssetServiceStubSettings.Builder assetServiceSettingsBuilder =
106108
* AssetServiceStubSettings.newBuilder();
107109
* assetServiceSettingsBuilder

test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252
* calls that map to API methods. Sample code to get started:
5353
*
5454
* <pre>{@code
55+
* // This snippet has been automatically generated for illustrative purposes only.
56+
* // It may require modifications to work in your environment.
5557
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
5658
* TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
5759
* ByteString rowKey = ByteString.EMPTY;
@@ -90,6 +92,8 @@
9092
* <p>To customize credentials:
9193
*
9294
* <pre>{@code
95+
* // This snippet has been automatically generated for illustrative purposes only.
96+
* // It may require modifications to work in your environment.
9397
* BaseBigtableDataSettings baseBigtableDataSettings =
9498
* BaseBigtableDataSettings.newBuilder()
9599
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -101,6 +105,8 @@
101105
* <p>To customize the endpoint:
102106
*
103107
* <pre>{@code
108+
* // This snippet has been automatically generated for illustrative purposes only.
109+
* // It may require modifications to work in your environment.
104110
* BaseBigtableDataSettings baseBigtableDataSettings =
105111
* BaseBigtableDataSettings.newBuilder().setEndpoint(myEndpoint).build();
106112
* BaseBigtableDataClient baseBigtableDataClient =
@@ -172,6 +178,8 @@ public BigtableStub getStub() {
172178
* <p>Sample code:
173179
*
174180
* <pre>{@code
181+
* // This snippet has been automatically generated for illustrative purposes only.
182+
* // It may require modifications to work in your environment.
175183
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
176184
* ReadRowsRequest request =
177185
* ReadRowsRequest.newBuilder()
@@ -202,6 +210,8 @@ public final ServerStreamingCallable<ReadRowsRequest, ReadRowsResponse> readRows
202210
* <p>Sample code:
203211
*
204212
* <pre>{@code
213+
* // This snippet has been automatically generated for illustrative purposes only.
214+
* // It may require modifications to work in your environment.
205215
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
206216
* SampleRowKeysRequest request =
207217
* SampleRowKeysRequest.newBuilder()
@@ -229,6 +239,8 @@ public final ServerStreamingCallable<ReadRowsRequest, ReadRowsResponse> readRows
229239
* <p>Sample code:
230240
*
231241
* <pre>{@code
242+
* // This snippet has been automatically generated for illustrative purposes only.
243+
* // It may require modifications to work in your environment.
232244
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
233245
* TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
234246
* ByteString rowKey = ByteString.EMPTY;
@@ -265,6 +277,8 @@ public final MutateRowResponse mutateRow(
265277
* <p>Sample code:
266278
*
267279
* <pre>{@code
280+
* // This snippet has been automatically generated for illustrative purposes only.
281+
* // It may require modifications to work in your environment.
268282
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
269283
* String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
270284
* ByteString rowKey = ByteString.EMPTY;
@@ -301,6 +315,8 @@ public final MutateRowResponse mutateRow(
301315
* <p>Sample code:
302316
*
303317
* <pre>{@code
318+
* // This snippet has been automatically generated for illustrative purposes only.
319+
* // It may require modifications to work in your environment.
304320
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
305321
* TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
306322
* ByteString rowKey = ByteString.EMPTY;
@@ -342,6 +358,8 @@ public final MutateRowResponse mutateRow(
342358
* <p>Sample code:
343359
*
344360
* <pre>{@code
361+
* // This snippet has been automatically generated for illustrative purposes only.
362+
* // It may require modifications to work in your environment.
345363
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
346364
* String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
347365
* ByteString rowKey = ByteString.EMPTY;
@@ -383,6 +401,8 @@ public final MutateRowResponse mutateRow(
383401
* <p>Sample code:
384402
*
385403
* <pre>{@code
404+
* // This snippet has been automatically generated for illustrative purposes only.
405+
* // It may require modifications to work in your environment.
386406
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
387407
* MutateRowRequest request =
388408
* MutateRowRequest.newBuilder()
@@ -410,6 +430,8 @@ public final MutateRowResponse mutateRow(MutateRowRequest request) {
410430
* <p>Sample code:
411431
*
412432
* <pre>{@code
433+
* // This snippet has been automatically generated for illustrative purposes only.
434+
* // It may require modifications to work in your environment.
413435
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
414436
* MutateRowRequest request =
415437
* MutateRowRequest.newBuilder()
@@ -437,6 +459,8 @@ public final UnaryCallable<MutateRowRequest, MutateRowResponse> mutateRowCallabl
437459
* <p>Sample code:
438460
*
439461
* <pre>{@code
462+
* // This snippet has been automatically generated for illustrative purposes only.
463+
* // It may require modifications to work in your environment.
440464
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
441465
* MutateRowsRequest request =
442466
* MutateRowsRequest.newBuilder()
@@ -463,6 +487,8 @@ public final ServerStreamingCallable<MutateRowsRequest, MutateRowsResponse> muta
463487
* <p>Sample code:
464488
*
465489
* <pre>{@code
490+
* // This snippet has been automatically generated for illustrative purposes only.
491+
* // It may require modifications to work in your environment.
466492
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
467493
* TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
468494
* ByteString rowKey = ByteString.EMPTY;
@@ -516,6 +542,8 @@ public final CheckAndMutateRowResponse checkAndMutateRow(
516542
* <p>Sample code:
517543
*
518544
* <pre>{@code
545+
* // This snippet has been automatically generated for illustrative purposes only.
546+
* // It may require modifications to work in your environment.
519547
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
520548
* String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
521549
* ByteString rowKey = ByteString.EMPTY;
@@ -569,6 +597,8 @@ public final CheckAndMutateRowResponse checkAndMutateRow(
569597
* <p>Sample code:
570598
*
571599
* <pre>{@code
600+
* // This snippet has been automatically generated for illustrative purposes only.
601+
* // It may require modifications to work in your environment.
572602
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
573603
* TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
574604
* ByteString rowKey = ByteString.EMPTY;
@@ -627,6 +657,8 @@ public final CheckAndMutateRowResponse checkAndMutateRow(
627657
* <p>Sample code:
628658
*
629659
* <pre>{@code
660+
* // This snippet has been automatically generated for illustrative purposes only.
661+
* // It may require modifications to work in your environment.
630662
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
631663
* String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
632664
* ByteString rowKey = ByteString.EMPTY;
@@ -685,6 +717,8 @@ public final CheckAndMutateRowResponse checkAndMutateRow(
685717
* <p>Sample code:
686718
*
687719
* <pre>{@code
720+
* // This snippet has been automatically generated for illustrative purposes only.
721+
* // It may require modifications to work in your environment.
688722
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
689723
* CheckAndMutateRowRequest request =
690724
* CheckAndMutateRowRequest.newBuilder()
@@ -713,6 +747,8 @@ public final CheckAndMutateRowResponse checkAndMutateRow(CheckAndMutateRowReques
713747
* <p>Sample code:
714748
*
715749
* <pre>{@code
750+
* // This snippet has been automatically generated for illustrative purposes only.
751+
* // It may require modifications to work in your environment.
716752
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
717753
* CheckAndMutateRowRequest request =
718754
* CheckAndMutateRowRequest.newBuilder()
@@ -745,6 +781,8 @@ public final CheckAndMutateRowResponse checkAndMutateRow(CheckAndMutateRowReques
745781
* <p>Sample code:
746782
*
747783
* <pre>{@code
784+
* // This snippet has been automatically generated for illustrative purposes only.
785+
* // It may require modifications to work in your environment.
748786
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
749787
* TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
750788
* ByteString rowKey = ByteString.EMPTY;
@@ -785,6 +823,8 @@ public final ReadModifyWriteRowResponse readModifyWriteRow(
785823
* <p>Sample code:
786824
*
787825
* <pre>{@code
826+
* // This snippet has been automatically generated for illustrative purposes only.
827+
* // It may require modifications to work in your environment.
788828
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
789829
* String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
790830
* ByteString rowKey = ByteString.EMPTY;
@@ -825,6 +865,8 @@ public final ReadModifyWriteRowResponse readModifyWriteRow(
825865
* <p>Sample code:
826866
*
827867
* <pre>{@code
868+
* // This snippet has been automatically generated for illustrative purposes only.
869+
* // It may require modifications to work in your environment.
828870
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
829871
* TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
830872
* ByteString rowKey = ByteString.EMPTY;
@@ -872,6 +914,8 @@ public final ReadModifyWriteRowResponse readModifyWriteRow(
872914
* <p>Sample code:
873915
*
874916
* <pre>{@code
917+
* // This snippet has been automatically generated for illustrative purposes only.
918+
* // It may require modifications to work in your environment.
875919
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
876920
* String tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
877921
* ByteString rowKey = ByteString.EMPTY;
@@ -916,6 +960,8 @@ public final ReadModifyWriteRowResponse readModifyWriteRow(
916960
* <p>Sample code:
917961
*
918962
* <pre>{@code
963+
* // This snippet has been automatically generated for illustrative purposes only.
964+
* // It may require modifications to work in your environment.
919965
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
920966
* ReadModifyWriteRowRequest request =
921967
* ReadModifyWriteRowRequest.newBuilder()
@@ -945,6 +991,8 @@ public final ReadModifyWriteRowResponse readModifyWriteRow(ReadModifyWriteRowReq
945991
* <p>Sample code:
946992
*
947993
* <pre>{@code
994+
* // This snippet has been automatically generated for illustrative purposes only.
995+
* // It may require modifications to work in your environment.
948996
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
949997
* ReadModifyWriteRowRequest request =
950998
* ReadModifyWriteRowRequest.newBuilder()

test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
* <p>For example, to set the total timeout of mutateRow to 30 seconds:
6464
*
6565
* <pre>{@code
66+
* // This snippet has been automatically generated for illustrative purposes only.
67+
* // It may require modifications to work in your environment.
6668
* BaseBigtableDataSettings.Builder baseBigtableDataSettingsBuilder =
6769
* BaseBigtableDataSettings.newBuilder();
6870
* baseBigtableDataSettingsBuilder

test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/package-info.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
* <p>Sample for BaseBigtableDataClient:
2525
*
2626
* <pre>{@code
27+
* // This snippet has been automatically generated for illustrative purposes only.
28+
* // It may require modifications to work in your environment.
2729
* try (BaseBigtableDataClient baseBigtableDataClient = BaseBigtableDataClient.create()) {
2830
* TableName tableName = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
2931
* ByteString rowKey = ByteString.EMPTY;

test/integration/goldens/bigtable/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@
7171
* <p>For example, to set the total timeout of mutateRow to 30 seconds:
7272
*
7373
* <pre>{@code
74+
* // This snippet has been automatically generated for illustrative purposes only.
75+
* // It may require modifications to work in your environment.
7476
* BigtableStubSettings.Builder baseBigtableDataSettingsBuilder =
7577
* BigtableStubSettings.newBuilder();
7678
* baseBigtableDataSettingsBuilder

0 commit comments

Comments
 (0)