Represents a ChunkService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.discoveryengine.v1alpha.ChunkServicePackage
@google-cloud/discoveryengineConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new ChunkService 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): ChunkService;Creates new ChunkService 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 |
ChunkService |
RPC service. Useful where requests and/or responses are streamed. |
getChunk(request, callback)
public getChunk(request: google.cloud.discoveryengine.v1alpha.IGetChunkRequest, callback: google.cloud.discoveryengine.v1alpha.ChunkService.GetChunkCallback): void;Calls GetChunk.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetChunkRequest
GetChunkRequest message or plain object |
callback |
GetChunkCallback
Node-style callback called with the error, if any, and Chunk |
| Returns | |
|---|---|
| Type | Description |
void |
|
getChunk(request)
public getChunk(request: google.cloud.discoveryengine.v1alpha.IGetChunkRequest): Promise<google.cloud.discoveryengine.v1alpha.Chunk>;Calls GetChunk.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetChunkRequest
GetChunkRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.discoveryengine.v1alpha.Chunk> |
Promise |
listChunks(request, callback)
public listChunks(request: google.cloud.discoveryengine.v1alpha.IListChunksRequest, callback: google.cloud.discoveryengine.v1alpha.ChunkService.ListChunksCallback): void;Calls ListChunks.
| Parameters | |
|---|---|
| Name | Description |
request |
IListChunksRequest
ListChunksRequest message or plain object |
callback |
ListChunksCallback
Node-style callback called with the error, if any, and ListChunksResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listChunks(request)
public listChunks(request: google.cloud.discoveryengine.v1alpha.IListChunksRequest): Promise<google.cloud.discoveryengine.v1alpha.ListChunksResponse>;Calls ListChunks.
| Parameter | |
|---|---|
| Name | Description |
request |
IListChunksRequest
ListChunksRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.discoveryengine.v1alpha.ListChunksResponse> |
Promise |