Constructor
new Adaptation(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new Adaptation service.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Extends
- $protobuf.rpc.Service
Methods
createCustomClass(request, callback) → {undefined}
Calls CreateCustomClass.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.speech.v1p1beta1.ICreateCustomClassRequest |
CreateCustomClassRequest message or plain object |
callback |
google.cloud.speech.v1p1beta1.Adaptation.CreateCustomClassCallback |
Node-style callback called with the error, if any, and CustomClass |
Returns:
Type | Description |
---|---|
undefined |
createCustomClass(request) → {Promise.<google.cloud.speech.v1p1beta1.CustomClass>}
Calls CreateCustomClass.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.speech.v1p1beta1.ICreateCustomClassRequest |
CreateCustomClassRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.speech.v1p1beta1.CustomClass> |
Promise |
createPhraseSet(request, callback) → {undefined}
Calls CreatePhraseSet.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest |
CreatePhraseSetRequest message or plain object |
callback |
google.cloud.speech.v1p1beta1.Adaptation.CreatePhraseSetCallback |
Node-style callback called with the error, if any, and PhraseSet |
Returns:
Type | Description |
---|---|
undefined |
createPhraseSet(request) → {Promise.<google.cloud.speech.v1p1beta1.PhraseSet>}
Calls CreatePhraseSet.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest |
CreatePhraseSetRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.speech.v1p1beta1.PhraseSet> |
Promise |
deleteCustomClass(request, callback) → {undefined}
Calls DeleteCustomClass.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest |
DeleteCustomClassRequest message or plain object |
callback |
google.cloud.speech.v1p1beta1.Adaptation.DeleteCustomClassCallback |
Node-style callback called with the error, if any, and Empty |
Returns:
Type | Description |
---|---|
undefined |
deleteCustomClass(request) → {Promise.<google.protobuf.Empty>}
Calls DeleteCustomClass.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest |
DeleteCustomClassRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.protobuf.Empty> |
Promise |
deletePhraseSet(request, callback) → {undefined}
Calls DeletePhraseSet.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest |
DeletePhraseSetRequest message or plain object |
callback |
google.cloud.speech.v1p1beta1.Adaptation.DeletePhraseSetCallback |
Node-style callback called with the error, if any, and Empty |
Returns:
Type | Description |
---|---|
undefined |
deletePhraseSet(request) → {Promise.<google.protobuf.Empty>}
Calls DeletePhraseSet.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest |
DeletePhraseSetRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.protobuf.Empty> |
Promise |
getCustomClass(request, callback) → {undefined}
Calls GetCustomClass.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.speech.v1p1beta1.IGetCustomClassRequest |
GetCustomClassRequest message or plain object |
callback |
google.cloud.speech.v1p1beta1.Adaptation.GetCustomClassCallback |
Node-style callback called with the error, if any, and CustomClass |
Returns:
Type | Description |
---|---|
undefined |
getCustomClass(request) → {Promise.<google.cloud.speech.v1p1beta1.CustomClass>}
Calls GetCustomClass.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.speech.v1p1beta1.IGetCustomClassRequest |
GetCustomClassRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.speech.v1p1beta1.CustomClass> |
Promise |
getPhraseSet(request, callback) → {undefined}
Calls GetPhraseSet.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.speech.v1p1beta1.IGetPhraseSetRequest |
GetPhraseSetRequest message or plain object |
callback |
google.cloud.speech.v1p1beta1.Adaptation.GetPhraseSetCallback |
Node-style callback called with the error, if any, and PhraseSet |
Returns:
Type | Description |
---|---|
undefined |
getPhraseSet(request) → {Promise.<google.cloud.speech.v1p1beta1.PhraseSet>}
Calls GetPhraseSet.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.speech.v1p1beta1.IGetPhraseSetRequest |
GetPhraseSetRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.speech.v1p1beta1.PhraseSet> |
Promise |
listCustomClasses(request, callback) → {undefined}
Calls ListCustomClasses.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.speech.v1p1beta1.IListCustomClassesRequest |
ListCustomClassesRequest message or plain object |
callback |
google.cloud.speech.v1p1beta1.Adaptation.ListCustomClassesCallback |
Node-style callback called with the error, if any, and ListCustomClassesResponse |
Returns:
Type | Description |
---|---|
undefined |
listCustomClasses(request) → {Promise.<google.cloud.speech.v1p1beta1.ListCustomClassesResponse>}
Calls ListCustomClasses.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.speech.v1p1beta1.IListCustomClassesRequest |
ListCustomClassesRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.speech.v1p1beta1.ListCustomClassesResponse> |
Promise |
listPhraseSet(request, callback) → {undefined}
Calls ListPhraseSet.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.speech.v1p1beta1.IListPhraseSetRequest |
ListPhraseSetRequest message or plain object |
callback |
google.cloud.speech.v1p1beta1.Adaptation.ListPhraseSetCallback |
Node-style callback called with the error, if any, and ListPhraseSetResponse |
Returns:
Type | Description |
---|---|
undefined |
listPhraseSet(request) → {Promise.<google.cloud.speech.v1p1beta1.ListPhraseSetResponse>}
Calls ListPhraseSet.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.speech.v1p1beta1.IListPhraseSetRequest |
ListPhraseSetRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.speech.v1p1beta1.ListPhraseSetResponse> |
Promise |
updateCustomClass(request, callback) → {undefined}
Calls UpdateCustomClass.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest |
UpdateCustomClassRequest message or plain object |
callback |
google.cloud.speech.v1p1beta1.Adaptation.UpdateCustomClassCallback |
Node-style callback called with the error, if any, and CustomClass |
Returns:
Type | Description |
---|---|
undefined |
updateCustomClass(request) → {Promise.<google.cloud.speech.v1p1beta1.CustomClass>}
Calls UpdateCustomClass.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest |
UpdateCustomClassRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.speech.v1p1beta1.CustomClass> |
Promise |
updatePhraseSet(request, callback) → {undefined}
Calls UpdatePhraseSet.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest |
UpdatePhraseSetRequest message or plain object |
callback |
google.cloud.speech.v1p1beta1.Adaptation.UpdatePhraseSetCallback |
Node-style callback called with the error, if any, and PhraseSet |
Returns:
Type | Description |
---|---|
undefined |
updatePhraseSet(request) → {Promise.<google.cloud.speech.v1p1beta1.PhraseSet>}
Calls UpdatePhraseSet.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest |
UpdatePhraseSetRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.speech.v1p1beta1.PhraseSet> |
Promise |
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {Adaptation}
Creates new Adaptation service using the specified rpc implementation.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Returns:
Type | Description |
---|---|
Adaptation |
RPC service. Useful where requests and/or responses are streamed. |
Type Definitions
CreateCustomClassCallback(error, responseopt)
Callback as used by createCustomClass.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.speech.v1p1beta1.CustomClass |
<optional> |
CustomClass |
CreatePhraseSetCallback(error, responseopt)
Callback as used by createPhraseSet.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.speech.v1p1beta1.PhraseSet |
<optional> |
PhraseSet |
DeleteCustomClassCallback(error, responseopt)
Callback as used by deleteCustomClass.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.protobuf.Empty |
<optional> |
Empty |
DeletePhraseSetCallback(error, responseopt)
Callback as used by deletePhraseSet.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.protobuf.Empty |
<optional> |
Empty |
GetCustomClassCallback(error, responseopt)
Callback as used by getCustomClass.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.speech.v1p1beta1.CustomClass |
<optional> |
CustomClass |
GetPhraseSetCallback(error, responseopt)
Callback as used by getPhraseSet.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.speech.v1p1beta1.PhraseSet |
<optional> |
PhraseSet |
ListCustomClassesCallback(error, responseopt)
Callback as used by listCustomClasses.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.speech.v1p1beta1.ListCustomClassesResponse |
<optional> |
ListCustomClassesResponse |
ListPhraseSetCallback(error, responseopt)
Callback as used by listPhraseSet.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.speech.v1p1beta1.ListPhraseSetResponse |
<optional> |
ListPhraseSetResponse |
UpdateCustomClassCallback(error, responseopt)
Callback as used by updateCustomClass.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.speech.v1p1beta1.CustomClass |
<optional> |
CustomClass |
UpdatePhraseSetCallback(error, responseopt)
Callback as used by updatePhraseSet.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.speech.v1p1beta1.PhraseSet |
<optional> |
PhraseSet |