Google Cloud Web Risk v1 API - Class WebRiskServiceSettings (2.3.0)

public sealed class WebRiskServiceSettings : ServiceSettingsBase

Reference documentation and code samples for the Google Cloud Web Risk v1 API class WebRiskServiceSettings.

Settings for WebRiskServiceClient instances.

Inheritance

object > ServiceSettingsBase > WebRiskServiceSettings

Namespace

Google.Cloud.WebRisk.V1

Assembly

Google.Cloud.WebRisk.V1.dll

Constructors

WebRiskServiceSettings()

public WebRiskServiceSettings()

Constructs a new WebRiskServiceSettings object with default settings.

Properties

ComputeThreatListDiffSettings

public CallSettings ComputeThreatListDiffSettings { get; set; }

CallSettings for synchronous and asynchronous calls to WebRiskServiceClient.ComputeThreatListDiff and WebRiskServiceClient.ComputeThreatListDiffAsync .

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: Unlimited
  • Retriable status codes: DeadlineExceeded, Unavailable.
  • Timeout: 600 seconds.

CreateSubmissionSettings

public CallSettings CreateSubmissionSettings { get; set; }

CallSettings for synchronous and asynchronous calls to WebRiskServiceClient.CreateSubmission and WebRiskServiceClient.CreateSubmissionAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 600 seconds.

SearchHashesSettings

public CallSettings SearchHashesSettings { get; set; }

CallSettings for synchronous and asynchronous calls to WebRiskServiceClient.SearchHashes and WebRiskServiceClient.SearchHashesAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: Unlimited
  • Retriable status codes: DeadlineExceeded, Unavailable.
  • Timeout: 600 seconds.

SearchUrisSettings

public CallSettings SearchUrisSettings { get; set; }

CallSettings for synchronous and asynchronous calls to WebRiskServiceClient.SearchUris and WebRiskServiceClient.SearchUrisAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • Initial retry delay: 100 milliseconds.
  • Retry delay multiplier: 1.3
  • Retry maximum delay: 60000 milliseconds.
  • Maximum attempts: Unlimited
  • Retriable status codes: DeadlineExceeded, Unavailable.
  • Timeout: 600 seconds.

SubmitUriOperationsSettings

public OperationsSettings SubmitUriOperationsSettings { get; set; }

Long Running Operation settings for calls to WebRiskServiceClient.SubmitUri and WebRiskServiceClient.SubmitUriAsync.

Property Value
TypeDescription
OperationsSettings
Remarks

Uses default PollSettings of:

  • Initial delay: 20 seconds.
  • Delay multiplier: 1.5
  • Maximum delay: 45 seconds.
  • Total timeout: 24 hours.

SubmitUriSettings

public CallSettings SubmitUriSettings { get; set; }

CallSettings for synchronous and asynchronous calls to WebRiskServiceClient.SubmitUri and WebRiskServiceClient.SubmitUriAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • No timeout is applied.

Methods

Clone()

public WebRiskServiceSettings Clone()

Creates a deep clone of this object, with all the same property values.

Returns
TypeDescription
WebRiskServiceSettings

A deep clone of this WebRiskServiceSettings object.

GetDefault()

public static WebRiskServiceSettings GetDefault()

Get a new instance of the default WebRiskServiceSettings.

Returns
TypeDescription
WebRiskServiceSettings

A new instance of the default WebRiskServiceSettings.