Class protos.google.cloud.speech.v1p1beta1.Adaptation (4.9.0)

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
NameDescription
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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

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
NameDescription
request 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
TypeDescription
void

createCustomClass(request)

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

Calls CreateCustomClass.

Parameter
NameDescription
request ICreateCustomClassRequest

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
NameDescription
request 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
TypeDescription
void

createPhraseSet(request)

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

Calls CreatePhraseSet.

Parameter
NameDescription
request ICreatePhraseSetRequest

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
NameDescription
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

Returns
TypeDescription
void

deleteCustomClass(request)

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

Calls DeleteCustomClass.

Parameter
NameDescription
request IDeleteCustomClassRequest

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
NameDescription
request 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
TypeDescription
void

deletePhraseSet(request)

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

Calls DeletePhraseSet.

Parameter
NameDescription
request IDeletePhraseSetRequest

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
NameDescription
request 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
TypeDescription
void

getCustomClass(request)

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

Calls GetCustomClass.

Parameter
NameDescription
request IGetCustomClassRequest

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
NameDescription
request 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
TypeDescription
void

getPhraseSet(request)

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

Calls GetPhraseSet.

Parameter
NameDescription
request IGetPhraseSetRequest

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
NameDescription
request 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
TypeDescription
void

listCustomClasses(request)

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

Calls ListCustomClasses.

Parameter
NameDescription
request IListCustomClassesRequest

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
NameDescription
request 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
TypeDescription
void

listPhraseSet(request)

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

Calls ListPhraseSet.

Parameter
NameDescription
request IListPhraseSetRequest

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
NameDescription
request 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
TypeDescription
void

updateCustomClass(request)

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

Calls UpdateCustomClass.

Parameter
NameDescription
request IUpdateCustomClassRequest

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
NameDescription
request 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
TypeDescription
void

updatePhraseSet(request)

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

Calls UpdatePhraseSet.

Parameter
NameDescription
request IUpdatePhraseSetRequest

UpdatePhraseSetRequest message or plain object

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

Promise