Class TextContentBlockParam
-
- All Implemented Interfaces:
public final class TextContentBlockParam
The text content that is part of a message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
TextContentBlockParam.Builder
A builder for TextContentBlockParam.
-
Method Summary
Modifier and Type Method Description final String
text()
Text content to be sent to the model final JsonValue
_type()
Always text
.final JsonField<String>
_text()
Returns the raw JSON value of text. final Map<String, JsonValue>
_additionalProperties()
final TextContentBlockParam.Builder
toBuilder()
final TextContentBlockParam
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static TextContentBlockParam.Builder
builder()
Returns a mutable builder for constructing an instance of TextContentBlockParam. -
-
Method Detail
-
_type
final JsonValue _type()
Always
text
.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).
-
_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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final TextContentBlockParam.Builder toBuilder()
-
validate
final TextContentBlockParam validate()
-
builder
final static TextContentBlockParam.Builder builder()
Returns a mutable builder for constructing an instance of TextContentBlockParam.
The following fields are required:
.text()
-
-
-
-