Class BetaManagedAgentsDocumentBlock
-
- All Implemented Interfaces:
public final class BetaManagedAgentsDocumentBlockDocument content, either specified directly as base64 data, as text, or as a reference via a URL.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsDocumentBlock.BuilderA builder for BetaManagedAgentsDocumentBlock.
public final classBetaManagedAgentsDocumentBlock.SourceThe source of the document data.
-
Method Summary
Modifier and Type Method Description final BetaManagedAgentsDocumentBlock.Sourcesource()The source of the document data. final Optional<String>context()Additional context about the document for the model. 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<BetaManagedAgentsDocumentBlock.Source>_source()Returns the raw JSON value of source. final JsonField<String>_context()Returns the raw JSON value of context. final JsonField<String>_title()Returns the raw JSON value of title. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsDocumentBlock.BuildertoBuilder()final BetaManagedAgentsDocumentBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsDocumentBlock.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsDocumentBlock. final static BetaManagedAgentsDocumentBlockof(BetaManagedAgentsDocumentBlock.Source source)Returns an immutable instance of BetaManagedAgentsDocumentBlock with the required source set to the given value. final static BetaManagedAgentsDocumentBlockof(BetaManagedAgentsBase64DocumentSource base64)Alias for calling of with Source.ofBase64(base64).final static BetaManagedAgentsDocumentBlockof(BetaManagedAgentsPlainTextDocumentSource text)Alias for calling of with Source.ofText(text).final static BetaManagedAgentsDocumentBlockof(BetaManagedAgentsUrlDocumentSource url)Alias for calling of with Source.ofUrl(url).final static BetaManagedAgentsDocumentBlockof(BetaManagedAgentsFileDocumentSource file)Alias for calling of with Source.ofFile(file).-
-
Method Detail
-
source
final BetaManagedAgentsDocumentBlock.Source source()
The source of the document data.
-
_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).
-
_source
final JsonField<BetaManagedAgentsDocumentBlock.Source> _source()
Returns the raw JSON value of source.
Unlike source, this method doesn't throw if the JSON field has an unexpected type.
-
_context
final JsonField<String> _context()
Returns the raw JSON value of context.
Unlike context, 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 BetaManagedAgentsDocumentBlock.Builder toBuilder()
-
validate
final BetaManagedAgentsDocumentBlock validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaManagedAgentsDocumentBlock.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsDocumentBlock.
The following fields are required:
.source()
-
of
final static BetaManagedAgentsDocumentBlock of(BetaManagedAgentsDocumentBlock.Source source)
Returns an immutable instance of BetaManagedAgentsDocumentBlock with the required source set to the given value.
-
of
final static BetaManagedAgentsDocumentBlock of(BetaManagedAgentsBase64DocumentSource base64)
Alias for calling of with
Source.ofBase64(base64).
-
of
final static BetaManagedAgentsDocumentBlock of(BetaManagedAgentsPlainTextDocumentSource text)
Alias for calling of with
Source.ofText(text).
-
of
final static BetaManagedAgentsDocumentBlock of(BetaManagedAgentsUrlDocumentSource url)
Alias for calling of with
Source.ofUrl(url).
-
of
final static BetaManagedAgentsDocumentBlock of(BetaManagedAgentsFileDocumentSource file)
Alias for calling of with
Source.ofFile(file).
-
-
-
-