Class BetaRequestDocumentBlock
-
- All Implemented Interfaces:
public final class BetaRequestDocumentBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaRequestDocumentBlock.BuilderA builder for BetaRequestDocumentBlock.
public final classBetaRequestDocumentBlock.Source
-
Method Summary
Modifier and Type Method Description final BetaRequestDocumentBlock.Sourcesource()final Optional<BetaCacheControlEphemeral>cacheControl()Create a cache control breakpoint at this content block. final Optional<BetaCitationsConfigParam>citations()final Optional<String>context()final Optional<String>title()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<BetaRequestDocumentBlock.Source>_source()Returns the raw JSON value of source. final JsonField<BetaCacheControlEphemeral>_cacheControl()Returns the raw JSON value of cacheControl. final JsonField<BetaCitationsConfigParam>_citations()Returns the raw JSON value of citations. 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 BetaRequestDocumentBlock.BuildertoBuilder()final BetaRequestDocumentBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaRequestDocumentBlock.Builderbuilder()Returns a mutable builder for constructing an instance of BetaRequestDocumentBlock. final static BetaRequestDocumentBlockof(BetaRequestDocumentBlock.Source source)Returns an immutable instance of BetaRequestDocumentBlock with the required source set to the given value. final static BetaRequestDocumentBlockof(BetaBase64PdfSource base64)Alias for calling of with Source.ofBase64(base64).final static BetaRequestDocumentBlockof(BetaPlainTextSource text)Alias for calling of with Source.ofText(text).final static BetaRequestDocumentBlockof(BetaContentBlockSource content)Alias for calling of with Source.ofContent(content).final static BetaRequestDocumentBlockof(BetaUrlPdfSource url)Alias for calling of with Source.ofUrl(url).final static BetaRequestDocumentBlockof(BetaFileDocumentSource file)Alias for calling of with Source.ofFile(file).-
-
Method Detail
-
source
final BetaRequestDocumentBlock.Source source()
-
cacheControl
final Optional<BetaCacheControlEphemeral> cacheControl()
Create a cache control breakpoint at this content block.
-
citations
final Optional<BetaCitationsConfigParam> citations()
-
_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<BetaRequestDocumentBlock.Source> _source()
Returns the raw JSON value of source.
Unlike source, this method doesn't throw if the JSON field has an unexpected type.
-
_cacheControl
final JsonField<BetaCacheControlEphemeral> _cacheControl()
Returns the raw JSON value of cacheControl.
Unlike cacheControl, this method doesn't throw if the JSON field has an unexpected type.
-
_citations
final JsonField<BetaCitationsConfigParam> _citations()
Returns the raw JSON value of citations.
Unlike citations, 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 BetaRequestDocumentBlock.Builder toBuilder()
-
validate
final BetaRequestDocumentBlock 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 BetaRequestDocumentBlock.Builder builder()
Returns a mutable builder for constructing an instance of BetaRequestDocumentBlock.
The following fields are required:
.source()
-
of
final static BetaRequestDocumentBlock of(BetaRequestDocumentBlock.Source source)
Returns an immutable instance of BetaRequestDocumentBlock with the required source set to the given value.
-
of
final static BetaRequestDocumentBlock of(BetaBase64PdfSource base64)
Alias for calling of with
Source.ofBase64(base64).
-
of
final static BetaRequestDocumentBlock of(BetaPlainTextSource text)
Alias for calling of with
Source.ofText(text).
-
of
final static BetaRequestDocumentBlock of(BetaContentBlockSource content)
Alias for calling of with
Source.ofContent(content).
-
of
final static BetaRequestDocumentBlock of(BetaUrlPdfSource url)
Alias for calling of with
Source.ofUrl(url).
-
of
final static BetaRequestDocumentBlock of(BetaFileDocumentSource file)
Alias for calling of with
Source.ofFile(file).
-
-
-
-