Class TextDeltaBlock.Builder
-
- All Implemented Interfaces:
public final class TextDeltaBlock.Builder
A builder for TextDeltaBlock.
-
-
Method Summary
Modifier and Type Method Description final TextDeltaBlock.Builder
index(Long index)
The index of the content part in the message. final TextDeltaBlock.Builder
index(JsonField<Long> index)
Sets Builder.index to an arbitrary JSON value. final TextDeltaBlock.Builder
type(JsonValue type)
Sets the field to an arbitrary JSON value. final TextDeltaBlock.Builder
text(TextDelta text)
final TextDeltaBlock.Builder
text(JsonField<TextDelta> text)
Sets Builder.text to an arbitrary JSON value. final TextDeltaBlock.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final TextDeltaBlock.Builder
putAdditionalProperty(String key, JsonValue value)
final TextDeltaBlock.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final TextDeltaBlock.Builder
removeAdditionalProperty(String key)
final TextDeltaBlock.Builder
removeAllAdditionalProperties(Set<String> keys)
final TextDeltaBlock
build()
Returns an immutable instance of TextDeltaBlock. -
-
Method Detail
-
index
final TextDeltaBlock.Builder index(Long index)
The index of the content part in the message.
-
index
final TextDeltaBlock.Builder index(JsonField<Long> index)
Sets Builder.index to an arbitrary JSON value.
You should usually call Builder.index with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final TextDeltaBlock.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("text")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
text
final TextDeltaBlock.Builder text(TextDelta text)
-
text
final TextDeltaBlock.Builder text(JsonField<TextDelta> text)
Sets Builder.text to an arbitrary JSON value.
You should usually call Builder.text with a well-typed TextDelta value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final TextDeltaBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TextDeltaBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TextDeltaBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TextDeltaBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TextDeltaBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TextDeltaBlock build()
Returns an immutable instance of TextDeltaBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.index()
-
-
-
-