Class TermsOfServiceService.TermsOfServiceServiceClient
Client for TermsOfServiceService
Inheritance
Inherited Members
Namespace: Google.Shopping.Merchant.Accounts.V1Beta
Assembly: Google.Shopping.Merchant.Accounts.V1Beta.dll
Syntax
public class TermsOfServiceService.TermsOfServiceServiceClient : ClientBase<TermsOfServiceService.TermsOfServiceServiceClient>
Constructors
TermsOfServiceServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected TermsOfServiceServiceClient()
TermsOfServiceServiceClient(CallInvoker)
Creates a new client for TermsOfServiceService that uses a custom CallInvoker
.
Declaration
public TermsOfServiceServiceClient(CallInvoker callInvoker)
Parameters
Type | Name | Description |
---|---|---|
CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
TermsOfServiceServiceClient(ChannelBase)
Creates a new client for TermsOfServiceService
Declaration
public TermsOfServiceServiceClient(ChannelBase channel)
Parameters
Type | Name | Description |
---|---|---|
ChannelBase | channel | The channel to use to make remote calls. |
TermsOfServiceServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected TermsOfServiceServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
AcceptTermsOfService(AcceptTermsOfServiceRequest, CallOptions)
Accepts a TermsOfService
. Executing this method requires admin access.
Declaration
public virtual Empty AcceptTermsOfService(AcceptTermsOfServiceRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
AcceptTermsOfServiceRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
Empty | The response received from the server. |
AcceptTermsOfService(AcceptTermsOfServiceRequest, Metadata, DateTime?, CancellationToken)
Accepts a TermsOfService
. Executing this method requires admin access.
Declaration
public virtual Empty AcceptTermsOfService(AcceptTermsOfServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
AcceptTermsOfServiceRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
Empty | The response received from the server. |
AcceptTermsOfServiceAsync(AcceptTermsOfServiceRequest, CallOptions)
Accepts a TermsOfService
. Executing this method requires admin access.
Declaration
public virtual AsyncUnaryCall<Empty> AcceptTermsOfServiceAsync(AcceptTermsOfServiceRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
AcceptTermsOfServiceRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Empty> | The call object. |
AcceptTermsOfServiceAsync(AcceptTermsOfServiceRequest, Metadata, DateTime?, CancellationToken)
Accepts a TermsOfService
. Executing this method requires admin access.
Declaration
public virtual AsyncUnaryCall<Empty> AcceptTermsOfServiceAsync(AcceptTermsOfServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
AcceptTermsOfServiceRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Empty> | The call object. |
GetTermsOfService(GetTermsOfServiceRequest, CallOptions)
Retrieves the TermsOfService
associated with the provided version.
Declaration
public virtual TermsOfService GetTermsOfService(GetTermsOfServiceRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
GetTermsOfServiceRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
TermsOfService | The response received from the server. |
GetTermsOfService(GetTermsOfServiceRequest, Metadata, DateTime?, CancellationToken)
Retrieves the TermsOfService
associated with the provided version.
Declaration
public virtual TermsOfService GetTermsOfService(GetTermsOfServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
GetTermsOfServiceRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
TermsOfService | The response received from the server. |
GetTermsOfServiceAsync(GetTermsOfServiceRequest, CallOptions)
Retrieves the TermsOfService
associated with the provided version.
Declaration
public virtual AsyncUnaryCall<TermsOfService> GetTermsOfServiceAsync(GetTermsOfServiceRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
GetTermsOfServiceRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<TermsOfService> | The call object. |
GetTermsOfServiceAsync(GetTermsOfServiceRequest, Metadata, DateTime?, CancellationToken)
Retrieves the TermsOfService
associated with the provided version.
Declaration
public virtual AsyncUnaryCall<TermsOfService> GetTermsOfServiceAsync(GetTermsOfServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
GetTermsOfServiceRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<TermsOfService> | The call object. |
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration
.
Declaration
protected override TermsOfServiceService.TermsOfServiceServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration |
Returns
Type | Description |
---|---|
TermsOfServiceService.TermsOfServiceServiceClient |
Overrides
RetrieveLatestTermsOfService(RetrieveLatestTermsOfServiceRequest, CallOptions)
Retrieves the latest version of the TermsOfService
for a given kind
and
region_code
.
Declaration
public virtual TermsOfService RetrieveLatestTermsOfService(RetrieveLatestTermsOfServiceRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
RetrieveLatestTermsOfServiceRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
TermsOfService | The response received from the server. |
RetrieveLatestTermsOfService(RetrieveLatestTermsOfServiceRequest, Metadata, DateTime?, CancellationToken)
Retrieves the latest version of the TermsOfService
for a given kind
and
region_code
.
Declaration
public virtual TermsOfService RetrieveLatestTermsOfService(RetrieveLatestTermsOfServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
RetrieveLatestTermsOfServiceRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
TermsOfService | The response received from the server. |
RetrieveLatestTermsOfServiceAsync(RetrieveLatestTermsOfServiceRequest, CallOptions)
Retrieves the latest version of the TermsOfService
for a given kind
and
region_code
.
Declaration
public virtual AsyncUnaryCall<TermsOfService> RetrieveLatestTermsOfServiceAsync(RetrieveLatestTermsOfServiceRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
RetrieveLatestTermsOfServiceRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<TermsOfService> | The call object. |
RetrieveLatestTermsOfServiceAsync(RetrieveLatestTermsOfServiceRequest, Metadata, DateTime?, CancellationToken)
Retrieves the latest version of the TermsOfService
for a given kind
and
region_code
.
Declaration
public virtual AsyncUnaryCall<TermsOfService> RetrieveLatestTermsOfServiceAsync(RetrieveLatestTermsOfServiceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
RetrieveLatestTermsOfServiceRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<TermsOfService> | The call object. |