Class BetaManagedAgentsDocumentBlock.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsDocumentBlock.BuilderA builder for BetaManagedAgentsDocumentBlock.
-
-
Method Summary
-
-
Method Detail
-
source
final BetaManagedAgentsDocumentBlock.Builder source(BetaManagedAgentsDocumentBlock.Source source)
The source of the document data.
-
source
final BetaManagedAgentsDocumentBlock.Builder source(JsonField<BetaManagedAgentsDocumentBlock.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 BetaManagedAgentsDocumentBlock.Builder source(BetaManagedAgentsBase64DocumentSource base64)
Alias for calling source with
Source.ofBase64(base64).
-
source
final BetaManagedAgentsDocumentBlock.Builder source(BetaManagedAgentsPlainTextDocumentSource text)
Alias for calling source with
Source.ofText(text).
-
source
final BetaManagedAgentsDocumentBlock.Builder source(BetaManagedAgentsUrlDocumentSource url)
Alias for calling source with
Source.ofUrl(url).
-
source
final BetaManagedAgentsDocumentBlock.Builder source(BetaManagedAgentsFileDocumentSource file)
Alias for calling source with
Source.ofFile(file).
-
type
final BetaManagedAgentsDocumentBlock.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.
-
context
final BetaManagedAgentsDocumentBlock.Builder context(String context)
Additional context about the document for the model.
-
context
final BetaManagedAgentsDocumentBlock.Builder context(Optional<String> context)
Alias for calling Builder.context with
context.orElse(null).
-
context
final BetaManagedAgentsDocumentBlock.Builder context(JsonField<String> context)
Sets Builder.context to an arbitrary JSON value.
You should usually call Builder.context with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
title
final BetaManagedAgentsDocumentBlock.Builder title(String title)
The title of the document.
-
title
final BetaManagedAgentsDocumentBlock.Builder title(Optional<String> title)
Alias for calling Builder.title with
title.orElse(null).
-
title
final BetaManagedAgentsDocumentBlock.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.
-
additionalProperties
final BetaManagedAgentsDocumentBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
textSource
final BetaManagedAgentsDocumentBlock.Builder textSource(String data)
Alias for calling source with the following:
BetaManagedAgentsPlainTextDocumentSource.builder() .data(data) .build()
-
urlSource
final BetaManagedAgentsDocumentBlock.Builder urlSource(String url)
Alias for calling source with the following:
BetaManagedAgentsUrlDocumentSource.builder() .url(url) .build()
-
fileSource
final BetaManagedAgentsDocumentBlock.Builder fileSource(String fileId)
Alias for calling source with the following:
BetaManagedAgentsFileDocumentSource.builder() .fileId(fileId) .build()
-
putAdditionalProperty
final BetaManagedAgentsDocumentBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsDocumentBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsDocumentBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsDocumentBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsDocumentBlock build()
Returns an immutable instance of BetaManagedAgentsDocumentBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.source()
-
-
-
-