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 |
---|---|---|
User |
grpcClient | The underlying gRPC client. |
User |
settings | The base User |
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 |
---|---|
User |
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 |
---|---|---|
Create |
request | The request object containing all of the parameters for the API call. |
Call |
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 |
---|---|---|
Create |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
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 |
---|---|---|
Delete |
request | The request object containing all of the parameters for the API call. |
Call |
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 |
---|---|---|
Delete |
request | The request object containing all of the parameters for the API call. |
Call |
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 |
---|---|---|
Get |
request | The request object containing all of the parameters for the API call. |
Call |
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 |
---|---|---|
Get |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
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 |
---|---|---|
List |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Paged |
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 |
---|---|---|
List |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Paged |
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 |
---|---|---|
Update |
request | The request object containing all of the parameters for the API call. |
Call |
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 |
---|---|---|
Update |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |