Represents an EventService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.talent.v4.EventServicePackage
@google-cloud/talentConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new EventService 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): EventService;
Creates new EventService 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 |
EventService | RPC service. Useful where requests and/or responses are streamed. |
createClientEvent(request, callback)
public createClientEvent(request: google.cloud.talent.v4.ICreateClientEventRequest, callback: google.cloud.talent.v4.EventService.CreateClientEventCallback): void;
Calls CreateClientEvent.
Parameters | |
---|---|
Name | Description |
request |
ICreateClientEventRequest
CreateClientEventRequest message or plain object |
callback |
google.cloud.talent.v4.EventService.CreateClientEventCallback
Node-style callback called with the error, if any, and ClientEvent |
Returns | |
---|---|
Type | Description |
void |
createClientEvent(request)
public createClientEvent(request: google.cloud.talent.v4.ICreateClientEventRequest): Promise<google.cloud.talent.v4.ClientEvent>;
Calls CreateClientEvent.
Parameter | |
---|---|
Name | Description |
request |
ICreateClientEventRequest
CreateClientEventRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.talent.v4.ClientEvent> | Promise |