Class TermsOfServiceServiceClientImpl
TermsOfServiceService 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 TermsOfServiceServiceClientImpl : TermsOfServiceServiceClient
Remarks
Service to support TermsOfService API.
Constructors
TermsOfServiceServiceClientImpl(TermsOfServiceServiceClient, TermsOfServiceServiceSettings, ILogger)
Constructs a client wrapper for the TermsOfServiceService service, with the specified gRPC client and settings.
Declaration
public TermsOfServiceServiceClientImpl(TermsOfServiceService.TermsOfServiceServiceClient grpcClient, TermsOfServiceServiceSettings settings, ILogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| TermsOfServiceService.TermsOfServiceServiceClient | grpcClient | The underlying gRPC client. |
| TermsOfServiceServiceSettings | settings | The base TermsOfServiceServiceSettings used within this client. |
| ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC TermsOfServiceService client
Declaration
public override TermsOfServiceService.TermsOfServiceServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| TermsOfServiceService.TermsOfServiceServiceClient |
Overrides
Methods
AcceptTermsOfService(AcceptTermsOfServiceRequest, CallSettings)
Accepts a TermsOfService. Executing this method requires admin access.
Declaration
public override void AcceptTermsOfService(AcceptTermsOfServiceRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AcceptTermsOfServiceRequest | 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
AcceptTermsOfServiceAsync(AcceptTermsOfServiceRequest, CallSettings)
Accepts a TermsOfService. Executing this method requires admin access.
Declaration
public override Task AcceptTermsOfServiceAsync(AcceptTermsOfServiceRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AcceptTermsOfServiceRequest | 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
GetTermsOfService(GetTermsOfServiceRequest, CallSettings)
Retrieves the TermsOfService associated with the provided version.
Declaration
public override TermsOfService GetTermsOfService(GetTermsOfServiceRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetTermsOfServiceRequest | 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 |
|---|---|
| TermsOfService | The RPC response. |
Overrides
GetTermsOfServiceAsync(GetTermsOfServiceRequest, CallSettings)
Retrieves the TermsOfService associated with the provided version.
Declaration
public override Task<TermsOfService> GetTermsOfServiceAsync(GetTermsOfServiceRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetTermsOfServiceRequest | 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<TermsOfService> | A Task containing the RPC response. |
Overrides
RetrieveLatestTermsOfService(RetrieveLatestTermsOfServiceRequest, CallSettings)
Retrieves the latest version of the TermsOfService for a given kind and
region_code.
Declaration
public override TermsOfService RetrieveLatestTermsOfService(RetrieveLatestTermsOfServiceRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| RetrieveLatestTermsOfServiceRequest | 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 |
|---|---|
| TermsOfService | The RPC response. |
Overrides
RetrieveLatestTermsOfServiceAsync(RetrieveLatestTermsOfServiceRequest, CallSettings)
Retrieves the latest version of the TermsOfService for a given kind and
region_code.
Declaration
public override Task<TermsOfService> RetrieveLatestTermsOfServiceAsync(RetrieveLatestTermsOfServiceRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| RetrieveLatestTermsOfServiceRequest | 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<TermsOfService> | A Task containing the RPC response. |