Class OnlineReturnPolicyService.OnlineReturnPolicyServiceClient
Client for OnlineReturnPolicyService
Inheritance
Inherited Members
Namespace: Google.Shopping.Merchant.Accounts.V1Beta
Assembly: Google.Shopping.Merchant.Accounts.V1Beta.dll
Syntax
public class OnlineReturnPolicyService.OnlineReturnPolicyServiceClient : ClientBase<OnlineReturnPolicyService.OnlineReturnPolicyServiceClient>
Constructors
OnlineReturnPolicyServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected OnlineReturnPolicyServiceClient()
OnlineReturnPolicyServiceClient(CallInvoker)
Creates a new client for OnlineReturnPolicyService that uses a custom CallInvoker
.
Declaration
public OnlineReturnPolicyServiceClient(CallInvoker callInvoker)
Parameters
Type | Name | Description |
---|---|---|
CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
OnlineReturnPolicyServiceClient(ChannelBase)
Creates a new client for OnlineReturnPolicyService
Declaration
public OnlineReturnPolicyServiceClient(ChannelBase channel)
Parameters
Type | Name | Description |
---|---|---|
ChannelBase | channel | The channel to use to make remote calls. |
OnlineReturnPolicyServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected OnlineReturnPolicyServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
GetOnlineReturnPolicy(GetOnlineReturnPolicyRequest, CallOptions)
Gets an existing return policy.
Declaration
public virtual OnlineReturnPolicy GetOnlineReturnPolicy(GetOnlineReturnPolicyRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
GetOnlineReturnPolicyRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
OnlineReturnPolicy | The response received from the server. |
GetOnlineReturnPolicy(GetOnlineReturnPolicyRequest, Metadata, DateTime?, CancellationToken)
Gets an existing return policy.
Declaration
public virtual OnlineReturnPolicy GetOnlineReturnPolicy(GetOnlineReturnPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
GetOnlineReturnPolicyRequest | 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 |
---|---|
OnlineReturnPolicy | The response received from the server. |
GetOnlineReturnPolicyAsync(GetOnlineReturnPolicyRequest, CallOptions)
Gets an existing return policy.
Declaration
public virtual AsyncUnaryCall<OnlineReturnPolicy> GetOnlineReturnPolicyAsync(GetOnlineReturnPolicyRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
GetOnlineReturnPolicyRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<OnlineReturnPolicy> | The call object. |
GetOnlineReturnPolicyAsync(GetOnlineReturnPolicyRequest, Metadata, DateTime?, CancellationToken)
Gets an existing return policy.
Declaration
public virtual AsyncUnaryCall<OnlineReturnPolicy> GetOnlineReturnPolicyAsync(GetOnlineReturnPolicyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
GetOnlineReturnPolicyRequest | 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<OnlineReturnPolicy> | The call object. |
ListOnlineReturnPolicies(ListOnlineReturnPoliciesRequest, CallOptions)
Lists all existing return policies.
Declaration
public virtual ListOnlineReturnPoliciesResponse ListOnlineReturnPolicies(ListOnlineReturnPoliciesRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ListOnlineReturnPoliciesRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
ListOnlineReturnPoliciesResponse | The response received from the server. |
ListOnlineReturnPolicies(ListOnlineReturnPoliciesRequest, Metadata, DateTime?, CancellationToken)
Lists all existing return policies.
Declaration
public virtual ListOnlineReturnPoliciesResponse ListOnlineReturnPolicies(ListOnlineReturnPoliciesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ListOnlineReturnPoliciesRequest | 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 |
---|---|
ListOnlineReturnPoliciesResponse | The response received from the server. |
ListOnlineReturnPoliciesAsync(ListOnlineReturnPoliciesRequest, CallOptions)
Lists all existing return policies.
Declaration
public virtual AsyncUnaryCall<ListOnlineReturnPoliciesResponse> ListOnlineReturnPoliciesAsync(ListOnlineReturnPoliciesRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ListOnlineReturnPoliciesRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<ListOnlineReturnPoliciesResponse> | The call object. |
ListOnlineReturnPoliciesAsync(ListOnlineReturnPoliciesRequest, Metadata, DateTime?, CancellationToken)
Lists all existing return policies.
Declaration
public virtual AsyncUnaryCall<ListOnlineReturnPoliciesResponse> ListOnlineReturnPoliciesAsync(ListOnlineReturnPoliciesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ListOnlineReturnPoliciesRequest | 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<ListOnlineReturnPoliciesResponse> | The call object. |
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration
.
Declaration
protected override OnlineReturnPolicyService.OnlineReturnPolicyServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration |
Returns
Type | Description |
---|---|
OnlineReturnPolicyService.OnlineReturnPolicyServiceClient |