Class TextBlock.Builder
-
- All Implemented Interfaces:
public final class TextBlock.BuilderA builder for TextBlock.
-
-
Method Summary
-
-
Method Detail
-
citations
final TextBlock.Builder citations(List<TextCitation> citations)
Citations supporting the text block.
The type of citation returned will depend on the type of document being cited. Citing a PDF results in
page_location, plain text results inchar_location, and content document results incontent_block_location.
-
citations
final TextBlock.Builder citations(Optional<List<TextCitation>> citations)
Citations supporting the text block.
The type of citation returned will depend on the type of document being cited. Citing a PDF results in
page_location, plain text results inchar_location, and content document results incontent_block_location.
-
citations
final TextBlock.Builder citations(JsonField<List<TextCitation>> citations)
Citations supporting the text block.
The type of citation returned will depend on the type of document being cited. Citing a PDF results in
page_location, plain text results inchar_location, and content document results incontent_block_location.
-
addCitation
final TextBlock.Builder addCitation(TextCitation citation)
Citations supporting the text block.
The type of citation returned will depend on the type of document being cited. Citing a PDF results in
page_location, plain text results inchar_location, and content document results incontent_block_location.
-
addCitation
final TextBlock.Builder addCitation(CitationCharLocation citationCharLocation)
Citations supporting the text block.
The type of citation returned will depend on the type of document being cited. Citing a PDF results in
page_location, plain text results inchar_location, and content document results incontent_block_location.
-
addCitation
final TextBlock.Builder addCitation(CitationPageLocation citationPageLocation)
Citations supporting the text block.
The type of citation returned will depend on the type of document being cited. Citing a PDF results in
page_location, plain text results inchar_location, and content document results incontent_block_location.
-
addCitation
final TextBlock.Builder addCitation(CitationContentBlockLocation citationContentBlockLocation)
Citations supporting the text block.
The type of citation returned will depend on the type of document being cited. Citing a PDF results in
page_location, plain text results inchar_location, and content document results incontent_block_location.
-
text
final TextBlock.Builder text(String text)
-
text
final TextBlock.Builder text(JsonField<String> text)
-
type
final TextBlock.Builder type(TextBlock.Type type)
-
type
final TextBlock.Builder type(JsonField<TextBlock.Type> type)
-
additionalProperties
final TextBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TextBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TextBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TextBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TextBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-