Represents a CompanyService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.talent.v4beta1.CompanyServicePackage
@google-cloud/talentConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new CompanyService 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): CompanyService;
Creates new CompanyService 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 |
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 | |
---|---|
Name | Description |
request |
ICreateCompanyRequest
CreateCompanyRequest message or plain object |
callback |
google.cloud.talent.v4beta1.CompanyService.CreateCompanyCallback
Node-style callback called with the error, if any, and Company |
Returns | |
---|---|
Type | Description |
void |
createCompany(request)
public createCompany(request: google.cloud.talent.v4beta1.ICreateCompanyRequest): Promise<google.cloud.talent.v4beta1.Company>;
Calls CreateCompany.
Parameter | |
---|---|
Name | Description |
request |
ICreateCompanyRequest
CreateCompanyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IDeleteCompanyRequest
DeleteCompanyRequest message or plain object |
callback |
google.cloud.talent.v4beta1.CompanyService.DeleteCompanyCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteCompany(request)
public deleteCompany(request: google.cloud.talent.v4beta1.IDeleteCompanyRequest): Promise<google.protobuf.Empty>;
Calls DeleteCompany.
Parameter | |
---|---|
Name | Description |
request |
IDeleteCompanyRequest
DeleteCompanyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IGetCompanyRequest
GetCompanyRequest message or plain object |
callback |
google.cloud.talent.v4beta1.CompanyService.GetCompanyCallback
Node-style callback called with the error, if any, and Company |
Returns | |
---|---|
Type | Description |
void |
getCompany(request)
public getCompany(request: google.cloud.talent.v4beta1.IGetCompanyRequest): Promise<google.cloud.talent.v4beta1.Company>;
Calls GetCompany.
Parameter | |
---|---|
Name | Description |
request |
IGetCompanyRequest
GetCompanyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IListCompaniesRequest
ListCompaniesRequest message or plain object |
callback |
google.cloud.talent.v4beta1.CompanyService.ListCompaniesCallback
Node-style callback called with the error, if any, and ListCompaniesResponse |
Returns | |
---|---|
Type | Description |
void |
listCompanies(request)
public listCompanies(request: google.cloud.talent.v4beta1.IListCompaniesRequest): Promise<google.cloud.talent.v4beta1.ListCompaniesResponse>;
Calls ListCompanies.
Parameter | |
---|---|
Name | Description |
request |
IListCompaniesRequest
ListCompaniesRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IUpdateCompanyRequest
UpdateCompanyRequest message or plain object |
callback |
google.cloud.talent.v4beta1.CompanyService.UpdateCompanyCallback
Node-style callback called with the error, if any, and Company |
Returns | |
---|---|
Type | Description |
void |
updateCompany(request)
public updateCompany(request: google.cloud.talent.v4beta1.IUpdateCompanyRequest): Promise<google.cloud.talent.v4beta1.Company>;
Calls UpdateCompany.
Parameter | |
---|---|
Name | Description |
request |
IUpdateCompanyRequest
UpdateCompanyRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.talent.v4beta1.Company> | Promise |