Class protos.google.cloud.discoveryengine.v1alpha.DataStoreService (1.7.0)

Represents a DataStoreService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1alpha.DataStoreService

Package

@google-cloud/discoveryengine

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new DataStoreService service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DataStoreService;

Creates new DataStoreService service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
DataStoreService

RPC service. Useful where requests and/or responses are streamed.

createDataStore(request, callback)

public createDataStore(request: google.cloud.discoveryengine.v1alpha.ICreateDataStoreRequest, callback: google.cloud.discoveryengine.v1alpha.DataStoreService.CreateDataStoreCallback): void;

Calls CreateDataStore.

Parameters
Name Description
request ICreateDataStoreRequest

CreateDataStoreRequest message or plain object

callback CreateDataStoreCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

createDataStore(request)

public createDataStore(request: google.cloud.discoveryengine.v1alpha.ICreateDataStoreRequest): Promise<google.longrunning.Operation>;

Calls CreateDataStore.

Parameter
Name Description
request ICreateDataStoreRequest

CreateDataStoreRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

deleteDataStore(request, callback)

public deleteDataStore(request: google.cloud.discoveryengine.v1alpha.IDeleteDataStoreRequest, callback: google.cloud.discoveryengine.v1alpha.DataStoreService.DeleteDataStoreCallback): void;

Calls DeleteDataStore.

Parameters
Name Description
request IDeleteDataStoreRequest

DeleteDataStoreRequest message or plain object

callback DeleteDataStoreCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

deleteDataStore(request)

public deleteDataStore(request: google.cloud.discoveryengine.v1alpha.IDeleteDataStoreRequest): Promise<google.longrunning.Operation>;

Calls DeleteDataStore.

Parameter
Name Description
request IDeleteDataStoreRequest

DeleteDataStoreRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

getDataStore(request, callback)

public getDataStore(request: google.cloud.discoveryengine.v1alpha.IGetDataStoreRequest, callback: google.cloud.discoveryengine.v1alpha.DataStoreService.GetDataStoreCallback): void;

Calls GetDataStore.

Parameters
Name Description
request IGetDataStoreRequest

GetDataStoreRequest message or plain object

callback GetDataStoreCallback

Node-style callback called with the error, if any, and DataStore

Returns
Type Description
void

getDataStore(request)

public getDataStore(request: google.cloud.discoveryengine.v1alpha.IGetDataStoreRequest): Promise<google.cloud.discoveryengine.v1alpha.DataStore>;

Calls GetDataStore.

Parameter
Name Description
request IGetDataStoreRequest

GetDataStoreRequest message or plain object

Returns
Type Description
Promise<google.cloud.discoveryengine.v1alpha.DataStore>

Promise

getDocumentProcessingConfig(request, callback)

public getDocumentProcessingConfig(request: google.cloud.discoveryengine.v1alpha.IGetDocumentProcessingConfigRequest, callback: google.cloud.discoveryengine.v1alpha.DataStoreService.GetDocumentProcessingConfigCallback): void;

Calls GetDocumentProcessingConfig.

Parameters
Name Description
request IGetDocumentProcessingConfigRequest

GetDocumentProcessingConfigRequest message or plain object

callback GetDocumentProcessingConfigCallback

Node-style callback called with the error, if any, and DocumentProcessingConfig

Returns
Type Description
void

getDocumentProcessingConfig(request)

public getDocumentProcessingConfig(request: google.cloud.discoveryengine.v1alpha.IGetDocumentProcessingConfigRequest): Promise<google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig>;

Calls GetDocumentProcessingConfig.

Parameter
Name Description
request IGetDocumentProcessingConfigRequest

GetDocumentProcessingConfigRequest message or plain object

Returns
Type Description
Promise<google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig>

Promise

listDataStores(request, callback)

public listDataStores(request: google.cloud.discoveryengine.v1alpha.IListDataStoresRequest, callback: google.cloud.discoveryengine.v1alpha.DataStoreService.ListDataStoresCallback): void;

Calls ListDataStores.

Parameters
Name Description
request IListDataStoresRequest

ListDataStoresRequest message or plain object

callback ListDataStoresCallback

Node-style callback called with the error, if any, and ListDataStoresResponse

Returns
Type Description
void

listDataStores(request)

public listDataStores(request: google.cloud.discoveryengine.v1alpha.IListDataStoresRequest): Promise<google.cloud.discoveryengine.v1alpha.ListDataStoresResponse>;

Calls ListDataStores.

Parameter
Name Description
request IListDataStoresRequest

ListDataStoresRequest message or plain object

Returns
Type Description
Promise<google.cloud.discoveryengine.v1alpha.ListDataStoresResponse>

Promise

updateDataStore(request, callback)

public updateDataStore(request: google.cloud.discoveryengine.v1alpha.IUpdateDataStoreRequest, callback: google.cloud.discoveryengine.v1alpha.DataStoreService.UpdateDataStoreCallback): void;

Calls UpdateDataStore.

Parameters
Name Description
request IUpdateDataStoreRequest

UpdateDataStoreRequest message or plain object

callback UpdateDataStoreCallback

Node-style callback called with the error, if any, and DataStore

Returns
Type Description
void

updateDataStore(request)

public updateDataStore(request: google.cloud.discoveryengine.v1alpha.IUpdateDataStoreRequest): Promise<google.cloud.discoveryengine.v1alpha.DataStore>;

Calls UpdateDataStore.

Parameter
Name Description
request IUpdateDataStoreRequest

UpdateDataStoreRequest message or plain object

Returns
Type Description
Promise<google.cloud.discoveryengine.v1alpha.DataStore>

Promise

updateDocumentProcessingConfig(request, callback)

public updateDocumentProcessingConfig(request: google.cloud.discoveryengine.v1alpha.IUpdateDocumentProcessingConfigRequest, callback: google.cloud.discoveryengine.v1alpha.DataStoreService.UpdateDocumentProcessingConfigCallback): void;

Calls UpdateDocumentProcessingConfig.

Parameters
Name Description
request IUpdateDocumentProcessingConfigRequest

UpdateDocumentProcessingConfigRequest message or plain object

callback UpdateDocumentProcessingConfigCallback

Node-style callback called with the error, if any, and DocumentProcessingConfig

Returns
Type Description
void

updateDocumentProcessingConfig(request)

public updateDocumentProcessingConfig(request: google.cloud.discoveryengine.v1alpha.IUpdateDocumentProcessingConfigRequest): Promise<google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig>;

Calls UpdateDocumentProcessingConfig.

Parameter
Name Description
request IUpdateDocumentProcessingConfigRequest

UpdateDocumentProcessingConfigRequest message or plain object

Returns
Type Description
Promise<google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig>

Promise