Class AgentConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AgentConfig.Builder>
com.google.cloud.aiplatform.v1beta1.AgentConfig.Builder
All Implemented Interfaces:
AgentConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AgentConfig

public static final class AgentConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<AgentConfig.Builder> implements AgentConfigOrBuilder
 Represents configuration for an Agent.
 
Protobuf type google.cloud.aiplatform.v1beta1.AgentConfig
  • 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<AgentConfig.Builder>
    • clear

      public AgentConfig.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<AgentConfig.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<AgentConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public AgentConfig.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<AgentConfig.Builder>
    • mergeFrom

      public AgentConfig.Builder mergeFrom(AgentConfig other)
    • isInitialized

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

      public AgentConfig.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<AgentConfig.Builder>
      Throws:
      IOException
    • hasAgentId

      public boolean hasAgentId()
       Required. Unique identifier of the agent.
       This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
       the `sub_agents` field. It must be unique within the `agents` map.
       
      optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAgentId in interface AgentConfigOrBuilder
      Returns:
      Whether the agentId field is set.
    • getAgentId

      public String getAgentId()
       Required. Unique identifier of the agent.
       This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
       the `sub_agents` field. It must be unique within the `agents` map.
       
      optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAgentId in interface AgentConfigOrBuilder
      Returns:
      The agentId.
    • getAgentIdBytes

      public com.google.protobuf.ByteString getAgentIdBytes()
       Required. Unique identifier of the agent.
       This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
       the `sub_agents` field. It must be unique within the `agents` map.
       
      optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAgentIdBytes in interface AgentConfigOrBuilder
      Returns:
      The bytes for agentId.
    • setAgentId

      public AgentConfig.Builder setAgentId(String value)
       Required. Unique identifier of the agent.
       This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
       the `sub_agents` field. It must be unique within the `agents` map.
       
      optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The agentId to set.
      Returns:
      This builder for chaining.
    • clearAgentId

      public AgentConfig.Builder clearAgentId()
       Required. Unique identifier of the agent.
       This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
       the `sub_agents` field. It must be unique within the `agents` map.
       
      optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setAgentIdBytes

      public AgentConfig.Builder setAgentIdBytes(com.google.protobuf.ByteString value)
       Required. Unique identifier of the agent.
       This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
       the `sub_agents` field. It must be unique within the `agents` map.
       
      optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for agentId to set.
      Returns:
      This builder for chaining.
    • getAgentType

      public String getAgentType()
       Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
       "ToolUseAgent"). Useful for the autorater to understand the expected
       behavior of the agent.
       
      string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAgentType in interface AgentConfigOrBuilder
      Returns:
      The agentType.
    • getAgentTypeBytes

      public com.google.protobuf.ByteString getAgentTypeBytes()
       Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
       "ToolUseAgent"). Useful for the autorater to understand the expected
       behavior of the agent.
       
      string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAgentTypeBytes in interface AgentConfigOrBuilder
      Returns:
      The bytes for agentType.
    • setAgentType

      public AgentConfig.Builder setAgentType(String value)
       Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
       "ToolUseAgent"). Useful for the autorater to understand the expected
       behavior of the agent.
       
      string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The agentType to set.
      Returns:
      This builder for chaining.
    • clearAgentType

      public AgentConfig.Builder clearAgentType()
       Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
       "ToolUseAgent"). Useful for the autorater to understand the expected
       behavior of the agent.
       
      string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setAgentTypeBytes

      public AgentConfig.Builder setAgentTypeBytes(com.google.protobuf.ByteString value)
       Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
       "ToolUseAgent"). Useful for the autorater to understand the expected
       behavior of the agent.
       
      string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for agentType to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Optional. A high-level description of the agent's role and
       responsibilities. Critical for evaluating if the agent is routing tasks
       correctly.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface AgentConfigOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. A high-level description of the agent's role and
       responsibilities. Critical for evaluating if the agent is routing tasks
       correctly.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface AgentConfigOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public AgentConfig.Builder setDescription(String value)
       Optional. A high-level description of the agent's role and
       responsibilities. Critical for evaluating if the agent is routing tasks
       correctly.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public AgentConfig.Builder clearDescription()
       Optional. A high-level description of the agent's role and
       responsibilities. Critical for evaluating if the agent is routing tasks
       correctly.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public AgentConfig.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. A high-level description of the agent's role and
       responsibilities. Critical for evaluating if the agent is routing tasks
       correctly.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getInstruction

      public String getInstruction()
       Optional. Provides instructions for the LLM model, guiding the agent's
       behavior. Can be static or dynamic. Dynamic instructions can contain
       placeholders like {variable_name} that will be resolved at runtime using
       the `AgentEvent.state_delta` field.
       
      string instruction = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInstruction in interface AgentConfigOrBuilder
      Returns:
      The instruction.
    • getInstructionBytes

      public com.google.protobuf.ByteString getInstructionBytes()
       Optional. Provides instructions for the LLM model, guiding the agent's
       behavior. Can be static or dynamic. Dynamic instructions can contain
       placeholders like {variable_name} that will be resolved at runtime using
       the `AgentEvent.state_delta` field.
       
      string instruction = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInstructionBytes in interface AgentConfigOrBuilder
      Returns:
      The bytes for instruction.
    • setInstruction

      public AgentConfig.Builder setInstruction(String value)
       Optional. Provides instructions for the LLM model, guiding the agent's
       behavior. Can be static or dynamic. Dynamic instructions can contain
       placeholders like {variable_name} that will be resolved at runtime using
       the `AgentEvent.state_delta` field.
       
      string instruction = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The instruction to set.
      Returns:
      This builder for chaining.
    • clearInstruction

      public AgentConfig.Builder clearInstruction()
       Optional. Provides instructions for the LLM model, guiding the agent's
       behavior. Can be static or dynamic. Dynamic instructions can contain
       placeholders like {variable_name} that will be resolved at runtime using
       the `AgentEvent.state_delta` field.
       
      string instruction = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setInstructionBytes

      public AgentConfig.Builder setInstructionBytes(com.google.protobuf.ByteString value)
       Optional. Provides instructions for the LLM model, guiding the agent's
       behavior. Can be static or dynamic. Dynamic instructions can contain
       placeholders like {variable_name} that will be resolved at runtime using
       the `AgentEvent.state_delta` field.
       
      string instruction = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for instruction to set.
      Returns:
      This builder for chaining.
    • getToolsList

      public List<Tool> getToolsList()
       Optional. The list of tools available to this agent.
       
      repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolsList in interface AgentConfigOrBuilder
    • getToolsCount

      public int getToolsCount()
       Optional. The list of tools available to this agent.
       
      repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolsCount in interface AgentConfigOrBuilder
    • getTools

      public Tool getTools(int index)
       Optional. The list of tools available to this agent.
       
      repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTools in interface AgentConfigOrBuilder
    • setTools

      public AgentConfig.Builder setTools(int index, Tool value)
       Optional. The list of tools available to this agent.
       
      repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setTools

      public AgentConfig.Builder setTools(int index, Tool.Builder builderForValue)
       Optional. The list of tools available to this agent.
       
      repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
    • addTools

      public AgentConfig.Builder addTools(Tool value)
       Optional. The list of tools available to this agent.
       
      repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
    • addTools

      public AgentConfig.Builder addTools(int index, Tool value)
       Optional. The list of tools available to this agent.
       
      repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
    • addTools

      public AgentConfig.Builder addTools(Tool.Builder builderForValue)
       Optional. The list of tools available to this agent.
       
      repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
    • addTools

      public AgentConfig.Builder addTools(int index, Tool.Builder builderForValue)
       Optional. The list of tools available to this agent.
       
      repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
    • addAllTools

      public AgentConfig.Builder addAllTools(Iterable<? extends Tool> values)
       Optional. The list of tools available to this agent.
       
      repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearTools

      public AgentConfig.Builder clearTools()
       Optional. The list of tools available to this agent.
       
      repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
    • removeTools

      public AgentConfig.Builder removeTools(int index)
       Optional. The list of tools available to this agent.
       
      repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getToolsBuilder

      public Tool.Builder getToolsBuilder(int index)
       Optional. The list of tools available to this agent.
       
      repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getToolsOrBuilder

      public ToolOrBuilder getToolsOrBuilder(int index)
       Optional. The list of tools available to this agent.
       
      repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolsOrBuilder in interface AgentConfigOrBuilder
    • getToolsOrBuilderList

      public List<? extends ToolOrBuilder> getToolsOrBuilderList()
       Optional. The list of tools available to this agent.
       
      repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolsOrBuilderList in interface AgentConfigOrBuilder
    • addToolsBuilder

      public Tool.Builder addToolsBuilder()
       Optional. The list of tools available to this agent.
       
      repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
    • addToolsBuilder

      public Tool.Builder addToolsBuilder(int index)
       Optional. The list of tools available to this agent.
       
      repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getToolsBuilderList

      public List<Tool.Builder> getToolsBuilderList()
       Optional. The list of tools available to this agent.
       
      repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getSubAgentsList

      public com.google.protobuf.ProtocolStringList getSubAgentsList()
       Optional. The list of valid agent IDs that this agent can delegate to.
       This defines the directed edges in the multi-agent system graph topology.
       
      repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSubAgentsList in interface AgentConfigOrBuilder
      Returns:
      A list containing the subAgents.
    • getSubAgentsCount

      public int getSubAgentsCount()
       Optional. The list of valid agent IDs that this agent can delegate to.
       This defines the directed edges in the multi-agent system graph topology.
       
      repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSubAgentsCount in interface AgentConfigOrBuilder
      Returns:
      The count of subAgents.
    • getSubAgents

      public String getSubAgents(int index)
       Optional. The list of valid agent IDs that this agent can delegate to.
       This defines the directed edges in the multi-agent system graph topology.
       
      repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSubAgents in interface AgentConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The subAgents at the given index.
    • getSubAgentsBytes

      public com.google.protobuf.ByteString getSubAgentsBytes(int index)
       Optional. The list of valid agent IDs that this agent can delegate to.
       This defines the directed edges in the multi-agent system graph topology.
       
      repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSubAgentsBytes in interface AgentConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the subAgents at the given index.
    • setSubAgents

      public AgentConfig.Builder setSubAgents(int index, String value)
       Optional. The list of valid agent IDs that this agent can delegate to.
       This defines the directed edges in the multi-agent system graph topology.
       
      repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The subAgents to set.
      Returns:
      This builder for chaining.
    • addSubAgents

      public AgentConfig.Builder addSubAgents(String value)
       Optional. The list of valid agent IDs that this agent can delegate to.
       This defines the directed edges in the multi-agent system graph topology.
       
      repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The subAgents to add.
      Returns:
      This builder for chaining.
    • addAllSubAgents

      public AgentConfig.Builder addAllSubAgents(Iterable<String> values)
       Optional. The list of valid agent IDs that this agent can delegate to.
       This defines the directed edges in the multi-agent system graph topology.
       
      repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The subAgents to add.
      Returns:
      This builder for chaining.
    • clearSubAgents

      public AgentConfig.Builder clearSubAgents()
       Optional. The list of valid agent IDs that this agent can delegate to.
       This defines the directed edges in the multi-agent system graph topology.
       
      repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addSubAgentsBytes

      public AgentConfig.Builder addSubAgentsBytes(com.google.protobuf.ByteString value)
       Optional. The list of valid agent IDs that this agent can delegate to.
       This defines the directed edges in the multi-agent system graph topology.
       
      repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the subAgents to add.
      Returns:
      This builder for chaining.