Show / Hide Table of Contents

Class UserService.UserServiceBase

Base class for server-side implementations of UserService

Inheritance
object
UserService.UserServiceBase
Inherited Members
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Shopping.Merchant.Accounts.V1
Assembly: Google.Shopping.Merchant.Accounts.V1.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. The user to be deleted can't be the last admin user of that account. Also a user is protected from deletion if it is managed by Business Manager"

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).

In this article
Back to top Generated by DocFX