Class AddressValidation.AddressValidationClient
Client for AddressValidation
Inheritance
Inherited Members
Namespace: Google.Maps.AddressValidation.V1
Assembly: Google.Maps.AddressValidation.V1.dll
Syntax
public class AddressValidation.AddressValidationClient : ClientBase<AddressValidation.AddressValidationClient>
Constructors
AddressValidationClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected AddressValidationClient()
AddressValidationClient(CallInvoker)
Creates a new client for AddressValidation that uses a custom CallInvoker
.
Declaration
public AddressValidationClient(CallInvoker callInvoker)
Parameters
Type | Name | Description |
---|---|---|
CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
AddressValidationClient(ChannelBase)
Creates a new client for AddressValidation
Declaration
public AddressValidationClient(ChannelBase channel)
Parameters
Type | Name | Description |
---|---|---|
ChannelBase | channel | The channel to use to make remote calls. |
AddressValidationClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected AddressValidationClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration
.
Declaration
protected override AddressValidation.AddressValidationClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration |
Returns
Type | Description |
---|---|
AddressValidation.AddressValidationClient |
Overrides
ProvideValidationFeedback(ProvideValidationFeedbackRequest, CallOptions)
Feedback about the outcome of the sequence of validation attempts. This
should be the last call made after a sequence of validation calls for the
same address, and should be called once the transaction is concluded. This
should only be sent once for the sequence of ValidateAddress
requests
needed to validate an address fully.
Declaration
public virtual ProvideValidationFeedbackResponse ProvideValidationFeedback(ProvideValidationFeedbackRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ProvideValidationFeedbackRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
ProvideValidationFeedbackResponse | The response received from the server. |
ProvideValidationFeedback(ProvideValidationFeedbackRequest, Metadata, DateTime?, CancellationToken)
Feedback about the outcome of the sequence of validation attempts. This
should be the last call made after a sequence of validation calls for the
same address, and should be called once the transaction is concluded. This
should only be sent once for the sequence of ValidateAddress
requests
needed to validate an address fully.
Declaration
public virtual ProvideValidationFeedbackResponse ProvideValidationFeedback(ProvideValidationFeedbackRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ProvideValidationFeedbackRequest | 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 |
---|---|
ProvideValidationFeedbackResponse | The response received from the server. |
ProvideValidationFeedbackAsync(ProvideValidationFeedbackRequest, CallOptions)
Feedback about the outcome of the sequence of validation attempts. This
should be the last call made after a sequence of validation calls for the
same address, and should be called once the transaction is concluded. This
should only be sent once for the sequence of ValidateAddress
requests
needed to validate an address fully.
Declaration
public virtual AsyncUnaryCall<ProvideValidationFeedbackResponse> ProvideValidationFeedbackAsync(ProvideValidationFeedbackRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ProvideValidationFeedbackRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<ProvideValidationFeedbackResponse> | The call object. |
ProvideValidationFeedbackAsync(ProvideValidationFeedbackRequest, Metadata, DateTime?, CancellationToken)
Feedback about the outcome of the sequence of validation attempts. This
should be the last call made after a sequence of validation calls for the
same address, and should be called once the transaction is concluded. This
should only be sent once for the sequence of ValidateAddress
requests
needed to validate an address fully.
Declaration
public virtual AsyncUnaryCall<ProvideValidationFeedbackResponse> ProvideValidationFeedbackAsync(ProvideValidationFeedbackRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ProvideValidationFeedbackRequest | 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<ProvideValidationFeedbackResponse> | The call object. |
ValidateAddress(ValidateAddressRequest, CallOptions)
Validates an address.
Declaration
public virtual ValidateAddressResponse ValidateAddress(ValidateAddressRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ValidateAddressRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
ValidateAddressResponse | The response received from the server. |
ValidateAddress(ValidateAddressRequest, Metadata, DateTime?, CancellationToken)
Validates an address.
Declaration
public virtual ValidateAddressResponse ValidateAddress(ValidateAddressRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ValidateAddressRequest | 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 |
---|---|
ValidateAddressResponse | The response received from the server. |
ValidateAddressAsync(ValidateAddressRequest, CallOptions)
Validates an address.
Declaration
public virtual AsyncUnaryCall<ValidateAddressResponse> ValidateAddressAsync(ValidateAddressRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ValidateAddressRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<ValidateAddressResponse> | The call object. |
ValidateAddressAsync(ValidateAddressRequest, Metadata, DateTime?, CancellationToken)
Validates an address.
Declaration
public virtual AsyncUnaryCall<ValidateAddressResponse> ValidateAddressAsync(ValidateAddressRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ValidateAddressRequest | 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<ValidateAddressResponse> | The call object. |