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

Represents a ChunkService

Inheritance

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

Package

@google-cloud/discoveryengine

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new ChunkService service.

Parameters
NameDescription
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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
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
NameDescription
request IGetChunkRequest

GetChunkRequest message or plain object

callback GetChunkCallback

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

Returns
TypeDescription
void

getChunk(request)

public getChunk(request: google.cloud.discoveryengine.v1alpha.IGetChunkRequest): Promise<google.cloud.discoveryengine.v1alpha.Chunk>;

Calls GetChunk.

Parameter
NameDescription
request IGetChunkRequest

GetChunkRequest message or plain object

Returns
TypeDescription
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
NameDescription
request IListChunksRequest

ListChunksRequest message or plain object

callback ListChunksCallback

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

Returns
TypeDescription
void

listChunks(request)

public listChunks(request: google.cloud.discoveryengine.v1alpha.IListChunksRequest): Promise<google.cloud.discoveryengine.v1alpha.ListChunksResponse>;

Calls ListChunks.

Parameter
NameDescription
request IListChunksRequest

ListChunksRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.discoveryengine.v1alpha.ListChunksResponse>

Promise