Skip to content

Commit

Permalink
feat: publish proto definitions for SUM/AVG in Firestore (#1856)
Browse files Browse the repository at this point in the history
* 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 <dan@danielbankhead.com>
Co-authored-by: Mark Duckworth <1124037+MarkDuckworth@users.noreply.github.com>
  • Loading branch information
4 people committed Aug 2, 2023
1 parent edbc9b1 commit ac35b37
Show file tree
Hide file tree
Showing 22 changed files with 3,229 additions and 2,972 deletions.
433 changes: 424 additions & 9 deletions dev/protos/admin_v1.json

Large diffs are not rendered by default.

173 changes: 171 additions & 2 deletions dev/protos/firestore_admin_v1_proto_api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,20 @@ export namespace google {
*/
public importDocuments(request: google.firestore.admin.v1.IImportDocumentsRequest): Promise<google.longrunning.Operation>;

/**
* Calls CreateDatabase.
* @param request CreateDatabaseRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Operation
*/
public createDatabase(request: google.firestore.admin.v1.ICreateDatabaseRequest, callback: google.firestore.admin.v1.FirestoreAdmin.CreateDatabaseCallback): void;

/**
* Calls CreateDatabase.
* @param request CreateDatabaseRequest message or plain object
* @returns Promise
*/
public createDatabase(request: google.firestore.admin.v1.ICreateDatabaseRequest): Promise<google.longrunning.Operation>;

/**
* Calls GetDatabase.
* @param request GetDatabaseRequest message or plain object
Expand Down Expand Up @@ -556,6 +570,13 @@ export namespace google {
*/
type ImportDocumentsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;

/**
* Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin#createDatabase}.
* @param error Error, if any
* @param [response] Operation
*/
type CreateDatabaseCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;

/**
* Callback as used by {@link google.firestore.admin.v1.FirestoreAdmin#getDatabase}.
* @param error Error, if any
Expand Down Expand Up @@ -626,6 +647,108 @@ export namespace google {
public static getTypeUrl(typeUrlPrefix?: string): string;
}

/** Properties of a CreateDatabaseRequest. */
interface ICreateDatabaseRequest {

/** CreateDatabaseRequest parent */
parent?: (string|null);

/** CreateDatabaseRequest database */
database?: (google.firestore.admin.v1.IDatabase|null);

/** CreateDatabaseRequest databaseId */
databaseId?: (string|null);
}

/** Represents a CreateDatabaseRequest. */
class CreateDatabaseRequest implements ICreateDatabaseRequest {

/**
* Constructs a new CreateDatabaseRequest.
* @param [properties] Properties to set
*/
constructor(properties?: google.firestore.admin.v1.ICreateDatabaseRequest);

/** CreateDatabaseRequest parent. */
public parent: string;

/** CreateDatabaseRequest database. */
public database?: (google.firestore.admin.v1.IDatabase|null);

/** CreateDatabaseRequest databaseId. */
public databaseId: string;

/**
* Creates a CreateDatabaseRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CreateDatabaseRequest
*/
public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.CreateDatabaseRequest;

/**
* Creates a plain object from a CreateDatabaseRequest message. Also converts values to other types if specified.
* @param message CreateDatabaseRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.firestore.admin.v1.CreateDatabaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };

/**
* Converts this CreateDatabaseRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for CreateDatabaseRequest
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}

/** Properties of a CreateDatabaseMetadata. */
interface ICreateDatabaseMetadata {
}

/** Represents a CreateDatabaseMetadata. */
class CreateDatabaseMetadata implements ICreateDatabaseMetadata {

/**
* Constructs a new CreateDatabaseMetadata.
* @param [properties] Properties to set
*/
constructor(properties?: google.firestore.admin.v1.ICreateDatabaseMetadata);

/**
* Creates a CreateDatabaseMetadata message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CreateDatabaseMetadata
*/
public static fromObject(object: { [k: string]: any }): google.firestore.admin.v1.CreateDatabaseMetadata;

/**
* Creates a plain object from a CreateDatabaseMetadata message. Also converts values to other types if specified.
* @param message CreateDatabaseMetadata
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.firestore.admin.v1.CreateDatabaseMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };

/**
* Converts this CreateDatabaseMetadata to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for CreateDatabaseMetadata
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}

/** Properties of a ListDatabasesResponse. */
interface IListDatabasesResponse {

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

/** Index apiScope */
apiScope?: (google.firestore.admin.v1.Index.ApiScope|null);

/** Index fields */
fields?: (google.firestore.admin.v1.Index.IIndexField[]|null);

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

/** Index apiScope. */
public apiScope: google.firestore.admin.v1.Index.ApiScope;

/** Index fields. */
public fields: google.firestore.admin.v1.Index.IIndexField[];

Expand Down Expand Up @@ -1500,7 +1629,11 @@ export namespace google {

/** QueryScope enum. */
type QueryScope =
"QUERY_SCOPE_UNSPECIFIED"| "COLLECTION"| "COLLECTION_GROUP";
"QUERY_SCOPE_UNSPECIFIED"| "COLLECTION"| "COLLECTION_GROUP"| "COLLECTION_RECURSIVE";

/** ApiScope enum. */
type ApiScope =
"ANY_API"| "DATASTORE_MODE_API";

/** Properties of an IndexField. */
interface IIndexField {
Expand Down Expand Up @@ -2582,6 +2715,9 @@ export namespace google {

/** Publishing librarySettings */
librarySettings?: (google.api.IClientLibrarySettings[]|null);

/** Publishing protoReferenceDocumentationUri */
protoReferenceDocumentationUri?: (string|null);
}

/** Represents a Publishing. */
Expand Down Expand Up @@ -2620,6 +2756,9 @@ export namespace google {
/** Publishing librarySettings. */
public librarySettings: google.api.IClientLibrarySettings[];

/** Publishing protoReferenceDocumentationUri. */
public protoReferenceDocumentationUri: string;

/**
* Creates a Publishing message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
Expand Down Expand Up @@ -2906,6 +3045,21 @@ export namespace google {

/** DotnetSettings common */
common?: (google.api.ICommonLanguageSettings|null);

/** DotnetSettings renamedServices */
renamedServices?: ({ [k: string]: string }|null);

/** DotnetSettings renamedResources */
renamedResources?: ({ [k: string]: string }|null);

/** DotnetSettings ignoredResources */
ignoredResources?: (string[]|null);

/** DotnetSettings forcedNamespaceAliases */
forcedNamespaceAliases?: (string[]|null);

/** DotnetSettings handwrittenSignatures */
handwrittenSignatures?: (string[]|null);
}

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

/** DotnetSettings renamedServices. */
public renamedServices: { [k: string]: string };

/** DotnetSettings renamedResources. */
public renamedResources: { [k: string]: string };

/** DotnetSettings ignoredResources. */
public ignoredResources: string[];

/** DotnetSettings forcedNamespaceAliases. */
public forcedNamespaceAliases: string[];

/** DotnetSettings handwrittenSignatures. */
public handwrittenSignatures: string[];

/**
* Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
Expand Down Expand Up @@ -3170,7 +3339,7 @@ export namespace google {

/** ClientLibraryOrganization enum. */
type ClientLibraryOrganization =
"CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"| "CLOUD"| "ADS"| "PHOTOS"| "STREET_VIEW";
"CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"| "CLOUD"| "ADS"| "PHOTOS"| "STREET_VIEW"| "SHOPPING"| "GEO"| "GENERATIVE_AI";

/** ClientLibraryDestination enum. */
type ClientLibraryDestination =
Expand Down
Loading

0 comments on commit ac35b37

Please sign in to comment.