Class protos.google.cloud.speech.v1p1beta1.Adaptation

Represents an Adaptation

Inheritance

$protobuf.rpc.Service > protos.google.cloud.speech.v1p1beta1.Adaptation

Package

@google-cloud/speech!

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new Adaptation service.

Parameters
TypeNameDescription
$protobuf.RPCImplrpcImpl

RPC implementation

booleanrequestDelimited

Whether requests are length-delimited

booleanresponseDelimited

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
TypeNameDescription
$protobuf.RPCImplrpcImpl

RPC implementation

booleanrequestDelimited

Whether requests are length-delimited

booleanresponseDelimited

Whether responses are length-delimited

Returns
TypeDescription
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
TypeNameDescription
google.cloud.speech.v1p1beta1.ICreateCustomClassRequestrequest

CreateCustomClassRequest message or plain object

google.cloud.speech.v1p1beta1.Adaptation.CreateCustomClassCallbackcallback

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

Returns
TypeDescription
void

createCustomClass(request)

public createCustomClass(request: google.cloud.speech.v1p1beta1.ICreateCustomClassRequest): Promise<google.cloud.speech.v1p1beta1.CustomClass>;

Calls CreateCustomClass.

Parameter
TypeNameDescription
google.cloud.speech.v1p1beta1.ICreateCustomClassRequestrequest

CreateCustomClassRequest message or plain object

Returns
TypeDescription
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
TypeNameDescription
google.cloud.speech.v1p1beta1.ICreatePhraseSetRequestrequest

CreatePhraseSetRequest message or plain object

google.cloud.speech.v1p1beta1.Adaptation.CreatePhraseSetCallbackcallback

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

Returns
TypeDescription
void

createPhraseSet(request)

public createPhraseSet(request: google.cloud.speech.v1p1beta1.ICreatePhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.PhraseSet>;

Calls CreatePhraseSet.

Parameter
TypeNameDescription
google.cloud.speech.v1p1beta1.ICreatePhraseSetRequestrequest

CreatePhraseSetRequest message or plain object

Returns
TypeDescription
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
TypeNameDescription
google.cloud.speech.v1p1beta1.IDeleteCustomClassRequestrequest

DeleteCustomClassRequest message or plain object

google.cloud.speech.v1p1beta1.Adaptation.DeleteCustomClassCallbackcallback

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

Returns
TypeDescription
void

deleteCustomClass(request)

public deleteCustomClass(request: google.cloud.speech.v1p1beta1.IDeleteCustomClassRequest): Promise<google.protobuf.Empty>;

Calls DeleteCustomClass.

Parameter
TypeNameDescription
google.cloud.speech.v1p1beta1.IDeleteCustomClassRequestrequest

DeleteCustomClassRequest message or plain object

Returns
TypeDescription
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
TypeNameDescription
google.cloud.speech.v1p1beta1.IDeletePhraseSetRequestrequest

DeletePhraseSetRequest message or plain object

google.cloud.speech.v1p1beta1.Adaptation.DeletePhraseSetCallbackcallback

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

Returns
TypeDescription
void

deletePhraseSet(request)

public deletePhraseSet(request: google.cloud.speech.v1p1beta1.IDeletePhraseSetRequest): Promise<google.protobuf.Empty>;

Calls DeletePhraseSet.

Parameter
TypeNameDescription
google.cloud.speech.v1p1beta1.IDeletePhraseSetRequestrequest

DeletePhraseSetRequest message or plain object

Returns
TypeDescription
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
TypeNameDescription
google.cloud.speech.v1p1beta1.IGetCustomClassRequestrequest

GetCustomClassRequest message or plain object

google.cloud.speech.v1p1beta1.Adaptation.GetCustomClassCallbackcallback

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

Returns
TypeDescription
void

getCustomClass(request)

public getCustomClass(request: google.cloud.speech.v1p1beta1.IGetCustomClassRequest): Promise<google.cloud.speech.v1p1beta1.CustomClass>;

Calls GetCustomClass.

Parameter
TypeNameDescription
google.cloud.speech.v1p1beta1.IGetCustomClassRequestrequest

GetCustomClassRequest message or plain object

Returns
TypeDescription
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
TypeNameDescription
google.cloud.speech.v1p1beta1.IGetPhraseSetRequestrequest

GetPhraseSetRequest message or plain object

google.cloud.speech.v1p1beta1.Adaptation.GetPhraseSetCallbackcallback

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

Returns
TypeDescription
void

getPhraseSet(request)

public getPhraseSet(request: google.cloud.speech.v1p1beta1.IGetPhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.PhraseSet>;

Calls GetPhraseSet.

Parameter
TypeNameDescription
google.cloud.speech.v1p1beta1.IGetPhraseSetRequestrequest

GetPhraseSetRequest message or plain object

Returns
TypeDescription
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
TypeNameDescription
google.cloud.speech.v1p1beta1.IListCustomClassesRequestrequest

ListCustomClassesRequest message or plain object

google.cloud.speech.v1p1beta1.Adaptation.ListCustomClassesCallbackcallback

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

Returns
TypeDescription
void

listCustomClasses(request)

public listCustomClasses(request: google.cloud.speech.v1p1beta1.IListCustomClassesRequest): Promise<google.cloud.speech.v1p1beta1.ListCustomClassesResponse>;

Calls ListCustomClasses.

Parameter
TypeNameDescription
google.cloud.speech.v1p1beta1.IListCustomClassesRequestrequest

ListCustomClassesRequest message or plain object

Returns
TypeDescription
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
TypeNameDescription
google.cloud.speech.v1p1beta1.IListPhraseSetRequestrequest

ListPhraseSetRequest message or plain object

google.cloud.speech.v1p1beta1.Adaptation.ListPhraseSetCallbackcallback

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

Returns
TypeDescription
void

listPhraseSet(request)

public listPhraseSet(request: google.cloud.speech.v1p1beta1.IListPhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.ListPhraseSetResponse>;

Calls ListPhraseSet.

Parameter
TypeNameDescription
google.cloud.speech.v1p1beta1.IListPhraseSetRequestrequest

ListPhraseSetRequest message or plain object

Returns
TypeDescription
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
TypeNameDescription
google.cloud.speech.v1p1beta1.IUpdateCustomClassRequestrequest

UpdateCustomClassRequest message or plain object

google.cloud.speech.v1p1beta1.Adaptation.UpdateCustomClassCallbackcallback

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

Returns
TypeDescription
void

updateCustomClass(request)

public updateCustomClass(request: google.cloud.speech.v1p1beta1.IUpdateCustomClassRequest): Promise<google.cloud.speech.v1p1beta1.CustomClass>;

Calls UpdateCustomClass.

Parameter
TypeNameDescription
google.cloud.speech.v1p1beta1.IUpdateCustomClassRequestrequest

UpdateCustomClassRequest message or plain object

Returns
TypeDescription
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
TypeNameDescription
google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequestrequest

UpdatePhraseSetRequest message or plain object

google.cloud.speech.v1p1beta1.Adaptation.UpdatePhraseSetCallbackcallback

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

Returns
TypeDescription
void

updatePhraseSet(request)

public updatePhraseSet(request: google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequest): Promise<google.cloud.speech.v1p1beta1.PhraseSet>;

Calls UpdatePhraseSet.

Parameter
TypeNameDescription
google.cloud.speech.v1p1beta1.IUpdatePhraseSetRequestrequest

UpdatePhraseSetRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.speech.v1p1beta1.PhraseSet>

Promise