Skip to content

Commit 291bd89

Browse files
chore: Update generation configuration at Mon Sep 16 02:26:47 UTC 2024 (#2336)
* chore: Update generation configuration at Fri Sep 6 15:18:33 UTC 2024 * chore: generate libraries at Fri Sep 6 15:19:00 UTC 2024 * restore recommended_package * chore: generate libraries at Fri Sep 6 15:29:00 UTC 2024 * chore: Update generation configuration at Sat Sep 7 02:18:55 UTC 2024 * chore: Update generation configuration at Sun Sep 8 02:24:26 UTC 2024 * chore: Update generation configuration at Tue Sep 10 02:21:43 UTC 2024 * chore: Update generation configuration at Tue Sep 10 19:31:11 UTC 2024 * chore: generate libraries at Tue Sep 10 19:31:36 UTC 2024 * chore: Update generation configuration at Wed Sep 11 02:20:51 UTC 2024 * chore: generate libraries at Wed Sep 11 02:21:17 UTC 2024 * chore: Update generation configuration at Thu Sep 12 02:21:25 UTC 2024 * chore: Update generation configuration at Fri Sep 13 02:22:02 UTC 2024 * chore: Update generation configuration at Sat Sep 14 02:20:20 UTC 2024 * chore: Update generation configuration at Mon Sep 16 02:26:47 UTC 2024 --------- Co-authored-by: Diego Marquez <[email protected]>
1 parent 8556574 commit 291bd89

File tree

304 files changed

+1514
-379
lines changed

Some content is hidden

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

304 files changed

+1514
-379
lines changed

.repo-metadata.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@
22
"api_shortname": "bigtable",
33
"name_pretty": "Cloud Bigtable",
44
"product_documentation": "https://cloud.google.com/bigtable",
5+
"api_description": "API for reading and writing the contents of Bigtables associated with a cloud project.",
56
"client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/history",
6-
"issue_tracker": "https://issuetracker.google.com/savedsearches/559777",
77
"release_level": "stable",
8+
"transport": "grpc",
89
"language": "java",
910
"repo": "googleapis/java-bigtable",
1011
"repo_short": "java-bigtable",
1112
"distribution_name": "com.google.cloud:google-cloud-bigtable",
12-
"codeowner_team": "@googleapis/api-bigtable @googleapis/api-bigtable-partners",
1313
"api_id": "bigtable.googleapis.com",
1414
"library_type": "GAPIC_COMBO",
15-
"extra_versioned_modules": "google-cloud-bigtable-emulator,google-cloud-bigtable-emulator-core",
15+
"requires_billing": true,
16+
"codeowner_team": "@googleapis/api-bigtable @googleapis/api-bigtable-partners",
1617
"excluded_poms": "google-cloud-bigtable-bom",
18+
"issue_tracker": "https://issuetracker.google.com/savedsearches/559777",
19+
"extra_versioned_modules": "google-cloud-bigtable-emulator,google-cloud-bigtable-emulator-core",
1720
"recommended_package": "com.google.cloud.bigtable"
18-
}
21+
}

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ The client application making API calls must be granted [authorization scopes][a
8080
### Prerequisites
8181

8282
You will need a [Google Cloud Platform Console][developer-console] project with the Cloud Bigtable [API enabled][enable-api].
83-
83+
You will need to [enable billing][enable-billing] to use Google Cloud Bigtable.
8484
[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by
8585
[installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line:
8686
`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`.
@@ -93,7 +93,7 @@ to add `google-cloud-bigtable` as a dependency in your code.
9393
## About Cloud Bigtable
9494

9595

96-
[Cloud Bigtable][product-docs]
96+
[Cloud Bigtable][product-docs] API for reading and writing the contents of Bigtables associated with a cloud project.
9797

9898
See the [Cloud Bigtable client library docs][javadocs] to learn how to
9999
use this Cloud Bigtable Client Library.
@@ -449,6 +449,10 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-bigtable/tree
449449

450450
To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting].
451451

452+
## Transport
453+
454+
Cloud Bigtable uses gRPC for the transport layer.
455+
452456
## Supported Java Versions
453457

454458
Java 8 or above is required for using this client.
@@ -553,7 +557,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
553557
[contributing]: https://github.com/googleapis/java-bigtable/blob/main/CONTRIBUTING.md
554558
[code-of-conduct]: https://github.com/googleapis/java-bigtable/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct
555559
[license]: https://github.com/googleapis/java-bigtable/blob/main/LICENSE
556-
560+
[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing
557561
[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=bigtable.googleapis.com
558562
[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM
559563
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png

generation_config.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
gapic_generator_version: 2.44.0
2-
googleapis_commitish: c93b54fa3060c7185f6dc724f0f9ec0c12bc44fc
3-
libraries_bom_version: 26.44.0
1+
gapic_generator_version: 2.45.0
2+
googleapis_commitish: 65306b92f03408d6de03589bdf970b78f2e4055c
3+
libraries_bom_version: 26.45.0
44
template_excludes:
55
- .gitignore
66
- .kokoro/presubmit/integration.cfg
@@ -32,6 +32,7 @@ libraries:
3232
library_type: GAPIC_COMBO
3333
extra_versioned_modules: google-cloud-bigtable-emulator,google-cloud-bigtable-emulator-core
3434
excluded_poms: google-cloud-bigtable-bom
35+
recommended_package: com.google.cloud.bigtable
3536
GAPICs:
3637
- proto_path: google/bigtable/v2
3738
- proto_path: google/bigtable/admin/v2

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableInstanceAdminStubSettings.java

Lines changed: 43 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@
106106
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
107107
* build() is called, the tree of builders is called to create the complete settings object.
108108
*
109-
* <p>For example, to set the total timeout of getInstance to 30 seconds:
109+
* <p>For example, to set the
110+
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
111+
* of getInstance:
110112
*
111113
* <pre>{@code
112114
* // This snippet has been automatically generated and should be regarded as a code template only.
@@ -123,11 +125,48 @@
123125
* .getInstanceSettings()
124126
* .getRetrySettings()
125127
* .toBuilder()
126-
* .setTotalTimeout(Duration.ofSeconds(30))
128+
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
129+
* .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
130+
* .setMaxAttempts(5)
131+
* .setMaxRetryDelayDuration(Duration.ofSeconds(30))
132+
* .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
133+
* .setRetryDelayMultiplier(1.3)
134+
* .setRpcTimeoutMultiplier(1.5)
135+
* .setTotalTimeoutDuration(Duration.ofSeconds(300))
127136
* .build());
128137
* BigtableInstanceAdminStubSettings baseBigtableInstanceAdminSettings =
129138
* baseBigtableInstanceAdminSettingsBuilder.build();
130139
* }</pre>
140+
*
141+
* Please refer to the [Client Side Retry
142+
* Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
143+
* additional support in setting retries.
144+
*
145+
* <p>To configure the RetrySettings of a Long Running Operation method, create an
146+
* OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
147+
* configure the RetrySettings for createInstance:
148+
*
149+
* <pre>{@code
150+
* // This snippet has been automatically generated and should be regarded as a code template only.
151+
* // It will require modifications to work:
152+
* // - It may require correct/in-range values for request initialization.
153+
* // - It may require specifying regional endpoints when creating the service client as shown in
154+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
155+
* BigtableInstanceAdminStubSettings.Builder baseBigtableInstanceAdminSettingsBuilder =
156+
* BigtableInstanceAdminStubSettings.newBuilder();
157+
* TimedRetryAlgorithm timedRetryAlgorithm =
158+
* OperationalTimedPollAlgorithm.create(
159+
* RetrySettings.newBuilder()
160+
* .setInitialRetryDelayDuration(Duration.ofMillis(500))
161+
* .setRetryDelayMultiplier(1.5)
162+
* .setMaxRetryDelay(Duration.ofMillis(5000))
163+
* .setTotalTimeoutDuration(Duration.ofHours(24))
164+
* .build());
165+
* baseBigtableInstanceAdminSettingsBuilder
166+
* .createClusterOperationSettings()
167+
* .setPollingAlgorithm(timedRetryAlgorithm)
168+
* .build();
169+
* }</pre>
131170
*/
132171
@Generated("by gapic-generator-java")
133172
public class BigtableInstanceAdminStubSettings
@@ -221,9 +260,7 @@ public String extractNextToken(ListAppProfilesResponse payload) {
221260

222261
@Override
223262
public Iterable<AppProfile> extractResources(ListAppProfilesResponse payload) {
224-
return payload.getAppProfilesList() == null
225-
? ImmutableList.<AppProfile>of()
226-
: payload.getAppProfilesList();
263+
return payload.getAppProfilesList();
227264
}
228265
};
229266

@@ -258,9 +295,7 @@ public String extractNextToken(ListHotTabletsResponse payload) {
258295

259296
@Override
260297
public Iterable<HotTablet> extractResources(ListHotTabletsResponse payload) {
261-
return payload.getHotTabletsList() == null
262-
? ImmutableList.<HotTablet>of()
263-
: payload.getHotTabletsList();
298+
return payload.getHotTabletsList();
264299
}
265300
};
266301

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableTableAdminStubSettings.java

Lines changed: 45 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@
124124
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
125125
* build() is called, the tree of builders is called to create the complete settings object.
126126
*
127-
* <p>For example, to set the total timeout of createTable to 30 seconds:
127+
* <p>For example, to set the
128+
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
129+
* of createTable:
128130
*
129131
* <pre>{@code
130132
* // This snippet has been automatically generated and should be regarded as a code template only.
@@ -141,11 +143,48 @@
141143
* .createTableSettings()
142144
* .getRetrySettings()
143145
* .toBuilder()
144-
* .setTotalTimeout(Duration.ofSeconds(30))
146+
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
147+
* .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
148+
* .setMaxAttempts(5)
149+
* .setMaxRetryDelayDuration(Duration.ofSeconds(30))
150+
* .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
151+
* .setRetryDelayMultiplier(1.3)
152+
* .setRpcTimeoutMultiplier(1.5)
153+
* .setTotalTimeoutDuration(Duration.ofSeconds(300))
145154
* .build());
146155
* BigtableTableAdminStubSettings baseBigtableTableAdminSettings =
147156
* baseBigtableTableAdminSettingsBuilder.build();
148157
* }</pre>
158+
*
159+
* Please refer to the [Client Side Retry
160+
* Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
161+
* additional support in setting retries.
162+
*
163+
* <p>To configure the RetrySettings of a Long Running Operation method, create an
164+
* OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
165+
* configure the RetrySettings for createTableFromSnapshot:
166+
*
167+
* <pre>{@code
168+
* // This snippet has been automatically generated and should be regarded as a code template only.
169+
* // It will require modifications to work:
170+
* // - It may require correct/in-range values for request initialization.
171+
* // - It may require specifying regional endpoints when creating the service client as shown in
172+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
173+
* BigtableTableAdminStubSettings.Builder baseBigtableTableAdminSettingsBuilder =
174+
* BigtableTableAdminStubSettings.newBuilder();
175+
* TimedRetryAlgorithm timedRetryAlgorithm =
176+
* OperationalTimedPollAlgorithm.create(
177+
* RetrySettings.newBuilder()
178+
* .setInitialRetryDelayDuration(Duration.ofMillis(500))
179+
* .setRetryDelayMultiplier(1.5)
180+
* .setMaxRetryDelay(Duration.ofMillis(5000))
181+
* .setTotalTimeoutDuration(Duration.ofHours(24))
182+
* .build());
183+
* baseBigtableTableAdminSettingsBuilder
184+
* .createClusterOperationSettings()
185+
* .setPollingAlgorithm(timedRetryAlgorithm)
186+
* .build();
187+
* }</pre>
149188
*/
150189
@Generated("by gapic-generator-java")
151190
public class BigtableTableAdminStubSettings extends StubSettings<BigtableTableAdminStubSettings> {
@@ -255,9 +294,7 @@ public String extractNextToken(ListTablesResponse payload) {
255294

256295
@Override
257296
public Iterable<Table> extractResources(ListTablesResponse payload) {
258-
return payload.getTablesList() == null
259-
? ImmutableList.<Table>of()
260-
: payload.getTablesList();
297+
return payload.getTablesList();
261298
}
262299
};
263300

@@ -295,9 +332,7 @@ public String extractNextToken(ListAuthorizedViewsResponse payload) {
295332

296333
@Override
297334
public Iterable<AuthorizedView> extractResources(ListAuthorizedViewsResponse payload) {
298-
return payload.getAuthorizedViewsList() == null
299-
? ImmutableList.<AuthorizedView>of()
300-
: payload.getAuthorizedViewsList();
335+
return payload.getAuthorizedViewsList();
301336
}
302337
};
303338

@@ -331,9 +366,7 @@ public String extractNextToken(ListSnapshotsResponse payload) {
331366

332367
@Override
333368
public Iterable<Snapshot> extractResources(ListSnapshotsResponse payload) {
334-
return payload.getSnapshotsList() == null
335-
? ImmutableList.<Snapshot>of()
336-
: payload.getSnapshotsList();
369+
return payload.getSnapshotsList();
337370
}
338371
};
339372

@@ -367,9 +400,7 @@ public String extractNextToken(ListBackupsResponse payload) {
367400

368401
@Override
369402
public Iterable<Backup> extractResources(ListBackupsResponse payload) {
370-
return payload.getBackupsList() == null
371-
? ImmutableList.<Backup>of()
372-
: payload.getBackupsList();
403+
return payload.getBackupsList();
373404
}
374405
};
375406

google-cloud-bigtable/src/main/resources/META-INF/native-image/com.google.cloud.bigtable.admin.v2/reflect-config.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,24 @@
305305
"allDeclaredClasses": true,
306306
"allPublicClasses": true
307307
},
308+
{
309+
"name": "com.google.api.PythonSettings$ExperimentalFeatures",
310+
"queryAllDeclaredConstructors": true,
311+
"queryAllPublicConstructors": true,
312+
"queryAllDeclaredMethods": true,
313+
"allPublicMethods": true,
314+
"allDeclaredClasses": true,
315+
"allPublicClasses": true
316+
},
317+
{
318+
"name": "com.google.api.PythonSettings$ExperimentalFeatures$Builder",
319+
"queryAllDeclaredConstructors": true,
320+
"queryAllPublicConstructors": true,
321+
"queryAllDeclaredMethods": true,
322+
"allPublicMethods": true,
323+
"allDeclaredClasses": true,
324+
"allPublicClasses": true
325+
},
308326
{
309327
"name": "com.google.api.ResourceDescriptor",
310328
"queryAllDeclaredConstructors": true,
@@ -440,6 +458,24 @@
440458
"allDeclaredClasses": true,
441459
"allPublicClasses": true
442460
},
461+
{
462+
"name": "com.google.bigtable.admin.v2.AppProfile$MultiClusterRoutingUseAny$RowAffinity",
463+
"queryAllDeclaredConstructors": true,
464+
"queryAllPublicConstructors": true,
465+
"queryAllDeclaredMethods": true,
466+
"allPublicMethods": true,
467+
"allDeclaredClasses": true,
468+
"allPublicClasses": true
469+
},
470+
{
471+
"name": "com.google.bigtable.admin.v2.AppProfile$MultiClusterRoutingUseAny$RowAffinity$Builder",
472+
"queryAllDeclaredConstructors": true,
473+
"queryAllPublicConstructors": true,
474+
"queryAllDeclaredMethods": true,
475+
"allPublicMethods": true,
476+
"allDeclaredClasses": true,
477+
"allPublicClasses": true
478+
},
443479
{
444480
"name": "com.google.bigtable.admin.v2.AppProfile$Priority",
445481
"queryAllDeclaredConstructors": true,

google-cloud-bigtable/src/main/resources/META-INF/native-image/com.google.cloud.bigtable.data.v2/reflect-config.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,24 @@
305305
"allDeclaredClasses": true,
306306
"allPublicClasses": true
307307
},
308+
{
309+
"name": "com.google.api.PythonSettings$ExperimentalFeatures",
310+
"queryAllDeclaredConstructors": true,
311+
"queryAllPublicConstructors": true,
312+
"queryAllDeclaredMethods": true,
313+
"allPublicMethods": true,
314+
"allDeclaredClasses": true,
315+
"allPublicClasses": true
316+
},
317+
{
318+
"name": "com.google.api.PythonSettings$ExperimentalFeatures$Builder",
319+
"queryAllDeclaredConstructors": true,
320+
"queryAllPublicConstructors": true,
321+
"queryAllDeclaredMethods": true,
322+
"allPublicMethods": true,
323+
"allDeclaredClasses": true,
324+
"allPublicClasses": true
325+
},
308326
{
309327
"name": "com.google.api.ResourceDescriptor",
310328
"queryAllDeclaredConstructors": true,

0 commit comments

Comments
 (0)