Skip to content

Commit b13ecfc

Browse files
test: disable retry-request for streaming tests (#1127)
* fix: fix typings for IAM methods docs: fixed links in the generated Markdown documentation PiperOrigin-RevId: 551610576 Source-Link: googleapis/googleapis@73b1313 Source-Link: googleapis/googleapis-gen@8bec066 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGJlYzA2NjQ5MmE2ZGEyODU1YjFiOGNlNTYyNjY0YzBhNmIzMGIwMSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * docs: Specify limit for `properties` in `Index` message in Datastore Admin API docs: Minor formatting in Datastore Admin API PiperOrigin-RevId: 551819875 Source-Link: googleapis/googleapis@3db8b01 Source-Link: googleapis/googleapis-gen@7ebf113 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiN2ViZjExMzc2MzliOTM2MTNlNmE2MjA2NjU0YTViYThmMjFlOTMyMSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: publish proto definitions for SUM/AVG in Datastore PiperOrigin-RevId: 552847139 Source-Link: googleapis/googleapis@6148e5b Source-Link: googleapis/googleapis-gen@96be51b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTZiZTUxYjk5NTA0N2JmZGVmNDgyNTE3ODUzOWUyMzg1ODMxMDFhOSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * test: disable retry-request for streaming tests PiperOrigin-RevId: 554648220 Source-Link: googleapis/googleapis@53cd9ad Source-Link: googleapis/googleapis-gen@7e8867e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiN2U4ODY3ZWZiZWQ3ZGJmZTVlZjZlYzNjMmM5MmE0YmNlNDI4MGY3YSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: sofisl <[email protected]>
1 parent 4caf162 commit b13ecfc

19 files changed

+1665
-179
lines changed

protos/google/datastore/admin/v1/datastore_admin.proto

Lines changed: 43 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -34,65 +34,51 @@ option ruby_package = "Google::Cloud::Datastore::Admin::V1";
3434

3535
// Google Cloud Datastore Admin API
3636
//
37-
//
3837
// The Datastore Admin API provides several admin services for Cloud Datastore.
3938
//
40-
// -----------------------------------------------------------------------------
41-
// ## Concepts
42-
//
43-
// Project, namespace, kind, and entity as defined in the Google Cloud Datastore
44-
// API.
39+
// Concepts: Project, namespace, kind, and entity as defined in the Google Cloud
40+
// Datastore API.
4541
//
4642
// Operation: An Operation represents work being performed in the background.
4743
//
4844
// EntityFilter: Allows specifying a subset of entities in a project. This is
4945
// specified as a combination of kinds and namespaces (either or both of which
5046
// may be all).
5147
//
52-
// -----------------------------------------------------------------------------
53-
// ## Services
54-
//
55-
// # Export/Import
48+
// Export/Import Service:
5649
//
57-
// The Export/Import service provides the ability to copy all or a subset of
50+
// - The Export/Import service provides the ability to copy all or a subset of
5851
// entities to/from Google Cloud Storage.
59-
//
60-
// Exported data may be imported into Cloud Datastore for any Google Cloud
52+
// - Exported data may be imported into Cloud Datastore for any Google Cloud
6153
// Platform project. It is not restricted to the export source project. It is
6254
// possible to export from one project and then import into another.
63-
//
64-
// Exported data can also be loaded into Google BigQuery for analysis.
65-
//
66-
// Exports and imports are performed asynchronously. An Operation resource is
55+
// - Exported data can also be loaded into Google BigQuery for analysis.
56+
// - Exports and imports are performed asynchronously. An Operation resource is
6757
// created for each export/import. The state (including any errors encountered)
6858
// of the export/import may be queried via the Operation resource.
6959
//
70-
// # Index
60+
// Index Service:
7161
//
72-
// The index service manages Cloud Datastore composite indexes.
73-
//
74-
// Index creation and deletion are performed asynchronously.
62+
// - The index service manages Cloud Datastore composite indexes.
63+
// - Index creation and deletion are performed asynchronously.
7564
// An Operation resource is created for each such asynchronous operation.
7665
// The state of the operation (including any errors encountered)
7766
// may be queried via the Operation resource.
7867
//
79-
// # Operation
68+
// Operation Service:
8069
//
81-
// The Operations collection provides a record of actions performed for the
70+
// - The Operations collection provides a record of actions performed for the
8271
// specified project (including any operations in progress). Operations are not
8372
// created directly but through calls on other collections or resources.
84-
//
85-
// An operation that is not yet done may be cancelled. The request to cancel is
86-
// asynchronous and the operation may continue to run for some time after the
73+
// - An operation that is not yet done may be cancelled. The request to cancel
74+
// is asynchronous and the operation may continue to run for some time after the
8775
// request to cancel is made.
88-
//
89-
// An operation that is done may be deleted so that it is no longer listed as
76+
// - An operation that is done may be deleted so that it is no longer listed as
9077
// part of the Operation collection.
91-
//
92-
// ListOperations returns all pending operations, but not completed operations.
93-
//
94-
// Operations are created by service DatastoreAdmin,
95-
// but are accessed via service google.longrunning.Operations.
78+
// - ListOperations returns all pending operations, but not completed
79+
// operations.
80+
// - Operations are created by service DatastoreAdmin, but are accessed via
81+
// service google.longrunning.Operations.
9682
service DatastoreAdmin {
9783
option (google.api.default_host) = "datastore.googleapis.com";
9884
option (google.api.oauth_scopes) =
@@ -107,12 +93,14 @@ service DatastoreAdmin {
10793
// used once the associated operation is done. If an export operation is
10894
// cancelled before completion it may leave partial data behind in Google
10995
// Cloud Storage.
110-
rpc ExportEntities(ExportEntitiesRequest) returns (google.longrunning.Operation) {
96+
rpc ExportEntities(ExportEntitiesRequest)
97+
returns (google.longrunning.Operation) {
11198
option (google.api.http) = {
11299
post: "/v1/projects/{project_id}:export"
113100
body: "*"
114101
};
115-
option (google.api.method_signature) = "project_id,labels,entity_filter,output_url_prefix";
102+
option (google.api.method_signature) =
103+
"project_id,labels,entity_filter,output_url_prefix";
116104
option (google.longrunning.operation_info) = {
117105
response_type: "ExportEntitiesResponse"
118106
metadata_type: "ExportEntitiesMetadata"
@@ -124,12 +112,14 @@ service DatastoreAdmin {
124112
// progress can be monitored and managed via the Operation resource that is
125113
// created. If an ImportEntities operation is cancelled, it is possible
126114
// that a subset of the data has already been imported to Cloud Datastore.
127-
rpc ImportEntities(ImportEntitiesRequest) returns (google.longrunning.Operation) {
115+
rpc ImportEntities(ImportEntitiesRequest)
116+
returns (google.longrunning.Operation) {
128117
option (google.api.http) = {
129118
post: "/v1/projects/{project_id}:import"
130119
body: "*"
131120
};
132-
option (google.api.method_signature) = "project_id,labels,input_url,entity_filter";
121+
option (google.api.method_signature) =
122+
"project_id,labels,input_url,entity_filter";
133123
option (google.longrunning.operation_info) = {
134124
response_type: "google.protobuf.Empty"
135125
metadata_type: "ImportEntitiesMetadata"
@@ -138,9 +128,9 @@ service DatastoreAdmin {
138128

139129
// Creates the specified index.
140130
// A newly created index's initial state is `CREATING`. On completion of the
141-
// returned [google.longrunning.Operation][google.longrunning.Operation], the state will be `READY`.
142-
// If the index already exists, the call will return an `ALREADY_EXISTS`
143-
// status.
131+
// returned [google.longrunning.Operation][google.longrunning.Operation], the
132+
// state will be `READY`. If the index already exists, the call will return an
133+
// `ALREADY_EXISTS` status.
144134
//
145135
// During index creation, the process could result in an error, in which
146136
// case the index will move to the `ERROR` state. The process can be recovered
@@ -165,7 +155,8 @@ service DatastoreAdmin {
165155
// An index can only be deleted if it is in a `READY` or `ERROR` state. On
166156
// successful execution of the request, the index will be in a `DELETING`
167157
// [state][google.datastore.admin.v1.Index.State]. And on completion of the
168-
// returned [google.longrunning.Operation][google.longrunning.Operation], the index will be removed.
158+
// returned [google.longrunning.Operation][google.longrunning.Operation], the
159+
// index will be removed.
169160
//
170161
// During index deletion, the process could result in an error, in which
171162
// case the index will move to the `ERROR` state. The process can be recovered
@@ -283,8 +274,8 @@ message ExportEntitiesRequest {
283274
//
284275
// The resulting files will be nested deeper than the specified URL prefix.
285276
// The final output URL will be provided in the
286-
// [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field. That
287-
// value should be used for subsequent ImportEntities operations.
277+
// [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url]
278+
// field. That value should be used for subsequent ImportEntities operations.
288279
//
289280
// By nesting the data files deeper, the same Cloud Storage bucket can be used
290281
// in multiple ExportEntities operations without conflict.
@@ -300,8 +291,9 @@ message ImportEntitiesRequest {
300291
// Client-assigned labels.
301292
map<string, string> labels = 2;
302293

303-
// Required. The full resource URL of the external storage location. Currently, only
304-
// Google Cloud Storage is supported. So input_url should be of the form:
294+
// Required. The full resource URL of the external storage location.
295+
// Currently, only Google Cloud Storage is supported. So input_url should be
296+
// of the form:
305297
// `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where
306298
// `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is
307299
// an optional Cloud Storage namespace path (this is not a Cloud Datastore
@@ -369,7 +361,9 @@ message ImportEntitiesMetadata {
369361
EntityFilter entity_filter = 4;
370362

371363
// The location of the import metadata file. This will be the same value as
372-
// the [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] field.
364+
// the
365+
// [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url]
366+
// field.
373367
string input_url = 5;
374368
}
375369

@@ -427,7 +421,8 @@ message DeleteIndexRequest {
427421
string index_id = 3;
428422
}
429423

430-
// The request for [google.datastore.admin.v1.DatastoreAdmin.GetIndex][google.datastore.admin.v1.DatastoreAdmin.GetIndex].
424+
// The request for
425+
// [google.datastore.admin.v1.DatastoreAdmin.GetIndex][google.datastore.admin.v1.DatastoreAdmin.GetIndex].
431426
message GetIndexRequest {
432427
// Project ID against which to make the request.
433428
string project_id = 1;

protos/google/datastore/admin/v1/index.proto

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -60,7 +60,8 @@ message Index {
6060
// Required. The property name to index.
6161
string name = 1 [(google.api.field_behavior) = REQUIRED];
6262

63-
// Required. The indexed property's direction. Must not be DIRECTION_UNSPECIFIED.
63+
// Required. The indexed property's direction. Must not be
64+
// DIRECTION_UNSPECIFIED.
6465
Direction direction = 2 [(google.api.field_behavior) = REQUIRED];
6566
}
6667

@@ -104,11 +105,17 @@ message Index {
104105
// Required. The entity kind to which this index applies.
105106
string kind = 4 [(google.api.field_behavior) = REQUIRED];
106107

107-
// Required. The index's ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED.
108+
// Required. The index's ancestor mode. Must not be
109+
// ANCESTOR_MODE_UNSPECIFIED.
108110
AncestorMode ancestor = 5 [(google.api.field_behavior) = REQUIRED];
109111

110112
// Required. An ordered sequence of property names and their index attributes.
111-
repeated IndexedProperty properties = 6 [(google.api.field_behavior) = REQUIRED];
113+
//
114+
// Requires:
115+
//
116+
// * A maximum of 100 properties.
117+
repeated IndexedProperty properties = 6
118+
[(google.api.field_behavior) = REQUIRED];
112119

113120
// Output only. The state of the index.
114121
State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY];

protos/google/datastore/admin/v1/migration.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

protos/google/datastore/v1/datastore.proto

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -578,9 +578,12 @@ message ReadOptions {
578578
// [RunQueryResponse.transaction][google.datastore.v1.RunQueryResponse.transaction].
579579
TransactionOptions new_transaction = 3;
580580

581-
// Reads entities as they were at the given time. This may not be older
582-
// than 270 seconds. This value is only supported for Cloud Firestore in
583-
// Datastore mode.
581+
// Reads entities as they were at the given time. This value is only
582+
// supported for Cloud Firestore in Datastore mode.
583+
//
584+
// This must be a microsecond precision timestamp within the past one hour,
585+
// or if Point-in-Time Recovery is enabled, can additionally be a whole
586+
// minute timestamp within the past 7 days.
584587
google.protobuf.Timestamp read_time = 4;
585588
}
586589
}
@@ -602,7 +605,10 @@ message TransactionOptions {
602605
// Options specific to read-only transactions.
603606
message ReadOnly {
604607
// Reads entities at the given time.
605-
// This may not be older than 60 seconds.
608+
//
609+
// This must be a microsecond precision timestamp within the past one hour,
610+
// or if Point-in-Time Recovery is enabled, can additionally be a whole
611+
// minute timestamp within the past 7 days.
606612
google.protobuf.Timestamp read_time = 1;
607613
}
608614

protos/google/datastore/v1/query.proto

Lines changed: 53 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,58 @@ message AggregationQuery {
163163
[(google.api.field_behavior) = OPTIONAL];
164164
}
165165

166+
// Sum of the values of the requested property.
167+
//
168+
// * Only numeric values will be aggregated. All non-numeric values
169+
// including `NULL` are skipped.
170+
//
171+
// * If the aggregated values contain `NaN`, returns `NaN`. Infinity math
172+
// follows IEEE-754 standards.
173+
//
174+
// * If the aggregated value set is empty, returns 0.
175+
//
176+
// * Returns a 64-bit integer if all aggregated numbers are integers and the
177+
// sum result does not overflow. Otherwise, the result is returned as a
178+
// double. Note that even if all the aggregated values are integers, the
179+
// result is returned as a double if it cannot fit within a 64-bit signed
180+
// integer. When this occurs, the returned value will lose precision.
181+
//
182+
// * When underflow occurs, floating-point aggregation is non-deterministic.
183+
// This means that running the same query repeatedly without any changes to
184+
// the underlying values could produce slightly different results each
185+
// time. In those cases, values should be stored as integers over
186+
// floating-point numbers.
187+
message Sum {
188+
// The property to aggregate on.
189+
PropertyReference property = 1;
190+
}
191+
192+
// Average of the values of the requested property.
193+
//
194+
// * Only numeric values will be aggregated. All non-numeric values
195+
// including `NULL` are skipped.
196+
//
197+
// * If the aggregated values contain `NaN`, returns `NaN`. Infinity math
198+
// follows IEEE-754 standards.
199+
//
200+
// * If the aggregated value set is empty, returns `NULL`.
201+
//
202+
// * Always returns the result as a double.
203+
message Avg {
204+
// The property to aggregate on.
205+
PropertyReference property = 1;
206+
}
207+
166208
// The type of aggregation to perform, required.
167209
oneof operator {
168210
// Count aggregator.
169211
Count count = 1;
212+
213+
// Sum aggregator.
214+
Sum sum = 2;
215+
216+
// Average aggregator.
217+
Avg avg = 3;
170218
}
171219

172220
// Optional. Optional name of the property to store the result of the
@@ -342,8 +390,9 @@ message PropertyFilter {
342390
//
343391
// Requires:
344392
//
345-
// * That `value` is a non-empty `ArrayValue` with at most 10 values.
346-
// * No other `IN` or `NOT_IN` is in the same query.
393+
// * That `value` is a non-empty `ArrayValue`, subject to disjunction
394+
// limits.
395+
// * No `NOT_IN` is in the same query.
347396
IN = 6;
348397

349398
// The given `property` is not equal to the given `value`.
@@ -359,15 +408,15 @@ message PropertyFilter {
359408
// Requires:
360409
//
361410
// * That `value` is an entity key.
362-
// * No other `HAS_ANCESTOR` is in the same query.
411+
// * All evaluated disjunctions must have the same `HAS_ANCESTOR` filter.
363412
HAS_ANCESTOR = 11;
364413

365414
// The value of the `property` is not in the given array.
366415
//
367416
// Requires:
368417
//
369418
// * That `value` is a non-empty `ArrayValue` with at most 10 values.
370-
// * No other `IN`, `NOT_IN`, `NOT_EQUAL` is in the same query.
419+
// * No other `OR`, `IN`, `NOT_IN`, `NOT_EQUAL` is in the same query.
371420
// * That `field` comes first in the `order_by`.
372421
NOT_IN = 13;
373422
}

0 commit comments

Comments
 (0)