Represents a DeveloperKnowledge
Inheritance
$protobuf.rpc.Service > protos.google.developers.knowledge.v1.DeveloperKnowledgePackage
@google/developer-knowledgeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new DeveloperKnowledge service.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
answerQuery(request, callback)
public answerQuery(request: google.developers.knowledge.v1.IAnswerQueryRequest, callback: google.developers.knowledge.v1.DeveloperKnowledge.AnswerQueryCallback): void;Calls AnswerQuery.
| Parameters | |
|---|---|
| Name | Description |
request |
IAnswerQueryRequest
AnswerQueryRequest message or plain object |
callback |
AnswerQueryCallback
Node-style callback called with the error, if any, and AnswerQueryResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
answerQuery(request)
public answerQuery(request: google.developers.knowledge.v1.IAnswerQueryRequest): Promise<google.developers.knowledge.v1.AnswerQueryResponse>;Calls AnswerQuery.
| Parameter | |
|---|---|
| Name | Description |
request |
IAnswerQueryRequest
AnswerQueryRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.developers.knowledge.v1.AnswerQueryResponse> |
Promise |
batchGetDocuments(request, callback)
public batchGetDocuments(request: google.developers.knowledge.v1.IBatchGetDocumentsRequest, callback: google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocumentsCallback): void;Calls BatchGetDocuments.
| Parameters | |
|---|---|
| Name | Description |
request |
IBatchGetDocumentsRequest
BatchGetDocumentsRequest message or plain object |
callback |
BatchGetDocumentsCallback
Node-style callback called with the error, if any, and BatchGetDocumentsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
batchGetDocuments(request)
public batchGetDocuments(request: google.developers.knowledge.v1.IBatchGetDocumentsRequest): Promise<google.developers.knowledge.v1.BatchGetDocumentsResponse>;Calls BatchGetDocuments.
| Parameter | |
|---|---|
| Name | Description |
request |
IBatchGetDocumentsRequest
BatchGetDocumentsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.developers.knowledge.v1.BatchGetDocumentsResponse> |
Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DeveloperKnowledge;Creates new DeveloperKnowledge 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 |
DeveloperKnowledge |
RPC service. Useful where requests and/or responses are streamed. |
getDocument(request, callback)
public getDocument(request: google.developers.knowledge.v1.IGetDocumentRequest, callback: google.developers.knowledge.v1.DeveloperKnowledge.GetDocumentCallback): void;Calls GetDocument.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetDocumentRequest
GetDocumentRequest message or plain object |
callback |
GetDocumentCallback
Node-style callback called with the error, if any, and Document |
| Returns | |
|---|---|
| Type | Description |
void |
|
getDocument(request)
public getDocument(request: google.developers.knowledge.v1.IGetDocumentRequest): Promise<google.developers.knowledge.v1.Document>;Calls GetDocument.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetDocumentRequest
GetDocumentRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.developers.knowledge.v1.Document> |
Promise |
searchDocumentChunks(request, callback)
public searchDocumentChunks(request: google.developers.knowledge.v1.ISearchDocumentChunksRequest, callback: google.developers.knowledge.v1.DeveloperKnowledge.SearchDocumentChunksCallback): void;Calls SearchDocumentChunks.
| Parameters | |
|---|---|
| Name | Description |
request |
ISearchDocumentChunksRequest
SearchDocumentChunksRequest message or plain object |
callback |
SearchDocumentChunksCallback
Node-style callback called with the error, if any, and SearchDocumentChunksResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
searchDocumentChunks(request)
public searchDocumentChunks(request: google.developers.knowledge.v1.ISearchDocumentChunksRequest): Promise<google.developers.knowledge.v1.SearchDocumentChunksResponse>;Calls SearchDocumentChunks.
| Parameter | |
|---|---|
| Name | Description |
request |
ISearchDocumentChunksRequest
SearchDocumentChunksRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.developers.knowledge.v1.SearchDocumentChunksResponse> |
Promise |