Class UserServiceClientImpl
UserService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Shopping.Merchant.Accounts.V1Beta
Assembly: Google.Shopping.Merchant.Accounts.V1Beta.dll
Syntax
public sealed class UserServiceClientImpl : UserServiceClient
Remarks
Service to support user API.
Constructors
UserServiceClientImpl(UserServiceClient, UserServiceSettings, ILogger)
Constructs a client wrapper for the UserService service, with the specified gRPC client and settings.
Declaration
public UserServiceClientImpl(UserService.UserServiceClient grpcClient, UserServiceSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
UserService.UserServiceClient | grpcClient | The underlying gRPC client. |
UserServiceSettings | settings | The base UserServiceSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC UserService client
Declaration
public override UserService.UserServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
UserService.UserServiceClient |
Overrides
Methods
CreateUser(CreateUserRequest, CallSettings)
Creates a Merchant Center account user. Executing this method requires admin access.
Declaration
public override User CreateUser(CreateUserRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateUserRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
User | The RPC response. |
Overrides
CreateUserAsync(CreateUserRequest, CallSettings)
Creates a Merchant Center account user. Executing this method requires admin access.
Declaration
public override Task<User> CreateUserAsync(CreateUserRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateUserRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<User> | A Task containing the RPC response. |
Overrides
DeleteUser(DeleteUserRequest, CallSettings)
Deletes a Merchant Center account user. Executing this method requires admin access.
Declaration
public override void DeleteUser(DeleteUserRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteUserRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Overrides
DeleteUserAsync(DeleteUserRequest, CallSettings)
Deletes a Merchant Center account user. Executing this method requires admin access.
Declaration
public override Task DeleteUserAsync(DeleteUserRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteUserRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Overrides
GetUser(GetUserRequest, CallSettings)
Retrieves a Merchant Center account user.
Declaration
public override User GetUser(GetUserRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetUserRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
User | The RPC response. |
Overrides
GetUserAsync(GetUserRequest, CallSettings)
Retrieves a Merchant Center account user.
Declaration
public override Task<User> GetUserAsync(GetUserRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetUserRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<User> | A Task containing the RPC response. |
Overrides
ListUsers(ListUsersRequest, CallSettings)
Lists all users of a Merchant Center account.
Declaration
public override PagedEnumerable<ListUsersResponse, User> ListUsers(ListUsersRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListUsersRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListUsersResponse, User> | A pageable sequence of User resources. |
Overrides
ListUsersAsync(ListUsersRequest, CallSettings)
Lists all users of a Merchant Center account.
Declaration
public override PagedAsyncEnumerable<ListUsersResponse, User> ListUsersAsync(ListUsersRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListUsersRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListUsersResponse, User> | A pageable asynchronous sequence of User resources. |
Overrides
UpdateUser(UpdateUserRequest, CallSettings)
Updates a Merchant Center account user. Executing this method requires admin access.
Declaration
public override User UpdateUser(UpdateUserRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateUserRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
User | The RPC response. |
Overrides
UpdateUserAsync(UpdateUserRequest, CallSettings)
Updates a Merchant Center account user. Executing this method requires admin access.
Declaration
public override Task<User> UpdateUserAsync(UpdateUserRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateUserRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<User> | A Task containing the RPC response. |