Class protos.google.cloud.talent.v4.TenantService

Represents a TenantService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.talent.v4.TenantService

Package

@google-cloud/talent

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

createTenant(request, callback)

public createTenant(request: google.cloud.talent.v4.ICreateTenantRequest, callback: google.cloud.talent.v4.TenantService.CreateTenantCallback): void;

Calls CreateTenant.

Parameters
NameDescription
request ICreateTenantRequest

CreateTenantRequest message or plain object

callback google.cloud.talent.v4.TenantService.CreateTenantCallback

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

Returns
TypeDescription
void

createTenant(request)

public createTenant(request: google.cloud.talent.v4.ICreateTenantRequest): Promise<google.cloud.talent.v4.Tenant>;

Calls CreateTenant.

Parameter
NameDescription
request ICreateTenantRequest

CreateTenantRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.talent.v4.Tenant>

Promise

deleteTenant(request, callback)

public deleteTenant(request: google.cloud.talent.v4.IDeleteTenantRequest, callback: google.cloud.talent.v4.TenantService.DeleteTenantCallback): void;

Calls DeleteTenant.

Parameters
NameDescription
request google.cloud.talent.v4.IDeleteTenantRequest

DeleteTenantRequest message or plain object

callback google.cloud.talent.v4.TenantService.DeleteTenantCallback

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

Returns
TypeDescription
void

deleteTenant(request)

public deleteTenant(request: google.cloud.talent.v4.IDeleteTenantRequest): Promise<google.protobuf.Empty>;

Calls DeleteTenant.

Parameter
NameDescription
request google.cloud.talent.v4.IDeleteTenantRequest

DeleteTenantRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getTenant(request, callback)

public getTenant(request: google.cloud.talent.v4.IGetTenantRequest, callback: google.cloud.talent.v4.TenantService.GetTenantCallback): void;

Calls GetTenant.

Parameters
NameDescription
request IGetTenantRequest

GetTenantRequest message or plain object

callback google.cloud.talent.v4.TenantService.GetTenantCallback

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

Returns
TypeDescription
void

getTenant(request)

public getTenant(request: google.cloud.talent.v4.IGetTenantRequest): Promise<google.cloud.talent.v4.Tenant>;

Calls GetTenant.

Parameter
NameDescription
request IGetTenantRequest

GetTenantRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.talent.v4.Tenant>

Promise

listTenants(request, callback)

public listTenants(request: google.cloud.talent.v4.IListTenantsRequest, callback: google.cloud.talent.v4.TenantService.ListTenantsCallback): void;

Calls ListTenants.

Parameters
NameDescription
request google.cloud.talent.v4.IListTenantsRequest

ListTenantsRequest message or plain object

callback google.cloud.talent.v4.TenantService.ListTenantsCallback

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

Returns
TypeDescription
void

listTenants(request)

public listTenants(request: google.cloud.talent.v4.IListTenantsRequest): Promise<google.cloud.talent.v4.ListTenantsResponse>;

Calls ListTenants.

Parameter
NameDescription
request google.cloud.talent.v4.IListTenantsRequest

ListTenantsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.talent.v4.ListTenantsResponse>

Promise

updateTenant(request, callback)

public updateTenant(request: google.cloud.talent.v4.IUpdateTenantRequest, callback: google.cloud.talent.v4.TenantService.UpdateTenantCallback): void;

Calls UpdateTenant.

Parameters
NameDescription
request IUpdateTenantRequest

UpdateTenantRequest message or plain object

callback google.cloud.talent.v4.TenantService.UpdateTenantCallback

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

Returns
TypeDescription
void

updateTenant(request)

public updateTenant(request: google.cloud.talent.v4.IUpdateTenantRequest): Promise<google.cloud.talent.v4.Tenant>;

Calls UpdateTenant.

Parameter
NameDescription
request IUpdateTenantRequest

UpdateTenantRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.talent.v4.Tenant>

Promise