Class protos.google.cloud.talent.v4beta1.CompanyService (6.0.2)

Represents a CompanyService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.talent.v4beta1.CompanyService

Package

@google-cloud/talent

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new CompanyService 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): CompanyService;

Creates new CompanyService 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
CompanyService

RPC service. Useful where requests and/or responses are streamed.

createCompany(request, callback)

public createCompany(request: google.cloud.talent.v4beta1.ICreateCompanyRequest, callback: google.cloud.talent.v4beta1.CompanyService.CreateCompanyCallback): void;

Calls CreateCompany.

Parameters
NameDescription
request ICreateCompanyRequest

CreateCompanyRequest message or plain object

callback CreateCompanyCallback

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

Returns
TypeDescription
void

createCompany(request)

public createCompany(request: google.cloud.talent.v4beta1.ICreateCompanyRequest): Promise<google.cloud.talent.v4beta1.Company>;

Calls CreateCompany.

Parameter
NameDescription
request ICreateCompanyRequest

CreateCompanyRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.talent.v4beta1.Company>

Promise

deleteCompany(request, callback)

public deleteCompany(request: google.cloud.talent.v4beta1.IDeleteCompanyRequest, callback: google.cloud.talent.v4beta1.CompanyService.DeleteCompanyCallback): void;

Calls DeleteCompany.

Parameters
NameDescription
request IDeleteCompanyRequest

DeleteCompanyRequest message or plain object

callback DeleteCompanyCallback

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

Returns
TypeDescription
void

deleteCompany(request)

public deleteCompany(request: google.cloud.talent.v4beta1.IDeleteCompanyRequest): Promise<google.protobuf.Empty>;

Calls DeleteCompany.

Parameter
NameDescription
request IDeleteCompanyRequest

DeleteCompanyRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getCompany(request, callback)

public getCompany(request: google.cloud.talent.v4beta1.IGetCompanyRequest, callback: google.cloud.talent.v4beta1.CompanyService.GetCompanyCallback): void;

Calls GetCompany.

Parameters
NameDescription
request IGetCompanyRequest

GetCompanyRequest message or plain object

callback GetCompanyCallback

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

Returns
TypeDescription
void

getCompany(request)

public getCompany(request: google.cloud.talent.v4beta1.IGetCompanyRequest): Promise<google.cloud.talent.v4beta1.Company>;

Calls GetCompany.

Parameter
NameDescription
request IGetCompanyRequest

GetCompanyRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.talent.v4beta1.Company>

Promise

listCompanies(request, callback)

public listCompanies(request: google.cloud.talent.v4beta1.IListCompaniesRequest, callback: google.cloud.talent.v4beta1.CompanyService.ListCompaniesCallback): void;

Calls ListCompanies.

Parameters
NameDescription
request IListCompaniesRequest

ListCompaniesRequest message or plain object

callback ListCompaniesCallback

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

Returns
TypeDescription
void

listCompanies(request)

public listCompanies(request: google.cloud.talent.v4beta1.IListCompaniesRequest): Promise<google.cloud.talent.v4beta1.ListCompaniesResponse>;

Calls ListCompanies.

Parameter
NameDescription
request IListCompaniesRequest

ListCompaniesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.talent.v4beta1.ListCompaniesResponse>

Promise

updateCompany(request, callback)

public updateCompany(request: google.cloud.talent.v4beta1.IUpdateCompanyRequest, callback: google.cloud.talent.v4beta1.CompanyService.UpdateCompanyCallback): void;

Calls UpdateCompany.

Parameters
NameDescription
request IUpdateCompanyRequest

UpdateCompanyRequest message or plain object

callback UpdateCompanyCallback

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

Returns
TypeDescription
void

updateCompany(request)

public updateCompany(request: google.cloud.talent.v4beta1.IUpdateCompanyRequest): Promise<google.cloud.talent.v4beta1.Company>;

Calls UpdateCompany.

Parameter
NameDescription
request IUpdateCompanyRequest

UpdateCompanyRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.talent.v4beta1.Company>

Promise