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)
Union type for document source variants.
-
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).
-
urlSource
final BetaManagedAgentsDocumentBlock.Builder urlSource(String url)
Alias for calling source with the following:
BetaManagedAgentsUrlDocumentSource.builder() .type(BetaManagedAgentsUrlDocumentSource.Type.URL) .url(url) .build()
-
fileSource
final BetaManagedAgentsDocumentBlock.Builder fileSource(String fileId)
Alias for calling source with the following:
BetaManagedAgentsFileDocumentSource.builder() .type(BetaManagedAgentsFileDocumentSource.Type.FILE) .fileId(fileId) .build()
-
type
final BetaManagedAgentsDocumentBlock.Builder type(JsonField<BetaManagedAgentsDocumentBlock.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. 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)
-
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() .type()
-
-
-
-