CustomCommandsConfig class

類別,定義使用 CustomCommands 後端之對話方塊服務連接器物件的組態。

Extends

DialogServiceConfigImpl

建構函式

CustomCommandsConfig()

建立 CustomCommandsConfig 的實例。

屬性

applicationId

取得對應的後端應用程式識別碼。

DialogTypes
outputFormat
properties

提供自訂屬性的存取權。

speechRecognitionLanguage

取得語音辨識語言。

方法

fromAuthorizationToken(string, string, string)

使用指定的語音命令應用程式識別碼、授權權杖和區域,建立 Bot 架構設定的實例。 注意:呼叫端必須確定授權權杖有效。 授權權杖到期之前,呼叫端必須使用新的有效權杖呼叫這個 setter 來重新整理它。 當建立新的辨識器時複製組態值時,新的權杖值將不會套用至已建立的辨識器。 針對先前建立的辨識器,您必須設定對應辨識器的授權權杖以重新整理權杖。 否則,辨識器會在辨識期間發生錯誤。

fromSubscription(string, string, string)

使用指定的訂用帳戶和區域,建立 Bot Framework 組態的實例。

繼承的方法

close()

處置相關聯的資源。

getProperty(string | PropertyId, string)

將具名屬性設定為值

setProperty(string | PropertyId, string)

將具名屬性設定為值

setProxy(string, number, string, string)

設定 Proxy 組態。 僅適用于Node.js環境。 已在 1.4.0 版中新增。

setServiceProperty(string, string, UriQueryParameter)

建構函式詳細資料

CustomCommandsConfig()

建立 CustomCommandsConfig 的實例。

new CustomCommandsConfig()

屬性詳細資料

applicationId

取得對應的後端應用程式識別碼。

string applicationId

屬性值

string

DialogTypes

static { BotFramework: string, CustomCommands: string } DialogTypes

屬性值

{ BotFramework: string, CustomCommands: string }

outputFormat

OutputFormat outputFormat

屬性值

properties

提供自訂屬性的存取權。

PropertyCollection properties

屬性值

屬性。

speechRecognitionLanguage

取得語音辨識語言。

string speechRecognitionLanguage

屬性值

string

方法詳細資料

fromAuthorizationToken(string, string, string)

使用指定的語音命令應用程式識別碼、授權權杖和區域,建立 Bot 架構設定的實例。 注意:呼叫端必須確定授權權杖有效。 授權權杖到期之前,呼叫端必須使用新的有效權杖呼叫這個 setter 來重新整理它。 當建立新的辨識器時複製組態值時,新的權杖值將不會套用至已建立的辨識器。 針對先前建立的辨識器,您必須設定對應辨識器的授權權杖以重新整理權杖。 否則,辨識器會在辨識期間發生錯誤。

static function fromAuthorizationToken(applicationId: string, authorizationToken: string, region: string): CustomCommandsConfig

參數

applicationId

string

語音命令應用程式識別碼。

authorizationToken

string

與應用程式相關聯的授權權杖。

region

string

區功能變數名稱稱 (請參閱 區域頁面) 。

傳回

新的語音命令設定。

fromSubscription(string, string, string)

使用指定的訂用帳戶和區域,建立 Bot Framework 組態的實例。

static function fromSubscription(applicationId: string, subscription: string, region: string): CustomCommandsConfig

參數

applicationId

string

語音命令應用程式識別碼。

subscription

string

與 Bot 相關聯的訂用帳戶金鑰

region

string

區功能變數名稱稱 (請參閱 區域頁面) 。

傳回

新的 Bot Framework 組態。

繼承的方法的詳細資料

close()

處置相關聯的資源。

function close()

繼承自 DialogServiceConfigImpl.close

getProperty(string | PropertyId, string)

將具名屬性設定為值

function getProperty(name: string | PropertyId, def?: string): string

參數

name

string | PropertyId

要取得的屬性。

def

string

如果屬性未知,則傳回的預設值。

傳回

string

指定屬性的目前值或提供的預設值。

繼承自 DialogServiceConfigImpl.getProperty

setProperty(string | PropertyId, string)

將具名屬性設定為值

function setProperty(name: string | PropertyId, value: string)

參數

name

string | PropertyId

要設定的屬性。

value

string

數值。

繼承自 DialogServiceConfigImpl.setProperty

setProxy(string, number, string, string)

設定 Proxy 組態。 僅適用于Node.js環境。 已在 1.4.0 版中新增。

function setProxy(proxyHostName: string, proxyPort: number, proxyUserName?: string, proxyPassword?: string)

參數

proxyHostName

string

Proxy 伺服器的主機名稱,不含通訊協定配置 (HTTP://)

proxyPort

number

Proxy 伺服器的埠號碼。

proxyUserName

string

Proxy 伺服器的使用者名稱。

proxyPassword

string

Proxy 伺服器的密碼。

繼承自 DialogServiceConfigImpl.setProxy

setServiceProperty(string, string, UriQueryParameter)

function setServiceProperty(name: string, value: string, channel: UriQueryParameter)

參數

name

string

value

string

繼承自 DialogServiceConfigImpl.setServiceProperty