Package com.openai.models
Class RefusalDeltaBlock.Builder
-
- All Implemented Interfaces:
public final class RefusalDeltaBlock.Builder
A builder for RefusalDeltaBlock.
-
-
Method Summary
Modifier and Type Method Description final RefusalDeltaBlock.Builder
index(Long index)
The index of the refusal part in the message. final RefusalDeltaBlock.Builder
index(JsonField<Long> index)
The index of the refusal part in the message. final RefusalDeltaBlock.Builder
type(JsonValue type)
Always refusal
.final RefusalDeltaBlock.Builder
refusal(String refusal)
final RefusalDeltaBlock.Builder
refusal(JsonField<String> refusal)
final RefusalDeltaBlock.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final RefusalDeltaBlock.Builder
putAdditionalProperty(String key, JsonValue value)
final RefusalDeltaBlock.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final RefusalDeltaBlock.Builder
removeAdditionalProperty(String key)
final RefusalDeltaBlock.Builder
removeAllAdditionalProperties(Set<String> keys)
final RefusalDeltaBlock
build()
-
-
Method Detail
-
index
final RefusalDeltaBlock.Builder index(Long index)
The index of the refusal part in the message.
-
index
final RefusalDeltaBlock.Builder index(JsonField<Long> index)
The index of the refusal part in the message.
-
type
final RefusalDeltaBlock.Builder type(JsonValue type)
Always
refusal
.
-
refusal
final RefusalDeltaBlock.Builder refusal(String refusal)
-
refusal
final RefusalDeltaBlock.Builder refusal(JsonField<String> refusal)
-
additionalProperties
final RefusalDeltaBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RefusalDeltaBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RefusalDeltaBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RefusalDeltaBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RefusalDeltaBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RefusalDeltaBlock build()
-
-
-
-