Class BetaPluginComponent
-
- All Implemented Interfaces:
public final class BetaPluginComponent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaPluginComponent.BuilderA builder for BetaPluginComponent.
public final classBetaPluginComponent.TypeThe kind of component.
-
Method Summary
Modifier and Type Method Description final Optional<String>description()What the component declares about itself; always null for MCP servers, hooks, and CLIs. final Stringname()The component's name: a skill's, command's or agent's name, an MCP server's key in the manifest, the event a hook runs on, or a CLI's executable. final BetaPluginComponent.Typetype()The kind of component. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<BetaPluginComponent.Type>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final BetaPluginComponent.BuildertoBuilder()final BetaPluginComponentvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaPluginComponent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaPluginComponent. -
-
Method Detail
-
description
final Optional<String> description()
What the component declares about itself; always null for MCP servers, hooks, and CLIs.
-
name
final String name()
The component's name: a skill's, command's or agent's name, an MCP server's key in the manifest, the event a hook runs on, or a CLI's executable.
-
type
final BetaPluginComponent.Type type()
The kind of component.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<BetaPluginComponent.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaPluginComponent.Builder toBuilder()
-
validate
final BetaPluginComponent 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 BetaPluginComponent.Builder builder()
Returns a mutable builder for constructing an instance of BetaPluginComponent.
The following fields are required:
.description() .name() .type()
-
-
-
-