Represents a UserService
Inheritance
$protobuf.rpc.Service > protos.google.ads.admanager.v1.UserServicePackage
@google-ads/admanagerConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new UserService 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): UserService;Creates new UserService 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 |
UserService |
RPC service. Useful where requests and/or responses are streamed. |
getUser(request, callback)
public getUser(request: google.ads.admanager.v1.IGetUserRequest, callback: google.ads.admanager.v1.UserService.GetUserCallback): void;Calls GetUser.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetUserRequest
GetUserRequest message or plain object |
callback |
GetUserCallback
Node-style callback called with the error, if any, and User |
| Returns | |
|---|---|
| Type | Description |
void |
|
getUser(request)
public getUser(request: google.ads.admanager.v1.IGetUserRequest): Promise<google.ads.admanager.v1.User>;Calls GetUser.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetUserRequest
GetUserRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.ads.admanager.v1.User> |
Promise |