Class TermsOfServiceAgreementStateService.TermsOfServiceAgreementStateServiceClient
Client for TermsOfServiceAgreementStateService
Inheritance
Inherited Members
Namespace: Google.Shopping.Merchant.Accounts.V1Beta
Assembly: Google.Shopping.Merchant.Accounts.V1Beta.dll
Syntax
public class TermsOfServiceAgreementStateService.TermsOfServiceAgreementStateServiceClient : ClientBase<TermsOfServiceAgreementStateService.TermsOfServiceAgreementStateServiceClient>
Constructors
TermsOfServiceAgreementStateServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected TermsOfServiceAgreementStateServiceClient()
TermsOfServiceAgreementStateServiceClient(CallInvoker)
Creates a new client for TermsOfServiceAgreementStateService that uses a custom CallInvoker
.
Declaration
public TermsOfServiceAgreementStateServiceClient(CallInvoker callInvoker)
Parameters
Type | Name | Description |
---|---|---|
Call |
callInvoker | The callInvoker to use to make remote calls. |
TermsOfServiceAgreementStateServiceClient(ChannelBase)
Creates a new client for TermsOfServiceAgreementStateService
Declaration
public TermsOfServiceAgreementStateServiceClient(ChannelBase channel)
Parameters
Type | Name | Description |
---|---|---|
Channel |
channel | The channel to use to make remote calls. |
TermsOfServiceAgreementStateServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected TermsOfServiceAgreementStateServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
Client |
configuration | The client configuration. |
Methods
GetTermsOfServiceAgreementState(GetTermsOfServiceAgreementStateRequest, CallOptions)
Returns the state of a terms of service agreement.
Declaration
public virtual TermsOfServiceAgreementState GetTermsOfServiceAgreementState(GetTermsOfServiceAgreementStateRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
Get |
request | The request to send to the server. |
Call |
options | The options for the call. |
Returns
Type | Description |
---|---|
Terms |
The response received from the server. |
GetTermsOfServiceAgreementState(GetTermsOfServiceAgreementStateRequest, Metadata, DateTime?, CancellationToken)
Returns the state of a terms of service agreement.
Declaration
public virtual TermsOfServiceAgreementState GetTermsOfServiceAgreementState(GetTermsOfServiceAgreementStateRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
Get |
request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
Date |
deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
Cancellation |
cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
Terms |
The response received from the server. |
GetTermsOfServiceAgreementStateAsync(GetTermsOfServiceAgreementStateRequest, CallOptions)
Returns the state of a terms of service agreement.
Declaration
public virtual AsyncUnaryCall<TermsOfServiceAgreementState> GetTermsOfServiceAgreementStateAsync(GetTermsOfServiceAgreementStateRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
Get |
request | The request to send to the server. |
Call |
options | The options for the call. |
Returns
Type | Description |
---|---|
Async |
The call object. |
GetTermsOfServiceAgreementStateAsync(GetTermsOfServiceAgreementStateRequest, Metadata, DateTime?, CancellationToken)
Returns the state of a terms of service agreement.
Declaration
public virtual AsyncUnaryCall<TermsOfServiceAgreementState> GetTermsOfServiceAgreementStateAsync(GetTermsOfServiceAgreementStateRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
Get |
request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
Date |
deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
Cancellation |
cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
Async |
The call object. |
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration
.
Declaration
protected override TermsOfServiceAgreementStateService.TermsOfServiceAgreementStateServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
Client |
configuration |
Returns
Overrides
RetrieveForApplicationTermsOfServiceAgreementState(RetrieveForApplicationTermsOfServiceAgreementStateRequest, CallOptions)
Retrieves the state of the agreement for the application terms of service.
Declaration
public virtual TermsOfServiceAgreementState RetrieveForApplicationTermsOfServiceAgreementState(RetrieveForApplicationTermsOfServiceAgreementStateRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
Retrieve |
request | The request to send to the server. |
Call |
options | The options for the call. |
Returns
Type | Description |
---|---|
Terms |
The response received from the server. |
RetrieveForApplicationTermsOfServiceAgreementState(RetrieveForApplicationTermsOfServiceAgreementStateRequest, Metadata, DateTime?, CancellationToken)
Retrieves the state of the agreement for the application terms of service.
Declaration
public virtual TermsOfServiceAgreementState RetrieveForApplicationTermsOfServiceAgreementState(RetrieveForApplicationTermsOfServiceAgreementStateRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
Retrieve |
request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
Date |
deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
Cancellation |
cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
Terms |
The response received from the server. |
RetrieveForApplicationTermsOfServiceAgreementStateAsync(RetrieveForApplicationTermsOfServiceAgreementStateRequest, CallOptions)
Retrieves the state of the agreement for the application terms of service.
Declaration
public virtual AsyncUnaryCall<TermsOfServiceAgreementState> RetrieveForApplicationTermsOfServiceAgreementStateAsync(RetrieveForApplicationTermsOfServiceAgreementStateRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
Retrieve |
request | The request to send to the server. |
Call |
options | The options for the call. |
Returns
Type | Description |
---|---|
Async |
The call object. |
RetrieveForApplicationTermsOfServiceAgreementStateAsync(RetrieveForApplicationTermsOfServiceAgreementStateRequest, Metadata, DateTime?, CancellationToken)
Retrieves the state of the agreement for the application terms of service.
Declaration
public virtual AsyncUnaryCall<TermsOfServiceAgreementState> RetrieveForApplicationTermsOfServiceAgreementStateAsync(RetrieveForApplicationTermsOfServiceAgreementStateRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
Retrieve |
request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
Date |
deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
Cancellation |
cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
Async |
The call object. |