Class TermsOfServiceService.TermsOfServiceServiceBase
Base class for server-side implementations of TermsOfServiceService
Namespace: Google.Shopping.Merchant.Accounts.V1Beta
Assembly: Google.Shopping.Merchant.Accounts.V1Beta.dll
Syntax
[BindServiceMethod(typeof(TermsOfServiceService), "BindService")]
public abstract class TermsOfServiceService.TermsOfServiceServiceBase
Methods
AcceptTermsOfService(AcceptTermsOfServiceRequest, ServerCallContext)
Accepts a TermsOfService. Executing this method requires admin access.
Declaration
public virtual Task<Empty> AcceptTermsOfService(AcceptTermsOfServiceRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| AcceptTermsOfServiceRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<Empty> | The response to send back to the client (wrapped by a task). |
GetTermsOfService(GetTermsOfServiceRequest, ServerCallContext)
Retrieves the TermsOfService associated with the provided version.
Declaration
public virtual Task<TermsOfService> GetTermsOfService(GetTermsOfServiceRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| GetTermsOfServiceRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<TermsOfService> | The response to send back to the client (wrapped by a task). |
RetrieveLatestTermsOfService(RetrieveLatestTermsOfServiceRequest, ServerCallContext)
Retrieves the latest version of the TermsOfService for a given kind and
region_code.
Declaration
public virtual Task<TermsOfService> RetrieveLatestTermsOfService(RetrieveLatestTermsOfServiceRequest request, ServerCallContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| RetrieveLatestTermsOfServiceRequest | request | The request received from the client. |
| ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
| Type | Description |
|---|---|
| Task<TermsOfService> | The response to send back to the client (wrapped by a task). |