Skip to content

Commit 4ce3082

Browse files
chore: Update generation configuration at Wed Sep 11 15:40:41 UTC 2024 (#1568)
* chore: Update generation configuration at Wed Sep 11 15:40:41 UTC 2024 * chore: generate libraries at Wed Sep 11 15:41:06 UTC 2024
1 parent 90811b6 commit 4ce3082

File tree

149 files changed

+303
-200
lines changed

Some content is hidden

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

149 files changed

+303
-200
lines changed

.repo-metadata.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@
22
"api_shortname": "datastore",
33
"name_pretty": "Cloud Datastore",
44
"product_documentation": "https://cloud.google.com/datastore",
5+
"api_description": "is a fully managed, schemaless database for\\nstoring non-relational data. Cloud Datastore automatically scales with\\nyour users and supports ACID transactions, high availability of reads and\\nwrites, strong consistency for reads and ancestor queries, and eventual\\nconsistency for all other queries.",
56
"client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-datastore/latest/history",
6-
"issue_tracker": "https://issuetracker.google.com/savedsearches/559768",
77
"release_level": "stable",
8+
"transport": "both",
89
"language": "java",
910
"repo": "googleapis/java-datastore",
1011
"repo_short": "java-datastore",
1112
"distribution_name": "com.google.cloud:google-cloud-datastore",
12-
"codeowner_team": "@googleapis/cloud-native-db-dpes @googleapis/api-datastore-sdk @googleapis/api-firestore-partners",
1313
"api_id": "datastore.googleapis.com",
1414
"library_type": "GAPIC_COMBO",
15-
"api_description": "is a fully managed, schemaless database for\nstoring non-relational data. Cloud Datastore automatically scales with\nyour users and supports ACID transactions, high availability of reads and\nwrites, strong consistency for reads and ancestor queries, and eventual\nconsistency for all other queries.",
15+
"requires_billing": true,
16+
"codeowner_team": "@googleapis/cloud-native-db-dpes @googleapis/api-datastore-sdk @googleapis/api-firestore-partners",
1617
"excluded_dependencies": "grpc-google-cloud-datastore-v1",
17-
"extra_versioned_modules": "datastore-v1-proto-client",
1818
"excluded_poms": "grpc-google-cloud-datastore-v1",
19+
"issue_tracker": "https://issuetracker.google.com/savedsearches/559768",
20+
"extra_versioned_modules": "datastore-v1-proto-client",
1921
"recommended_package": "com.google.cloud.datastore"
20-
}
22+
}

README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
1919
<dependency>
2020
<groupId>com.google.cloud</groupId>
2121
<artifactId>libraries-bom</artifactId>
22-
<version>26.41.0</version>
22+
<version>26.45.0</version>
2323
<type>pom</type>
2424
<scope>import</scope>
2525
</dependency>
@@ -50,20 +50,20 @@ If you are using Maven without the BOM, add this to your dependencies:
5050
If you are using Gradle 5.x or later, add this to your dependencies:
5151

5252
```Groovy
53-
implementation platform('com.google.cloud:libraries-bom:26.42.0')
53+
implementation platform('com.google.cloud:libraries-bom:26.45.0')
5454
5555
implementation 'com.google.cloud:google-cloud-datastore'
5656
```
5757
If you are using Gradle without BOM, add this to your dependencies:
5858

5959
```Groovy
60-
implementation 'com.google.cloud:google-cloud-datastore:2.20.2'
60+
implementation 'com.google.cloud:google-cloud-datastore:2.21.2'
6161
```
6262

6363
If you are using SBT, add this to your dependencies:
6464

6565
```Scala
66-
libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "2.20.2"
66+
libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "2.21.2"
6767
```
6868
<!-- {x-version-update-end} -->
6969

