Socket
Socket
Sign inDemoInstall

@google-cloud/discoveryengine

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/discoveryengine - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

207

build/src/v1beta/document_service_client.d.ts

@@ -121,3 +121,3 @@ /// <reference types="node" />

* {@link google.cloud.discoveryengine.v1beta.Document|Document}, such as
* `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
*

@@ -154,3 +154,3 @@ * If the caller does not have permission to access the

* Required. The parent resource name, such as
* `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}`.
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
* @param {google.cloud.discoveryengine.v1beta.Document} request.document

@@ -240,3 +240,3 @@ * Required. The {@link google.cloud.discoveryengine.v1beta.Document|Document} to

* {@link google.cloud.discoveryengine.v1beta.Document|Document}, such as
* `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
*

@@ -280,3 +280,3 @@ * If the caller does not have permission to delete the

* @param {google.cloud.discoveryengine.v1beta.GcsSource} request.gcsSource
* Google Cloud Storage location for the input content.
* Cloud Storage location for the input content.
* @param {google.cloud.discoveryengine.v1beta.BigQuerySource} request.bigquerySource

@@ -286,3 +286,3 @@ * BigQuery input source.

* Required. The parent branch resource name, such as
* `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}`.
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
* Requires create/update permission.

@@ -334,3 +334,3 @@ * @param {google.cloud.discoveryengine.v1beta.ImportErrorConfig} request.errorConfig

* Required. The parent branch resource name, such as
* `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}`.
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
* Use `default_branch` as the branch ID, to list documents under the default

@@ -385,3 +385,3 @@ * branch.

* Required. The parent branch resource name, such as
* `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}`.
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
* Use `default_branch` as the branch ID, to list documents under the default

@@ -431,3 +431,3 @@ * branch.

* Required. The parent branch resource name, such as
* `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}`.
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
* Use `default_branch` as the branch ID, to list documents under the default

@@ -591,6 +591,7 @@ * branch.

