Represents an Adaptation
Inheritance
$protobuf.rpc.Service > protos.google.cloud.speech.v1p1beta1.AdaptationPackage
@google-cloud/speechConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Adaptation service.
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): Adaptation;
Creates new Adaptation service using the specified rpc implementation.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
Adaptation | RPC service. Useful where requests and/or responses are streamed. |
createCustomClass(request, callback)
public createCustomClass(request: google.cloud.speech.v1p1beta1.ICreateCustomClassRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.CreateCustomClassCallback): void;
Calls CreateCustomClass.
Name | 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 |
Type | Description |
void |
createCustomClass(request)
public createCustomClass(request: google.cloud.speech.v1p1beta1.ICreateCustomClassRequest): Promise<google.cloud.speech.v1p1beta1.CustomClass>;
Calls CreateCustomClass.
Name | Description |
request |
google.cloud.speech.v1p1beta1.ICreateCustomClassRequest
CreateCustomClassRequest message or plain object |
Type | Description |
Promise<google.cloud.speech.v1p1beta1.CustomClass> | Promise |
createPhraseSet(request, callback)
public createPhraseSet(request: google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.CreatePhraseSetCallback): void;
Calls CreatePhraseSet.
Name | 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 |
Type | Description |
void |
createPhraseSet(request)
public createPhraseSet(request: google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.PhraseSet>;
Calls CreatePhraseSet.
Name | Description |
request |
google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest
CreatePhraseSetRequest message or plain object |
Type | Description |
Promise<google.cloud.speech.v1p1beta1.PhraseSet> | Promise |
deleteCustomClass(request, callback)
public deleteCustomClass(request: google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.DeleteCustomClassCallback): void;
Calls DeleteCustomClass.
Name | Description |
request |
IDeleteCustomClassRequest
DeleteCustomClassRequest message or plain object |
callback |
google.cloud.speech.v1p1beta1.Adaptation.DeleteCustomClassCallback
Node-style callback called with the error, if any, and Empty |
Type | Description |
void |
deleteCustomClass(request)
public deleteCustomClass(request: google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest): Promise<google.protobuf.Empty>;
Calls DeleteCustomClass.
Name | Description |
request |
IDeleteCustomClassRequest
DeleteCustomClassRequest message or plain object |
Type | Description |
Promise<google.protobuf.Empty> | Promise |
deletePhraseSet(request, callback)
public deletePhraseSet(request: google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.DeletePhraseSetCallback): void;
Calls DeletePhraseSet.
Name | 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 |
Type | Description |
void |
deletePhraseSet(request)
public deletePhraseSet(request: google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest): Promise<google.protobuf.Empty>;
Calls DeletePhraseSet.
Name | Description |
request |
google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest
DeletePhraseSetRequest message or plain object |
Type | Description |
Promise<google.protobuf.Empty> | Promise |
getCustomClass(request, callback)
public getCustomClass(request: google.cloud.speech.v1p1beta1.IGetCustomClassRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.GetCustomClassCallback): void;
Calls GetCustomClass.
Name | 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 |
Type | Description |
void |
getCustomClass(request)
public getCustomClass(request: google.cloud.speech.v1p1beta1.IGetCustomClassRequest): Promise<google.cloud.speech.v1p1beta1.CustomClass>;
Calls GetCustomClass.
Name | Description |
request |
google.cloud.speech.v1p1beta1.IGetCustomClassRequest
GetCustomClassRequest message or plain object |
Type | Description |
Promise<google.cloud.speech.v1p1beta1.CustomClass> | Promise |
getPhraseSet(request, callback)
public getPhraseSet(request: google.cloud.speech.v1p1beta1.IGetPhraseSetRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.GetPhraseSetCallback): void;
Calls GetPhraseSet.
Name | 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 |
Type | Description |
void |
getPhraseSet(request)
public getPhraseSet(request: google.cloud.speech.v1p1beta1.IGetPhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.PhraseSet>;
Calls GetPhraseSet.
Name | Description |
request |
google.cloud.speech.v1p1beta1.IGetPhraseSetRequest
GetPhraseSetRequest message or plain object |
Type | Description |
Promise<google.cloud.speech.v1p1beta1.PhraseSet> | Promise |
listCustomClasses(request, callback)
public listCustomClasses(request: google.cloud.speech.v1p1beta1.IListCustomClassesRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.ListCustomClassesCallback): void;
Calls ListCustomClasses.
Name | 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 |
Type | Description |
void |
listCustomClasses(request)
public listCustomClasses(request: google.cloud.speech.v1p1beta1.IListCustomClassesRequest): Promise<google.cloud.speech.v1p1beta1.ListCustomClassesResponse>;
Calls ListCustomClasses.
Name | Description |
request |
google.cloud.speech.v1p1beta1.IListCustomClassesRequest
ListCustomClassesRequest message or plain object |
Type | Description |
Promise<google.cloud.speech.v1p1beta1.ListCustomClassesResponse> | Promise |
listPhraseSet(request, callback)
public listPhraseSet(request: google.cloud.speech.v1p1beta1.IListPhraseSetRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.ListPhraseSetCallback): void;
Calls ListPhraseSet.
Name | 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 |
Type | Description |
void |
listPhraseSet(request)
public listPhraseSet(request: google.cloud.speech.v1p1beta1.IListPhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.ListPhraseSetResponse>;
Calls ListPhraseSet.
Name | Description |
request |
google.cloud.speech.v1p1beta1.IListPhraseSetRequest
ListPhraseSetRequest message or plain object |
Type | Description |
Promise<google.cloud.speech.v1p1beta1.ListPhraseSetResponse> | Promise |
updateCustomClass(request, callback)
public updateCustomClass(request: google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.UpdateCustomClassCallback): void;
Calls UpdateCustomClass.
Name | 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 |
Type | Description |
void |
updateCustomClass(request)
public updateCustomClass(request: google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest): Promise<google.cloud.speech.v1p1beta1.CustomClass>;
Calls UpdateCustomClass.
Name | Description |
request |
google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest
UpdateCustomClassRequest message or plain object |
Type | Description |
Promise<google.cloud.speech.v1p1beta1.CustomClass> | Promise |
updatePhraseSet(request, callback)
public updatePhraseSet(request: google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest, callback: google.cloud.speech.v1p1beta1.Adaptation.UpdatePhraseSetCallback): void;
Calls UpdatePhraseSet.
Name | 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 |
Type | Description |
void |
updatePhraseSet(request)
public updatePhraseSet(request: google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.PhraseSet>;
Calls UpdatePhraseSet.
Name | Description |
request |
google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest
UpdatePhraseSetRequest message or plain object |
Type | Description |
Promise<google.cloud.speech.v1p1beta1.PhraseSet> | Promise |