@@ -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 Datastore [API enabled][enable-api].
83-
83+
You will need to [enable billing][enable-billing] to use Google Cloud Datastore.
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,11 +93,7 @@ to add `google-cloud-datastore` as a dependency in your code.
9393
## About Cloud Datastore
9494

9595

96-
[Cloud Datastore][product-docs] is a fully managed, schemaless database for
97-
storing non-relational data. Cloud Datastore automatically scales with
98-
your users and supports ACID transactions, high availability of reads and
99-
writes, strong consistency for reads and ancestor queries, and eventual
100-
consistency for all other queries.
96+
[Cloud Datastore][product-docs] is a fully managed, schemaless database for\nstoring non-relational data. Cloud Datastore automatically scales with\nyour users and supports ACID transactions, high availability of reads and\nwrites, strong consistency for reads and ancestor queries, and eventual\nconsistency for all other queries.
10197

10298
See the [Cloud Datastore client library docs][javadocs] to learn how to
10399
use this Cloud Datastore Client Library.
@@ -356,7 +352,6 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-datastore/tre
356352

357353
| Sample | Source Code | Try it |
358354
| --------------------------- | --------------------------------- | ------ |
359-
| Native Image Datastore Sample | [source code](https://github.com/googleapis/java-datastore/blob/main/samples/native-image-sample/src/main/java/com/example/datastore/NativeImageDatastoreSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-datastore&page=editor&open_in_editor=samples/native-image-sample/src/main/java/com/example/datastore/NativeImageDatastoreSample.java) |
360355
| Quickstart Sample | [source code](https://github.com/googleapis/java-datastore/blob/main/samples/snippets/src/main/java/com/example/datastore/QuickstartSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-datastore&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/datastore/QuickstartSample.java) |
361356
| Avg Aggregation On Kind | [source code](https://github.com/googleapis/java-datastore/blob/main/samples/snippets/src/main/java/com/example/datastore/aggregation/AvgAggregationOnKind.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-datastore&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/datastore/aggregation/AvgAggregationOnKind.java) |
362357
| Avg Aggregation With Limit | [source code](https://github.com/googleapis/java-datastore/blob/main/samples/snippets/src/main/java/com/example/datastore/aggregation/AvgAggregationWithLimit.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-datastore&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/datastore/aggregation/AvgAggregationWithLimit.java) |
@@ -388,6 +383,10 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-datastore/tre
388383

389384
To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting].
390385

386+
## Transport
387+
388+
Cloud Datastore uses both gRPC and HTTP/JSON for the transport layer.
389+
391390
## Supported Java Versions
392391

393392
Java 8 or above is required for using this client.
@@ -480,7 +479,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
480479
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-datastore/java11.html
481480
[stability-image]: https://img.shields.io/badge/stability-stable-green
482481
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datastore.svg
483-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastore/2.20.2
482+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastore/2.21.2
484483
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
485484
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
486485
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
@@ -492,7 +491,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
492491
[contributing]: https://github.com/googleapis/java-datastore/blob/main/CONTRIBUTING.md
493492
[code-of-conduct]: https://github.com/googleapis/java-datastore/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct
494493
[license]: https://github.com/googleapis/java-datastore/blob/main/LICENSE
495-
494+
[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing
496495
[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=datastore.googleapis.com
497496
[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM
498497
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png

generation_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
gapic_generator_version: 2.45.0
2-
googleapis_commitish: 02f62c8e241a9f95f0d183785354e90e35388cbd
2+
googleapis_commitish: 41cd9dba9e88f707a663d6686148ae3dc24116b8
33
libraries_bom_version: 26.45.0
44
libraries:
55
- api_shortname: datastore

google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/DatastoreAdminSettings.java

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@
6565
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
6666
* build() is called, the tree of builders is called to create the complete settings object.
6767
*
68-
* <p>For example, to set the total timeout of getIndex to 30 seconds:
68+
* <p>For example, to set the
69+
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
70+
* of getIndex:
6971
*
7072
* <pre>{@code
7173
* // This snippet has been automatically generated and should be regarded as a code template only.
@@ -82,10 +84,47 @@
8284
* .getIndexSettings()
8385
* .getRetrySettings()
8486
* .toBuilder()
85-
* .setTotalTimeout(Duration.ofSeconds(30))
87+
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
88+
* .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
89+
* .setMaxAttempts(5)
90+
* .setMaxRetryDelayDuration(Duration.ofSeconds(30))
91+
* .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
92+
* .setRetryDelayMultiplier(1.3)
93+
* .setRpcTimeoutMultiplier(1.5)
94+
* .setTotalTimeoutDuration(Duration.ofSeconds(300))
8695
* .build());
8796
* DatastoreAdminSettings datastoreAdminSettings = datastoreAdminSettingsBuilder.build();
8897
* }</pre>
98+
*
99+
* Please refer to the [Client Side Retry
100+
* Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
101+
* additional support in setting retries.
102+
*
103+
* <p>To configure the RetrySettings of a Long Running Operation method, create an
104+
* OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
105+
* configure the RetrySettings for exportEntities:
106+
*
107+
* <pre>{@code
108+
* // This snippet has been automatically generated and should be regarded as a code template only.
109+
* // It will require modifications to work:
110+
* // - It may require correct/in-range values for request initialization.
111+
* // - It may require specifying regional endpoints when creating the service client as shown in
112+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
113+
* DatastoreAdminSettings.Builder datastoreAdminSettingsBuilder =
114+
* DatastoreAdminSettings.newBuilder();
115+
* TimedRetryAlgorithm timedRetryAlgorithm =
116+
* OperationalTimedPollAlgorithm.create(
117+
* RetrySettings.newBuilder()
118+
* .setInitialRetryDelayDuration(Duration.ofMillis(500))
119+
* .setRetryDelayMultiplier(1.5)
120+
* .setMaxRetryDelay(Duration.ofMillis(5000))
121+
* .setTotalTimeoutDuration(Duration.ofHours(24))
122+
* .build());
123+
* datastoreAdminSettingsBuilder
124+
* .createClusterOperationSettings()
125+
* .setPollingAlgorithm(timedRetryAlgorithm)
126+
* .build();
127+
* }</pre>
89128
*/
90129
@Generated("by gapic-generator-java")
91130
public class DatastoreAdminSettings extends ClientSettings<DatastoreAdminSettings> {

google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/DatastoreAdminStubSettings.java

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import com.google.api.core.ApiFunction;
2222
import com.google.api.core.ApiFuture;
2323
import com.google.api.core.BetaApi;
24+
import com.google.api.core.ObsoleteApi;
2425
import com.google.api.gax.core.GaxProperties;
2526
import com.google.api.gax.core.GoogleCredentialsProvider;
2627
import com.google.api.gax.core.InstantiatingExecutorProvider;
@@ -85,7 +86,9 @@
8586
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
8687
* build() is called, the tree of builders is called to create the complete settings object.
8788
*
88-
* <p>For example, to set the total timeout of getIndex to 30 seconds:
89+
* <p>For example, to set the
90+
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
91+
* of getIndex:
8992
*
9093
* <pre>{@code
9194
* // This snippet has been automatically generated and should be regarded as a code template only.
@@ -102,10 +105,47 @@
102105
* .getIndexSettings()
103106
* .getRetrySettings()
104107
* .toBuilder()
105-
* .setTotalTimeout(Duration.ofSeconds(30))
108+
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
109+
* .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
110+
* .setMaxAttempts(5)
111+
* .setMaxRetryDelayDuration(Duration.ofSeconds(30))
112+
* .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
113+
* .setRetryDelayMultiplier(1.3)
114+
* .setRpcTimeoutMultiplier(1.5)
115+
* .setTotalTimeoutDuration(Duration.ofSeconds(300))
106116
* .build());
107117
* DatastoreAdminStubSettings datastoreAdminSettings = datastoreAdminSettingsBuilder.build();
108118
* }</pre>
119+
*
120+
* Please refer to the [Client Side Retry
121+
* Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
122+
* additional support in setting retries.
123+
*
124+
* <p>To configure the RetrySettings of a Long Running Operation method, create an
125+
* OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
126+
* configure the RetrySettings for exportEntities:
127+
*
128+
* <pre>{@code
129+
* // This snippet has been automatically generated and should be regarded as a code template only.
130+
* // It will require modifications to work:
131+
* // - It may require correct/in-range values for request initialization.
132+
* // - It may require specifying regional endpoints when creating the service client as shown in
133+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
134+
* DatastoreAdminStubSettings.Builder datastoreAdminSettingsBuilder =
135+
* DatastoreAdminStubSettings.newBuilder();
136+
* TimedRetryAlgorithm timedRetryAlgorithm =
137+
* OperationalTimedPollAlgorithm.create(
138+
* RetrySettings.newBuilder()
139+
* .setInitialRetryDelayDuration(Duration.ofMillis(500))
140+
* .setRetryDelayMultiplier(1.5)
141+
* .setMaxRetryDelay(Duration.ofMillis(5000))
142+
* .setTotalTimeoutDuration(Duration.ofHours(24))
143+
* .build());
144+
* datastoreAdminSettingsBuilder
145+
* .createClusterOperationSettings()
146+
* .setPollingAlgorithm(timedRetryAlgorithm)
147+
* .build();
148+
* }</pre>
109149
*/
110150
@Generated("by gapic-generator-java")
111151
public class DatastoreAdminStubSettings extends StubSettings<DatastoreAdminStubSettings> {
@@ -163,9 +203,7 @@ public String extractNextToken(ListIndexesResponse payload) {
163203

164204
@Override
165205
public Iterable<Index> extractResources(ListIndexesResponse payload) {
166-
return payload.getIndexesList() == null
167-
? ImmutableList.<Index>of()
168-
: payload.getIndexesList();
206+
return payload.getIndexesList();
169207
}
170208
};
171209

@@ -270,6 +308,7 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild
270308
}
271309

272310
/** Returns the default service endpoint. */
311+
@ObsoleteApi("Use getEndpoint() instead")
273312
public static String getDefaultEndpoint() {
274313
return "datastore.googleapis.com:443";
275314
}

google-cloud-datastore/src/main/resources/META-INF/native-image/com.google.cloud.datastore.admin.v1/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,

proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CommonMetadata.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/datastore/admin/v1/datastore_admin.proto
1818

19-
// Protobuf Java Version: 3.25.3
19+
// Protobuf Java Version: 3.25.4
2020
package com.google.datastore.admin.v1;
2121

2222
/**

proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CommonMetadataOrBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/datastore/admin/v1/datastore_admin.proto
1818

19-
// Protobuf Java Version: 3.25.3
19+
// Protobuf Java Version: 3.25.4
2020
package com.google.datastore.admin.v1;
2121

2222
public interface CommonMetadataOrBuilder

proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/datastore/admin/v1/datastore_admin.proto
1818

19-
// Protobuf Java Version: 3.25.3
19+
// Protobuf Java Version: 3.25.4
2020
package com.google.datastore.admin.v1;
2121

2222
/**

proto-google-cloud-datastore-admin-v1/src/main/java/com/google/datastore/admin/v1/CreateIndexRequestOrBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// Generated by the protocol buffer compiler. DO NOT EDIT!
1717
// source: google/datastore/admin/v1/datastore_admin.proto
1818

19-
// Protobuf Java Version: 3.25.3
19+
// Protobuf Java Version: 3.25.4
2020
package com.google.datastore.admin.v1;
2121

2222
public interface CreateIndexRequestOrBuilder

0 commit comments

Comments
 (0)