Class UserService.UserServiceBase
Base class for server-side implementations of UserService
Namespace: Google.Shopping.Merchant.Accounts.V1Beta
Assembly: Google.Shopping.Merchant.Accounts.V1Beta.dll
Syntax
[BindServiceMethod(typeof(UserService), "BindService")]
public abstract class UserService.UserServiceBase
Methods
CreateUser(CreateUserRequest, ServerCallContext)
Creates a Merchant Center account user. Executing this method requires admin access.
Declaration
public virtual Task<User> CreateUser(CreateUserRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
CreateUserRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<User> | The response to send back to the client (wrapped by a task). |
DeleteUser(DeleteUserRequest, ServerCallContext)
Deletes a Merchant Center account user. Executing this method requires admin access.
Declaration
public virtual Task<Empty> DeleteUser(DeleteUserRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
DeleteUserRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<Empty> | The response to send back to the client (wrapped by a task). |
GetUser(GetUserRequest, ServerCallContext)
Retrieves a Merchant Center account user.
Declaration
public virtual Task<User> GetUser(GetUserRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
GetUserRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<User> | The response to send back to the client (wrapped by a task). |
ListUsers(ListUsersRequest, ServerCallContext)
Lists all users of a Merchant Center account.
Declaration
public virtual Task<ListUsersResponse> ListUsers(ListUsersRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
ListUsersRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<ListUsersResponse> | The response to send back to the client (wrapped by a task). |
UpdateUser(UpdateUserRequest, ServerCallContext)
Updates a Merchant Center account user. Executing this method requires admin access.
Declaration
public virtual Task<User> UpdateUser(UpdateUserRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
UpdateUserRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<User> | The response to send back to the client (wrapped by a task). |