Class AgentSkill

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
org.a2aproject.sdk.compat03.grpc.AgentSkill
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, AgentSkillOrBuilder

@Generated public final class AgentSkill extends com.google.protobuf.GeneratedMessage implements AgentSkillOrBuilder
 AgentSkill represents a unit of action/solution that the agent can perform.
 One can think of this as a type of highly reliable solution that an agent
 can be tasked to provide. Agents have the autonomy to choose how and when
 to use specific skills, but clients should have confidence that if the
 skill is defined that unit of action can be reliably performed.
 
Protobuf type a2a.v1.AgentSkill
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    AgentSkill represents a unit of action/solution that the agent can perform.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    static AgentSkill
     
     
    A human (or llm) readable description of the skill details and behaviors.
    com.google.protobuf.ByteString
    A human (or llm) readable description of the skill details and behaviors.
    static final com.google.protobuf.Descriptors.Descriptor
     
    getExamples(int index)
    A set of example queries that this skill is designed to address.
    com.google.protobuf.ByteString
    getExamplesBytes(int index)
    A set of example queries that this skill is designed to address.
    int
    A set of example queries that this skill is designed to address.
    com.google.protobuf.ProtocolStringList
    A set of example queries that this skill is designed to address.
    Unique id of the skill within this agent.
    com.google.protobuf.ByteString
    Unique id of the skill within this agent.
    getInputModes(int index)
    Possible input modalities supported.
    com.google.protobuf.ByteString
    getInputModesBytes(int index)
    Possible input modalities supported.
    int
    Possible input modalities supported.
    com.google.protobuf.ProtocolStringList
    Possible input modalities supported.
    A human readable name for the skill.
    com.google.protobuf.ByteString
    A human readable name for the skill.
    getOutputModes(int index)
    Possible output modalities produced
    com.google.protobuf.ByteString
    Possible output modalities produced
    int
    Possible output modalities produced
    com.google.protobuf.ProtocolStringList
    Possible output modalities produced
    com.google.protobuf.Parser<AgentSkill>
     
    getSecurity(int index)
    protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Security schemes necessary for the agent to leverage this skill.
    int
    protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Security schemes necessary for the agent to leverage this skill.
    protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Security schemes necessary for the agent to leverage this skill.
    protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Security schemes necessary for the agent to leverage this skill.
    protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Security schemes necessary for the agent to leverage this skill.
    int
     
    getTags(int index)
    A set of tags for the skill to enhance categorization/utilization.
    com.google.protobuf.ByteString
    getTagsBytes(int index)
    A set of tags for the skill to enhance categorization/utilization.
    int
    A set of tags for the skill to enhance categorization/utilization.
    com.google.protobuf.ProtocolStringList
    A set of tags for the skill to enhance categorization/utilization.
    int
     
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static AgentSkill
     
    static AgentSkill
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static AgentSkill
    parseFrom(byte[] data)
     
    static AgentSkill
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static AgentSkill
    parseFrom(com.google.protobuf.ByteString data)
     
    static AgentSkill
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static AgentSkill
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static AgentSkill
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static AgentSkill
     
    static AgentSkill
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static AgentSkill
     
    static AgentSkill
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<AgentSkill>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getId

      public String getId()
       Unique id of the skill within this agent.
       
      string id = 1;
      Specified by:
      getId in interface AgentSkillOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Unique id of the skill within this agent.
       
      string id = 1;
      Specified by:
      getIdBytes in interface AgentSkillOrBuilder
      Returns:
      The bytes for id.
    • getName

      public String getName()
       A human readable name for the skill.
       
      string name = 2;
      Specified by:
      getName in interface AgentSkillOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       A human readable name for the skill.
       
      string name = 2;
      Specified by:
      getNameBytes in interface AgentSkillOrBuilder
      Returns:
      The bytes for name.
    • getDescription

      public String getDescription()
       A human (or llm) readable description of the skill
       details and behaviors.
       
      string description = 3;
      Specified by:
      getDescription in interface AgentSkillOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       A human (or llm) readable description of the skill
       details and behaviors.
       
      string description = 3;
      Specified by:
      getDescriptionBytes in interface AgentSkillOrBuilder
      Returns:
      The bytes for description.
    • getTagsList

      public com.google.protobuf.ProtocolStringList getTagsList()
       A set of tags for the skill to enhance categorization/utilization.
       Example: ["cooking", "customer support", "billing"]
       
      repeated string tags = 4;
      Specified by:
      getTagsList in interface AgentSkillOrBuilder
      Returns:
      A list containing the tags.
    • getTagsCount

      public int getTagsCount()
       A set of tags for the skill to enhance categorization/utilization.
       Example: ["cooking", "customer support", "billing"]
       
      repeated string tags = 4;
      Specified by:
      getTagsCount in interface AgentSkillOrBuilder
      Returns:
      The count of tags.
    • getTags

      public String getTags(int index)
       A set of tags for the skill to enhance categorization/utilization.
       Example: ["cooking", "customer support", "billing"]
       
      repeated string tags = 4;
      Specified by:
      getTags in interface AgentSkillOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The tags at the given index.
    • getTagsBytes

      public com.google.protobuf.ByteString getTagsBytes(int index)
       A set of tags for the skill to enhance categorization/utilization.
       Example: ["cooking", "customer support", "billing"]
       
      repeated string tags = 4;
      Specified by:
      getTagsBytes in interface AgentSkillOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tags at the given index.
    • getExamplesList

      public com.google.protobuf.ProtocolStringList getExamplesList()
       A set of example queries that this skill is designed to address.
       These examples should help the caller to understand how to craft requests
       to the agent to achieve specific goals.
       Example: ["I need a recipe for bread"]
       
      repeated string examples = 5;
      Specified by:
      getExamplesList in interface AgentSkillOrBuilder
      Returns:
      A list containing the examples.
    • getExamplesCount

      public int getExamplesCount()
       A set of example queries that this skill is designed to address.
       These examples should help the caller to understand how to craft requests
       to the agent to achieve specific goals.
       Example: ["I need a recipe for bread"]
       
      repeated string examples = 5;
      Specified by:
      getExamplesCount in interface AgentSkillOrBuilder
      Returns:
      The count of examples.
    • getExamples

      public String getExamples(int index)
       A set of example queries that this skill is designed to address.
       These examples should help the caller to understand how to craft requests
       to the agent to achieve specific goals.
       Example: ["I need a recipe for bread"]
       
      repeated string examples = 5;
      Specified by:
      getExamples in interface AgentSkillOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The examples at the given index.
    • getExamplesBytes

      public com.google.protobuf.ByteString getExamplesBytes(int index)
       A set of example queries that this skill is designed to address.
       These examples should help the caller to understand how to craft requests
       to the agent to achieve specific goals.
       Example: ["I need a recipe for bread"]
       
      repeated string examples = 5;
      Specified by:
      getExamplesBytes in interface AgentSkillOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the examples at the given index.
    • getInputModesList

      public com.google.protobuf.ProtocolStringList getInputModesList()
       Possible input modalities supported.
       
      repeated string input_modes = 6;
      Specified by:
      getInputModesList in interface AgentSkillOrBuilder
      Returns:
      A list containing the inputModes.
    • getInputModesCount

      public int getInputModesCount()
       Possible input modalities supported.
       
      repeated string input_modes = 6;
      Specified by:
      getInputModesCount in interface AgentSkillOrBuilder
      Returns:
      The count of inputModes.
    • getInputModes

      public String getInputModes(int index)
       Possible input modalities supported.
       
      repeated string input_modes = 6;
      Specified by:
      getInputModes in interface AgentSkillOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The inputModes at the given index.
    • getInputModesBytes

      public com.google.protobuf.ByteString getInputModesBytes(int index)
       Possible input modalities supported.
       
      repeated string input_modes = 6;
      Specified by:
      getInputModesBytes in interface AgentSkillOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the inputModes at the given index.
    • getOutputModesList

      public com.google.protobuf.ProtocolStringList getOutputModesList()
       Possible output modalities produced
       
      repeated string output_modes = 7;
      Specified by:
      getOutputModesList in interface AgentSkillOrBuilder
      Returns:
      A list containing the outputModes.
    • getOutputModesCount

      public int getOutputModesCount()
       Possible output modalities produced
       
      repeated string output_modes = 7;
      Specified by:
      getOutputModesCount in interface AgentSkillOrBuilder
      Returns:
      The count of outputModes.
    • getOutputModes

      public String getOutputModes(int index)
       Possible output modalities produced
       
      repeated string output_modes = 7;
      Specified by:
      getOutputModes in interface AgentSkillOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The outputModes at the given index.
    • getOutputModesBytes

      public com.google.protobuf.ByteString getOutputModesBytes(int index)
       Possible output modalities produced
       
      repeated string output_modes = 7;
      Specified by:
      getOutputModesBytes in interface AgentSkillOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the outputModes at the given index.
    • getSecurityList

      public List<Security> getSecurityList()
       protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       Security schemes necessary for the agent to leverage this skill.
       As in the overall AgentCard.security, this list represents a logical OR of
       security requirement objects. Each object is a set of security schemes
       that must be used together (a logical AND).
       
      repeated .a2a.v1.Security security = 8;
      Specified by:
      getSecurityList in interface AgentSkillOrBuilder
    • getSecurityOrBuilderList

      public List<? extends SecurityOrBuilder> getSecurityOrBuilderList()
       protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       Security schemes necessary for the agent to leverage this skill.
       As in the overall AgentCard.security, this list represents a logical OR of
       security requirement objects. Each object is a set of security schemes
       that must be used together (a logical AND).
       
      repeated .a2a.v1.Security security = 8;
      Specified by:
      getSecurityOrBuilderList in interface AgentSkillOrBuilder
    • getSecurityCount

      public int getSecurityCount()
       protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       Security schemes necessary for the agent to leverage this skill.
       As in the overall AgentCard.security, this list represents a logical OR of
       security requirement objects. Each object is a set of security schemes
       that must be used together (a logical AND).
       
      repeated .a2a.v1.Security security = 8;
      Specified by:
      getSecurityCount in interface AgentSkillOrBuilder
    • getSecurity

      public Security getSecurity(int index)
       protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       Security schemes necessary for the agent to leverage this skill.
       As in the overall AgentCard.security, this list represents a logical OR of
       security requirement objects. Each object is a set of security schemes
       that must be used together (a logical AND).
       
      repeated .a2a.v1.Security security = 8;
      Specified by:
      getSecurity in interface AgentSkillOrBuilder
    • getSecurityOrBuilder

      public SecurityOrBuilder getSecurityOrBuilder(int index)
       protolint:disable REPEATED_FIELD_NAMES_PLURALIZED
       Security schemes necessary for the agent to leverage this skill.
       As in the overall AgentCard.security, this list represents a logical OR of
       security requirement objects. Each object is a set of security schemes
       that must be used together (a logical AND).
       
      repeated .a2a.v1.Security security = 8;
      Specified by:
      getSecurityOrBuilder in interface AgentSkillOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AgentSkill parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AgentSkill parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AgentSkill parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AgentSkill parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AgentSkill parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AgentSkill parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AgentSkill parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AgentSkill parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AgentSkill parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AgentSkill parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AgentSkill parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AgentSkill parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public AgentSkill.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static AgentSkill.Builder newBuilder()
    • newBuilder

      public static AgentSkill.Builder newBuilder(AgentSkill prototype)
    • toBuilder

      public AgentSkill.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected AgentSkill.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AgentSkill getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AgentSkill> parser()
    • getParserForType

      public com.google.protobuf.Parser<AgentSkill> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public AgentSkill getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder