Class ChatSessionHistory.Builder
-
- All Implemented Interfaces:
public final class ChatSessionHistory.Builder
A builder for ChatSessionHistory.
-
-
Method Summary
-
-
Method Detail
-
enabled
final ChatSessionHistory.Builder enabled(Boolean enabled)
Indicates if chat history is persisted for the session.
-
enabled
final ChatSessionHistory.Builder enabled(JsonField<Boolean> enabled)
Sets Builder.enabled to an arbitrary JSON value.
You should usually call Builder.enabled with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
recentThreads
final ChatSessionHistory.Builder recentThreads(Long recentThreads)
Number of prior threads surfaced in history views. Defaults to null when all history is retained.
-
recentThreads
final ChatSessionHistory.Builder recentThreads(Long recentThreads)
Alias for Builder.recentThreads.
This unboxed primitive overload exists for backwards compatibility.
-
recentThreads
final ChatSessionHistory.Builder recentThreads(Optional<Long> recentThreads)
Alias for calling Builder.recentThreads with
recentThreads.orElse(null)
.
-
recentThreads
final ChatSessionHistory.Builder recentThreads(JsonField<Long> recentThreads)
Sets Builder.recentThreads to an arbitrary JSON value.
You should usually call Builder.recentThreads with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ChatSessionHistory.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatSessionHistory.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatSessionHistory.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatSessionHistory.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatSessionHistory.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatSessionHistory build()
Returns an immutable instance of ChatSessionHistory.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.enabled() .recentThreads()
-
-
-
-