A base settings class to configure a UnaryCallable. An instance of UnaryCallSettings is not
sufficient on its own to construct a UnaryCallable; a concrete derived type is necessary.
This base class includes settings that are applicable to all calls, which currently is just
retry settings.
Retry configuration is composed of two parts: the retryable codes, and the retry settings. The
retryable codes indicate which codes cause a retry to occur, and the retry settings configure the
retry logic when the retry needs to happen. To turn off retries, set the retryable codes to the
empty set.
UnaryCallSettings contains a concrete builder class, UnaryCallSettings.Builder. This
builder class cannot be used to create an instance of UnaryCallSettings, because
UnaryCallSettings is an abstract class.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This webpage provides documentation for various versions of `UnaryCallSettings`, a base settings class for configuring `UnaryCallable` in the Google API Client Libraries for Java, ranging from version 2.7.1 up to the latest version 2.63.1."],["`UnaryCallSettings` includes settings applicable to all calls, such as retry settings which are composed of retryable codes and retry logic configurations, with the ability to disable retries by setting the retryable codes to an empty set."],["The class offers a builder, `UnaryCallSettings.Builder`, for constructing settings, and it includes methods for managing retry settings (`getRetrySettings`, `getRetryableCodes`), along with standard Java methods like `equals`, `hashCode`, and `toString`."],["`UnaryCallSettings` is an abstract class, so a concrete derived type is needed to construct a `UnaryCallable`, and the class inherits from `Object` while providing its own implementations for specific methods."],["There is also a static method available, `newUnaryCallSettingsBuilder()`, which can be used to create instances of the builder class, `UnaryCallSettings.Builder`, enabling users to configure and create settings for unary calls."]]],[]]