Class BusinessInfoService.BusinessInfoServiceClient
Client for BusinessInfoService
Inheritance
Inherited Members
Namespace: Google.Shopping.Merchant.Accounts.V1Beta
Assembly: Google.Shopping.Merchant.Accounts.V1Beta.dll
Syntax
public class BusinessInfoService.BusinessInfoServiceClient : ClientBase<BusinessInfoService.BusinessInfoServiceClient>
Constructors
BusinessInfoServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected BusinessInfoServiceClient()
BusinessInfoServiceClient(CallInvoker)
Creates a new client for BusinessInfoService that uses a custom CallInvoker
.
Declaration
public BusinessInfoServiceClient(CallInvoker callInvoker)
Parameters
Type | Name | Description |
---|---|---|
CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
BusinessInfoServiceClient(ChannelBase)
Creates a new client for BusinessInfoService
Declaration
public BusinessInfoServiceClient(ChannelBase channel)
Parameters
Type | Name | Description |
---|---|---|
ChannelBase | channel | The channel to use to make remote calls. |
BusinessInfoServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected BusinessInfoServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
GetBusinessInfo(GetBusinessInfoRequest, CallOptions)
Retrieves the business info of an account.
Declaration
public virtual BusinessInfo GetBusinessInfo(GetBusinessInfoRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
GetBusinessInfoRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
BusinessInfo | The response received from the server. |
GetBusinessInfo(GetBusinessInfoRequest, Metadata, DateTime?, CancellationToken)
Retrieves the business info of an account.
Declaration
public virtual BusinessInfo GetBusinessInfo(GetBusinessInfoRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
GetBusinessInfoRequest | 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 |
---|---|
BusinessInfo | The response received from the server. |
GetBusinessInfoAsync(GetBusinessInfoRequest, CallOptions)
Retrieves the business info of an account.
Declaration
public virtual AsyncUnaryCall<BusinessInfo> GetBusinessInfoAsync(GetBusinessInfoRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
GetBusinessInfoRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<BusinessInfo> | The call object. |
GetBusinessInfoAsync(GetBusinessInfoRequest, Metadata, DateTime?, CancellationToken)
Retrieves the business info of an account.
Declaration
public virtual AsyncUnaryCall<BusinessInfo> GetBusinessInfoAsync(GetBusinessInfoRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
GetBusinessInfoRequest | 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<BusinessInfo> | The call object. |
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration
.
Declaration
protected override BusinessInfoService.BusinessInfoServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration |
Returns
Type | Description |
---|---|
BusinessInfoService.BusinessInfoServiceClient |
Overrides
UpdateBusinessInfo(UpdateBusinessInfoRequest, CallOptions)
Updates the business info of an account. Executing this method requires admin access.
Declaration
public virtual BusinessInfo UpdateBusinessInfo(UpdateBusinessInfoRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
UpdateBusinessInfoRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
BusinessInfo | The response received from the server. |
UpdateBusinessInfo(UpdateBusinessInfoRequest, Metadata, DateTime?, CancellationToken)
Updates the business info of an account. Executing this method requires admin access.
Declaration
public virtual BusinessInfo UpdateBusinessInfo(UpdateBusinessInfoRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
UpdateBusinessInfoRequest | 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 |
---|---|
BusinessInfo | The response received from the server. |
UpdateBusinessInfoAsync(UpdateBusinessInfoRequest, CallOptions)
Updates the business info of an account. Executing this method requires admin access.
Declaration
public virtual AsyncUnaryCall<BusinessInfo> UpdateBusinessInfoAsync(UpdateBusinessInfoRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
UpdateBusinessInfoRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<BusinessInfo> | The call object. |
UpdateBusinessInfoAsync(UpdateBusinessInfoRequest, Metadata, DateTime?, CancellationToken)
Updates the business info of an account. Executing this method requires admin access.
Declaration
public virtual AsyncUnaryCall<BusinessInfo> UpdateBusinessInfoAsync(UpdateBusinessInfoRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
UpdateBusinessInfoRequest | 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<BusinessInfo> | The call object. |