Class EvaluationInstance.DeprecatedAgentConfig.Builder

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

public static final class EvaluationInstance.DeprecatedAgentConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<EvaluationInstance.DeprecatedAgentConfig.Builder> implements EvaluationInstance.DeprecatedAgentConfigOrBuilder
 Deprecated: Use `google.cloud.aiplatform.master.AgentConfig` in
 `agent_eval_data` instead.
 Configuration for an Agent.
 
Protobuf type google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig
  • 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<EvaluationInstance.DeprecatedAgentConfig.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<EvaluationInstance.DeprecatedAgentConfig.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<EvaluationInstance.DeprecatedAgentConfig.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

    • isInitialized

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

      public EvaluationInstance.DeprecatedAgentConfig.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<EvaluationInstance.DeprecatedAgentConfig.Builder>
      Throws:
      IOException
    • getToolsDataCase

      Specified by:
      getToolsDataCase in interface EvaluationInstance.DeprecatedAgentConfigOrBuilder
    • clearToolsData

    • hasToolsText

      public boolean hasToolsText()
       A JSON string containing a list of tools available to an agent with
       info such as name, description, parameters and required parameters.
       
      string tools_text = 1;
      Specified by:
      hasToolsText in interface EvaluationInstance.DeprecatedAgentConfigOrBuilder
      Returns:
      Whether the toolsText field is set.
    • getToolsText

      public String getToolsText()
       A JSON string containing a list of tools available to an agent with
       info such as name, description, parameters and required parameters.
       
      string tools_text = 1;
      Specified by:
      getToolsText in interface EvaluationInstance.DeprecatedAgentConfigOrBuilder
      Returns:
      The toolsText.
    • getToolsTextBytes

      public com.google.protobuf.ByteString getToolsTextBytes()
       A JSON string containing a list of tools available to an agent with
       info such as name, description, parameters and required parameters.
       
      string tools_text = 1;
      Specified by:
      getToolsTextBytes in interface EvaluationInstance.DeprecatedAgentConfigOrBuilder
      Returns:
      The bytes for toolsText.
    • setToolsText

       A JSON string containing a list of tools available to an agent with
       info such as name, description, parameters and required parameters.
       
      string tools_text = 1;
      Parameters:
      value - The toolsText to set.
      Returns:
      This builder for chaining.
    • clearToolsText

       A JSON string containing a list of tools available to an agent with
       info such as name, description, parameters and required parameters.
       
      string tools_text = 1;
      Returns:
      This builder for chaining.
    • setToolsTextBytes

      public EvaluationInstance.DeprecatedAgentConfig.Builder setToolsTextBytes(com.google.protobuf.ByteString value)
       A JSON string containing a list of tools available to an agent with
       info such as name, description, parameters and required parameters.
       
      string tools_text = 1;
      Parameters:
      value - The bytes for toolsText to set.
      Returns:
      This builder for chaining.
    • hasTools

      public boolean hasTools()
       List of tools.
       
      .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2;
      Specified by:
      hasTools in interface EvaluationInstance.DeprecatedAgentConfigOrBuilder
      Returns:
      Whether the tools field is set.
    • getTools

       List of tools.
       
      .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2;
      Specified by:
      getTools in interface EvaluationInstance.DeprecatedAgentConfigOrBuilder
      Returns:
      The tools.
    • setTools

       List of tools.
       
      .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2;
    • setTools

       List of tools.
       
      .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2;
    • mergeTools

       List of tools.
       
      .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2;
    • clearTools

       List of tools.
       
      .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2;
    • getToolsBuilder

       List of tools.
       
      .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2;
    • getToolsOrBuilder

       List of tools.
       
      .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2;
      Specified by:
      getToolsOrBuilder in interface EvaluationInstance.DeprecatedAgentConfigOrBuilder
    • getAgentId

      public String getAgentId()
       Optional. 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.
       
      string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAgentId in interface EvaluationInstance.DeprecatedAgentConfigOrBuilder
      Returns:
      The agentId.
    • getAgentIdBytes

      public com.google.protobuf.ByteString getAgentIdBytes()
       Optional. 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.
       
      string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAgentIdBytes in interface EvaluationInstance.DeprecatedAgentConfigOrBuilder
      Returns:
      The bytes for agentId.
    • setAgentId

       Optional. 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.
       
      string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The agentId to set.
      Returns:
      This builder for chaining.
    • clearAgentId

       Optional. 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.
       
      string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setAgentIdBytes

      public EvaluationInstance.DeprecatedAgentConfig.Builder setAgentIdBytes(com.google.protobuf.ByteString value)
       Optional. 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.
       
      string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL];
      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 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAgentType in interface EvaluationInstance.DeprecatedAgentConfigOrBuilder
      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 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAgentTypeBytes in interface EvaluationInstance.DeprecatedAgentConfigOrBuilder
      Returns:
      The bytes for agentType.
    • setAgentType

       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 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The agentType to set.
      Returns:
      This builder for chaining.
    • 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 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setAgentTypeBytes

      public EvaluationInstance.DeprecatedAgentConfig.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 = 5 [(.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 = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface EvaluationInstance.DeprecatedAgentConfigOrBuilder
      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 = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface EvaluationInstance.DeprecatedAgentConfigOrBuilder
      Returns:
      The bytes for description.
    • setDescription

       Optional. A high-level description of the agent's role and
       responsibilities. Critical for evaluating if the agent is routing tasks
       correctly.
       
      string description = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • 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 = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public EvaluationInstance.DeprecatedAgentConfig.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 = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getSubAgentsList

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

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

      public String getSubAgents(int index)
       Optional. The list of valid agent IDs (names) that this agent can
       delegate to. This defines the directed edges in the agent system graph
       topology.
       
      repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSubAgents in interface EvaluationInstance.DeprecatedAgentConfigOrBuilder
      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 (names) that this agent can
       delegate to. This defines the directed edges in the agent system graph
       topology.
       
      repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSubAgentsBytes in interface EvaluationInstance.DeprecatedAgentConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the subAgents at the given index.
    • setSubAgents

      public EvaluationInstance.DeprecatedAgentConfig.Builder setSubAgents(int index, String value)
       Optional. The list of valid agent IDs (names) that this agent can
       delegate to. This defines the directed edges in the agent system graph
       topology.
       
      repeated string sub_agents = 7 [(.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

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

       Optional. The list of valid agent IDs (names) that this agent can
       delegate to. This defines the directed edges in the agent system graph
       topology.
       
      repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The subAgents to add.
      Returns:
      This builder for chaining.
    • clearSubAgents

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

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

      public boolean hasDeveloperInstruction()
       Optional. Contains instructions from the developer for the agent. Can be
       static or a dynamic prompt template used with the
       `AgentEvent.state_delta` field.
       
      .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDeveloperInstruction in interface EvaluationInstance.DeprecatedAgentConfigOrBuilder
      Returns:
      Whether the developerInstruction field is set.
    • getDeveloperInstruction

      public EvaluationInstance.InstanceData getDeveloperInstruction()
       Optional. Contains instructions from the developer for the agent. Can be
       static or a dynamic prompt template used with the
       `AgentEvent.state_delta` field.
       
      .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDeveloperInstruction in interface EvaluationInstance.DeprecatedAgentConfigOrBuilder
      Returns:
      The developerInstruction.
    • setDeveloperInstruction

       Optional. Contains instructions from the developer for the agent. Can be
       static or a dynamic prompt template used with the
       `AgentEvent.state_delta` field.
       
      .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setDeveloperInstruction

       Optional. Contains instructions from the developer for the agent. Can be
       static or a dynamic prompt template used with the
       `AgentEvent.state_delta` field.
       
      .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeDeveloperInstruction

       Optional. Contains instructions from the developer for the agent. Can be
       static or a dynamic prompt template used with the
       `AgentEvent.state_delta` field.
       
      .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearDeveloperInstruction

      public EvaluationInstance.DeprecatedAgentConfig.Builder clearDeveloperInstruction()
       Optional. Contains instructions from the developer for the agent. Can be
       static or a dynamic prompt template used with the
       `AgentEvent.state_delta` field.
       
      .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getDeveloperInstructionBuilder

      public EvaluationInstance.InstanceData.Builder getDeveloperInstructionBuilder()
       Optional. Contains instructions from the developer for the agent. Can be
       static or a dynamic prompt template used with the
       `AgentEvent.state_delta` field.
       
      .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getDeveloperInstructionOrBuilder

      public EvaluationInstance.InstanceDataOrBuilder getDeveloperInstructionOrBuilder()
       Optional. Contains instructions from the developer for the agent. Can be
       static or a dynamic prompt template used with the
       `AgentEvent.state_delta` field.
       
      .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDeveloperInstructionOrBuilder in interface EvaluationInstance.DeprecatedAgentConfigOrBuilder