/**
* Return a fully-qualified branch resource name string.
* Return a fully-qualified projectLocationCollectionDataStoreBranch resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} collection
* @param {string} data_store

@@ -600,40 +601,49 @@ * @param {string} branch

*/
branchPath(project: string, location: string, dataStore: string, branch: string): string;
projectLocationCollectionDataStoreBranchPath(project: string, location: string, collection: string, dataStore: string, branch: string): string;
/**
* Parse the project from Branch resource.
* Parse the project from ProjectLocationCollectionDataStoreBranch resource.
*
* @param {string} branchName
* A fully-qualified path representing Branch resource.
* @param {string} projectLocationCollectionDataStoreBranchName
* A fully-qualified path representing project_location_collection_data_store_branch resource.
* @returns {string} A string representing the project.
*/
matchProjectFromBranchName(branchName: string): string | number;
matchProjectFromProjectLocationCollectionDataStoreBranchName(projectLocationCollectionDataStoreBranchName: string): string | number;
/**
* Parse the location from Branch resource.
* Parse the location from ProjectLocationCollectionDataStoreBranch resource.
*
* @param {string} branchName
* A fully-qualified path representing Branch resource.
* @param {string} projectLocationCollectionDataStoreBranchName
* A fully-qualified path representing project_location_collection_data_store_branch resource.
* @returns {string} A string representing the location.
*/
matchLocationFromBranchName(branchName: string): string | number;
matchLocationFromProjectLocationCollectionDataStoreBranchName(projectLocationCollectionDataStoreBranchName: string): string | number;
/**
* Parse the data_store from Branch resource.
* Parse the collection from ProjectLocationCollectionDataStoreBranch resource.
*
* @param {string} branchName
* A fully-qualified path representing Branch resource.
* @param {string} projectLocationCollectionDataStoreBranchName
* A fully-qualified path representing project_location_collection_data_store_branch resource.
* @returns {string} A string representing the collection.
*/
matchCollectionFromProjectLocationCollectionDataStoreBranchName(projectLocationCollectionDataStoreBranchName: string): string | number;
/**
* Parse the data_store from ProjectLocationCollectionDataStoreBranch resource.
*
* @param {string} projectLocationCollectionDataStoreBranchName
* A fully-qualified path representing project_location_collection_data_store_branch resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromBranchName(branchName: string): string | number;
matchDataStoreFromProjectLocationCollectionDataStoreBranchName(projectLocationCollectionDataStoreBranchName: string): string | number;
/**
* Parse the branch from Branch resource.
* Parse the branch from ProjectLocationCollectionDataStoreBranch resource.
*
* @param {string} branchName
* A fully-qualified path representing Branch resource.
* @param {string} projectLocationCollectionDataStoreBranchName
* A fully-qualified path representing project_location_collection_data_store_branch resource.
* @returns {string} A string representing the branch.
*/
matchBranchFromBranchName(branchName: string): string | number;
matchBranchFromProjectLocationCollectionDataStoreBranchName(projectLocationCollectionDataStoreBranchName: string): string | number;
/**
* Return a fully-qualified document resource name string.
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} collection
* @param {string} data_store

@@ -644,44 +654,145 @@ * @param {string} branch

*/
documentPath(project: string, location: string, dataStore: string, branch: string, document: string): string;
projectLocationCollectionDataStoreBranchDocumentPath(project: string, location: string, collection: string, dataStore: string, branch: string, document: string): string;
/**
* Parse the project from Document resource.
* Parse the project from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the project.
*/
matchProjectFromDocumentName(documentName: string): string | number;
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
/**
* Parse the location from Document resource.
* Parse the location from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the location.
*/
matchLocationFromDocumentName(documentName: string): string | number;
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
/**
* Parse the data_store from Document resource.
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the collection.
*/
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
/**
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromDocumentName(documentName: string): string | number;
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
/**
* Parse the branch from Document resource.
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the branch.
*/
matchBranchFromDocumentName(documentName: string): string | number;
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
/**
* Parse the document from Document resource.
* Parse the document from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the document.
*/
matchDocumentFromDocumentName(documentName: string): string | number;
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
/**
* Return a fully-qualified projectLocationDataStoreBranch resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} data_store
* @param {string} branch
* @returns {string} Resource name string.
*/
projectLocationDataStoreBranchPath(project: string, location: string, dataStore: string, branch: string): string;
/**
* Parse the project from ProjectLocationDataStoreBranch resource.
*
* @param {string} projectLocationDataStoreBranchName
* A fully-qualified path representing project_location_data_store_branch resource.
* @returns {string} A string representing the project.
*/
matchProjectFromProjectLocationDataStoreBranchName(projectLocationDataStoreBranchName: string): string | number;
/**
* Parse the location from ProjectLocationDataStoreBranch resource.
*
* @param {string} projectLocationDataStoreBranchName
* A fully-qualified path representing project_location_data_store_branch resource.
* @returns {string} A string representing the location.
*/
matchLocationFromProjectLocationDataStoreBranchName(projectLocationDataStoreBranchName: string): string | number;
/**
* Parse the data_store from ProjectLocationDataStoreBranch resource.
*
* @param {string} projectLocationDataStoreBranchName
* A fully-qualified path representing project_location_data_store_branch resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromProjectLocationDataStoreBranchName(projectLocationDataStoreBranchName: string): string | number;
/**
* Parse the branch from ProjectLocationDataStoreBranch resource.
*
* @param {string} projectLocationDataStoreBranchName
* A fully-qualified path representing project_location_data_store_branch resource.
* @returns {string} A string representing the branch.
*/
matchBranchFromProjectLocationDataStoreBranchName(projectLocationDataStoreBranchName: string): string | number;
/**
* Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} data_store
* @param {string} branch
* @param {string} document
* @returns {string} Resource name string.
*/
projectLocationDataStoreBranchDocumentPath(project: string, location: string, dataStore: string, branch: string, document: string): string;
/**
* Parse the project from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the project.
*/
matchProjectFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
/**
* Parse the location from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the location.
*/
matchLocationFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
/**
* Parse the data_store from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
/**
* Parse the branch from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the branch.
*/
matchBranchFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
/**
* Parse the document from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the document.
*/
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
/**
* Terminate the gRPC channel and close the client.

@@ -688,0 +799,0 @@ *

@@ -143,4 +143,6 @@ "use strict";

this.pathTemplates = {
branchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
documentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
projectLocationCollectionDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}'),
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
projectLocationDataStoreBranchPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}'),
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
};

@@ -166,5 +168,17 @@ // Some of the methods on this service return "paged" results,

selector: 'google.longrunning.Operations.GetOperation',
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
additional_bindings: [
{
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
},
{
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}',
},
{
get: '/v1beta/{name=projects/*/locations/*/collections/*/operations/*}',
},
{
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
},
{
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}',

@@ -181,5 +195,17 @@ },

selector: 'google.longrunning.Operations.ListOperations',
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
additional_bindings: [
{
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
},
{
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
},
{
get: '/v1beta/{name=projects/*/locations/*/collections/*}/operations',
},
{
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
},
{
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/models/*}/operations',

@@ -455,3 +481,3 @@ },

* Required. The parent branch resource name, such as
* `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}`.
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
* Use `default_branch` as the branch ID, to list documents under the default

@@ -515,3 +541,3 @@ * branch.

* Required. The parent branch resource name, such as
* `projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}`.
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.
* Use `default_branch` as the branch ID, to list documents under the default

@@ -700,6 +726,7 @@ * branch.

/**
* Return a fully-qualified branch resource name string.
* Return a fully-qualified projectLocationCollectionDataStoreBranch resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} collection
* @param {string} data_store

@@ -709,6 +736,7 @@ * @param {string} branch

*/
branchPath(project, location, dataStore, branch) {
return this.pathTemplates.branchPathTemplate.render({
projectLocationCollectionDataStoreBranchPath(project, location, collection, dataStore, branch) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchPathTemplate.render({
project: project,
location: location,
collection: collection,
data_store: dataStore,

@@ -719,46 +747,57 @@ branch: branch,

/**
* Parse the project from Branch resource.
* Parse the project from ProjectLocationCollectionDataStoreBranch resource.
*
* @param {string} branchName
* A fully-qualified path representing Branch resource.
* @param {string} projectLocationCollectionDataStoreBranchName
* A fully-qualified path representing project_location_collection_data_store_branch resource.
* @returns {string} A string representing the project.
*/
matchProjectFromBranchName(branchName) {
return this.pathTemplates.branchPathTemplate.match(branchName).project;
matchProjectFromProjectLocationCollectionDataStoreBranchName(projectLocationCollectionDataStoreBranchName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchPathTemplate.match(projectLocationCollectionDataStoreBranchName).project;
}
/**
* Parse the location from Branch resource.
* Parse the location from ProjectLocationCollectionDataStoreBranch resource.
*
* @param {string} branchName
* A fully-qualified path representing Branch resource.
* @param {string} projectLocationCollectionDataStoreBranchName
* A fully-qualified path representing project_location_collection_data_store_branch resource.
* @returns {string} A string representing the location.
*/
matchLocationFromBranchName(branchName) {
return this.pathTemplates.branchPathTemplate.match(branchName).location;
matchLocationFromProjectLocationCollectionDataStoreBranchName(projectLocationCollectionDataStoreBranchName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchPathTemplate.match(projectLocationCollectionDataStoreBranchName).location;
}
/**
* Parse the data_store from Branch resource.
* Parse the collection from ProjectLocationCollectionDataStoreBranch resource.
*
* @param {string} branchName
* A fully-qualified path representing Branch resource.
* @param {string} projectLocationCollectionDataStoreBranchName
* A fully-qualified path representing project_location_collection_data_store_branch resource.
* @returns {string} A string representing the collection.
*/
matchCollectionFromProjectLocationCollectionDataStoreBranchName(projectLocationCollectionDataStoreBranchName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchPathTemplate.match(projectLocationCollectionDataStoreBranchName).collection;
}
/**
* Parse the data_store from ProjectLocationCollectionDataStoreBranch resource.
*
* @param {string} projectLocationCollectionDataStoreBranchName
* A fully-qualified path representing project_location_collection_data_store_branch resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromBranchName(branchName) {
return this.pathTemplates.branchPathTemplate.match(branchName).data_store;
matchDataStoreFromProjectLocationCollectionDataStoreBranchName(projectLocationCollectionDataStoreBranchName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchPathTemplate.match(projectLocationCollectionDataStoreBranchName).data_store;
}
/**
* Parse the branch from Branch resource.
* Parse the branch from ProjectLocationCollectionDataStoreBranch resource.
*
* @param {string} branchName
* A fully-qualified path representing Branch resource.
* @param {string} projectLocationCollectionDataStoreBranchName
* A fully-qualified path representing project_location_collection_data_store_branch resource.
* @returns {string} A string representing the branch.
*/
matchBranchFromBranchName(branchName) {
return this.pathTemplates.branchPathTemplate.match(branchName).branch;
matchBranchFromProjectLocationCollectionDataStoreBranchName(projectLocationCollectionDataStoreBranchName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchPathTemplate.match(projectLocationCollectionDataStoreBranchName).branch;
}
/**
* Return a fully-qualified document resource name string.
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} collection
* @param {string} data_store

@@ -769,6 +808,7 @@ * @param {string} branch

*/
documentPath(project, location, dataStore, branch, document) {
return this.pathTemplates.documentPathTemplate.render({
projectLocationCollectionDataStoreBranchDocumentPath(project, location, collection, dataStore, branch, document) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.render({
project: project,
location: location,
collection: collection,
data_store: dataStore,

@@ -780,53 +820,188 @@ branch: branch,

/**
* Parse the project from Document resource.
* Parse the project from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the project.
*/
matchProjectFromDocumentName(documentName) {
return this.pathTemplates.documentPathTemplate.match(documentName).project;
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).project;
}
/**
* Parse the location from Document resource.
* Parse the location from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the location.
*/
matchLocationFromDocumentName(documentName) {
return this.pathTemplates.documentPathTemplate.match(documentName).location;
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).location;
}
/**
* Parse the data_store from Document resource.
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the collection.
*/
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).collection;
}
/**
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromDocumentName(documentName) {
return this.pathTemplates.documentPathTemplate.match(documentName)
.data_store;
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).data_store;
}
/**
* Parse the branch from Document resource.
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the branch.
*/
matchBranchFromDocumentName(documentName) {
return this.pathTemplates.documentPathTemplate.match(documentName).branch;
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).branch;
}
/**
* Parse the document from Document resource.
* Parse the document from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the document.
*/
matchDocumentFromDocumentName(documentName) {
return this.pathTemplates.documentPathTemplate.match(documentName).document;
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
}
/**
* Return a fully-qualified projectLocationDataStoreBranch resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} data_store
* @param {string} branch
* @returns {string} Resource name string.
*/
projectLocationDataStoreBranchPath(project, location, dataStore, branch) {
return this.pathTemplates.projectLocationDataStoreBranchPathTemplate.render({
project: project,
location: location,
data_store: dataStore,
branch: branch,
});
}
/**
* Parse the project from ProjectLocationDataStoreBranch resource.
*
* @param {string} projectLocationDataStoreBranchName
* A fully-qualified path representing project_location_data_store_branch resource.
* @returns {string} A string representing the project.
*/
matchProjectFromProjectLocationDataStoreBranchName(projectLocationDataStoreBranchName) {
return this.pathTemplates.projectLocationDataStoreBranchPathTemplate.match(projectLocationDataStoreBranchName).project;
}
/**
* Parse the location from ProjectLocationDataStoreBranch resource.
*
* @param {string} projectLocationDataStoreBranchName
* A fully-qualified path representing project_location_data_store_branch resource.
* @returns {string} A string representing the location.
*/
matchLocationFromProjectLocationDataStoreBranchName(projectLocationDataStoreBranchName) {
return this.pathTemplates.projectLocationDataStoreBranchPathTemplate.match(projectLocationDataStoreBranchName).location;
}
/**
* Parse the data_store from ProjectLocationDataStoreBranch resource.
*
* @param {string} projectLocationDataStoreBranchName
* A fully-qualified path representing project_location_data_store_branch resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromProjectLocationDataStoreBranchName(projectLocationDataStoreBranchName) {
return this.pathTemplates.projectLocationDataStoreBranchPathTemplate.match(projectLocationDataStoreBranchName).data_store;
}
/**
* Parse the branch from ProjectLocationDataStoreBranch resource.
*
* @param {string} projectLocationDataStoreBranchName
* A fully-qualified path representing project_location_data_store_branch resource.
* @returns {string} A string representing the branch.
*/
matchBranchFromProjectLocationDataStoreBranchName(projectLocationDataStoreBranchName) {
return this.pathTemplates.projectLocationDataStoreBranchPathTemplate.match(projectLocationDataStoreBranchName).branch;
}
/**
* Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} data_store
* @param {string} branch
* @param {string} document
* @returns {string} Resource name string.
*/
projectLocationDataStoreBranchDocumentPath(project, location, dataStore, branch, document) {
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.render({
project: project,
location: location,
data_store: dataStore,
branch: branch,
document: document,
});
}
/**
* Parse the project from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the project.
*/
matchProjectFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).project;
}
/**
* Parse the location from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the location.
*/
matchLocationFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).location;
}
/**
* Parse the data_store from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).data_store;
}
/**
* Parse the branch from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the branch.
*/
matchBranchFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).branch;
}
/**
* Parse the document from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the document.
*/
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
}
/**
* Terminate the gRPC channel and close the client.

@@ -833,0 +1008,0 @@ *

@@ -115,3 +115,3 @@ import type * as gax from 'google-gax';

* Required. Full resource name of the format:
* projects/* /locations/global/dataStores/* /servingConfigs/*
* projects/* /locations/global/collections/* /dataStores/* /servingConfigs/*
*

@@ -206,4 +206,4 @@ * Before you can request recommendations from your model, you must create at

*
* See [Google Cloud
* Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
* See [Requirements for
* labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
* for more details.

@@ -228,6 +228,7 @@ * @param {object} [options]

/**
* Return a fully-qualified document resource name string.
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} collection
* @param {string} data_store

@@ -238,48 +239,57 @@ * @param {string} branch

*/
documentPath(project: string, location: string, dataStore: string, branch: string, document: string): string;
projectLocationCollectionDataStoreBranchDocumentPath(project: string, location: string, collection: string, dataStore: string, branch: string, document: string): string;
/**
* Parse the project from Document resource.
* Parse the project from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the project.
*/
matchProjectFromDocumentName(documentName: string): string | number;
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
/**
* Parse the location from Document resource.
* Parse the location from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the location.
*/
matchLocationFromDocumentName(documentName: string): string | number;
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
/**
* Parse the data_store from Document resource.
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the collection.
*/
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
/**
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromDocumentName(documentName: string): string | number;
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
/**
* Parse the branch from Document resource.
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the branch.
*/
matchBranchFromDocumentName(documentName: string): string | number;
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
/**
* Parse the document from Document resource.
* Parse the document from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the document.
*/
matchDocumentFromDocumentName(documentName: string): string | number;
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
/**
* Return a fully-qualified servingConfig resource name string.
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} collection
* @param {string} data_store

@@ -289,36 +299,137 @@ * @param {string} serving_config

*/
servingConfigPath(project: string, location: string, dataStore: string, servingConfig: string): string;
projectLocationCollectionDataStoreServingConfigPath(project: string, location: string, collection: string, dataStore: string, servingConfig: string): string;
/**
* Parse the project from ServingConfig resource.
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
*
* @param {string} servingConfigName
* A fully-qualified path representing ServingConfig resource.
* @param {string} projectLocationCollectionDataStoreServingConfigName
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
* @returns {string} A string representing the project.
*/
matchProjectFromServingConfigName(servingConfigName: string): string | number;
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName: string): string | number;
/**
* Parse the location from ServingConfig resource.
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
*
* @param {string} servingConfigName
* A fully-qualified path representing ServingConfig resource.
* @param {string} projectLocationCollectionDataStoreServingConfigName
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
* @returns {string} A string representing the location.
*/
matchLocationFromServingConfigName(servingConfigName: string): string | number;
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName: string): string | number;
/**
* Parse the data_store from ServingConfig resource.
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
*
* @param {string} servingConfigName
* A fully-qualified path representing ServingConfig resource.
* @param {string} projectLocationCollectionDataStoreServingConfigName
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
* @returns {string} A string representing the collection.
*/
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName: string): string | number;
/**
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
*
* @param {string} projectLocationCollectionDataStoreServingConfigName
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromServingConfigName(servingConfigName: string): string | number;
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName: string): string | number;
/**
* Parse the serving_config from ServingConfig resource.
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
*
* @param {string} servingConfigName
* A fully-qualified path representing ServingConfig resource.
* @param {string} projectLocationCollectionDataStoreServingConfigName
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
* @returns {string} A string representing the serving_config.
*/
matchServingConfigFromServingConfigName(servingConfigName: string): string | number;
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName: string): string | number;
/**
* Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} data_store
* @param {string} branch
* @param {string} document
* @returns {string} Resource name string.
*/
projectLocationDataStoreBranchDocumentPath(project: string, location: string, dataStore: string, branch: string, document: string): string;
/**
* Parse the project from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the project.
*/
matchProjectFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
/**
* Parse the location from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the location.
*/
matchLocationFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
/**
* Parse the data_store from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
/**
* Parse the branch from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the branch.
*/
matchBranchFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
/**
* Parse the document from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the document.
*/
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
/**
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} data_store
* @param {string} serving_config
* @returns {string} Resource name string.
*/
projectLocationDataStoreServingConfigPath(project: string, location: string, dataStore: string, servingConfig: string): string;
/**
* Parse the project from ProjectLocationDataStoreServingConfig resource.
*
* @param {string} projectLocationDataStoreServingConfigName
* A fully-qualified path representing project_location_data_store_serving_config resource.
* @returns {string} A string representing the project.
*/
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName: string): string | number;
/**
* Parse the location from ProjectLocationDataStoreServingConfig resource.
*
* @param {string} projectLocationDataStoreServingConfigName
* A fully-qualified path representing project_location_data_store_serving_config resource.
* @returns {string} A string representing the location.
*/
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName: string): string | number;
/**
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
*
* @param {string} projectLocationDataStoreServingConfigName
* A fully-qualified path representing project_location_data_store_serving_config resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName: string): string | number;
/**
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
*
* @param {string} projectLocationDataStoreServingConfigName
* A fully-qualified path representing project_location_data_store_serving_config resource.
* @returns {string} A string representing the serving_config.
*/
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName: string): string | number;
/**
* Terminate the gRPC channel and close the client.

@@ -325,0 +436,0 @@ *

@@ -142,4 +142,6 @@ "use strict";

this.pathTemplates = {
documentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
servingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
projectLocationCollectionDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}'),
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
projectLocationDataStoreServingConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}'),
};

@@ -263,6 +265,7 @@ // Put together the default options sent with requests.

/**
* Return a fully-qualified document resource name string.
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} collection
* @param {string} data_store

@@ -273,6 +276,7 @@ * @param {string} branch

*/
documentPath(project, location, dataStore, branch, document) {
return this.pathTemplates.documentPathTemplate.render({
projectLocationCollectionDataStoreBranchDocumentPath(project, location, collection, dataStore, branch, document) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.render({
project: project,
location: location,
collection: collection,
data_store: dataStore,

@@ -284,57 +288,67 @@ branch: branch,

/**
* Parse the project from Document resource.
* Parse the project from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the project.
*/
matchProjectFromDocumentName(documentName) {
return this.pathTemplates.documentPathTemplate.match(documentName).project;
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).project;
}
/**
* Parse the location from Document resource.
* Parse the location from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the location.
*/
matchLocationFromDocumentName(documentName) {
return this.pathTemplates.documentPathTemplate.match(documentName).location;
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).location;
}
/**
* Parse the data_store from Document resource.
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the collection.
*/
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).collection;
}
/**
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromDocumentName(documentName) {
return this.pathTemplates.documentPathTemplate.match(documentName)
.data_store;
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).data_store;
}
/**
* Parse the branch from Document resource.
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the branch.
*/
matchBranchFromDocumentName(documentName) {
return this.pathTemplates.documentPathTemplate.match(documentName).branch;
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).branch;
}
/**
* Parse the document from Document resource.
* Parse the document from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the document.
*/
matchDocumentFromDocumentName(documentName) {
return this.pathTemplates.documentPathTemplate.match(documentName).document;
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
}
/**
* Return a fully-qualified servingConfig resource name string.
* Return a fully-qualified projectLocationCollectionDataStoreServingConfig resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} collection
* @param {string} data_store

@@ -344,6 +358,7 @@ * @param {string} serving_config

*/
servingConfigPath(project, location, dataStore, servingConfig) {
return this.pathTemplates.servingConfigPathTemplate.render({
projectLocationCollectionDataStoreServingConfigPath(project, location, collection, dataStore, servingConfig) {
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.render({
project: project,
location: location,
collection: collection,
data_store: dataStore,

@@ -354,46 +369,178 @@ serving_config: servingConfig,

/**
* Parse the project from ServingConfig resource.
* Parse the project from ProjectLocationCollectionDataStoreServingConfig resource.
*
* @param {string} servingConfigName
* A fully-qualified path representing ServingConfig resource.
* @param {string} projectLocationCollectionDataStoreServingConfigName
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
* @returns {string} A string representing the project.
*/
matchProjectFromServingConfigName(servingConfigName) {
return this.pathTemplates.servingConfigPathTemplate.match(servingConfigName)
.project;
matchProjectFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).project;
}
/**
* Parse the location from ServingConfig resource.
* Parse the location from ProjectLocationCollectionDataStoreServingConfig resource.
*
* @param {string} servingConfigName
* A fully-qualified path representing ServingConfig resource.
* @param {string} projectLocationCollectionDataStoreServingConfigName
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
* @returns {string} A string representing the location.
*/
matchLocationFromServingConfigName(servingConfigName) {
return this.pathTemplates.servingConfigPathTemplate.match(servingConfigName)
.location;
matchLocationFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).location;
}
/**
* Parse the data_store from ServingConfig resource.
* Parse the collection from ProjectLocationCollectionDataStoreServingConfig resource.
*
* @param {string} servingConfigName
* A fully-qualified path representing ServingConfig resource.
* @param {string} projectLocationCollectionDataStoreServingConfigName
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
* @returns {string} A string representing the collection.
*/
matchCollectionFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).collection;
}
/**
* Parse the data_store from ProjectLocationCollectionDataStoreServingConfig resource.
*
* @param {string} projectLocationCollectionDataStoreServingConfigName
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromServingConfigName(servingConfigName) {
return this.pathTemplates.servingConfigPathTemplate.match(servingConfigName)
.data_store;
matchDataStoreFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).data_store;
}
/**
* Parse the serving_config from ServingConfig resource.
* Parse the serving_config from ProjectLocationCollectionDataStoreServingConfig resource.
*
* @param {string} servingConfigName
* A fully-qualified path representing ServingConfig resource.
* @param {string} projectLocationCollectionDataStoreServingConfigName
* A fully-qualified path representing project_location_collection_data_store_serving_config resource.
* @returns {string} A string representing the serving_config.
*/
matchServingConfigFromServingConfigName(servingConfigName) {
return this.pathTemplates.servingConfigPathTemplate.match(servingConfigName)
.serving_config;
matchServingConfigFromProjectLocationCollectionDataStoreServingConfigName(projectLocationCollectionDataStoreServingConfigName) {
return this.pathTemplates.projectLocationCollectionDataStoreServingConfigPathTemplate.match(projectLocationCollectionDataStoreServingConfigName).serving_config;
}
/**
* Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} data_store
* @param {string} branch
* @param {string} document
* @returns {string} Resource name string.
*/
projectLocationDataStoreBranchDocumentPath(project, location, dataStore, branch, document) {
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.render({
project: project,
location: location,
data_store: dataStore,
branch: branch,
document: document,
});
}
/**
* Parse the project from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the project.
*/
matchProjectFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).project;
}
/**
* Parse the location from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the location.
*/
matchLocationFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).location;
}
/**
* Parse the data_store from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).data_store;
}
/**
* Parse the branch from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the branch.
*/
matchBranchFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).branch;
}
/**
* Parse the document from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the document.
*/
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
}
/**
* Return a fully-qualified projectLocationDataStoreServingConfig resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} data_store
* @param {string} serving_config
* @returns {string} Resource name string.
*/
projectLocationDataStoreServingConfigPath(project, location, dataStore, servingConfig) {
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.render({
project: project,
location: location,
data_store: dataStore,
serving_config: servingConfig,
});
}
/**
* Parse the project from ProjectLocationDataStoreServingConfig resource.
*
* @param {string} projectLocationDataStoreServingConfigName
* A fully-qualified path representing project_location_data_store_serving_config resource.
* @returns {string} A string representing the project.
*/
matchProjectFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).project;
}
/**
* Parse the location from ProjectLocationDataStoreServingConfig resource.
*
* @param {string} projectLocationDataStoreServingConfigName
* A fully-qualified path representing project_location_data_store_serving_config resource.
* @returns {string} A string representing the location.
*/
matchLocationFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).location;
}
/**
* Parse the data_store from ProjectLocationDataStoreServingConfig resource.
*
* @param {string} projectLocationDataStoreServingConfigName
* A fully-qualified path representing project_location_data_store_serving_config resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).data_store;
}
/**
* Parse the serving_config from ProjectLocationDataStoreServingConfig resource.
*
* @param {string} projectLocationDataStoreServingConfigName
* A fully-qualified path representing project_location_data_store_serving_config resource.
* @returns {string} A string representing the serving_config.
*/
matchServingConfigFromProjectLocationDataStoreServingConfigName(projectLocationDataStoreServingConfigName) {
return this.pathTemplates.projectLocationDataStoreServingConfigPathTemplate.match(projectLocationDataStoreServingConfigName).serving_config;
}
/**
* Terminate the gRPC channel and close the client.

@@ -400,0 +547,0 @@ *

@@ -116,3 +116,3 @@ import type * as gax from 'google-gax';

* Required. The parent DataStore resource name, such as
* `projects/{project}/locations/{location}/dataStores/{data_store}`.
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
* @param {google.cloud.discoveryengine.v1beta.UserEvent} request.userEvent

@@ -148,3 +148,3 @@ * Required. User event to write.

* Required. The parent DataStore resource name, such as
* `projects/{project}/locations/{location}/dataStores/{data_store}`.
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
* @param {string} request.userEvent

@@ -193,3 +193,3 @@ * Required. URL encoded UserEvent proto with a length limit of 2,000,000

* @param {google.cloud.discoveryengine.v1beta.GcsSource} request.gcsSource
* Required. Google Cloud Storage location for the input content.
* Required. Cloud Storage location for the input content.
* @param {google.cloud.discoveryengine.v1beta.BigQuerySource} request.bigquerySource

@@ -199,3 +199,3 @@ * Required. BigQuery input source.

* Required. Parent DataStore resource name, of the form
* `projects/{project}/locations/{location}/dataStores/{data_store}`
* `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
* @param {google.cloud.discoveryengine.v1beta.ImportErrorConfig} request.errorConfig

@@ -357,39 +357,49 @@ * The desired location of errors incurred during the Import. Cannot be set

/**
* Return a fully-qualified dataStore resource name string.
* Return a fully-qualified projectLocationCollectionDataStore resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} collection
* @param {string} data_store
* @returns {string} Resource name string.
*/
dataStorePath(project: string, location: string, dataStore: string): string;
projectLocationCollectionDataStorePath(project: string, location: string, collection: string, dataStore: string): string;
/**
* Parse the project from DataStore resource.
* Parse the project from ProjectLocationCollectionDataStore resource.
*
* @param {string} dataStoreName
* A fully-qualified path representing DataStore resource.
* @param {string} projectLocationCollectionDataStoreName
* A fully-qualified path representing project_location_collection_data_store resource.
* @returns {string} A string representing the project.
*/
matchProjectFromDataStoreName(dataStoreName: string): string | number;
matchProjectFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName: string): string | number;
/**
* Parse the location from DataStore resource.
* Parse the location from ProjectLocationCollectionDataStore resource.
*
* @param {string} dataStoreName
* A fully-qualified path representing DataStore resource.
* @param {string} projectLocationCollectionDataStoreName
* A fully-qualified path representing project_location_collection_data_store resource.
* @returns {string} A string representing the location.
*/
matchLocationFromDataStoreName(dataStoreName: string): string | number;
matchLocationFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName: string): string | number;
/**
* Parse the data_store from DataStore resource.
* Parse the collection from ProjectLocationCollectionDataStore resource.
*
* @param {string} dataStoreName
* A fully-qualified path representing DataStore resource.
* @param {string} projectLocationCollectionDataStoreName
* A fully-qualified path representing project_location_collection_data_store resource.
* @returns {string} A string representing the collection.
*/
matchCollectionFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName: string): string | number;
/**
* Parse the data_store from ProjectLocationCollectionDataStore resource.
*
* @param {string} projectLocationCollectionDataStoreName
* A fully-qualified path representing project_location_collection_data_store resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromDataStoreName(dataStoreName: string): string | number;
matchDataStoreFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName: string): string | number;
/**
* Return a fully-qualified document resource name string.
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} collection
* @param {string} data_store

@@ -400,44 +410,136 @@ * @param {string} branch

*/
documentPath(project: string, location: string, dataStore: string, branch: string, document: string): string;
projectLocationCollectionDataStoreBranchDocumentPath(project: string, location: string, collection: string, dataStore: string, branch: string, document: string): string;
/**
* Parse the project from Document resource.
* Parse the project from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the project.
*/
matchProjectFromDocumentName(documentName: string): string | number;
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
/**
* Parse the location from Document resource.
* Parse the location from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the location.
*/
matchLocationFromDocumentName(documentName: string): string | number;
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
/**
* Parse the data_store from Document resource.
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the collection.
*/
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
/**
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromDocumentName(documentName: string): string | number;
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
/**
* Parse the branch from Document resource.
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the branch.
*/
matchBranchFromDocumentName(documentName: string): string | number;
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
/**
* Parse the document from Document resource.
* Parse the document from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the document.
*/
matchDocumentFromDocumentName(documentName: string): string | number;
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName: string): string | number;
/**
* Return a fully-qualified projectLocationDataStore resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} data_store
* @returns {string} Resource name string.
*/
projectLocationDataStorePath(project: string, location: string, dataStore: string): string;
/**
* Parse the project from ProjectLocationDataStore resource.
*
* @param {string} projectLocationDataStoreName
* A fully-qualified path representing project_location_data_store resource.
* @returns {string} A string representing the project.
*/
matchProjectFromProjectLocationDataStoreName(projectLocationDataStoreName: string): string | number;
/**
* Parse the location from ProjectLocationDataStore resource.
*
* @param {string} projectLocationDataStoreName
* A fully-qualified path representing project_location_data_store resource.
* @returns {string} A string representing the location.
*/
matchLocationFromProjectLocationDataStoreName(projectLocationDataStoreName: string): string | number;
/**
* Parse the data_store from ProjectLocationDataStore resource.
*
* @param {string} projectLocationDataStoreName
* A fully-qualified path representing project_location_data_store resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromProjectLocationDataStoreName(projectLocationDataStoreName: string): string | number;
/**
* Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} data_store
* @param {string} branch
* @param {string} document
* @returns {string} Resource name string.
*/
projectLocationDataStoreBranchDocumentPath(project: string, location: string, dataStore: string, branch: string, document: string): string;
/**
* Parse the project from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the project.
*/
matchProjectFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
/**
* Parse the location from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the location.
*/
matchLocationFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
/**
* Parse the data_store from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
/**
* Parse the branch from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the branch.
*/
matchBranchFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
/**
* Parse the document from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the document.
*/
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName: string): string | number;
/**
* Terminate the gRPC channel and close the client.

@@ -444,0 +546,0 @@ *

@@ -141,4 +141,6 @@ "use strict";

this.pathTemplates = {
dataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
documentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
projectLocationCollectionDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}'),
projectLocationCollectionDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
projectLocationDataStorePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}'),
projectLocationDataStoreBranchDocumentPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}'),
};

@@ -158,5 +160,17 @@ const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);

selector: 'google.longrunning.Operations.GetOperation',
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}',
additional_bindings: [
{
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}',
},
{
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}',
},
{
get: '/v1beta/{name=projects/*/locations/*/collections/*/operations/*}',
},
{
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}',
},
{
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}',

@@ -173,5 +187,17 @@ },

selector: 'google.longrunning.Operations.ListOperations',
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations',
additional_bindings: [
{
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations',
},
{
get: '/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*}/operations',
},
{
get: '/v1beta/{name=projects/*/locations/*/collections/*}/operations',
},
{
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*}/operations',
},
{
get: '/v1beta/{name=projects/*/locations/*/dataStores/*/models/*}/operations',

@@ -505,13 +531,15 @@ },

/**
* Return a fully-qualified dataStore resource name string.
* Return a fully-qualified projectLocationCollectionDataStore resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} collection
* @param {string} data_store
* @returns {string} Resource name string.
*/
dataStorePath(project, location, dataStore) {
return this.pathTemplates.dataStorePathTemplate.render({
projectLocationCollectionDataStorePath(project, location, collection, dataStore) {
return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.render({
project: project,
location: location,
collection: collection,
data_store: dataStore,

@@ -521,39 +549,47 @@ });

/**
* Parse the project from DataStore resource.
* Parse the project from ProjectLocationCollectionDataStore resource.
*
* @param {string} dataStoreName
* A fully-qualified path representing DataStore resource.
* @param {string} projectLocationCollectionDataStoreName
* A fully-qualified path representing project_location_collection_data_store resource.
* @returns {string} A string representing the project.
*/
matchProjectFromDataStoreName(dataStoreName) {
return this.pathTemplates.dataStorePathTemplate.match(dataStoreName)
.project;
matchProjectFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).project;
}
/**
* Parse the location from DataStore resource.
* Parse the location from ProjectLocationCollectionDataStore resource.
*
* @param {string} dataStoreName
* A fully-qualified path representing DataStore resource.
* @param {string} projectLocationCollectionDataStoreName
* A fully-qualified path representing project_location_collection_data_store resource.
* @returns {string} A string representing the location.
*/
matchLocationFromDataStoreName(dataStoreName) {
return this.pathTemplates.dataStorePathTemplate.match(dataStoreName)
.location;
matchLocationFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).location;
}
/**
* Parse the data_store from DataStore resource.
* Parse the collection from ProjectLocationCollectionDataStore resource.
*
* @param {string} dataStoreName
* A fully-qualified path representing DataStore resource.
* @param {string} projectLocationCollectionDataStoreName
* A fully-qualified path representing project_location_collection_data_store resource.
* @returns {string} A string representing the collection.
*/
matchCollectionFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).collection;
}
/**
* Parse the data_store from ProjectLocationCollectionDataStore resource.
*
* @param {string} projectLocationCollectionDataStoreName
* A fully-qualified path representing project_location_collection_data_store resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromDataStoreName(dataStoreName) {
return this.pathTemplates.dataStorePathTemplate.match(dataStoreName)
.data_store;
matchDataStoreFromProjectLocationCollectionDataStoreName(projectLocationCollectionDataStoreName) {
return this.pathTemplates.projectLocationCollectionDataStorePathTemplate.match(projectLocationCollectionDataStoreName).data_store;
}
/**
* Return a fully-qualified document resource name string.
* Return a fully-qualified projectLocationCollectionDataStoreBranchDocument resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} collection
* @param {string} data_store

@@ -564,6 +600,7 @@ * @param {string} branch

*/
documentPath(project, location, dataStore, branch, document) {
return this.pathTemplates.documentPathTemplate.render({
projectLocationCollectionDataStoreBranchDocumentPath(project, location, collection, dataStore, branch, document) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.render({
project: project,
location: location,
collection: collection,
data_store: dataStore,

@@ -575,53 +612,176 @@ branch: branch,

/**
* Parse the project from Document resource.
* Parse the project from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the project.
*/
matchProjectFromDocumentName(documentName) {
return this.pathTemplates.documentPathTemplate.match(documentName).project;
matchProjectFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).project;
}
/**
* Parse the location from Document resource.
* Parse the location from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the location.
*/
matchLocationFromDocumentName(documentName) {
return this.pathTemplates.documentPathTemplate.match(documentName).location;
matchLocationFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).location;
}
/**
* Parse the data_store from Document resource.
* Parse the collection from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the collection.
*/
matchCollectionFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).collection;
}
/**
* Parse the data_store from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromDocumentName(documentName) {
return this.pathTemplates.documentPathTemplate.match(documentName)
.data_store;
matchDataStoreFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).data_store;
}
/**
* Parse the branch from Document resource.
* Parse the branch from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the branch.
*/
matchBranchFromDocumentName(documentName) {
return this.pathTemplates.documentPathTemplate.match(documentName).branch;
matchBranchFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).branch;
}
/**
* Parse the document from Document resource.
* Parse the document from ProjectLocationCollectionDataStoreBranchDocument resource.
*
* @param {string} documentName
* A fully-qualified path representing Document resource.
* @param {string} projectLocationCollectionDataStoreBranchDocumentName
* A fully-qualified path representing project_location_collection_data_store_branch_document resource.
* @returns {string} A string representing the document.
*/
matchDocumentFromDocumentName(documentName) {
return this.pathTemplates.documentPathTemplate.match(documentName).document;
matchDocumentFromProjectLocationCollectionDataStoreBranchDocumentName(projectLocationCollectionDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationCollectionDataStoreBranchDocumentPathTemplate.match(projectLocationCollectionDataStoreBranchDocumentName).document;
}
/**
* Return a fully-qualified projectLocationDataStore resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} data_store
* @returns {string} Resource name string.
*/
projectLocationDataStorePath(project, location, dataStore) {
return this.pathTemplates.projectLocationDataStorePathTemplate.render({
project: project,
location: location,
data_store: dataStore,
});
}
/**
* Parse the project from ProjectLocationDataStore resource.
*
* @param {string} projectLocationDataStoreName
* A fully-qualified path representing project_location_data_store resource.
* @returns {string} A string representing the project.
*/
matchProjectFromProjectLocationDataStoreName(projectLocationDataStoreName) {
return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).project;
}
/**
* Parse the location from ProjectLocationDataStore resource.
*
* @param {string} projectLocationDataStoreName
* A fully-qualified path representing project_location_data_store resource.
* @returns {string} A string representing the location.
*/
matchLocationFromProjectLocationDataStoreName(projectLocationDataStoreName) {
return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).location;
}
/**
* Parse the data_store from ProjectLocationDataStore resource.
*
* @param {string} projectLocationDataStoreName
* A fully-qualified path representing project_location_data_store resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromProjectLocationDataStoreName(projectLocationDataStoreName) {
return this.pathTemplates.projectLocationDataStorePathTemplate.match(projectLocationDataStoreName).data_store;
}
/**
* Return a fully-qualified projectLocationDataStoreBranchDocument resource name string.
*
* @param {string} project
* @param {string} location
* @param {string} data_store
* @param {string} branch
* @param {string} document
* @returns {string} Resource name string.
*/
projectLocationDataStoreBranchDocumentPath(project, location, dataStore, branch, document) {
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.render({
project: project,
location: location,
data_store: dataStore,
branch: branch,
document: document,
});
}
/**
* Parse the project from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the project.
*/
matchProjectFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).project;
}
/**
* Parse the location from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the location.
*/
matchLocationFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).location;
}
/**
* Parse the data_store from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the data_store.
*/
matchDataStoreFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).data_store;
}
/**
* Parse the branch from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the branch.
*/
matchBranchFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).branch;
}
/**
* Parse the document from ProjectLocationDataStoreBranchDocument resource.
*
* @param {string} projectLocationDataStoreBranchDocumentName
* A fully-qualified path representing project_location_data_store_branch_document resource.
* @returns {string} A string representing the document.
*/
matchDocumentFromProjectLocationDataStoreBranchDocumentName(projectLocationDataStoreBranchDocumentName) {
return this.pathTemplates.projectLocationDataStoreBranchDocumentPathTemplate.match(projectLocationDataStoreBranchDocumentName).document;
}
/**
* Terminate the gRPC channel and close the client.

@@ -628,0 +788,0 @@ *

# Changelog
## [0.4.0](https://github.com/googleapis/google-cloud-node/compare/discoveryengine-v0.3.1...discoveryengine-v0.4.0) (2023-03-28)
### Features
* [discoveryengine] add additional resource path with collections ([#4120](https://github.com/googleapis/google-cloud-node/issues/4120)) ([0fe6ff4](https://github.com/googleapis/google-cloud-node/commit/0fe6ff44b808fa9afc4c452402bc013805f74a97))
## [0.3.1](https://github.com/googleapis/google-cloud-node/compare/discoveryengine-v0.3.0...discoveryengine-v0.3.1) (2023-02-15)

@@ -4,0 +11,0 @@

{
"name": "@google-cloud/discoveryengine",
"version": "0.3.1",
"version": "0.4.0",
"description": "Discovery Engine API client for Node.js",

@@ -5,0 +5,0 @@ "repository": {

@@ -7,3 +7,3 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost."

[![release level](https://img.shields.io/badge/release%20level-beta-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
[![release level](https://img.shields.io/badge/release%20level-preview-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
[![npm version](https://img.shields.io/npm/v/@google-cloud/discoveryengine.svg)](https://www.npmjs.org/package/@google-cloud/discoveryengine)

@@ -175,9 +175,8 @@

This library is considered to be in **beta**. This means it is expected to be
mostly stable while we work toward a general availability release; however,
complete stability is not guaranteed. We will address issues and requests
against beta libraries with a high priority.
This library is considered to be in **preview**. This means it is still a
work-in-progress and under active development. Any release is subject to
backwards-incompatible changes at any time.

@@ -184,0 +183,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc