Represents a UserService
Inheritance
$protobuf.rpc.Service > protos.google.shopping.merchant.accounts.v1.UserServicePackage
@google-shopping/accountsConstructors
(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. |
createUser(request, callback)
public createUser(request: google.shopping.merchant.accounts.v1.ICreateUserRequest, callback: google.shopping.merchant.accounts.v1.UserService.CreateUserCallback): void;Calls CreateUser.
| Parameters | |
|---|---|
| Name | Description |
request |
ICreateUserRequest
CreateUserRequest message or plain object |
callback |
CreateUserCallback
Node-style callback called with the error, if any, and User |
| Returns | |
|---|---|
| Type | Description |
void |
|
createUser(request)
public createUser(request: google.shopping.merchant.accounts.v1.ICreateUserRequest): Promise<google.shopping.merchant.accounts.v1.User>;Calls CreateUser.
| Parameter | |
|---|---|
| Name | Description |
request |
ICreateUserRequest
CreateUserRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.shopping.merchant.accounts.v1.User> |
Promise |
deleteUser(request, callback)
public deleteUser(request: google.shopping.merchant.accounts.v1.IDeleteUserRequest, callback: google.shopping.merchant.accounts.v1.UserService.DeleteUserCallback): void;Calls DeleteUser.
| Parameters | |
|---|---|
| Name | Description |
request |
IDeleteUserRequest
DeleteUserRequest message or plain object |
callback |
DeleteUserCallback
Node-style callback called with the error, if any, and Empty |
| Returns | |
|---|---|
| Type | Description |
void |
|
deleteUser(request)
public deleteUser(request: google.shopping.merchant.accounts.v1.IDeleteUserRequest): Promise<google.protobuf.Empty>;Calls DeleteUser.
| Parameter | |
|---|---|
| Name | Description |
request |
IDeleteUserRequest
DeleteUserRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.protobuf.Empty> |
Promise |
getUser(request, callback)
public getUser(request: google.shopping.merchant.accounts.v1.IGetUserRequest, callback: google.shopping.merchant.accounts.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.shopping.merchant.accounts.v1.IGetUserRequest): Promise<google.shopping.merchant.accounts.v1.User>;Calls GetUser.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetUserRequest
GetUserRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.shopping.merchant.accounts.v1.User> |
Promise |
listUsers(request, callback)
public listUsers(request: google.shopping.merchant.accounts.v1.IListUsersRequest, callback: google.shopping.merchant.accounts.v1.UserService.ListUsersCallback): void;Calls ListUsers.
| Parameters | |
|---|---|
| Name | Description |
request |
IListUsersRequest
ListUsersRequest message or plain object |
callback |
ListUsersCallback
Node-style callback called with the error, if any, and ListUsersResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listUsers(request)
public listUsers(request: google.shopping.merchant.accounts.v1.IListUsersRequest): Promise<google.shopping.merchant.accounts.v1.ListUsersResponse>;Calls ListUsers.
| Parameter | |
|---|---|
| Name | Description |
request |
IListUsersRequest
ListUsersRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.shopping.merchant.accounts.v1.ListUsersResponse> |
Promise |
updateUser(request, callback)
public updateUser(request: google.shopping.merchant.accounts.v1.IUpdateUserRequest, callback: google.shopping.merchant.accounts.v1.UserService.UpdateUserCallback): void;Calls UpdateUser.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateUserRequest
UpdateUserRequest message or plain object |
callback |
UpdateUserCallback
Node-style callback called with the error, if any, and User |
| Returns | |
|---|---|
| Type | Description |
void |
|
updateUser(request)
public updateUser(request: google.shopping.merchant.accounts.v1.IUpdateUserRequest): Promise<google.shopping.merchant.accounts.v1.User>;Calls UpdateUser.
| Parameter | |
|---|---|
| Name | Description |
request |
IUpdateUserRequest
UpdateUserRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.shopping.merchant.accounts.v1.User> |
Promise |
verifySelf(request, callback)
public verifySelf(request: google.shopping.merchant.accounts.v1.IVerifySelfRequest, callback: google.shopping.merchant.accounts.v1.UserService.VerifySelfCallback): void;Calls VerifySelf.
| Parameters | |
|---|---|
| Name | Description |
request |
IVerifySelfRequest
VerifySelfRequest message or plain object |
callback |
VerifySelfCallback
Node-style callback called with the error, if any, and User |
| Returns | |
|---|---|
| Type | Description |
void |
|
verifySelf(request)
public verifySelf(request: google.shopping.merchant.accounts.v1.IVerifySelfRequest): Promise<google.shopping.merchant.accounts.v1.User>;Calls VerifySelf.
| Parameter | |
|---|---|
| Name | Description |
request |
IVerifySelfRequest
VerifySelfRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.shopping.merchant.accounts.v1.User> |
Promise |