Represents a Versions
Inheritance
$protobuf.rpc.Service > protos.google.cloud.dialogflow.cx.v3beta1.VersionsPackage
@google-cloud/dialogflow-cxConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Versions service.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
compareVersions(request, callback)
public compareVersions(request: google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.CompareVersionsCallback): void;
Calls CompareVersions.
Parameters | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest
CompareVersionsRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Versions.CompareVersionsCallback
Node-style callback called with the error, if any, and CompareVersionsResponse |
Returns | |
---|---|
Type | Description |
void |
compareVersions(request)
public compareVersions(request: google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest): Promise<google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse>;
Calls CompareVersions.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.ICompareVersionsRequest
CompareVersionsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse> | Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Versions;
Creates new Versions 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 |
Versions | RPC service. Useful where requests and/or responses are streamed. |
createVersion(request, callback)
public createVersion(request: google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.CreateVersionCallback): void;
Calls CreateVersion.
Parameters | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest
CreateVersionRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Versions.CreateVersionCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
createVersion(request)
public createVersion(request: google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest): Promise<google.longrunning.Operation>;
Calls CreateVersion.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.ICreateVersionRequest
CreateVersionRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |
deleteVersion(request, callback)
public deleteVersion(request: google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.DeleteVersionCallback): void;
Calls DeleteVersion.
Parameters | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest
DeleteVersionRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Versions.DeleteVersionCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteVersion(request)
public deleteVersion(request: google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest): Promise<google.protobuf.Empty>;
Calls DeleteVersion.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.IDeleteVersionRequest
DeleteVersionRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.protobuf.Empty> | Promise |
getVersion(request, callback)
public getVersion(request: google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.GetVersionCallback): void;
Calls GetVersion.
Parameters | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest
GetVersionRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Versions.GetVersionCallback
Node-style callback called with the error, if any, and Version |
Returns | |
---|---|
Type | Description |
void |
getVersion(request)
public getVersion(request: google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Version>;
Calls GetVersion.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.IGetVersionRequest
GetVersionRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.Version> | Promise |
listVersions(request, callback)
public listVersions(request: google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.ListVersionsCallback): void;
Calls ListVersions.
Parameters | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest
ListVersionsRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Versions.ListVersionsCallback
Node-style callback called with the error, if any, and ListVersionsResponse |
Returns | |
---|---|
Type | Description |
void |
listVersions(request)
public listVersions(request: google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest): Promise<google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse>;
Calls ListVersions.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.IListVersionsRequest
ListVersionsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse> | Promise |
loadVersion(request, callback)
public loadVersion(request: google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.LoadVersionCallback): void;
Calls LoadVersion.
Parameters | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest
LoadVersionRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Versions.LoadVersionCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
loadVersion(request)
public loadVersion(request: google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest): Promise<google.longrunning.Operation>;
Calls LoadVersion.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.ILoadVersionRequest
LoadVersionRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.longrunning.Operation> | Promise |
updateVersion(request, callback)
public updateVersion(request: google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest, callback: google.cloud.dialogflow.cx.v3beta1.Versions.UpdateVersionCallback): void;
Calls UpdateVersion.
Parameters | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest
UpdateVersionRequest message or plain object |
callback |
google.cloud.dialogflow.cx.v3beta1.Versions.UpdateVersionCallback
Node-style callback called with the error, if any, and Version |
Returns | |
---|---|
Type | Description |
void |
updateVersion(request)
public updateVersion(request: google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest): Promise<google.cloud.dialogflow.cx.v3beta1.Version>;
Calls UpdateVersion.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.dialogflow.cx.v3beta1.IUpdateVersionRequest
UpdateVersionRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.dialogflow.cx.v3beta1.Version> | Promise |