Class AccountRelationshipsServiceClientImpl
AccountRelationshipsService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Shopping.Merchant.Accounts.V1
Assembly: Google.Shopping.Merchant.Accounts.V1.dll
Syntax
public sealed class AccountRelationshipsServiceClientImpl : AccountRelationshipsServiceClient
Remarks
Service to support AccountRelationship API.
Constructors
AccountRelationshipsServiceClientImpl(AccountRelationshipsServiceClient, AccountRelationshipsServiceSettings, ILogger)
Constructs a client wrapper for the AccountRelationshipsService service, with the specified gRPC client and settings.
Declaration
public AccountRelationshipsServiceClientImpl(AccountRelationshipsService.AccountRelationshipsServiceClient grpcClient, AccountRelationshipsServiceSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
AccountRelationshipsService.AccountRelationshipsServiceClient | grpcClient | The underlying gRPC client. |
AccountRelationshipsServiceSettings | settings | The base AccountRelationshipsServiceSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC AccountRelationshipsService client
Declaration
public override AccountRelationshipsService.AccountRelationshipsServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
AccountRelationshipsService.AccountRelationshipsServiceClient |
Overrides
Methods
GetAccountRelationship(GetAccountRelationshipRequest, CallSettings)
Retrieve an account relationship.
Declaration
public override AccountRelationship GetAccountRelationship(GetAccountRelationshipRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetAccountRelationshipRequest | 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 |
---|---|
AccountRelationship | The RPC response. |
Overrides
GetAccountRelationshipAsync(GetAccountRelationshipRequest, CallSettings)
Retrieve an account relationship.
Declaration
public override Task<AccountRelationship> GetAccountRelationshipAsync(GetAccountRelationshipRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetAccountRelationshipRequest | 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<AccountRelationship> | A Task containing the RPC response. |
Overrides
ListAccountRelationships(ListAccountRelationshipsRequest, CallSettings)
List account relationships for the specified account.
Declaration
public override PagedEnumerable<ListAccountRelationshipsResponse, AccountRelationship> ListAccountRelationships(ListAccountRelationshipsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListAccountRelationshipsRequest | 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<ListAccountRelationshipsResponse, AccountRelationship> | A pageable sequence of AccountRelationship resources. |
Overrides
ListAccountRelationshipsAsync(ListAccountRelationshipsRequest, CallSettings)
List account relationships for the specified account.
Declaration
public override PagedAsyncEnumerable<ListAccountRelationshipsResponse, AccountRelationship> ListAccountRelationshipsAsync(ListAccountRelationshipsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListAccountRelationshipsRequest | 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<ListAccountRelationshipsResponse, AccountRelationship> | A pageable asynchronous sequence of AccountRelationship resources. |
Overrides
UpdateAccountRelationship(UpdateAccountRelationshipRequest, CallSettings)
Updates the account relationship. Executing this method requires admin access.
Declaration
public override AccountRelationship UpdateAccountRelationship(UpdateAccountRelationshipRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateAccountRelationshipRequest | 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 |
---|---|
AccountRelationship | The RPC response. |
Overrides
UpdateAccountRelationshipAsync(UpdateAccountRelationshipRequest, CallSettings)
Updates the account relationship. Executing this method requires admin access.
Declaration
public override Task<AccountRelationship> UpdateAccountRelationshipAsync(UpdateAccountRelationshipRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateAccountRelationshipRequest | 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<AccountRelationship> | A Task containing the RPC response. |