Skip to content

Commit ac35b37

Browse files
gcf-owl-bot[bot]danielbankheadMarkDuckworth
authored
feat: publish proto definitions for SUM/AVG in Firestore (#1856)
* feat: add CreateDatabase API PiperOrigin-RevId: 537397252 Source-Link: googleapis/googleapis@b4481e1 Source-Link: googleapis/googleapis-gen@6b4b12a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmI0YjEyYWJlOWVjZTYzODJlYThkNmZmZDVjNTBlMzZiMzI5MDVmOCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: Add bloom filter related comments PiperOrigin-RevId: 538646627 Source-Link: googleapis/googleapis@1ceef69 Source-Link: googleapis/googleapis-gen@fb7c4c4 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZmI3YzRjNGFlZjYzMGY0OTU3ZmE1MDFjNDg1ODdmOTgzZTE3NjQ0YSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 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 * feat: publish proto definitions for SUM/AVG in Firestore PiperOrigin-RevId: 552607134 Source-Link: googleapis/googleapis@88a9a5f Source-Link: googleapis/googleapis-gen@047d73a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDQ3ZDczYWUyZmQ0ZTUyNmI0NzRhNjE3ZTE2ODMzOWQ2OTFiMjUxMCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Fix and run update.sh to build new proto json and clients. --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Daniel Bankhead <[email protected]> Co-authored-by: Mark Duckworth <[email protected]>
1 parent edbc9b1 commit ac35b37

22 files changed

+3229
-2972
lines changed

Diff for: dev/protos/admin_v1.json

+424-9
Large diffs are not rendered by default.

Diff for: dev/protos/firestore_admin_v1_proto_api.d.ts

+171-2
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,20 @@ export namespace google {
448448
*/
449449
public importDocuments(request: google.firestore.admin.v1.IImportDocumentsRequest): Promise<google.longrunning.Operation>;
450450

451+
/**
452+
* Calls CreateDatabase.
453+
* @param request CreateDatabaseRequest message or plain object
454+
* @param callback Node-style callback called with the error, if any, and Operation
455+
*/
456+
public createDatabase(request: google.firestore.admin.v1.ICreateDatabaseRequest, callback: google.firestore.admin.v1.FirestoreAdmin.CreateDatabaseCallback): void;
457+
458+
/**
459+
* Calls CreateDatabase.
460+
* @param request CreateDatabaseRequest message or plain object
461+
* @returns Promise
462+
*/
463+
public createDatabase(request: google.firestore.admin.v1.ICreateDatabaseRequest): Promise<google.longrunning.Operation>;
464+
451465
/**
452466
* Calls GetDatabase.
453467
* @param request GetDatabaseRequest message or plain object
@@ -556,6 +570,13 @@ export namespace google {
556570
*/
557571
type ImportDocumentsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
558572

573+
/**
574+
* Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin#createDatabase}.
575+
* @param error Error, if any
576+
* @param [response] Operation
577+
*/
578+
type CreateDatabaseCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
579+
559580
/**
560581
* Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin#getDatabase}.
561582
* @param error Error, if any
@@ -626,6 +647,108 @@ export namespace google {
626647
public static getTypeUrl(typeUrlPrefix?: string): string;
627648
}
628649

650+
/** Properties of a CreateDatabaseRequest. */
651+
interface ICreateDatabaseRequest {
652+
653+
/** CreateDatabaseRequest parent */
654+
parent?: (string|null);
655+
656+
/** CreateDatabaseRequest database */
657+
database?: (google.firestore.admin.v1.IDatabase|null);
658+
659+
/** CreateDatabaseRequest databaseId */
660+
databaseId?: (string|null);
661+
}
662+
663+
/** Represents a CreateDatabaseRequest. */
664+
class CreateDatabaseRequest implements ICreateDatabaseRequest {
665+
666+
/**
667+
* Constructs a new CreateDatabaseRequest.
668+
* @param [properties] Properties to set
669+
*/
670+
constructor(properties?: google.firestore.admin.v1.ICreateDatabaseRequest);
671+
672+
/** CreateDatabaseRequest parent. */
673+
public parent: string;
674+
675+
/** CreateDatabaseRequest database. */
676+
public database?: (google.firestore.admin.v1.IDatabase|null);
677+
678+
/** CreateDatabaseRequest databaseId. */
679+
public databaseId: string;
680+
681+
/**
682+
* Creates a CreateDatabaseRequest message from a plain object. Also converts values to their respective internal types.
683+
* @param object Plain object
684+
* @returns CreateDatabaseRequest
685+
*/
686+
public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.CreateDatabaseRequest;
687+
688+
/**
689+
* Creates a plain object from a CreateDatabaseRequest message. Also converts values to other types if specified.
690+
* @param message CreateDatabaseRequest
691+
* @param [options] Conversion options
692+
* @returns Plain object
693+
*/
694+
public static toObject(message: google.firestore.admin.v1.CreateDatabaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
695+
696+
/**
697+
* Converts this CreateDatabaseRequest to JSON.
698+
* @returns JSON object
699+
*/
700+
public toJSON(): { [k: string]: any };
701+
702+
/**
703+
* Gets the default type url for CreateDatabaseRequest
704+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
705+
* @returns The default type url
706+
*/
707+
public static getTypeUrl(typeUrlPrefix?: string): string;
708+
}
709+
710+
/** Properties of a CreateDatabaseMetadata. */
711+
interface ICreateDatabaseMetadata {
712+
}
713+
714+
/** Represents a CreateDatabaseMetadata. */
715+
class CreateDatabaseMetadata implements ICreateDatabaseMetadata {
716+
717+
/**
718+
* Constructs a new CreateDatabaseMetadata.
719+
* @param [properties] Properties to set
720+
*/
721+
constructor(properties?: google.firestore.admin.v1.ICreateDatabaseMetadata);
722+
723+
/**
724+
* Creates a CreateDatabaseMetadata message from a plain object. Also converts values to their respective internal types.
725+
* @param object Plain object
726+
* @returns CreateDatabaseMetadata
727+
*/
728+
public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.CreateDatabaseMetadata;
729+
730+
/**
731+
* Creates a plain object from a CreateDatabaseMetadata message. Also converts values to other types if specified.
732+
* @param message CreateDatabaseMetadata
733+
* @param [options] Conversion options
734+
* @returns Plain object
735+
*/
736+
public static toObject(message: google.firestore.admin.v1.CreateDatabaseMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
737+
738+
/**
739+
* Converts this CreateDatabaseMetadata to JSON.
740+
* @returns JSON object
741+
*/
742+
public toJSON(): { [k: string]: any };
743+
744+
/**
745+
* Gets the default type url for CreateDatabaseMetadata
746+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
747+
* @returns The default type url
748+
*/
749+
public static getTypeUrl(typeUrlPrefix?: string): string;
750+
}
751+
629752
/** Properties of a ListDatabasesResponse. */
630753
interface IListDatabasesResponse {
631754

@@ -1439,6 +1562,9 @@ export namespace google {
14391562
/** Index queryScope */
14401563
queryScope?: (google.firestore.admin.v1.Index.QueryScope|null);
14411564

1565+
/** Index apiScope */
1566+
apiScope?: (google.firestore.admin.v1.Index.ApiScope|null);
1567+
14421568
/** Index fields */
14431569
fields?: (google.firestore.admin.v1.Index.IIndexField[]|null);
14441570

@@ -1461,6 +1587,9 @@ export namespace google {
14611587
/** Index queryScope. */
14621588
public queryScope: google.firestore.admin.v1.Index.QueryScope;
14631589

1590+
/** Index apiScope. */
1591+
public apiScope: google.firestore.admin.v1.Index.ApiScope;
1592+
14641593
/** Index fields. */
14651594
public fields: google.firestore.admin.v1.Index.IIndexField[];
14661595

@@ -1500,7 +1629,11 @@ export namespace google {
15001629

15011630
/** QueryScope enum. */
15021631
type QueryScope =
1503-
"QUERY_SCOPE_UNSPECIFIED"| "COLLECTION"| "COLLECTION_GROUP";
1632+
"QUERY_SCOPE_UNSPECIFIED"| "COLLECTION"| "COLLECTION_GROUP"| "COLLECTION_RECURSIVE";
1633+
1634+
/** ApiScope enum. */
1635+
type ApiScope =
1636+
"ANY_API"| "DATASTORE_MODE_API";
15041637

15051638
/** Properties of an IndexField. */
15061639
interface IIndexField {
@@ -2582,6 +2715,9 @@ export namespace google {
25822715

25832716
/** Publishing librarySettings */
25842717
librarySettings?: (google.api.IClientLibrarySettings[]|null);
2718+
2719+
/** Publishing protoReferenceDocumentationUri */
2720+
protoReferenceDocumentationUri?: (string|null);
25852721
}
25862722

25872723
/** Represents a Publishing. */
@@ -2620,6 +2756,9 @@ export namespace google {
26202756
/** Publishing librarySettings. */
26212757
public librarySettings: google.api.IClientLibrarySettings[];
26222758

2759+
/** Publishing protoReferenceDocumentationUri. */
2760+
public protoReferenceDocumentationUri: string;
2761+
26232762
/**
26242763
* Creates a Publishing message from a plain object. Also converts values to their respective internal types.
26252764
* @param object Plain object
@@ -2906,6 +3045,21 @@ export namespace google {
29063045

29073046
/** DotnetSettings common */
29083047
common?: (google.api.ICommonLanguageSettings|null);
3048+
3049+
/** DotnetSettings renamedServices */
3050+
renamedServices?: ({ [k: string]: string }|null);
3051+
3052+
/** DotnetSettings renamedResources */
3053+
renamedResources?: ({ [k: string]: string }|null);
3054+
3055+
/** DotnetSettings ignoredResources */
3056+
ignoredResources?: (string[]|null);
3057+
3058+
/** DotnetSettings forcedNamespaceAliases */
3059+
forcedNamespaceAliases?: (string[]|null);
3060+
3061+
/** DotnetSettings handwrittenSignatures */
3062+
handwrittenSignatures?: (string[]|null);
29093063
}
29103064

29113065
/** Represents a DotnetSettings. */
@@ -2920,6 +3074,21 @@ export namespace google {
29203074
/** DotnetSettings common. */
29213075
public common?: (google.api.ICommonLanguageSettings|null);
29223076

3077+
/** DotnetSettings renamedServices. */
3078+
public renamedServices: { [k: string]: string };
3079+
3080+
/** DotnetSettings renamedResources. */
3081+
public renamedResources: { [k: string]: string };
3082+
3083+
/** DotnetSettings ignoredResources. */
3084+
public ignoredResources: string[];
3085+
3086+
/** DotnetSettings forcedNamespaceAliases. */
3087+
public forcedNamespaceAliases: string[];
3088+
3089+
/** DotnetSettings handwrittenSignatures. */
3090+
public handwrittenSignatures: string[];
3091+
29233092
/**
29243093
* Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
29253094
* @param object Plain object
@@ -3170,7 +3339,7 @@ export namespace google {
31703339

31713340
/** ClientLibraryOrganization enum. */
31723341
type ClientLibraryOrganization =
3173-
"CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"| "CLOUD"| "ADS"| "PHOTOS"| "STREET_VIEW";
3342+
"CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"| "CLOUD"| "ADS"| "PHOTOS"| "STREET_VIEW"| "SHOPPING"| "GEO"| "GENERATIVE_AI";
31743343

31753344
/** ClientLibraryDestination enum. */
31763345
type ClientLibraryDestination =

0 commit comments

Comments
 (0)