Class AgentSkill.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AgentSkill.Builder>
org.a2aproject.sdk.grpc.AgentSkill.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, AgentSkillOrBuilder
Enclosing class:
AgentSkill

public static final class AgentSkill.Builder extends com.google.protobuf.GeneratedMessage.Builder<AgentSkill.Builder> implements AgentSkillOrBuilder
 Represents a distinct capability or function that an agent can perform.
 
Protobuf type lf.a2a.v1.AgentSkill
  • 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.Builder<AgentSkill.Builder>
    • clear

      public AgentSkill.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AgentSkill.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AgentSkill.Builder>
    • getDefaultInstanceForType

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

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

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

      public AgentSkill.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AgentSkill.Builder>
    • mergeFrom

      public AgentSkill.Builder mergeFrom(AgentSkill other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AgentSkill.Builder>
    • mergeFrom

      public AgentSkill.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AgentSkill.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       A unique identifier for the agent's skill.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getId in interface AgentSkillOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       A unique identifier for the agent's skill.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIdBytes in interface AgentSkillOrBuilder
      Returns:
      The bytes for id.
    • setId

      public AgentSkill.Builder setId(String value)
       A unique identifier for the agent's skill.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public AgentSkill.Builder clearId()
       A unique identifier for the agent's skill.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setIdBytes

      public AgentSkill.Builder setIdBytes(com.google.protobuf.ByteString value)
       A unique identifier for the agent's skill.
       
      string id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getName

      public String getName()
       A human-readable name for the skill.
       
      string name = 2 [(.google.api.field_behavior) = REQUIRED];
      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 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface AgentSkillOrBuilder
      Returns:
      The bytes for name.
    • setName

      public AgentSkill.Builder setName(String value)
       A human-readable name for the skill.
       
      string name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public AgentSkill.Builder clearName()
       A human-readable name for the skill.
       
      string name = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public AgentSkill.Builder setNameBytes(com.google.protobuf.ByteString value)
       A human-readable name for the skill.
       
      string name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       A detailed description of the skill.
       
      string description = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDescription in interface AgentSkillOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       A detailed description of the skill.
       
      string description = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDescriptionBytes in interface AgentSkillOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public AgentSkill.Builder setDescription(String value)
       A detailed description of the skill.
       
      string description = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public AgentSkill.Builder clearDescription()
       A detailed description of the skill.
       
      string description = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public AgentSkill.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       A detailed description of the skill.
       
      string description = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getTagsList

      public com.google.protobuf.ProtocolStringList getTagsList()
       A set of keywords describing the skill's capabilities.
       
      repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTagsList in interface AgentSkillOrBuilder
      Returns:
      A list containing the tags.
    • getTagsCount

      public int getTagsCount()
       A set of keywords describing the skill's capabilities.
       
      repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTagsCount in interface AgentSkillOrBuilder
      Returns:
      The count of tags.
    • getTags

      public String getTags(int index)
       A set of keywords describing the skill's capabilities.
       
      repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED];
      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 keywords describing the skill's capabilities.
       
      repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED];
      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.
    • setTags

      public AgentSkill.Builder setTags(int index, String value)
       A set of keywords describing the skill's capabilities.
       
      repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The tags to set.
      Returns:
      This builder for chaining.
    • addTags

      public AgentSkill.Builder addTags(String value)
       A set of keywords describing the skill's capabilities.
       
      repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The tags to add.
      Returns:
      This builder for chaining.
    • addAllTags

      public AgentSkill.Builder addAllTags(Iterable<String> values)
       A set of keywords describing the skill's capabilities.
       
      repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The tags to add.
      Returns:
      This builder for chaining.
    • clearTags

      public AgentSkill.Builder clearTags()
       A set of keywords describing the skill's capabilities.
       
      repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addTagsBytes

      public AgentSkill.Builder addTagsBytes(com.google.protobuf.ByteString value)
       A set of keywords describing the skill's capabilities.
       
      repeated string tags = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the tags to add.
      Returns:
      This builder for chaining.
    • getExamplesList

      public com.google.protobuf.ProtocolStringList getExamplesList()
       Example prompts or scenarios that this skill can handle.
       
      repeated string examples = 5;
      Specified by:
      getExamplesList in interface AgentSkillOrBuilder
      Returns:
      A list containing the examples.
    • getExamplesCount

      public int getExamplesCount()
       Example prompts or scenarios that this skill can handle.
       
      repeated string examples = 5;
      Specified by:
      getExamplesCount in interface AgentSkillOrBuilder
      Returns:
      The count of examples.
    • getExamples

      public String getExamples(int index)
       Example prompts or scenarios that this skill can handle.
       
      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)
       Example prompts or scenarios that this skill can handle.
       
      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.
    • setExamples

      public AgentSkill.Builder setExamples(int index, String value)
       Example prompts or scenarios that this skill can handle.
       
      repeated string examples = 5;
      Parameters:
      index - The index to set the value at.
      value - The examples to set.
      Returns:
      This builder for chaining.
    • addExamples

      public AgentSkill.Builder addExamples(String value)
       Example prompts or scenarios that this skill can handle.
       
      repeated string examples = 5;
      Parameters:
      value - The examples to add.
      Returns:
      This builder for chaining.
    • addAllExamples

      public AgentSkill.Builder addAllExamples(Iterable<String> values)
       Example prompts or scenarios that this skill can handle.
       
      repeated string examples = 5;
      Parameters:
      values - The examples to add.
      Returns:
      This builder for chaining.
    • clearExamples

      public AgentSkill.Builder clearExamples()
       Example prompts or scenarios that this skill can handle.
       
      repeated string examples = 5;
      Returns:
      This builder for chaining.
    • addExamplesBytes

      public AgentSkill.Builder addExamplesBytes(com.google.protobuf.ByteString value)
       Example prompts or scenarios that this skill can handle.
       
      repeated string examples = 5;
      Parameters:
      value - The bytes of the examples to add.
      Returns:
      This builder for chaining.
    • getInputModesList

      public com.google.protobuf.ProtocolStringList getInputModesList()
       The set of supported input media types for this skill, overriding the agent's defaults.
       
      repeated string input_modes = 6;
      Specified by:
      getInputModesList in interface AgentSkillOrBuilder
      Returns:
      A list containing the inputModes.
    • getInputModesCount

      public int getInputModesCount()
       The set of supported input media types for this skill, overriding the agent's defaults.
       
      repeated string input_modes = 6;
      Specified by:
      getInputModesCount in interface AgentSkillOrBuilder
      Returns:
      The count of inputModes.
    • getInputModes

      public String getInputModes(int index)
       The set of supported input media types for this skill, overriding the agent's defaults.
       
      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)
       The set of supported input media types for this skill, overriding the agent's defaults.
       
      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.
    • setInputModes

      public AgentSkill.Builder setInputModes(int index, String value)
       The set of supported input media types for this skill, overriding the agent's defaults.
       
      repeated string input_modes = 6;
      Parameters:
      index - The index to set the value at.
      value - The inputModes to set.
      Returns:
      This builder for chaining.
    • addInputModes

      public AgentSkill.Builder addInputModes(String value)
       The set of supported input media types for this skill, overriding the agent's defaults.
       
      repeated string input_modes = 6;
      Parameters:
      value - The inputModes to add.
      Returns:
      This builder for chaining.
    • addAllInputModes

      public AgentSkill.Builder addAllInputModes(Iterable<String> values)
       The set of supported input media types for this skill, overriding the agent's defaults.
       
      repeated string input_modes = 6;
      Parameters:
      values - The inputModes to add.
      Returns:
      This builder for chaining.
    • clearInputModes

      public AgentSkill.Builder clearInputModes()
       The set of supported input media types for this skill, overriding the agent's defaults.
       
      repeated string input_modes = 6;
      Returns:
      This builder for chaining.
    • addInputModesBytes

      public AgentSkill.Builder addInputModesBytes(com.google.protobuf.ByteString value)
       The set of supported input media types for this skill, overriding the agent's defaults.
       
      repeated string input_modes = 6;
      Parameters:
      value - The bytes of the inputModes to add.
      Returns:
      This builder for chaining.
    • getOutputModesList

      public com.google.protobuf.ProtocolStringList getOutputModesList()
       The set of supported output media types for this skill, overriding the agent's defaults.
       
      repeated string output_modes = 7;
      Specified by:
      getOutputModesList in interface AgentSkillOrBuilder
      Returns:
      A list containing the outputModes.
    • getOutputModesCount

      public int getOutputModesCount()
       The set of supported output media types for this skill, overriding the agent's defaults.
       
      repeated string output_modes = 7;
      Specified by:
      getOutputModesCount in interface AgentSkillOrBuilder
      Returns:
      The count of outputModes.
    • getOutputModes

      public String getOutputModes(int index)
       The set of supported output media types for this skill, overriding the agent's defaults.
       
      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)
       The set of supported output media types for this skill, overriding the agent's defaults.
       
      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.
    • setOutputModes

      public AgentSkill.Builder setOutputModes(int index, String value)
       The set of supported output media types for this skill, overriding the agent's defaults.
       
      repeated string output_modes = 7;
      Parameters:
      index - The index to set the value at.
      value - The outputModes to set.
      Returns:
      This builder for chaining.
    • addOutputModes

      public AgentSkill.Builder addOutputModes(String value)
       The set of supported output media types for this skill, overriding the agent's defaults.
       
      repeated string output_modes = 7;
      Parameters:
      value - The outputModes to add.
      Returns:
      This builder for chaining.
    • addAllOutputModes

      public AgentSkill.Builder addAllOutputModes(Iterable<String> values)
       The set of supported output media types for this skill, overriding the agent's defaults.
       
      repeated string output_modes = 7;
      Parameters:
      values - The outputModes to add.
      Returns:
      This builder for chaining.
    • clearOutputModes

      public AgentSkill.Builder clearOutputModes()
       The set of supported output media types for this skill, overriding the agent's defaults.
       
      repeated string output_modes = 7;
      Returns:
      This builder for chaining.
    • addOutputModesBytes

      public AgentSkill.Builder addOutputModesBytes(com.google.protobuf.ByteString value)
       The set of supported output media types for this skill, overriding the agent's defaults.
       
      repeated string output_modes = 7;
      Parameters:
      value - The bytes of the outputModes to add.
      Returns:
      This builder for chaining.
    • getSecurityRequirementsList

      public List<SecurityRequirement> getSecurityRequirementsList()
       Security schemes necessary for this skill.
       
      repeated .lf.a2a.v1.SecurityRequirement security_requirements = 8;
      Specified by:
      getSecurityRequirementsList in interface AgentSkillOrBuilder
    • getSecurityRequirementsCount

      public int getSecurityRequirementsCount()
       Security schemes necessary for this skill.
       
      repeated .lf.a2a.v1.SecurityRequirement security_requirements = 8;
      Specified by:
      getSecurityRequirementsCount in interface AgentSkillOrBuilder
    • getSecurityRequirements

      public SecurityRequirement getSecurityRequirements(int index)
       Security schemes necessary for this skill.
       
      repeated .lf.a2a.v1.SecurityRequirement security_requirements = 8;
      Specified by:
      getSecurityRequirements in interface AgentSkillOrBuilder
    • setSecurityRequirements

      public AgentSkill.Builder setSecurityRequirements(int index, SecurityRequirement value)
       Security schemes necessary for this skill.
       
      repeated .lf.a2a.v1.SecurityRequirement security_requirements = 8;
    • setSecurityRequirements

      public AgentSkill.Builder setSecurityRequirements(int index, SecurityRequirement.Builder builderForValue)
       Security schemes necessary for this skill.
       
      repeated .lf.a2a.v1.SecurityRequirement security_requirements = 8;
    • addSecurityRequirements

      public AgentSkill.Builder addSecurityRequirements(SecurityRequirement value)
       Security schemes necessary for this skill.
       
      repeated .lf.a2a.v1.SecurityRequirement security_requirements = 8;
    • addSecurityRequirements

      public AgentSkill.Builder addSecurityRequirements(int index, SecurityRequirement value)
       Security schemes necessary for this skill.
       
      repeated .lf.a2a.v1.SecurityRequirement security_requirements = 8;
    • addSecurityRequirements

      public AgentSkill.Builder addSecurityRequirements(SecurityRequirement.Builder builderForValue)
       Security schemes necessary for this skill.
       
      repeated .lf.a2a.v1.SecurityRequirement security_requirements = 8;
    • addSecurityRequirements

      public AgentSkill.Builder addSecurityRequirements(int index, SecurityRequirement.Builder builderForValue)
       Security schemes necessary for this skill.
       
      repeated .lf.a2a.v1.SecurityRequirement security_requirements = 8;
    • addAllSecurityRequirements

      public AgentSkill.Builder addAllSecurityRequirements(Iterable<? extends SecurityRequirement> values)
       Security schemes necessary for this skill.
       
      repeated .lf.a2a.v1.SecurityRequirement security_requirements = 8;
    • clearSecurityRequirements

      public AgentSkill.Builder clearSecurityRequirements()
       Security schemes necessary for this skill.
       
      repeated .lf.a2a.v1.SecurityRequirement security_requirements = 8;
    • removeSecurityRequirements

      public AgentSkill.Builder removeSecurityRequirements(int index)
       Security schemes necessary for this skill.
       
      repeated .lf.a2a.v1.SecurityRequirement security_requirements = 8;
    • getSecurityRequirementsBuilder

      public SecurityRequirement.Builder getSecurityRequirementsBuilder(int index)
       Security schemes necessary for this skill.
       
      repeated .lf.a2a.v1.SecurityRequirement security_requirements = 8;
    • getSecurityRequirementsOrBuilder

      public SecurityRequirementOrBuilder getSecurityRequirementsOrBuilder(int index)
       Security schemes necessary for this skill.
       
      repeated .lf.a2a.v1.SecurityRequirement security_requirements = 8;
      Specified by:
      getSecurityRequirementsOrBuilder in interface AgentSkillOrBuilder
    • getSecurityRequirementsOrBuilderList

      public List<? extends SecurityRequirementOrBuilder> getSecurityRequirementsOrBuilderList()
       Security schemes necessary for this skill.
       
      repeated .lf.a2a.v1.SecurityRequirement security_requirements = 8;
      Specified by:
      getSecurityRequirementsOrBuilderList in interface AgentSkillOrBuilder
    • addSecurityRequirementsBuilder

      public SecurityRequirement.Builder addSecurityRequirementsBuilder()
       Security schemes necessary for this skill.
       
      repeated .lf.a2a.v1.SecurityRequirement security_requirements = 8;
    • addSecurityRequirementsBuilder

      public SecurityRequirement.Builder addSecurityRequirementsBuilder(int index)
       Security schemes necessary for this skill.
       
      repeated .lf.a2a.v1.SecurityRequirement security_requirements = 8;
    • getSecurityRequirementsBuilderList

      public List<SecurityRequirement.Builder> getSecurityRequirementsBuilderList()
       Security schemes necessary for this skill.
       
      repeated .lf.a2a.v1.SecurityRequirement security_requirements = 8;