Class DeveloperKnowledgeSettings
Settings for DeveloperKnowledgeClient instances.
Inherited Members
Namespace: Google.Developers.DeveloperKnowledge.V1
Assembly: Google.Developers.DeveloperKnowledge.V1.dll
Syntax
public sealed class DeveloperKnowledgeSettings : ServiceSettingsBase
Constructors
DeveloperKnowledgeSettings()
Constructs a new DeveloperKnowledgeSettings object with default settings.
Declaration
public DeveloperKnowledgeSettings()
Properties
BatchGetDocumentsSettings
CallSettings for synchronous and asynchronous calls to
DeveloperKnowledgeClient.BatchGetDocuments and DeveloperKnowledgeClient.BatchGetDocumentsAsync
.
Declaration
public CallSettings BatchGetDocumentsSettings { get; set; }
Property Value
| Type | Description |
|---|---|
| CallSettings |
Remarks
- Initial retry delay: 1000 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 10000 milliseconds.
- Maximum attempts: 5
- Retriable status codes: Unavailable.
- Timeout: 60 seconds.
GetDocumentSettings
CallSettings for synchronous and asynchronous calls to
DeveloperKnowledgeClient.GetDocument and DeveloperKnowledgeClient.GetDocumentAsync.
Declaration
public CallSettings GetDocumentSettings { get; set; }
Property Value
| Type | Description |
|---|---|
| CallSettings |
Remarks
- Initial retry delay: 1000 milliseconds.
- Retry delay multiplier: 1.3
- Retry maximum delay: 10000 milliseconds.
- Maximum attempts: 5
- Retriable status codes: Unavailable.
- Timeout: 60 seconds.
SearchDocumentChunksSettings
CallSettings for synchronous and asynchronous calls to
DeveloperKnowledgeClient.SearchDocumentChunks and
DeveloperKnowledgeClient.SearchDocumentChunksAsync.
Declaration
public CallSettings SearchDocumentChunksSettings { get; set; }
Property Value
| Type | Description |
|---|---|
| CallSettings |
Remarks
- This call will not be retried.
- No timeout is applied.
Methods
Clone()
Creates a deep clone of this object, with all the same property values.
Declaration
public DeveloperKnowledgeSettings Clone()
Returns
| Type | Description |
|---|---|
| DeveloperKnowledgeSettings | A deep clone of this DeveloperKnowledgeSettings object. |
GetDefault()
Get a new instance of the default DeveloperKnowledgeSettings.
Declaration
public static DeveloperKnowledgeSettings GetDefault()
Returns
| Type | Description |
|---|---|
| DeveloperKnowledgeSettings | A new instance of the default DeveloperKnowledgeSettings. |