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 JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("document")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 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. -
-
Method Detail
-
source
final BetaRequestDocumentBlock.Source source()
-
_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).
-
cacheControl
final Optional<BetaCacheControlEphemeral> cacheControl()
Create a cache control breakpoint at this content block.
-
citations
final Optional<BetaCitationsConfigParam> citations()
-
_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()
-
-
-
-