Class BetaDocumentBlock
-
- All Implemented Interfaces:
public final class BetaDocumentBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaDocumentBlock.BuilderA builder for BetaDocumentBlock.
public final classBetaDocumentBlock.Source
-
Method Summary
Modifier and Type Method Description final Optional<BetaCitationConfig>citations()Citation configuration for the document final BetaDocumentBlock.Sourcesource()final Optional<String>title()The title of the document final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("document")final JsonField<BetaCitationConfig>_citations()Returns the raw JSON value of citations. final JsonField<BetaDocumentBlock.Source>_source()Returns the raw JSON value of source. final JsonField<String>_title()Returns the raw JSON value of title. final Map<String, JsonValue>_additionalProperties()final BetaDocumentBlock.BuildertoBuilder()final BetaDocumentBlockvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaDocumentBlock.Builderbuilder()Returns a mutable builder for constructing an instance of BetaDocumentBlock. -
-
Method Detail
-
citations
final Optional<BetaCitationConfig> citations()
Citation configuration for the document
-
source
final BetaDocumentBlock.Source source()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("document")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_citations
final JsonField<BetaCitationConfig> _citations()
Returns the raw JSON value of citations.
Unlike citations, this method doesn't throw if the JSON field has an unexpected type.
-
_source
final JsonField<BetaDocumentBlock.Source> _source()
Returns the raw JSON value of source.
Unlike source, this method doesn't throw if the JSON field has an unexpected type.
-
_title
final JsonField<String> _title()
Returns the raw JSON value of title.
Unlike title, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaDocumentBlock.Builder toBuilder()
-
validate
final BetaDocumentBlock validate()
-
builder
final static BetaDocumentBlock.Builder builder()
Returns a mutable builder for constructing an instance of BetaDocumentBlock.
The following fields are required:
.citations() .source() .title()
-
-
-
-