Class BetaDocumentBlock.Builder
-
- All Implemented Interfaces:
public final class BetaDocumentBlock.BuilderA builder for BetaDocumentBlock.
-
-
Method Summary
-
-
Method Detail
-
citations
final BetaDocumentBlock.Builder citations(BetaCitationConfig citations)
Citation configuration for the document
-
citations
final BetaDocumentBlock.Builder citations(Optional<BetaCitationConfig> citations)
Alias for calling Builder.citations with
citations.orElse(null).
-
citations
final BetaDocumentBlock.Builder citations(JsonField<BetaCitationConfig> citations)
Sets Builder.citations to an arbitrary JSON value.
You should usually call Builder.citations with a well-typed BetaCitationConfig value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
source
final BetaDocumentBlock.Builder source(BetaDocumentBlock.Source source)
-
source
final BetaDocumentBlock.Builder source(JsonField<BetaDocumentBlock.Source> source)
Sets Builder.source to an arbitrary JSON value.
You should usually call Builder.source with a well-typed Source value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
source
final BetaDocumentBlock.Builder source(BetaBase64PdfSource base64)
Alias for calling source with
Source.ofBase64(base64).
-
source
final BetaDocumentBlock.Builder source(BetaPlainTextSource text)
Alias for calling source with
Source.ofText(text).
-
base64Source
final BetaDocumentBlock.Builder base64Source(String data)
Alias for calling source with the following:
BetaBase64PdfSource.builder() .data(data) .build()
-
textSource
final BetaDocumentBlock.Builder textSource(String data)
Alias for calling source with the following:
BetaPlainTextSource.builder() .data(data) .build()
-
title
final BetaDocumentBlock.Builder title(String title)
The title of the document
-
title
final BetaDocumentBlock.Builder title(Optional<String> title)
Alias for calling Builder.title with
title.orElse(null).
-
title
final BetaDocumentBlock.Builder title(JsonField<String> title)
Sets Builder.title to an arbitrary JSON value.
You should usually call Builder.title with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaDocumentBlock.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("document")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaDocumentBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaDocumentBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaDocumentBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaDocumentBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaDocumentBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaDocumentBlock build()
Returns an immutable instance of BetaDocumentBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.citations() .source() .title()
-
-
-
-