Class protos.google.cloud.dialogflow.v2.Versions (5.2.1)

Represents a Versions

Inheritance

$protobuf.rpc.Service > protos.google.cloud.dialogflow.v2.Versions

Package

@google-cloud/dialogflow

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new Versions 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): Versions;

Creates new Versions 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
Versions

RPC service. Useful where requests and/or responses are streamed.

createVersion(request, callback)

public createVersion(request: google.cloud.dialogflow.v2.ICreateVersionRequest, callback: google.cloud.dialogflow.v2.Versions.CreateVersionCallback): void;

Calls CreateVersion.

Parameters
NameDescription
request ICreateVersionRequest

CreateVersionRequest message or plain object

callback google.cloud.dialogflow.v2.Versions.CreateVersionCallback

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

Returns
TypeDescription
void

createVersion(request)

public createVersion(request: google.cloud.dialogflow.v2.ICreateVersionRequest): Promise<google.cloud.dialogflow.v2.Version>;

Calls CreateVersion.

Parameter
NameDescription
request ICreateVersionRequest

CreateVersionRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2.Version>

Promise

deleteVersion(request, callback)

public deleteVersion(request: google.cloud.dialogflow.v2.IDeleteVersionRequest, callback: google.cloud.dialogflow.v2.Versions.DeleteVersionCallback): void;

Calls DeleteVersion.

Parameters
NameDescription
request google.cloud.dialogflow.v2.IDeleteVersionRequest

DeleteVersionRequest message or plain object

callback google.cloud.dialogflow.v2.Versions.DeleteVersionCallback

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

Returns
TypeDescription
void

deleteVersion(request)

public deleteVersion(request: google.cloud.dialogflow.v2.IDeleteVersionRequest): Promise<google.protobuf.Empty>;

Calls DeleteVersion.

Parameter
NameDescription
request google.cloud.dialogflow.v2.IDeleteVersionRequest

DeleteVersionRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getVersion(request, callback)

public getVersion(request: google.cloud.dialogflow.v2.IGetVersionRequest, callback: google.cloud.dialogflow.v2.Versions.GetVersionCallback): void;

Calls GetVersion.

Parameters
NameDescription
request google.cloud.dialogflow.v2.IGetVersionRequest

GetVersionRequest message or plain object

callback google.cloud.dialogflow.v2.Versions.GetVersionCallback

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

Returns
TypeDescription
void

getVersion(request)

public getVersion(request: google.cloud.dialogflow.v2.IGetVersionRequest): Promise<google.cloud.dialogflow.v2.Version>;

Calls GetVersion.

Parameter
NameDescription
request google.cloud.dialogflow.v2.IGetVersionRequest

GetVersionRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2.Version>

Promise

listVersions(request, callback)

public listVersions(request: google.cloud.dialogflow.v2.IListVersionsRequest, callback: google.cloud.dialogflow.v2.Versions.ListVersionsCallback): void;

Calls ListVersions.

Parameters
NameDescription
request google.cloud.dialogflow.v2.IListVersionsRequest

ListVersionsRequest message or plain object

callback google.cloud.dialogflow.v2.Versions.ListVersionsCallback

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

Returns
TypeDescription
void

listVersions(request)

public listVersions(request: google.cloud.dialogflow.v2.IListVersionsRequest): Promise<google.cloud.dialogflow.v2.ListVersionsResponse>;

Calls ListVersions.

Parameter
NameDescription
request google.cloud.dialogflow.v2.IListVersionsRequest

ListVersionsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2.ListVersionsResponse>

Promise

updateVersion(request, callback)

public updateVersion(request: google.cloud.dialogflow.v2.IUpdateVersionRequest, callback: google.cloud.dialogflow.v2.Versions.UpdateVersionCallback): void;

Calls UpdateVersion.

Parameters
NameDescription
request google.cloud.dialogflow.v2.IUpdateVersionRequest

UpdateVersionRequest message or plain object

callback google.cloud.dialogflow.v2.Versions.UpdateVersionCallback

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

Returns
TypeDescription
void

updateVersion(request)

public updateVersion(request: google.cloud.dialogflow.v2.IUpdateVersionRequest): Promise<google.cloud.dialogflow.v2.Version>;

Calls UpdateVersion.

Parameter
NameDescription
request google.cloud.dialogflow.v2.IUpdateVersionRequest

UpdateVersionRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.dialogflow.v2.Version>

Promise