Represents a TenantService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.talent.v4beta1.TenantServicePackage
@google-cloud/talentConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new TenantService 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): TenantService;Creates new TenantService 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 |
TenantService |
RPC service. Useful where requests and/or responses are streamed. |
createTenant(request, callback)
public createTenant(request: google.cloud.talent.v4beta1.ICreateTenantRequest, callback: google.cloud.talent.v4beta1.TenantService.CreateTenantCallback): void;Calls CreateTenant.
| Parameters | |
|---|---|
| Name | Description |
request |
ICreateTenantRequest
CreateTenantRequest message or plain object |
callback |
CreateTenantCallback
Node-style callback called with the error, if any, and Tenant |
| Returns | |
|---|---|
| Type | Description |
void |
|
createTenant(request)
public createTenant(request: google.cloud.talent.v4beta1.ICreateTenantRequest): Promise<google.cloud.talent.v4beta1.Tenant>;Calls CreateTenant.
| Parameter | |
|---|---|
| Name | Description |
request |
ICreateTenantRequest
CreateTenantRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.talent.v4beta1.Tenant> |
Promise |
deleteTenant(request, callback)
public deleteTenant(request: google.cloud.talent.v4beta1.IDeleteTenantRequest, callback: google.cloud.talent.v4beta1.TenantService.DeleteTenantCallback): void;Calls DeleteTenant.
| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteTenantRequest
DeleteTenantRequest message or plain object |
callback |
DeleteTenantCallback
Node-style callback called with the error, if any, and Empty |
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteTenant(request)
public deleteTenant(request: google.cloud.talent.v4beta1.IDeleteTenantRequest): Promise<google.protobuf.Empty>;Calls DeleteTenant.
| Parameter | |
|---|---|
| Name | Description |
request |
IDeleteTenantRequest
DeleteTenantRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.protobuf.Empty> |
Promise |
getTenant(request, callback)
public getTenant(request: google.cloud.talent.v4beta1.IGetTenantRequest, callback: google.cloud.talent.v4beta1.TenantService.GetTenantCallback): void;Calls GetTenant.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetTenantRequest
GetTenantRequest message or plain object |
callback |
GetTenantCallback
Node-style callback called with the error, if any, and Tenant |
| Returns | |
|---|---|
| Type | Description |
void |
|
getTenant(request)
public getTenant(request: google.cloud.talent.v4beta1.IGetTenantRequest): Promise<google.cloud.talent.v4beta1.Tenant>;Calls GetTenant.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetTenantRequest
GetTenantRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.talent.v4beta1.Tenant> |
Promise |
listTenants(request, callback)
public listTenants(request: google.cloud.talent.v4beta1.IListTenantsRequest, callback: google.cloud.talent.v4beta1.TenantService.ListTenantsCallback): void;Calls ListTenants.
| Parameters | |
|---|---|
| Name | Description |
request |
IListTenantsRequest
ListTenantsRequest message or plain object |
callback |
ListTenantsCallback
Node-style callback called with the error, if any, and ListTenantsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listTenants(request)
public listTenants(request: google.cloud.talent.v4beta1.IListTenantsRequest): Promise<google.cloud.talent.v4beta1.ListTenantsResponse>;Calls ListTenants.
| Parameter | |
|---|---|
| Name | Description |
request |
IListTenantsRequest
ListTenantsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.talent.v4beta1.ListTenantsResponse> |
Promise |
updateTenant(request, callback)
public updateTenant(request: google.cloud.talent.v4beta1.IUpdateTenantRequest, callback: google.cloud.talent.v4beta1.TenantService.UpdateTenantCallback): void;Calls UpdateTenant.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateTenantRequest
UpdateTenantRequest message or plain object |
callback |
UpdateTenantCallback
Node-style callback called with the error, if any, and Tenant |
| Returns | |
|---|---|
| Type | Description |
void |
|
updateTenant(request)
public updateTenant(request: google.cloud.talent.v4beta1.IUpdateTenantRequest): Promise<google.cloud.talent.v4beta1.Tenant>;Calls UpdateTenant.
| Parameter | |
|---|---|
| Name | Description |
request |
IUpdateTenantRequest
UpdateTenantRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.talent.v4beta1.Tenant> |
Promise |