Class RecommenderSettings (2.8.0)

public sealed class RecommenderSettings : ServiceSettingsBase

Settings for RecommenderClient instances.

Inheritance

Object > ServiceSettingsBase > RecommenderSettings

Namespace

Google.Cloud.Recommender.V1

Assembly

Google.Cloud.Recommender.V1.dll

Constructors

RecommenderSettings()

public RecommenderSettings()

Constructs a new RecommenderSettings object with default settings.

Properties

GetInsightSettings

public CallSettings GetInsightSettings { get; set; }

CallSettings for synchronous and asynchronous calls to RecommenderClient.GetInsight and RecommenderClient.GetInsightAsync.

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

GetRecommendationSettings

public CallSettings GetRecommendationSettings { get; set; }

CallSettings for synchronous and asynchronous calls to RecommenderClient.GetRecommendation and RecommenderClient.GetRecommendationAsync.

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

ListInsightsSettings

public CallSettings ListInsightsSettings { get; set; }

CallSettings for synchronous and asynchronous calls to RecommenderClient.ListInsights and RecommenderClient.ListInsightsAsync.

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

ListRecommendationsSettings

public CallSettings ListRecommendationsSettings { get; set; }

CallSettings for synchronous and asynchronous calls to RecommenderClient.ListRecommendations and RecommenderClient.ListRecommendationsAsync.

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

MarkInsightAcceptedSettings

public CallSettings MarkInsightAcceptedSettings { get; set; }

CallSettings for synchronous and asynchronous calls to RecommenderClient.MarkInsightAccepted and RecommenderClient.MarkInsightAcceptedAsync.

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

MarkRecommendationClaimedSettings

public CallSettings MarkRecommendationClaimedSettings { get; set; }

CallSettings for synchronous and asynchronous calls to RecommenderClient.MarkRecommendationClaimed and RecommenderClient.MarkRecommendationClaimedAsync .

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

MarkRecommendationFailedSettings

public CallSettings MarkRecommendationFailedSettings { get; set; }

CallSettings for synchronous and asynchronous calls to RecommenderClient.MarkRecommendationFailed and RecommenderClient.MarkRecommendationFailedAsync .

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

MarkRecommendationSucceededSettings

public CallSettings MarkRecommendationSucceededSettings { get; set; }

CallSettings for synchronous and asynchronous calls to RecommenderClient.MarkRecommendationSucceeded and RecommenderClient.MarkRecommendationSucceededAsync.

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

Methods

Clone()

public RecommenderSettings Clone()

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

Returns
TypeDescription
RecommenderSettings

A deep clone of this RecommenderSettings object.

GetDefault()

public static RecommenderSettings GetDefault()

Get a new instance of the default RecommenderSettings.

Returns
TypeDescription
RecommenderSettings

A new instance of the default RecommenderSettings.