Represents an Examples
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3beta1.ExamplesPackage
@google-cloud/dialogflow-cxConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new Examples 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): Examples;Creates new Examples 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 |
Examples |
RPC service. Useful where requests and/or responses are streamed. |
createExample(request, callback)
public createExample(request: google.cloud.dialogflow.cx.v3beta1.ICreateExampleRequest, callback: google.cloud.dialogflow.cx.v3beta1.Examples.CreateExampleCallback): void;Calls CreateExample.
| Parameters | |
|---|---|
| Name | Description |
request |
ICreateExampleRequest
CreateExampleRequest message or plain object |
callback |
CreateExampleCallback
Node-style callback called with the error, if any, and Example |
| Returns | |
|---|---|
| Type | Description |
void |
|
createExample(request)
public createExample(request: google.cloud.dialogflow.cx.v3beta1.ICreateExampleRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Example>;Calls CreateExample.
| Parameter | |
|---|---|
| Name | Description |
request |
ICreateExampleRequest
CreateExampleRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.Example> |
Promise |
deleteExample(request, callback)
public deleteExample(request: google.cloud.dialogflow.cx.v3beta1.IDeleteExampleRequest, callback: google.cloud.dialogflow.cx.v3beta1.Examples.DeleteExampleCallback): void;Calls DeleteExample.
| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteExampleRequest
DeleteExampleRequest message or plain object |
callback |
DeleteExampleCallback
Node-style callback called with the error, if any, and Empty |
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteExample(request)
public deleteExample(request: google.cloud.dialogflow.cx.v3beta1.IDeleteExampleRequest): Promise<google.protobuf.Empty>;Calls DeleteExample.
| Parameter | |
|---|---|
| Name | Description |
request |
IDeleteExampleRequest
DeleteExampleRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.protobuf.Empty> |
Promise |
getExample(request, callback)
public getExample(request: google.cloud.dialogflow.cx.v3beta1.IGetExampleRequest, callback: google.cloud.dialogflow.cx.v3beta1.Examples.GetExampleCallback): void;Calls GetExample.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetExampleRequest
GetExampleRequest message or plain object |
callback |
GetExampleCallback
Node-style callback called with the error, if any, and Example |
| Returns | |
|---|---|
| Type | Description |
void |
|
getExample(request)
public getExample(request: google.cloud.dialogflow.cx.v3beta1.IGetExampleRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Example>;Calls GetExample.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetExampleRequest
GetExampleRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.Example> |
Promise |
listExamples(request, callback)
public listExamples(request: google.cloud.dialogflow.cx.v3beta1.IListExamplesRequest, callback: google.cloud.dialogflow.cx.v3beta1.Examples.ListExamplesCallback): void;Calls ListExamples.
| Parameters | |
|---|---|
| Name | Description |
request |
IListExamplesRequest
ListExamplesRequest message or plain object |
callback |
ListExamplesCallback
Node-style callback called with the error, if any, and ListExamplesResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listExamples(request)
public listExamples(request: google.cloud.dialogflow.cx.v3beta1.IListExamplesRequest): Promise<google.cloud.dialogflow.cx.v3beta1.ListExamplesResponse>;Calls ListExamples.
| Parameter | |
|---|---|
| Name | Description |
request |
IListExamplesRequest
ListExamplesRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.ListExamplesResponse> |
Promise |
updateExample(request, callback)
public updateExample(request: google.cloud.dialogflow.cx.v3beta1.IUpdateExampleRequest, callback: google.cloud.dialogflow.cx.v3beta1.Examples.UpdateExampleCallback): void;Calls UpdateExample.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateExampleRequest
UpdateExampleRequest message or plain object |
callback |
UpdateExampleCallback
Node-style callback called with the error, if any, and Example |
| Returns | |
|---|---|
| Type | Description |
void |
|
updateExample(request)
public updateExample(request: google.cloud.dialogflow.cx.v3beta1.IUpdateExampleRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Example>;Calls UpdateExample.
| Parameter | |
|---|---|
| Name | Description |
request |
IUpdateExampleRequest
UpdateExampleRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.Example> |
Promise |