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.SourceUnion type for document source variants.
public final classBetaManagedAgentsDocumentBlock.Type
-
Method Summary
Modifier and Type Method Description final BetaManagedAgentsDocumentBlock.Sourcesource()Union type for document source variants. final BetaManagedAgentsDocumentBlock.Typetype()final Optional<String>context()Additional context about the document for the model. final Optional<String>title()The title of the document. final JsonField<BetaManagedAgentsDocumentBlock.Source>_source()Returns the raw JSON value of source. final JsonField<BetaManagedAgentsDocumentBlock.Type>_type()Returns the raw JSON value of type. 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. -
-
Method Detail
-
source
final BetaManagedAgentsDocumentBlock.Source source()
Union type for document source variants.
-
type
final BetaManagedAgentsDocumentBlock.Type type()
-
_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.
-
_type
final JsonField<BetaManagedAgentsDocumentBlock.Type> _type()
Returns the raw JSON value of type.
Unlike type, 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() .type()
-
-
-
-