Class AccountRelationshipsService.AccountRelationshipsServiceBase
Base class for server-side implementations of AccountRelationshipsService
Namespace: Google.Shopping.Merchant.Accounts.V1
Assembly: Google.Shopping.Merchant.Accounts.V1.dll
Syntax
[BindServiceMethod(typeof(AccountRelationshipsService), "BindService")]
public abstract class AccountRelationshipsService.AccountRelationshipsServiceBase
Methods
GetAccountRelationship(GetAccountRelationshipRequest, ServerCallContext)
Retrieve an account relationship.
Declaration
public virtual Task<AccountRelationship> GetAccountRelationship(GetAccountRelationshipRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
GetAccountRelationshipRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<AccountRelationship> | The response to send back to the client (wrapped by a task). |
ListAccountRelationships(ListAccountRelationshipsRequest, ServerCallContext)
List account relationships for the specified account.
Declaration
public virtual Task<ListAccountRelationshipsResponse> ListAccountRelationships(ListAccountRelationshipsRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
ListAccountRelationshipsRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<ListAccountRelationshipsResponse> | The response to send back to the client (wrapped by a task). |
UpdateAccountRelationship(UpdateAccountRelationshipRequest, ServerCallContext)
Updates the account relationship. Executing this method requires admin access.
Declaration
public virtual Task<AccountRelationship> UpdateAccountRelationship(UpdateAccountRelationshipRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
UpdateAccountRelationshipRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<AccountRelationship> | The response to send back to the client (wrapped by a task). |