public sealed class WebRiskServiceClientBuilder : ClientBuilderBase<WebRiskServiceClient>
Reference documentation and code samples for the Google Cloud Web Risk v1 API class WebRiskServiceClientBuilder.
Builder class for WebRiskServiceClient to provide simple configuration of credentials, endpoint etc.
Namespace
Google.Cloud.WebRisk.V1Assembly
Google.Cloud.WebRisk.V1.dll
Constructors
WebRiskServiceClientBuilder()
public WebRiskServiceClientBuilder()
Creates a new builder with default settings.
Properties
Settings
public WebRiskServiceSettings Settings { get; set; }
The settings to use for RPCs, or null
for the default settings.
Property Value | |
---|---|
Type | Description |
WebRiskServiceSettings |
Methods
Build()
public override WebRiskServiceClient Build()
Builds the resulting client.
Returns | |
---|---|
Type | Description |
WebRiskServiceClient |
BuildAsync(CancellationToken)
public override Task<WebRiskServiceClient> BuildAsync(CancellationToken cancellationToken = default)
Builds the resulting client asynchronously.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken |
Returns | |
---|---|
Type | Description |
TaskWebRiskServiceClient |
GetChannelPool()
protected override ChannelPool GetChannelPool()
Returns the channel pool to use when no other options are specified.
Returns | |
---|---|
Type | Description |
ChannelPool |