Show / Hide Table of Contents

Class UserServiceClientImpl

UserService client wrapper implementation, for convenient use.

Inheritance
object
UserServiceClient
UserServiceClientImpl
Inherited Members
UserServiceClient.DefaultEndpoint
UserServiceClient.DefaultScopes
UserServiceClient.ServiceMetadata
UserServiceClient.CreateAsync(CancellationToken)
UserServiceClient.Create()
UserServiceClient.ShutdownDefaultChannelsAsync()
UserServiceClient.GetUserAsync(GetUserRequest, CancellationToken)
UserServiceClient.GetUser(string, CallSettings)
UserServiceClient.GetUserAsync(string, CallSettings)
UserServiceClient.GetUserAsync(string, CancellationToken)
UserServiceClient.GetUser(UserName, CallSettings)
UserServiceClient.GetUserAsync(UserName, CallSettings)
UserServiceClient.GetUserAsync(UserName, CancellationToken)
UserServiceClient.CreateUserAsync(CreateUserRequest, CancellationToken)
UserServiceClient.CreateUser(string, User, string, CallSettings)
UserServiceClient.CreateUserAsync(string, User, string, CallSettings)
UserServiceClient.CreateUserAsync(string, User, string, CancellationToken)
UserServiceClient.CreateUser(AccountName, User, string, CallSettings)
UserServiceClient.CreateUserAsync(AccountName, User, string, CallSettings)
UserServiceClient.CreateUserAsync(AccountName, User, string, CancellationToken)
UserServiceClient.DeleteUserAsync(DeleteUserRequest, CancellationToken)
UserServiceClient.DeleteUser(string, CallSettings)
UserServiceClient.DeleteUserAsync(string, CallSettings)
UserServiceClient.DeleteUserAsync(string, CancellationToken)
UserServiceClient.DeleteUser(UserName, CallSettings)
UserServiceClient.DeleteUserAsync(UserName, CallSettings)
UserServiceClient.DeleteUserAsync(UserName, CancellationToken)
UserServiceClient.UpdateUserAsync(UpdateUserRequest, CancellationToken)
UserServiceClient.UpdateUser(User, FieldMask, CallSettings)
UserServiceClient.UpdateUserAsync(User, FieldMask, CallSettings)
UserServiceClient.UpdateUserAsync(User, FieldMask, CancellationToken)
UserServiceClient.ListUsers(string, string, int?, CallSettings)
UserServiceClient.ListUsersAsync(string, string, int?, CallSettings)
UserServiceClient.ListUsers(AccountName, string, int?, CallSettings)
UserServiceClient.ListUsersAsync(AccountName, string, int?, CallSettings)
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Shopping.Merchant.Accounts.V1
Assembly: Google.Shopping.Merchant.Accounts.V1.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
UserServiceClient.GrpcClient

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
UserServiceClient.CreateUser(CreateUserRequest, CallSettings)

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
UserServiceClient.CreateUserAsync(CreateUserRequest, CallSettings)

DeleteUser(DeleteUserRequest, CallSettings)

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 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
UserServiceClient.DeleteUser(DeleteUserRequest, CallSettings)

DeleteUserAsync(DeleteUserRequest, CallSettings)

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 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
UserServiceClient.DeleteUserAsync(DeleteUserRequest, CallSettings)

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
UserServiceClient.GetUser(GetUserRequest, CallSettings)

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
UserServiceClient.GetUserAsync(GetUserRequest, CallSettings)

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
UserServiceClient.ListUsers(ListUsersRequest, CallSettings)

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
UserServiceClient.ListUsersAsync(ListUsersRequest, CallSettings)

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
UserServiceClient.UpdateUser(UpdateUserRequest, CallSettings)

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.

Overrides
UserServiceClient.UpdateUserAsync(UpdateUserRequest, CallSettings)
In this article
Back to top Generated by DocFX