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.
Parameters | |
---|---|
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.
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 |
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.
Parameters | |
---|---|
Name | Description |
request |
ICreateCustomClassRequest
CreateCustomClassRequest message or plain object |
callback |
CreateCustomClassCallback
Node-style callback called with the error, if any, and CustomClass |
Returns | |
---|---|
Type | Description |
void |
createCustomClass(request)
public createCustomClass(request: google.cloud.speech.v1p1beta1.ICreateCustomClassRequest): Promise<google.cloud.speech.v1p1beta1.CustomClass>;
Calls CreateCustomClass.
Parameter | |
---|---|
Name | Description |
request |
ICreateCustomClassRequest
CreateCustomClassRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
ICreatePhraseSetRequest
CreatePhraseSetRequest message or plain object |
callback |
CreatePhraseSetCallback
Node-style callback called with the error, if any, and PhraseSet |
Returns | |
---|---|
Type | Description |
void |
createPhraseSet(request)
public createPhraseSet(request: google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.PhraseSet>;
Calls CreatePhraseSet.
Parameter | |
---|---|
Name | Description |
request |
ICreatePhraseSetRequest
CreatePhraseSetRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
IDeleteCustomClassRequest
DeleteCustomClassRequest message or plain object |
callback |
DeleteCustomClassCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteCustomClass(request)
public deleteCustomClass(request: google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest): Promise<google.protobuf.Empty>;
Calls DeleteCustomClass.
Parameter | |
---|---|
Name | Description |
request |
IDeleteCustomClassRequest
DeleteCustomClassRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
IDeletePhraseSetRequest
DeletePhraseSetRequest message or plain object |
callback |
DeletePhraseSetCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deletePhraseSet(request)
public deletePhraseSet(request: google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest): Promise<google.protobuf.Empty>;
Calls DeletePhraseSet.
Parameter | |
---|---|
Name | Description |
request |
IDeletePhraseSetRequest
DeletePhraseSetRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
IGetCustomClassRequest
GetCustomClassRequest message or plain object |
callback |
GetCustomClassCallback
Node-style callback called with the error, if any, and CustomClass |
Returns | |
---|---|
Type | Description |
void |
getCustomClass(request)
public getCustomClass(request: google.cloud.speech.v1p1beta1.IGetCustomClassRequest): Promise<google.cloud.speech.v1p1beta1.CustomClass>;
Calls GetCustomClass.
Parameter | |
---|---|
Name | Description |
request |
IGetCustomClassRequest
GetCustomClassRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
IGetPhraseSetRequest
GetPhraseSetRequest message or plain object |
callback |
GetPhraseSetCallback
Node-style callback called with the error, if any, and PhraseSet |
Returns | |
---|---|
Type | Description |
void |
getPhraseSet(request)
public getPhraseSet(request: google.cloud.speech.v1p1beta1.IGetPhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.PhraseSet>;
Calls GetPhraseSet.
Parameter | |
---|---|
Name | Description |
request |
IGetPhraseSetRequest
GetPhraseSetRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
IListCustomClassesRequest
ListCustomClassesRequest message or plain object |
callback |
ListCustomClassesCallback
Node-style callback called with the error, if any, and ListCustomClassesResponse |
Returns | |
---|---|
Type | Description |
void |
listCustomClasses(request)
public listCustomClasses(request: google.cloud.speech.v1p1beta1.IListCustomClassesRequest): Promise<google.cloud.speech.v1p1beta1.ListCustomClassesResponse>;
Calls ListCustomClasses.
Parameter | |
---|---|
Name | Description |
request |
IListCustomClassesRequest
ListCustomClassesRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
IListPhraseSetRequest
ListPhraseSetRequest message or plain object |
callback |
ListPhraseSetCallback
Node-style callback called with the error, if any, and ListPhraseSetResponse |
Returns | |
---|---|
Type | Description |
void |
listPhraseSet(request)
public listPhraseSet(request: google.cloud.speech.v1p1beta1.IListPhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.ListPhraseSetResponse>;
Calls ListPhraseSet.
Parameter | |
---|---|
Name | Description |
request |
IListPhraseSetRequest
ListPhraseSetRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
IUpdateCustomClassRequest
UpdateCustomClassRequest message or plain object |
callback |
UpdateCustomClassCallback
Node-style callback called with the error, if any, and CustomClass |
Returns | |
---|---|
Type | Description |
void |
updateCustomClass(request)
public updateCustomClass(request: google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest): Promise<google.cloud.speech.v1p1beta1.CustomClass>;
Calls UpdateCustomClass.
Parameter | |
---|---|
Name | Description |
request |
IUpdateCustomClassRequest
UpdateCustomClassRequest message or plain object |
Returns | |
---|---|
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.
Parameters | |
---|---|
Name | Description |
request |
IUpdatePhraseSetRequest
UpdatePhraseSetRequest message or plain object |
callback |
UpdatePhraseSetCallback
Node-style callback called with the error, if any, and PhraseSet |
Returns | |
---|---|
Type | Description |
void |
updatePhraseSet(request)
public updatePhraseSet(request: google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.PhraseSet>;
Calls UpdatePhraseSet.
Parameter | |
---|---|
Name | Description |
request |
IUpdatePhraseSetRequest
UpdatePhraseSetRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.speech.v1p1beta1.PhraseSet> | Promise |