Class TextDeltaBlock.Builder
-
- All Implemented Interfaces:
public final class TextDeltaBlock.BuilderA builder for TextDeltaBlock.
-
-
Method Summary
Modifier and Type Method Description final TextDeltaBlock.Builderindex(Long index)The index of the content part in the message. final TextDeltaBlock.Builderindex(JsonField<Long> index)Sets Builder.index to an arbitrary JSON value. final TextDeltaBlock.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final TextDeltaBlock.Buildertext(TextDelta text)final TextDeltaBlock.Buildertext(JsonField<TextDelta> text)Sets Builder.text to an arbitrary JSON value. final TextDeltaBlock.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final TextDeltaBlock.BuilderputAdditionalProperty(String key, JsonValue value)final TextDeltaBlock.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final TextDeltaBlock.BuilderremoveAdditionalProperty(String key)final TextDeltaBlock.BuilderremoveAllAdditionalProperties(Set<String> keys)final TextDeltaBlockbuild()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()
-
-
-
-