Class BetaTextBlock
-
- All Implemented Interfaces:
public final class BetaTextBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaTextBlock.BuilderA builder for BetaTextBlock.
-
Method Summary
Modifier and Type Method Description final BetaTextBlockParamtoParam()final Optional<List<BetaTextCitation>>citations()Citations supporting the text block. final Stringtext()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("text")final JsonField<List<BetaTextCitation>>_citations()Returns the raw JSON value of citations. final JsonField<String>_text()Returns the raw JSON value of text. final Map<String, JsonValue>_additionalProperties()final BetaTextBlock.BuildertoBuilder()final BetaTextBlockvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaTextBlock.Builderbuilder()Returns a mutable builder for constructing an instance of BetaTextBlock. -
-
Method Detail
-
toParam
final BetaTextBlockParam toParam()
-
citations
final Optional<List<BetaTextCitation>> 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.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("text")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_citations
final JsonField<List<BetaTextCitation>> _citations()
Returns the raw JSON value of citations.
Unlike citations, this method doesn't throw if the JSON field has an unexpected type.
-
_text
final JsonField<String> _text()
Returns the raw JSON value of text.
Unlike text, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaTextBlock.Builder toBuilder()
-
validate
final BetaTextBlock validate()
-
builder
final static BetaTextBlock.Builder builder()
Returns a mutable builder for constructing an instance of BetaTextBlock.
The following fields are required:
.citations() .text()
-
-
-
-