Class BetaTextBlockParam
-
- All Implemented Interfaces:
public final class BetaTextBlockParam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaTextBlockParam.BuilderA builder for BetaTextBlockParam.
-
Method Summary
Modifier and Type Method Description final Stringtext()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("text")final Optional<BetaCacheControlEphemeral>cacheControl()Create a cache control breakpoint at this content block. final Optional<List<BetaTextCitationParam>>citations()final JsonField<String>_text()Returns the raw JSON value of text. final JsonField<BetaCacheControlEphemeral>_cacheControl()Returns the raw JSON value of cacheControl. final JsonField<List<BetaTextCitationParam>>_citations()Returns the raw JSON value of citations. final Map<String, JsonValue>_additionalProperties()final BetaTextBlockParam.BuildertoBuilder()final BetaTextBlockParamvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaTextBlockParam.Builderbuilder()Returns a mutable builder for constructing an instance of BetaTextBlockParam. -
-
Method Detail
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("text")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<List<BetaTextCitationParam>> citations()
-
_text
final JsonField<String> _text()
Returns the raw JSON value of text.
Unlike text, 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<List<BetaTextCitationParam>> _citations()
Returns the raw JSON value of citations.
Unlike citations, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaTextBlockParam.Builder toBuilder()
-
validate
final BetaTextBlockParam 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 BetaTextBlockParam.Builder builder()
Returns a mutable builder for constructing an instance of BetaTextBlockParam.
The following fields are required:
.text()
-
-
-
-