Class AddressValidationClientImpl
AddressValidation client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Maps.AddressValidation.V1
Assembly: Google.Maps.AddressValidation.V1.dll
Syntax
public sealed class AddressValidationClientImpl : AddressValidationClient
Remarks
The service for validating addresses.
Constructors
AddressValidationClientImpl(AddressValidationClient, AddressValidationSettings, ILogger)
Constructs a client wrapper for the AddressValidation service, with the specified gRPC client and settings.
Declaration
public AddressValidationClientImpl(AddressValidation.AddressValidationClient grpcClient, AddressValidationSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
AddressValidation.AddressValidationClient | grpcClient | The underlying gRPC client. |
AddressValidationSettings | settings | The base AddressValidationSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC AddressValidation client
Declaration
public override AddressValidation.AddressValidationClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
AddressValidation.AddressValidationClient |
Overrides
Methods
ProvideValidationFeedback(ProvideValidationFeedbackRequest, CallSettings)
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 override ProvideValidationFeedbackResponse ProvideValidationFeedback(ProvideValidationFeedbackRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ProvideValidationFeedbackRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
ProvideValidationFeedbackResponse | The RPC response. |
Overrides
ProvideValidationFeedbackAsync(ProvideValidationFeedbackRequest, CallSettings)
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 override Task<ProvideValidationFeedbackResponse> ProvideValidationFeedbackAsync(ProvideValidationFeedbackRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ProvideValidationFeedbackRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<ProvideValidationFeedbackResponse> | A Task containing the RPC response. |
Overrides
ValidateAddress(ValidateAddressRequest, CallSettings)
Validates an address.
Declaration
public override ValidateAddressResponse ValidateAddress(ValidateAddressRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ValidateAddressRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
ValidateAddressResponse | The RPC response. |
Overrides
ValidateAddressAsync(ValidateAddressRequest, CallSettings)
Validates an address.
Declaration
public override Task<ValidateAddressResponse> ValidateAddressAsync(ValidateAddressRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ValidateAddressRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<ValidateAddressResponse> | A Task containing the RPC response. |